티스토리 수익 글 보기

티스토리 수익 글 보기

!function(){try{var e=”undefined”!=typeof window?window:”undefined”!=typeof global?global:”undefined”!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]=”206cb14b-9367-406b-bdbb-d15619701f03″,e._sentryDebugIdIdentifier=”sentry-dbid-206cb14b-9367-406b-bdbb-d15619701f03″)}catch(e){}}(),(self.webpackChunktwitch_twilight=self.webpackChunktwitch_twilight||[]).push([[99610],{383361:function(){},370065:function(e,n,i){“use strict”;i.d(n,{$:function(){return k}});var t=i(331635),a=i(474848),o=i(959340),r=i(914421),l=i(636367),s=i(97774),d=i(235233),u=i(298830),c=i(312663),m=i(26538),p=i(603707),v=i(296540),h=i.p+”assets/404_boxart-285×380-55299d79a777bd47e9e7.jpg”,f=i(973474),g=function(e){function n(n){var i=e.call(this,n)||this;return i.setImage=function(e){var n=e.src,t=e.altSrc,a=new Image;a.onerror=function(){return i.setState({src:t})},a.onload=function(){return i.setState({src:n})},a.src=n},i.state={src:n.src},i}return(0,t.__extends)(n,e),n.prototype.componentDidMount=function(){this.props.src&&this.setImage(this.props)},n.prototype.componentDidUpdate=function(e){e.src!==this.props.src&&this.setImage(this.props)},n.prototype.render=function(){return(0,a.jsx)(f.L,(0,t.__assign)({},this.props,{src:this.state.src}))},n}(v.Component),k=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.onClick=function(){n.props.onClick&&n.props.onClick(n.props.index)},n}return(0,t.__extends)(n,e),n.prototype.render=function(){var e={src:this.props.imageURL,alt:this.props.text};return(0,a.jsx)(o.P,{className:”media-row”,display:r.nl.Flex,flexWrap:r.I4.NoWrap,children:(0,a.jsx)(l.tD,{linkTo:this.props.linkTo,onClick:this.onClick,selected:this.props.active,children:(0,a.jsxs)(o.P,{display:r.nl.Flex,flexDirection:r.bo.Row,padding:.5,children:[(0,a.jsxs)(o.P,{className:”media-row__image-wrapper”,flexGrow:0,flexShrink:0,borderRadius:s.Z.Small,overflow:r.nE.Hidden,position:r.yX.Relative,children:[(0,a.jsx)(d.j$,{align:d.W3.Center,ratio:d.gl.BoxArt,children:(0,a.jsx)(g,(0,t.__assign)({},e,{altSrc:h}))}),(0,a.jsx)(o.P,{className:this.props.active?””:”media-row__image-play-overlay”,alignItems:r.k2.Center,background:r.VS.Overlay,color:r.Q1.Overlay,display:r.nl.Flex,justifyContent:r.A9.Center,position:r.yX.Absolute,attachTop:!0,attachBottom:!0,attachLeft:!0,attachRight:!0,children:(0,a.jsx)(u.A,{fillColor:”inherit”})})]}),(0,a.jsxs)(o.P,{display:r.nl.Flex,flexDirection:r.bo.Column,flexGrow:1,flexShrink:1,padding:{left:1,top:1},children:[(0,a.jsx)(o.P,{className:”media-row__info-text”,children:(0,a.jsx)(c.N,{children:this.props.text})}),(0,a.jsx)(o.P,{className:”media-row__info-description”,children:(0,a.jsx)(c.N,{children:this.props.description})})]}),this.renderCount()]})})})},n.prototype.renderCount=function(){return this.props.count?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.P,{alignSelf:r.gB.Center,children:(0,a.jsx)(m.a,{label:this.props.count.toString()})}),(0,a.jsx)(p.R,{fillColor:”alt”})]}):null},n}(v.Component)},134889:function(e,n,i){“use strict”;i.d(n,{M:function(){return d}});var t=i(331635),a=i(474848),o=i(891975),r=i(296540),l=i(494028),s=i(242644);function d(e){var n=e.id,i=!n.trim(),d=(0,r.useContext)(l.T),u=(0,s.Y6)(n,{currentStep:1,seen:!1},i),c=u.seen;(0,o.S)((function(){(0,s.rj)(e)||!n?i||u.seen||d.add(n,(0,t.__assign)({showOnPageLoad:e.showOnPageLoad},u)):(0,s.OT)(n)}));var m=d.activeItem===n,p=n&&d.requests[n],v=m&&p?null==p?void 0:p.currentStep:void 0;return{currentStep:v,seen:c,next:function(){if(!i&&v){var e={currentStep:v+1};(0,s.zO)(n,e),d.update(n,e)}},previous:function(){if(!i&&v&&1!==v){var e={currentStep:v-1};(0,s.zO)(n,e),d.update(n,e)}},markAsSeen:function(){if(!i){var e={seen:c=!0};(0,s.zO)(n,e),d.update(n,e)}},show:function(){i||d.show(n)},FTUE:function(e){var n=e.children,t=e.step;return i||v!==(void 0===t?1:t)?null:(0,a.jsx)(a.Fragment,{children:n})},skipped:!!i}}},922671:function(e,n,i){“use strict”;i.d(n,{n:function(){return t}});var t=function(){function e(e){this.debounceDuration=0,this.timeout=0,this.debounceDuration=e}return e.prototype.clear=function(){clearTimeout(this.timeout)},e.prototype.invoke=function(e){clearTimeout(this.timeout),this.timeout=setTimeout(e,this.debounceDuration)},e}()},726342:function(e,n,i){“use strict”;i.d(n,{k:function(){return m}});var t=i(474848),a=i(959340),o=i(914421),r=i(661988),l=i(178676),s=i(477477),d=i(949166),u=i(139022),c=i(93159);function m(e){var n,i=(0,r.hw)(“{bitsAmount} Bits”,{bitsAmount:e.count.toString()},”Bits–BitsCount”);if(e.withImage){var m=e.bitsConfig&&e.bitsConfig.indexedActions[s.J_];m||(m=(0,u.Vt)(“Cheer”));var p=void 0;if(0===e.count)p=s.fB;else for(var v=0,h=m.orderedTiers;v0)&&m&&!o?(d={isOpen:!0,campaignSettings:e,liveShoppingConfig:i},c()):window.open(null==e?void 0:e.advertiser.ctaURL,”_blank”,”noopener,noreferrer”)}}),[m]);return(0,t.__assign)((0,t.__assign)({},n),{closeModal:v,handleIngressClick:h})}},735793:function(e,n,i){“use strict”;i.d(n,{V:function(){return o},n:function(){return a}});var t=i(59616),a=t.z.object({asin:t.z.string(),tracking_id:t.z.record(t.z.string(),t.z.string()),asins:t.z.array(t.z.string())});function o(e,n){return n&&e[n]||””}},89279:function(e,n,i){“use strict”;i.d(n,{M:function(){return a}});var t=i(296540),a=function(e){var n=t.useState(!1),i=n[0],a=n[1];return t.useEffect((function(){if(e&&e.current){var n=null==e?void 0:e.current,i=function(){return a(!0)},t=function(){return a(!1)};return n.addEventListener(“mouseenter”,i),n.addEventListener(“mouseleave”,t),function(){n.removeEventListener(“mouseenter”,i),n.removeEventListener(“mouseleave”,t)}}}),[e]),{isHovering:i}}},358302:function(e,n,i){“use strict”;i.d(n,{kw:function(){return c}});var t=i(296540),a=i(134920),o=i(641896),r=i(911906),l=i(731820),s=i(605840),d=i(249448),u=i(487206);function c(){var e=m(),n=e.isClipContent,i=e.playerType,o=e.disableUserPreferencePersistence,r=p(),l=r.availableQualities,d=r.unavailableQualities,c=r.mediaPlayerInstance,h=r.selectedQuality,f=r.updateContext,g=v().setRequestedQuality;return{allQualities:(0,u.Ql)({availableQualities:l,unavailableQualities:d}),selectedQuality:h,unavailableQualities:d,setQuality:(0,t.useCallback)((function(e){c&&(f({quality:e.group,qualityBitrate:e.bitrate}),n&&(0,u.Gi)(e)&&!(0,a.vO)()?(0,u.Qf)(e,c):(0,u.WF)(e,c,g),o||(0,u.XF)(e,i)),(e.group===s.w_||(0,u.m)(e,l))&&(0,u.di)()}),[o,n,c,g,i,f,l])}}var m=function(){var e=(0,t.useContext)(r.kl),n=e.content,i=e.type,a=e.behaviors,o=null==a?void 0:a.disableUserPreferencePersistence;return{isClipContent:(0,d.Jn)(n),playerType:i,disableUserPreferencePersistence:o}},p=function(){var e=(0,t.useContext)(o.$g);return{availableQualities:e.availableQualities,unavailableQualities:e.unavailableQualities,mediaPlayerInstance:e.mediaPlayerInstance,selectedQuality:e.quality,updateContext:e.updateContext}},v=function(){return{setRequestedQuality:(0,t.useContext)(l._t).setRequestedQuality}}},818233:function(e,n,i){“use strict”;i.d(n,{a:function(){return p}});var t=i(331635),a=i(296540),o=i(148223),r=i(233936),l=i(641896),s=i(129721),d=i(459487),u={bandwidth:0,broadcast_id:0,cluster:””,current_bitrate:0,current_fps_exact:0,current_fps:0,decoded_frames:0,dropped_frames:0,hls_latency_broadcaster:0,hls_target_duration:0,manifest_cluster:””,manifest_node_type:””,manifest_node:””,node:””,paused:!1,playing:!1,segment_protocol:””,serving_id:0,stream_time_offset:0,stream_time:0,totalMemoryNumber:0,user_ip:””,vid_display_height:0,vid_display_width:0,vid_height:0,vid_width:0,video_buffer_size:0,vod_cdn_origin:””,vod_cdn_region:””,volume:0},c=function(e){var n=e.getSessionData(),i={broadcast_id:n[“BROADCAST-ID”],cluster:n.CLUSTER,manifest_cluster:n[“MANIFEST-CLUSTER”],manifest_node_type:n[“MANIFEST-NODE_TYPE”],manifest_node:n[“MANIFEST-NODE”],node:n.NODE,segment_protocol:”https:”===window.location.protocol?”https”:”http”,serving_id:n[“SERVING-ID”],stream_time_offset:parseFloat(n[“STREAM-TIME”]||”0″),user_ip:n.USER_IP,vod_cdn_origin:n.ORIGIN,vod_cdn_region:n.REGION},a={};if(e){var o=e.getState(),r=e.getVideoBitRate()/1e3,l=e.getVideoFrameRate();a={bandwidth:r,current_bitrate:r,current_fps_exact:l,current_fps:Math.round(l),decoded_frames:e.getDecodedFrames(),dropped_frames:e.getDroppedFrames(),hls_latency_broadcaster:Math.round(1e3*e.getLiveLatency()),hls_target_duration:5,paused:o===d.p.IDLE,playing:o===d.p.PLAYING,stream_time:e.getPosition(),totalMemoryNumber:64,vid_display_height:e.getDisplayHeight(),vid_display_width:e.getDisplayWidth(),vid_height:e.getVideoHeight(),vid_width:e.getVideoWidth(),video_buffer_size:e.getBufferDuration(),volume:e.getVolume()}}return(0,t.__assign)((0,t.__assign)((0,t.__assign)({},u),i),a)},m=function(e){var n=e.adPosition,i=e.adWrapperIds,t=e.contentType,a=e.creativeId,o=e.duration,r=e.impressionTime,l=e.mediaUrl,s=e.system,d=e.title,u=e.totalAds,c=e.vastMediaBitrate,m=e.vastMediaHeight,p=e.vastMediaWidth;return{adPosition:n,adWrapperId:i?i[0]:void 0,contentType:t,creativeId:a,duration:o,impressionTime:r,mediaUrl:l,system:s,title:d,totalAds:u,vastMediaBitrate:c,vastMediaHeight:m,vastMediaWidth:p}};function p(){var e=(0,a.useContext)(l.$g).mediaPlayerInstance,n=(0,a.useContext)(r.jK).adPodStats,i=(0,a.useContext)(s.g7).track,d=(0,a.useState)(!1),u=d[0],p=d[1],v=(0,a.useState)(null),h=v[0],f=v[1],g=(0,a.useCallback)((function(){var e=(0,o.yr)(16);n.forEach((function(n){var a=(0,t.__assign)({adPodId:e},m(n));i(“ad_issue_report”,(0,t.__assign)({issuetype:h},a))}))}),[n,h,i]),k=(0,a.useCallback)((function(){e&&i(“vid_issue_report”,(0,t.__assign)({issue:h},c(e)))}),[h,e,i]),y=(0,a.useCallback)((function(){e&&h&&((null==h?void 0:h.startsWith(“ad-“))?g():k(),p(!0))}),[h,e,g,k]);return{currentlySelectedIssue:h,setCurrentlySelectedIssue:f,submitReport:y,recentlySubmitted:u}}},473327:function(e,n,i){“use strict”;i.d(n,{KP:function(){return d},QT:function(){return r},Qw:function(){return a},WY:function(){return u},lt:function(){return s},ni:function(){return l}});var t=i(661988),a=function(){return(0,t.hw)(“Report Playback Issue”,”SettingsMenuItemReportPlaybackIssue”)},o=”SettingsMenuSubmenuReportPlaybackIssue”,r=function(){return(0,t.hw)(“Noticed a video playback issue? Let us know!”,o)},l=function(){return(0,t.hw)(“Select”,o)},s=[{value:”stutter-both”,text:function(){return(0,t.hw)(“Audio and video stutter”,o)}},{value:”stutter-video”,text:function(){return(0,t.hw)(“Video stutters, but audio is fine”,o)}},{value:”black-screen”,text:function(){return(0,t.hw)(“Video is completely black or doesn’t load”,o)}},{value:”av-desync”,text:function(){return(0,t.hw)(“Audio and video aren’t synced”,o)}},{value:”fullscreen-broken”,text:function(){return(0,t.hw)(“Fullscreen playback doesn’t work”,o)}},{value:”ad-broken”,text:function(){return(0,t.hw)(“Advertisement playback doesn’t work.”,o)}},{value:”ad-repeat”,text:function(){return(0,t.hw)(“Advertisement has played too many times.”,o)}},{value:”ad-offensive-inappropriate”,text:function(){return(0,t.hw)(“Advertisement is offensive or inappropriate.”,o)}},{value:”ad-too-loud”,text:function(){return(0,t.hw)(“Advertisement is too loud.”,o)}},{value:”ad-not-relevant”,text:function(){return(0,t.hw)(“Advertisement is not relevant to my interests.”,o)}}],d=function(){return(0,t.hw)(“Submit”,o)},u=function(){return(0,t.hw)(“Thanks for your report”,o)}},12215:function(e,n,i){“use strict”;var t;i.d(n,{G:function(){return t}}),function(e){e[e.Default=0]=”Default”,e[e.TopRight=1]=”TopRight”}(t||(t={}))},977872:function(e,n,i){“use strict”;i.r(n),i.d(n,{VideoPlayerDesktopWeb:function(){return g}});var t=i(331635),a=i(474848),o=i(959340),r=i(296540),l=i(868238),s=i(661988),d=i(757245),u=i(148223),c=i(346190),m=i(455600),p=i(504349),v=i(60150),h=i(668727),f=i(850649),g=(0,l.Zz)((0,d.X)({name:”VideoPlayerDesktopWeb”,content:(0,a.jsx)(m.x,{children:function(){return(0,a.jsx)(h.p,{buttonVariant:”primary”})}})}))((function(e){var n=e.children,i=(0,t.__rest)(e,[“children”]),l=(0,r.useState)(),d=l[0],m=l[1],h=(0,r.useState)(),g=h[0],k=h[1],y=(0,r.useRef)((0,u.yr)(16)),S=(0,r.useRef)(s.x2.logger.withCategory(“video-player-desktop-web”).withCategory(y.current));return(0,a.jsx)(c.W,(0,t.__assign)({},i,{videoContainerRef:d,videoRef:g,children:(0,a.jsxs)(f.P,(0,t.__assign)({logger:S.current,onContainerRefDelegate:m,onVideoRefDelegate:k},i,{children:[(0,a.jsx)(p.Sf,{children:(0,a.jsx)(o.P,{className:”video-player__overlay”,position:”absolute”,attachBottom:!0,attachLeft:!0,attachRight:!0,attachTop:!0,children:(0,a.jsx)(v.Qk,{logger:S.current})})}),(0,a.jsx)(“div”,{style:{display:”none”},children:n})]}))}))}))},477540:function(e,n,i){“use strict”;i.d(n,{Nb:function(){return u}});var t=i(331635),a=i(296540),o=i(868238),r=i(514105),l=i(641896),s=i(947153),d=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.handleSeekCompleted=function(){var e=n.props.mediaPlayerInstance;if(e){var i=e.getPosition();n.props.onSeekComplete(i)}},n}return(0,t.__extends)(n,e),n.prototype.componentDidMount=function(){this.props.playerEvents.addEventListener(s.a.SEEK_COMPLETED,this.handleSeekCompleted)},n.prototype.render=function(){return null},n}(a.Component),u=(0,o.Zz)((0,l.dd)((function(e){return{mediaPlayerInstance:e.mediaPlayerInstance}})),(0,r.X)())(d)},60150:function(e,n,i){“use strict”;i.d(n,{Qk:function(){return pl}});var t=i(331635),a=i(474848),o=i(296540),r=i(868238),l=i(757245),s=i(508952),d=i(436357),u=i(196190),c=i(623970),m=i(462881),p=i(326984),v=i(878324),h=i(233936),f=i(699511),g=i(284162),k=i(403772),y=i(345942),S=i(641896),x=i(911906),b=i(731820),C=i(764059),w=i(573527),_=i(894320),N=i(255617),D=i(568285),P=i(10717),j=i(824309),I=i(853496),E=i(959340),F=i(914421),O=i(312663),T=i(588702),V=i(661988),M=i(810509);var A=(0,r.Zz)((0,l.X)({name:”ChromecastOverlay”}),(0,f.vM)((function(e){return{isCasting:(0,f.mh)(e),deviceName:e.deviceName}})))((function(e){return e.isCasting?(0,a.jsx)(M.FT,{transparency:M.xL.Transparency5,type:M.NL.Fullscreen,children:(0,a.jsx)(E.P,{margin:{top:2},textAlign:F.nO.Center,children:(0,a.jsx)(O.N,{fontSize:F.Z4.Size4,bold:!0,lineHeight:T.aK.Heading,color:F.Q1.Overlay,children:(0,V.hw)(“Now casting to {deviceName}”,{deviceName:e.deviceName},”ChromecastOverlay”)})})}):null}));var L=i(566134),R=i(67813),B=i(723319),U=i(216042),z=i(97774),W=i(792486),H=i(509534),G=i(298830),Q=function(){var e=(0,o.useContext)(C.wL),n=e.play,i=e.isPlaying,t=e.pause,r=(0,o.useContext)(S.$g).mediaPlayerInstance,l=(0,V.hw)(“Play”,”ClickToPlayPauseOverlay”),s=(0,V.hw)(“Pause”,”ClickToPlayPauseOverlay”),d=(0,o.useState)(!1),u=d[0],c=d[1],m=(0,o.useCallback)((function(){c(!0)}),[]);(0,o.useEffect)((function(){m()}),[i,m]);var p=function(){return r?r.getDisplayHeight()<=240?30:r.getDisplayHeight()>=480?80:Math.round(r.getDisplayHeight()*(1/6)):60},v=function(){return r?r.getDisplayHeight()<=240?"6rem":r.getDisplayHeight()>=480?”10rem”:””.concat(Math.round(r.getDisplayHeight()*(1/3)),”px”):”10rem”};return(0,a.jsx)(E.P,{color:”overlay”,width:”fit-content”,height:”100%”,margin:”0 auto”,display:”flex”,flexDirection:”column”,justifyContent:”center”,alignItems:”center”,children:(0,a.jsx)(R.e,{show:u,type:[B.ES.ScaleOver,B.ES.Fade],children:(0,a.jsx)(U.S,{borderRadius:z.Z.Rounded,background:”overlay”,height:v(),width:v(),children:(0,a.jsx)(W.M,{onClick:function(){i?t({userTriggered:!0}):n({userTriggered:!0})},”aria-label”:i?s:l,children:(0,a.jsx)(E.P,{display:”flex”,alignItems:”center”,justifyContent:”center”,color:”overlay”,children:i?(0,a.jsx)(H.i,{size:p()}):(0,a.jsx)(G.A,{size:p()})})})})})})},Z=i(187033),q=i(129721),X=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.state={audioBlockedCTATimeoutElapsed:!1},n.setAudioBlockedCTATimeoutElapsed=function(){n.setState((function(e){return e.audioBlockedCTATimeoutElapsed?null:{audioBlockedCTATimeoutElapsed:!0}}))},n.handleClick=function(){n.props.setMuted(!1,{persist:!0,userTriggered:!0})},n}return(0,t.__extends)(n,e),n.prototype.componentDidMount=function(){this.props.overlayDuration>=0&&isFinite(this.props.overlayDuration)&&(this.visibleTimeout=setTimeout(this.setAudioBlockedCTATimeoutElapsed,this.props.overlayDuration))},n.prototype.componentWillUnmount=function(){clearTimeout(this.visibleTimeout)},n.prototype.render=function(){var e=this.props,n=e.canShow,i=e.initialMuted,t=e.muted,o=e.showOverlay,r=e.audioBlocked,l=e.userEverUnmuted;if(!n)return null;var s=!!t&&i&&o&&!l,d=r&&!this.state.audioBlockedCTATimeoutElapsed,u=s||d;return(0,a.jsx)(R.e,{show:u,type:B.ES.Fade,children:(0,a.jsx)(“div”,{onClick:this.handleClick,className:”click-to-unmute__container”,children:(0,a.jsxs)(M.FT,{type:M.NL.Fullscreen,transparency:M.xL.Transparency5,children:[(0,a.jsx)(Z.x,{size:35}),(0,a.jsx)(E.P,{margin:{top:2},children:(0,a.jsx)(O.N,{fontSize:F.Z4.Size6,bold:!0,lineHeight:T.aK.Heading,color:F.Q1.Overlay,children:(0,V.hw)(“Click to unmute”,”AutomatedMuteOverlay”)})})]})})})},n}(o.Component),K=(0,r.Zz)((0,l.X)({name:”ClickToUnmuteOverlay”}),(0,C.AP)((function(e){return{setMuted:e.setMuted}})),(0,S.dd)((function(e){var n=e.audioBlocked,i=e.updateContext,t=e.muted,a=e.userEverUnmuted;return{audioBlocked:n,updateContext:i,muted:t,userEverUnmuted:a}})),(0,x.cj)((function(e){var n,i,t,a=(0,_.wk)({playerPublicPropsContext:e}).initialMuted;return{initialMuted:null!==(n=null==a?void 0:a.enabled)&&void 0!==n&&n,showOverlay:null!==(i=null==a?void 0:a.showOverlay)&&void 0!==i&&i,overlayDuration:null!==(t=null==a?void 0:a.overlayDuration)&&void 0!==t?t:5e3}})),(0,q.o1)())(X);var $=i(58681),Y=i(759369),J=i(435287),ee=i(673066);function ne(){return(0,a.jsx)(J.rj,{iconProps:{type:ee.W.Icon,icon:Y.t.DeadGlitch},text:(0,V.hw)(“This clip is no longer available”,”ClipEmbedErrorOverlay”)})}var ie=i(486489),te=i(847388),ae=i(540943),oe=i(891975),re=i(276337),le=i(148223),se=i(560196),de=i(249448),ue=i(920953),ce=i(212276),me=i(880428),pe=i(432647),ve=i(663953),he=i(725681),fe=i(65538),ge=i(235233),ke=i(973474),ye=i(848468),Se=i(584074),xe=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.renderOverlay=function(){var e=n.props.typeOverlay;return e?e.type===ce.FC.Live?(0,a.jsx)(E.P,{position:F.yX.Absolute,attachTop:!0,attachLeft:!0,margin:1,children:(0,a.jsx)(E.P,{fontSize:F.Z4.Size4,children:(0,a.jsx)(ve.qd,{label:(0,V.hw)(“LIVE”,”VideoPlayerVideoCard”)})})}):e.type===ce.FC.VOD?(0,a.jsx)(E.P,{position:F.yX.Absolute,attachTop:!0,attachLeft:!0,margin:1,children:(0,a.jsx)(E.P,{fontSize:F.Z4.Size4,children:(0,a.jsx)(he.L,{icon:G.A,children:(0,ye.X)(e.durationInSeconds)})})}):e.type===ce.FC.Clip?(0,a.jsx)(E.P,{position:F.yX.Absolute,attachTop:!0,attachLeft:!0,margin:1,children:(0,a.jsx)(E.P,{fontSize:F.Z4.Size4,children:(0,a.jsx)(he.L,{icon:fe.y,children:(0,ye.X)(e.durationInSeconds)})})}):void 0:null},n}return(0,t.__extends)(n,e),n.prototype.render=function(){var e=this.props,n=e.video,i=e.onSelect,t=e.info,o=e.content,r=e.marginBottom,l=void 0===r?1:r,s=e.targetBlank,d=e.getContentUrl,u=e.trackingContext;return(0,a.jsx)(U.S,{borderRadius:z.Z.Small,display:F.nl.Block,margin:{bottom:l},attachTop:!0,attachBottom:!0,children:(0,a.jsxs)(W.M,{linkTo:d(o,u),targetBlank:s,className:”offline-recommendations-video-card”,onClick:i,children:[(0,a.jsx)(“div”,{className:”offline-recommendations-video-card-border-2″,children:(0,a.jsx)(“div”,{className:”offline-recommendations-video-card-border-3″,children:(0,a.jsx)(“div”,{className:”offline-recommendations-video-card-border-4″,children:(0,a.jsx)(ge.j$,{ratio:16/9,children:(0,a.jsx)(“div”,{style:{backgroundImage:’url(“https://vod-secure.twitch.tv/_404/404_processing_640x360.png”)’,backgroundSize:”cover”},children:(0,a.jsx)(ke.L,{className:”offline-recommendations-video-card-img”,src:n.previewThumbnailURL,alt:(0,V.hw)(“Video Thumbnail”,”VideoCard”)})})})})})}),t&&(0,a.jsx)(E.P,{padding:{bottom:1},textAlign:F.nO.Left,color:F.Q1.Overlay,margin:{top:1},children:t}),this.renderOverlay()]})})},n}(o.Component),be=(0,Se.e)()(xe),Ce=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.getTitle=function(e){switch(e.type){case”live_channel”:return(0,V.hw)(“Watch {channelDisplayName} Live”,{channelDisplayName:e.displayName},”ClipPostplayRecommendationCard”);case”vod”:return(0,V.hw)(“Continue Watching”,”ClipPostplayRecommendationCard”);case”clip”:return e.title;default:return””}},n.getSubtitle=function(e){if(“clip”===e.type){var n=(0,V.hw)(“{viewCount} views”,{viewCount:e.viewCount},”ClipPostplayRecommendationCard”);return e.gameName?””.concat(n,” • “).concat(e.gameName):n}return e.gameName?(0,V.hw)(“{channelDisplayName} playing {gameName}”,{channelDisplayName:e.displayName,gameName:e.gameName},”ClipPostplayRecommendationCard”):”live_channel”===e.type?(0,V.hw)(“{channelDisplayName} streaming on Twitch”,{channelDisplayName:e.displayName},”ClipPostplayRecommendationCard”):”vod”===e.type?(0,V.hw)(“{channelDisplayName}’s video on Twitch”,{channelDisplayName:e.displayName},”ClipPostplayRecommendationCard”):””},n.getTypeOverlay=function(e){switch(e.type){case”live_channel”:return{type:ce.FC.Live};case”vod”:return{durationInSeconds:e.durationSeconds,type:ce.FC.VOD};case”clip”:return{durationInSeconds:e.durationSeconds,type:ce.FC.Clip};default:return}},n}return(0,t.__extends)(n,e),n.prototype.componentDidMount=function(){“clip”===this.props.recommendation.type&&(0,pe.y)()&&me.Z.emit(“impression”,{itemID:this.props.recommendation.itemID,recommendation:this.props.recommendation})},n.prototype.render=function(){var e=this.props,n=e.recommendation,i=e.targetBlank,t=e.trackSelectionClick;return(0,a.jsx)(be,{video:{previewThumbnailURL:n.imageUrl,title:this.getTitle(n)},content:n.content,onSelect:t,info:(0,a.jsxs)(O.N,{fontSize:F.Z4.Size6,ellipsis:!0,children:[this.getTitle(n),(0,a.jsx)(“br”,{}),this.getSubtitle(n)]}),typeOverlay:this.getTypeOverlay(n),targetBlank:i,trackingContext:n.tracking})},n}(o.Component),we=(0,x.cj)()(Ce),_e=i(672498),Ne=i(882439);function De(e,n,i){var a=new URL(e),o=””!==a.search?Ne.parse(a.search):{};return a.search=Ne.stringify((0,t.__assign)((0,t.__assign)({},o),{tt_content:n,tt_medium:i})),a.toString()}function Pe(e){return e?{channelLogin:e.login||””,displayName:e.displayName||e.login||””}:{channelLogin:””,displayName:””}}function je(e,n,i){var a,o,r,l,s,d;return(0,t.__assign)((0,t.__assign)({},Pe(e.broadcaster)),{category:n,content:{channelLogin:e.broadcaster&&e.broadcaster.login||void 0,clipSlug:e.slug,type:ce.FC.Clip},durationSeconds:e.durationSeconds,gameName:e.game?e.game.displayName:””,itemID:e.id,imageUrl:e.thumbnailURL,title:e.title,tracking:{content:”recommendation”,medium:i},type:”clip”,viewCount:e.viewCount,gameID:null!==(o=null===(a=e.game)||void 0===a?void 0:a.id)&&void 0!==o?o:””,gameSlug:null!==(l=null===(r=e.game)||void 0===r?void 0:r.categorySlug)&&void 0!==l?l:””,language:e.language,channelID:null!==(d=null===(s=e.broadcaster)||void 0===s?void 0:s.id)&&void 0!==d?d:””})}function Ie(e,n){var i=[];if(!e)return i;if(!e.clip||!e.clip.broadcaster)return i;var a=Pe(e.clip.broadcaster),o=(0,pe.T)();return!o&&function(e){return!!(e.clip&&e.clip.broadcaster&&e.clip.broadcaster.stream&&e.clip.broadcaster.stream.id)}(e)&&i.push((0,t.__assign)((0,t.__assign)({},a),function(e,n){return{content:{channelLogin:e.login||””,type:ce.FC.Live},gameName:e.stream&&e.stream.game?e.stream.game.displayName:””,itemID:e.id||””,imageUrl:De(e.stream&&e.stream.previewImageURL||””,”recommend_stream_img”,n),tracking:{content:”recommend_stream_link”,medium:n},type:”live_channel”}}(e.clip.broadcaster,n))),!o&&e.clip.video&&i.push((0,t.__assign)((0,t.__assign)({},a),function(e,n,i){var t=e.game?e.game.displayName:””;return{content:{videoOffset:n||void 0,vodID:e.id,type:ce.FC.VOD},durationSeconds:e.lengthSeconds||0,gameName:t,itemID:e.id,imageUrl:De(e.previewThumbnailURL,”recommend_vod_img”,i),tracking:{content:”recommend_vod_link”,medium:i},type:”vod”}}(e.clip.video,e.clip.videoOffsetSeconds,n))),i.length<2&&e.clip.relatedClips&&i.push.apply(i,function(e,n,i){var t=[];if(e.broadcaster){var a=e.broadcaster.map((function(e){return je(e,"channel_popular_clips",i)}));t.push.apply(t,a)}if(e.game&&t.length{owner} • {videos} videos • {timeText}”,{owner:v,”x:link”:function(e){var n,i,t=null===(n=m.owner)||void 0===n?void 0:n.profileURL;return!d&&(null===(i=m.owner)||void 0===i?void 0:i.login)&&(t=”/”.concat(m.owner.login)),(0,a.jsx)(gn.Cb,{linkTo:null!=t?t:””,targetBlank:d,onClick:c,children:e})},videos:m.items.totalCount,timeText:(0,yn.a3)(h)},”collections-sidebar”)})]}),(0,a.jsx)(E.P,{borderRadius:z.Z.Medium,elevation:3,padding:1,border:!0,overflow:F.nE.Auto,children:p.map((function(e,n){var i=e.node;return(0,a.jsx)(kn.tD,{linkTo:s({type:ce.FC.Collection,vodID:i.id,collectionID:m.id}),onClick:t,borderRadius:z.Z.Medium,tabIndex:0,selected:g===i.id,children:(0,a.jsxs)(E.P,{padding:{x:1,y:.5},display:F.nl.Flex,alignItems:F.k2.Center,children:[(0,a.jsx)(E.P,{flexGrow:0,flexShrink:0,children:(0,a.jsx)(O.N,{className:”collections-sidebar-index”,color:F.Q1.Overlay,children:n+1})}),(0,a.jsx)(E.P,{flexGrow:0,flexShrink:0,children:(0,a.jsx)(“img”,{alt:(0,V.hw)(“Thumbnail of one of the videos in the collection.”,”collections-sidebar”),src:i.previewThumbnailURL})}),(0,a.jsxs)(E.P,{flexGrow:1,flexShrink:1,padding:{left:1},children:[(0,a.jsx)(O.N,{color:F.Q1.Overlay,children:i.title}),(0,a.jsx)(O.N,{color:F.Q1.Alt2,ellipsis:!0,children:v})]})]})},i.id)}))})]})})})})}));var _n=i(179632),Nn=i(415044),Dn=i(12215),Pn=i(132902),jn=i(246942),In=i.n(jn),En=i(564139),Fn=i(657659),On=i(920962),Tn=function(e){var n=e.children,i=e.onClick,t=e.ariaLabel,o=(0,a.jsx)(E.P,{padding:1,borderRadius:z.Z.Medium,margin:{bottom:1},className:”disclosure-card”,children:n});return(0,a.jsx)(On.h,{overlay:!0,”aria-label”:t,children:”function”==typeof i?(0,a.jsx)(W.M,{onClick:i,children:o}):o})},Vn=i(28064),Mn=i(717946),An=function(e){var n=e.brandedContentTrackingBase,i=e.disableArrowOnDisclosure;return(0,a.jsx)(Tn,{onClick:(0,Vn.w)(n),children:(0,a.jsxs)(E.P,{display:”flex”,justifyContent:”space-between”,children:[(0,a.jsx)(E.P,{margin:{x:.5},children:(0,a.jsx)(O.N,{fontWeight:”semibold”,children:(0,Mn.a)()})}),!i&&(0,a.jsx)(E.P,{display:”flex”,margin:{left:.5},children:(0,a.jsx)(Fn.d,{})})]})})},Ln=i(962628),Rn=i(222192),Bn=i(674602),Un=i(368770),zn=i(133e3),Wn=function(e){var n=e.contentList,i=e.disableArrowOnDisclosure,t=e.trackClick,r=(0,o.useState)(!1),l=r[0],s=r[1],d=(0,o.useCallback)((function(){return s((function(e){var i=n.length>0&&!e;return t(i?”expand_disclosure”:”collapse_disclosure”),i}))}),[n,s,t]),u=(0,o.useState)(void 0),c=u[0],m=u[1],p=(0,Nn.d4)(Un.M3),v=(0,o.useCallback)((function(e){var n,i=null===(n=null==e?void 0:e.getBoundingClientRect())||void 0===n?void 0:n.width;i&&m(“”.concat(i,”px”))}),[m]);return(0,a.jsx)(Tn,{onClick:d,ariaLabel:n.length>0?(0,zn.oT)(n):(0,zn.ro)(),children:(0,a.jsxs)(E.P,{display:”flex”,flexDirection:”column”,justifyContent:”space-between”,margin:{left:.5},style:{lineHeight:0},ref:v,”data-a-target”:”content-classification-warning-disclosure-overlay”,children:[(0,a.jsxs)(E.P,{display:”flex”,justifyContent:”space-between”,children:[(0,a.jsx)(O.N,{fontWeight:”semibold”,children:(0,zn.ro)()}),!i&&n.length>0&&(0,a.jsx)(E.P,{margin:{left:1},children:(0,a.jsx)(Bn.K7,{closedDirection:”down”,openDirection:”up”,open:l})})]}),n.length>0&&(0,a.jsxs)(R.e,{type:”slide-over-top”,show:l,children:[(0,a.jsx)(E.P,{padding:{top:.5},width:c,children:(0,a.jsx)(O.N,{color:F.Q1.OverlayAlt,children:(0,zn.Hc)(n)})}),(0,a.jsx)(E.P,{padding:{top:1},width:c,children:(0,a.jsx)(O.N,{color:F.Q1.OverlayAlt,children:(0,zn.Zu)(p)})})]})]})})},Hn=i(105922),Gn=function(e){var n=e.onHideClick;return(0,a.jsx)(Tn,{ariaLabel:(0,zn.h4)(),children:(0,a.jsxs)(E.P,{display:”flex”,flexDirection:”row”,alignItems:”center”,justifyContent:”space-between”,children:[(0,a.jsx)(E.P,{display:”flex”,margin:{x:.5},children:(0,a.jsx)(Hn.i,{})}),(0,a.jsx)(E.P,{margin:{x:.5},children:(0,a.jsx)(O.N,{fontWeight:”semibold”,children:(0,zn.h4)()})}),(0,a.jsx)(Qe.a2,{icon:Ze.g,size:”small”,onClick:n,”aria-label”:(0,zn.u4)()})]})})},Qn=(0,r.Zz)((0,g.ZM)((function(e){return{overlayType:e.overlayType,contentLabels:e.contentLabels,trackClick:e.trackClick}})))((function(e){var n=e.contentLabels,i=e.disableArrowOnDisclosure,t=e.hideContentClassificationDisclosure,o=e.overlayType,r=e.trackClick;return o===Rn.P8.ContentWarningDisclosure&&n?(0,a.jsx)(Wn,{contentList:n.map(k.Uw),trackClick:r,disableArrowOnDisclosure:i}):o===Rn.P8.FetchErrorDisclosure?(0,a.jsx)(Gn,{onHideClick:function(){t(),r(“hide_error”)}}):null})),Zn=i(346170),qn=i(928793),Xn=i(353902),Kn=function(e){var n,i=e.status,t=e.channelDisplayName,o=e.organizerDisplayName,r=e.organizerLogin;if(“ALLOWED”===i){if(!t)return null;n=(0,V.hw)(“You are allowed to Co-Stream {displayName}’s broadcast! Learn more“,{displayName:t,”x:link”:function(e){return(0,a.jsx)(gn.Cb,{variant:”overlay”,linkTo:Xn.mU,underline:!0,targetBlank:!0,children:e})}},”Costreaming_ChannelPageBanner”)}else if(“DISALLOWED”===i){if(!t)return null;n=(0,V.hw)(“You are not allowed to Co-Stream {displayName}’s broadcast. Learn more“,{displayName:t,”x:link”:function(e){return(0,a.jsx)(gn.Cb,{variant:”overlay”,linkTo:Xn.mU,underline:!0,targetBlank:!0,children:e})}},”Costreaming_ChannelPageBanner”)}else if(“STARTED_DIFFERENT_CHANNEL”===i){if(!r||!o)return null;n=(0,V.hw)(“You are currently Co-Streaming {displayName}‘s broadcast. Learn more“,{displayName:o,”x:link”:function(e){return(0,a.jsx)(gn.Cb,{variant:”overlay”,linkTo:”/”.concat(r),underline:!0,children:e})},”x:link2″:function(e){return(0,a.jsx)(gn.Cb,{variant:”overlay”,linkTo:Xn.mU,underline:!0,children:e})}},”Costreaming_ChannelPageBanner”)}return n?(0,a.jsx)(Tn,{children:(0,a.jsxs)(E.P,{display:”flex”,children:[(0,a.jsx)(E.P,{display:”flex”,margin:{right:.5},children:(0,a.jsx)(qn.T,{})}),(0,a.jsx)(O.N,{children:n})]})}):null},$n=i(887916),Yn=i(190114),Jn=function(e){var n=e.disableArrowOnDisclosure,i=e.disableBrandedContentDisclosureOverlay,t=e.disableMatureOverlay,o=e.isContentLive,r=e.isContentVod,l=e.isEmbedded,s=e.isFullscreen,d=e.isOffline,u=e.isOnScreenControlsOn,c=e.isVideoAdShowing,m=e.overlayType,p=e.theatreModeEnabled,v=e.forceDisclosuresPosition,h=e.costreamerOverlay,f=e.anyPlaybackRestriction,g=(0,Zn.w)({isOnScreenControlsOn:u,isVideoAdShowing:c}),y=g.isContentClassificationDisclosureVisible,S=g.hideContentClassificationDisclosure,x=(0,Ln.a)(),b=x.isBrandedContentVisible,C=x.brandedContentTrackingBase,w=(0,Yn.r)({disableMatureOverlay:t,isOffline:d,isVideoAdShowing:c,overlayType:m,anyPlaybackRestriction:f}),_=(0,$n.d)({disableBrandedContentDisclosureOverlay:i,isOffline:d,isVideoAdShowing:c,anyPlaybackRestriction:f}),N=!!h&&function(e){var n=e.status,i=e.channelId;return!!e.isCurrentUserLive&&!!n&&”STARTED”!==n&&”DISABLED”!==n&&!!i}(h);if(!w&&!_&&!N)return null;var D=p||s||r||l||v===Dn.G.TopRight,P=u&&(p||l)&&!s&&o,j=u&&s&&o,I=D||P||j;return(0,a.jsx)(En.u,{section:”global”,id:”channel-player-disclosures”,icon:G.A,label:(0,V.hw)(“Player Controls”,”SkipToTargetDisclosureContainer”),enabled:!(0,k.cJ)(m)&&(0,k.OI)(m),children:(0,a.jsx)(E.P,{attachTop:!0,attachLeft:!D,attachRight:D,className:In()(“disclosure-tool”,{“dt-attach-top-right”:D,”dt-attach-top-right-shift-down”:P,”dt-attach-top-right-shift-left”:j}),position:F.yX.Absolute,display:F.nl.Flex,flexDirection:F.bo.Column,alignItems:I?F.k2.End:F.k2.Start,children:(0,a.jsxs)(Pn.F,{transitionType:B.ES.SlideOverTop,children:[N&&(0,a.jsx)(Kn,{status:h.status,channelDisplayName:h.channelDisplayName,organizerDisplayName:h.organizerDisplayName,organizerLogin:h.organizerLogin}),_&&b&&(0,a.jsx)(An,{brandedContentTrackingBase:C,disableArrowOnDisclosure:n},”branded-content-disclosure”),w&&y&&(0,a.jsx)(Qn,{hideContentClassificationDisclosure:S,disableArrowOnDisclosure:n},”content-classification-disclosure”)]})})})},ei=(0,r.Zz)((0,Nn.Ng)((function(e){return{theatreModeEnabled:e.ui.theatreModeEnabled}})),(0,x.cj)((function(e){var n,i=e.behaviors,t=e.content;return{isContentLive:!!(0,de.DG)(t),isContentVod:!!(0,de.wy)(t)||!(!(0,de.P3)(t)||!t.vodID),isEmbedded:!!(null==i?void 0:i.embed),disableMatureOverlay:!!(null==i?void 0:i.disableMatureOverlay),disableBrandedContentDisclosureOverlay:!!(null==i?void 0:i.disableBrandedContentDisclosureOverlay),forceDisclosuresPosition:null!==(n=null==i?void 0:i.forceDisclosuresPosition)&&void 0!==n?n:Dn.G.Default,disableArrowOnDisclosure:!!(null==i?void 0:i.disableArrowOnDisclosure),costreamerOverlay:null==i?void 0:i.costreamerOverlay}})),(0,g.ZM)((function(e){return{overlayType:e.overlayType}})),(0,b.c0)((function(e){return{isFullscreen:e.isFullscreen,recommendationsShowing:e.recommendationsShowing}})),(0,S.dd)((function(e){var n=e.isOffline,i=e.restrictions;return{isOffline:!!n,anyPlaybackRestriction:(0,ue.k1)({restrictions:i})}})),(0,h.VX)((function(e){var n=e.videoAdMetadata;return{isVideoAdShowing:(0,w.cz)(n)}})))((function(e){return e.anyPlaybackRestriction?null:(0,a.jsx)(Jn,(0,t.__assign)({},e))})),ni=i(3054),ii=i(621790),ti=i(345484),ai=i(248699),oi=i(536330),ri=i(464232),li=i(183198),si=i(288480),di=function(e){function n(n){return e.call(this,n)||this}return(0,t.__extends)(n,e),n.prototype.componentDidMount=function(){var e=this.props,n=e.arePlayerControlsVisible,i=e.game,a=e.theme,o=e.isVideoAdShowing,r=e.videoStats;si.ZO.postContext((0,t.__assign)({arePlayerControlsVisible:n,game:i,theme:a,isVideoAdShowing:o},r))},n.prototype.componentDidUpdate=function(e){var n=this.props,i=n.arePlayerControlsVisible,t=n.game,a=n.theme,o=n.isVideoAdShowing,r=e.game!==t,l=e.theme!==a,s=e.arePlayerControlsVisible!==i,d=e.isVideoAdShowing!==o,u={};this.didVideoStatsChange(e.videoStats)&&Object.assign(u,this.props.videoStats),r&&(u.game=t),l&&(u.theme=a),s&&(u.arePlayerControlsVisible=i),d&&(u.isVideoAdShowing=o),Object.values(u).length>0&&si.ZO.postContext(u)},n.prototype.render=function(){return null},n.prototype.didVideoStatsChange=function(e){var n=this.props.videoStats;return e?!n||Object.keys(n).some((function(i){return n[i]!==e[i]})):!!n},n}(o.Component),ui=function(e){function n(n){var i=e.call(this,n)||this;i.getVideoStatsContext=function(){var e=i.props,n=e.channelLogin,t=e.mediaPlayerInstance;return t?{bitrate:t.getVideoBitRate(),bufferSize:t.getBufferDuration(),displayResolution:””.concat(t.getDisplayWidth(),”x”).concat(t.getDisplayHeight()),hlsLatencyBroadcaster:t.getLiveLatency(),isFullScreen:i.props.isFullScreen,isPaused:i.isVideoPaused(),isTheatreMode:i.props.isTheatreMode,isMuted:i.props.muted,playerChannel:n,videoResolution:””.concat(t.getVideoWidth(),”x”).concat(t.getVideoHeight()),volume:i.props.volume}:null},i.updateVideoStatsContext=function(){var e=i.getVideoStatsContext();e&&i.setState({videoStats:e})},i.isVideoPaused=function(){var e=i.props,n=e.mediaPlayerInstance,t=e.isVideoAdShowing,a=e.isAdPlaying;return t?!a:!!n&&n.isPaused()};var t=i.getVideoStatsContext();return i.state=t?{videoStats:t}:{},i}return(0,t.__extends)(n,e),n.prototype.componentDidMount=function(){this.videoContextUpdateInterval=setInterval(this.updateVideoStatsContext,1e3)},n.prototype.render=function(){var e=this.props,n=e.game,i=e.theme,t=e.isVideoAdShowing,o=e.arePlayerControlsVisible;return(0,a.jsx)(di,{game:n,theme:i,arePlayerControlsVisible:o,isVideoAdShowing:t,videoStats:this.state.videoStats})},n.prototype.componentWillUnmount=function(){clearInterval(this.videoContextUpdateInterval)},n}(o.Component);var ci=(0,r.Zz)((0,Nn.Ng)((function(e){return{isTheatreMode:e.ui.theatreModeEnabled,theme:(0,li.iR)(e)}})),(0,S.dd)((function(e){var n=e.mediaPlayerInstance,i=e.volume,t=e.muted;return{mediaPlayerInstance:n,volume:i,muted:t}})),(0,b.c0)((function(e){return{isFullScreen:e.isFullscreen}})),(0,x.cj)((function(e){var n=e.content;return{channelLogin:(0,de.hd)(n)||””}})))(ui);var mi=i(975387),pi=i(79570),vi=i(736585),hi=i(808681),fi=i(324602),gi=i(86011),ki=i(36935),yi=i(765454),Si={“0qr7fa6llzn4txgnfgb8ipeksd5v24″:{useWEBM:!1,overriddenViewerSummary:”Mouse over the streamer’s cards on the video to see the full card in hi-res!”},”2d2vfk9d8utgo0e9abb4j8p8po70ym”:{useWEBM:!1,overriddenViewerSummary:”Mouse over the video to the see the decklist being played, and mouse over cards in the decklist to see their art and details.”},”7hoqd16sufw9f9h3swlkdt6lqdn3ud”:{useWEBM:!1,overriddenViewerSummary:”Click the purple icon on the video to see this streamer’s favorite streaming gear and other products from Amazon.”},apwln3g3ia45kk690tzabfp525h9e1:{useWEBM:!0,overriddenViewerSummary:”Mouse over minions, heroes and secrets to view the full card art, see the deck the streamer is currently playing and import it into Hearthstone!”},fozlqfmrrdtastjnfxw3pmnqto9zns:{useWEBM:!0,overriddenViewerSummary:”Click the purple icon on the video to see the streamer’s gear, view details on perks, get class info, and more.”},”07kczqwdkjxw6la4j92crc5wyumjxa”:{useWEBM:!0,overriddenViewerSummary:”Mouse over the logo on the left side of the stream to inspect the streamer’s Vault Hunter profile, gear and skills, earn loot discovered in rare chests, and control the game with badass events!”},fdpp9vcx5bsz8osxvqii4i9cumwswd:{useWEBM:!0,overriddenViewerSummary:”Mouse over the left side of the stream to see the streamer’s current gear in real-time.”},d0j6f4h633ds71x7mg5pm7uytj2yi8:{useWEBM:!0,overriddenViewerSummary:”Click the deck icon on the left side of the video to see each player’s decklist. Mouse over cards in the decklist to see their image and rules text.”},d4uvtfdr04uq6raoenvj7m86gdk16v:{useWEBM:!1,overriddenViewerSummary:”Click the blue Prime icon on the video to see what subscriptions & benefits you have available on this channel.”},”9coq5ejlddcho3k014joup6mr2lras”:{useWEBM:!1,overriddenViewerSummary:”Click the helmet icon on the video to see the live map, drop, skirmish, loot and load-out details.”},b761gcvkac6qbwo26ededwf9sluqh0:{useWEBM:!1,overriddenViewerSummary:”Click the red button on the video to view the streamer’s current talents, gear and stats.”},zfh2irvx2jb4s60f02jq0ajm8vwgka:{useWEBM:!1,overriddenViewerSummary:”Click the streamer’s icon on the video to uncover actions they’ve enabled – like song requests, scratchers and more.”},vysfim0ck7k5a65fcr0d0t1x5jllpq:{useWEBM:!0,overriddenViewerSummary:”Click the League of Legends icon on the video to see live game details like the current scoreboard, summoners, build and game history.”}},xi=i(696894),bi=function(e){function n(n){var i=e.call(this,n)||this;return i.renderMenuOpenStatus=function(e){return(0,a.jsx)(E.P,{alignItems:F.k2.Center,children:(0,a.jsx)(E.P,{className:In()(“extensions-dock-card__menu-status”,e&&”extensions-dock-card__menu-status__visible”),margin:{right:.5,left:.5}})})},i.renderCardImage=function(e){var n=i.props.installation,o=i.state.iconUrls,r=n.activationConfig.anchor[0].toUpperCase(),l=””.concat(r).concat((0,xi.bb)(n)),s=!o.length,d=(0,a.jsx)(“div”,{onClick:i.handleClick,onMouseEnter:i.handleMouseOver,onMouseLeave:i.handleMouseOut,className:In()(“extensions-dock-card__image”,e&&”extensions-dock-card__image__visible”,s&&”extensions-dock-card__image__fallback”),children:s?(0,a.jsx)(E.P,{display:F.nl.Flex,alignItems:F.k2.Center,justifyContent:F.A9.Center,children:(0,a.jsx)(pi.M,{size:30,fillColor:”brand”})}):(0,a.jsx)(ke.L,{src:o[o.length-1],alt:l,onError:i.onImageLoadFail,className:In()(“extensions-dock-card__image__img”)})}),u={assignments:{fallback:function(){return(0,a.jsx)(vi.cv,{direction:vi.n5.Left,align:vi.HX.Right,label:n.extension.name,offsetX:”19px”,children:d})},active:function(){return d}},name:”extension_overlay_improvement”,hardcodedAssignment:”control”};return(0,a.jsx)(yi.N,(0,t.__assign)({},u))},i.renderHoverInfo=function(){var e,n=i.props.installation.extension,o=n.viewerSummary,r=n.name,l=n.id,s=(null===(e=Si[l])||void 0===e?void 0:e.overriddenViewerSummary)||o,d=(0,a.jsx)(hi.E,{background:F.VS.Overlay,size:fi.$V.Medium,show:i.props.isHovered&&!i.props.isPopoverOpen,direction:gi.j.LeftCenter,children:(0,a.jsxs)(E.P,{padding:2,children:[(0,a.jsx)(ki.hE,{size:ki.uM.Title,children:r}),(0,a.jsx)(O.N,{children:s})]})}),u={assignments:{fallback:function(){return null},active:function(){return d}},name:”extension_overlay_improvement”,hardcodedAssignment:”control”};return(0,a.jsx)(yi.N,(0,t.__assign)({},u))},i.installationIsVisible=function(){var e=i.props,n=e.installation,t=e.isOverlayVisible,a=e.isPopoverOpen,o=t&&(0,xi.l1)(n),r=a&&(0,xi.yi)(n);return o||r},i.handleClick=function(){var e,n=i.props,t=n.installation,a=n.togglePopover,o=n.trackEvent,r=n.isPopoverOpen,l=”video_overlay”===t.activationConfig.anchor;e=l?r?ai.iN.HideMenu:ai.iN.ViewMenu:r?ai.iN.MinimizeExtension:ai.iN.MaximizeExtension,o(ai.X2.ExtensionDockIconClick,e,ai.si.ExtensionDockIconClick,t),l&&i.isOverlayExperimentActive?i.toggleExtensionInfo():a(t)},i.handleMouseOver=function(){i.props.hoverExtensionCard(i.props.installation)},i.handleMouseOut=function(){i.props.hoverExtensionCard(null)},i.onImageLoadFail=function(){i.setState((function(e){var n=e.iconUrls;return{iconUrls:n.slice(0,n.length-1)}}))},i.getIconUrls=function(e){var n=e.extension.iconUrls.square100,i=[];return n&&i.push(n),i},i.toggleExtensionInfo=function(){var e=i.props,n=e.installation,t=e.isInfoOpen,a=e.setMenuState,o=e.permissionsStates;a((0,xi.MA)(n,o)?t?{type:mi.gu.NONE}:{type:mi.gu.INFO}:{type:mi.gu.UNRELEASED},n)},i.state={iconUrls:i.getIconUrls(i.props.installation)},i}return(0,t.__extends)(n,e),Object.defineProperty(n.prototype,”isOverlayExperimentActive”,{get:function(){return”active”===V.x2.experiments.__hardcodedStaleExperiment(“extension_overlay_improvement”,”control”)},enumerable:!1,configurable:!0}),n.prototype.componentDidUpdate=function(e){(0,xi.wv)(e.installation)!==(0,xi.wv)(this.props.installation)&&this.setState({iconUrls:this.getIconUrls(this.props.installation)})},n.prototype.render=function(){var e=this.installationIsVisible();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(E.P,{margin:{left:0,bottom:1,top:0,right:1},borderRadius:z.Z.Medium,className:”extensions-dock-card”,display:F.nl.Flex,alignItems:F.k2.Center,children:[this.renderMenuOpenStatus(e),this.renderCardImage(e)]}),this.renderHoverInfo()]})},n}(o.Component),Ci=(0,ti.A3)((function(e,n){var i=e.isOverlayVisible,t=e.isPopoverOpen,a=e.togglePopover,o=e.hoverExtensionCard,r=e.isDockIconHovered,l=e.permissionsStates,s=e.trackEvent,d=e.setMenuState,u=e.getMenuState;return{isOverlayVisible:i,isInfoOpen:u(n.installation).type===mi.gu.INFO,isPopoverOpen:t(n.installation),isHovered:r(n.installation),permissionsStates:l,togglePopover:a,hoverExtensionCard:o,trackEvent:s,setMenuState:d}}))(bi);var wi=i(726817),_i=i(48935),Ni=i(684990),Di=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,t.__extends)(n,e),n.prototype.render=function(){return(0,a.jsx)(E.P,{role:”presentation”,padding:{top:1,left:1,right:1,bottom:0},fullHeight:!0,fullWidth:!0,position:F.yX.Absolute,display:F.nl.Flex,flexDirection:F.bo.Column,alignItems:F.k2.Center,overflow:F.nE.Auto,fontSize:F.Z4.Size6,className:In()(this.props.className,”extensions-popover-view-layout”),children:(0,a.jsx)(E.P,{className:In()(“extensions-popover-view-layout__body”),children:this.props.children})})},n}(o.Component),Pi=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.handleClose=function(){var e=n.props,i=e.installation;(0,e.setMenuState)({type:mi.gu.NONE},i)},n}return(0,t.__extends)(n,e),n.prototype.render=function(){return(0,a.jsxs)(Di,{children:[(0,a.jsx)(E.P,{margin:{y:1},children:(0,a.jsx)(O.N,{children:(0,V.hw)(“You must be logged in to use this extension feature.”,”ExtensionsPopoverViewLoggedOutContainer”)})}),(0,a.jsx)(E.P,{fullWidth:!0,display:F.nl.Flex,flexWrap:F.I4.Wrap,justifyContent:F.A9.End,margin:{y:1},children:(0,a.jsx)(E.P,{margin:{bottom:1},children:(0,a.jsx)(Ke.$n,{variant:Ke.VQ.Secondary,onClick:this.handleClose,children:(0,V.hw)(“Close”,”ExtensionsPopoverViewLoggedOutContainer”)})})})]})},n}(o.Component),ji=(0,ti.A3)((function(e){return{setMenuState:e.setMenuState}}))(Pi);var Ii=i(897120),Ei=i(109488),Fi=i.n(Ei),Oi=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,t.__extends)(n,e),n.prototype.render=function(){if(this.props.data.loading)return null;if(!this.props.data.currentUser||null===this.props.data.currentUser.bitsBalance||!this.props.data.extension||!this.props.data.extension.challengeCondition)return this.props.cancelCondition(),null;var e,n=this.props.confirmBitsAmount>this.props.data.currentUser.bitsBalance;n&&(e=(0,a.jsx)(E.P,{display:F.nl.Flex,alignItems:F.k2.Start,margin:{bottom:0},children:(0,a.jsx)(O.N,{color:F.Q1.Error,children:(0,V.hw)(“Please purchase more Bits to participate.”,”ConditionConfirmationInsufficientBitsBalance”)})}));var i=(0,V.hw)(“Bits”,”ConditionConfirmationDialogBitsBalance”),t=(0,a.jsxs)(E.P,{children:[(0,a.jsx)(E.P,{children:(0,a.jsx)(O.N,{fontSize:F.Z4.Size4,children:(0,V.hw)(“You are committing Bits to {conditionName}. These Bits will be deducted immediately.”,{conditionName:this.props.data.extension.challengeCondition.name},”ConditionConfirmationDialogCommitBits”)})}),(0,a.jsxs)(E.P,{margin:{top:1,bottom:1},display:F.nl.Flex,alignItems:F.k2.Center,children:[(0,a.jsx)(Ii.S,{“aria-label”:i}),(0,a.jsx)(O.N,{type:T.M2.Span,fontSize:F.Z4.Size4,bold:!0,children:this.props.confirmBitsAmount})]}),(0,a.jsxs)(E.P,{display:F.nl.Flex,alignItems:F.k2.Center,margin:{bottom:0},children:[(0,a.jsx)(O.N,{type:T.M2.Span,fontSize:F.Z4.Size4,children:(0,V.hw)(“Your current Bits balance is:”,”ConditionConfirmationDialogBitsBalance”)}),(0,a.jsx)(Ii.S,{“aria-label”:i}),(0,a.jsx)(O.N,{type:T.M2.Span,fontSize:F.Z4.Size4,bold:!0,children:this.props.data.currentUser.bitsBalance||0})]}),e,(0,a.jsxs)(E.P,{display:F.nl.Flex,justifyContent:F.A9.Center,margin:{top:2},children:[(0,a.jsx)(E.P,{display:F.nl.Flex,flexGrow:3,margin:{right:.5},children:(0,a.jsx)(Ke.$n,{variant:Ke.VQ.Secondary,fullWidth:!0,onClick:this.props.cancelCondition,children:(0,V.hw)(“Cancel”,”ConditionConfirmationDialogCancel”)})}),(0,a.jsx)(E.P,{display:F.nl.Flex,flexGrow:4,margin:{left:.5},children:(0,a.jsx)(Ke.$n,{variant:Ke.VQ.Primary,fullWidth:!0,”data-test-selector”:”confirmation_message_selector”,onClick:this.props.confirmCondition,disabled:n,children:(0,V.hw)(“Confirm”,”ConditionConfirmationDialogConfirm”)})})]}),(0,a.jsx)(E.P,{borderTop:!0,margin:{top:2,bottom:2}}),(0,a.jsx)(E.P,{margin:{bottom:2},children:(0,a.jsx)(O.N,{type:T.M2.P,fontSize:F.Z4.Size4,children:(0,V.hw)(‘By clicking “Confirm”, you agree to share your Twitch ID with {extensionName}. You can manage account connections under Settings.’,{extensionName:this.props.extensionName},”ConditionConfirmationDialogAgreement”)})}),(0,a.jsx)(E.P,{children:(0,a.jsx)(O.N,{type:T.M2.P,fontSize:F.Z4.Size4,children:(0,V.hw)(“If the {conditionName} is not completed, then the Bits will be returned to your account.”,{conditionName:this.props.data.extension.challengeCondition.name},”ConditionConfirmationDialogBitsRefund”)})})]});return(0,a.jsx)(E.P,{padding:2,children:t})},n}(o.Component),Ti=(0,r.Zz)((0,re._v)(Fi(),{options:function(e){return{variables:{conditionID:e.conditionId,conditionOwnerID:e.conditionOwnerId,extensionID:e.extensionId,extensionVersion:e.extensionVersion}}}}))(Oi),Vi=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.cancelCondition=function(){var e=n.props,i=e.setMenuState,t=e.menuState,a=e.installation;(0,mi.XL)(t)&&(t.confirmationRequest.resultCallback({acceptedCondition:!1,conditionParticipantId:null}),i({type:mi.gu.NONE},a))},n.confirmCondition=function(){var e=n.props,i=e.setMenuState,t=e.menuState,a=e.installation;(0,mi.XL)(t)&&(t.confirmationRequest.resultCallback({acceptedCondition:!0,conditionParticipantId:null}),i({type:mi.gu.NONE},a,!0))},n}return(0,t.__extends)(n,e),n.prototype.render=function(){var e=this.props,n=e.menuState,i=e.installation;if(!(0,mi.XL)(n))return null;var t=n.confirmationRequest.options;return(0,a.jsx)(Di,{children:(0,a.jsx)(Ti,{cancelCondition:this.cancelCondition,confirmCondition:this.confirmCondition,conditionId:t.conditionId,conditionOwnerId:t.conditionOwnerId,confirmBitsAmount:t.bitsAmount,extensionId:i.extension.id,extensionName:i.extension.name,extensionVersion:i.extension.version})})},n}(o.Component),Mi=(0,ti.A3)((function(e,n){var i=e.getMenuState,t=e.setMenuState;return{menuState:i(n.installation),setMenuState:t}}))(Vi);var Ai=i(14668),Li=i(337051),Ri=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.state={notifications:!0},n.cancelLabel=(0,V.hw)(“Cancel”,”ExtensionsPopoverViewFollowContainer”),n.handleCancel=function(){var e=n.props,i=e.installation,t=e.menuState,a=e.setMenuState;(0,mi.GS)(t)&&a({type:mi.gu.NONE},i)},n.handleFollow=function(){var e=n.props,i=e.installation,t=e.menuState,a=e.setMenuState;(0,mi.GS)(t)&&(t.confirmationRequest.resultCallback({didFollow:!0,notifications:n.state.notifications}),a({type:mi.gu.NONE},i,!0))},n.handleNotificationsToggle=function(){n.setState({notifications:!n.state.notifications})},n}return(0,t.__extends)(n,e),n.prototype.render=function(){var e=this.props.menuState;if(!(0,mi.GS)(e))return null;var n=e.confirmationRequest.options,i=n.channel||””;return(0,a.jsx)(Di,{children:n.isFollowing?this.renderAlreadyFollowed(i):this.renderMain(i)})},n.prototype.renderMain=function(e){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(E.P,{margin:{y:1},children:(0,a.jsx)(O.N,{children:(0,V.hw)(“You are about to follow {channel}”,{channel:e||””},”ExtensionsPopoverViewFollowContainer”)})}),(0,a.jsxs)(E.P,{fullWidth:!0,display:F.nl.Flex,flexWrap:F.I4.WrapReverse,justifyContent:F.A9.Center,margin:{y:1},children:[(0,a.jsx)(E.P,{flexGrow:1,margin:{bottom:1,x:.5},children:(0,a.jsx)(Ke.$n,{fullWidth:!0,size:Ke.Mp.Small,variant:Ke.VQ.Secondary,onClick:this.handleCancel,children:this.cancelLabel})}),(0,a.jsx)(E.P,{flexGrow:1,margin:{bottom:1,x:.5},children:(0,a.jsx)(Ke.$n,{fullWidth:!0,size:Ke.Mp.Small,variant:Ke.VQ.Primary,onClick:this.handleFollow,children:(0,V.hw)(“Follow”,”ExtensionsPopoverViewFollowContainer”)})})]}),(0,a.jsxs)(E.P,{margin:{y:1},children:[(0,a.jsx)(Ai.m,{}),(0,a.jsx)(Li.G,{type:Li.M.Toggle,label:(0,V.hw)(“Allow Notifications”,”ExtensionsPopoverViewFollowContainer”),onChange:this.handleNotificationsToggle,checked:this.state.notifications})]}),(0,a.jsx)(E.P,{margin:{y:1},children:(0,a.jsx)(O.N,{children:(0,V.hw)(“Receive updates on this channel’s activity, including when they go live, upload new videos or clips, on mobile, email, and web.”,”ExtensionsPopoverViewFollowContainer”)})})]})},n.prototype.renderAlreadyFollowed=function(e){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(E.P,{margin:{y:1},children:(0,a.jsx)(O.N,{children:(0,V.hw)(“You are already following {channel}”,{channel:e||””},”ExtensionsPopoverViewFollowContainer”)})}),(0,a.jsx)(E.P,{fullWidth:!0,display:F.nl.Flex,flexDirection:F.bo.Row,justifyContent:F.A9.Center,margin:{y:1},children:(0,a.jsx)(E.P,{flexGrow:1,children:(0,a.jsx)(Ke.$n,{fullWidth:!0,size:Ke.Mp.Small,variant:Ke.VQ.Secondary,onClick:this.handleCancel,children:this.cancelLabel})})})]})},n}(o.Component),Bi=(0,ti.A3)((function(e,n){var i=e.getMenuState,t=e.setMenuState;return{menuState:i(n.installation),setMenuState:t}}))(Ri);var Ui=i(368972),zi=i(778634),Wi=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.handleCancel=function(){var e=n.props,i=e.installation;(0,e.setMenuState)({type:mi.gu.NONE},i)},n.handleToggleAccess=function(){var e=n.props,i=e.installation,t=e.setMenuState,a=e.setPermissionsState,o=e.trackEvent,r=e.permissionsStates,l=(0,xi.YU)(i,r),s=l.identityLinkedStatus,d=l.linkIdentity,u=l.unlinkIdentity,c=s===mi.Gy.UNLINKED?mi.Gy.LINK_REQUESTED:mi.Gy.UNLINK_REQUESTED;a(i,{identityLinkedStatus:c}),c===mi.Gy.LINK_REQUESTED&&d&&d(),c===mi.Gy.UNLINK_REQUESTED&&u&&u(),o(ai.X2.MenuOptionClick,c===mi.Gy.UNLINK_REQUESTED?ai.iN.Revoke:ai.iN.Grant,ai.si.ExtensionDockMenuOptionClick,i),t({type:mi.gu.NONE},i)},n}return(0,t.__extends)(n,e),n.prototype.render=function(){var e=this.props,n=e.installation,i=e.permissionsStates,t=(0,xi.YU)(n,i);if(!t||!t.identityLinkedStatus)return null;var o=t.identityLinkedStatus===mi.Gy.LINKED||t.identityLinkedStatus===mi.Gy.LINK_REQUESTED,r=t.identityLinkedStatus===mi.Gy.LINK_REQUESTED||t.identityLinkedStatus===mi.Gy.UNLINK_REQUESTED;return(0,a.jsxs)(Di,{children:[(0,a.jsx)(E.P,{margin:{y:1},children:(0,a.jsx)(O.N,{children:(0,V.hw)(“You are granting this Developer access to your Twitch user ID.”,”ExtensionsPopoverViewManageAccessContainer”)})}),(0,a.jsx)(E.P,{margin:{y:1},children:(0,a.jsx)(O.N,{children:(0,V.hw)(“Allow this extension to know your user ID on Twitch.”,”ExtensionsPopoverViewManageAccessContainer”)})}),(0,a.jsx)(E.P,{margin:{y:1},children:(0,a.jsx)(Ui.i,{label:(0,V.hw)(“Manage Permissions”,”ExtensionsPopoverViewManageAccessContainer”),figure:{icon:zi.C},linkTo:”https://www.twitch.tv/settings/connections”,targetBlank:!0})}),(0,a.jsxs)(E.P,{fullWidth:!0,display:F.nl.Flex,flexDirection:F.bo.Row,flexWrap:F.I4.WrapReverse,justifyContent:F.A9.End,margin:{y:1},children:[(0,a.jsx)(E.P,{flexGrow:1,margin:{bottom:1,x:.5},children:(0,a.jsx)(Ke.$n,{fullWidth:!0,size:Ke.Mp.Small,variant:Ke.VQ.Secondary,onClick:this.handleCancel,children:(0,V.hw)(“Cancel”,”ExtensionsPopoverViewManageAccessContainer”)})}),(0,a.jsx)(E.P,{flexGrow:1,margin:{bottom:1,x:.5},children:(0,a.jsx)(Ke.$n,{fullWidth:!0,size:Ke.Mp.Small,variant:Ke.VQ.Primary,onClick:this.handleToggleAccess,disabled:r,children:o?(0,V.hw)(“Revoke”,”ExtensionsPopoverViewManageAccessContainer”):(0,V.hw)(“Grant”,”ExtensionsPopoverViewManageAccessContainer”)})})]})]})},n}(o.Component),Hi=(0,ti.A3)((function(e){var n=e.permissionsStates,i=e.setPermissionsState,t=e.setMenuState,a=e.trackEvent;return{permissionsStates:n,setPermissionsState:i,setMenuState:t,trackEvent:a}}))(Wi);var Gi=i(726342),Qi=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.handleCancel=function(){var e=n.props,i=e.installation;(0,e.setMenuState)({type:mi.gu.NONE},i)},n.handleConfirm=function(){var e=n.props,i=e.installation,t=e.menuState,a=e.setMenuState;(0,mi.UE)(t)&&(t.confirmationRequest.resultCallback({didConfirm:!0,didUseBits:!1}),a({type:mi.gu.NONE},i,!0))},n}return(0,t.__extends)(n,e),n.prototype.render=function(){var e=this.props,n=e.labelPurchaseIntent,i=e.labelCancel,t=e.labelConfirm,o=e.labelProductName,r=e.labelRemainingBalance,l=e.labelDisclaimer;return(0,a.jsxs)(Di,{children:[(0,a.jsx)(E.P,{margin:{y:1},children:(0,a.jsx)(O.N,{children:n})}),(0,a.jsx)(E.P,{margin:{y:1},children:(0,a.jsx)(O.N,{children:o})}),(0,a.jsx)(E.P,{margin:{y:1},children:(0,a.jsx)(O.N,{children:r})}),(0,a.jsx)(E.P,{margin:{y:1},children:(0,a.jsx)(O.N,{fontSize:F.Z4.Size8,color:F.Q1.Alt2,children:l})}),(0,a.jsxs)(E.P,{fullWidth:!0,display:F.nl.Flex,flexDirection:F.bo.Row,flexWrap:F.I4.WrapReverse,justifyContent:F.A9.Center,margin:{y:1},children:[(0,a.jsx)(E.P,{flexGrow:1,margin:{bottom:1,x:.5},children:(0,a.jsx)(Ke.$n,{fullWidth:!0,size:Ke.Mp.Small,variant:Ke.VQ.Secondary,onClick:this.handleCancel,children:i})}),(0,a.jsx)(E.P,{flexGrow:1,margin:{bottom:1,x:.5},children:(0,a.jsx)(Ke.$n,{fullWidth:!0,size:Ke.Mp.Small,variant:Ke.VQ.Primary,onClick:this.handleConfirm,children:t})})]})]})},n}(o.Component),Zi=(0,ti.A3)((function(e,n){var i=e.getMenuState,t=e.setMenuState;return{menuState:i(n.installation),setMenuState:t}}))(Qi);var qi=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.handleCancel=function(){var e=n.props,i=e.installation;(0,e.setMenuState)({type:mi.gu.NONE},i)},n.handleBuyBits=function(){window.open(“https://www.twitch.tv/bits”)},n}return(0,t.__extends)(n,e),n.prototype.render=function(){var e=this.props,n=e.labelPurchaseIntent,i=e.labelPurchaseAmount,t=e.labelCancel,o=e.labelProductName,r=e.labelBuyBits;return(0,a.jsxs)(Di,{children:[(0,a.jsx)(E.P,{margin:{y:1},children:(0,a.jsx)(O.N,{children:n})}),(0,a.jsx)(E.P,{margin:{y:1},children:(0,a.jsx)(O.N,{children:o})}),(0,a.jsx)(E.P,{margin:{y:1},children:(0,a.jsx)(O.N,{children:i})}),(0,a.jsxs)(E.P,{fullWidth:!0,display:F.nl.Flex,flexDirection:F.bo.Row,flexWrap:F.I4.WrapReverse,justifyContent:F.A9.Center,margin:{y:1},children:[(0,a.jsx)(E.P,{flexGrow:1,margin:{bottom:1,x:.5},children:(0,a.jsx)(Ke.$n,{fullWidth:!0,size:Ke.Mp.Small,variant:Ke.VQ.Secondary,onClick:this.handleCancel,children:t})}),(0,a.jsx)(E.P,{flexGrow:1,margin:{bottom:1,x:.5},children:(0,a.jsx)(Ke.$n,{fullWidth:!0,size:Ke.Mp.Small,onClick:this.handleBuyBits,children:r})})]})]})},n}(o.Component),Xi=(0,ti.A3)((function(e){return{setMenuState:e.setMenuState}}))(qi);var Ki=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,t.__extends)(n,e),n.prototype.render=function(){var e=this.props,n=e.installation,i=(0,e.getMenuState)(n);if(!(0,mi.UE)(i))return null;var o=i.confirmationRequest.options.payload;if(!o)return null;var r=o.bitsRequired||0,l=o.bitsBalance-r,s=(0,a.jsxs)(O.N,{fontSize:F.Z4.Size4,bold:!0,children:[o.extensionItemLabel,” “,(0,a.jsx)(Gi.k,{withImage:!0,animated:!1,count:r}),r]}),d={labelPurchaseIntent:(0,V.hw)(“You are trying to get”,”ExtensionsPopoverViewPurchaseContainer”),labelCancel:(0,V.hw)(“Cancel”,”ExtensionsPopoverViewPurchaseContainer”),labelProductName:s,installation:n};if(l<0){var u=(0,a.jsxs)(O.N,{type:T.M2.Span,children:[(0,a.jsx)(Gi.k,{withImage:!0,animated:!1,count:-l}),-l]}),c=(0,t.__assign)((0,t.__assign)({},d),{labelPurchaseAmount:(0,V.hw)("You need {bitsRequired} to get this item.",{bitsRequired:u},"ExtensionsPopoverViewPurchaseContainer"),labelBuyBits:(0,V.hw)("Buy Bits","ExtensionsPopoverViewPurchaseContainer")});return(0,a.jsx)(Xi,(0,t.__assign)({},c))}var m=(0,a.jsxs)(O.N,{type:T.M2.Span,children:[(0,a.jsx)(Gi.k,{withImage:!0,animated:!1,count:l}),l]}),p=(0,t.__assign)((0,t.__assign)({},d),{labelConfirm:(0,V.hw)("Confirm","ExtensionsPopoverViewPurchaseContainer"),labelRemainingBalance:(0,V.hw)("Your remaining Bits balance will be {bitsRemaining}",{bitsRemaining:m},"ExtensionsPopoverViewPurchaseUpsellPresentation"),labelDisclaimer:(0,V.hw)('By clicking "Confirm" you agree to share your Twitch ID with {extensionName}. You can manage account connections under {settingsLink}',{extensionName:n.extension.name,settingsLink:(0,a.jsx)(gn.Cb,{targetBlank:!0,linkTo:"https://twitch.tv/settings/connections",children:(0,V.hw)("Settings","ExtensionsPopoverViewPurchaseContainer")})},"ExtensionsPopoverViewPurchaseContainer")});return(0,a.jsx)(Zi,(0,t.__assign)({},p))},n}(o.Component),$i=(0,ti.A3)((function(e){return{getMenuState:e.getMenuState}}))(Ki);var Yi=i(941742),Ji=i(876531),et=i(570242),nt=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.trackMenuOptionClick=function(e){return function(){var i=n.props,t=i.installation;(0,i.trackEvent)(ai.X2.MenuOptionClick,e,ai.si.ExtensionDockMenuOptionClick,t)}},n.renderManageAccessOption=function(){var e=n.props,i=e.loginID,t=e.installation,o=e.permissionsStates,r=t&&t.extension.requestIdentityLink,l=(0,xi.YU)(t,o).identityLinkedStatus===mi.Gy.LINKED;return!(0,xi.p$)(t)&&!!i&&(r||l)?(0,a.jsx)(E.P,{margin:{y:1},children:(0,a.jsx)(Ui.i,{label:(0,V.hw)("Manage Access","ExtensionsPopoverViewSettingsContainer"),figure:{icon:zi.C},onClick:n.handleManageAccess})}):null},n.handleMakeExtensionVisible=function(){var e=n.props,i=e.isOverlayVisible,t=e.setOverlayVisibility,a=e.trackEvent;t(!i),a(ai.X2.MenuOptionClick,i?ai.iN.HideOverlay:ai.iN.ViewOverlay,ai.si.ExtensionDockMenuOptionClick,n.props.installation)},n.handleReportExtension=function(){var e=n.props,i=e.installation,t=e.setMenuState;(0,e.trackEvent)(ai.X2.MenuOptionClick,ai.iN.ReportExtension,ai.si.ExtensionDockMenuOptionClick,i),t({type:mi.gu.NONE},i)},n.handleManageAccess=function(){var e=n.props,i=e.installation;(0,e.setMenuState)({type:mi.gu.MANAGE_ACCESS},i)},n}return(0,t.__extends)(n,e),n.prototype.render=function(){var e=this.props,n=e.installation,i=e.isOverlayVisible,t=e.channelID,o=n&&n.extension&&(n.extension.viewerSummary||n.extension.summary)||"";return(0,a.jsxs)(Di,{children:[(0,a.jsx)(E.P,{margin:{y:1},children:(0,a.jsx)(O.N,{children:o})}),(0,xi.l1)(n)&&(0,a.jsx)(E.P,{margin:{y:1},children:(0,a.jsx)(Li.G,{type:Li.M.Toggle,label:(0,V.hw)("Visible","ExtensionsPopoverViewSettingsContainer"),onChange:this.handleMakeExtensionVisible,checked:i})}),(0,a.jsx)(E.P,{margin:{y:1},children:(0,a.jsx)(Ui.i,{label:(0,V.hw)("Add to My Channel","ExtensionsPopoverViewSettingsContainer"),onClick:this.trackMenuOptionClick(ai.iN.ViewDetails),figure:{icon:Yi.Q},linkTo:(0,xi.lK)(n),targetBlank:!0})}),(0,a.jsx)(E.P,{margin:{y:1},children:(0,a.jsx)(Ui.i,{label:(0,V.hw)("Build an Extension","ExtensionsPopoverViewSettingsContainer"),figure:{icon:pi.M},onClick:this.trackMenuOptionClick(ai.iN.BuildExtension),linkTo:"https://dev.twitch.tv/extensions",targetBlank:!0})}),this.renderManageAccessOption(),(0,a.jsx)(E.P,{margin:{y:1},children:t&&(0,a.jsx)(et.Z,{channelID:t,channelLogin:"",reportContext:{contentType:Ji.Cah.EXTENSION_REPORT,contentID:(0,xi.wv)(this.props.installation),trackingContext:"extension_popover_view_settings"},onClick:this.handleReportExtension})})]})},n}(o.Component),it=(0,ti.A3)((function(e){var n=e.loginID,i=e.channelID,t=e.setMenuState,a=e.isOverlayVisible,o=e.setOverlayVisibility,r=e.permissionsStates,l=e.trackEvent;return{loginID:n,channelID:i,setMenuState:t,isOverlayVisible:a,setOverlayVisibility:o,permissionsStates:r,trackEvent:l}}))(nt);var tt=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.handleCancel=function(){var e=n.props,i=e.installation;(0,e.closePopover)(i)},n.handleAccept=function(){var e=n.props,i=e.installation,t=e.setMenuState;(0,e.setPermissionsState)(i,{unreleasedAccepted:!0}),t({type:mi.gu.NONE},i)},n}return(0,t.__extends)(n,e),n.prototype.render=function(){return(0,a.jsxs)(Di,{children:[(0,a.jsx)(E.P,{margin:{y:1},children:(0,a.jsx)(O.N,{children:(0,V.hw)("This is a Test Extension that Twitch has not evaluated; it may not be ready for primetime.","ExtensionsPopoverViewUnreleasedContainer")})}),(0,a.jsxs)(E.P,{margin:{y:1},children:[(0,a.jsx)(O.N,{children:(0,V.hw)("Proceed only if you are familiar with the developer, the Extension, or Channel.","ExtensionsPopoverViewUnreleasedContainer")}),(0,a.jsx)(gn.Cb,{linkTo:"https://help.twitch.tv/customer/portal/articles/2861187-how-to-use-extensions#TestExtViewer",targetBlank:!0,underline:!1,children:(0,V.hw)("Learn More","ExtensionsPopoverViewUnreleasedContainer")})]}),(0,a.jsxs)(E.P,{fullWidth:!0,display:F.nl.Flex,flexDirection:F.bo.Row,flexWrap:F.I4.WrapReverse,justifyContent:F.A9.Center,margin:{y:1},children:[(0,a.jsx)(E.P,{flexGrow:1,margin:{bottom:1,x:.5},children:(0,a.jsx)(Ke.$n,{fullWidth:!0,size:Ke.Mp.Small,variant:Ke.VQ.Secondary,onClick:this.handleCancel,children:(0,V.hw)("Cancel","ExtensionsPopoverViewUnreleasedContainer")})}),(0,a.jsx)(E.P,{flexGrow:1,margin:{bottom:1,x:.5},children:(0,a.jsx)(Ke.$n,{fullWidth:!0,size:Ke.Mp.Small,variant:Ke.VQ.Primary,onClick:this.handleAccept,children:(0,V.hw)("Accept","ExtensionsPopoverViewUnreleasedContainer")})})]})]})},n}(o.Component),at=(0,ti.A3)((function(e){var n=e.closePopover,i=e.setPermissionsState,t=e.setMenuState;return{closePopover:n,setPermissionsState:i,setMenuState:t}}))(tt);var ot=i(145179),rt=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.saveExtensionAPI=function(e){n.unsubscribeFrameEvents(),n.extensionFrameAPI=e,n.addAPICallbacks(),n.subscribeFrameEvents(),n.extensionFrameAPI.setHighlighted(n.props.isDockIconHovered)},n.subscribeFrameEvents=function(){n.extensionFrameAPI&&(n.extensionFrameAPI.on(si.WN.RequestModal,n.onModalRequested),n.extensionFrameAPI.on(si.WN.ShowBitsBalance,n.onShowBitsBalance),n.extensionFrameAPI.on(si.WN.ShowUseBitsSuccess,n.onShowUseBitsSuccess),n.extensionFrameAPI.on(si.WN.IdentityLinked,n.onIdentityLinked),n.extensionFrameAPI.on(si.WN.Minimize,n.onMinimize))},n.unsubscribeFrameEvents=function(){n.extensionFrameAPI&&(n.extensionFrameAPI.off(si.WN.RequestModal,n.onModalRequested),n.extensionFrameAPI.off(si.WN.ShowBitsBalance,n.onShowBitsBalance),n.extensionFrameAPI.off(si.WN.ShowUseBitsSuccess,n.onShowUseBitsSuccess),n.extensionFrameAPI.off(si.WN.IdentityLinked,n.onIdentityLinked),n.extensionFrameAPI.off(si.WN.Minimize,n.onMinimize))},n.onShowBitsBalance=function(){(0,n.props.setNotification)(mi._n.BITS_BALANCE)},n.onShowUseBitsSuccess=function(){(0,n.props.setNotification)(mi._n.BITS_BALANCE,{success:!0})},n.addAPICallbacks=function(){var e=n.extensionFrameAPI,i=e.linkIdentity,t=e.unlinkIdentity,a=n.props,o=a.installation;(0,a.setPermissionsState)(o,{linkIdentity:i,unlinkIdentity:t})},n.removeAPICallbacks=function(){var e=n.props,i=e.installation;(0,e.setPermissionsState)(i,{linkIdentity:void 0,unlinkIdentity:void 0})},n.onIdentityLinked=function(e){var i=n.props,t=i.installation;(0,i.setPermissionsState)(t,{identityLinkedStatus:e?mi.Gy.LINKED:mi.Gy.UNLINKED})},n.onMinimize=function(){var e=n.props,i=e.installation,t=e.isOverlayVisible,a=e.closePopover,o=e.isPopoverOpen,r=e.setOverlayVisibility,l=e.overlayExtension;t&&l&&l.id===i.id&&r(!1),o&&a(i)},n.onModalRequested=function(e){var i=n.props,t=i.installation,a=i.setMenuState;switch(e.action){case si.tv.ConditionConfirmationRequest:a({type:mi.gu.CONDITION_CONFIRMATION,confirmationRequest:e},t);break;case si.tv.FollowAction:a({type:mi.gu.FOLLOW,confirmationRequest:e},t);break;case si.tv.UseBits:a({type:mi.gu.PURCHASE,confirmationRequest:e},t);break;case si.tv.IdShareRequest:a({type:mi.gu.MANAGE_ACCESS},t);break;case si.tv.LoginRequest:a({type:mi.gu.LOGIN_REQUIRED,confirmationRequest:e},t)}},n.handleToggleFullscreen=function(){n.props.isFullscreen?n.props.exitFullscreen():n.props.enterFullscreen()},n}return(0,t.__extends)(n,e),n.prototype.componentDidUpdate=function(e){var n,i;this.extensionFrameAPI&&e.isDockIconHovered!==this.props.isDockIconHovered&&this.extensionFrameAPI.setHighlighted(this.props.isDockIconHovered),((null===(n=this.extensionFrameAPI)||void 0===n?void 0:n.linkIdentity)&&this.props.linkIdentity!==this.extensionFrameAPI.linkIdentity||(null===(i=this.extensionFrameAPI)||void 0===i?void 0:i.unlinkIdentity)&&this.extensionFrameAPI.unlinkIdentity!==this.props.unlinkIdentity)&&this.addAPICallbacks()},n.prototype.componentWillUnmount=function(){this.removeAPICallbacks(),this.unsubscribeFrameEvents()},n.prototype.render=function(){var e=this.props,n=e.channelID,i=e.channelLogin,t=e.installation,o=e.languageCode,r=e.locale,l=e.login,s=e.loginID,d=e.isHidden;return n&&i&&t?(0,a.jsx)(ot.xF,{channelID:n,channelLogin:i,extensionMode:si.Fw.Viewer,installation:t,languageCode:o,locale:r,login:l,loginID:s,saveExtensionAPI:this.saveExtensionAPI,className:"extension-view__iframe",isPopout:!1,isHidden:d,onExtensionDoubleClick:this.handleToggleFullscreen},"".concat(t.id,"-").concat(n)):null},n}(o.Component);var lt,st=(0,r.Zz)((0,Nn.Ng)((function(e){var n=(0,Un.wz)(e);return{languageCode:(0,Un.Ul)(e),locale:(0,Un.JK)(e),login:n&&n.login||null,loginID:n&&n.id||null}})),(0,x.cj)((function(e){return{channelLogin:(0,de.jp)(e.content)}})),(0,ti.A3)((function(e,n){var i=e.isOverlayVisible,t=e.closePopover,a=e.isPopoverOpen,o=e.setOverlayVisibility,r=e.overlayExtension,l=e.channelID,s=e.permissionsStates,d=e.setPermissionsState,u=e.setMenuState,c=e.setNotification,m=e.isDockIconHovered,p=(0,xi.YU)(n.installation,s),v=p.linkIdentity,h=p.unlinkIdentity;return{isOverlayVisible:i,closePopover:t,isPopoverOpen:a(n.installation),setOverlayVisibility:o,overlayExtension:r,channelID:l,setPermissionsState:d,linkIdentity:v,unlinkIdentity:h,setMenuState:u,setNotification:c,isDockIconHovered:m(n.installation)}})),(0,b.c0)((function(e){var n=e.enterFullscreen,i=e.exitFullscreen,t=e.isFullscreen;return{enterFullscreen:n,exitFullscreen:i,isFullscreen:t}})))(rt);!function(e){e.BackButton="popover-nav__back-button",e.SettingsButton="popover-nav__settings-button",e.CloseButton="popover-nav__close-button"}(lt||(lt={}));var dt=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.renderInsufficientSpaceTooltip=function(e){return(0,a.jsx)(E.P,{position:F.yX.Absolute,children:(0,a.jsx)(vi.cv,{direction:vi.n5.Left,align:vi.HX.Right,label:(0,V.hw)("Please expand your player size to use this extension.","ExtensionsPopoverContainer"),offsetY:"-12px",show:e})})},n.renderExtension=function(e){var i=n.props,t=i.installation,o=i.permissionsStates;return(0,xi.yi)(t)&&(0,xi.MA)(t,o)?(0,a.jsx)(st,{isHidden:e,installation:t}):null},n.renderMenu=function(){var e=n.props,i=e.installation,t=e.isMenuOpen,o=e.menuState.type;return!t||n.shouldSkipOverlayPopoverRender()?null:o===mi.gu.SETTINGS?(0,a.jsx)(it,{installation:i}):o===mi.gu.MANAGE_ACCESS?(0,a.jsx)(Hi,{installation:i}):o===mi.gu.PURCHASE?(0,a.jsx)($i,{installation:i}):o===mi.gu.FOLLOW?(0,a.jsx)(Bi,{installation:i}):o===mi.gu.LOGIN_REQUIRED?(0,a.jsx)(ji,{installation:i}):o===mi.gu.CONDITION_CONFIRMATION?(0,a.jsx)(Mi,{installation:i}):o===mi.gu.UNRELEASED?(0,a.jsx)(at,{installation:i}):null},n.getHeaderTitle=function(){return n.props.installation.extension.name},n.handleSettingsClick=function(){var e=n.props,i=e.installation,t=e.isMenuOpen,a=e.setMenuState,o=e.menuState,r=e.trackEvent,l=t&&o.type===mi.gu.SETTINGS;a(l?{type:mi.gu.NONE}:{type:mi.gu.SETTINGS},i),r(ai.X2.ToolbarGearIconClick,l?ai.iN.HideMenu:ai.iN.ViewMenu,ai.si.ExtensionDockToolbarIconClick,i)},n.handleCloseViewClick=function(){var e=n.props,i=e.installation,t=e.setMenuState,a=e.trackEvent;t({type:(0,xi.l1)(i)?mi.gu.SETTINGS:mi.gu.NONE},i),a(ai.X2.ToolbarLeftAngleIconClick,ai.iN.HideMenu,ai.si.ExtensionDockToolbarIconClick,i)},n.handleClosePopoverClick=function(){var e=n.props,i=e.installation,t=e.closePopover,a=e.menuState;(0,e.trackEvent)(ai.X2.ToolbarXIconClick,ai.iN.MinimizeExtension,ai.si.ExtensionDockToolbarIconClick,i),(0,mi.XL)(a)&&a.confirmationRequest.resultCallback(a.confirmationRequest.defaultResult),t(i)},n.shouldSkipOverlayPopoverRender=function(){var e=n.props,i=e.installation,t=e.menuState.type;return"active"===V.x2.experiments.__hardcodedStaleExperiment("extension_overlay_improvement","control")&&(0,xi.l1)(i)&&(t===mi.gu.SETTINGS||t===mi.gu.MANAGE_ACCESS||t===mi.gu.REPORT)},n}return(0,t.__extends)(n,e),n.prototype.render=function(){var e=this.getHeaderTitle(),n=this.props,i=n.visible,t=n.installation,o=n.isMenuOpen,r=n.menuState,l=n.isChannelInfoVisible,s=(0,xi.nZ)(o,this.props.videoDimensions,t,l),d=s.offset,u=s.shouldShow,c=s.extensionSize,m=s.popoverContentSize,p=s.zoom,v={height:"".concat(c.height/p,"px"),width:"".concat(c.width/p,"px"),position:"absolute"},h=(0,xi.l1)(t),f="active"===V.x2.experiments.__hardcodedStaleExperiment("extension_overlay_improvement","control"),g=!h&&!f,k=!h&&o||h&&r.type!==mi.gu.SETTINGS;return this.shouldSkipOverlayPopoverRender()?null:(0,a.jsxs)(a.Fragment,{children:[this.renderInsufficientSpaceTooltip(i&&!u),(0,a.jsx)(E.P,{border:!0,display:i?F.nl.Block:F.nl.Hide,position:F.yX.Relative,className:In()("extensions-popover"),children:(0,a.jsx)(wi.A,{popoverId:"popover-extensions",show:u,size:fi.$V.Auto,direction:gi.j.TopRight,offsetY:"".concat(d,"px"),children:(0,a.jsxs)("div",{style:{width:"".concat(m.width,"px")},children:[(0,a.jsx)(E.P,{display:F.nl.Flex,flexDirection:F.bo.Column,padding:0,fullWidth:!0,children:(0,a.jsxs)(E.P,{display:F.nl.Flex,elevation:1,background:F.VS.Base,children:[(0,a.jsx)(E.P,{display:F.nl.Flex,flexDirection:F.bo.Column,justifyContent:F.A9.Center,className:In()("extensions-popover__icon-slot"),children:k&&(0,a.jsx)(Qe.a2,{"aria-label":(0,V.hw)("Close extension view","ExtensionsPopover"),overlay:!0,icon:Ni.fj,onClick:this.handleCloseViewClick,"data-test-selector":lt.BackButton})}),g&&(0,a.jsx)(E.P,{display:F.nl.Flex,flexDirection:F.bo.Column,justifyContent:F.A9.Center,className:In()("extensions-popover__icon-slot")}),(0,a.jsx)(E.P,{display:F.nl.Flex,flexDirection:F.bo.Column,justifyContent:F.A9.Center,flexGrow:1,flexShrink:1,overflow:F.nE.Hidden,textAlign:F.nO.Center,children:(0,a.jsx)(O.N,{type:T.M2.H6,bold:!0,ellipsis:!0,children:e})}),g&&(0,a.jsx)(E.P,{display:F.nl.Flex,flexDirection:F.bo.Column,justifyContent:F.A9.Center,className:In()("extensions-popover__icon-slot"),children:(0,a.jsx)(Qe.a2,{"aria-label":(0,V.hw)("Extension settings","ExtensionsPopover"),overlay:!0,icon:_i.f,onClick:this.handleSettingsClick,"data-test-selector":lt.SettingsButton})}),(0,a.jsx)(E.P,{display:F.nl.Flex,flexDirection:F.bo.Column,justifyContent:F.A9.Center,className:In()("extensions-popover__icon-slot"),children:(0,a.jsx)(Qe.a2,{"aria-label":(0,V.hw)("Close extension popup","ExtensionsPopover"),overlay:!0,icon:Ze.g,onClick:this.handleClosePopoverClick,"data-test-selector":lt.CloseButton})})]})}),(0,a.jsxs)("div",{style:{height:"".concat(m.height,"px"),position:"relative"},children:[(0,a.jsx)(ri.d,{transformValues:{scale:p},transformOrigin:"rtl"===document.dir?"top right":"top left",style:v,children:this.renderExtension(!i||!u)}),this.renderMenu()]})]})})})]})},n}(o.Component),ut=(0,ti.A3)((function(e,n){var i=e.isMenuOpen,t=e.getMenuState,a=e.isChannelInfoVisible,o=e.permissionsStates,r=e.trackEvent,l=e.setMenuState,s=e.closePopover;return{isMenuOpen:i(n.installation),menuState:t(n.installation),isChannelInfoVisible:a,permissionsStates:o,trackEvent:r,setMenuState:l,closePopover:s}}))(dt);var ct=i(305528),mt=i(19826),pt=i.n(mt),vt=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.renderDemoAsset=function(){var e=n.props,i=e.installation,t=e.extensionsInfoBalloonData,o=Si[i.extension.id];if(t.loading||t.error||!t.extension||!t.extension.screenshotURLs||!t.extension.screenshotURLs[0])return(0,a.jsx)(ct.Or,{});if(o&&o.useWEBM){var r="https://extension-files.twitch.tv/demos/".concat(i.extension.id,"/demo.webm");return(0,a.jsxs)("video",{style:{position:"inherit"},autoPlay:!0,loop:!0,muted:!0,poster:t.extension.screenshotURLs[0],children:[(0,a.jsx)("source",{type:"video/webm",src:r}),(0,V.hw)("Extension Demo Video","ExtensionsInfoBalloon")]})}return(0,a.jsx)(ke.L,{alt:(0,V.hw)("Extension Screenshot","ExtensionsInfoBalloon"),src:t.extension.screenshotURLs[0]})},n.dismissInfo=function(){var e=n.props,i=e.installation;(0,e.setMenuState)({type:mi.gu.NONE},i)},n}return(0,t.__extends)(n,e),n.prototype.render=function(){var e=this.props,n=e.isInfoOpen,i=e.installation,t=Si[i.extension.id],o=(null==t?void 0:t.overriddenViewerSummary)||i.extension.viewerSummary;return(0,a.jsxs)(hi.E,{show:n,background:F.VS.Overlay,size:fi.$V.ExtraLarge,direction:gi.j.LeftCenter,children:[(0,a.jsxs)(E.P,{display:F.nl.Flex,padding:{x:2,top:2,bottom:1},children:[(0,a.jsx)(E.P,{flexGrow:1,children:(0,a.jsx)(ki.hE,{type:T.M2.H4,size:ki.uM.Title,children:"Introducing the ".concat(i.extension.name," Extension!")})}),(0,a.jsx)(E.P,{className:"extensions-info-balloon__close-button",flexGrow:0,children:(0,a.jsx)(Qe.a2,{"aria-label":(0,V.hw)("Close extensions information dialog","ExtensionsInfoBalloon"),icon:Ze.g,onClick:this.dismissInfo})})]}),(0,a.jsx)(E.P,{display:F.nl.Flex,padding:{x:2,bottom:1},children:(0,a.jsx)(O.N,{fontSize:F.Z4.Size6,children:o})}),(0,a.jsx)(E.P,{display:F.nl.Flex,padding:{x:2,bottom:1},children:this.renderDemoAsset()})]})},n}(o.Component);var ht=(0,r.Zz)((0,ti.A3)((function(e,n){var i=e.getMenuState,t=e.setMenuState;return{isInfoOpen:i(n.installation).type===mi.gu.INFO,setMenuState:t}})),(0,re._v)(pt(),{name:"extensionsInfoBalloonData",options:function(e){return{variables:{extensionID:e.installation.extension.id,extensionVersion:e.installation.extension.version}}}}))(vt),ft=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.renderPopovers=function(e,i){var t=n.props.allVideoExtensions.map((function(e){var t=n.props,o=t.playerDimensions,r=t.videoDimensions,l=t.isPopoverOpen,s=t.getMenuState,d=l(e)&&s(e).type!==mi.gu.INFO;return(0,a.jsx)(ut,{visible:d&&i,playerDimensions:o,videoDimensions:r,installation:e},"extensions-dock-popover__".concat((0,xi.wv)(e)))}));return(0,a.jsx)("div",{style:{marginInlineEnd:"".concat(e,"px")},children:t})},n.renderExtensionInfoBalloon=function(){var e=n.props.overlayExtension;return e?(0,a.jsx)(ht,{installation:e}):null},n.renderDockAndIcons=function(e){var i=n.props,t=i.shouldShow,o=i.allVideoExtensions;return(0,a.jsx)(R.e,{type:B.ES.TranslateRight,duration:B.Cf.Long,show:t,alwaysRenderChild:!0,children:(0,a.jsx)(E.P,{display:F.nl.Flex,alignItems:F.k2.Center,className:In()("extensions-dock__dock",["extensions-dock__dock_".concat(t?"visible":"hidden")]),children:(0,a.jsx)(ri.d,{transformValues:{scale:e},transformOrigin:"100% 50%",children:(0,a.jsx)(E.P,{display:F.nl.Flex,background:F.VS.Base,flexDirection:F.bo.Column,borderRadius:z.Z.Medium,padding:{top:1},justifyContent:F.A9.Center,alignItems:F.k2.Center,children:o.map(n.renderExtensionCard)})})})})},n.renderExtensionCard=function(e){return(0,a.jsx)(Ci,{installation:e},"extensions-dock-card__".concat((0,xi.wv)(e)))},n}return(0,t.__extends)(n,e),n.prototype.render=function(){var e=this.props,n=e.isChannelInfoVisible,i=e.hideExtensions,t=(0,xi.pi)(this.props.videoDimensions,n),o=t.shouldShow,r=t.zoom,l=t.xOffset,s=o&&!i;return(0,a.jsx)(fn.e,{theme:this.props.theme,children:(0,a.jsxs)(E.P,{display:s?F.nl.Flex:F.nl.Hide,position:F.yX.Absolute,attachRight:!0,fullHeight:!0,alignItems:F.k2.Center,className:"extensions-dock__layout",children:[this.renderExtensionInfoBalloon(),this.renderPopovers(l,s),this.renderDockAndIcons(r)]})})},n}(o.Component),gt=(0,ti.A3)((function(e){var n=e.isPopoverOpen,i=e.isChannelInfoVisible,t=e.hideExtensions,a=e.allVideoExtensions,o=e.getMenuState,r=e.overlayExtension;return{isPopoverOpen:n,isChannelInfoVisible:i,hideExtensions:t,allVideoExtensions:a,getMenuState:o,overlayExtension:r}}))(ft);var kt=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.shouldShow=function(){var e=n.props,i=e.active,t=e.hideExtensions,a=e.isAnyPopoverOpen;return!t&&(!!i||a)},n}return(0,t.__extends)(n,e),n.prototype.render=function(){var e={playerDimensions:this.props.playerDimensions,videoDimensions:this.props.videoDimensions,shouldShow:this.shouldShow(),theme:"dark"};return(0,a.jsx)(gt,(0,t.__assign)({},e))},n}(o.Component),yt=(0,r.Zz)((0,y.In)((function(e){return{active:e.active}})),(0,ti.A3)((function(e){var n=e.hideExtensions,i=e.isAnyPopoverOpen;return{hideExtensions:n,isAnyPopoverOpen:!!i()}})))(kt);var St=i(577418),xt=i(299070),bt=i(137837),Ct=i.n(bt),wt=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,t.__extends)(n,e),n.prototype.render=function(){var e=this.props,n=e.isExpiring,i=e.showBitsNotification,t=e.showSuccessMessage,o=e.loginID;return n?(0,a.jsx)(R.e,{type:B.ES.TranslateRight,duration:B.Cf.Long,show:i&&void 0!==o,alwaysRenderChild:!0,transitionInitialMount:!0,children:(0,a.jsxs)(E.P,{borderTop:!0,background:F.VS.Overlay,display:F.nl.Block,position:F.yX.Relative,padding:{y:1,x:2},margin:{y:5,x:3},className:"bits-balance-notification",children:[t&&(0,a.jsx)(E.P,{margin:{right:.5},display:F.nl.Inline,className:"extension-notification__success-text",children:this.props.bitsSuccessMessage}),this.props.bitsBalanceMessage]})}):null},n}(o.Component),_t=(0,ti.A3)((function(e){var n=e.loginID,i=(0,e.getNotification)(),t=i.type===mi._n.BITS_BALANCE,a=i.type===mi._n.BITS_BALANCE&&!0===i.success;return{loginID:n,isExpiring:(0,mi.dD)(i),showBitsNotification:t,showSuccessMessage:a}}))(wt);var Nt=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,t.__extends)(n,e),n.prototype.render=function(){var e=this.props.bitsBalanceQuery;if(!e||e.loading||e.error)return null;var n=e.currentUser,i=n&&n.bitsBalance||0,o={bitsBalanceMessage:(0,V.hw)("Bits Balance {bitsCount}",{bitsCount:(0,a.jsx)(Gi.k,{count:i,withImage:!0,withText:!0,animated:!1})},"ExtensionsNotificationBitsBalanceContainer"),bitsSuccessMessage:(0,V.hw)("Success!","ExtensionsNotificationBitsBalanceContainer")};return(0,a.jsx)(_t,(0,t.__assign)({},o))},n}(o.Component),Dt=(0,r.Zz)((0,ti.A3)((function(e){var n=e.channelID,i=e.loginID;return{channelID:n,loginID:i}})),(0,St.n)((function(e){return(0,xt.Y)(Ct(),e.channelID||null,e.loginID||null)})),(0,re._v)(Ct(),{name:"bitsBalanceQuery"}))(Nt);var Pt=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,t.__extends)(n,e),n.prototype.render=function(){return(0,a.jsx)(E.P,{position:F.yX.Absolute,attachRight:!0,attachBottom:!0,alignItems:F.k2.Center,className:"extensions-notifications",children:(0,a.jsx)(Dt,{})})},n}(o.Component),jt=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,t.__extends)(n,e),Object.defineProperty(n.prototype,"videoDimensions",{get:function(){var e=this.props.playerDimensions,n=e.playerHeight,i=e.playerWidth;if(!n||!i)return{videoWidth:0,videoHeight:0};var t=this.aspectRatio,a=i/n>t;return{videoWidth:a?Math.ceil(n*t):i,videoHeight:a?n:Math.ceil(i/t)}},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,”aspectRatio”,{get:function(){var e=this.props.videoDimensions,n=e.videoHeight,i=e.videoWidth;return n&&i?i/n:1.7777777777777777},enumerable:!1,configurable:!0}),n.prototype.render=function(){var e=this.props,n=e.game,i=e.isVideoAdShowing,t=e.hideExtensions,o=e.arePlayerControlsVisible;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(On.h,{children:(0,a.jsxs)(E.P,{className:”video-size passthrough-events”,position:F.yX.Absolute,display:t?F.nl.Hide:F.nl.Block,attachTop:!0,attachLeft:!0,fullWidth:!0,fullHeight:!0,children:[this.renderVideoOverlay(this.videoDimensions),(0,a.jsx)(yt,{playerDimensions:this.props.playerDimensions,videoDimensions:this.videoDimensions}),(0,a.jsx)(Pt,{})]})}),(0,a.jsx)(ci,{game:n,isVideoAdShowing:i,arePlayerControlsVisible:o})]})},n.prototype.renderVideoOverlay=function(e){var n=this.props,i=n.overlayExtension,t=n.shouldShowOverlayExtension,o=n.permissionsStates;if(!i||!(0,xi.MA)(i,o))return null;var r=e.videoWidth,l=e.videoHeight,s={width:””.concat(r,”px”),height:””.concat(l,”px”),display:t?”block”:”none”};return(0,a.jsx)(ri.d,{transformValues:{translateX:Math.floor(-.5*r),translateY:Math.floor(-.5*l)},className:”extensions-video-overlay-size-container”,style:s,children:(0,a.jsx)(st,{isHidden:!t,installation:i})})},n}(o.Component),It=(0,ti.A3)((function(e){var n=e.channelID,i=e.allVideoExtensions,t=e.overlayExtension,a=e.isOverlayVisible,o=e.hideExtensions,r=e.permissionsStates;return{channelID:n,allVideoExtensions:i,overlayExtension:t,hideExtensions:o,shouldShowOverlayExtension:!o&&a,permissionsStates:r}}))(jt);var Et=i(26576),Ft=i(947153),Ot=function(e){var n=e.track,i=e.activeExtensions,t=o.useCallback((function(e){if(“minute-watched”===e.name&&0!==i.length){var t={active_extensions:JSON.stringify(i.map((function(e){return{extension_id:e.id,extension_anchor:e.activationConfig.anchor,extension_slot:e.activationConfig.slot}})))};n(“extensions_active_per_minute_watched”,t)}}),[n,i]);return(0,Et.p)(Ft.a.ANALYTICS_EVENT,t),null},Tt=i(144317),Vt=i.n(Tt),Mt=function(e){function n(n){var i=e.call(this,n)||this;return i.state={},i.trackEvent=function(e,n){var a;switch(e){case ai.si.ExtensionDockIconClick:a=”extension_dock_icon_click”;break;case ai.si.ExtensionDockMenuOptionClick:a=”extension_dock_menu_option_click”;break;case ai.si.ExtensionDockToolbarIconClick:a=”extension_dock_toolbar_icon_click”;break;default:return}i.props.track(a,(0,t.__assign)({},n))},i.handleResize=function(){i.setState(i.getPlayerDimensions())},i.getPlayerDimensions=function(){var e=(0,oi.P)(i.props.videoRef);return{playerWidth:e.width,playerHeight:e.height}},i.state=(0,t.__assign)({},i.getPlayerDimensions()),i}return(0,t.__extends)(n,e),n.prototype.render=function(){var e,n,i,t,o,r,l,s,d,u,c=this.props.data,m=(0,ue.NZ)(this.props.mediaPlayerInstance),p=(null===(i=null===(n=null===(e=null==c?void 0:c.user)||void 0===e?void 0:e.stream)||void 0===n?void 0:n.game)||void 0===i?void 0:i.name)||””;if((null===(r=null===(o=null===(t=null==c?void 0:c.user)||void 0===t?void 0:t.self)||void 0===o?void 0:o.banStatus)||void 0===r?void 0:r.isPermanent)||(null!==(u=null===(d=null===(s=null===(l=null==c?void 0:c.user)||void 0===l?void 0:l.self)||void 0===s?void 0:s.banStatus)||void 0===d?void 0:d.expiresInMs)&&void 0!==u?u:0)>0)return null;if(!this.props.shouldMountExtensionComponents||!this.props.installations.length)return null;var v=this.state,h=v.playerWidth,f=v.playerHeight;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ii.$,{onResize:this.handleResize}),(0,a.jsx)(Ot,{track:this.props.track,activeExtensions:this.props.installations}),(0,a.jsx)(It,{isVideoAdShowing:this.props.isVideoAdShowing,playerDimensions:{playerWidth:h,playerHeight:f},videoDimensions:m,arePlayerControlsVisible:this.props.playerControlsActive,game:p})]})},n}(o.Component);var At=(0,r.Zz)((0,l.X)({name:”ExtensionsOverlayContainer”}),(0,Nn.Ng)((function(e){var n=(0,Un.wz)(e);return{loginID:n&&n.id||void 0,isTheatreMode:e.ui.theatreModeEnabled}})),(0,x.cj)((function(e){var n=(0,_.wk)({playerPublicPropsContext:e});return{channelLogin:(0,de.jp)(e.content),parentChannelID:(0,de.b3)(e.content),isMini:!!n.mini,showChannelInfoOnHover:n.showChannelInfoOnHover}})),(0,S.dd)((function(e){return{mediaPlayerInstance:e.mediaPlayerInstance}})),(0,q.o1)(),(0,b.c0)((function(e){var n=e.isFullscreen,i=e.videoRef;return{isFullscreen:n,videoRef:i}})),(0,y.In)((function(e){return{playerControlsActive:!!e.active}})),(0,C.AP)((function(e){return{isPlaying:e.isPlaying}})),(0,h.VX)((function(e){return{isVideoAdShowing:(0,w.cz)(e.videoAdMetadata)}})),(0,f.vM)((function(e){return{isCasting:(0,f.mh)(e)}})),(0,re._v)(Vt(),{skip:function(e){return!e.channelLogin},options:function(e){return{variables:{channelLogin:e.channelLogin}}}}),(0,ti.A3)((function(e){var n=e.shouldMountExtensionComponents,i=e.allVideoExtensions;return{shouldMountExtensionComponents:n,installations:i}})))(Mt);var Lt,Rt=i(253283),Bt=i(42820),Ut=i(746821),zt=i(339563),Wt=i(265788),Ht=i(73745),Gt=i.n(Ht),Qt=function(e){return!!(e.user&&e.user.self&&e.user.self.follower&&null!==e.user.self.follower.disableNotifications)},Zt=function(e){return!(e.user&&e.user.self&&e.user.self.follower&&null!==e.user.self.follower.disableNotifications)||e.user.self.follower.disableNotifications};!function(e){e.FollowPanelOverlay=”follow-panel-overlay”}(Lt||(Lt={}));var qt=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.state={userOriginallyFollowedWithNotifications:!1},n.handleFollow=function(){var e=n.props.offlineChannelNotificationPromptLoginAction;return e===zt.vS.Modal?n.showAuthModalIfNotLoggedIn():e===zt.vS.Navigate?n.openAuthPageIfNotLoggedIn():void 0},n.openAuthPageIfNotLoggedIn=function(){if(!n.props.isLoggedIn){if(!(n.props.data&&n.props.data.user&&n.props.data.user.login))return;var e=n.props.data.user.login,i=(0,Rt.SQ)(“/”.concat(e));window.open(“https://www.twitch.tv”.concat(i),”_blank”)}},n.showAuthModalIfNotLoggedIn=function(){n.props.isLoggedIn||n.props.showAuthModal()},n}return(0,t.__extends)(n,e),n.prototype.componentDidMount=function(){this.props.data&&!this.props.data.loading&&this.setUserOriginallyFollowed(this.props.data)},n.prototype.componentDidUpdate=function(e){e.data&&!e.data.loading||!this.props.data||this.props.data.loading||this.setUserOriginallyFollowed(this.props.data)},n.prototype.render=function(){var e=this.props.liveChannelLogin,n=In()(“follow-panel-overlay”,{“follow-panel-overlay–with-top-offset”:this.props.streamInfoShowing});return this.shouldRender()?(0,a.jsx)(R.e,{show:!0,type:B.ES.SlideOverTop,transitionInitialMount:!0,injectChild:!0,children:(0,a.jsxs)(E.P,{className:n,”data-test-selector”:Lt.FollowPanelOverlay,display:F.nl.Flex,flexDirection:F.bo.Column,alignItems:F.k2.Start,position:F.yX.Absolute,elevation:1,background:F.VS.Overlay,borderRadius:z.Z.Small,padding:1,children:[(0,a.jsx)(O.N,{color:F.Q1.Overlay,fontSize:F.Z4.Size4,children:(0,V.hw)(“Follow and get notified when {channelLogin} is live”,{channelLogin:e},”FollowPanelOverlay”)}),(0,a.jsx)(E.P,{margin:{top:1},children:(0,a.jsx)(Wt.F6,{userID:this.props.data.user.id,isFollowingUser:Qt(this.props.data),notificationsDisabled:Zt(this.props.data),onFollow:this.handleFollow})})]})}):null},n.prototype.shouldRender=function(){return!this.props.channelIsSelf&&(!!this.props.liveChannelLogin&&(!(!this.props.data||!this.props.data.user)&&(!this.props.data.loading&&!this.props.data.error&&(!this.state.userOriginallyFollowedWithNotifications&&(!this.props.streamInfoShowing||!this.props.socialPanelShowing)))))},n.prototype.setUserOriginallyFollowed=function(e){var n=Qt(e)&&!Zt(e);this.setState({userOriginallyFollowedWithNotifications:n})},n}(o.Component);var Xt=(0,r.Zz)((0,l.X)({name:”FollowPanelOverlay”}),(0,x.cj)((function(e){var n;return{socialPanelShowing:void 0!==(null===(n=e.behaviors)||void 0===n?void 0:n.socialPanelType),liveChannelLogin:(0,de.jp)(e.content),offlineChannelNotificationPromptLoginAction:(0,_.wk)({playerPublicPropsContext:e}).offlineChannelNotificationPromptLoginAction}})),(0,b.c0)((function(e){return{streamInfoShowing:e.streamInfoShowing}})),(0,re._v)(Gt(),{options:function(e){var n;return{variables:{channelLogin:null!==(n=e.liveChannelLogin)&&void 0!==n?n:””},skip:!e.liveChannelLogin}}}),(0,Nn.Ng)((function(e,n){var i=(0,Un.wz)(e);return{channelIsSelf:!(!i||i.login!==n.liveChannelLogin),isLoggedIn:(0,Un.M3)(e)}}),(function(e,n){return{showAuthModal:function(){if(n.data&&n.data.user){var i=(0,Ut.$5)(Bt.W.NotificationBell,{showContext:!0,targetChannel:n.liveChannelLogin});e(i)}}}})))(qt),Kt=i(699737),$t=i(574570),Yt=i(124751),Jt=i(898791),ea=i(548271),na=i(494693),ia=i(196476);function ta(e,n){var i=e.value,t=e.valueAlt;return(0,a.jsxs)(o.Fragment,{children:[(0,a.jsxs)(O.N,{type:T.M2.Span,children:[i,t&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(O.N,{color:F.Q1.Alt,type:T.M2.Span,children:” / “}),t]})]}),n&&(0,a.jsx)(O.N,{color:F.Q1.Alt,type:T.M2.Span,children:” , “})]},i)}var aa,oa=(0,l.X)({name:”KeyboardShortcutsOverlay”})((function(){var e=(0,o.useContext)(b._t).hideKeyboardShortcuts,n=(0,o.useContext)(x.kl).content,i=(0,o.useRef)(null),t=(0,o.useMemo)((function(){var e=[{message:(0,V.hw)(“Pause/Play”,”KeyboardShortcutsOverlayComponent”),values:{value:(0,V.hw)(“Space/k”,”KeyboardShortcutsOverlayComponent”)}},(0,de.DG)(n)?void 0:{message:(0,V.hw)(“Back/Forward {count} seconds”,{count:(0,de.Jn)(n)?ia.Jn:ia.aS},”KeyboardShortcutsOverlayComponent”),values:[{value:”←”,valueAlt:”→”},{value:”j”,valueAlt:”l”}]},(0,de.DG)(n)?void 0:{message:(0,V.hw)(“Slow down/Speed up”,”KeyboardShortcutsOverlayComponent”),values:{value:”,”,valueAlt:”.”}},{message:(0,V.hw)(“Change Volume”,”KeyboardShortcutsOverlayComponent”),values:{value:(0,V.hw)(“shift+↑”,”KeyboardShortcutsOverlayComponent”),valueAlt:(0,V.hw)(“shift+↓”,”KeyboardShortcutsOverlayComponent”)}},(0,de.Jn)(n)?void 0:{message:(0,V.hw)(“Mute”,”KeyboardShortcutsOverlayComponent”),values:{value:”m”}},{message:(0,V.hw)(“Toggle Fullscreen”,”KeyboardShortcutsOverlayComponent”),values:{value:”f”}},{message:(0,V.hw)(“Exit Fullscreen”,”KeyboardShortcutsOverlayComponent”),values:{value:(0,V.hw)(“Esc”,”KeyboardShortcutsOverlayComponent”)}},{message:(0,V.hw)(“Show this menu”,”KeyboardShortcutsOverlayComponent”),values:{value:”?”}}];return(0,na.jP)(e)}),[n]);(0,o.useEffect)((function(){i.current&&i.current.focus()}),[]);var r=(0,V.hw)(“Keyboard Shortcuts”,”KeyboardShortcutsOverlayComponent”);return(0,a.jsx)(fn.e,{theme:”dark”,children:(0,a.jsx)(“div”,{style:{width:300,position:”absolute”},children:(0,a.jsx)(E.P,{background:F.VS.Base,elevation:1,color:F.Q1.Base,children:(0,a.jsx)(En.u,{section:”global”,id:”keyboard-shortcuts-overlay”,icon:Kt.f,label:r,children:(0,a.jsx)($t.X,{ref:i,tabIndex:-1,children:(0,a.jsxs)(Yt.B,{children:[(0,a.jsxs)(Jt.H,{children:[(0,a.jsx)(ea.n,{padding:.5,children:r}),(0,a.jsx)(ea.n,{textAlign:F.nO.Right,padding:.5,children:(0,a.jsx)(Ke.$n,{variant:Ke.VQ.Text,icon:Ze.g,”aria-label”:(0,V.hw)(“Close Keyboard Shortcuts”,”KeyboardShortcutsOverlayComponent”),onClick:e})})]}),t.map((function(e,n){var i=e.message,t=function(e){return Array.isArray(e)?e.map((function(n,i){return ta(n,i=480?80:Math.round(u.getDisplayHeight()*(1/6)):60};if((0,o.useEffect)((function(){if(r&&i)return I(Y.t.Play)}),[i,I,r]),(0,o.useEffect)((function(){if(t&&!i)return I(Y.t.MiniPlayerPause)}),[i,I,t]),(0,oe.S)((function(){j.current=!0})),!s&&!d)return(0,a.jsx)(sa,{});if(!N&&i)return null;var T=(0,V.hw)(“Play”,”LastActionOverlay”);return(0,a.jsx)(M.FT,{type:M.NL.Fullscreen,transparency:M.xL.Transparency10,children:(0,a.jsxs)(E.P,{position:F.yX.Relative,display:F.nl.Flex,alignItems:F.k2.Center,justifyContent:F.A9.Center,height:”100%”,width:”100%”,children:[(0,a.jsx)(U.S,{position:F.yX.Absolute,height:”100%”,width:”100%”,attachTop:!0,attachRight:!0,attachBottom:!0,attachLeft:!0,children:(0,a.jsx)(W.M,{onClick:function(){!1===i&&n({userTriggered:!0})},onDoubleClick:function(){f||(m?v():p())},”aria-label”:T})}),(0,a.jsx)(R.e,{show:k,type:[B.ES.ScaleOver,B.ES.Fade],duration:[B.Cf.Long,B.Cf.Short],onEnterComplete:function(){clearTimeout(P.current),P.current=setTimeout((function(){y(!1)}),500)},onExitComplete:function(){D(null),clearTimeout(P.current),P.current=void 0},transitionInitialMount:!0,children:N&&(0,a.jsx)(E.P,{display:F.nl.Flex,alignItems:F.k2.Center,justifyContent:F.A9.Center,background:F.Q1.Overlay,borderRadius:z.Z.Rounded,color:F.Q1.Overlay,padding:1,children:(0,a.jsx)(ra.t,{asset:N,type:ra.H.Inherit,width:O(),height:O()})})})]})})},ca=i(848737),ma=i(628458);!function(e){e.PlayPauseButton=”mini-overlay-play-pause-button”}(da||(da={}));var pa=(0,r.Zz)((0,l.X)({name:”MiniOverlay”}),(0,S.dd)((function(e){return{playbackRestricted:(0,ue.k1)(e)}})),(0,x.cj)((function(e){return{mini:(0,_.wk)({playerPublicPropsContext:e}).mini}})),(0,C.AP)((function(e){return{isPlaying:e.isPlaying,pause:e.pause,play:e.play}})),(0,y.In)((function(e){return{playerControlsActive:!!e.active}})))((function(e){var n=e.isPlaying,i=e.mini,t=e.pause,o=e.play,r=e.playbackRestricted,l=e.playerControlsActive;if(!i)return null;var s=n?(0,V.hw)(“Pause”,”VideoPlayerMiniOverlay”):(0,V.hw)(“Play”,”VideoPlayerMiniOverlay”),d=n?Y.t.MiniPlayerPause:Y.t.MiniPlayerPlay;return(0,a.jsx)(R.e,{type:B.ES.Fade,show:l,alwaysRenderChild:!0,children:(0,a.jsxs)(M.FT,{transparency:M.xL.Transparency6,type:M.NL.Fullscreen,children:[(0,a.jsxs)(E.P,{className:”mini-overlay__title”,background:F.VS.Overlay,alignItems:F.k2.Center,display:F.nl.Flex,flexDirection:F.bo.Row,flexWrap:F.I4.NoWrap,justifyContent:F.A9.Between,padding:{y:.5,right:.5},fullWidth:!0,children:[(0,a.jsx)(E.P,{ellipsis:!0,margin:{x:1},children:(0,a.jsx)(O.N,{fontSize:F.Z4.Size4,type:T.M2.Span,children:i.title})}),(0,a.jsx)(E.P,{flexShrink:0,children:(0,a.jsx)(Qe.a2,{“aria-label”:(0,V.hw)(“Dismiss Mini Player”,”VideoPlayerMiniOverlay”),icon:Ze.g,onClick:i.onClickDismiss,overlay:!0})})]}),(0,a.jsxs)(E.P,{display:F.nl.Flex,alignItems:F.k2.Center,flexDirection:F.bo.Row,justifyContent:F.A9.Center,fullHeight:!0,fullWidth:!0,children:[(0,a.jsx)(Qe.a2,{“aria-label”:(0,V.hw)(“Expand Player”,”VideoPlayerdMiniOverlay”),icon:ma.i,onClick:i.onClickExpand,overlay:!0,size:qe.f.Large}),(0,a.jsx)(E.P,{margin:{left:2},children:(0,a.jsx)(Qe.a2,{“aria-label”:r?(0,V.hw)(“Playback restricted”,”VideoPlayerMiniOverlay”):s,disabled:r,icon:d,onClick:function(){n?t({userTriggered:!0}):o({userTriggered:!0})},overlay:!0,size:qe.f.Large,”data-a-target”:da.PlayPauseButton})})]})]})})}));var va,ha=i(844023);!function(e){e.DismissButton=”muted-segments-alert-overlay-presentation__dismiss-button”,e.PositionWrapper=”muted-segments-alert-overlay-presentation__wrapper”,e.ScrollWrapper=”muted-segments-alert-overlay-presentation__scroll-wrapper”}(va||(va={}));var fa=function(e){var n=o.useRef(e.bottomControlsShowing),i=function(e){var n=e.bottomControlsShowing,i=e.bottomControlsShown;return{positionWrapperClasses:In()({“muted-segments-alert__position-wrapper”:!0,”muted-segments-alert__position-wrapper–bottom-controls-offset”:n}),scrollWrapperClasses:In()({“muted-segments-alert__scroll-wrapper”:!0,”muted-segments-alert__scroll-wrapper–bottom-controls-in”:n,”muted-segments-alert__scroll-wrapper–bottom-controls-out”:!n&&i})}}({bottomControlsShowing:e.bottomControlsShowing,bottomControlsShown:n.current}),t=i.positionWrapperClasses,r=i.scrollWrapperClasses;return e.bottomControlsShowing&&(n.current=!0),(0,a.jsx)(E.P,{className:t,position:F.yX.Absolute,display:F.nl.Flex,flexDirection:F.bo.ColumnReverse,alignItems:F.k2.Center,”data-test-selector”:va.PositionWrapper,attachTop:!0,attachBottom:!0,attachLeft:!0,attachRight:!0,children:(0,a.jsx)(ha.Vq,{“data-test-selector”:va.ScrollWrapper,className:r,children:(0,a.jsxs)(E.P,{background:F.VS.Overlay,padding:{x:.5},className:”muted-segments-alert__content”,display:F.nl.Flex,border:!0,children:[(0,a.jsx)(U.S,{padding:{y:1,left:1},children:(0,a.jsx)(O.N,{children:(0,V.hw)(“Audio for portions of this video has been muted as it appears to contain copyrighted content owned or controlled by a third party.”,”MutedSegmentsAlert”)})}),(0,a.jsx)(E.P,{flexShrink:0,padding:{y:.5},children:(0,a.jsx)(Qe.a2,{“aria-label”:(0,V.hw)(“Dismiss muted audio notice”,”MutedSegmentsAlert”),icon:Ze.g,onClick:e.onDismissClick,overlay:!0,”data-test-selector”:va.DismissButton})})]})})})},ga=i(565582),ka=i.n(ga),ya=”twilight.mutedSegmentsAlertDismissed”,Sa=function(e){function n(n){var i=e.call(this,n)||this;return i.handleDismissClick=function(){i.setState({isDismissed:!0}),V.VS.set(ya,!0)},i.state={isDismissed:V.VS.get(ya,!1)},i}return(0,t.__extends)(n,e),n.prototype.render=function(){var e=this.props.data;return!e||e.loading||e.error||!function(e){var n=e.video;return n&&n.muteInfo&&n.muteInfo.mutedSegmentConnection&&n.muteInfo.mutedSegmentConnection.nodes&&n.muteInfo.mutedSegmentConnection.nodes.length>0}(e)||this.state.isDismissed?null:(0,a.jsx)(fa,{bottomControlsShowing:this.props.bottomControlsShowing,onDismissClick:this.handleDismissClick})},n}(o.Component);var xa=(0,r.Zz)((0,l.X)({name:”MutedSegmentsAlertOverlay”}),(0,x.cj)((function(e){var n=(0,_.wk)({playerPublicPropsContext:e}),i=(0,_.Rh)({playerPublicPropsContext:e});return{vodID:(0,de.hq)(i),includePrivateVODs:n.includePrivateVODs}})),(0,re._v)(ka(),{options:function(e){return{variables:{vodID:e.vodID,includePrivate:e.includePrivateVODs||!1}}},skip:function(e){return!e.vodID}}))(Sa),ba=i(769299),Ca=i.n(ba),wa=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.getBannerUrl=function(){if(n.props.data&&n.props.data.user)return n.props.data.user.offlineImageURL?n.props.data.user.offlineImageURL:void 0},n}return(0,t.__extends)(n,e),n.prototype.render=function(){var e=this.getBannerUrl();return e?(0,a.jsx)(“div”,{style:{backgroundColor:”#19171c”,backgroundImage:”url(“.concat(e,”)”),width:”100%”,height:”100%”,backgroundPosition:”50%”,backgroundRepeat:”no-repeat”,backgroundSize:”contain”}}):null},n}(o.Component);var _a=(0,r.Zz)((0,l.X)({name:”OfflineBannerOverlay”}),(0,x.cj)((function(e){var n=(0,_.Rh)({playerPublicPropsContext:e});return{liveChannelLogin:(0,de.jp)(n)}})),(0,re._v)(Ca(),{skip:function(e){return!e.liveChannelLogin},options:function(e){var n;return{variables:{login:null!==(n=e.liveChannelLogin)&&void 0!==n?n:””}}}}))(wa),Na=i(416290),Da=i(391186),Pa=i(478889),ja=i(47149),Ia=i(310006),Ea=i(29896),Fa=i(469101),Oa=i(475103),Ta=i(166012),Va=i(359064),Ma=i.n(Va),Aa=s.x.wrap((function(){return i.e(89438).then(i.bind(i,538985))}),”OfflineEmbedChannelInfo”),La=s.x.wrap((function(){return Promise.all([i.e(70536),i.e(11450),i.e(51289)]).then(i.bind(i,479629))}),”OfflineEmbedScheduleSegment”);function Ra(){var e,n,i,t,r,l,s,d,u,c,m,p,v,h,f=(0,o.useContext)(x.kl).content,g=(0,o.useState)(window.innerWidth<=600),k=g[0],y=g[1],S=null!==(e=(0,de.hd)(f))&&void 0!==e?e:"",b=(0,o.useRef)((0,le.aq)()),C=(0,Ea.IT)(Ma(),{variables:{login:null!=S?S:""},skip:!S}),w=C.data,_=C.loading,N=(null===(n=null==w?void 0:w.user)||void 0===n?void 0:n.id)||"",D=null===(l=null===(r=null===(t=null===(i=null==w?void 0:w.user)||void 0===i?void 0:i.channel)||void 0===t?void 0:t.schedule)||void 0===r?void 0:r.segmentList)||void 0===l?void 0:l.edges,P=null===(c=null===(u=null===(d=null===(s=null==w?void 0:w.user)||void 0===s?void 0:s.videos)||void 0===d?void 0:d.edges)||void 0===u?void 0:u[0])||void 0===c?void 0:c.node,j=null==D?void 0:D.filter((function(e){var n;return!(null===(n=null==e?void 0:e.node)||void 0===n?void 0:n.isCancelled)})).slice(0,2),I=j&&j.length>0,M=P&&!I&&!k,A=I&&!k,L=(0,Fa.g)(null==P?void 0:P.previewThumbnailURL),R=(0,o.useState)(!1),B=R[0],U=R[1];return(0,o.useEffect)((function(){U(!w||!N||!S)}),[w,N,S]),B&&!_?(0,a.jsx)(Ia.PageNotFound,{openInNewTab:!0}):(0,a.jsxs)(“div”,{className:”offline-embeds”,style:{backgroundImage:”url(“.concat(null!==(p=null===(m=null==w?void 0:w.user)||void 0===m?void 0:m.bannerImageURL)&&void 0!==p?p:null===(v=null==w?void 0:w.user)||void 0===v?void 0:v.offlineImageURL,”)”)},children:[(0,a.jsx)(ii.$,{onResize:function(e,n){e&&n&&y(e<=775||n<=300)}}),(0,a.jsxs)(E.P,{alignItems:F.k2.Center,display:F.nl.Flex,fullHeight:!0,children:[(0,a.jsx)(E.P,{display:F.nl.Flex,className:A?"offline-embeds--stream-schedule-exists":void 0,children:(0,a.jsx)(Aa,{channelLogin:S,offlineSessionID:b.current,showSmallOverlay:k,customBackground:I&&!k?F.VS.Overlay:void 0})}),A&&(0,a.jsx)("div",{style:{marginTop:Ba(null==j?void 0:j.length),zIndex:0},children:(0,a.jsxs)(E.P,{className:"offline-embeds--schedule",display:F.nl.Flex,flexDirection:F.bo.Column,justifyContent:F.A9.Center,padding:{left:2,right:3,bottom:2},children:[(0,a.jsxs)(E.P,{display:F.nl.Flex,justifyContent:F.A9.Between,children:[(0,a.jsx)(E.P,{className:"offline-embeds--upcoming-streams",padding:{left:1,top:2,bottom:1},display:F.nl.InlineBlock,children:(0,a.jsx)(O.N,{type:T.M2.H4,children:(0,V.hw)("Upcoming Streams:","OfflineEmbedsOverlay")})}),(0,a.jsx)(E.P,{className:"offline-embeds--stylized-link",display:F.nl.Flex,alignItems:F.k2.Center,padding:{top:2,bottom:1},children:(0,a.jsx)(gn.Cb,{linkTo:(0,Oa.V)({content:"offline_embed_full_schedule",medium:"embed"},(0,Ta.VV)("/".concat(S,"/schedule"))),targetBlank:!0,variant:gn.KD.Inherit,hoverColorInherit:!0,underline:!1,children:(0,a.jsx)(O.N,{type:T.M2.H5,bold:!0,children:(0,V.hw)("Full Schedule","OfflineEmbedsOverlay")})})})]}),j&&j.map((function(e){var n,i,t,o,r,l,s,d;return(0,a.jsx)(E.P,{className:"offline-embeds--schedule-segment",display:F.nl.Flex,flexDirection:F.bo.Column,justifyContent:F.A9.Center,margin:{x:.5,bottom:1},style:(null===(n=null==w?void 0:w.user)||void 0===n?void 0:n.primaryColorHex)?{"border-left":"0.5rem solid ".concat((0,ja.ZA)(null===(i=null==w?void 0:w.user)||void 0===i?void 0:i.primaryColorHex))}:void 0,fullWidth:!0,children:(0,a.jsx)(La,{channelID:N,channelLogin:S,displayName:null!==(o=null===(t=null==w?void 0:w.user)||void 0===t?void 0:t.displayName)&&void 0!==o?o:S,endAt:e.node.endAt||void 0,gameName:null===(l=null===(r=e.node.categories)||void 0===r?void 0:r[0])||void 0===l?void 0:l.name,hasReminder:e.node.hasReminder,id:e.node.id,previewImageURL:(null===(d=null===(s=e.node.categories)||void 0===s?void 0:s[0])||void 0===d?void 0:d.boxArtURL)||void 0,startAt:new Date(e.node.startAt),title:e.node.title},e.node.id)},e.node.id)}))]})}),M&&(0,a.jsx)(E.P,{display:F.nl.Flex,fullWidth:!0,margin:{bottom:3,x:1},children:(0,a.jsx)("div",{style:{width:"37rem",marginInlineStart:"-3rem",marginTop:"6rem"},children:(0,a.jsx)(Na.Z,{image:(0,a.jsx)(gn.Cb,{linkTo:(0,Oa.V)({content:"embed_vod",medium:"embed"},(0,Ta.VV)("/videos/".concat(null==P?void 0:P.id))),targetBlank:!0,underline:!1,children:(0,a.jsx)(Da.G,{bottomLeft:null!==(h=null==P?void 0:P.title)&&void 0!==h?h:"",cover:(0,a.jsx)(E.P,{background:F.VS.Overlay,fullWidth:!0,fullHeight:!0,display:F.nl.Flex,flexDirection:F.bo.Column,justifyContent:F.A9.Center,alignItems:F.k2.Center,children:(0,a.jsx)(Pa.Z,{size:44})}),image:L?(0,a.jsx)(ke.L,{src:(null==P?void 0:P.previewThumbnailURL)||"",alt:(null==P?void 0:P.title)||""}):(0,a.jsx)(ct.Or,{height:56,width:100})})})})})})]})]})}function Ba(e){switch(e){case 2:return"6%";case 1:return"-9%";default:return"0%"}}var Ua=(0,q.o1)()((function(e){var n=function(e){var n;n=e.width<=580?2:e.width<=760?3:6,e.videos.length500&&e.width<970&&1===n;return{visibleVideos:e.videos.slice(0,n),isHorizontalLayout:t,numberOfCards:n,numberOfColumns:i}}(e),i=n.visibleVideos,t=n.numberOfCards,o=n.numberOfColumns,r=n.isHorizontalLayout,l=function(e,n){return(0,a.jsxs)(a.Fragment,{children:[e&&(0,a.jsx)(O.N,{fontSize:F.Z4.Size6,ellipsis:!0,bold:!0,color:F.Q1.OverlayAlt,children:e}),n&&(0,a.jsx)(O.N,{fontSize:F.Z4.Size6,ellipsis:!0,color:F.Q1.OverlayAlt,children:n})]})};return(0,a.jsx)(M.FT,{transparency:M.xL.Transparency1,type:M.NL.Fullscreen,children:(0,a.jsxs)(E.P,{className:"other-vods__container",margin:{top:2,left:2,right:2},position:F.yX.Absolute,display:F.nl.Flex,flexDirection:F.bo.Column,attachTop:!0,attachLeft:!0,attachBottom:!0,attachRight:!0,children:[(0,a.jsxs)(E.P,{display:F.nl.Flex,justifyContent:F.A9.Center,children:[(0,a.jsx)(O.N,{type:e.width>500?T.M2.H4:T.M2.H5,color:F.Q1.Overlay,children:e.title}),(0,a.jsx)(E.P,{attachRight:!0,position:F.yX.Absolute,children:(0,a.jsx)(Qe.a2,{“aria-label”:(0,V.hw)(“Close videos list”,”OtherVods”),icon:Ze.g,overlay:!0,onClick:e.onClose})})]}),(0,a.jsx)(E.P,{className:”other-vods__grid-container”,margin:{left:”auto”,right:”auto”,top:r?0:e.width<=970?1:3},flexGrow:1,children:(0,a.jsx)(te.x,{fullHeight:!0,alignItems:12/o1},n.prototype.notNull=function(e){return null!==e},n.prototype.videos=function(){var e=this.props.data&&this.props.data.user&&this.props.data.user.videos&&this.props.data.user.videos.edges&&this.props.data.user.videos.edges.map((function(e){return e&&e.node})).filter(this.notNull);return e||[]},n.prototype.isValidSize=function(){return this.state.height>300&&this.state.width>560},n}(o.Component),Za=(0,re._v)(Ga(),{skip:function(e){return e.contentType!==ce.FC.Live||!e.login},options:function(e){var n;return{variables:{login:null!==(n=e.login)&&void 0!==n?n:””}}}})(Qa);var qa=function(e){function n(n){var i=e.call(this,n)||this;return i.props.hasPlayed?i.state={deferRender:!0}:i.state={deferRender:!1},i}return(0,t.__extends)(n,e),n.prototype.componentDidMount=function(){var e=this;if(this.props.hasPlayed){var n=Math.floor(5e3*Math.random())+1;setTimeout((function(){e.setState({deferRender:!1})}),n)}},n.prototype.render=function(){return this.state.deferRender?null:(0,a.jsx)(Za,(0,t.__assign)({},this.props))},n}(o.Component),Xa=(0,r.Zz)((0,l.X)({name:”OfflineRecommendationsOverlay”}),(0,x.cj)((function(e){var n=e.content;return{contentType:n.type,login:(0,de.jp)(n)}})),(0,b.c0)((function(e){return{setRecommendationsShowing:e.setRecommendationsShowing}})),(0,S.dd)((function(e){return{hasPlayed:e.hasPlayed}})),(0,q.o1)())(qa),Ka=i(905049),$a=i(279330),Ya=i(237103),Ja=i(186396),eo=i(505074),no=i(173531),io=i(306730),to=i(1811),ao=i(691850),oo=i(731929),ro=”AdBlock”,lo=”Turbo”,so=”Support”,uo=(0,r.Zz)((0,h.VX)(),(0,oo.A)())((function(e){var n,i=e.trackAdFormatData,t=o.useContext(x.kl),r=(0,de.hd)(t.content),l=(0,io.If)(),s=(0,o.useRef)(!1),d=(0,o.useRef)(null),u=o.useContext(h.jK),c=u.updateLastSDAAdRequestBlocked,m=u.updateSDAHiddenState,p=u.isSDAContainerHidden,v=u.lastSDAAdRequestBlocked,f=o.useCallback((function(){switch(!0){case v&&!p:return”2″;case p&&!v:return”3″;default:return”0″}}),[p,v]),g=(0,no.r)(“nabe_experiment”);switch((0,oe.S)((function(){var e=setTimeout((function(){s.current||i(“nab_impression”,{nab_value:f(),client_country_code:l})}),100);return function(){return clearTimeout(e)}})),o.useLayoutEffect((function(){var e=d.current,n=!1;if(e){var t=e.offsetHeight,a=e.offsetWidth,o=e.offsetLeft,r=e.offsetTop,u=e.clientHeight,c=e.clientWidth;n=0===t&&0===a&&0===o&&0===r&&0===u&&0===c}e&&!n||(s.current=!0,i(“nab_detection”,{nab_value:”4″,client_country_code:l}))}),[]),g){case”support_1″:case”support_2″:case”support_4″:n=so;break;case”turbo_1″:case”turbo_2″:case”turbo_4″:n=lo;break;case”help_2″:case”help_4″:n=ro;break;default:return null}var k,y=(0,V.hw)(“this channel”,”SDANudgeOverlay”),S=(0,V.hw)(“Support {channelName} by disabling ad block”,{channelName:null!=r?r:y},”SDANudgeOverlay”),b=(0,V.hw)(“Streamers make money when viewers watch ads or purchase Twitch Turbo to go ad-free”,”SDANudgeOverlay”),C=(0,V.hw)(“Wait you’re running ad block?”,”SDANudgeOverlay”),w=(0,V.hw)(“Support {channelName}’s earnings by turning off ad block.”,{channelName:null!=r?r:y},”SDANudgeOverlay”),_=(0,V.hw)(“Running ad block? Consider Turbo.”,”SDANudgeOverlay”),N=(0,V.hw)(“Twitch Turbo enables ad-free viewing while still supporting streamers.”,”SDANudgeOverlay”),D={name:”allow”,text:(0,V.hw)(“Allow Twitch Ads”,”SDANudgeOverlay”),link:”https://help.twitch.tv/s/article/how-to-allow-ads-browser”},P={name:”turbo”,text:(0,V.hw)(“Try Turbo”,”SDANudgeOverlay”),link:”https://www.twitch.tv/turbo”},j={name:”return”,text:(0,V.hw)(“Return to stream”,”SDANudgeOverlay”),link:””};if(n===ro)k={title:C,description:w,leftCta:j,rightCta:D,icon:{id:”58765″,token:”notlikethis”}};else if(n===lo)k={title:_,description:N,leftCta:j,rightCta:P};else{if(n!==so)return null;k={title:S,description:b,leftCta:D,rightCta:P}}var I=function(e){i(“nab_click”,{nab_value:f(),nab_cta:e,client_country_code:l}),c(!1),m(!1)};return(0,a.jsx)(M.FT,{type:M.NL.Fullscreen,transparency:M.xL.Transparency3,children:(0,a.jsxs)(E.P,{ref:function(e){d.current=e},position:F.yX.Relative,maxWidth:”60rem”,children:[n===so&&(0,a.jsx)(E.P,{display:F.nl.Flex,padding:{left:1},justifyContent:”flex-end”,children:(0,a.jsx)(Ya.G,{“aria-label”:j.text,onClick:function(){I(j.name)},size:”default”,variant:”primary”})}),(0,a.jsxs)(E.P,{display:F.nl.Flex,children:[(0,a.jsx)(O.N,{fontSize:F.Z4.Size2,color:F.Q1.Overlay,fontWeight:F.IT.SemiBold,children:k.title}),!!k.icon&&(0,a.jsx)(E.P,{height:”54px”,width:”54px”,display:”flex”,alignItems:”center”,justifyContent:”center”,padding:{left:1},children:(0,a.jsx)(U.S,{maxHeight:”100%”,children:(0,a.jsx)(to.B,{emote:k.icon,size:ao.G.MEDIUM})})})]}),(0,a.jsx)(O.N,{fontSize:F.Z4.Size3,color:F.Q1.Overlay,style:{paddingTop:”0.5rem”},children:k.description}),(0,a.jsxs)(E.P,{display:F.nl.Flex,position:F.yX.Absolute,attachRight:!0,padding:{top:2},children:[(0,a.jsx)(Ja.M2,{variant:Ja.sK.Secondary,size:Ja.dN.Default,”aria-label”:k.leftCta.text,linkTo:k.leftCta.link,targetBlank:!0,onClick:function(){I(k.leftCta.name)},overlay:!0,children:(0,a.jsx)(eo._,{children:k.leftCta.text})}),(0,a.jsx)(E.P,{padding:{left:1},children:(0,a.jsx)(Ja.M2,{variant:Ja.sK.Primary,size:Ja.dN.Default,”aria-label”:k.rightCta.text,linkTo:k.rightCta.link,targetBlank:!0,onClick:function(){I(k.rightCta.name)},overlay:!0,children:(0,a.jsx)(eo._,{children:k.rightCta.text})})})]})]})})})),co=i(569937),mo=i(469655),po=i(473591),vo=i(865699),ho=i(187708),fo=i(194661),go=i(402459),ko=i.n(go),yo=s.x.wrap((function(){return i.e(46880).then(i.bind(i,229879))}),”SubModal”),So=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.refreshPage=function(){window.location.reload()},n.showSubscriptionModal=function(){var e=n.videoOwner(n.props);e&&e.login&&n.props.showSubscriptionModal({channelLogin:e.login,subLocation:po.U2.SubscriberVODOverlay})},n}return(0,t.__extends)(n,e),n.prototype.render=function(){return!this.props.data||this.props.data.loading?(0,a.jsx)(ca.p8,{}):(0,a.jsx)(fo.vJ,{restriction:vo.S.SubscriberVOD,children:this.renderContent()})},n.prototype.renderContent=function(){var e=this,n=this.videoOwner(this.props);return n&&n.displayName&&n.profileImageURL&&n.login?(0,a.jsx)(J.rj,{iconProps:{type:ee.W.Avatar,src:n.profileImageURL,alt:n.displayName,login:n.login},text:(0,V.hw)(“This video is only available to subscribers. Sub now to watch and support {displayName}.”,{displayName:n.displayName},”SubscriberVODOverlay”),children:function(n){return(0,a.jsx)(Ke.$n,{onClick:e.showSubscriptionModal,size:n?Ke.Mp.Small:Ke.Mp.Default,children:(0,V.hw)(“Subscribe”,”SubscriberVODOverlay”)})}}):(0,a.jsx)(J.rj,{iconProps:{type:ee.W.Empty},text:(0,V.hw)(“This exclusive subscriber content didn’t load properly. Please refresh and try again.”,”SubscriberVODOverlay”),children:function(n){return(0,a.jsx)(Ke.$n,{onClick:e.refreshPage,size:n?Ke.Mp.Small:Ke.Mp.Default,children:(0,V.hw)(“Refresh”,”SubscriberVODOverlay”)})}})},n.prototype.videoOwner=function(e){return!!e.data&&!!e.data.video&&e.data.video.owner},n}(o.Component);var xo=(0,re._v)(ko(),{options:function(e){var n;return{variables:{videoID:null!==(n=e.vodID)&&void 0!==n?n:””}}},skip:function(e){return!e.vodID}}),bo=(0,r.Zz)((0,ho.w)(“SubscriberVODOverlay”,vo.S.SubscriberVOD),(0,Nn.Ng)(null,(function(e){return(0,r.zH)({showSubscriptionModal:function(e){var n=(0,t.__rest)(e,[]);return(0,mo.to)(yo,n)}},e)})),(0,x.cj)((function(e){var n=e.content;return{vodID:(0,de.hq)(n)}})),xo)(So);var Co=i(62040),wo=i(748193),_o=i(177123),No=i(696833),Do=i.n(No),Po=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.onMouseOver=function(){n.timeout=setTimeout(n.props.showCollectionSidebar,250)},n.onMouseOut=function(){clearTimeout(n.timeout)},n}return(0,t.__extends)(n,e),n.prototype.render=function(){var e,n=this.props,i=n.data,t=n.isCollectionContent,o=n.isCollectionSidebarShowing,r=n.vodID,l=i&&i.collection;if(!t||!l||o)return null;var s=l&&l.title,d=l.items.totalCount,u=l.items&&l.items.edges&&l.items.edges.map((function(e){return e&&e.node})).filter((function(e){return null!==e})),c=null!=r?r:null===(e=u[0])||void 0===e?void 0:e.id,m=1+u.findIndex((function(e){return!!e&&e.id===c}));return(0,a.jsxs)(W.M,{className:”collection-top-bar”,onMouseEnter:this.onMouseOver,onMouseLeave:this.onMouseOut,children:[(0,a.jsxs)(O.N,{className:”collection-top-bar-text”,fontSize:F.Z4.Size4,type:T.M2.Span,children:[(0,a.jsx)(O.N,{className:”collection-top-bar-icon”,type:T.M2.Span,children:(0,a.jsx)(_o.T,{})}),” “,s]}),(0,a.jsxs)(O.N,{className:”collection-top-bar-text”,fontSize:F.Z4.Size4,type:T.M2.Span,children:[” • “,(0,V.hw)(“{totalVideos, plural, one {{currentPosition}/# video} other {{currentPosition}/# videos}}”,{currentPosition:m,totalVideos:d},”CollectionTopBar”)]})]})},n}(o.Component),jo=(0,r.Zz)((0,x.cj)((function(e){var n=e.content;return{collectionID:(0,de.Eq)(n),isCollectionContent:(0,de.P3)(n),vodID:(0,de.hq)(n)}})),(0,b.c0)((function(e){var n=e.isCollectionSidebarShowing,i=e.showCollectionSidebar;return{isCollectionSidebarShowing:n,showCollectionSidebar:i}})),(0,re._v)(Do(),{skip:function(e){return!e.isCollectionContent||!e.collectionID},options:function(e){return{variables:{collectionID:e.isCollectionContent&&e.collectionID?e.collectionID:””}}}}))(Po);var Io,Eo=i(382903),Fo=function(){var e=(0,o.useContext)(x.kl),n=(0,de.hd)(e.content),i=(0,_.wk)({playerPublicPropsContext:e}).enableRemoveStream,t=(0,_.zB)({playerPublicPropsContext:e}).removeStream,r=(0,o.useCallback)((function(){n&&t&&t(n)}),[n,t]);return(0,o.useMemo)((function(){return t&&i?(0,a.jsx)(Qe.a2,{“aria-label”:(0,Eo.Y)(),overlay:!0,icon:Ze.g,onClick:r}):null}),[i,r,t])},Oo=i(955413),To=i(552153),Vo=function(){var e=(0,o.useContext)(x.kl),n=(0,de.hd)(e.content),i=(0,_.wk)({playerPublicPropsContext:e}).showGlyphInOverlay,t=(0,_.zB)({playerPublicPropsContext:e}).removeStream,r=(0,o.useCallback)((function(){n&&t&&t(n)}),[n,t]);return(0,o.useMemo)((function(){if(!i)return null;var e=(0,a.jsx)(Oo.f,{fillColor:”brand”,height:30,width:28});return t?(0,a.jsx)(W.M,{“aria-label”:(0,Eo.Y)(),onClick:r,children:(0,a.jsxs)(E.P,{display:F.nl.Flex,gap:.5,color:F.Q1.Overlay,children:[(0,a.jsx)(To.N,{fillColor:”inherit”}),e]})}):e}),[r,t,i])},Mo=i(973421),Ao=i.n(Mo),Lo=i(308966),Ro=i(601592),Bo=i(198437),Uo=i(947322),zo=i(360432),Wo=i(290033),Ho=i(440627),Go=function(e){return(0,a.jsx)(fn.e,{theme:”dark”,children:(0,a.jsx)(E.P,{display:F.nl.Flex,children:e.tags.map((function(n){return(0,a.jsx)(E.P,{padding:{right:.5},children:(0,a.jsx)(Ho.vw,{linkTo:(0,Oa.V)({content:”tag”,medium:”embed”},(i=n.id,”https://www.twitch.tv/directory/all/tags/”.concat(i))),label:n.localizedName,targetBlank:e.openLinksExternally,onClick:e.onClick})},n.id);var i}))})})};!function(e){e.Description=”stream-info-card-component__description”,e.StreamAvatar=”stream-info-card-component__stream-avatar”,e.StreamAvatarLink=”stream-info-card-component__stream-avatar-link”,e.Subtitle=”stream-info-card-component__subtitle”,e.Title=”stream-info-card-component__title”,e.TitleLink=”stream-info-card-component__title-link”}(Io||(Io={}));var Qo=(0,r.Zz)((0,C.AP)((function(e){return{pause:e.pause}})))((function(e){var n=null,i=function(){var n;e.openLinksExternally&&e.pause(),null===(n=e.onLinkClick)||void 0===n||n.call(e)};e.title&&(e.titleTo&&(n=(0,a.jsx)(gn.Cb,{linkTo:(0,Oa.V)({content:”channel_name”,medium:e.isEmbedded?”embed”:void 0},e.titleTo),variant:gn.KD.Overlay,”data-test-selector”:Io.TitleLink,targetBlank:e.openLinksExternally,onClick:i,underline:!1,children:e.title})),n=(0,a.jsx)(O.N,{bold:!0,fontSize:F.Z4.Size4,”data-a-target”:”player-info-title”,”data-test-selector”:Io.Title,color:F.Q1.Overlay,children:n||e.title}));var t=null;return e.imageURL&&(t=(0,a.jsx)(Uo.e,{src:e.imageURL,size:64,alt:(0,V.hw)(“Stream Avatar”,”StreamInfoOverlay”),”data-a-target”:”player-info-avatar”,”data-test-selector”:Io.StreamAvatar,userLogin:e.login||””})),e.imageTo&&(t=(0,a.jsx)(gn.Cb,{targetBlank:e.openLinksExternally,variant:gn.KD.Overlay,linkTo:e.imageTo||void 0,onClick:i,”data-test-selector”:Io.StreamAvatarLink,underline:!1,children:t})),(0,a.jsx)(zo.Z,{row:!0,children:(0,a.jsxs)(E.P,{display:F.nl.Flex,alignItems:F.k2.Start,className:”stream-info-card”,children:[(0,a.jsx)(E.P,{className:”stream-info-card__image”,children:t}),e.title||e.subtitle||e.description||e.tags?(0,a.jsx)(Wo.b,{children:(0,a.jsxs)(E.P,{className:”stream-info-card__body”,padding:{left:t?1:0},display:F.nl.Flex,flexDirection:F.bo.Column,alignItems:F.k2.Start,children:[(0,a.jsxs)(E.P,{display:F.nl.Flex,gap:.5,children:[n,e.guestStarContent]}),e.subtitle&&(0,a.jsx)(O.N,{fontSize:F.Z4.Size4,color:F.Q1.Overlay,”data-test-selector”:Io.Subtitle,children:e.subtitle}),e.description&&(0,a.jsx)(O.N,{fontSize:F.Z4.Size4,color:F.Q1.Overlay,”data-test-selector”:Io.Description,children:e.description}),e.tags&&(0,a.jsx)(Go,{tags:e.tags,openLinksExternally:e.openLinksExternally,onClick:e.onLinkClick})]})}):null]})})}));var Zo=i(492867),qo=i(895798),Xo=s.x.wrap((function(){return Promise.all([i.e(44567),i.e(24576),i.e(30326),i.e(34726),i.e(47232)]).then(i.bind(i,546723))}),”SubscribeButton”),Ko=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.openTwitchPage=function(){window.open((0,de.L$)(n.props.content,{tt_content:”embed_social_panel”,tt_medium:”embed”},n.props.mediaPlayerInstance),”_blank”)},n}return(0,t.__extends)(n,e),n.prototype.render=function(){if(void 0===this.props.type)return null;var e=this.props.login||null;return(0,a.jsx)(E.P,{className:”stream-info-social-panel”,”data-a-target”:”player-stream-info-social-panel”,display:F.nl.InlineBlock,padding:.5,margin:this.props.margin,background:F.VS.Overlay,children:(0,a.jsxs)(E.P,{display:F.nl.Flex,children:[this.props.profileImageUrl&&(0,a.jsx)(Uo.e,{src:this.props.profileImageUrl,alt:this.props.displayName||””,userLogin:this.props.login||””,size:30}),(0,a.jsx)(E.P,{margin:{left:.5},children:e&&this.renderFirstButton(e)}),(0,a.jsx)(E.P,{margin:{left:.5},children:(0,a.jsx)(Xo,{channelLogin:e,subLocation:this.props.subLocation,subscribedButtonType:Ke.VQ.Primary,unsubscribedButtonType:Ke.VQ.Primary,hideDropdownArrow:!0,forceIcon:!0,useSubsLandingPage:this.props.isEmbedded})})]})})},n.prototype.renderFirstButton=function(e){var n=(0,V.hw)(“Watch on Twitch”,”VideoPlayerStreamInfoSocalPanel”);return this.props.type===zt._w.FollowAndSub||this.props.type===zt._w.FollowAndSubVerbose?(0,a.jsx)(Zo.W,{hideDropdownWhenFollowing:!0,channelLogin:e,followUIType:qo.y.IconAndText,unfollowUIType:qo.y.IconOnly,showLoadingPlaceholder:!0,fullWidthButton:!0,showTooltips:!0}):this.props.type===zt._w.WatchAndSub?(0,a.jsx)(Ke.$n,{onClick:this.openTwitchPage,targetBlank:!0,variant:Ke.VQ.Primary,children:n}):void 0},n}(o.Component);var $o=(0,r.Zz)((0,S.dd)((function(e){return{mediaPlayerInstance:e.mediaPlayerInstance}})),(0,x.cj)((function(e){return{content:e.content}})))(Ko),Yo=i(799519),Jo=i.n(Yo),er=i(491368),nr=i.n(er),ir=i(904785),tr=i.n(ir),ar=i(520719),or=i(913140);function rr(e){var n=e.gameDisplayName,i=e.gameName,t=e.gameSlug,o=e.viewerCount,r=e.openLinksExternally,l=e.onLinkClick,s=n||i,d=function(e){return(0,a.jsx)(gn.Cb,{“data-a-target”:”player-info-game-name”,variant:gn.KD.Overlay,linkTo:(0,Oa.V)({content:”game_name”,medium:”embed”},(n=t,i=!r,””.concat(i?””:”https://www.twitch.tv”).concat((0,Rt._4)({slug:n})))),targetBlank:r,onClick:l,underline:!1,children:e});var n,i};return s&&”number”==typeof o?(0,V.hw)(“{viewerCount, plural, one {Playing {game} for # viewer} other {Playing {game} for # viewers}}”,{game:s,viewerCount:o,”x:link”:d},”StreamInfoOverlay”):s?(0,V.hw)(“Playing {game}“,{game:s,”x:link”:d},”StreamInfoOverlay”):”number”==typeof o?(0,V.hw)(“{viewerCount, plural, one {Streaming for # viewer} other {Streaming for # viewers}}”,{viewerCount:o},”StreamInfoOverlay”):null}function lr(e){var n=e.displayName,i=e.game,t=e.login,o=e.openLinksExternally,r=e.isEmbedded,l=e.isPartner;if(!t||!n)return null;var s=l?(0,a.jsxs)(a.Fragment,{children:[n,(0,a.jsx)(E.P,{display:”inline-flex”,margin:{left:”0.2rem”},alignItems:”center”,children:(0,a.jsx)(ar.l,{size:12,”aria-label”:(0,V.hw)(“Verified Partner”,”ClipInfoOverlay”),fillColor:”brand”})})]}):n;return i?(0,V.hw)(“{displayName} playing {game}“,{game:i.displayName||i.name,displayName:s,”x:login-link”:function(e){return(0,a.jsx)(gn.Cb,{variant:gn.KD.Overlay,linkTo:dr(t,r),targetBlank:o,children:e})},”x:game-link”:function(e){return(0,a.jsx)(gn.Cb,{variant:gn.KD.Overlay,linkTo:ur(i,r),targetBlank:o,children:e})}},”StreamInfoOverlay”):(0,a.jsx)(gn.Cb,{variant:gn.KD.Overlay,linkTo:dr(t,r),targetBlank:o,underline:!1,children:s})}function sr(e){return null===e?null:(0,V.hw)(“{viewCount} views”,{viewCount:(0,V.ZV)(e)},”StreamInfoOverlay”)}function dr(e,n){var i=n?”embed”:”clips_web”,t=Ne.stringify({tt_content:”player_channel_name”,tt_medium:i});return”https://www.twitch.tv/”.concat(e,”/clips?”).concat(t)}function ur(e,n){var i=n?”embed”:”clips_web”,t=Ne.stringify({tt_content:”player_game”,tt_medium:i});return”https://www.twitch.tv”.concat((0,Rt._4)(e,{section:”clips”}),”?”).concat(t)}function cr(e,n){var i=n?”embed”:”clips_web”,t=Ne.stringify({tt_content:”player_title”,tt_medium:i});return”https://clips.twitch.tv/”.concat(e,”?”).concat(t)}var mr,pr=s.x.wrap((function(){return Promise.all([i.e(60050),i.e(89357)]).then(i.bind(i,466992))}),”GuestStarRTJChannelContent”,{placeholder:null});!function(e){e.StreamInfoSocialPanelUpper=”stream-info-social-panel__upper”,e.StreamInfoSocialPanelLower=”stream-info-social-panel__lower”}(mr||(mr={}));var vr=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,t.__extends)(n,e),n.prototype.componentDidMount=function(){this.updateUIContext()},n.prototype.componentDidUpdate=function(){this.updateUIContext()},n.prototype.componentWillUnmount=function(){this.updateUIContext(!1)},n.prototype.render=function(){var e,n,i,o,r,l;if(!fr(this.props)||!gr(this.props))return null;var s=this.props,d=s.content,u=s.theatreModeEnabled,c=s.disableStreamInfoChannelLinks,m=s.disableStreamInfoDescription,p=s.disableStreamInfoImage,v=s.disableStreamInfoSubtitle,h=s.disableStreamInfoTags,f=s.disableStreamInfoTitle,g=s.openLinksExternally,k=s.isEmbedded,y=s.socialPanelType,S=s.channelData,x=s.clipData,b=s.vodData,C=s.isFullscreen,w=s.exitFullscreen,_=s.onChannelWatch,N=!g&&C?w:void 0,D=(0,de.lI)(d),P=null,j={};S?(j=function(e,n){var i,o,r,l,s,d,u,c,m,p,v,h,f,g,k,y,S,x,b,C;void 0===n&&(n={});var w=n.multiviewProps,_=n.openLinksExternally,N=n.onLinkClick,D=null===(r=null===(o=null===(i=e.user)||void 0===i?void 0:i.broadcastSettings)||void 0===o?void 0:o.game)||void 0===r?void 0:r.displayName,P=null===(d=null===(s=null===(l=e.user)||void 0===l?void 0:l.broadcastSettings)||void 0===s?void 0:s.game)||void 0===d?void 0:d.name,j=null===(m=null===(c=null===(u=e.user)||void 0===u?void 0:u.broadcastSettings)||void 0===c?void 0:c.game)||void 0===m?void 0:m.slug,I=null===(v=null===(p=e.user)||void 0===p?void 0:p.stream)||void 0===v?void 0:v.viewersCount,F=null===(f=null===(h=e.user)||void 0===h?void 0:h.broadcastSettings)||void 0===f?void 0:f.title,O=w&&w.titleOverride||(null===(g=e.user)||void 0===g?void 0:g.displayName),T=null!==(y=null===(k=e.user)||void 0===k?void 0:k.profileURL)&&void 0!==y?y:void 0;!(null===(S=e.user)||void 0===S?void 0:S.login)||T&&_||(T={pathname:(0,Ta.VV)(“/”.concat(e.user.login)),state:(0,t.__assign)((0,t.__assign)({},V.x2.router.state.location.state),{channelView:n.onChannelWatch&&(n.theatreModeEnabled||n.isFullscreen)?or.n.Home:or.n.None})});var M=w&&w.logoOverride||(null===(x=e.user)||void 0===x?void 0:x.profileImageURL),A=e.user&&e.user.stream&&e.user.stream.tags;return{description:rr({gameDisplayName:D,gameName:P,gameSlug:j,viewerCount:I,openLinksExternally:_,onLinkClick:N}),subtitle:F,title:(0,a.jsxs)(a.Fragment,{children:[O,!!(null===(C=null===(b=e.user)||void 0===b?void 0:b.roles)||void 0===C?void 0:C.isPartner)&&(0,a.jsx)(E.P,{display:”inline-flex”,margin:{left:”0.2rem”},alignItems:”center”,children:(0,a.jsx)(ar.l,{size:16,”aria-label”:(0,V.hw)(“Verified Partner”,”StreamInfoOverlay”),fillColor:”brand”})})]}),titleTo:T,imageURL:M,imageTo:T,tags:A}}(S,{multiviewProps:D,openLinksExternally:g,theatreModeEnabled:u,onChannelWatch:_,isFullscreen:C,onLinkClick:N}),P=(null==S?void 0:S.user)||null):x?(j=function(e,n){var i,t,a,o,r,l;void 0===n&&(n={});var s=n.openLinksExternally,d=n.isEmbedded,u=e.clip&&e.clip.broadcaster&&e.clip.broadcaster.displayName,c=e.clip&&e.clip.broadcaster&&e.clip.broadcaster.login,m=e.clip&&e.clip.slug,p=e.clip&&e.clip.title,v=e.clip&&e.clip.viewCount,h=e.clip&&e.clip.broadcaster&&e.clip.broadcaster.profileURL,f=e.clip&&e.clip.broadcaster&&e.clip.broadcaster.profileImageURL;return{subtitle:lr({displayName:u,game:null!==(t=null===(i=e.clip)||void 0===i?void 0:i.game)&&void 0!==t?t:null,login:c,openLinksExternally:s,isEmbedded:d,isPartner:null!==(l=null===(r=null===(o=null===(a=e.clip)||void 0===a?void 0:a.broadcaster)||void 0===o?void 0:o.roles)||void 0===r?void 0:r.isPartner)&&void 0!==l?l:void 0}),title:p,titleTo:m&&cr(m,d),description:sr(v),imageURL:f,imageTo:h}}(x,{openLinksExternally:g,isEmbedded:k}),P=(null===(e=null==x?void 0:x.clip)||void 0===e?void 0:e.broadcaster)||null):b&&(j=function(e,n){var i,t,o;void 0===n&&(n={});var r,l,s=e&&e.video&&e.video.owner&&e.video.owner.displayName,d=e&&e.video&&e.video.owner&&e.video.owner.profileImageURL,u=e&&e.video&&e.video.contentTags,c=e&&e.video&&e.video.title,m=e&&e.video&&e.video.id,p=m&&(r=m,l=!n.openLinksExternally,””.concat(l?””:”https://www.twitch.tv”,”/videos/”).concat(r));return{subtitle:c,title:(0,a.jsxs)(a.Fragment,{children:[s,!!(null===(o=null===(t=null===(i=e.video)||void 0===i?void 0:i.owner)||void 0===t?void 0:t.roles)||void 0===o?void 0:o.isPartner)&&(0,a.jsx)(E.P,{display:”inline-flex”,margin:{left:”0.2rem”},alignItems:”center”,children:(0,a.jsx)(ar.l,{size:16,”aria-label”:(0,V.hw)(“Verified Partner”,”VodInfoOverlay”),fillColor:”brand”})})]}),titleTo:p,imageURL:d,imageTo:p,tags:u}}(b,{openLinksExternally:g}),P=(null===(n=null==b?void 0:b.video)||void 0===n?void 0:n.owner)||null);var I=null==P?void 0:P.displayName,F=null==P?void 0:P.profileImageURL,O=null==P?void 0:P.login,T=!!(0,de.eT)(d),M={type:y,displayName:D&&D.titleOverride||I,profileImageUrl:D&&D.logoOverride||F,login:O,subLocation:T?po.U2.SquadPage:po.U2.ChannelPage,isEmbedded:k};return(0,a.jsxs)(a.Fragment,{children:[this.props.socialPanelPosition===zt.vM.AboveStreamInfo&&(0,a.jsx)($o,(0,t.__assign)({},M,{“data-test-selector”:mr.StreamInfoSocialPanelUpper})),(0,a.jsx)(Qo,{description:m?void 0:j.description,subtitle:v?void 0:j.subtitle,title:f?void 0:j.title,guestStarContent:f?null:(0,a.jsx)(pr,{channelLogin:null===(o=null===(i=this.props.channelData)||void 0===i?void 0:i.user)||void 0===o?void 0:o.login,channelID:null===(l=null===(r=this.props.channelData)||void 0===r?void 0:r.user)||void 0===l?void 0:l.id,isLive:(0,de.DG)(this.props.content)||!1}),titleTo:f||c?void 0:j.titleTo,imageURL:p?void 0:j.imageURL,imageTo:p||c?void 0:j.imageTo,isEmbedded:k,tags:h?void 0:j.tags,openLinksExternally:g,onLinkClick:N}),this.props.socialPanelPosition===zt.vM.BelowStreamInfo&&(0,a.jsx)($o,(0,t.__assign)({},M,{margin:{top:1},”data-test-selector”:mr.StreamInfoSocialPanelLower}))]})},n.prototype.updateUIContext=function(e){if(void 0===e){var n=fr(this.props)&&gr(this.props);this.props.streamInfoShowing!==n&&this.props.setStreamInfoShowing(n)}else this.props.setStreamInfoShowing(e)},n}(o.Component),hr=(0,r.Zz)((0,Nn.Ng)((function(e){return{theatreModeEnabled:e.ui.theatreModeEnabled,onChannelWatch:e.ui.onChannelWatch}})),(0,b.c0)((function(e){var n=e.isFullscreen,i=e.exitFullscreen,t=e.isCollectionSidebarShowing,a=e.streamInfoShowing,o=e.setStreamInfoShowing;return{exitFullscreen:i,isFullscreen:n,streamInfoShowing:a,setStreamInfoShowing:o,isCollectionSidebarShowing:t}})),(0,x.cj)((function(e){var n=(0,_.wk)({playerPublicPropsContext:e}),i=n.showChannelInfoOnHover,t=n.disableStreamInfoChannelLinks,a=n.disableStreamInfoDescription,o=n.disableStreamInfoImage,r=n.disableStreamInfoSubtitle,l=n.disableStreamInfoTags,s=n.disableStreamInfoTitle,d=n.includePrivateVODs,u=n.openStreamInfoLinksExternally,c=n.socialPanelType,m=n.socialPanelPosition,p=n.embed;return{content:e.content,showChannelInfoOnHover:i,disableStreamInfoDescription:a,disableStreamInfoImage:o,disableStreamInfoSubtitle:r,disableStreamInfoTags:l,disableStreamInfoTitle:s,disableStreamInfoChannelLinks:t,includePrivateVODs:d,isEmbedded:p,openLinksExternally:u,socialPanelType:c,socialPanelPosition:m}})),(0,re._v)(Jo(),{name:”channelData”,skip:function(e){return!(0,de.DG)(e.content)||!(0,de.hd)(e.content)||!fr(e)},options:function(e){return{variables:{channel:(0,de.hd)(e.content)}}}}),(0,re._v)(nr(),{name:”clipData”,skip:function(e){return!(0,de.Qc)(e.content)||!fr(e)},options:function(e){var n;return{variables:{slug:null!==(n=(0,de.Qc)(e.content))&&void 0!==n?n:””}}}}),(0,re._v)(tr(),{name:”vodData”,skip:function(e){return!(0,de.hq)(e.content)||!fr(e)},options:function(e){return{variables:{videoID:(0,de.hq)(e.content)}}}}),(0,St.n)((function(e){return{query:Jo(),skip:!e.channelData||e.channelData.loading||!e.channelData.user||!e.channelData.user.id,variables:{channel:(0,de.hd)(e.content)},topic:e.channelData&&e.channelData.user&&e.channelData.user.id?(0,Bo.RW)(e.channelData.user.id):””,type:Lo.PD.ViewCount,mutator:function(e,n){return n.user&&n.user.stream?Ao()(n,(function(e){return e.user.stream.viewersCount}),(function(){return e.viewers})):n}}})),(0,St.n)((function(e){return{query:Jo(),skip:!e.channelData||e.channelData.loading||!e.channelData.user||!e.channelData.user.id,variables:{channel:(0,de.hd)(e.content)},topic:e.channelData&&e.channelData.user&&e.channelData.user.id?(0,Bo.Fz)(e.channelData.user.id):””,type:Lo.PD.BroadcastSettingsUpdate,mutator:function(e,n){var i,a=(0,Ro.v)(e),o=a.gameID,r=a.gameName,l=a.missingGameInfo,s=a.updatingToNullGame;return(null===(i=n.user)||void 0===i?void 0:i.broadcastSettings)&&e&&!l?Ao()(n,(function(e){return e.user.broadcastSettings}),(function(n){var i;return(0,t.__assign)((0,t.__assign)({},n),{title:null!==(i=e.status)&&void 0!==i?i:””,game:s||null===o||null===r?null:{__typename:”Game”,id:o,name:r,displayName:r}})})):n}}})))(vr);function fr(e){return!e.isCollectionSidebarShowing&&(e.showChannelInfoOnHover||e.isFullscreen||e.theatreModeEnabled)}function gr(e){return!(!(n=e.channelData)||n.error||n.loading)||function(e){var n=e.clipData;return!(!n||n.error||n.loading)}(e)||function(e){var n=e.vodData;return!(!n||n.error||n.loading)}(e);var n}var kr=i(229045),yr=i(535502),Sr=s.x.wrap((function(){return Promise.all([i.e(44567),i.e(24576),i.e(30326),i.e(34726),i.e(47232)]).then(i.bind(i,546723))}),”SubscribeButton”),xr=function(e){var n=e.channelLogin||null;return e.firstPageLoaded&&e.theatreModeEnabled&&!e.isFullscreen&&!!e.channelLogin&&e.isLiveContent&&!e.hasEnded?(0,a.jsxs)(E.P,{className:”theatre-social-panel”,display:F.nl.Flex,flexWrap:F.I4.NoWrap,justifyContent:F.A9.Between,padding:{x:1},children:[(0,a.jsx)(E.P,{margin:{right:1},children:(0,a.jsx)(Zo.W,{channelLogin:n,followUIType:qo.y.IconAndText,unfollowUIType:qo.y.IconOnly,hideDropdownWhenFollowing:!0,showTooltips:!0,followContentType:br(e.contentType,e.isHostingWatchParty)})}),(0,a.jsx)(E.P,{children:(0,a.jsx)(Sr,{channelLogin:n,subLocation:po.U2.TheatreMode,subscribedButtonType:Ke.VQ.Primary,unsubscribedButtonType:Ke.VQ.Primary,forceIcon:!0,isLive:e.isLiveContent})})]}):null};function br(e,n){if(n)return kr.cM.WatchParty;switch(e){case ce.FC.VOD:return kr.cM.VOD;case ce.FC.Clip:return kr.cM.Clip;default:return kr.cM.Live}}var Cr=(0,r.Zz)((0,Nn.Ng)((function(e){return{firstPageLoaded:e.session.firstPageLoaded,isLoggedIn:(0,Un.M3)(e),theatreModeEnabled:e.ui.theatreModeEnabled}})),(0,S.dd)((function(e){return{hasEnded:(0,ue.pl)(e)}})),(0,x.cj)((function(e){var n=e.content;return{channelLogin:(0,de.hd)(n),isLiveContent:(0,de.DG)(n),contentType:n.type}})),(0,b.c0)((function(e){return{isFullscreen:e.isFullscreen}})))((function(e){var n=(0,yr.E)(e.channelLogin||””).isHostingWatchParty;return(0,a.jsx)(xr,(0,t.__assign)({},e,{isHostingWatchParty:n}))})),wr=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,t.__extends)(n,e),n.prototype.render=function(){var e;return!((e=this.props).disableStatusOverlay||e.recommendationsShowing||e.isAdShowing||e.isOffline)&&(0,a.jsx)(R.e,{type:B.ES.Fade,show:this.props.shouldShow,alwaysRenderChild:!0,children:(0,a.jsxs)(E.P,{attachTop:!0,attachLeft:!0,attachRight:!0,flexGrow:1,className:”top-bar”,display:F.nl.Flex,position:F.yX.Absolute,justifyContent:F.A9.Between,children:[(0,a.jsxs)(E.P,{children:[(0,a.jsxs)(E.P,{className:”top-bar–pointer-enabled”,children:[(0,a.jsx)(Vo,{}),(0,a.jsx)(jo,{})]}),(0,a.jsx)(hr,{})]}),(0,a.jsx)(E.P,{display:F.nl.Flex,alignItems:F.k2.Start,children:(0,a.jsxs)(E.P,{display:F.nl.Flex,alignItems:F.k2.Center,className:”top-bar–pointer-enabled”,children:[(0,a.jsx)(Cr,{}),(0,a.jsx)(E.P,{padding:{left:1},children:!this.props.disableStatusIndicator&&(0,a.jsx)(wo.zP,{})}),(0,a.jsx)(E.P,{padding:{left:1},children:(0,a.jsx)(Fo,{})}),(this.props.theatreModeEnabled||!this.props.rightColumnExpanded)&&(0,a.jsx)(E.P,{padding:{right:2}})]})})]})})},n}(o.Component);var _r=(0,r.Zz)((0,l.X)({name:”TopBarOverlay”}),(0,Nn.Ng)((function(e){return{theatreModeEnabled:e.ui.theatreModeEnabled,rightColumnExpanded:e.ui.rightColumnExpanded}})),(0,b.c0)((function(e){return{recommendationsShowing:e.recommendationsShowing}})),(0,x.cj)((function(e){return{disableStatusOverlay:(0,_.wk)({playerPublicPropsContext:e}).disableStatusOverlay,disableStatusIndicator:(0,_.wk)({playerPublicPropsContext:e}).disableStatusIndicator,showGlyphInOverlay:(0,_.wk)({playerPublicPropsContext:e}).showGlyphInOverlay}})),(0,h.VX)((function(e){return{isAdShowing:(0,w.cz)(e.videoAdMetadata)}})))(wr),Nr=i(165495),Dr=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,t.__extends)(n,e),n.prototype.render=function(){var e=this.props.liveChannelLogin;return e&&this.shouldShow(this.props)?(0,a.jsx)(fo.vJ,{restriction:vo.S.TwitchGate,children:(0,a.jsx)(J.rj,{iconProps:{type:ee.W.Icon,icon:Y.t.LogoTwitch},text:(0,V.hw)(“You can only watch this stream on the Twitch website.”,”TwitchGateOverlay”),children:function(n){return(0,a.jsx)(Ke.$n,{linkTo:”https://www.twitch.tv/”.concat(e),targetBlank:!0,size:n?Ke.Mp.Small:Ke.Mp.Default,children:(0,V.hw)(“Watch on Twitch”,”TwitchGateOverlay”)})}})}):null},n.prototype.shouldShow=function(e){return(0,Nr.F$)(e.data)},n}(o.Component),Pr=(0,r.Zz)((0,ho.w)(“TwitchGateOverlay”,vo.S.TwitchGate),(0,x.cj)((function(e){var n=e.content;return{liveChannelLogin:(0,de.jp)(n)}})),(0,Nr.yg)())(Dr);var jr=i(21743),Ir=i.n(jr),Er=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.getBannerUrl=function(){if(n.props.data&&n.props.data.user)return n.props.data.user.stream&&n.props.data.user.stream.id&&n.props.data.user.stream.previewImageURL?n.props.data.user.stream.previewImageURL:void 0},n.shouldShowVideoPreviewOverlay=function(){return!n.props.isVideoAdShowing&&(!n.props.autoplay&&!n.props.isOffline&&!n.props.isPlaying||n.props.forbidden&&n.restrictionType(n.props)===Ji.B2H.SUB_ONLY_LIVE)},n}return(0,t.__extends)(n,e),n.prototype.render=function(){var e=this.getBannerUrl();return e&&this.shouldShowVideoPreviewOverlay()?(0,a.jsx)(E.P,{“data-a-target”:”player-overlay-preview-background”,display:F.nl.Flex,alignItems:F.k2.Center,justifyContent:F.A9.Center,fullHeight:!0,className:”video-preview-overlay”,children:(0,a.jsx)(U.S,{fullHeight:!0,className:”video-preview-overlay__background-image”,children:(0,a.jsx)(ke.L,{src:e,alt:this.props.liveContentChannelLogin||””})})}):null},n.prototype.restrictionType=function(e){return!!e.data&&!!e.data.user&&!!e.data.user.stream&&e.data.user.stream.restrictionType},n}(o.Component),Fr=(0,r.Zz)((0,l.X)({name:”VideoPreviewOverlay”}),(0,S.dd)((function(e){var n=e.isOffline,i=e.forbidden,t=e.autoplay;return{autoplay:t,isPlaying:(0,ue.F4)(e),isOffline:n,forbidden:i}})),(0,x.cj)((function(e){var n,i=(0,_.Rh)({playerPublicPropsContext:e});return{isLive:(0,de.DG)(i),liveContentChannelLogin:null!==(n=(0,de.jp)(i))&&void 0!==n?n:null}})),(0,h.VX)((function(e){return{isVideoAdShowing:(0,w.cz)(e.videoAdMetadata)}})),(0,re._v)(Ir(),{skip:function(e){return!e.isLive},options:function(e){var n;return{variables:{login:null!==(n=e.liveContentChannelLogin)&&void 0!==n?n:””}}}}))(Er);var Or=i(779763),Tr=i(73849),Vr=i(922671),Mr=300;function Ar(e){return e.self&&e.self.viewingHistory&&e.self.viewingHistory.position||void 0}function Lr(e){if(!e.self||!e.self.viewingHistory||null===e.self.viewingHistory.position)return!1;var n=e.self.viewingHistory.position;if(0===n)return!0;var i=e.lengthSeconds||0,t=Math.max(Mr,.1*i);return i>Mr&&n>t}function Rr(e,n){var i=Lr(e);return i!==Lr(n)?i?1:-1:e.createdAt&&n.createdAt?new Date(n.createdAt).getTime()-new Date(e.createdAt).getTime():n.createdAt?1:e.createdAt?-1:0}var Br=580,Ur=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.state={timeRemaining:2e4},n.autoplayInterval=-1,n.renderVideoTitle=function(e){return(0,a.jsx)(E.P,{fullWidth:!0,margin:{bottom:e?.5:0},children:(0,a.jsx)(O.N,{fontSize:e?F.Z4.Size6:F.Z4.Size4,ellipsis:!0,children:n.props.video.title})})},n.renderTimeRemaining=function(){var e=Math.round(n.state.timeRemaining/1e3);return(0,a.jsx)(E.P,{margin:{bottom:.5},display:F.nl.Flex,alignItems:F.k2.Center,justifyContent:F.A9.Between,children:(0,a.jsx)(O.N,{bold:!0,type:n.props.width>780?T.M2.H4:T.M2.H5,color:F.Q1.Overlay,children:(0,V.hw)(“Up Next in {timeRemaining} seconds…”,{timeRemaining:e},”VODPostplayRecommendations”)})})},n.startCountdown=function(){clearInterval(n.autoplayInterval),n.autoplayInterval=setInterval((function(){n.state.timeRemaining>0?n.setState((function(e){return{timeRemaining:e.timeRemaining-1e3}})):(n.stopCountdown(),n.props.onSelect())}),1e3)},n.stopCountdown=function(){clearInterval(n.autoplayInterval)},n}return(0,t.__extends)(n,e),n.prototype.componentDidMount=function(){this.startCountdown()},n.prototype.componentWillUnmount=function(){this.stopCountdown()},n.prototype.render=function(){var e=this.props,n=e.onSelect,i=e.video;return(0,a.jsx)(M.FT,{type:M.NL.Fullscreen,transparency:M.xL.Transparency1,children:(0,a.jsx)(U.S,{fullWidth:!0,children:(0,a.jsx)(R.e,{alwaysRenderChild:!0,transitionInitialMount:!0,show:!0,type:B.ES.TranslateTop,duration:B.Cf.Long,children:(0,a.jsx)(“div”,{style:{marginTop:this.props.width<1e3?"-10%":0},children:(0,a.jsx)(E.P,{display:F.nl.Flex,flexDirection:F.bo.Column,alignItems:F.k2.Center,justifyContent:F.A9.Center,children:(0,a.jsxs)(E.P,{className:In()("autoplay-vod__content-container",{"autoplay-vod__content-container--mini":this.props.width<=Br}),display:F.nl.Flex,flexDirection:this.props.width>Br?F.bo.Column:F.bo.Row,children:[this.props.width>Br&&this.renderTimeRemaining(),(0,a.jsx)(E.P,{className:”autoplay-vod__video-card-container”,children:(0,a.jsx)(be,{video:i,content:{type:ce.FC.VOD,vodID:i.id,videoOffset:Ar(i)},onSelect:n,info:this.props.width>Br?this.renderVideoTitle():null,marginBottom:0})}),(0,a.jsxs)(E.P,{className:In()({“autoplay-vod__mini-text-container”:this.props.width<=Br}),children:[this.props.width<=Br&&this.renderTimeRemaining(),this.props.width<=Br&&this.renderVideoTitle(!0),(0,a.jsx)(E.P,{display:F.nl.Flex,justifyContent:F.A9.End,children:(0,a.jsx)(Ke.$n,{onClick:this.props.onClose,children:(0,V.hw)("More Suggestions","VODPostplayRecommendations")})})]})]})})})})})})},n}(o.Component),zr=(0,r.Zz)((0,q.o1)())(Ur),Wr=i(903812),Hr=i.n(Wr),Gr=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.state={autoplayVOD:!0,height:0,otherVODs:!0,wasEverMini:n.props.mini,width:0},n.resizeDebounceTimer=new Vr.n(250),n.showAutoplayVOD=function(){return n.hasVODs()&&n.state.autoplayVOD},n.showOtherVODs=function(){return n.hasVODs()&&!n.showAutoplayVOD()&&n.state.otherVODs},n.hasVODs=function(){return n.getVideos().length>1},n.onResize=function(e,i){n.resizeDebounceTimer.invoke((function(){n.setState({width:e,height:i})}))},n.getVideos=function(){return n.props.data&&n.props.data.video&&n.props.data.video.owner&&n.props.data.video.owner.videos&&n.props.data.video.owner.videos.edges&&(0,na.jP)(n.props.data.video.owner.videos.edges.map((function(e){return e&&e.node}))).filter((function(e){return e.id!==n.props.vodID})).sort(Rr)||[]},n.getChannelDisplayName=function(){return n.props.data&&n.props.data.video&&n.props.data.video.owner&&n.props.data.video.owner.displayName||””},n.handleCloseAutoplayVOD=function(){n.setState({autoplayVOD:!1})},n.handleCloseOtherVODs=function(){n.setState({otherVODs:!1})},n}return(0,t.__extends)(n,e),n.prototype.componentDidMount=function(){this.state.wasEverMini&&this.props.setRecommendationsShowing(!1)},n.prototype.componentDidUpdate=function(){var e=this.props,n=e.recommendationsShowing,i=e.setRecommendationsShowing;if(this.props.mini&&!this.state.wasEverMini)this.setState({wasEverMini:!0}),n&&i(!1);else if(!this.state.wasEverMini){var t=this.showAutoplayVOD()||this.showOtherVODs();n!==t&&i(t)}},n.prototype.componentWillUnmount=function(){this.props.setRecommendationsShowing(!1),this.resizeDebounceTimer.clear()},n.prototype.render=function(){var e=this;if(this.state.wasEverMini)return null;var n=this.getVideos();return(0,a.jsxs)(a.Fragment,{children:[(this.state.autoplayVOD||this.state.otherVODs)&&(0,a.jsx)(ii.$,{onResize:this.onResize}),this.showAutoplayVOD()&&(0,a.jsx)(zr,{video:n[0],onClose:this.handleCloseAutoplayVOD,onSelect:function(){var i=n[0].id,t=e.props.getContentUrl({type:ce.FC.VOD,vodID:i,videoOffset:Ar(n[0])});t&&(0,on.cW)(t,e.props.navigate)},width:this.state.width}),this.showOtherVODs()&&(0,a.jsx)(Ua,{videos:n,onClose:this.handleCloseOtherVODs,onSelect:function(){},title:(0,V.hw)(“More from {channelLogin}”,{channelLogin:this.getChannelDisplayName()},”VODPostplayRecommendations”),width:this.state.width})]})},n}(o.Component);var Qr=(0,r.Zz)((0,l.X)({name:”VODPostplayRecommendationsOverlay”}),(0,x.cj)((function(e){return{mini:!!(0,_.wk)({playerPublicPropsContext:e}).mini,vodID:(0,de.hq)(e.content)||null}})),(0,q.o1)(),(0,b.c0)((function(e){return{recommendationsShowing:e.recommendationsShowing,setRecommendationsShowing:e.setRecommendationsShowing}})),(0,re._v)(Hr(),{options:function(e){var n;return{variables:{videoID:null!==(n=e.vodID)&&void 0!==n?n:””}}},skip:function(e){return!e.vodID}}),Tr.y,(0,Se.e)())(Gr),Zr=i(404785),qr=i.n(Zr),Xr=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.getImageUrl=function(){if(n.props.data&&n.props.data.video)return n.props.data.video.previewThumbnailURL?n.props.data.video.previewThumbnailURL:void 0},n}return(0,t.__extends)(n,e),n.prototype.render=function(){var e=this.getImageUrl();return e?(0,a.jsx)(ke.L,{src:e,alt:this.props.data&&this.props.data.video&&this.props.data.video.title||””}):null},n}(o.Component),Kr=(0,r.Zz)((0,l.X)({name:”VODPreviewOverlay”}),(0,x.cj)((function(e){var n=e.content;return{vodID:(0,de.hq)(n)||null}})),(0,re._v)(qr(),{skip:function(e){return null===e.vodID},options:function(e){return{variables:{vodID:e.vodID}}}}))(Xr);var $r,Yr=i(331337),Jr=i(644704),el=function(e){var n=e.chromecastContext,i=e.playerContext,t=e.videoPlaybackContext;return!!(i.isPlayerCoreLoading||(0,ue.TN)(i)||(0,ue.i_)(i)||!i.hasPlayed&&i.sourceStatus!==se.O.None)&&t.isPlaying&&!(0,w.cz)(e.adContext.videoAdMetadata)&&!(0,f.mh)(n)},nl=i(957583),il=i(459487),tl=i(112246),al=function(e){var n=e.playerPublicPropsContext,i=e.playerContext,t=i.playerState===il.p.ENDED,a=!i.hasPlayed,o=(0,_.wk)(e).embed;return!((0,w.cz)(e.adContext.videoAdMetadata)||!(0,tl.bz)(n.content,i.isOffline)||!a&&!t||!o)};!function(e){e.AdStatsOverlay=”ad-stats-overlay”,e.BottomControlsOverlay=”bottom-controls-overlay”,e.CelebrationsOverlay=”celebrations-overlay”,e.ChannelSkinsOverlay=”channel-skins-overlay”,e.ChatHappeningNowOverlay=”chat-happening-now-overlay”,e.ClickHandlerOverlay=”click-handler-overlay”,e.ClickToPlayPauseOverlay=”click-to-play-pause-overlay”,e.ClickToUnmuteOverlay=”click-to-unmute-overlay”,e.ClipEmbedErrorOverlay=”clip-embed-error-overlay”,e.ClipPostplayRecommendationsOverlay=”clip-postplay-recommendations-overlay”,e.ClipShareOverlay=”clip-share-overlay”,e.ClosedCaptionSettingsOverlay=”closed-caption-settings-overlay”,e.CollectionEmptyOverlay=”collection-empty”,e.CollectionSidebarOverlay=”collection-sidebar-overlay”,e.CostreamStartConfirmOverlay=”costream-start-confirm-overlay”,e.ExtensionsOverlay=”extensions-overlay”,e.FollowPanelOverlay=”follow-panel-overlay”,e.KeyboardShortcutsOverlay=”keyboard-shortcuts-overlay”,e.LastActionOverlay=”last-action-overlay”,e.LoadingOverlay=”loading-overlay”,e.MiniOverlay=”mini-overlay”,e.MutedSegmentsAlertOverlay=”muted-segments-alert-overlay”,e.OfflineBannerOverlay=”offline-banner-overlay”,e.OfflineEmbedsOverlay=”offline-embeds-overlay”,e.OfflineRecommendationsOverlay=”offline-recommendations-overlay”,e.SDANudgeOverlay=”sda-nudge-overlay”,e.SkipAdOverlay=”skip-ad-overlay”,e.SubscriberVODOverlay=”subscriber-vod-overlay”,e.TopBarOverlay=”top-bar-overlay”,e.TwitchGateOverlay=”twitch-gate-overlay”,e.VideoStatsOverlay=”video-stats-overlay”,e.VODPostplayRecommendationsOverlay=”vod-postplay-recommendations-overlay”,e.VODPreviewOverlay=”vod-preview-overlay”,e.OneTapOverlay=”one-tap-overlay”,e.OneTapStoreOverlay=”one-tap-store-overlay”,e.ClickableCTAOverlay=”clickable-cta-overlay”}($r||($r={}));var ol=i(25799);function rl(e){var n;return(n={})[$r.ClickToPlayPauseOverlay]=function(e){var n=e.active,i=e.videoPlaybackContext,t=e.uiContext,a=(0,_.wk)(e),o=a.displayPlayPauseAsOverlay,r=a.forceControlVisibility;return!(!t.showControls||!o||!n&&i.isPlaying&&r!==zt.Ie.Showing)}(e),n[$r.ClickToUnmuteOverlay]=function(e){var n=e.playerContext,i=e.videoPlaybackContext,t=(0,_.wk)(e),a=t.showInitialMutedOnVolumeButton,o=t.displayPlayPauseAsOverlay;return!el(e)&&i.isPlaying&&!(0,ue.xB)(n)&&!a&&!o}(e),n[$r.AdStatsOverlay]=function(e){return e.uiContext.statsOverlay===b.Uz.Ad}(e),n[$r.BottomControlsOverlay]=(0,tl.vg)(e),n[$r.CelebrationsOverlay]=function(e){return!e.playerContext.isPlayerCoreLoading}(e),n[$r.ChannelSkinsOverlay]=function(e){return!!(0,_.wk)(e).enableChannelSkinsVideoOverlay&&(0,de.DG)(e.playerPublicPropsContext.content)}(e),n[$r.ChatHappeningNowOverlay]=function(e){var n=e.adContext,i=e.playerContext,t=e.playerPublicPropsContext,a=e.uiContext,o=V.x2.store.getState(),r=(0,_.Rh)({playerPublicPropsContext:t});return(!o.ui.rightColumnExpanded||a.isFullscreen)&&!(0,w.cz)(n.videoAdMetadata)&&!i.isOffline&&(0,de.DG)(r)&&(0,Jr.O)(t)===Yr.C.Site}(e),n[$r.ClickHandlerOverlay]=function(e){return!((0,_.wk)(e).disableDoubleClickFullscreen&&void 0===(0,_.zB)(e).onPlayerClick||(0,w.cz)(e.adContext.videoAdMetadata))}(e),n[$r.ClipEmbedErrorOverlay]=function(e){var n=e.playerPublicPropsContext,i=e.playerContext,t=(0,_.Rh)({playerPublicPropsContext:n}),a=(0,_.wk)(e).embed;return!(!(0,de.Jn)(t)||!a||i.sourceStatus!==se.O.None)}(e),n[$r.ClipPostplayRecommendationsOverlay]=function(e){var n=e.playerPublicPropsContext,i=e.playerContext,t=(0,_.Rh)({playerPublicPropsContext:n});return!((0,w.cz)(e.adContext.videoAdMetadata)||!(0,de.Jn)(t)||!t.clipSlug||!(0,ue.pl)(i)||(0,_.wk)(e).disableRecommendations)}(e),n[$r.ClosedCaptionSettingsOverlay]=function(e){return e.uiContext.showClosedCaptionsSettings}(e),n[$r.CollectionEmptyOverlay]=function(e){var n=e.playerContext,i=e.playerPublicPropsContext;return n.sourceStatus===se.O.None&&i.content.type===ce.FC.Collection}(e),n[$r.CollectionSidebarOverlay]=function(e){return e.uiContext.isCollectionSidebarShowing}(e),n[$r.ExtensionsOverlay]=function(e){var n=e.playerPublicPropsContext,i=n.behaviors,t=n.content,a=e.playerContext.isOffline,o=i&&i.enableExtensions,r=(0,de.DG)(t),l=(0,de.hd)(t);return!(!(o&&r&&l)||a)}(e),n[$r.FollowPanelOverlay]=function(e){var n=e.playerPublicPropsContext,i=e.playerContext,t=e.adContext;return!(!(0,_.wk)(e).showOfflineChannelNotificationPrompt||!(0,tl.bz)(n.content,i.isOffline)||(0,w.cz)(t.videoAdMetadata)||al(e))}(e),n[$r.KeyboardShortcutsOverlay]=function(e){return e.uiContext.isKeyboardShortcutsVisible}(e),n[$r.LastActionOverlay]=function(e){var n=e.chromecastContext,i=e.playerContext,t=e.uiContext,a=(0,_.wk)(e).disableLastActionOverlay;return!((0,f.mh)(n)||i.isOffline||(0,ue.k1)(i)||t.isCollectionSidebarShowing||t.recommendationsShowing||a||i.sourceStatus===se.O.None)}(e),n[$r.LoadingOverlay]=el(e),n[$r.MiniOverlay]=function(e){return!!(0,_.wk)(e).mini}(e),n[$r.MutedSegmentsAlertOverlay]=function(e){var n=e.videoPlaybackContext;return(0,de.wy)((0,_.Rh)(e))&&n.isPlaying}(e),n[$r.OfflineBannerOverlay]=function(e){if((0,w.cz)(e.adContext.videoAdMetadata))return!1;var n=e.playerContext,i=e.playerPublicPropsContext,t=(0,_.Rh)({playerPublicPropsContext:i}).type===ce.FC.Live,a=(0,_.wk)(e).embed;return!(!t||!n.isOffline||a)}(e),n[$r.OfflineEmbedsOverlay]=al(e),n[$r.OfflineRecommendationsOverlay]=function(e){var n=e.playerPublicPropsContext,i=e.playerContext,t=!i.hasPlayed,a=i.playerState===il.p.ENDED,o=(0,_.wk)(e).embed;return!((0,w.cz)(e.adContext.videoAdMetadata)||!(0,tl.bz)(n.content,i.isOffline)||!t&&!a||(0,_.wk)(e).disableRecommendations||o)}(e),n[$r.SDANudgeOverlay]=function(e){var n=e.adContext,i=e.playerPublicPropsContext,t=e.adContext.isSDAContainerHidden,a=!1,o=V.x2.experiments.getAndTrackAssignment(“nabe_experiment”),r=n.sdaRequestCount;if(“turbo_1″!==o&&”support_1″!==o||(a=r%15==0),”turbo_2″!==o&&”help_2″!==o&&”support_2″!==o||(a=r%4==0),”turbo_4″!==o&&”help_4″!==o&&”support_4″!==o||(a=r%8==0),!n.lastSDAAdRequestBlocked&&!t)return!1;var l=(0,_.Rh)({playerPublicPropsContext:i}),s=(0,io.If)();return(0,w.cz)(n.videoAdMetadata)||(0,w.Eg)(n.adFormatMetadata)&&!t||(0,w.g)(n.adFormatMetadata)||!(0,de.DG)(l)||(0,Jr.O)(i)!==Yr.C.Site||void 0===s||io.l$.has(s)||(0,ue.pl)(e.playerContext)?(n.updateLastSDAAdRequestBlocked(!1),n.updateSDAHiddenState(!1),!1):a}(e),n[$r.SkipAdOverlay]=(0,ol.F)(e),n[$r.SubscriberVODOverlay]=function(e){return(0,ue.k1)(e.playerContext,vo.S.SubscriberVOD)}(e),n[$r.TopBarOverlay]=function(e){if((0,Co.T)(e.playerContext))return!1;var n=e.active,i=e.videoPlaybackContext,t=e.uiContext,a=(0,_.wk)(e).forceControlVisibility;return!(!t.showControls||!n&&i.isPlaying&&a!==zt.Ie.Showing)}(e),n[$r.TwitchGateOverlay]=function(e){return!!(0,_.wk)(e).blockTwitchExclusiveContent}(e),n[$r.ClipShareOverlay]=function(e){return e.uiContext.isClipSharing}(e),n[$r.VideoStatsOverlay]=function(e){return e.uiContext.statsOverlay===b.Uz.Video}(e),n[$r.VODPostplayRecommendationsOverlay]=function(e){var n=(0,_.Rh)(e);return!(0,w.cz)(e.adContext.videoAdMetadata)&&((0,de.wy)(n)||(0,de.P3)(n))&&(0,ue.pl)(e.playerContext)&&!(0,_.wk)(e).disableRecommendations}(e),n[$r.VODPreviewOverlay]=function(e){var n,i=e.playerContext,t=e.videoPlaybackContext;return!((null===(n=e.playerPublicPropsContext.behaviors)||void 0===n?void 0:n.disableVODPreviewOverlay)||i.autoplay||i.hasPlayed||t.isPlaying)}(e),n[$r.OneTapOverlay]=function(e){var n=e.playerContext,i=e.playerPublicPropsContext,t=(0,_.Rh)({playerPublicPropsContext:i}),a=(0,_.wk)(e).enableOneTap;return V.x2.store.getState().session.firstPageLoaded&&!n.isPlayerCoreLoading&&(0,de.DG)(t)&&!!a&&!(0,w.cz)(e.adContext.videoAdMetadata)}(e),n[$r.OneTapStoreOverlay]=function(e){var n=e.playerContext,i=e.playerPublicPropsContext,t=(0,_.Rh)({playerPublicPropsContext:i}),a=(0,_.wk)(e).enableOneTap;return V.x2.store.getState().session.firstPageLoaded&&!n.isPlayerCoreLoading&&(0,de.DG)(t)&&!!a}(e),n[$r.ClickableCTAOverlay]=(0,nl.l)(e),n[$r.CostreamStartConfirmOverlay]=function(e){var n=e.playerContext,i=e.playerPublicPropsContext,t=(0,_.Rh)({playerPublicPropsContext:i}),a=(0,_.wk)(e).costreamerOverlay;return!n.isPlayerCoreLoading&&(0,de.DG)(t)&&!!(null==a?void 0:a.showOverlay)}(e),n}var ll=s.x.wrap((function(){return i.e(57796).then(i.bind(i,37881))}),”ChannelSkinsOverlay”,{failSilently:!0,placeholder:null}),sl=s.x.wrap((function(){return Promise.all([i.e(40270),i.e(97820),i.e(72723)]).then(i.bind(i,917830))}),”OneTapStore”),dl=s.x.wrap((function(){return Promise.all([i.e(88721),i.e(45926)]).then(i.bind(i,217799))}),”CostreamStartConfirmOverlay”),ul=s.x.wrap((function(){return Promise.all([i.e(40270),i.e(97820),i.e(72723)]).then(i.bind(i,917830))}),”OneTapBreakpointAnimationPlayerOverlay”),cl=s.x.wrap((function(){return Promise.all([i.e(40270),i.e(97820),i.e(72723)]).then(i.bind(i,917830))}),”OneTapStreakPills”),ml=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.renderMiniOverlay=function(e){return(0,a.jsx)(a.Fragment,{children:e[$r.MiniOverlay]&&(0,a.jsx)(pa,{})})},n.renderContentGatingOverlays=function(e){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(N.r,{}),(0,a.jsx)($a.fp,{}),(0,a.jsx)(_n.BF,{}),e[$r.TwitchGateOverlay]&&(0,a.jsx)(Pr,{}),(0,a.jsx)(P.vb,{}),e[$r.SubscriberVODOverlay]&&(0,a.jsx)(bo,{}),e[$r.CelebrationsOverlay]&&(0,a.jsx)(c.l,{ref:m.e})]})},n.renderContentClickOverlays=function(e){return(0,a.jsxs)(a.Fragment,{children:[!(0,_.wk)(n.props).mini&&e[$r.ClickHandlerOverlay]&&(0,a.jsx)(L.z,{}),e[$r.ClickToPlayPauseOverlay]&&(0,_.wk)(n.props).displayPlayPauseAsOverlay&&(0,a.jsx)(Q,{}),e[$r.ExtensionsOverlay]&&(0,a.jsx)(At,{}),!(0,_.wk)(n.props).mini&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(K,{canShow:e[$r.ClickToUnmuteOverlay]}),e[$r.LastActionOverlay]&&(0,a.jsx)(ua,{})]})]})},n.renderContentCoveringOverlays=function(e){return!(0,_.wk)(n.props).mini&&(0,a.jsxs)(a.Fragment,{children:[e[$r.OneTapOverlay]&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ul,{}),(0,a.jsx)(cl,{})]}),e[$r.ChannelSkinsOverlay]&&(0,a.jsx)(ll,{}),(i=n.props,t=i.playerContext,o=(0,_.wk)(i),r=o.forceControlVisibility,!(o.mini||t.isPlayerCoreLoading||(0,ue.k1)({restrictions:t.restrictions})||r===zt.Ie.Hidden)&&(0,a.jsx)(_r,{shouldShow:e[$r.TopBarOverlay],isOffline:e[$r.OfflineEmbedsOverlay]})),(0,a.jsx)(ei,{isOnScreenControlsOn:(0,tl.A$)(n.props)&&e[$r.BottomControlsOverlay]}),(0,a.jsx)(j.jW,{}),e[$r.FollowPanelOverlay]&&(0,a.jsx)(Xt,{}),e[$r.KeyboardShortcutsOverlay]&&(0,a.jsx)(oa,{}),e[$r.VideoStatsOverlay]&&(0,a.jsx)(Or.J2,{}),e[$r.AdStatsOverlay]&&(0,a.jsx)(D.V,{}),(0,a.jsx)(A,{}),e[$r.ChatHappeningNowOverlay]&&(0,a.jsx)(I.X,{})]});var i,t,o,r},n.renderTemporaryInteractionOverlays=function(e){var i,t,o,r;return!(0,_.wk)(n.props).mini&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(wn,{}),e[$r.ClipShareOverlay]&&(0,a.jsx)(cn,{}),e[$r.MutedSegmentsAlertOverlay]&&(0,a.jsx)(xa,{bottomControlsShowing:e[$r.BottomControlsOverlay]}),e[$r.ClosedCaptionSettingsOverlay]&&(0,a.jsx)(pn.rb,{}),e[$r.VODPreviewOverlay]&&(0,a.jsx)(Kr,{}),e[$r.SDANudgeOverlay]&&(0,a.jsx)(uo,{}),e[$r.ClickableCTAOverlay]&&(0,a.jsx)($.v$,{}),e[$r.SkipAdOverlay]&&(0,a.jsx)(co.D,{}),e[$r.OneTapStoreOverlay]&&(0,a.jsx)(sl,{isVideoAdShowing:(0,w.cz)(n.props.adContext.videoAdMetadata)}),e[$r.CostreamStartConfirmOverlay]&&(0,a.jsx)(dl,{channelDisplayName:null===(i=(0,_.wk)(n.props).costreamerOverlay)||void 0===i?void 0:i.channelDisplayName,channelLogin:null===(t=(0,_.wk)(n.props).costreamerOverlay)||void 0===t?void 0:t.channelLogin,setShowOverlay:null===(o=(0,_.wk)(n.props).costreamerOverlay)||void 0===o?void 0:o.setShowOverlay,channelId:null===(r=(0,_.wk)(n.props).costreamerOverlay)||void 0===r?void 0:r.channelId})]})},n.renderContentRecommendations=function(e){return(0,a.jsxs)(a.Fragment,{children:[!(0,_.wk)(n.props).mini&&e[$r.ClipPostplayRecommendationsOverlay]&&(0,a.jsx)(Ge,{}),!(0,_.wk)(n.props).mini&&e[$r.OfflineEmbedsOverlay]&&(0,a.jsx)(Ra,{}),!(0,_.wk)(n.props).mini&&e[$r.OfflineRecommendationsOverlay]&&(0,a.jsx)(Xa,{}),e[$r.VODPostplayRecommendationsOverlay]&&(0,a.jsx)(Qr,{})]})},n.renderContentReplacedOverlays=function(e){var i=!(0,_.wk)(n.props).mini&&(0,a.jsxs)(a.Fragment,{children:[e[$r.OfflineBannerOverlay]&&(0,a.jsx)(_a,{}),(0,a.jsx)(Fr,{}),e[$r.CollectionEmptyOverlay]&&(0,a.jsx)(hn,{}),e[$r.ClipEmbedErrorOverlay]&&(0,a.jsx)(ne,{})]});return(0,a.jsxs)(a.Fragment,{children:[i,(0,a.jsx)(v.Bt,{})]})},n.renderContentLoadingOverlays=function(e){return(0,a.jsx)(a.Fragment,{children:e[$r.LoadingOverlay]&&(0,a.jsx)(ca.p8,{})})},n}return(0,t.__extends)(n,e),n.prototype.render=function(){var e,n=rl(this.props);return(0,a.jsxs)(a.Fragment,{children:[this.renderContentReplacedOverlays(n),this.renderContentLoadingOverlays(n),this.renderContentClickOverlays(n),this.renderContentRecommendations(n),(0,a.jsx)(ni.h,{}),this.renderContentCoveringOverlays(n),this.renderTemporaryInteractionOverlays(n),(0,tl.A$)(this.props)&&(0,a.jsx)(Ka.q,{shouldShow:n[$r.BottomControlsOverlay],isOffline:(0,tl.Tm)(this.props),isAccessibilityLandmark:!(0,k.OI)(this.props.contentClassificationContext.overlayType),shouldPushVolumeToRight:(0,_.wk)(this.props).shiftVolumeToRightCorner,shouldDisplayPlayPauseAsOverlay:(0,_.wk)(this.props).displayPlayPauseAsOverlay}),this.renderContentGatingOverlays(n),this.renderMiniOverlay(n),(0,a.jsx)(d.c,{managerId:”player”,shouldMount:(e=this.props,!(0,_.wk)(e).mini)})]})},n}(o.Component),pl=(0,r.Zz)((0,l.X)({name:”OverlayManager”}),(0,y.In)((function(e){return{active:e.active}})),(0,f.vM)(),(0,h.VX)(),(0,u.IU)(),p.zX,(0,g.ZM)(),(0,S.dd)(),(0,x.cj)(),(0,b.c0)(),(0,C.AP)())(ml)},853496:function(e,n,i){“use strict”;i.d(n,{X:function(){return s},b:function(){return l}});var t=i(474848),a=i(959340),o=i(914421),r=(i(296540),(0,i(148223).k3)()),l=function(){return document.getElementById(r)},s=function(){return(0,t.jsx)(a.P,{position:o.yX.Absolute,attachTop:!0,attachRight:!0,margin:{top:”6rem”,right:1},id:r,width:”37rem”,style:{transform:”scale(1)”},”aria-label”:”Chat Happening Now Overlay”})}},672498:function(e,n,i){“use strict”;i.d(n,{PS:function(){return g},zm:function(){return k},rE:function(){return y}});var t=i(331635),a=i(296540),o=i(29896),r=i(148223),l=i(876531),s=i(661988),d=i(212276),u=i(891975),c=i(880428);function m(e,n){var i=(0,a.useRef)(n);i.current=n,(0,u.S)((function(){return c.Z.on(e,(function(e){return i.current(e)}))}))}var p=i(441663),v=i.n(p),h=i(802116),f=i.n(h);function g(e){var n,i,t,a,o,r,l,s;return e?{channelLogin:(null===(n=e.broadcaster)||void 0===n?void 0:n.login)||””,displayName:(null===(i=e.broadcaster)||void 0===i?void 0:i.displayName)||(null===(t=e.broadcaster)||void 0===t?void 0:t.login)||””,category:”recs”,content:{channelLogin:(null===(a=e.broadcaster)||void 0===a?void 0:a.login)||””,clipSlug:e.slug||””,type:d.FC.Clip},durationSeconds:e.durationSeconds||0,gameName:(null===(o=e.game)||void 0===o?void 0:o.displayName)||””,itemID:e.slug||””,imageUrl:e.thumbnailURL||””,title:e.title||””,tracking:{content:”recommendation_recs”},type:”clip”,viewCount:e.viewCount||0,gameID:(null===(r=e.game)||void 0===r?void 0:r.id)||””,gameSlug:(null===(l=e.game)||void 0===l?void 0:l.categorySlug)||””,language:e.language||””,channelID:(null===(s=e.broadcaster)||void 0===s?void 0:s.id)||””}:null}function k(){var e=(0,o.n_)(f())[0],n=a.useCallback((function(n,i,a){var o;e({variables:{input:{context:(0,c.s)({item:a,pageview:null!==(o=s.E5.getLastPageview())&&void 0!==o?o:null}),feedLocation:l._fN.CLIPS,sessionID:s.x2.session.appSessionID,interactions:[(0,t.__assign)((0,t.__assign)({},n),{feedInteractionType:i,interactionID:(0,r.k3)()})]}}})}),[e]);m(“impression”,(function(e){n({feedImpressionInput:{itemID:e.itemID,itemType:l.Auz.CLIP}},l.TIs.FEED_IMPRESSION,e.recommendation)}))}function y(e){var n,i=e.slug,d=(0,o.n_)(f())[0],u=(0,o.IT)(v(),{variables:{slug:i},skip:!i}).data,p=g(null!==(n=null==u?void 0:u.clip)&&void 0!==n?n:null),h=a.useCallback((function(e,n){var i;p&&d({variables:{input:{context:(0,c.s)({item:p,pageview:null!==(i=s.E5.getLastPageview())&&void 0!==i?i:null}),feedLocation:l._fN.CLIPS,sessionID:s.x2.session.appSessionID,interactions:[(0,t.__assign)((0,t.__assign)({},e),{feedInteractionType:n,interactionID:(0,r.k3)()})]}}})}),[d,p]);m(“watchExit”,(function(e){var n,i;h({feedWatchInput:{impressionID:null!==(n=null==p?void 0:p.itemID)&&void 0!==n?n:””,totalSecondsWatched:e.totalSecondsWatched,interactionReason:l.g1o.EXIT,itemID:null!==(i=null==p?void 0:p.itemID)&&void 0!==i?i:””,itemType:l.Auz.CLIP,clipOffset:e.clipOffset,muteDurationSeconds:e.muteDurationSeconds,secondsSinceLastWatch:e.secondsSinceLastWatch}},l.TIs.FEED_WATCH)})),m(“watchImpression”,(function(){var e;h({feedImpressionInput:{itemID:null!==(e=null==p?void 0:p.itemID)&&void 0!==e?e:””,itemType:l.Auz.CLIP}},l.TIs.FEED_IMPRESSION)})),m(“feedCompletion”,(function(){var e;h({feedCompletionInput:{itemID:null!==(e=null==p?void 0:p.itemID)&&void 0!==e?e:””,itemType:l.Auz.CLIP}},l.TIs.FEED_COMPLETION)})),m(“pause”,(function(e){var n;h({feedPauseInput:{itemID:null!==(n=null==p?void 0:p.itemID)&&void 0!==n?n:””,itemType:l.Auz.CLIP,secondsWatched:e.totalSecondsWatched}},l.TIs.FEED_PAUSE)})),m(“unpause”,(function(e){var n;h({feedUnpauseInput:{itemID:null!==(n=null==p?void 0:p.itemID)&&void 0!==n?n:””,itemType:l.Auz.CLIP,secondsWatched:e.totalSecondsWatched}},l.TIs.FEED_UNPAUSE)})),m(“watchInterval”,(function(e){(null==p?void 0:p.itemID)&&h({feedWatchInput:{impressionID:null==p?void 0:p.itemID,itemID:null==p?void 0:p.itemID,itemType:l.Auz.CLIP,muteDurationSeconds:e.muteDurationSeconds,secondsSinceLastWatch:e.secondsSinceLastWatch,interactionReason:l.g1o.INTERVAL,clipOffset:e.clipOffset,totalSecondsWatched:e.totalSecondsWatched}},l.TIs.FEED_WATCH)}))}},880428:function(e,n,i){“use strict”;i.d(n,{Z:function(){return o},s:function(){return r}});var t=i(306730);var a,o=(a=new Map,{on:function(e,n){var i=a.get(e);return i?i.add(n):a.set(e,new Set([n])),function(){var i;return null===(i=a.get(e))||void 0===i?void 0:i.delete(n)}},emit:function(e,n){var i;null===(i=a.get(e))||void 0===i||i.forEach((function(e){return e(n)}))},reset:function(){a.clear()}});function r(e){var n=e.item,i=e.pageview;return”clip”!==n.type?{}:{categoryID:n.gameID,categoryName:n.gameName,categorySlug:n.gameSlug,channelID:n.channelID,channelLanguage:n.language,channelName:n.displayName,country:(0,t.If)(),pageviewContent:null==i?void 0:i.content,pageviewContentType:null==i?void 0:i.content_type,pageviewLocation:null==i?void 0:i.location,pageviewMedium:null==i?void 0:i.medium,platform:”web”}}},432647:function(e,n,i){“use strict”;i.d(n,{T:function(){return o},y:function(){return r}});var t=i(368770),a=i(661988),o=function(){var e,n,i=a.x2.store.getState();if(!(0,t.M3)(i))return!1;var o=null===(e=a.E5.getLastPageview())||void 0===e?void 0:e.medium,r=null===(n=a.E5.getLastPageview())||void 0===n?void 0:n.content;return!o||”clips_watch_page”===o&&”recommendation_recs”===r},r=function(){return!!o()&&”treatment”===a.Mv.getAssignment(“icvow_post_play_recs”,”string”,”control”)}},848737:function(e,n,i){“use strict”;i.d(n,{p8:function(){return p}});var t=i(474848),a=i(486489),o=i(959340),r=i(914421),l=i(312663),s=(i(296540),i(868238)),d=i(661988),u=i(757245),c=i(641896),m=i(810509),p=(0,s.Zz)((0,u.X)({name:”LoadingOverlay”}),(0,c.dd)((function(e){return{isNetworkOffline:e.isNetworkOffline}})))((function(e){var n=e.isNetworkOffline;return(0,t.jsxs)(m.FT,{transparency:m.xL.Transparency10,type:m.NL.Fullscreen,children:[(0,t.jsx)(a.k,{inheritColor:!0,size:a.H.Large}),n&&(0,t.jsx)(o.P,{className:”loading-overlay__user-offline”,margin:{top:2},textAlign:r.nO.Center,children:(0,t.jsx)(l.N,{bold:!0,color:r.Q1.Overlay,type:”h4″,children:(0,d.hw)(“You seem to be offline. Please wait while we try to reconnect.”,”VideoPlayerLoadingOverlay”)})})]})}))},905049:function(e,n,i){“use strict”;i.d(n,{q:function(){return co}});var t=i(331635),a=i(474848),o=i(67813),r=i(723319),l=i(959340),s=i(914421),d=i(298830),u=i(296540),c=i(868238),m=i(661988),p=i(765454),v=i(733016),h=i(757245),f=i(564139),g=i(963708),k=i(882197),y=i(726817),S=i(86011),x=i(324602),b=i(973373),C=i(656910),w=i(554264),_=i(246942),N=i.n(_),D=i(839719),P=i(370065),j=i(621790),I=i(844023),E=i(276337),F=i(571921),O=i(641896),T=i(911906),V=i(129721),M=i(731820),A=i(764059),L=i(249448),R=i(894320),B=i(536330),U=i(521022),z=i(498690),W=i.n(z),H=i(515514),G=i(876531),Q=”https://static-cdn.jtvnw.net/ttv-static/404_boxart-285×380.jpg”;function Z(e){var n=e.node;return n&&n.moments&&n.moments.edges&&n.moments.edges}function q(e){return e.description||””}function X(e){var n=Z(e);return n&&n.length||0}function K(e,n,i){if(e.type===G.cD1.GAME_CHANGE){var t=e.durationMilliseconds/1e3,a=e.positionMilliseconds/1e3;if(0===t)return””;if(n){var o=Math.round(a+t-i),r=(0,H.a3)(o);return(0,m.hw)(“{time} left”,{time:r},”ChapterSelectButton”)}return(0,H.a3)(t)}return e.subDescription||””}function $(e){return e.thumbnailURL?e.thumbnailURL:e.details.game&&e.details.game&&e.details.game.boxArtURL?e.details.game.boxArtURL:Q}var Y=”chapter-select-popover”,J=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.state={currentTime:0,open:!1,submenu:null,submenuTitle:null,playerHeight:(0,B.P)(n.props.videoContainer).height},n.toggleMenu=function(){n.setState((function(e){return{open:!e.open}}))},n.closeMenu=function(){n.setState({open:!1,submenu:null,submenuTitle:null})},n.closeSubmenu=function(){n.setState({submenu:null,submenuTitle:null})},n.selectChapter=function(e){var i=n.edges();if(i){var t=i[e],a=Z(t);a&&a.length?n.setState({submenu:a,submenuTitle:q(t.node)}):(n.props.seek(t.node.positionMilliseconds/1e3),n.closeMenu())}},n.setCurrentTime=function(e){n.setState({currentTime:e})},n.recalculatePlayerHeight=function(){n.setState({playerHeight:(0,B.P)(n.props.videoContainer).height})},n}return(0,t.__extends)(n,e),n.prototype.render=function(){var e=this.edges();return e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(j.$,{onResize:this.recalculatePlayerHeight}),(0,a.jsxs)(D.V,{onClickOut:this.closeMenu,children:[this.renderBalloon(e),(0,a.jsx)(U.g,{buttonIcon:g.u,label:(0,m.hw)(“Chapter Select”,”VideoPlayerChapterSelectButton>”),onClick:this.toggleMenu,tooltipPlacement:”top-end”,disabled:this.props.error})]})]}):null},n.prototype.edges=function(){var e,n=this.state.submenu||(e=this.props.data)&&e.video&&e.video.moments&&e.video.moments.edges;return n&&n.length?n:null},n.prototype.renderBalloon=function(e){var n=this,i=N()(“chapter-select-button__chapters”),o=e.map((function(i,a){return(0,u.createElement)(P.$,(0,t.__assign)({},function(e,n,i){var t=function(e,n,i){return e.node&&n&&n.node?i>=e.node.positionMilliseconds/1e3&&i=e.node.positionMilliseconds/1e3}(e,n,i);return{active:t,count:X(e),description:K(e.node,t,i),imageURL:$(e.node),text:q(e.node)}}(i,e[a+1],n.state.currentTime),{index:a,key:(o=i.node,o.positionMilliseconds/1e3),onClick:n.selectChapter}));var o}));return(0,a.jsx)(k.e,{theme:”dark”,children:(0,a.jsx)(l.P,{className:i,position:s.yX.Absolute,children:(0,a.jsxs)(y.A,{direction:S.j.TopLeft,maxHeight:”calc(“.concat(this.state.playerHeight,”px – 10rem)”),offsetY:”5rem”,popoverId:Y,size:x.$V.Medium,show:this.state.open,children:[this.renderBalloonHeader(),(0,a.jsx)(I.Vq,{children:(0,a.jsxs)(b.e,{popoverId:Y,children:[(0,a.jsx)(F.j,{onTimeChanged:this.setCurrentTime}),o]})})]})})})},n.prototype.renderBalloonHeader=function(){if(!this.state.submenu||!this.state.submenuTitle)return null;var e=(0,m.hw)(“Back”,”ChapterSelectButton”);return(0,a.jsx)(C.D,{popoverId:Y,title:this.state.submenuTitle,buttonLeftPrimary:{“aria-label”:e,icon:w.K,onClick:this.closeSubmenu,title:e},buttonRightPrimary:{onClick:this.closeMenu,”aria-label”:(0,m.hw)(“Close”,”ChapterSelectButton”)}})},n}(u.Component);var ee=(0,c.Zz)((0,M.c0)((function(e){return{videoContainer:e.videoContainer}})),(0,O.dd)((function(e){return{error:!!e.error}})),(0,T.cj)((function(e){return{vodID:(0,L.hq)(e.content),content:e.content,includePrivateVODs:(0,R.wk)({playerPublicPropsContext:e}).includePrivateVODs||!1}})),(0,V.o1)(),(0,E._v)(W(),{skip:function(e){return!e.vodID},options:function(e){return{variables:{videoID:e.vodID,includePrivate:e.includePrivateVODs||!1}}}}),(0,A.AP)((function(e){return{seek:e.seek}})))(J);var ne=i(538424),ie=i(514105),te=i(724422),ae=i(477540),oe=i(285289),re=i(665736),le=i(947153),se=function(e){var n=e.playerEvents,i=(0,u.useContext)(A.wL).isPlaying,t=(0,u.useContext)(O.$g).mediaPlayerInstance,a=(0,u.useState)(0),o=a[0],r=a[1];(0,u.useEffect)((function(){var e;i&&o<=0&&r(null!==(e=null==t?void 0:t.getDuration())&&void 0!==e?e:0)}),[i,o,t]);var l=(0,u.useCallback)((function(e){e>0&&r(e)}),[]);return(0,u.useEffect)((function(){return n.addEventListener(le.a.DURATION_CHANGED,l),function(){n.removeEventListener(le.a.DURATION_CHANGED,l)}}),[l,n]),o},de=i(156894),ue=i(349673),ce=(0,c.Zz)((0,O.dd)((function(e){return{mediaPlayerInstance:e.mediaPlayerInstance}})),(0,ie.X)())((function(e){var n=function(e){var n=se(e),i=(0,u.useState)(0),t=i[0],a=i[1],o=(0,u.useState)(!1),r=o[0],l=o[1],s=(0,u.useCallback)((function(e){a(e)}),[]),d=(0,u.useCallback)((function(e){a(e)}),[]),c=(0,u.useCallback)((function(e){l(e)}),[]),m=(0,u.useCallback)((function(n){var i;null===(i=e.mediaPlayerInstance)||void 0===i||i.seekTo(n)}),[e.mediaPlayerInstance]);return{clipLength:n,thumbLocation:Math.min(Math.max(t,e.startOffset),e.endOffset),handleThumbLocationChanged:m,isHovering:r,handleMouseOverChange:c,handleSeekComplete:s,handleTimeChanged:d}}(e),i=n.clipLength,t=n.thumbLocation,o=n.handleThumbLocationChanged,r=n.isHovering,s=n.handleMouseOverChange,d=n.handleSeekComplete,c=n.handleTimeChanged,m=[{type:ue.b.Fixed,id:”selected-segment”,start:e.startOffset,end:e.endOffset,color:te.K[“color-yellow”]}];return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(F.j,{onTimeChanged:c}),(0,a.jsx)(ae.Nb,{onSeekComplete:d}),(0,a.jsxs)(l.P,{display:”flex”,flexDirection:”column”,alignItems:”stretch”,children:[(0,a.jsx)(re.l,{currentTimeInSeconds:t,durationInSeconds:i,show:r}),(0,a.jsx)(oe.e,{currentTimeInSeconds:t,durationInSeconds:i}),(0,a.jsx)(de.y,{seekbarMin:0,seekbarMax:i,thumbLocation:t,segments:m,onThumbLocationChange:o,minAllowedThumbLocation:e.startOffset,maxAllowedThumbLocation:e.endOffset,alwaysShowThumb:!0,onMouseOverChange:s})]})]})}));var me=i(174485),pe=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.state={thumbLocation:0},n.handleTimeChanged=function(e){n.setState({thumbLocation:e})},n.handleSeekComplete=function(e){n.setState({thumbLocation:e})},n.handleThumbLocationChanged=function(e){var i=n.props.mediaPlayerInstance;i&&i.seekTo(e+n.props.startOffset)},n}return(0,t.__extends)(n,e),n.prototype.render=function(){var e=this.props,n=e.startOffset,i=e.endOffset,t=Math.min(Math.max(this.state.thumbLocation,n),i);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(F.j,{onTimeChanged:this.handleTimeChanged}),(0,a.jsx)(ae.Nb,{onSeekComplete:this.handleSeekComplete}),(0,a.jsx)(me.P,{onThumbLocationChanged:this.handleThumbLocationChanged,thumbLocation:t-n,clipLength:i-n})]})},n}(u.Component),ve=(0,c.Zz)((0,O.dd)((function(e){return{mediaPlayerInstance:e.mediaPlayerInstance}})),(0,ie.X)())(pe);var he=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.state={thumbLocation:0},n.handleTimeChanged=function(e){n.setState({thumbLocation:e})},n.handleThumbLocationChanged=function(e){var i=n.props.mediaPlayerInstance;i&&i.seekTo(e),n.setState({thumbLocation:e})},n}return(0,t.__extends)(n,e),n.prototype.render=function(){var e=this.props.clipLength,n=this.state.thumbLocation;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(F.j,{onTimeChanged:this.handleTimeChanged}),(0,a.jsx)(me.P,{onThumbLocationChanged:this.handleThumbLocationChanged,thumbLocation:n,clipLength:e})]})},n}(u.Component),fe=(0,O.dd)((function(e){return{mediaPlayerInstance:e.mediaPlayerInstance}}))(he);var ge=(0,c.Zz)((0,T.cj)((function(e){var n=(0,R.Rh)({playerPublicPropsContext:e});return{clipContent:(0,L.Jn)(n)?n:null}})),(0,ie.X)())((function(e){var n=function(e){var n=se(e),i=e.clipContent&&(0,L.N1)(e.clipContent);return{editingSegment:null==i?void 0:i[0],isPostEdit:!(!e.clipContent||!(0,L.J8)(e.clipContent)),clipLength:n}}(e),i=n.editingSegment,o=n.isPostEdit,r=n.clipLength;return e.clipContent?i?o?(0,a.jsx)(ve,(0,t.__assign)({},i)):(0,a.jsx)(ce,(0,t.__assign)({},i)):r?(0,a.jsx)(fe,{clipLength:r}):null:null}));var ke=i(759369),ye=i(331337),Se=i(644704),xe=(0,c.Zz)((0,M.c0)((function(e){return{toggleClipSharing:e.toggleClipSharing}})),(0,T.cj)((function(e){return{isClipEmbed:(0,Se.O)(e)===ye.C.ClipsEmbed}})))((function(e){var n=e.isClipEmbed,i=e.toggleClipSharing;return n?(0,a.jsx)(U.g,{onClick:i,buttonIcon:ke.t.Share,tooltipPlacement:”top-end”,label:(0,m.hw)(“Share”,”ClipShareButton”)}):null}));var be=i(65538),Ce=i(706411),we=i.n(Ce),_e=i(415044),Ne=i(554043),De=i(173531),Pe=i(12109),je=i(368770),Ie=i(58082),Ee=i(242282),Fe=i(959391),Oe=i(952792),Te=i(662438),Ve=i(952346),Me=i(233936),Ae=i(573527),Le=i(184877),Re=i.n(Le),Be=i(907520),Ue=i.n(Be),ze=i(874219);function We(e){var n=e.content;return(0,L.DG)(n)?n.channelLogin:null}function He(e){return!e||!m.Zn.get(“highwind_no_clips_channels”,[]).includes(e)}function Ge(e){return e.isLoggedIn&&!e.disableClipping&&(function(e){var n=e.channel_data;if(void 0===n||n.loading||!n.userByAttribute||!n.userByAttribute.stream)return!1;var i=n.userByAttribute.stream,t=i.id,a=i.isEncrypted,o=Boolean(t),r=We(e);return o&&He(r)&&!a}(e)||function(e){return!(!(0,L.hq)(e.content)&&!(0,L.dB)(e.content))&&He(We(e))}(e))&&(i=(n=e).content,t=n.isPlaying,a=n.hasPlayed,o=(0,L.DG)(i)&&!t,a&&!o)&&function(e){var n=e.isOffline,i=e.content,t=We(e),a=(0,L.hq)(i)||(0,L.dB)(e.content),o=!!t;return!(o&&n||!a&&!o)}(e)&&function(e){return!e.isVideoAdShowing}(e);var n,i,t,a,o}var Qe=”alt+x”;var Ze=(0,E._v)(Ue(),{options:function(e){return{variables:{input:{login:We(e),ownsVideoID:(0,L.hq)(e.content)}}}},skip:function(e){return!e.isLoggedIn||!We(e)&&!(0,L.hq)(e.content)},name:”channel_data”}),qe=(0,E._v)(Re(),{options:function(e){var n,i;return{variables:{broadcasterID:(0,L.hq)(e.content)?null:null===(i=null===(n=e.channel_data)||void 0===n?void 0:n.userByAttribute)||void 0===i?void 0:i.id,vodID:(0,L.hq)(e.content)}}},skip:function(e){var n,i;return!e.isLoggedIn||!(null===(i=null===(n=e.channel_data)||void 0===n?void 0:n.userByAttribute)||void 0===i?void 0:i.id)&&!(0,L.hq)(e.content)||!(0,Pe.fX)(“can_create_clip_darklaunch”)||!Ge(e)},name:”clip_creation_perms”}),Xe=(0,c.Zz)((0,_e.Ng)((function(e){return{isLoggedIn:(0,je.M3)(e)}})),(0,O.dd)((function(e){var n=e.mediaPlayerInstance,i=e.hasPlayed,t=e.isOffline;return{mediaPlayerInstance:n,hasPlayed:i,isOffline:t}})),(0,T.cj)((function(e){return{content:e.content,disableClipping:(0,R.wk)({playerPublicPropsContext:e}).disableClipping}})),(0,A.AP)((function(e){var n=e.isPlaying,i=e.muted,t=e.volume,a=e.setMuted;return{isPlaying:n,muted:i,volume:t,setMuted:a}})),(0,Me.VX)((function(e){return{isVideoAdShowing:(0,Ae.cz)(e.videoAdMetadata)}})),Ze,qe,(0,V.o1)())((function(e){var n,i,t,o,r,s,d,c,p,v,h,f,g,k,y=null===(n=e.clip_creation_perms)||void 0===n?void 0:n.canCreateClip,S=u.useState(0),x=S[0],b=S[1],C=”variant”===(0,De.r)(“lychee_durian_cherry”),w=(0,Oe.Q)().track,_=(0,_e.d4)(je.wz),N=(0,Ve.p)().closeModal,D=u.useContext(Ie.$c),P=D.openPopup,j=D.isOpened,I=u.useRef(e.muted),E=(null==_?void 0:_.id)===(null===(t=null===(i=e.channel_data)||void 0===i?void 0:i.userByAttribute)||void 0===t?void 0:t.id),F=function(e){var n=e.streamOffset;b(n)},O=function(){if(!y||y.isAllowed)return!0;return E?(0,Fe.L$)(y.errorCode):(0,Fe.p6)(y.errorCode)}(),T=(0,Ne.d)(null)===Ne.E.XS,V=!(null==y?void 0:y.isAllowed)||j,M=(0,Fe.Cv)(null==y?void 0:y.errorCode,null==y?void 0:y.requiredFollowingLengthMinutes);(0,ze.W)(null==_?void 0:_.id,null===(r=null===(o=e.channel_data)||void 0===o?void 0:o.userByAttribute)||void 0===r?void 0:r.id,(function(){var n;null===(n=e.clip_creation_perms)||void 0===n||n.refetch()}));var A=(null===(c=null===(d=null===(s=e.channel_data)||void 0===s?void 0:s.userByAttribute)||void 0===d?void 0:d.stream)||void 0===c?void 0:c.id)||null,R=(null===(v=null===(p=e.channel_data)||void 0===p?void 0:p.userByAttribute)||void 0===v?void 0:v.id)||null,B=null!==(g=null===(f=null===(h=e.channel_data)||void 0===h?void 0:h.userByAttribute)||void 0===f?void 0:f.login)&&void 0!==g?g:””,z=(0,L.hq)(e.content)||void 0,W=e.mediaPlayerInstance,H=(0,L.DG)(e.content)?x:null!==(k=null==W?void 0:W.getPosition())&&void 0!==k?k:0,G=(0,Ee.M)({location:window.location,channelLogin:B,vodID:z||””}).canShowClipEditorPopup,Q=function(){if(N(),I.current=e.muted,G()&&C&&P)return w({action:Te.U.CreateClip,broadcastID:A,channelID:R,vodID:z,rawMediaID:””,pip:!0}),void P({broadcastID:A,broadcasterID:R,broadcasterLogin:B,offsetSeconds:Math.floor(H),vodID:null!=z?z:null,initialVolume:I.current?0:e.volume,onMediaLoad:function(){return e.setMuted(!0)},onClose:function(){var n;P(null),e.setMuted(null!==(n=I.current)&&void 0!==n&&n)}});void 0!==W&&R&&((0,Fe.NC)({broadcastID:null!=A?A:void 0,broadcasterLogin:B,offsetSeconds:Math.floor(H),vodID:z}),w({action:Te.U.CreateClip,broadcastID:A,channelID:R,vodID:z,rawMediaID:””}),e.track(“player_click_clip”))};return u.useEffect((function(){var n;if(!y||y.isAllowed)return we().bind(Qe,Q),null===(n=e.mediaPlayerInstance)||void 0===n||n.addEventListener(le.a.SEGMENT_METADATA,F),function(){var n;we().unbind(Qe),null===(n=e.mediaPlayerInstance)||void 0===n||n.removeEventListener(le.a.SEGMENT_METADATA,F)}})),(0,a.jsx)(a.Fragment,{children:Ge(e)&&O&&(0,a.jsx)(l.P,{margin:{x:.5},style:{opacity:V?.5:1},children:(0,a.jsx)(U.g,{tooltipPlacement:”top”,label:M,buttonIcon:be.y,onClick:Q,disabledInteraction:V,children:!T&&(0,m.hw)(“Clip”,”ClipsButtonComponent”)})})})}));var Ke=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.onClick=function(){var e=n.props,i=e.captionsEnabled;(0,e.setClosedCaptionsEnabled)(!i)},n}return(0,t.__extends)(n,e),n.prototype.componentDidMount=function(){we().bind(“c”,this.onClick)},n.prototype.componentWillUnmount=function(){we().unbind(“c”)},n.prototype.render=function(){return this.props.captionsAvailable?(0,a.jsx)(U.g,{tooltipPlacement:”top-end”,label:(0,m.hw)(“Captions (c)”,”ClosedCaptionsButtonComponent”),buttonIcon:this.props.captionsEnabled?ke.t.CC:ke.t.CCOff,onClick:this.onClick}):null},n}(u.Component),$e=(0,c.Zz)((0,M.c0)((function(e){var n=e.captions,i=e.setClosedCaptionsEnabled;return{captionsAvailable:n.available,captionsEnabled:n.enabled,setClosedCaptionsEnabled:i}})),(0,V.o1)())(Ke);var Ye=i(508952),Je=i(29896),en=i(494280),nn=i(654195),tn=i(806677),an=function(e){var n,i=e.content,t=e.mediaPlayerInstance,a=u.useRef(null),o=i?(0,L.hd)(i):null;o!==(0,tn.Z)(o)&&(a.current=null);var r=null==t?void 0:t.getSessionData(),l=null!==(n=r&&r[“BROADCAST-ID”])&&void 0!==n?n:null;return l&&(a.current=l),a.current},on=i(212276),rn=i(539062),ln=i.n(rn),sn=i(110285),dn=i(216042),un=i(792486),cn=i(445373),mn=function(e){var n=e.onSkipToLive,i=e.content,t=e.isPausedOutsideDVRGap;return(0,L.MV)(i)||t?(0,a.jsx)(l.P,{display:”flex”,padding:{left:1},alignItems:”center”,children:(0,a.jsx)(dn.S,{display:”flex”,children:(0,a.jsx)(un.M,{onClick:n,role:”button”,”aria-label”:(0,m.hw)(“Skip to Live”,”DVRLiveDot”),children:(0,a.jsx)(cn.T,{})})})}):null},pn=i(15111),vn=i(682620),hn=i(119611),fn=i(552462),gn=i(548015),kn=function(e){var n=e.alwaysShowThumb,i=e.vodLength,t=e.seekbarMin,o=e.seekbarMax,r=e.thumbAriaAttributes,s=e.thumbLocation,d=e.minAllowedThumbLocation,c=e.maxAllowedThumbLocation,m=e.onThumbLocationChange,p=e.onMouseOverChange,v=e.onThumbDragStart,h=e.onMouseOverLocationChange,f=e.segments,g=e.isPausedOutsideDVRGap,k=(0,u.useState)(null),y=k[0],S=k[1],x=(0,u.useState)(!1),b=x[0],C=x[1],w=(0,u.useRef)(!1),_=(0,nn.sL)(),N=_.playbackID,D=_.content,P=_.setPlayerContent,j=null!==y,I=(0,a.jsx)(fn._,{ariaAttributes:r,show:b||j||n}),E=null!==y?y:s,F=(0,u.useCallback)((function(){if(D&&(0,L.lp)(D)){var e=(0,L.tK)(D);e&&((0,pn.a)({playbackID:N,currOffset:E,uptime:o}),P(e))}}),[N,E,o,D,P]);if(!D||!(0,L.lp)(D))return null;var O=(0,gn.Y)(f,{seekbarMin:t,thumbLocation:E});return(0,a.jsxs)(l.P,{display:”flex”,alignItems:”center”,children:[(0,a.jsx)(l.P,{flexGrow:1,children:(0,a.jsx)(hn.P,{onDragStart:function(){null==v||v()},onDragChange:function(e){S(e)},onDragEnd:function(e){j&&(i<=e&&(null==D?void 0:D.type)===on.FC.VOD?(w.current=!0,F(),setTimeout((function(){w.current=!1}),200)):null==m||m(e),S(null))},onClick:function(e){j||w.current||null==m||m(e)},onMouseEnter:function(){C(!0),null==p||p(!0)},onMouseLeave:function(){C(!1),null==p||p(!1)},onMouseMove:function(e){null==h||h(e)},seekbarMin:t,seekbarMax:o,allowedMin:d,allowedMax:c,children:(0,a.jsx)(vn.j,{min:t,max:o,thumbLocation:E,thumb:I,segments:O})})}),(0,a.jsx)(mn,{content:D,onSkipToLive:F,isPausedOutsideDVRGap:g})]})},yn=i(663953),Sn=i(552400),xn=i(97774),bn=i(312663),Cn=i(705980),wn=i(250740);function _n(){return(0,m.hw)("LIVE","DVRSeekbarTimeLabels")}var Nn=function(e){var n=e.currentTimeInSeconds,i=e.durationInSeconds,t=e.isPausedOutsideDVRGap,o=(0,nn.sL)(),r=o.playbackID,d=o.content,c=o.setPlayerContent,p=u.useContext(A.wL).play,v=(0,wn.X)(n);if(!d||!(0,L.lp)(d))return null;var h=function(){(0,pn.a)({playbackID:r,currOffset:n,uptime:i})},f=function(){if(d.type===on.FC.Live)return h(),void p();var e=(0,L.tK)(d);e&&(h(),c(e))},g=(0,a.jsx)(yn.qd,{label:_n()});return(d.type===on.FC.VOD||t)&&(g=(0,a.jsx)(Sn.m,{label:(0,m.hw)("Skip to Live","DVRSeekbarTimeLabels"),options:{placement:"top"},children:(0,a.jsxs)(l.P,{padding:{x:.5},display:"flex",background:"float",alignItems:"center",borderRadius:xn.Z.Medium,tabIndex:0,cursor:"pointer",onKeyUp:function(e){"Enter"===e.key&&f()},onClick:f,children:[(0,a.jsx)(bn.N,{bold:!0,children:_n()})," ",(0,a.jsx)(Cn.E,{size:18})]})})),(0,a.jsxs)(l.P,{display:s.nl.Flex,justifyContent:s.A9.Between,style:{userSelect:"none"},children:[(0,a.jsx)(bn.N,{color:s.Q1.Overlay,children:v}),g]})},Dn=i(479970),Pn=function(e){var n=(0,u.useState)(0),i=n[0],s=n[1],d=(0,u.useState)(!1),c=d[0],m=d[1],p=(0,u.useRef)(),v=(0,nn.sL)(),h=v.content,f=v.playbackID,g=(0,u.useContext)(A.wL),k=g.dvrSeek,y=g.isPlaying,S=g.userTriggeredPause,x=g.userTriggeredPlay,b=(0,u.useContext)(O.$g).mediaPlayerInstance,C=an({content:h,mediaPlayerInstance:b});(0,u.useEffect)((function(){return clearTimeout(p.current)}));var w=(0,t.__spreadArray)([{type:ue.b.FillToThumb,id:"watched-segment",color:te.K["color-twitch-purple-10"]}],e.mutedSegments.map((function(e,n){var i=e.duration,t=e.offset;return{type:ue.b.Fixed,id:"muted-segment-".concat(n),start:t,end:t+i,color:"rgba(212, 73, 73, 0.5)"}})),!0),_=e.contentType===on.FC.Live?e.liveDuration:e.vodLength,N=(0,u.useRef)(void 0);(0,u.useEffect)((function(){h&&(0,L.rX)(h)&&!y&&S&&!N.current&&(N.current=e.thumbLocation)}),[y,S,h,e.thumbLocation]),(0,u.useEffect)((function(){y&&N.current&&(x&&(k(N.current,_),(0,pn.G)({broadcastID:C,currOffset:_,pauseTriggered:!0,playbackID:f,uptime:_,targetOffset:N.current,vodID:h?(0,L.dB)(h):null})),N.current=void 0)}),[C,h,k,y,f,_,x]);var D=(null==h?void 0:h.type)===on.FC.Live&&y,P=(null==h?void 0:h.type)===on.FC.Live&&!y,j=P&&(null==N?void 0:N.current)&&N.current+(0,A.e8)()>e.liveDuration,I=P&&(null==N?void 0:N.current)&&N.current+(0,A.e8)()(0,ai.subMinutes)(e,10)})),n.bufferEvents=n.bufferEvents.slice(-3)},n.shouldShowNotification=function(){return n.props.isLive&&n.props.isLowLatencyCapable&&n.props.isLowLatencyEnabled&&!n.props.disableSettingsMenuButton&&n.bufferEvents.length>=3&&si()<=3&&(!(e=m.IG.getOptional(li))||(0,ai.subDays)(new Date,7)>=new Date(e));var e},n}return(0,t.__extends)(n,e),n.prototype.componentDidUpdate=function(e){e.isPlaying&&this.props.isBuffering&&this.handleBuffering()},n.prototype.render=function(){return this.state.shouldShow?(0,a.jsxs)(l.P,{padding:1,display:s.nl.Flex,alignItems:s.k2.Start,background:s.VS.Overlay,className:”low-latency-notification”,children:[(0,a.jsx)(bn.N,{children:(0,m.hw)(“Is video buffering? Use the Low Latency toggle under the Advanced menu in Settings to disable low latency mode”,”LowLatencyNotification”)}),(0,a.jsx)(l.P,{flexShrink:0,children:(0,a.jsx)(ii.a2,{“aria-label”:(0,m.hw)(“Close low latency reminder”,”LowLatencyNotification”),overlay:!0,icon:Wn.g,onClick:this.handleClose,size:ti.f.Small})})]}):null},n}(u.Component);var ui=(0,c.Zz)((0,T.cj)((function(e){return{isLive:(0,L.DG)(e.content),disableSettingsMenuButton:(0,R.wk)({playerPublicPropsContext:e}).disableSettingsMenuButton}})),(0,O.dd)((function(e){return{isBuffering:(0,oi.TN)(e),isLowLatencyCapable:(0,oi.RO)(e),isLowLatencyEnabled:e.isLiveLowLatencyEnabled,isPlaying:(0,oi.F4)(e)}})))(di),ci=i(305528),mi=i(739604),pi=i(170937),vi=(0,mi.U)({name:”VideoPlayer_PlayPauseButton”,category:”broadcast”}).Available,hi=function(e){if(e.showPlaceholder)return(0,a.jsx)(ci.Or,{width:30,height:30});var n=(0,pi.en)(e.buttonState),i=(0,pi.TO)(e.buttonState)||””,t=e.buttonState===pi.Ke.Playing,o=t?e.onPause:e.onPlay;return(0,a.jsx)(vi,{children:(0,a.jsx)(U.g,{“data-a-target”:”player-play-pause-button”,”data-a-player-state”:t?”playing”:”paused”,buttonIcon:n,label:i,onClick:o,tooltipPlacement:”top-start”,disabled:e.disabled})})},fi=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.play=function(){n.props.play({userTriggered:!0})},n.pause=function(){n.props.pause({userTriggered:!0})},n}return(0,t.__extends)(n,e),n.prototype.render=function(){return(0,a.jsx)(hi,{showPlaceholder:this.props.isPlayerCoreLoading,buttonState:(0,pi.Iz)(this.props),onPlay:this.play,onPause:this.pause,disabled:this.props.error})},n}(u.Component),gi=(0,pi.BZ)(fi),ki=i(26538),yi=i(487206),Si=i(913847),xi=function(e){var n=e.quality,i=e.indicateSourceQuality,t=(0,yi.ei)(n),o=(0,yi.IW)(n.codecs,t)&&yi.dD.includes(t)?t:null,r=(0,Si.xc)(n,i);return o&&(r=””.concat(r,” “).concat(o)),(0,a.jsx)(ki.a,{type:ki.y.Subtle,label:r})},bi=function(e){function n(n){var i=e.call(this,n)||this;return i.handleQualityChanged=function(){var e=i.props,n=e.mediaPlayerInstance,a=e.availableQualities,o=e.unavailableQualities,r=”treatment”===m.x2.experiments.__hardcodedStaleExperiment(“settings_overlay_indicator”,”control”);if(n&&!r){var l=n.getQuality(),s=(0,yi.m)(l,(0,t.__spreadArray)((0,t.__spreadArray)([],a,!0),o,!0));clearTimeout(i.timeout),i.setState({shouldRenderQuality:!0,quality:l,indicateSourceQuality:s}),i.timeout=setTimeout((function(){i.setState({shouldRenderQuality:!1})}),5e3)}},i.state={shouldRenderQuality:!1,quality:null,indicateSourceQuality:!1},i}return(0,t.__extends)(n,e),n.prototype.componentDidMount=function(){this.props.playerEvents.addEventListener(le.a.QUALITY_CHANGED,this.handleQualityChanged)},n.prototype.render=function(){var e=this.state,n=e.shouldRenderQuality,i=e.quality,t=e.indicateSourceQuality,l=this.props,s=l.speed,d=l.isLiveContent,u=n&&!!i||1!==s&&!d,c=null;return l.disableSettingsBanner?null:(n&&i?c=(0,a.jsx)(xi,{quality:i,indicateSourceQuality:t}):1===s||d||(c=(0,a.jsx)(ki.a,{type:ki.y.Subtle,label:””.concat(s,”x”)})),(0,a.jsx)(o.e,{type:r.ES.SlideOverRight,show:u,children:c}))},n.prototype.componentWillUnmount=function(){clearTimeout(this.timeout)},n}(u.Component),Ci=(0,c.Zz)((0,O.dd)((function(e){var n=e.mediaPlayerInstance,i=e.speed,t=e.availableQualities,a=e.unavailableQualities;return{mediaPlayerInstance:n,speed:i,availableQualities:t,unavailableQualities:a}})),(0,T.cj)((function(e){var n=e.content,i=e.behaviors;return{isLiveContent:(0,L.DG)(n),disableSettingsBanner:null==i?void 0:i.disableSettingsBanner}})),(0,ie.X)())(bi);var wi,_i=i(472571),Ni=i(424131),Di=i(843004),Pi=i(213912),ji=i(973448),Ii=i(231743);!function(e){e.MiniPlayerToggle=”mini-player-toggle”,e.VideoStatsToggle=”video-stats-toggle”,e.AdStatsToggle=”ad-stats-toggle”}(wi||(wi={}));var Ei=function(e){function n(n){var i,t=e.call(this,n)||this;t.toggleLowLatencyMode=function(){(0,Ii.K)(t.props)},t.toggleMiniPlayer=function(){var e=!t.state.isMiniPlayerEnabled;t.props.disableUserPreferencePersistence||m.IG.set(ji.U.PERSISTENCE_ENABLED,e),t.props.togglePersistentPlayer(),t.setState({isMiniPlayerEnabled:e})},t.isVideoStatsEnabled=function(){return t.props.statsOverlay===M.Uz.Video},t.toggleVideoStats=function(){var e=t.isVideoStatsEnabled()?M.Uz.None:M.Uz.Video;t.props.setStatsOverlay(e),t.props.hideKeyboardShortcuts()},t.isAdStatsEnabled=function(){return t.props.statsOverlay===M.Uz.Ad},t.toggleAdStats=function(){var e=t.isAdStatsEnabled()?M.Uz.None:M.Uz.Ad;t.props.setStatsOverlay(e),t.props.hideKeyboardShortcuts()};var a=null!==(i=m.IG.getOptional(ji.U.PERSISTENCE_ENABLED))&&void 0!==i?i:void 0;return t.state={isMiniPlayerEnabled:void 0===a||!!a},t}return(0,t.__extends)(n,e),n.prototype.render=function(){var e=this.renderLowLatencyToggle(),n=(0,m.hw)(“Mini Player”,”SettingsMenuSubmenuAdvanced”),i=(0,m.hw)(“Video Stats”,”SettingsMenuSubmenuAdvanced”),t=(0,m.hw)(“Ad Stats”,”SettingsMenuSubmenuAdvanced”);return(0,a.jsxs)(a.Fragment,{children:[e,this.props.showMiniToggleSettings&&(0,a.jsx)(Un.G,{addRole:!0,autoFocus:!0,label:n,type:Un.M.Toggle,onChange:this.toggleMiniPlayer,checked:this.state.isMiniPlayerEnabled,”data-test-selector”:wi.MiniPlayerToggle,”data-a-target”:”player-settings-submenu-advanced-toggle-mini”}),(0,a.jsx)(Un.G,{addRole:!0,autoFocus:!0,”data-a-target”:”player-settings-submenu-advanced-video-stats”,label:i,type:Un.M.Toggle,onChange:this.toggleVideoStats,checked:this.isVideoStatsEnabled(),”data-test-selector”:wi.VideoStatsToggle}),(0,a.jsx)(Un.G,{addRole:!0,”data-a-target”:”player-settings-submenu-advanced-ad-stats”,label:t,type:Un.M.Toggle,onChange:this.toggleAdStats,checked:this.isAdStatsEnabled(),”data-test-selector”:wi.AdStatsToggle})]})},n.prototype.renderLowLatencyToggle=function(){var e=this.props,n=e.isLowLatencyCapable,i=e.isLiveLowLatencyEnabled;if(!n)return null;var t=(0,m.hw)(“Low Latency”,”SettingsMenuSubmenuAdvanced”);return(0,a.jsx)(Un.G,{addRole:!0,label:t,type:Un.M.Toggle,onChange:this.toggleLowLatencyMode,checked:i})},n}(u.Component);var Fi=(0,c.Zz)((0,V.o1)(),(0,O.dd)((function(e){return{isLowLatencyCapable:(0,oi.RO)(e),isLiveLowLatencyEnabled:e.isLiveLowLatencyEnabled,mediaPlayerInstance:e.mediaPlayerInstance,updatePlayerContext:e.updateContext}})),(0,T.cj)((function(e){var n=(0,R.wk)({playerPublicPropsContext:e}),i=n.disableUserPreferencePersistence,t=n.showMiniToggleSettings;return{disableUserPreferencePersistence:i,showMiniToggleSettings:t}})),(0,M.c0)((function(e){var n=e.hideKeyboardShortcuts,i=e.setStatsOverlay,t=e.statsOverlay;return{hideKeyboardShortcuts:n,setStatsOverlay:i,statsOverlay:t}})),(0,_e.Ng)(null,(function(e){return(0,c.zH)({togglePersistentPlayer:Pi.he},e)})))(Ei);var Oi=i(469655);function Ti(e){return Ai(e)||e.isStaff||Vi(e)}function Vi(e){return e.sessionUser&&e.sessionUser.id&&e.sessionUser.id===Li(e)}function Mi(e){return e.sessionUser&&e.sessionUser.id&&e.sessionUser.id===function(e){return e.data&&e.data.clip&&e.data.clip.curator&&e.data.clip.curator.id}(e)}function Ai(e){return!!(e.data&&e.data.currentUser&&e.data.currentUser.roles&&e.data.currentUser.roles.isSiteAdmin)}function Li(e){return e.data&&e.data.clip&&e.data.clip.broadcaster&&e.data.clip.broadcaster.id}var Ri,Bi=i(783826),Ui=i(481391),zi=i.n(Ui),Wi=(0,E._v)(zi(),{options:function(e){var n;return{variables:{slug:null!==(n=e.clipSlug)&&void 0!==n?n:””,isCommunityMomentsFeatureEnabled:(0,Pe.fX)(Bi.g)}}},skip:function(e){return!e.clipSlug}});function Hi(e){return{sessionUser:(0,je.wz)(e),isLoggedIn:(0,je.M3)(e),isStaff:(0,je.Xl)(e)}}function Gi(){return function(e){return(0,c.Zz)((0,T.cj)(Qi),(0,_e.Ng)(Hi),Wi)(e)}}function Qi(e){var n=e.content;return{clipSlug:(0,L.Qc)(n),isEditing:(0,L.JN)(n)}}!function(e){e.DeleteButton=”delete-button”,e.DeleteAllButton=”delete-all-button”}(Ri||(Ri={}));var Zi=Ye.x.wrap((function(){return Promise.all([i.e(7205),i.e(43368),i.e(83985)]).then(i.bind(i,68760))}),”ClipsModalDelete”),qi=Ye.x.wrap((function(){return Promise.all([i.e(7205),i.e(43368),i.e(83985)]).then(i.bind(i,68760))}),”ClipsModalDeleteAll”),Xi=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.delete=function(){n.openModerationModal(Zi)},n.deleteAll=function(){n.openModerationModal(qi)},n}return(0,t.__extends)(n,e),n.prototype.render=function(){var e,n=(0,m.hw)(“Delete”,”SettingsMenuSubmenuClipsModeration”),i=(0,m.hw)(“Delete all clips from video”,”SettingsMenuSubmenuClipsModeration”);return Ti(this.props)&&(e=(0,a.jsx)(Bn.i,{addRole:!0,”data-test-selector”:Ri.DeleteAllButton,label:i,onClick:this.deleteAll})),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Bn.i,{addRole:!0,autoFocus:!0,”data-test-selector”:Ri.DeleteButton,label:n,onClick:this.delete}),e]})},n.prototype.openModerationModal=function(e){this.props.showModal(e,{slug:this.props.clipSlug,onClose:this.props.closeModal})},n}(u.Component);var Ki=(0,c.Zz)(Gi(),(0,_e.Ng)(null,(function(e){return(0,c.zH)({showModal:Oi.to,closeModal:Oi.Oo},e)})))(Xi),$i=i(684990),Yi=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.showSubMenu=function(){n.props.setActiveMenu(“settings-menu__advanced”)},n}return(0,t.__extends)(n,e),n.prototype.render=function(){var e=(0,m.hw)(“Advanced”,”SettingsMenuItemAdvanced”);return(0,a.jsx)(Bn.i,{addRole:!0,”data-a-target”:”player-settings-menu-item-advanced”,label:e,actionIcon:$i.W1,onClick:this.showSubMenu})},n}(u.Component),Ji=(0,V.o1)()(Yi),et=i(420398),nt=i(132005),it=i(153296),tt=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.handleClick=function(){n.props.setClosedCaptionsSettingsShowing(!0),n.props.setActiveMenu(“settings-menu__none”)},n}return(0,t.__extends)(n,e),n.prototype.render=function(){var e=(0,it.U)(this.props.captionsEnabled);return(0,a.jsx)(Bn.i,{addRole:!0,onClick:this.handleClick,actionIcon:$i.W1,children:(0,a.jsxs)(l.P,{display:”flex”,flexDirection:”column”,children:[e,(0,a.jsxs)(l.P,{display:”flex”,alignItems:”center”,gap:1,children:[this.props.captionsAvailable?(0,a.jsx)(et.w,{}):(0,a.jsx)(nt.D,{}),(0,a.jsx)(bn.N,{fontSize:s.Z4.Size5,children:this.props.captionsAvailable?(0,m.hw)(“Captions available”,”SettingsMenuItemCCOptions”):(0,m.hw)(“Not available for this content”,”SettingsMenuItemCCOptions”)})]})]})})},n}(u.Component);var at,ot=(0,c.Zz)((0,M.c0)((function(e){var n=e.captions,i=e.setClosedCaptionsSettingsShowing;return{captionsAvailable:n.available,captionsEnabled:n.enabled,setClosedCaptionsSettingsShowing:i}})))(tt),rt=i(392395),lt=i(407590),st=i(433989),dt=i(42820),ut=i(746821),ct=i(183198),mt=i(637765),pt=i(907251),vt=i(744883),ht=i(224300),ft=i(165495);!function(e){e.On=”on”,e.Off=”off”}(at||(at={}));var gt=(0,ft.yg)()((function(e){var n,i=e.closeSettingsMenu,t=e.data,o=null===(n=null==t?void 0:t.user)||void 0===n?void 0:n.id,r=(0,pt.$)().setHappeningNowSettings,d=(0,vt.L)(),c=(0,_e.wA)(),p=(0,_e.d4)(je.M3),v=(0,_e.d4)(ct.GQ),h=u.useContext(M._t).isFullscreen,f=(0,st.H)(),g=(0,mt.r)(ht.FI,!1),k=g[0],y=g[1],S=(0,m.hw)(“Events will still appear when chat is hidden, including polls, predictions, pinned chats, and Hype Trains.”,”SettingsMenuChatHappeningNow”),x=(0,m.hw)(“Always Show Events”,”SettingsMenuChatHappeningNow”);u.useEffect((function(){return function(){k||m.IG.set(ht.FI,!0)}}),[k,y]);var b=!p||d,C=u.useCallback((function(){if(!p)return h&&f.disable(),i(),void c((0,ut.iD)(dt.W.HappeningNowSettings));var e=!d;r(e);var n=e?at.On:at.Off,t=h?”full_screen”:v?”theater_mode”:”default”;m.E5.track(“client_happening_now_status_toggle”,{channel_id:o||null,player_size_mode:t,status:n})}),[o,i,c,f,d,h,v,p,r]);return(0,a.jsxs)(l.P,{display:s.nl.Flex,alignItems:s.k2.Center,padding:.5,cursor:s.bs.Pointer,children:[(0,a.jsxs)(l.P,{onClick:C,display:s.nl.Flex,alignItems:s.k2.Center,margin:{right:.5},width:”100%”,role:”menuitemcheckbox”,tabIndex:0,children:[(0,a.jsx)(l.P,{margin:{right:.5},children:(0,a.jsx)(bn.N,{children:x})}),(0,a.jsx)(l.P,{height:”2rem”,margin:{right:.5},role:”tooltip”,”aria-label”:S,tabIndex:0,children:(0,a.jsx)(Sn.m,{label:S,maxWidth:”190px”,options:{placement:”top”},children:(0,a.jsx)(rt.h,{fillColor:”alt-2″})})}),!k&&(0,a.jsx)(ki.a,{label:(0,m.hw)(“NEW”,”SettingsMenuChatHappeningNow”),type:”new”})]}),(0,a.jsx)(lt.l,{label:x,checked:b,onChange:C})]})})),kt=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.showSubMenu=function(){return n.props.setActiveMenu(“settings-menu__clips-moderation”)},n}return(0,t.__extends)(n,e),n.prototype.render=function(){if(!this.shouldShow())return null;var e=(0,m.hw)(“Moderation”,”SettingsMenuItemClipsModeration”);return(0,a.jsx)(Bn.i,{addRole:!0,label:e,actionIcon:$i.W1,onClick:this.showSubMenu})},n.prototype.shouldShow=function(){return!this.props.isEditing&&!!this.props.clipSlug&&(Ti(e=this.props)||Mi(e));var e},n}(u.Component),yt=Gi()(kt),St=i(781757),xt=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.openModal=function(){var e,i,t,a=n.props.clipSlug,o=Li(n.props);a&&o&&n.props.showModal(St.Z,{onClose:n.props.closeModal,reportContext:{contentType:G.Cah.CLIP_REPORT,contentID:a,targetUserID:o,contentMetadata:{momentID:null===(t=null===(i=null===(e=n.props.data)||void 0===e?void 0:e.clip)||void 0===i?void 0:i.communityMoment)||void 0===t?void 0:t.id},trackingContext:”settings_menu_clips_report”}})},n}return(0,t.__extends)(n,e),n.prototype.render=function(){if(!this.shouldShow())return null;var e=(0,m.hw)(“Report Clip”,”SettingsMenuItemClipsReport”);return(0,a.jsx)(Bn.i,{label:e,onClick:this.openModal})},n.prototype.shouldShow=function(){return!!(!this.props.isEditing&&this.props.clipSlug&&Li(this.props)&&(e=this.props,e.isStaff||Ai(e)||e.isLoggedIn&&!Mi(e)&&!Vi(e)));var e},n}(u.Component);var bt=(0,c.Zz)(Gi(),(0,_e.Ng)(null,(function(e){return(0,c.zH)({showModal:Oi.to,closeModal:Oi.Oo},e)})))(xt),Ct=function(e){var n=e.closeSettingsMenu;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Bn.i,{addRole:!0,autoFocus:!0,label:(0,m.hw)(“Close”,”SettingsMenuCloseButton”),figure:{icon:Wn.g},onClick:n}),(0,a.jsx)(zn.m,{})]})},wt=i(696258),_t=i(584074),Nt=i(782426),Dt=function(e){function n(n){var i=e.call(this,n)||this;return i.shouldShow=function(){var e=i.props.content,n=i.props.getFullyFormedUrl(e);return((0,L.wy)(e)||(0,L.P3)(e))&&n!==Nt.Kk},i.getCurrentTime=function(){var e=i.props.mediaPlayerInstance;return e?Math.floor(e.getPosition()):0},i.updateCurrentTime=function(){var e=i.getCurrentTime();i.state.currentTime!==e&&i.setState({currentTime:e})},i.copyURLDisabled=function(){return i.setState({copyURLDisabled:!1})},i.handleClick=function(){var e=i.props.mediaPlayerInstance,n=i.props.content;e&&((0,L.wy)(n)||(0,L.P3)(n))&&(n=(0,t.__assign)((0,t.__assign)({},n),{videoOffset:Math.floor(e.getPosition())}));var a=i.props.getFullyFormedUrl(n);(0,wt.e)(a),i.setState({copyURLDisabled:!0}),i.timeout=setTimeout(i.copyURLDisabled,2e3)},i.state={copyURLDisabled:!1,currentTime:i.getCurrentTime()},i}return(0,t.__extends)(n,e),n.prototype.componentDidMount=function(){this.props.playerEvents.addEventListener(le.a.TIME_UPDATE,this.updateCurrentTime)},n.prototype.componentWillUnmount=function(){clearTimeout(this.timeout)},n.prototype.render=function(){if(!this.shouldShow())return null;var e=(0,m.hw)(“Copy Video URL at {timestamp}”,{timestamp:(0,H.a3)(this.state.currentTime,H.wg.ClockHMS)},”SettingsMenuItemCopyVideoURLComponent”),n=(0,m.hw)(“Copied!”,”SettingsMenuItemCopyVideoURLComponent”);return(0,a.jsx)(Bn.i,{addRole:!0,disabled:this.state.copyURLDisabled,label:this.state.copyURLDisabled?n:e,onClick:this.handleClick})},n}(u.Component);var Pt=(0,c.Zz)((0,T.cj)((function(e){return{content:e.content}})),(0,O.dd)((function(e){return{mediaPlayerInstance:e.mediaPlayerInstance}})),(0,ie.X)(),(0,_t.e)())(Dt),jt=function(e){var n=e.closeSettingsMenu,i=(0,u.useContext)(T.kl).content,t=(0,u.useContext)(M._t),o=t.isDVRSeekbarVisible,r=t.toggleDVRSeekbarVisibility;if(!(0,L.lp)(i))return null;var l=(0,m.hw)(“Hide Seek Bar”,”SettingsMenuItemDVRHideSeekbar”),s=(0,m.hw)(“Show Seek Bar”,”SettingsMenuItemDVRHideSeekbar”);return(0,a.jsx)(Bn.i,{addRole:!0,onClick:function(){r(),n()},children:o?l:s})},It=function(){var e=(0,u.useContext)(M._t),n=e.setStatsOverlay,i=e.showKeyboardShortcuts,t=(0,u.useCallback)((function(){n(M.Uz.None),i()}),[n,i]);return(0,u.useMemo)((function(){return(0,a.jsx)(Bn.i,{addRole:!0,label:(0,m.hw)(“View Keyboard Shortcuts”,”SettingsMenuItemKeyboardShortcuts”),onClick:t})}),[t])},Et=i(702190),Ft=480,Ot=853,Tt=[ye.C.Imdb],Vt=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.shouldShow=function(){var e=n.props,i=e.playerType,t=e.isClipContent;return!(i===ye.C.AmazonVse||t)},n.handleClick=function(){var e=n.props,i=e.mediaPlayerInstance,t=e.pause,a=e.playerType,o=e.volume,r=e.muted,l=e.content,s=e.quality;t(),n.props.setActiveMenu(“settings-menu__none”);var d={player:Tt.includes(a)?a:ye.C.Popout,volume:o,muted:r,enableExtensions:!0,parent:”twitch.tv”,quality:s};((0,L.wy)(l)||(0,L.P3)(l))&&(d.t=(0,Et.W)(Math.floor(i&&i.getPosition()||0)));var u=(0,Nt.kG)(l,d);window.open(u,”_blank”,”width=”.concat(Ot,”,height=”).concat(Ft,”,toolbar=no,menubar=no,scrollbars=no,location=no,status=no”))},n}return(0,t.__extends)(n,e),n.prototype.render=function(){return this.shouldShow()?(0,a.jsx)(Bn.i,{addRole:!0,label:(0,m.hw)(“Popout Player”,”SettingsMenuItemPopoutPlayer”),onClick:this.handleClick}):null},n}(u.Component);var Mt=(0,c.Zz)((0,T.cj)((function(e){return{content:e.content,playerType:(0,Se.O)(e),isClipContent:(0,L.Jn)(e.content)}})),(0,O.dd)((function(e){return{mediaPlayerInstance:e.mediaPlayerInstance,quality:e.quality}})),(0,A.AP)((function(e){return{muted:e.muted,pause:e.pause,volume:e.volume}})))(Vt),At=i(476863),Lt=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.shouldShow=function(){return n.props.qualityOptionsLength>0&&!n.props.forceQuality},n.showSubMenu=function(){return n.props.setActiveMenu(“settings-menu__quality”)},n}return(0,t.__extends)(n,e),n.prototype.render=function(){if(!this.shouldShow())return null;var e=(0,m.hw)(“Quality”,”SettingsMenuItemQuality”);return(0,a.jsx)(Bn.i,{addRole:!0,autoFocus:!0,”data-a-target”:”player-settings-menu-item-quality”,actionIcon:$i.W1,onClick:this.showSubMenu,children:(0,a.jsxs)(l.P,{display:”flex”,children:[e,(0,a.jsx)(l.P,{margin:{left:”auto”},children:(0,a.jsx)(At.x,{quality:this.props.selectedQuality,indicateSourceQuality:this.props.indicateSourceQuality})})]})})},n}(u.Component),Rt=(0,c.Zz)((0,O.dd)((function(e){var n=(0,yi.uU)(e),i=(0,t.__spreadArray)((0,t.__spreadArray)([],e.availableQualities,!0),e.unavailableQualities,!0);return{indicateSourceQuality:(0,yi.m)(n,i),qualityOptionsLength:i.length,selectedQuality:n}})),(0,T.cj)((function(e){return{forceQuality:(0,R.wk)({playerPublicPropsContext:e}).forceQuality}})))(Lt);var Bt=i(473327),Ut=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.shouldShow=function(){return!n.props.isClipContent},n.showSubMenu=function(){return n.props.setActiveMenu(“settings-menu__report”)},n}return(0,t.__extends)(n,e),n.prototype.render=function(){return this.shouldShow()?(0,a.jsx)(Bn.i,{addRole:!0,”data-a-target”:”player-settings-menu-item-report”,label:(0,Bt.Qw)(),actionIcon:$i.W1,onClick:this.showSubMenu}):null},n}(u.Component),zt=(0,T.cj)((function(e){var n=e.content;return{isClipContent:(0,L.Jn)(n)}}))(Ut);var Wt=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.showSubMenu=function(){return n.props.setActiveMenu(“settings-menu__speed”)},n}return(0,t.__extends)(n,e),n.prototype.render=function(){if(!this.props.shouldShow)return null;var e=(0,m.hw)(“Speed”,”SettingsMenuItemSpeed”);return(0,a.jsx)(Bn.i,{addRole:!0,autoFocus:!0,”data-a-target”:”player-settings-menu-item-speed”,label:e,actionIcon:$i.W1,value:””.concat(this.props.speed,”x”),onClick:this.showSubMenu})},n}(u.Component),Ht=(0,c.Zz)((0,T.cj)((function(e){var n=(0,R.Rh)({playerPublicPropsContext:e});return{shouldShow:(0,L.pk)(n)}})),(0,O.dd)((function(e){return{speed:e.speed}})))(Wt);var Gt=i(22444),Qt=function(e){var n=e.closeSettingsMenu,i=e.isOffline,t=e.setActiveMenu;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Ct,{closeSettingsMenu:n}),(0,a.jsx)(Rt,{setActiveMenu:t}),(0,a.jsx)(Ht,{setActiveMenu:t}),(0,a.jsx)(bt,{}),(0,a.jsx)(yt,{setActiveMenu:t}),(0,a.jsx)(ot,{setActiveMenu:t}),(0,a.jsx)(Ji,{setActiveMenu:t}),(0,a.jsx)(zt,{setActiveMenu:t}),(0,a.jsx)(Gt.m,{setActiveMenu:t}),(0,a.jsx)(jt,{closeSettingsMenu:n}),(0,a.jsx)(Mt,{setActiveMenu:t}),(0,a.jsx)(gt,{closeSettingsMenu:n}),(0,a.jsx)(Pt,{}),!i&&(0,a.jsx)(It,{})]})},Zt=i(579038),qt=i(906719),Xt=i(358302),Kt=i(873556),$t=function(e){var n=u.useState(!1),i=n[0],t=n[1],o=function(n){e.disabled||(“Enter”===n.key?e.onClose():”mouseup”===n.type?t(!0):”click”===n.type&&(e.selected||e.onChange(),i&&(t(!1),e.onClose())))};return(0,a.jsx)(“div”,{onKeyDown:o,onMouseUp:o,onClick:o,children:e.children})},Yt=function(e){var n=e.setActiveMenu,i=(0,Xt.kw)(),t=i.selectedQuality,o=i.allQualities,r=i.unavailableQualities,s=i.setQuality,d=Jt(),u=(0,Kt.m)({unavailableQualities:r});return(0,a.jsxs)(a.Fragment,{children:[!!u&&(0,a.jsx)(l.P,{margin:{bottom:1},children:(0,a.jsx)(Zt.D,{type:qt._.Info,message:{title:u.title,description:u.message,link:”LOGGED_OUT”===u.id?{children:(0,Si.z7)(),onClick:d}:{children:u.linkText,linkTo:u.linkTo,targetBlank:!0}}})}),o.map((function(e,i){var r=(0,yi.m)(e,o);return(0,a.jsx)($t,{onClose:function(){return n(“settings-menu__none”)},onChange:function(){return!(0,yi.MC)(e)&&s(e)},selected:e.group===t,disabled:(0,yi.MC)(e),children:(0,a.jsx)(“div”,{style:{display:”flex”},children:(0,a.jsx)(Un.G,{disabled:(0,yi.MC)(e),addRole:!0,autoFocus:0===i,”data-a-target”:”player-settings-submenu-quality-option”,type:Un.M.Radio,label:(0,a.jsx)(At.x,{quality:e,indicateSourceQuality:r}),checked:e.group===t,readOnly:!0,name:”player-settings-submenu-quality-option”})})},e.group)}))]})},Jt=function(){var e=(0,_e.wA)();return(0,u.useCallback)((function(){e((0,ut.iD)(dt.W.SettingsMenuSubmenuQuality))}),[e])},ea=i(160526),na=i(891975),ia=i(818233),ta=function(e){var n=e.setActiveMenu,i=(0,u.useRef)(null),t=(0,u.useRef)(),o=(0,ia.a)(),r=o.recentlySubmitted,d=o.currentlySelectedIssue,c=o.setCurrentlySelectedIssue,m=o.submitReport;return(0,na.S)((function(){var e;null===(e=i.current)||void 0===e||e.focus()})),(0,u.useEffect)((function(){return function(){clearTimeout(t.current)}}),[]),(0,a.jsxs)(a.Fragment,{children:[!r&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.P,{margin:1,children:(0,Bt.QT)()}),(0,a.jsx)(l.P,{margin:1,children:(0,a.jsxs)(ea.l,{onChange:function(e){return c(e.currentTarget.value)},defaultValue:””,ref:i,children:[(0,a.jsx)(“option”,{value:””,disabled:!0,children:(0,Bt.ni)()}),Bt.lt.map((function(e){return(0,a.jsx)(“option”,{value:e.value,children:e.text()},e.value)}))]})}),(0,a.jsx)(l.P,{display:s.nl.Flex,justifyContent:s.A9.End,margin:1,children:(0,a.jsx)(qn.$n,{variant:qn.VQ.Primary,onClick:function(){m(),t.current=setTimeout((function(){return n(“settings-menu__none”)}),2e3)},disabled:!d,children:(0,Bt.KP)()})})]}),r&&(0,Bt.WY)()]})},aa=i(852747),oa=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.logger=m.x2.logger.withCategory(“SettingsMenuSubmenuSpeedComponent”),n.closeMenu=function(){return n.props.setActiveMenu(“settings-menu__none”)},n.setSpeed=function(e){n.props.mediaPlayerInstance?(0,aa.qr)(e,n.props):n.logger.warn(“no media player loaded”)},n}return(0,t.__extends)(n,e),n.prototype.render=function(){var e=this,n=this.props.speed,i=(0,m.hw)(“1x (Normal)”,”SettingsMenuSubmenuSpeed”);return(0,a.jsx)(a.Fragment,{children:aa.Fy.map((function(t,o){var r=n===t,l=1===t?i:””.concat(t,”x”);return(0,a.jsx)($t,{onClose:e.closeMenu,onChange:function(){return e.setSpeed(t)},selected:r,children:(0,a.jsx)(Un.G,{addRole:!0,autoFocus:0===o,”data-a-target”:”player-settings-submenu-speed-option”,type:Un.M.Radio,name:”playback-speed”,label:l,checked:r})},t)}))})},n}(u.Component),ra=(0,c.Zz)((0,T.cj)((function(e){return{disableUserPreferencePersistence:(0,R.wk)({playerPublicPropsContext:e}).disableUserPreferencePersistence}})),(0,O.dd)((function(e){var n=e.mediaPlayerInstance,i=e.speed;return{mediaPlayerInstance:n,speed:i}})),(0,V.o1)())(oa);var la,sa=i(374978),da=function(e){var n=e.activeMenu,i=e.closeSettingsMenu,t=e.isOffline,o=e.setActiveMenu,r=null;switch(n){case”settings-menu__main”:r=(0,a.jsx)(Qt,{closeSettingsMenu:i,isOffline:t,setActiveMenu:o});break;case”settings-menu__advanced”:r=(0,a.jsx)(Fi,{setActiveMenu:o});break;case”settings-menu__clips-moderation”:r=(0,a.jsx)(Ki,{setActiveMenu:o});break;case”settings-menu__quality”:r=(0,a.jsx)(Yt,{setActiveMenu:o});break;case”settings-menu__report”:r=(0,a.jsx)(ta,{setActiveMenu:o});break;case”settings-menu__speed”:r=(0,a.jsx)(ra,{setActiveMenu:o});break;case”settings-menu__staff”:r=(0,a.jsx)(sa.E,{});break;default:r=null}return r?(0,a.jsx)(“div”,{“data-a-target”:”player-settings-menu”,children:r}):null},ua=i(903689);function ca(e){switch(e){case”settings-menu__advanced”:return(0,m.hw)(“Advanced”,”SettingsMenuSubmenuAdvanced”);case”settings-menu__clips-moderation”:return(0,m.hw)(“Moderation”,”SettingsMenuSubmenuClipsModeration”);case”settings-menu__quality”:return(0,m.hw)(“Video Quality”,”SettingsMenuSubmenuQuality”);case”settings-menu__report”:return(0,m.hw)(“Report Playback Issue”,”SettingsMenuSubmenuReportPlaybackIssue”);case”settings-menu__speed”:return(0,m.hw)(“Speed”,”SettingsMenuSubmenuSpeed”);case”settings-menu__staff”:return(0,m.hw)(“Staff”,”SettingsMenuSubmenuStaff”);default:return(0,m.hw)(“Video Player Settings”,”SettingsMenuButtonComponent”)}}!function(e){e.MainMenuButton=”main-menu”}(la||(la={}));var ma=function(e){var n=e.activeMenu,i=(0,m.hw)(“Back to Video Player Settings”,”SettingsMenuSubmenuAdvanced”);return(0,a.jsxs)(l.P,{display:”settings-menu__main”===n||”settings-menu__none”===n?s.nl.Hide:void 0,children:[(0,a.jsx)(Bn.i,{addRole:!0,children:i,figure:{icon:$i.fj},onClick:function(){return e.setActiveMenu(“settings-menu__main”)},”data-test-selector”:la.MainMenuButton,role:”button”}),(0,a.jsx)(l.P,{id:”active-settings-menu-header”,role:”heading”,children:(0,a.jsx)(ua.x,{children:ca(n)})}),(0,a.jsx)(zn.m,{})]})},pa=(0,mi.U)({name:”VideoPlayer_SettingsMenuButton”,category:”broadcast”}).Available,va=(0,c.Zz)((0,T.cj)((function(e){return{forceQuality:(0,R.wk)({playerPublicPropsContext:e}).forceQuality,content:e.content,disableSettingsMenuButton:(0,R.wk)({playerPublicPropsContext:e}).disableSettingsMenuButton}})),(0,A.AP)((function(e){return{isPlaying:e.isPlaying}})),(0,M.c0)((function(e){var n=e.videoContainer,i=e.requestedQuality,t=e.setIsMenuShowing;return{videoContainer:n,qualityIsChanging:i,setIsMenuShowing:t}})),(0,V.o1)())((function(e){var n=e.content,i=e.disableSettingsMenuButton,o=e.forceQuality,r=e.isOffline,d=e.isPlaying,c=e.qualityIsChanging,p=e.setIsMenuShowing,v=e.videoContainer,h=(0,u.useRef)(!0),f=(0,u.useState)({activeMenu:”settings-menu__none”}),g=f[0],y=g.activeMenu,S=g.maxMenuHeight,b=f[1],C=(0,_i.p)(),w=C.dialogProps,_=C.setAnchorRef,D=C.close,P=C.toggle,I=(0,u.useCallback)((function(e){b((function(n){return(0,t.__assign)((0,t.__assign)({},n),{activeMenu:e})}))}),[]),E=(0,u.useCallback)((function(){D(),b((function(e){return(0,t.__assign)((0,t.__assign)({},e),{activeMenu:”settings-menu__none”})}))}),[D]),F=(0,u.useCallback)((function(){var e=ha(v);e&&b((function(n){return(0,t.__assign)((0,t.__assign)({},n),{maxMenuHeight:e})}))}),[v]),O=(0,u.useCallback)((function(){P(),b((function(e){var n=”settings-menu__none”===e.activeMenu?”settings-menu__main”:”settings-menu__none”;return”settings-menu__none”===n?(0,t.__assign)((0,t.__assign)({},e),{activeMenu:n}):(0,t.__assign)((0,t.__assign)({},e),{activeMenu:n,maxMenuHeight:ha(v)})}))}),[P,v]),T=(0,u.useCallback)((function(){if(“settings-menu__none”===y)return null;var e=ca(y);return”settings-menu__main”===y?e:(0,m.hw)(“{submenuLabel} submenu”,{submenuLabel:e},”SettingsMenuButtonComponent”)}),[y]);if((0,u.useEffect)((function(){h.current?h.current=!1:p(“settings-menu__none”!==y)}),[y,p]),i)return null;var V=c&&d&&!o&&!(0,L.Jn)(n);return(0,a.jsxs)(pa,{children:[(0,a.jsxs)(l.P,{children:[(0,a.jsx)(k.e,{theme:”dark”,children:(0,a.jsxs)(Ni.n,(0,t.__assign)({},w,{“aria-labelledby”:”active-settings-menu-header”,role:”menu”,onRequestClose:E,show:”settings-menu__none”!==y,size:x.$V.Medium,maxHeight:S?””.concat(S,”px”):void 0,options:{placement:”top-end”,modifiers:[{name:”offset”,options:{offset:[40,5]}},{name:”flip”,enabled:!1}]},children:[(0,a.jsx)(l.P,{display:s.nl.HideAccessible,”aria-live”:”polite”,children:(0,a.jsx)(Di.L,{type:Ln.M2.Span,children:T()})}),(0,a.jsx)(ma,{activeMenu:y,setActiveMenu:I}),(0,a.jsx)(da,{activeMenu:y,closeSettingsMenu:E,isOffline:r,setActiveMenu:I})]}))}),(0,a.jsx)(l.P,{className:N()(V&&”settings-menu-button-component__animate”),children:(0,a.jsx)(U.g,{“data-a-target”:”player-settings-button”,tooltipPlacement:”top-end”,label:(0,m.hw)(“Settings”,”SettingsMenuButtonComponent”),buttonIcon:ke.t.Gear,anchorRef:_,onClick:O})})]}),”settings-menu__none”!==y&&(0,a.jsx)(j.$,{onResize:F})]})}));function ha(e){var n=(0,B.P)(e).height;return n?.8*n:void 0}var fa=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.toggleTheatreMode=function(){n.props.theatreModeEnabled?n.props.disableTheatreMode():n.props.enableTheatreMode()},n}return(0,t.__extends)(n,e),n.prototype.render=function(){var e=this.props,n=e.isFullscreen,i=e.shouldDisableTheatreMode,t=e.theatreModeEnabled;if(i||n)return null;var o=(0,m.hw)(“Exit Theatre Mode (alt+t)”,”TheatreModeButtonComponent”),r=(0,m.hw)(“Theatre Mode (alt+t)”,”TheatreModeButtonComponent”);return(0,a.jsx)(U.g,{tooltipPlacement:”top-end”,label:t?o:r,buttonIcon:t?ke.t.Theater:ke.t.TheaterExit,onClick:this.toggleTheatreMode})},n}(u.Component);var ga=(0,c.Zz)((0,_e.Ng)((function(e){return{theatreModeEnabled:e.ui.theatreModeEnabled}}),(function(e){return(0,t.__assign)({enableTheatreMode:function(){e((0,Pi._H)())}},(0,c.zH)({disableTheatreMode:Pi.lq},e))})),(0,T.cj)((function(e){return{shouldDisableTheatreMode:(0,R.wk)({playerPublicPropsContext:e}).disableTheatreMode}})),(0,M.c0)((function(e){return{isFullscreen:e.isFullscreen}})),(0,V.o1)())(fa),ka=i(301462),ya=i(486489),Sa=i(984705),xa=i(134889),ba=i(606130),Ca=i(163419),wa={“stream-manager-video-orientation-button”:{id:”stream-manager-video-orientation-button”,showOnPageLoad:!0,endDate:new Date(“2027-01-01″)},skipped:{id:””,endDate:new Date(“2027-01-01″)}},_a=function(e){var n,i=e.ftueID,o=void 0===i?”skipped”:i,r=(0,_i.p)(),l=r.dialogProps,s=r.setAnchorRef,d=(0,u.useContext)(O.$g),c=d.videoOrientation,p=d.mediaPlayerInstance,v=d.updateVideoOrientation,h=(0,u.useContext)(M._t),f=h.setIsMenuShowing,g=h.isMenuShowing,k=(0,xa.M)(null!==(n=wa[o])&&void 0!==n?n:wa.skipped),y=!!k.currentStep;(0,u.useEffect)((function(){!y||g?k.seen&&f(!1):f(!0)}),[y,k.seen,f,g]);var S=null==c?void 0:c.pendingChange;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(U.g,{anchorRef:s,buttonIcon:S?Da:”portrait”===(null==c?void 0:c.current)?Sa.H:ba.h,onClick:function(){var e=”portrait”===(null==c?void 0:c.current)?”landscape”:”portrait”;(0,Ca.FQ)(e,p,v),k.markAsSeen(),m.x2.tracking.trackUiInteraction({interaction:”click”,cell_name:”switch_video_orientation”,cell_detail:e})},label:”portrait”===(null==c?void 0:c.current)?(0,m.hw)(“Switch to Horizontal View”,”VideoOrientationButton”):(0,m.hw)(“Switch to Vertical View”,”VideoOrientationButton”),disabled:S}),(0,a.jsx)(k.FTUE,{children:(0,a.jsx)(ka.W,(0,t.__assign)({},l,{newPill:!0,title:(0,m.hw)(“See Vertical Video”,”VideoOrientationButton”),description:(0,m.hw)(“Click to see how your stream looks in vertical on mobile.”,”VideoOrientationButton”),dismissButtonProps:{“aria-label”:(0,m.hw)(“Dismiss new feature dialog”,”VideoOrientationButtonAccessibility”),onClick:k.markAsSeen},options:{placement:”top”},show:!!k.currentStep&&!k.seen&&!k.skipped,maxWidth:”30rem”,transitionType:”none”,disableReturnFocusAfterClose:!0}))})]})},Na=function(){var e=(0,u.useContext)(T.kl).behaviors,n=(0,u.useContext)(O.$g).videoOrientation,i=(0,u.useContext)(Me.jK).videoAdMetadata;return(null==e?void 0:e.multiformatOrientationButton)?(0,Ae.cz)(i)?null:(null==n?void 0:n.multiformat)?(0,a.jsx)(_a,{ftueID:e.multiformatOrientationButtonFTUEID}):null:null},Da=function(){return(0,a.jsx)(l.P,{display:”flex”,width:”100%”,height:”100%”,alignItems:”center”,justifyContent:”center”,children:(0,a.jsx)(ya.k,{delay:0,size:”small”})})},Pa=i(631139),ja=i(945005),Ia=i(973421),Ea=i.n(Ia),Fa=i(938230),Oa=i(308966),Ta=i(198437),Va=i(317391),Ma=i.n(Va);var Aa=(0,c.Zz)((0,T.cj)((function(e){return{content:(0,R.Rh)({playerPublicPropsContext:e}),shouldEnableViewCount:(0,R.wk)({playerPublicPropsContext:e}).enableViewCount}})))((function(e){var n,i,t,o,r,s,d,u,c=e.content,p=e.shouldEnableViewCount,v=(0,L.DG)(c)?null==c?void 0:c.channelLogin:””,h=(0,Je.IT)(Ma(),{variables:{login:v||””},skip:!v||!p}).data,f=null!==(i=null===(n=null==h?void 0:h.user)||void 0===n?void 0:n.id)&&void 0!==i?i:null;return(0,Fa.C)({query:Ma(),variables:{login:v||””},topic:f?(0,Ta.RW)(f):””,skip:!f||!p,type:Oa.PD.ViewCount,mutator:function(e,n){return n.user&&n.user.stream?Ea()(n,(function(e){return e.user.stream.viewersCount}),(function(){return e.viewers})):n}}),p&&null!==(null===(o=null===(t=null==h?void 0:h.user)||void 0===t?void 0:t.stream)||void 0===o?void 0:o.viewersCount)&&void 0!==(null===(s=null===(r=null==h?void 0:h.user)||void 0===r?void 0:r.stream)||void 0===s?void 0:s.viewersCount)?(0,a.jsx)(l.P,{color:”overlay”,background:”overlay”,display:”flex”,borderRadius:xn.Z.Large,padding:.5,margin:{x:.5},children:(0,a.jsx)(Pa.r,{label:(0,m.hw)(“Viewers”,”VideoPlayerOverlayViewCount”),value:(0,m.ZV)(null===(u=null===(d=null==h?void 0:h.user)||void 0===d?void 0:d.stream)||void 0===u?void 0:u.viewersCount),icon:ja.H,tooltipProps:{options:{placement:”top”}}})}):null})),La=i(199837),Ra=i(459487),Ba=i(481926),Ua=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.onBufferUpdate=function(){var e=n.props.mediaPlayerInstance;if(e){var i=e.getBufferDuration();n.props.onBufferUpdate(i)}},n}return(0,t.__extends)(n,e),n.prototype.componentDidMount=function(){this.props.playerEvents.addEventListener(le.a.BUFFER_UPDATE,this.onBufferUpdate)},n.prototype.render=function(){return null},n}(u.Component),za=(0,c.Zz)((0,O.dd)((function(e){return{mediaPlayerInstance:e.mediaPlayerInstance}})),(0,ie.X)())(Ua);var Wa=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.onDurationChange=function(){var e=n.props.mediaPlayerInstance;e&&n.props.onDurationChange(e.getDuration())},n}return(0,t.__extends)(n,e),n.prototype.componentDidMount=function(){this.props.playerEvents.addEventListener(le.a.DURATION_CHANGED,this.onDurationChange)},n.prototype.render=function(){return null},n}(u.Component),Ha=(0,c.Zz)((0,O.dd)((function(e){return{mediaPlayerInstance:e.mediaPlayerInstance}})),(0,ie.X)())(Wa);var Ga=function(e){function n(n){var i=e.call(this,n)||this;return i.isDragging=!1,i.previousContentType=i.props.contentType,i.previousDurationVodID=i.props.vodID,i.previousDurationClipSlug=i.props.clipSlug,i.handleThumbDragStart=function(){i.isDragging=!0,i.setState({bufferDuration:0})},i.handleThumbLocationChange=function(e){var n=i.props.mediaPlayerInstance;i.isDragging=!1,n&&(0===e&&(e=.01),n.seekTo(e),i.setState({thumbLocation:e}))},i.handleSeekComplete=function(e){var n,t=i.props.mediaPlayerInstance;(null==t?void 0:t.isPaused())&&i.setState({thumbLocation:e}),i.state.ended&&e<=i.state.vodLength&&(i.setState({ended:!1}),null===(n=i.props.mediaPlayerInstance)||void 0===n||n.play())},i.handleTimeChanged=function(e){var n=i.props,t=n.mediaPlayerInstance,a=n.pause,o=n.updateContext;if(e>i.state.vodLength&&i.state.vodLength!==(null==t?void 0:t.getDuration())&&(a(),o({playerState:Ra.p.ENDED}),i.setState({ended:!0})),!t||i.isDragging)i.setState({thumbLocation:e});else{var r=t.getBufferDuration();i.setState({bufferDuration:r,thumbLocation:e})}},i.handleBufferUpdate=function(e){i.isDragging||i.setState({bufferDuration:e})},i.handleDurationChange=function(e){(i.props.isDVR||0===i.state.vodLength||i.props.contentType!==i.previousContentType||i.props.vodID!==i.previousDurationVodID||i.props.clipSlug!==i.previousDurationClipSlug)&&(i.setState({vodLength:e}),i.previousContentType=i.props.contentType,i.previousDurationVodID=i.props.vodID,i.previousDurationClipSlug=i.props.clipSlug)},i.state={bufferDuration:0,thumbLocation:0,vodLength:n.mediaPlayerInstance&&n.mediaPlayerInstance.getDuration()||0,ended:!1},i}return(0,t.__extends)(n,e),n.prototype.render=function(){var e=this.props,n=e.data,i=e.editingSegments,t=e.isAdShowing,o=this.state,r=o.thumbLocation,l=o.bufferDuration,s=o.vodLength;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ae.Nb,{onSeekComplete:this.handleSeekComplete}),(0,a.jsx)(F.j,{onTimeChanged:this.handleTimeChanged}),(0,a.jsx)(za,{onBufferUpdate:this.handleBufferUpdate}),(0,a.jsx)(Ha,{onDurationChange:this.handleDurationChange}),n&&!n.loading&&!n.error&&n.video&&!t&&(0,a.jsx)(Ba.H,{thumbLocation:r,bufferDuration:l,vodLength:s,mutedSegments:Qa(n),onThumbDragStart:this.handleThumbDragStart,onThumbLocationChanged:this.handleThumbLocationChange,editingSegments:i})]})},n}(u.Component);function Qa(e){return e.video&&e.video.muteInfo&&e.video.muteInfo.mutedSegmentConnection&&e.video.muteInfo.mutedSegmentConnection.nodes||[]}var Za=(0,c.Zz)((0,O.dd)((function(e){var n=e.mediaPlayerInstance,i=e.updateContext;return{mediaPlayerInstance:n,updateContext:i}})),(0,A.AP)((function(e){var n=e.pause,i=e.isPlaying;return{pause:n,isPlaying:i}})),(0,T.cj)((function(e){return{contentType:e.content.type,vodID:(0,L.hq)(e.content)||null,clipSlug:(0,L.Qc)(e.content)||null,editingSegments:(0,L.N1)(e.content),includePrivateVODs:(0,R.wk)({playerPublicPropsContext:e}).includePrivateVODs||!1,isDVR:(0,L.lp)(e.content)}})),(0,Me.VX)((function(e){return{isAdShowing:(0,Ae.cz)(e.videoAdMetadata)}})),(0,La.h)(),(0,E._v)(ln(),{options:function(e){var n=e.vodID,i=e.collectionVodID;return{variables:{vodID:null!=n?n:i,includePrivate:e.includePrivateVODs}}},skip:function(e){var n=e.vodID,i=e.collectionVodID;return e.isDVR||!(n||i)}}))(Ga);var qa,Xa=i(25437),Ka=i(71062),$a=i(148223),Ya=i(368600),Ja=i(345942),eo=i(68873);!function(e){e[e.SETTLED=0]=”SETTLED”,e[e.REQUESTED=1]=”REQUESTED”}(qa||(qa={}));var no=(0,mi.U)({name:”VideoPlayer_VolumeSlider”,category:”broadcast”}).Available,io=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.popperRef=u.createRef(),n.state={volumeFocused:!1,requestedVolume:null,volumeState:qa.SETTLED,showVolumeTooltip:!1,hasVolumeButtonBeenActivated:!1},n.rangeID=”player-volume-slider-“.concat((0,$a.aq)()),n.throttledVolumeChange=(0,Ka.n)((function(e){var i=n.props,t=i.setVolume,a=i.setMuted,o=i.muted,r={persist:!0,userTriggered:!0};t(e,r),o&&0!==e&&a(!1,r),0===e&&a(!0,r)}),30,{leading:!0,trailing:!0}),n.calcDom=function(){if(n.rangeRef){n.remInPx=parseFloat(getComputedStyle(document.documentElement).fontSize);var e=n.rangeRef.getBoundingClientRect();n.rangeWidth=e.width}},n.setVolumeTooltipDisplayTimer=function(){clearTimeout(n.tooltipTimeoutRef),n.tooltipTimeoutRef=setTimeout((function(){n.setState((function(e){return e.showVolumeTooltip?{showVolumeTooltip:!1}:null}))}),2e3)},n.setVolumeFocused=function(){n.setState((function(e){return e.volumeFocused?null:{volumeFocused:!0}}))},n.setVolumeUnfocused=function(){n.setState((function(e){return e.volumeFocused?{volumeFocused:!1}:null}))},n.setRangeInputFocused=function(){n.setState((function(e){return e.showVolumeTooltip?null:{showVolumeTooltip:!0}}))},n.setRangeInputUnfocused=function(){n.setState((function(e){return e.showVolumeTooltip?{showVolumeTooltip:!1}:null}))},n.getTooltipValues=function(e){var i=e.volume,t=e.muted?0:i||0,a=1.6*n.remInPx;return{tooltipValue:t,tooltipLeftOffset:a/2+t*(n.rangeWidth-a)}},n.getRangeValue=function(e){var i=e.muted,t=e.volume;if(i)return”0″;var a=null!=t?t:eo.R6,o=n.state.volumeState===qa.REQUESTED?n.state.requestedVolume:a;return””.concat(o)},n.handleRangeInputChange=function(e){var i=+e.currentTarget.value;n.setState((function(e){return e.requestedVolume===i?null:{requestedVolume:i,volumeState:qa.REQUESTED,showVolumeTooltip:!0}}),(function(){n.throttledVolumeChange(i)})),n.setVolumeTooltipDisplayTimer(),n.props.enablePlayerActiveTimeout()},n.handleMuteButtonClick=function(){var e=n.props,i=e.muted,t=e.volume,a=e.setVolume,o=e.setMuted,r={persist:!0,userTriggered:!0};n.setState((function(){return{hasVolumeButtonBeenActivated:!0}})),i&&0===t&&a(eo.mw,r),i&&void 0===t&&a(eo.R6,r),o(!i,r)},n.setRangeRef=function(e){return n.rangeRef=e},n}return(0,t.__extends)(n,e),n.prototype.componentWillUnmount=function(){clearTimeout(this.tooltipTimeoutRef),this.throttledVolumeChange.flush()},n.prototype.componentDidUpdate=function(){var e,n,i;null===(i=null===(n=null===(e=this.popperRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.update)||void 0===i||i.call(n),this.props.volume===this.state.requestedVolume&&this.state.volumeState!==qa.SETTLED&&this.setState((function(e){return e.volumeState===qa.SETTLED?null:{volumeState:qa.SETTLED}}))},n.prototype.render=function(){var e,n,i=this.props,t=i.audioBlocked,d=i.isPlayerCoreLoading,u=i.disableControls,c=i.muted,p=i.playerControlsShowing,v=i.showInitialMutedOnVolumeButton,h=i.userEverUnmuted,f=(0,eo.en)(this.props),g=(0,eo.TO)(this.props),k=this.getRangeValue(this.props),y=this.getTooltipValues(this.props),S=!!c&&v&&!h&&!this.state.hasVolumeButtonBeenActivated,x=(S||t)&&p&&v;if(d)return(0,a.jsx)(ci.Or,{height:30,width:14.5});var b=this.state.volumeFocused,C=!Ya.j.os.isIOS()&&!this.props.disableVolumeSlider,w=Math.floor(100*Number(k)),_=this.state.showVolumeTooltip&&b&&p;return(0,a.jsx)(no,{children:(0,a.jsx)(“div”,{onMouseEnter:this.setVolumeFocused,onMouseLeave:this.setVolumeUnfocused,onFocus:this.setVolumeFocused,children:(0,a.jsxs)(l.P,{display:s.nl.Flex,alignItems:s.k2.Center,children:[(0,a.jsx)(l.P,{borderRadius:xn.Z.Large,className:x?”volume-slider__button-container”:void 0,children:(0,a.jsx)(U.g,{“data-a-target”:”player-mute-unmute-button”,label:x?(0,m.hw)(“Tap to unmute”,”VolumeSlider”):g,buttonIcon:f,onClick:this.handleMuteButtonClick,disabled:u||this.props.error,suppressTooltip:!x&&S,showTooltip:S&&v&&p,tooltipModifiers:x?[{name:”flip”,options:{allowedAutoPlacements:[“top”],rootBoundary:null===(e=this.props.chromecastButtonRef)||void 0===e?void 0:e.current,boundary:null===(n=this.props.ref)||void 0===n?void 0:n.current}}]:void 0})}),C&&(0,a.jsx)(o.e,{alwaysRenderChild:!0,show:b,type:r.ES.Fade,duration:r.Cf.Short,className:”volume-slider__slider-container”,onEnterComplete:this.calcDom,children:(0,a.jsx)(l.P,{display:s.nl.Flex,alignItems:s.k2.Center,fullHeight:!0,onMouseLeave:this.setRangeInputUnfocused,children:(0,a.jsxs)(l.P,{display:s.nl.Flex,flexDirection:s.bo.Column,alignItems:s.k2.Stretch,height:”100%”,children:[(0,a.jsx)(l.P,{position:s.yX.Relative,display:s.nl.Flex,style:{insetInlineStart:””.concat(y.tooltipLeftOffset,”px”)},children:(0,a.jsx)(Sn.m,{show:_,label:(0,m.ZV)(y.tooltipValue,”percent”),popperRef:this.popperRef,options:{placement:”top”,modifiers:[{name:”flip”,options:{allowedAutoPlacements:[“top”]}}]},display:s.nl.Inline})}),(0,a.jsxs)(l.P,{display:s.nl.Flex,flexDirection:s.bo.Column,justifyContent:s.A9.Center,height:”100%”,children:[(0,a.jsx)(dn.S,{display:s.nl.HideAccessible,children:(0,a.jsx)(“label”,{htmlFor:this.rangeID,children:(0,m.hw)(“Volume”,”VolumeSliderComponent”)})}),(0,a.jsx)(Xa.Q,{ref:this.setRangeRef,”data-a-target”:”player-volume-slider”,”data-a-visible”:b,fill:!0,min:0,max:1,step:.01,onChange:this.handleRangeInputChange,value:k,disabled:u||this.props.error,id:this.rangeID,overlay:!0,”aria-valuemin”:0,”aria-valuemax”:100,”aria-valuenow”:w,”aria-valuetext”:””.concat(w,”%”),onFocus:this.setRangeInputFocused,onBlur:this.setRangeInputUnfocused})]})]})})})]})})})},n}(u.Component),to=(0,c.Zz)((0,T.cj)((function(e){var n=(0,R.wk)({playerPublicPropsContext:e}),i=n.disableAudio,t=n.disableVolumeSlider,a=n.showInitialMutedOnVolumeButton;return{disableControls:!!i,disableVolumeSlider:!!t,showInitialMutedOnVolumeButton:null!=a&&a}})),(0,A.AP)((function(e){var n=e.muted,i=e.volume,t=e.setMuted,a=e.setVolume;return{muted:n,volume:i,setMuted:t,setVolume:a}})),(0,O.dd)((function(e){var n=e.audioBlocked,i=e.isPlayerCoreLoading,t=e.error,a=e.userEverUnmuted;return{audioBlocked:n,isPlayerCoreLoading:i,error:!!t,userEverUnmuted:a}})),(0,Ja.In)((function(e){return{enablePlayerActiveTimeout:e.enablePlayerActiveTimeout}})),(0,V.o1)())(io);var ao=i(736585),oo=i(186396),ro=i(732574),lo=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.handleClick=function(){var e=(0,L.L$)(n.props.content,{tt_content:”twitch_logo”,tt_medium:”embed”},n.props.mediaPlayerInstance);window.open(e),n.props.pause()},n}return(0,t.__extends)(n,e),n.prototype.render=function(){return this.props.showExternalBranding?(0,a.jsx)(ao.cv,{label:this.getTooltipLabel(this.props.content),align:ao.HX.Right,direction:ao.n5.Top,children:(0,a.jsx)(oo.M2,{“aria-label”:this.getTooltipLabel(this.props.content),onClick:this.handleClick,variant:oo.sK.Text,overlay:!0,children:(0,a.jsx)(l.P,{display:s.nl.Flex,margin:{x:.5},children:(0,a.jsx)(ro.g,{width:60,height:18})})})}):null},n.prototype.getTooltipLabel=function(e){return e.type===on.FC.Clip?(0,m.hw)(“View clip page”,”WatchOnTwitchButton”):(0,m.hw)(“Watch on Twitch”,”WatchOnTwitchButton”)},n}(u.Component);var so=(0,c.Zz)((0,T.cj)((function(e){return{content:(0,R.Rh)({playerPublicPropsContext:e}),showExternalBranding:(0,R.wk)({playerPublicPropsContext:e}).showExternalBranding}})),(0,O.dd)((function(e){return{mediaPlayerInstance:e.mediaPlayerInstance}})),(0,A.AP)((function(e){return{pause:e.pause}})))(lo),uo=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.tooltipPlacementRef=u.createRef(),n.chromecastButtonRef=u.createRef(),n}return(0,t.__extends)(n,e),n.prototype.render=function(){var e=this.props,n=e.shouldShow,i=e.isOffline,u=e.isAccessibilityLandmark,c=void 0===u||u,h=e.shouldDisplayPlayPauseAsOverlay,g=void 0!==h&&h,k=e.shouldPushVolumeToRight,y=void 0!==k&&k,S=e.hideDVRSeekbar,x=void 0!==S&&S,b={assignments:{fallback:function(){return null},active:function(){return(0,a.jsx)($n,{})}},name:”extension_overlay_improvement”,hardcodedAssignment:”control”};return(0,a.jsx)(o.e,{type:r.ES.Fade,show:n,alwaysRenderChild:!0,preventChildAriaHidden:!0,children:(0,a.jsxs)(l.P,{“data-a-target”:”player-controls”,className:”player-controls”,”data-a-visible”:n,position:s.yX.Absolute,display:s.nl.Flex,flexDirection:s.bo.Column,alignItems:s.k2.Stretch,overflow:n?s.nE.Visible:s.nE.Hidden,attachBottom:!0,fullWidth:!0,dir:”ltr”,children:[(0,a.jsx)(l.P,{padding:{x:2},children:(0,a.jsxs)(v.t,{name:”PlayerControlsOverlay-SeekBar”,children:[(0,a.jsx)(ge,{}),(0,a.jsx)(Za,{}),!x&&(0,a.jsx)(In,{})]})}),(0,a.jsx)(f.u,{section:”global”,id:”channel-player”,icon:d.A,label:(0,m.hw)(“Player Controls”,”SkipToTargetVideoPlayer”),enabled:!!c,children:(0,a.jsx)(l.P,{display:s.nl.Flex,margin:{left:1,bottom:1,right:1},children:(0,a.jsxs)(v.t,{name:”PlayerControlsOverlay-Controls”,children:[!i&&(0,a.jsxs)(l.P,{flexGrow:1,display:s.nl.Flex,alignItems:s.k2.Center,justifyContent:s.A9.Start,className:”player-controls__left-control-group”,children:[(0,a.jsx)(Aa,{}),(0,a.jsx)(ni,{}),(0,a.jsx)(ee,{}),!g&&(0,a.jsx)(gi,{}),!y&&(0,a.jsx)(to,{playerControlsShowing:n})]}),(0,a.jsxs)(l.P,{flexGrow:1,display:s.nl.Flex,alignItems:s.k2.Center,justifyContent:s.A9.End,className:”player-controls__right-control-group”,children:[(0,a.jsx)(Ci,{}),(0,a.jsx)(Xe,{}),y&&(0,a.jsx)(to,{playerControlsShowing:n,ref:this.tooltipPlacementRef,chromecastButtonRef:this.chromecastButtonRef}),(0,a.jsx)(Na,{}),(0,a.jsx)(va,{isOffline:i}),(0,a.jsx)(p.N,(0,t.__assign)({},b)),(0,a.jsx)($e,{}),(0,a.jsx)(xe,{}),(0,a.jsx)(“div”,{ref:this.chromecastButtonRef,children:(0,a.jsx)(ne.GC,{})}),(0,a.jsx)(l.P,{position:s.yX.Absolute,attachBottom:!0,attachRight:!0,margin:{bottom:5,right:5},children:(0,a.jsx)(ui,{})}),(0,a.jsx)(ga,{}),!i&&(0,a.jsx)(Yn.Ah,{}),(0,a.jsx)(so,{})]})]})})})]})})},n}(u.Component),co=(0,c.Zz)((0,h.X)({name:”PlayerControlsOverlay”}))(uo)},231743:function(e,n,i){“use strict”;i.d(n,{K:function(){return r}});var t=i(661988),a=i(973448),o=i(920953);function r(e){var n=e.disableUserPreferencePersistence,i=e.isLiveLowLatencyEnabled,r=e.mediaPlayerInstance,l=e.updatePlayerContext,s=!i;n||t.IG.set(a.U.LOW_LATENCY_MODE,s),(0,o.GY)({isLiveLowLatencyEnabled:i,mediaPlayerInstance:r,updateContext:l},s)}},153296:function(e,n,i){“use strict”;i.d(n,{U:function(){return a}});var t=i(661988),a=function(e){return e?(0,t.hw)(“Closed Captions (Enabled)”,”SettingsMenuItemCCOptions”):(0,t.hw)(“Closed Captions (Disabled)”,”SettingsMenuItemCCOptions”)}},476863:function(e,n,i){“use strict”;i.d(n,{x:function(){return v}});var t=i(474848),a=i(959340),o=i(661988),r=i(605840),l=i(487206),s=i(246942),d=i.n(s),u=”badgeText–4a1dA”,c=”disabled–euZY9″,m=function(e){var n,i=e.quality,a=e.disabled,o=(0,l.ei)(i);return(0,l.IW)(i.codecs,o)&&l.dD.includes(o)?(0,t.jsx)(“sup”,{className:d()(u,(n={},n[c]=a,n)),children:o}):null},p=i(913847),v=function(e){var n=e.quality,i=e.indicateSourceQuality;return n.group===r.s9?(0,p.PC)():(0,t.jsxs)(a.P,{display:”flex”,gap:.5,children:[(0,p.zk)(n.name),(0,t.jsx)(m,{quality:n,disabled:(0,l.MC)(n)}),i&&(0,t.jsx)(“span”,{children:(0,o.hw)(“(Source)”,”SettingsMenuSubmenuQuality”)})]})}},873556:function(e,n,i){“use strict”;i.d(n,{m:function(){return o}});var t=i(331635),a=i(113024);function o(e){return function(e){if(0===e.length)return null;var n=e.sort((function(e,n){var i=a.vb.indexOf(a.oq[e]),t=a.vb.indexOf(a.oq[n]);return(-1===i?999:i)-(-1===t?999:t)}))[0];return(a.oq[n]||a.DZ.generic)()}(e.unavailableQualities.flatMap((function(e){return(0,t.__spreadArray)((0,t.__spreadArray)([],e.filterReasons,!0),e.authReasons,!0)})))}},913847:function(e,n,i){“use strict”;i.d(n,{PC:function(){return l},xc:function(){return o},z7:function(){return s},zk:function(){return r}});var t=i(661988),a=i(605840);function o(e,n){return e.group===a.s9?l():n?(0,t.hw)(“{resolution} (Source)”,{resolution:r(e.name)},”SettingsMenuSubmenuQuality”):e.name}function r(e){return e.split(“(source)”)[0].trim()}var l=function(){return(0,t.hw)(“Auto”,”SettingsMenuSubmenuQuality”)},s=function(){return(0,t.hw)(“Log In”,”SettingsMenuSubmenuQuality”)}},22444:function(e,n,i){“use strict”;i.d(n,{m:function(){return p}});var t=i(331635),a=i(474848),o=i(368972),r=i(296540),l=i(415044),s=i(661988),d=i(713534),u=i(368770),c=i(684990),m=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.shouldShow=function(){return n.props.isStaff||s.x2.config.buildType===d.n.Dev},n.showSubMenu=function(){return n.props.setActiveMenu(“settings-menu__staff”)},n}return(0,t.__extends)(n,e),n.prototype.render=function(){if(!this.shouldShow())return null;var e=(0,s.hw)(“Staff”,”SettingsMenuItemStaff”);return(0,a.jsx)(o.i,{addRole:!0,label:e,actionIcon:c.W1,onClick:this.showSubMenu})},n}(r.Component);var p=(0,l.Ng)((function(e){return{isStaff:(0,u.Xl)(e)}}))(m)},374978:function(e,n,i){“use strict”;i.d(n,{E:function(){return s}});var t=i(474848),a=(i(296540),i(415044)),o=i(868238),r=i(757245),l=i(508952).x.wrap((function(){return i.e(62421).then(i.bind(i,514223))}),”SettingsMenuSubmenuStaffContainer”,{failSilently:!0,placeholder:null});var s=(0,o.Zz)((0,r.X)({name:”SettingsMenuSubmenuStaff”}),(0,a.Ng)((function(e){return{firstPageLoaded:e.session.firstPageLoaded}})))((function(e){return e.firstPageLoaded?(0,t.jsx)(l,{}):null}))},265788:function(e,n,i){“use strict”;i.d(n,{F6:function(){return C}});var t,a=i(331635),o=i(474848),r=i(564368),l=i(296540),s=i(415044),d=i(868238),u=i(276337),c=i(664865),m=i(368770),p=i(911906),v=i(129721),h=i(959340),f=i(914421),g=i(734594),k=i(661988),y=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(n,e),n.prototype.render=function(){return(0,o.jsx)(h.P,{display:f.nl.Flex,flexDirection:f.bo.Column,alignItems:f.k2.Center,children:this.renderButton(this.props)})},n.prototype.renderButton=function(e){var n=e.notificationsDisabled,i=e.working,t=e.onDisableNotificationsClick,a=e.onEnableNotificationsClick,l=e.buttonSize,s=i?r.w.Loading:r.w.Default;return n?(0,o.jsx)(r.$n,{onClick:a,state:s,size:l,children:(0,k.hw)(“Turn on Notifications”,”PlayerFollowButton”)}):(0,o.jsx)(r.$n,{onClick:t,variant:r.VQ.Success,state:s,icon:g.i,size:l,children:(0,k.hw)(“Notifications”,”PlayerFollowButton”)})},n}(l.Component),S=i(708961),x=i.n(S);!function(e){e.NotificationsOff=”notif_off”,e.NotificationsOn=”notif_on”,e.FollowAndNotificationsOn=”follow_on_notif_on”}(t||(t={}));var b=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.state={working:!1},n.trackNotificationButtonClick=function(e){n.props.track(“player_notifbutton_clicks”,{followState:e.wasFollowing,notif_state:e.wereNotificationsEnabled,src:n.props.playerType,action:e.action})},n.handleEnableNotifications=function(){var e=n.props.isFollowingUser;n.trackNotificationButtonClick({action:e?t.NotificationsOn:t.FollowAndNotificationsOn,wasFollowing:e,wereNotificationsEnabled:!1}),n.changeNotificationSettings({disableNotifications:!1})},n.handleDisableNotifications=function(){var e=n.props.isFollowingUser;n.trackNotificationButtonClick({action:t.NotificationsOff,wasFollowing:e,wereNotificationsEnabled:!0}),n.changeNotificationSettings({disableNotifications:!0})},n.changeNotificationSettings=function(e){return(0,a.__awaiter)(n,void 0,void 0,(function(){var n,i,t;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:n=e.disableNotifications,i=this.props.userID,t=(0,c.AR)({targetID:i,disableNotifications:n}),a.label=1;case 1:return a.trys.push([1,,4,5]),this.props.isLoggedIn?(this.setState({working:!0}),[4,this.props.followUser(t)]):[3,3];case 2:a.sent(),a.label=3;case 3:return[3,5];case 4:return this.setState({working:!1}),this.props.onFollow&&this.props.onFollow(),[7];case 5:return[2]}}))}))},n}return(0,a.__extends)(n,e),n.prototype.render=function(){var e=this.props,n=e.isSmall,i=e.notificationsDisabled;return(0,o.jsx)(y,{notificationsDisabled:i,working:this.state.working,onDisableNotificationsClick:this.handleDisableNotifications,onEnableNotificationsClick:this.handleEnableNotifications,buttonSize:n?r.Mp.Small:r.Mp.Default})},n}(l.Component);var C=(0,d.Zz)((0,u._v)(x(),{name:”followUser”}),(0,v.o1)(),(0,p.cj)((function(e){return{playerType:e.type}})),(0,s.Ng)((function(e){return{isLoggedIn:(0,m.M3)(e)}})))(b)},850649:function(e,n,i){“use strict”;i.d(n,{P:function(){return oe}});var t,a=i(331635),o=i(474848),r=i(959340),l=i(914421),s=i(246942),d=i.n(s),u=i(296540),c=i(415044),m=i(148030),p=i(508952),v=i(58082),h=i(850007),f=i(621790),g=i(697621),k=i(196190),y=i(326984),S=i(233936),x=i(345942),b=i(641896),C=i(911906),w=i(731820),_=i(764059),N=i(331337),D=i(894320),P=i(112246),j=i(905049),I=i(727234),E=i(868238),F=i(757245),O=i(131869),T=i(332884),V=i(66066),M=i(731929),A=i(62026),L=i(573527),R=i(650989),B=i(727925),U=(i(383361),(0,E.Zz)((0,M.A)(),(0,F.X)({name:”StreamDisplayAd”}))((function(e){var n,i,a=u.useContext(R.OK),l=a.hasActiveBid,s=a.curFrame,c=a.iframeEl1,m=a.iframeEl2,p=a.sdaFormat,v=a.sdaMode,h=a.reportMount,f=a.reportUnmount,k=e.format,y=u.useContext(S.jK).adFormatMetadata,x=(0,L.I9)(y)?y:void 0,b=l&&e.format===p&&(p!==A.Z$.LOWER_THIRD||v!==R.bi.Pushdown);u.useEffect((function(){var n={format:k,mode:R.bi.InVideo,isSkyscraper:e.isSkyscraper};b?h(n):f(n)}),[k,e.isSkyscraper,h,f,b]);var C=(null==y?void 0:y.adFormat)===A.Z$.SQUEEZEBACK&&(160!==e.adDimensions.width||600!==e.adDimensions.height),w=u.useState({}),_=w[0],N=w[1],D=u.useState({}),P=D[0],j=D[1];if(u.useEffect((function(){C&&(1===s?N({width:e.containerDimensions.width||e.adDimensions.width,height:e.containerDimensions.height||e.adDimensions.height}):2===s&&j({width:e.containerDimensions.width||e.adDimensions.width,height:e.containerDimensions.height||e.adDimensions.height}))}),[s,e.adDimensions.height,e.adDimensions.width,e.containerDimensions.height,e.containerDimensions.width,C]),!b)return null;var I=(null==y?void 0:y.adFormat)===A.Z$.LOWER_THIRD?”lower-third”:”squeezeback”,E=d()(((n={})[“stream-display-ad__iframe_”.concat(I)]=!0,n[“stream-display-ad__iframe_”.concat(I,”–visible”)]=1===s,n[“stream-display-ad__iframe_”.concat(I,”–hidden”)]=2===s,n)),F=d()(((i={})[“stream-display-ad__iframe_”.concat(I)]=!0,i[“stream-display-ad__iframe_”.concat(I,”–visible”)]=2===s,i[“stream-display-ad__iframe_”.concat(I,”–hidden”)]=1===s,i)),O=(0,B.c0)(),T=C?”mirrorc”:(null==y?void 0:y.adFormat)===A.Z$.LOWER_THIRD?g.iN.stream.lowerthird:(null==y?void 0:y.adFormat)===A.Z$.SQUEEZEBACK?g.iN.stream.squeezeback:””,M=C?e.containerDimensions.width:e.adDimensions.width,U=C?”1 1.1″:”1″,z=(0,L.DU)(null==x?void 0:x.bid)?null==x?void 0:x.bid:void 0,W=void 0!==z?(0,g.A9)(z,T,null==x?void 0:x.adSessionId):{adInput:{advertiserIDNS:””,campaignIDNS:””},clientInput:{},countryInfo:{geoCode:null,isFromEU:!1}};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(“iframe”,{“aria-hidden”:2===s,”data-test-selector”:t.IFrame1,className:E,style:1===s?_:void 0,title:O,ref:c,scrolling:”no”,marginHeight:0,marginWidth:0}),(0,o.jsx)(“iframe”,{“aria-hidden”:1===s,”data-test-selector”:t.IFrame2,className:F,style:2===s?P:void 0,title:O,ref:m,scrolling:”no”,marginHeight:0,marginWidth:0}),(0,o.jsx)(r.P,{position:”relative”,margin:”auto”,style:{width:M,scale:U},children:(0,o.jsx)(V.V,{dsaContext:W,format:T,rendersInVideoPlayer:!0})})]})}))),z=i(249448),W=i(445865),H=p.x.wrap((function(){return Promise.all([i.e(43792),i.e(70390)]).then(i.bind(i,967239))}),”BrandLiftSurveyManager”,{placeholder:null,failSilently:!0}),G=p.x.wrap((function(){return Promise.all([i.e(18051),i.e(44567),i.e(24576),i.e(30326),i.e(34726),i.e(5244)]).then(i.bind(i,590470))}),”SDAUpsellContainer”,{placeholder:null,failSilently:!0});!function(e){e.Wrapper=”sda-wrapper”,e.Container=”sda-container”,e.Transform=”sda-transform”,e.Frame=”sda-frame”,e.IFrame=”sda-iframe”,e.IFrame1=”sda-iframe-1″,e.IFrame2=”sda-iframe-2″}(t||(t={}));var Q,Z=(0,E.Zz)((0,F.X)({name:”LowerThirdContainer”}))((function(e){var n,i,r,l=e.injectStyles,s=(0,T.zB)(A.Z$.LOWER_THIRD).slotId,c=(0,A.Zj)(A.Z$.LOWER_THIRD),m=e.sdaVerticalOffset,p=e.scaledAdDimensions,v=e.sdaScale,h=u.useContext(w._t),f=u.useContext(_.wL),g=u.useContext(x.MP),N=u.useContext(C.kl),D=u.useContext(S.jK),j=u.useContext(b.$g),E=u.useContext(O.DV),F=u.useContext(k.m9),V=null===(n=N.behaviors)||void 0===n?void 0:n.mini,M=null===(i=N.behaviors)||void 0===i?void 0:i.disableSDAUpsell,B=(0,W.f)(),Q=(0,y.U0)(),Z=Q.isSDAUpsellShowing,q=Q.closeSDAUpsell,X=Z&&B&&!V,K=(0,a.__assign)((0,a.__assign)({uiContext:h,videoPlaybackContext:f,playerPublicPropsContext:N},g),{adContext:D,playerContext:j,channelSkinsContext:E,brandLiftContext:F,isSDAUpsellShowing:X}),$=u.useContext(k.m9),Y=$.startVideoSession,J=$.isSurveyOpportunity,ee=$.isSurveyShowing,ne=$.setRefetchEnabled,ie=$.retriggerTimer,te=J||ee,ae=(0,z.hd)(N.content)||null,oe=(0,I.Z)(ae),re=(0,P.SU)(K)&&!ee?Math.max(44,m):m,le={height:””.concat(p.height+re,”px”)},se=(0,a.__assign)((0,a.__assign)((0,a.__assign)({},c),l),le),de=D.adFormatMetadata,ue=D.isDisplayingSDASequence,ce=u.useState(!1),me=ce[0],pe=ce[1],ve=(0,L.I9)(de)?(null===(r=de.trackingParams)||void 0===r?void 0:r.sda_sequence_number)||0:void 0;u.useEffect((function(){if(ve){pe(!0);var e=setTimeout((function(){pe(!1)}),500);return function(){clearTimeout(e)}}pe(!1)}),[ve]),u.useEffect((function(){oe&&oe!==ae&&(clearTimeout(ie.current),Y(),ne(!0))}),[ae,oe,ie,ne,Y]),u.useEffect((function(){!B&&Z&&q(),oe&&oe!==ae&&q(),M&&q()}),[q,ae,oe,B,Z,M]);var he={transform:”translateX(“.concat(“rtl”===document.dir?””:”-“,”50%) scale(“).concat(v,”)”),transition:me?”scale “.concat(500,”ms ease-in-out”):void 0},fe={height:””.concat(p.height,”px”),width:””.concat(p.width,”px”),transition:me?”height “.concat(500,”ms ease-in-out width “).concat(500,”ms ease-in-out”):void 0},ge=u.useContext(R.OK),ke=ge.sdaFormat,ye=ge.isSDASequenceVisible,Se=ge.sdaMode,xe=!!((0,L.I9)(de)&&ue&&ye||te||X),be=d()(“stream-display-ad__wrapper”,”stream-display-ad__wrapper_lower-third”,”stream-display-ad__wrapper-“.concat(xe?”visible”:”hidden”)),Ce=d()({“stream-display-ad__container_lower-third”:!0,”stream-display-ad__container_lower-third-hidden”:!xe});return ke===A.Z$.LOWER_THIRD||te||X?(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(“div”,{“data-test-selector”:t.Wrapper,className:be,children:(0,o.jsx)(“div”,{“data-test-selector”:t.Container,className:Ce,style:se,children:(0,o.jsx)(“div”,{“data-test-selector”:t.Transform,className:”stream-display-ad__transform-container_lower-third”,style:fe,tabIndex:Se===R.bi.Pushdown?-1:0,children:(0,o.jsx)(“div”,{“data-test-selector”:t.Frame,id:s,className:”stream-display-ad__frame_lower-third”,style:he,children:te?(0,o.jsx)(H,{}):X?(0,o.jsx)(G,{channelLogin:ae||””}):(0,o.jsx)(U,(0,a.__assign)({format:A.Z$.LOWER_THIRD,isSkyscraper:!1},e))})})})})}):null}));!function(e){e.Wrapper=”sda-wrapper”,e.Container=”sda-container”,e.Transform=”sda-transform”,e.Frame=”sda-frame”,e.IFrame=”sda-iframe”,e.IFrame1=”sda-iframe-1″,e.IFrame2=”sda-iframe-2″}(Q||(Q={}));var q,X=(0,E.Zz)((0,F.X)({name:”SkyscraperContainer”}))((function(e){var n,i,t,r=e.injectStyles,l=(0,T.zB)(A.Z$.SQUEEZEBACK).slotId,s=(0,A.Zj)(A.Z$.SQUEEZEBACK),c=e.adDimensions,m=e.scaledAdDimensions,p=e.sdaHorizontalOffset,v=e.sdaScale,h={left:””.concat(p,”px”),right:”0″},f={height:””.concat(m.height,”px”),width:””.concat(4*m.height/15,”px”)},g=(0,a.__assign)((0,a.__assign)((0,a.__assign)((0,a.__assign)({},s),r),f),{background:”black”}),k=u.useContext(S.jK),y=k.adFormatMetadata,x=k.isDisplayingSDASequence,b={transform:”translateX(-50%) scale(“.concat(v,”)”)},C=u.useContext(R.OK),w=C.sdaFormat,_=C.isSDASequenceVisible,N=!!((0,L.I9)(y)&&x&&_),D=d()(“stream-display-ad__wrapper”,”stream-display-ad__wrapper_skyscraper”,”stream-display-ad__wrapper-“.concat(N?”visible”:”hidden”)),P=”skyscraper”,j=d()(((n={})[“stream-display-ad__container_”.concat(P)]=!0,n)),I=d()(((i={})[“stream-display-ad__transform-container_”.concat(P)]=!0,i)),E=d()(((t={})[“stream-display-ad__frame_”.concat(P)]=!0,t));return w===A.Z$.SQUEEZEBACK&&(0,B.Ny)(c)?(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(“div”,{“data-test-selector”:Q.Wrapper,className:D,style:h,children:(0,o.jsx)(“div”,{“data-test-selector”:Q.Container,className:j,style:g,tabIndex:0,children:(0,o.jsx)(“div”,{“data-test-selector”:Q.Transform,className:I,style:{},children:(0,o.jsx)(“div”,{“data-test-selector”:Q.Frame,id:l,className:E,style:b,children:(0,o.jsx)(U,(0,a.__assign)({format:A.Z$.SQUEEZEBACK,isSkyscraper:!0},e))})})})})}):null}));!function(e){e.Wrapper=”sda-wrapper”,e.Container=”sda-container”,e.Transform=”sda-transform”,e.Frame=”sda-frame”,e.IFrame=”sda-iframe”,e.IFrame1=”sda-iframe-1″,e.IFrame2=”sda-iframe-2″}(q||(q={}));var K=(0,E.Zz)((0,F.X)({name:”SqueezebackContainer”}))((function(e){var n,i,t,r,l=e.injectStyles,s=(0,T.zB)(A.Z$.LOWER_THIRD).slotId,c=(0,A.Zj)(A.Z$.LOWER_THIRD),m=e.adDimensions,p=e.scaledAdDimensions,v=e.sdaScale,h=e.sdaHorizontalOffset,f={height:””.concat(p.height,”px”),width:””.concat(16*p.height/9,”px”)},g=(0,a.__assign)((0,a.__assign)((0,a.__assign)((0,a.__assign)({},c),l),f),{background:”black”}),k=u.useContext(S.jK),y=k.adFormatMetadata,x=k.isDisplayingSDASequence,b=”rtl”===document.dir,C={transform:”translateX(“.concat(b?””:”-“,”50%) scale(“).concat(v,”)”)},w=u.useContext(R.OK),_=w.sdaFormat,N=w.isSDASequenceVisible,D=!!((0,L.I9)(y)&&x&&N),P=u.useState({}),j=P[0],I=P[1];u.useEffect((function(){I({width:e.containerDimensions.width||300,height:e.containerDimensions.height||1050,background:”black”})}),[e.containerDimensions.height,e.containerDimensions.width]);var E=d()(“stream-display-ad__wrapper”,”stream-display-ad__wrapper_squeezeback”,”stream-display-ad__wrapper-“.concat(D?”visible”:”hidden”)),F=”squeezeback”,O=d()(((n={})[“stream-display-ad__container_”.concat(F)]=!0,n)),V=d()(((i={})[“stream-display-ad__transform-container_”.concat(F)]=!0,i)),M=d()(((t={})[“stream-display-ad__frame_”.concat(F)]=!0,t)),z=d()(((r={})[“stream-display-ad__iframe_”.concat(F)]=!0,r[“stream-display-ad__iframe_”.concat(F,”–visible”)]=!0,r)),W={position:”absolute”,width:””.concat(h,”px”),right:”0″,height:”100%”,zIndex:”-1″};if(_!==A.Z$.SQUEEZEBACK)return null;var H=(0,o.jsx)(U,(0,a.__assign)({format:A.Z$.SQUEEZEBACK,isSkyscraper:!1},e));return(0,B.Ny)(m)&&(H=(0,o.jsx)(“div”,{“data-test-selector”:q.IFrame,className:z,style:j})),(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(“div”,{“data-test-selector”:q.Wrapper,className:E,children:(0,o.jsxs)(“div”,{“data-test-selector”:q.Container,className:O,style:g,children:[(0,o.jsx)(“div”,{className:”squeezeback-accessibility-frame”,style:W,tabIndex:0}),(0,o.jsx)(“div”,{“data-test-selector”:q.Transform,className:V,style:{},children:(0,o.jsx)(“div”,{“data-test-selector”:q.Frame,id:s,className:M,style:C,children:H})})]})})})})),$=i(858235),Y=i(812294),J=i(89279),ee=p.x.wrap((function(){return i.e(24175).then(i.bind(i,785133))}),”VerticalVideoControls”,{failSilently:!0,placeholder:null}),ne=(0,E.Zz)((0,M.A)(),(0,F.X)({name:”VerticalVideoContainer”}))((function(e){var n=e.scaledAdDimensions,i=e.sdaHorizontalOffset,t=e.trackAdFormatData,l=u.useContext(S.jK),s=l.adFormatMetadata,d=l.thirdPartyOutstreamVideoAdElement,c=l.updateOutstreamAdElement,m=l.videoAdMetadata,p=l.resetOutstreamAd,v=u.useContext(R.OK).checkAndUpdateSDAHiddenState,h=u.useContext(C.kl).behaviors,f=(0,L.hr)(s),g=f&&”hiding”===(null==s?void 0:s.status),k=f&&!g,y=(0,I.Z)(k),x=u.useRef(null),b=(0,J.M)(x).isHovering,w=(0,$.gD)(void 0,void 0,s),_=w.minutes,N=w.seconds,D=void 0;s&&(0,L.pt)(s)&&(D=s.numberOfAds>1?(0,$.ZV)(s.adPosition,s.numberOfAds,_,N):(0,$.KV)(_,N));var P={position:”absolute”,transition:”visibility 0.25s, opacity 0.25s ease-in-out”,width:”100%”,height:”100%”,right:”0″,visibility:k?”visible”:”hidden”},j={position:”absolute”,top:”50%”,transform:”translateY(-50%)”,height:””.concat(n.height,”px”),width:””.concat(n.width,”px”),opacity:k?1:0,background:”black”,right:””.concat(i,”px”)};u.useEffect((function(){if(k&&!(null==s?void 0:s.started)){var e=setTimeout((function(){var e;null===(e=s.videoAd)||void 0===e||e.start(),v(d)}),1e3);return function(){return clearTimeout(e)}}}),[k,s,v,d]),u.useEffect((function(){k&&(null==m?void 0:m.stitched)&&(t(“ad_opportunity_abort”,{abort_reason:”SureStream”}),p())}),[k,p,null==m?void 0:m.stitched,t]),u.useEffect((function(){k&&(null==h?void 0:h.mini)&&(t(“ad_opportunity_abort”,{abort_reason:”MINI”}),p())}),[k,p,null==h?void 0:h.mini,t]),u.useEffect((function(){k&&t(“ad_container_render_lifecycle”,{render_stage:”MOUNT”}),y&&!k&&t(“ad_container_render_lifecycle”,{render_stage:”UNMOUNT”,format_name:(0,A.uN)(A.Z$.OUTSTREAM_VERTICAL_VIDEO)})}),[k]);var E=(0,L.RO)(s),F={onClick:function(){return null==E?void 0:E.pause()},onClose:function(){return null==E?void 0:E.play()},right:2,adInfoTextOverride:D};return(0,o.jsx)(r.P,{style:P,children:(0,o.jsxs)(r.P,{style:j,ref:x,children:[(0,o.jsx)(r.P,{width:”100%”,height:”100%”,”data-a-target”:”outstream-ax-overlay”,ref:c}),k&&(0,o.jsx)(r.P,{position:”absolute”,width:”100%”,style:{bottom:0,width:”100%”},children:(0,o.jsx)(ee,{showControls:b})}),k&&(0,o.jsx)(Y.Cq,(0,a.__assign)({},F))]})})})),ie=function(e){var n=e.children,i=e.handleResize,t=u.useContext(C.kl),l=t.behaviors,s=u.useContext(w._t),d=u.useContext(_.wL),c=u.useContext(x.MP),m=u.useContext(S.jK),p=u.useContext(b.$g),v=u.useContext(k.m9),h=(0,y.U0)().isSDAUpsellShowing,I=(0,a.__assign)((0,a.__assign)({uiContext:s,videoPlaybackContext:d,playerPublicPropsContext:t},c),{adContext:m,playerContext:p,brandLiftContext:v,isSDAUpsellShowing:h}),E=m.adFormatMetadata,F=v.isSurveyShowing,O=v.isMouseHovering,T=E&&(0,g.rW)(E.adFormat)||F&&!O||h,V=!(0,D.N8)(l,”enableStreamDisplayAds”)||e.playerType===N.C.WatchPartyHost;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(f.$,{onResize:i}),!V&&(0,o.jsx)(K,(0,a.__assign)({},e)),!V&&(0,o.jsx)(X,(0,a.__assign)({},e)),!V&&(0,o.jsx)(ne,(0,a.__assign)({},e)),n,!V&&(0,o.jsx)(Z,(0,a.__assign)({},e)),!V&&(0,P.oZ)(I)&&(0,o.jsx)(r.P,{hidden:!T,children:(0,o.jsx)(j.q,{shouldShow:(0,P.SU)(I),isOffline:!1,isAccessibilityLandmark:!1,hideDVRSeekbar:!0})})]})};ie.displayName=”StreamDisplayAdWrapper”;var te=i(100070),ae=p.x.wrap((function(){return Promise.all([i.e(99875),i.e(40911),i.e(65019),i.e(70614)]).then(i.bind(i,835657))}),”CelebrationDisplayContainer”,{failSilently:!0,placeholder:null}),oe=function(e){var n,i=(0,c.d4)(te.G,c.bN),t=i.firstPageLoaded,s={};i.theatreModeEnabled?s.maxHeight=”100%”:(null===(n=e.behaviors)||void 0===n?void 0:n.playerContainerMaxHeightStyleValue)&&(s.maxHeight=e.behaviors.playerContainerMaxHeightStyleValue);var u=(0,h.J)(),p=u.sdaVideoRefClasses,f=u.sdaVideoRefStyles,g=d().apply(void 0,(0,a.__spreadArray)([“video-ref”],p,!1));return(0,o.jsxs)(o.Fragment,{children:[t&&(0,o.jsx)(m.K,{name:”project_celebration_alerts”,children:(0,o.jsx)(ae,{enabled:(0,D.N8)(e.behaviors,”enableCelebrations”)})}),(0,o.jsx)(r.P,{className:”video-player”,”data-a-target”:”video-player”,”data-a-player-type”:e.type,”data-test-selector”:”video-player__video-layout”,children:(0,o.jsx)(r.P,{className:”video-player__container”,”data-test-selector”:”video-player__video-container”,ref:e.onContainerRefDelegate,overflow:l.nE.Hidden,position:l.yX.Absolute,attachBottom:!0,attachLeft:!0,attachRight:!0,attachTop:!0,style:s,children:(0,o.jsx)(v.PY,{children:(0,o.jsx)(ie,(0,a.__assign)({playerType:e.type,logger:e.logger},u,{children:(0,o.jsx)(r.P,{ref:e.onVideoRefDelegate,className:g,style:f,”data-a-target”:”video-ref”,children:e.children})}))})})})]})}},272285:function(e,n,i){“use strict”;i.d(n,{BZ:function(){return s},CD:function(){return p},Gd:function(){return o},Qf:function(){return u},Qq:function(){return f},Tz:function(){return r},WZ:function(){return c},a8:function(){return v},cc:function(){return l},g:function(){return g},mB:function(){return m},wh:function(){return t},wv:function(){return d},zd:function(){return h}});var t,a=i(170148),o=100,r=20,l=50,s=”https://help.twitch.tv/s/article/watch-parties”,d=3,u=”515467″,c=”watch-parties”,m=”https://www.amazon.com/gp/video/storefront?filterId=OFFER_FILTER%3DPRIME”,p=”dvm_tch_wtp_us_cd_s_signup”,v=”https://primevideo.com”,h={disableDoubleClickFullscreen:!0,disableFullscreen:!0,disableKeyboardShortcuts:!0,disablePopoutPlayer:!0,disableStatusIndicator:!0,disableStatusOverlay:!0,disableSettingsMenuButton:!0,disableTheatreMode:!0,disableUserPreferencePersistence:!1,disableWhispersCompatability:!0,enableExtensions:!1,forceQuality:a._6.Low,initialMuted:{enabled:!0,showOverlay:!0,overlayDuration:1/0}},f=5,g=”https://www.primevideo.com/help?nodeId=202095490&view-type=content-only”;!function(e){e.USER_NOT_PRIME=”USER_NOT_PRIME”,e.GEO_RESTRICTED=”GEO_RESTRICTED”}(t||(t={}))},302790:function(e,n,i){“use strict”;i.d(n,{Lw:function(){return f},Ng:function(){return N},Op:function(){return g},PU:function(){return D},SN:function(){return _},Sv:function(){return P},TM:function(){return k},_b:function(){return y},mu:function(){return x},rN:function(){return v},rs:function(){return h},y2:function(){return j},yo:function(){return w},zY:function(){return C},zn:function(){return S}});var t=i(331635),a=i(973421),o=i.n(a),r=i(661988),l=i(664865),s=i(239293),d=i(876531),u=i(45212),c=i(272285),m=i(112337),p=i.n(m),v=function(){return r.Zn.get(“cf_jim_faxes_from_the_future”,0)},h=function(){return r.Zn.get(“cf_wp_retry_count”,0)},f=function(e){return g(null==e?void 0:e.state)},g=function(e){return!(!e||e===d.DbI.OFFLINE||e===d.DbI.UNKNOWN)},k=function(e){return e&&e.isValid},y=function(e,n){return n===d.H2J.GEO_RESTRICTED||!!(null==e?void 0:e.self)&&(!e.self.eligibility.canView&&e.self.eligibility.reason===c.wh.GEO_RESTRICTED)},S=function(e){return e===d.LTh.BROAD_AVAILABILITY};function x(e,n){return null===e||e<0?0:n&&e>n?n:e}var b=function(e){return o()(e,(function(e){return(0,t.__assign)((0,t.__assign)({},e),{state:d.DbI.OFFLINE})}))},C=function(e){void 0===e&&(e=window.navigator.userAgent);return/(android[\w\.\s\-]{0,9});.+build/i.test(e)||/version\/([\w\.]+).+?(mobile\s?safari|safari)/i.test(e)},w=function(e){return e===c.Qf};var _=function(e){return”/”.concat(e)},N=function(e){var n=(0,l.G5)(e);n&&(0,l.WY)({id:n,fragment:p(),fragmentName:”watchPartySession”,mutator:b})},D=function(e){var n=window.location.pathname.substring(1);return(0,u.r3)(c.CD,n,e)},P=function(e){return e?{linkTo:””.concat(e,”#customer-review-section”),targetBlank:!0}:null},j=function(e){return(0,s.yT)((null!=e?e:1e4)/2e3*1e3)}},535502:function(e,n,i){“use strict”;i.d(n,{E:function(){return u}});var t=i(918533),a=i(29896),o=i(308966),r=i(198437),l=i(978180),s=i.n(l),d=i(302790);function u(e,n){var i,l,u,c,m,p,v=(0,a.IT)(s(),{variables:{channelLogin:e||””},skip:!e||n,fetchPolicy:”network-only”}),h=v.data,f=v.loading,g=null!==(l=null===(i=null==h?void 0:h.user)||void 0===i?void 0:i.id)&&void 0!==l?l:null,k=(0,t.D)(g?(0,r.Tv)(g):””,{skip:!g||n,skipMessage:function(e){return e.type!==o.PD.PrimeVideoWatchPartyStateUpdate}})[0],y=null===(m=null===(c=null===(u=null==h?void 0:h.user)||void 0===u?void 0:u.watchParty)||void 0===c?void 0:c.session)||void 0===m?void 0:m.state;k&&(p=k.data.state);var S=!1;return p?S=(0,d.Op)(p):y&&(S=(0,d.Op)(y)),f&&(S=!1,p=void 0,y=void 0),{isHostingWatchParty:S,watchPartyStateFromPubsub:p,watchPartyStateFromGQL:y}}},807547:function(e,n,i){“use strict”;function t(){return i.e(78025).then(i.bind(i,683990))}function a(e,n){var i=function(e){return Array.from(e.normalize?e.normalize(“NFC”):e)}(e);return i.length<=n?e:"".concat(i.slice(0,n-3).join("").trim(),"...")}i.d(n,{W:function(){return a},f:function(){return t}})},837033:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"HappeningNowSettings"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currentUser"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isChatHappeningNowEnabled"},arguments:[],directives:[]}]}}]}}]};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}})),e.exports=n},942802:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"SetHappeningNowSettings"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SetChatHappeningNowSettingsInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"setChatHappeningNowSettings"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isChatHappeningNowEnabled"},arguments:[],directives:[]}]}}]}}]};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}})),e.exports=n},134221:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"VideoPlayerClipPostplayRecommendationsOverlay__recs"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"requestID"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sessionID"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"clientApp"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"location"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"feedItems"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"context"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"platform"},value:{kind:"StringValue",value:"web",block:!1}},{kind:"ObjectField",name:{kind:"Name",value:"clientApp"},value:{kind:"Variable",name:{kind:"Name",value:"clientApp"}}},{kind:"ObjectField",name:{kind:"Name",value:"pageviewLocation"},value:{kind:"Variable",name:{kind:"Name",value:"location"}}}]}},{kind:"ObjectField",name:{kind:"Name",value:"sessionID"},value:{kind:"Variable",name:{kind:"Name",value:"sessionID"}}},{kind:"ObjectField",name:{kind:"Name",value:"requestID"},value:{kind:"Variable",name:{kind:"Name",value:"requestID"}}},{kind:"ObjectField",name:{kind:"Name",value:"feedLocation"},value:{kind:"EnumValue",value:"CLIPS"}},{kind:"ObjectField",name:{kind:"Name",value:"ingress"},value:{kind:"EnumValue",value:"BROWSE_CATEGORY_CLIP"}},{kind:"ObjectField",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cursor"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"node"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FeedContentFragmentPostPlay"},directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"recommendedLimit"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isEndOfContent"},arguments:[],directives:[]}]}}]}}]},a={};function o(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){o(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){o(e,n)})),e.definitions&&e.definitions.forEach((function(e){o(e,n)}))}t.definitions=t.definitions.concat(i(286040).definitions.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)})));var r={};t.definitions.forEach((function(e){if(e.name){var n=new Set;o(e,n),r[e.name.value]=n}})),e.exports=t},888:function(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"recommendedPostplayGame"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Game"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"recommendedPostplayClipBroadcaster"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"recommendedPostplayClip"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Clip"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"durationSeconds"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"thumbnailURL"},arguments:[{kind:"Argument",name:{kind:"Name",value:"width"},value:{kind:"IntValue",value:"480"}},{kind:"Argument",name:{kind:"Name",value:"height"},value:{kind:"IntValue",value:"272"}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"language"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"viewCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"broadcaster"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"recommendedPostplayClipBroadcaster"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"game"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"recommendedPostplayGame"},directives:[]},{kind:"Field",alias:{kind:"Name",value:"categorySlug"},name:{kind:"Name",value:"slug"},arguments:[],directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"recommendedPostplayBroadcaster"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"recommendedPostplayClipBroadcaster"},directives:[]},{kind:"Field",name:{kind:"Name",value:"stream"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"previewImageURL"},arguments:[{kind:"Argument",name:{kind:"Name",value:"width"},value:{kind:"IntValue",value:"320"}},{kind:"Argument",name:{kind:"Name",value:"height"},value:{kind:"IntValue",value:"180"}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"game"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"recommendedPostplayGame"},directives:[]}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"recommendedPostplayVideo"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Video"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"game"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"recommendedPostplayGame"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"lengthSeconds"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"previewThumbnailURL"},arguments:[{kind:"Argument",name:{kind:"Name",value:"width"},value:{kind:"IntValue",value:"320"}},{kind:"Argument",name:{kind:"Name",value:"height"},value:{kind:"IntValue",value:"180"}}],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"recommendedRelatedClips"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ClipRelatedClips"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"broadcaster"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"recommendedPostplayClip"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"game"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"recommendedPostplayClip"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"top"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"recommendedPostplayClip"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"VideoPlayerClipPostplayRecommendationsOverlay"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"slug"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"clip"},arguments:[{kind:"Argument",name:{kind:"Name",value:"slug"},value:{kind:"Variable",name:{kind:"Name",value:"slug"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"durationSeconds"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"videoOffsetSeconds"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"broadcaster"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"recommendedPostplayBroadcaster"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"game"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"recommendedPostplayGame"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"relatedClips"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"recommendedRelatedClips"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"video"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"recommendedPostplayVideo"},directives:[]}]}}]}}]}}]};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}})),e.exports=n},286040:function(e){e.exports={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"FeedContentFragmentPostPlay"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FeedClip"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"content"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"viewCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"language"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"curator"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"game"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"categorySlug"},name:{kind:"Name",value:"slug"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"broadcaster"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"thumbnailURL"},arguments:[{kind:"Argument",name:{kind:"Name",value:"width"},value:{kind:"IntValue",value:"480"}},{kind:"Argument",name:{kind:"Name",value:"height"},value:{kind:"IntValue",value:"272"}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"durationSeconds"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"previewThumbnailProperties"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"blurReason"},arguments:[],directives:[]}]}}]}}]}}]}},441663:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FeedInteractionHook_GetClipBySlug"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"slug"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"clip"},arguments:[{kind:"Argument",name:{kind:"Name",value:"slug"},value:{kind:"Variable",name:{kind:"Name",value:"slug"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"viewCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"language"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"durationSeconds"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"thumbnailURL"},arguments:[{kind:"Argument",name:{kind:"Name",value:"width"},value:{kind:"IntValue",value:"480"}},{kind:"Argument",name:{kind:"Name",value:"height"},value:{kind:"IntValue",value:"272"}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"broadcaster"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"game"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"categorySlug"},name:{kind:"Name",value:"slug"},arguments:[],directives:[]}]}}]}}]}}]};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}})),e.exports=n},802116:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"PostPlay_ReportFeedInteractions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ReportFeedInteractionsInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reportFeedInteractions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"session"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"interactions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"isFetchNeeded"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"error"},arguments:[],directives:[]}]}}]}}]};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}})),e.exports=n},525635:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ClipShareOverlay"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"slug"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"clip"},arguments:[{kind:"Argument",name:{kind:"Name",value:"slug"},value:{kind:"Variable",name:{kind:"Name",value:"slug"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"broadcaster"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}}]}}]};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}})),e.exports=n},478641:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"CollectionSideBar"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"collectionID"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"collection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"collectionID"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lengthSeconds"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"owner"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"profileURL"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"items"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"200"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Video"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lengthSeconds"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"previewThumbnailURL"},arguments:[{kind:"Argument",name:{kind:"Name",value:"width"},value:{kind:"IntValue",value:"80"}},{kind:"Argument",name:{kind:"Name",value:"height"},value:{kind:"IntValue",value:"45"}}],directives:[]}]}}]}}]}}]}}]}}]}}]};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}})),e.exports=n},19826:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ExtensionsInfoBalloon"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"extensionID"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"extensionVersion"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"extension"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"extensionID"}}},{kind:"Argument",name:{kind:"Name",value:"version"},value:{kind:"Variable",name:{kind:"Name",value:"extensionVersion"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"screenshotURLs"},arguments:[],directives:[]}]}}]}}]};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}})),e.exports=n},137837:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ExtensionsNotificationBitsBalance"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currentUser"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bitsBalance"},arguments:[],directives:[]}]}}]}}]};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}})),e.exports=n},144317:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ExtensionsOverlay"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"channelLogin"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"user"},arguments:[{kind:"Argument",name:{kind:"Name",value:"login"},value:{kind:"Variable",name:{kind:"Name",value:"channelLogin"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"stream"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"game"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"self"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"banStatus"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isPermanent"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"expiresInMs"},arguments:[],directives:[]}]}}]}}]}}]}}]};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}})),e.exports=n},73745:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FollowPanelOverlay"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"channelLogin"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"user"},arguments:[{kind:"Argument",name:{kind:"Name",value:"login"},value:{kind:"Variable",name:{kind:"Name",value:"channelLogin"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"self"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"follower"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"disableNotifications"},arguments:[],directives:[]}]}}]}}]}}]}}]};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}})),e.exports=n},565582:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"VideoPlayer_MutedSegmentsAlertOverlay"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"vodID"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"includePrivate"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},defaultValue:{kind:"BooleanValue",value:!1},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"video"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"vodID"}}},{kind:"Argument",name:{kind:"Name",value:"options"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"includePrivate"},value:{kind:"Variable",name:{kind:"Name",value:"includePrivate"}}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"muteInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mutedSegmentConnection"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"duration"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"offset"},arguments:[],directives:[]}]}}]}}]}}]}}]}}]};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}})),e.exports=n},769299:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"OfflineBannerOverlay"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"login"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"user"},arguments:[{kind:"Argument",name:{kind:"Name",value:"login"},value:{kind:"Variable",name:{kind:"Name",value:"login"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"offlineImageURL"},arguments:[],directives:[]}]}}]}}]};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}})),e.exports=n},359064:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"OfflineEmbedVODAndSchedule"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"login"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"user"},arguments:[{kind:"Argument",name:{kind:"Name",value:"login"},value:{kind:"Variable",name:{kind:"Name",value:"login"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bannerImageURL"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"offlineImageURL"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"primaryColorHex"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"channel"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"schedule"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"segmentList"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"startAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"endAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasReminder"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isCancelled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"categories"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"boxArtURL"},arguments:[{kind:"Argument",name:{kind:"Name",value:"width"},value:{kind:"IntValue",value:"144"}},{kind:"Argument",name:{kind:"Name",value:"height"},value:{kind:"IntValue",value:"192"}}],directives:[]}]}}]}}]}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"videos"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"1"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"previewThumbnailURL"},arguments:[{kind:"Argument",name:{kind:"Name",value:"width"},value:{kind:"IntValue",value:"320"}},{kind:"Argument",name:{kind:"Name",value:"height"},value:{kind:"IntValue",value:"180"}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"game"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}]}}]}}]}}]}}]};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}})),e.exports=n},530166:function(e){e.exports={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"VideoPlayerOfflineRecommendationsOverlayVideo"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Video"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"previewThumbnailURL"},arguments:[{kind:"Argument",name:{kind:"Name",value:"width"},value:{kind:"IntValue",value:"320"}},{kind:"Argument",name:{kind:"Name",value:"height"},value:{kind:"IntValue",value:"180"}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"game"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}]}},722809:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"VideoPlayerOfflineRecommendationsOverlay"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"login"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"user"},arguments:[{kind:"Argument",name:{kind:"Name",value:"login"},value:{kind:"Variable",name:{kind:"Name",value:"login"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"videos"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"30"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VideoPlayerOfflineRecommendationsOverlayVideo"},directives:[]}]}}]}}]}}]}}]}}]},a={};function o(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){o(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){o(e,n)})),e.definitions&&e.definitions.forEach((function(e){o(e,n)}))}t.definitions=t.definitions.concat(i(530166).definitions.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)})));var r={};t.definitions.forEach((function(e){if(e.name){var n=new Set;o(e,n),r[e.name.value]=n}})),e.exports=t},498690:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"VideoPlayer_ChapterSelectButtonVideo"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"videoID"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"includePrivate"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},defaultValue:{kind:"BooleanValue",value:!1},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"video"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"videoID"}}},{kind:"Argument",name:{kind:"Name",value:"options"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"includePrivate"},value:{kind:"Variable",name:{kind:"Name",value:"includePrivate"}}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"moments"},arguments:[{kind:"Argument",name:{kind:"Name",value:"momentRequestType"},value:{kind:"EnumValue",value:"VIDEO_CHAPTER_MARKERS"}},{kind:"Argument",name:{kind:"Name",value:"types"},value:{kind:"ListValue",values:[{kind:"EnumValue",value:"GAME_CHANGE"},{kind:"EnumValue",value:"HEARTHSTONE_VCA"},{kind:"EnumValue",value:"OVERWATCH_VCA"},{kind:"EnumValue",value:"PUBG_VCA"}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VideoPlayerVideoMomentEdge"},directives:[]}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"VideoPlayerVideoMomentEdge"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"VideoMomentEdge"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"moments"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VideoPlayerVideoMomentConnection"},directives:[]}]}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"VideoPlayerVideoMoment"},directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"VideoPlayerVideoMomentConnection"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"VideoMomentEdge"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VideoPlayerVideoMoment"},directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"VideoPlayerVideoMoment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"VideoMoment"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"durationMilliseconds"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"positionMilliseconds"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"subDescription"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"thumbnailURL"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"details"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VideoPlayerGameChangeDetails"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"video"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lengthSeconds"},arguments:[],directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"VideoPlayerGameChangeDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GameChangeMomentDetails"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"game"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"boxArtURL"},arguments:[{kind:"Argument",name:{kind:"Name",value:"width"},value:{kind:"IntValue",value:"40"}},{kind:"Argument",name:{kind:"Name",value:"height"},value:{kind:"IntValue",value:"53"}}],directives:[]}]}}]}}]};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}})),e.exports=n},184877:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"CanCreateClip"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"broadcasterID"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"vodID"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"canCreateClip"},arguments:[{kind:"Argument",name:{kind:"Name",value:"broadcasterID"},value:{kind:"Variable",name:{kind:"Name",value:"broadcasterID"}}},{kind:"Argument",name:{kind:"Name",value:"vodID"},value:{kind:"Variable",name:{kind:"Name",value:"vodID"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isAllowed"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"errorCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"requiredFollowingLengthMinutes"},arguments:[],directives:[]}]}}]}}]};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}})),e.exports=n},907520:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"VideoPlayerClipsButtonBroadcaster"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UserByAttribute"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userByAttribute"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"stream"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isEncrypted"},arguments:[],directives:[]}]}}]}}]}}]};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}})),e.exports=n},824565:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"LiveStreamTime"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"login"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"user"},arguments:[{kind:"Argument",name:{kind:"Name",value:"login"},value:{kind:"Variable",name:{kind:"Name",value:"login"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"stream"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]}]}}]}}]}}]};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}})),e.exports=n},481391:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"VideoPlayerSettingsWithClipMetadata"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"slug"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"isCommunityMomentsFeatureEnabled"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"clip"},arguments:[{kind:"Argument",name:{kind:"Name",value:"slug"},value:{kind:"Variable",name:{kind:"Name",value:"slug"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"broadcaster"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"curator"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"communityMoment"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"include"},arguments:[{kind:"Argument",name:{kind:"Name",value:"if"},value:{kind:"Variable",name:{kind:"Name",value:"isCommunityMomentsFeatureEnabled"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"currentUser"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"roles"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isSiteAdmin"},arguments:[],directives:[]}]}}]}}]}}]};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}})),e.exports=n},317391:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"VideoPlayer_ViewCount"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"login"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"user"},arguments:[{kind:"Argument",name:{kind:"Name",value:"login"},value:{kind:"Variable",name:{kind:"Name",value:"login"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"stream"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"viewersCount"},arguments:[],directives:[]}]}}]}}]}}]};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}})),e.exports=n},539062:function(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"VideoMutedSegment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"VideoMutedSegment"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"duration"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"offset"},arguments:[],directives:[]}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"VideoPlayer_VODSeekbar"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"vodID"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"includePrivate"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},defaultValue:{kind:"BooleanValue",value:!1},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"video"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"vodID"}}},{kind:"Argument",name:{kind:"Name",value:"options"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"includePrivate"},value:{kind:"Variable",name:{kind:"Name",value:"includePrivate"}}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lengthSeconds"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"muteInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mutedSegmentConnection"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VideoMutedSegment"},directives:[]}]}}]}}]}}]}}]}}]};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}})),e.exports=n},402459:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"VideoPlayerSubscriberVODOverlayVideoQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"videoID"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"video"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"videoID"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"owner"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"profileImageURL"},arguments:[{kind:"Argument",name:{kind:"Name",value:"width"},value:{kind:"IntValue",value:"150"}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]}]}}]}}]}}]};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}})),e.exports=n},696833:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"CollectionTopBar"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"collectionID"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"collection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"collectionID"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"items"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"200"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Video"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}]}}]}}]}}]}}]};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}})),e.exports=n},799519:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"VideoPlayerStreamInfoOverlayChannel"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"channel"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"user"},arguments:[{kind:"Argument",name:{kind:"Name",value:"login"},value:{kind:"Variable",name:{kind:"Name",value:"channel"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"profileURL"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"profileImageURL"},arguments:[{kind:"Argument",name:{kind:"Name",value:"width"},value:{kind:"IntValue",value:"150"}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"roles"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isPartner"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"broadcastSettings"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"game"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"stream"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"viewersCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tags"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"localizedName"},arguments:[],directives:[]}]}}]}}]}}]}}]};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}})),e.exports=n},491368:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"VideoPlayerStreamInfoOverlayClip"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"slug"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"clip"},arguments:[{kind:"Argument",name:{kind:"Name",value:"slug"},value:{kind:"Variable",name:{kind:"Name",value:"slug"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"broadcaster"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"profileURL"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"profileImageURL"},arguments:[{kind:"Argument",name:{kind:"Name",value:"width"},value:{kind:"IntValue",value:"150"}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"roles"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isPartner"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"game"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"viewCount"},arguments:[],directives:[]}]}}]}}]};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}})),e.exports=n},904785:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"VideoPlayerStreamInfoOverlayVOD"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"videoID"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"video"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"videoID"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"owner"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"profileImageURL"},arguments:[{kind:"Argument",name:{kind:"Name",value:"width"},value:{kind:"IntValue",value:"150"}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"roles"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isPartner"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"contentTags"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"localizedName"},arguments:[],directives:[]}]}}]}}]}}]};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}})),e.exports=n},21743:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"VideoPreviewOverlay"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"login"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"user"},arguments:[{kind:"Argument",name:{kind:"Name",value:"login"},value:{kind:"Variable",name:{kind:"Name",value:"login"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"stream"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"previewImageURL"},arguments:[{kind:"Argument",name:{kind:"Name",value:"width"},value:{kind:"IntValue",value:"1280"}},{kind:"Argument",name:{kind:"Name",value:"height"},value:{kind:"IntValue",value:"720"}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"restrictionType"},arguments:[],directives:[]}]}}]}}]}}]};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}})),e.exports=n},903812:function(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"VideoPlayerVODPostplayRecommendationsVideo"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Video"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lengthSeconds"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"previewThumbnailURL"},arguments:[{kind:"Argument",name:{kind:"Name",value:"width"},value:{kind:"IntValue",value:"640"}},{kind:"Argument",name:{kind:"Name",value:"height"},value:{kind:"IntValue",value:"360"}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"game"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"self"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"viewingHistory"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"position"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"VideoPlayerVODPostplayRecommendations"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"videoID"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"video"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"videoID"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"owner"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"videos"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"32"}},{kind:"Argument",name:{kind:"Name",value:"sort"},value:{kind:"EnumValue",value:"TIME"}},{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"ARCHIVE"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VideoPlayerVODPostplayRecommendationsVideo"},directives:[]}]}}]}}]}}]}}]}}]}}]};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}})),e.exports=n},404785:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"VODPreviewOverlay"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"vodID"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"video"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"vodID"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"previewThumbnailURL"},arguments:[{kind:"Argument",name:{kind:"Name",value:"width"},value:{kind:"IntValue",value:"1280"}},{kind:"Argument",name:{kind:"Name",value:"height"},value:{kind:"IntValue",value:"720"}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}}]}}]};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}})),e.exports=n},708961:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"VideoPlayer_FollowButtonFollowUser"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"FollowUserInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"followUser"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"follow"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"disableNotifications"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"self"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"follower"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"disableNotifications"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"followedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"notificationSettings"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isEnabled"},arguments:[],directives:[]}]}}]}}]}}]}}]}}]}}]}}]};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}})),e.exports=n},109488:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ExtensionPanel_Conditions_BitsBalance"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"extensionID"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"extensionVersion"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"conditionID"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"conditionOwnerID"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currentUser"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bitsBalance"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"extension"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"extensionID"}}},{kind:"Argument",name:{kind:"Name",value:"version"},value:{kind:"Variable",name:{kind:"Name",value:"extensionVersion"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"challengeCondition"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"conditionID"},value:{kind:"Variable",name:{kind:"Name",value:"conditionID"}}},{kind:"ObjectField",name:{kind:"Name",value:"conditionOwnerID"},value:{kind:"Variable",name:{kind:"Name",value:"conditionOwnerID"}}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}]}}]};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}})),e.exports=n}}]);