/* VimeoPlayer - v4.39.41 - 2024-12-19 - https://player.vimeo.com/NOTICE.txt */ import{_ as e,d as t,a as n,i,s as o,C as r,c as a,b as s,e as l,u as c,L as d,g as u,f as _,x as p,h as v,j as m,t as f,k as h,l as g,V as E,m as b,n as C,o as y,r as T,p as L,q as A,P as S,T as I,v as O,w as P,E as w,y as R,z as N,G as k,A as D,B as M,F as B,D as V,Q as x,S as U,H,I as F,J as G,R as Y,K as W,M as $,N as q,O as K,U as j,W as z,X,Y as Z,Z as Q,$ as J,a0 as ee,a1 as te,a2 as ne,a3 as ie,a4 as oe,a5 as re,a6 as ae,a7 as se,a8 as le,a9 as ce,aa as de,ab as ue,ac as _e,ad as pe,ae as ve,af as me,ag as fe,ah as he,ai as ge,aj as Ee,ak as be,al as Ce,am as ye,an as Te,ao as Le,ap as Ae,aq as Se,ar as Ie,as as Oe,at as Pe,au as we,av as Re,aw as Ne,ax as ke,ay as De,az as Me,aA as Be,aB as Ve,aC as xe,aD as Ue,aE as He,aF as Fe,aG as Ge,aH as Ye,aI as We,aJ as $e,aK as qe,aL as Ke,aM as je,aN as ze,aO as Xe,aP as Ze,aQ as Qe,aR as Je,aS as et,aT as tt,aU as nt,aV as it,aW as ot,aX as rt,aY as at}from"./vendor.module.js";export{aa as BigScreen,aY as requestModule}from"./vendor.module.js";"classList"in SVGElement.prototype||Object.defineProperty(SVGElement.prototype,"classList",{get:function(){var e=this;return{contains:function(t){return-1!==e.className.baseVal.split(" ").indexOf(t)},add:function(t){var n=(e.getAttribute("class")+" "+t).trim();return e.setAttribute("class",n)},remove:function(t){var n=e.getAttribute("class")||"",i=new RegExp("(?:^|\\s)"+t+"(?!\\S)","g");n=n.replace(i,"").trim(),e.setAttribute("class",n)},toggle:function(e){this.contains(e)?this.remove(e):this.add(e)}}}});let st={};function lt(e="",t={}){var n;if((null==(n=st.en)?void 0:n[e])&&(e=st.en[e]),Object.keys(t).forEach(n=>{e=e.replace(new RegExp(`{${n}}`,"g"),t[n])}),e.match(/\{\w+}/))throw new Error("Missing token definition.");return e}function ct(e){let t,n,i;return e=parseFloat(e),isNaN(e)||e<0?"0":e<1e3?e.toString():e>=1e3&&e<1e6?(i=Math.floor(e/1e3),t=Math.round(e%1e3/100),i+"."+t+"K"):(n=Math.floor(e/1e6),t=Math.round(e%1e6/1e5),n+"."+t+"M")}function dt(e){return!isNaN(e)&&parseInt(Number(e),10)==e&&!isNaN(parseInt(e,10))}function ut(e){return encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(e,t)=>String.fromCharCode("0x"+t))}const _t=function(t,...n){const i=n=>n.length>=t.length?t.apply(this,n):(...t)=>i([].concat(e(n),t));return i([])}((e,t)=>Object.keys(e).every(n=>e[n]===t[n])),pt=(e=[])=>({get:t=>t?e.find(_t(t)):e,insert:t=>(e=e.concat(t)).slice(-1).pop(),getOrInsert(e){return this.get(e)||this.insert(e)},remove:t=>e.splice(e.findIndex(_t(t)),1).pop()});function vt(e,t,n=document.styleSheets[0]){try{n.insertRule?n.insertRule(e+"{"+t+"}",(n.cssRules||n.rules).length):n.addRule(e,t)}catch(ke){}}function mt(e){let t=e.getBoundingClientRect();return document.msFullscreenElement&&window.parent!==window&&e.offsetWidth0&&s0&&ln?n:t>e?t:e}function Et(e,t,{width:n,height:i,scrollbars:o="yes",resizable:r="yes",toolbar:a="no"}){let s=(window.screenY||window.screenTop||0)+window.outerHeight/2-i/2,l=(window.screenX||window.screenLeft||0)+window.outerWidth/2-n/2;window.chrome&&-1!==window.navigator.userAgent.toLowerCase().indexOf("mac os x")&&(i+=27),window.safari&&(i+=47);let c=`scrollbars=${o},resizable=${r},toolbar=${a}`;return window.open(e,t,`width=${n},height=${i},left=${l},top=${s},${c}`)}function bt(e){return function(e){return/^(https?:)?\/\/(.+)\.(((vimeo(ws)?|vimeo-(enterprise|work))\.(com|dev|work))|(videoji|videoshipinurl)\.(hk|cn))(?=$|\/)/.test(e)}(e)?ft(e):""}function Ct(e,i,o){if(function(e){return/^(https?:)?\/\/(.+)\.((vimeo(ws)?|vimeo-(enterprise|work))\.(com|dev|work)|(videoji|videoshipinurl)\.(hk|cn))\/video\/\d+\/config(?=$|\?)/.test(e)}(i))return i;const r=yt(i),a=t(window.location.search),s=t(`${i}`.split("?")[1]),l=Object.assign(a,s,o);return n(`${e}/video/${r}/config`,l)}function yt(e){if(dt(e))return parseInt(e,10);const t=e.match(/(video|\.com|\.dev)\/(\d+)/);if(!t||t.length<3)throw new Error("Please provide a Vimeo URL with a valid clip id.");return parseInt(t[2],10)}function Tt(e,t=3){if(e=parseFloat(e),isNaN(e))return 0;var n=Math.pow(10,t);return Math.round(e*n)/n}function Lt(e,t){return-1!==Array.from(t).indexOf(e)}function At(e,t,n){if(void 0!==n)e.style[t]=n;else if(i(t))e.setAttribute("style",t);else for(const i in t)At(e,i,t[i])}function St(e,t,n){n.forEach(n=>{e(n,(...e)=>{t.apply(void 0,[n].concat(e))})})}function It(e){for(var t=Object.keys(e),n=t.length,i=[],o=0;o(...n)=>e(t.apply(void 0,n)))}((function(e){return e?Array.from(e.parentNode.children).indexOf(e):-1}),(function(e,t){for(;(null==(n=e)?void 0:n.parentElement)&&!Lt(e,t);){var n;e=e.parentElement}return Lt(e,t)?e:null}));let Pt=0;function wt(e="p"){return`${e}${++Pt}`}const Rt={_spatialUnsupported:wt(),_spatialFailure:wt()},Nt={h264:"video/mp4",hls:"application/vnd.apple.mpegurl",hlsLive:"application/x-mpegURL",dash:"application/vnd.vimeo.dash+json",dashMpd:"video/vnd.mpeg.dash.mpd",vp6:"video/x-flv",vp8:"video/webm",webm:"video/webm",hds:"application/f4m"},kt={_seek:wt(),_changeVolume:wt(),_changeMuted:wt(),_hideOverlay:wt(),_showOverlay:wt(),_updateOverlay:wt(),_openPopup:wt(),_reset:wt(),_changeLoop:wt(),_changeQuality:wt(),_openVimeo:wt(),_changeColor:wt(),_disableVolume:wt(),_enableVolume:wt(),_disableCaptions:wt(),_enableCaptions:wt(),_forceFullscreen:wt(),_turnCaptionsOn:wt(),_turnCaptionsOff:wt(),_changeCaptionsStyles:wt(),_resetCaptionsStyles:wt(),_toggleNativeControls:wt(),_showOutro:wt(),_hideOutro:wt(),_setControlsVisibility:wt(),_overrideControlbarBehavior:wt(),_activatePictureInPicture:wt(),_deactivatePictureInPicture:wt(),_attachSpatialPlaybackEvents:wt(),_toggleSpatialPlayback:wt(),_revealSpatialControls:wt(),_setTime:wt(),_addCard:wt(),_removeCard:wt(),_changePlaybackRate:wt(),_destroy:wt(),_changeAudioTrack:wt(),_requestCompleteLiveSubtitles:wt(),_openRemoteComponent:wt(),_closeRemoteComponent:wt(),_updateLiveSubtitleRequests:wt()},Dt={will:"willLikeVideo",did:"didLikeVideo"},Mt={will:"willUnlikeVideo",did:"didUnlikeVideo"},Bt={will:"willAddToWatchLater",did:"didAddToWatchLater"},Vt={will:"willRemoveFromWatchLater",did:"didRemoveFromWatchLater"},xt={will:"willOpenVodPurchaseForm",did:"didOpenVodPurchaseForm"},Ut={will:"willOpenShareOverlay",did:"didOpenShareOverlay"},Ht={will:"willOpenLoginForm",did:"didOpenLoginForm"},Ft={will:"willOpenCollectionsOverlay",did:"didOpenCollectionsOverlay"},Gt={will:"willShowOutro",did:"didShowOutro"},Yt={will:"willSendPlayLog",did:"didSendPlayLog"},Wt={_apiError:wt(),_error:wt(),_playRejected:wt(),_playResolved:wt(),_paused:wt(),_pausedForAd:wt(),_resumedAfterAd:wt(),_ended:wt(),_volumeChanged:wt(),_mutedChanged:wt(),_qualityChanged:wt(),_targetTimeReached:wt(),_cuepoint:wt(),_firstTimeUpdate:wt(),_playbackRateChanged:wt(),_nudgeAttempted:wt(),_showNudgeNotification:wt(),_nudgeEnded:wt(),_fragmentChanged:wt(),_fullscreenButtonPressed:wt(),_pauseButtonPressed:wt(),_playButtonPressed:wt(),_prefsButtonPressed:wt(),_ccButtonPressed:wt(),_chapterSeekAttempted:wt(),_chapterSeek:wt(),_chapterHoverStateOn:wt(),_chapterHoverStateOff:wt(),_chapterChanged:wt(),_scrubbingStarted:wt(),_scrubbingEnded:wt(),_volumeScrubbingStarted:wt(),_volumeScrubbingEnded:wt(),_controlBarVisibilityChanged:wt(),_toastVisibilityChanged:wt(),_sidedockVisibilityChanged:wt(),_menuVisibilityChanged:wt(),_captionsChanged:wt(),_cuePointAdded:wt(),_cuePointRemoved:wt(),_stereoscopicButtonPressed:wt(),_menuPanelOpened:wt(),_menuPanelClosed:wt(),_menuCentered:wt(),_badgePressed:wt(),_muteAutoplayed:wt(),_willEnterFullscreen:wt(),_didEnterFullscreen:wt(),_willExitFullscreen:wt(),_didExitFullscreen:wt(),_likeButtonPressed:wt(),_watchLaterButtonPressed:wt(),_shareButtonPressed:wt(),_embedButtonPressed:wt(),_vodButtonPressed:wt(),_collectionsButtonPressed:wt(),_followButtonPressed:wt(),_overlayOpened:wt(),_overlayClosed:wt(),_overlayCleared:wt(),_overlayCloseButtonPressed:wt(),_facebookButtonPressed:wt(),_twitterButtonPressed:wt(),_tumblrButtonPressed:wt(),_emailButtonPressed:wt(),_embedCodeCopied:wt(),_popupOpened:wt(),_debugButtonPressed:wt(),_popupClosed:wt(),_shareViewShown:wt(),_embedViewShown:wt(),_shareViewEnd:wt(),_embedViewEnd:wt(),_showAndroidVRDeepLink:wt(),_debugDataChange:wt(),_mousedOut:wt(),_mousedOver:wt(),_mouseTimeout:wt(),_liked:wt(),_unliked:wt(),_addedToWatchLater:wt(),_removedFromWatchLater:wt(),_userLogIn:wt(),_userLoggedIn:wt(),_userLoggedOut:wt(),_loginFailure:wt(),_colorChanged:wt(),_configChanged:wt(),_liveEventSettingsChanged:wt(),_passwordUnlocked:wt(),_privateUnlocked:wt(),_enteredTinyMode:wt(),_enteredMiniMode:wt(),_enteredNormalMode:wt(),_assetUrlsRefreshed:wt(),_embedSettingChanged:wt(),_createInteractiveChanged:wt(),_ottMetadataSet:wt(),_outroDisplayed:wt(),_outroHidden:wt(),_outroVideoPressed:wt(),_becameActive:wt(),_becameInactive:wt(),_tipped:wt(),_loadVideo:wt(),_swapVideo:wt(),_outroLinkPressed:wt(),_followed:wt(),_unfollowed:wt(),_outroImagePressed:wt(),_outroCtaPressed:wt(),_cardDisplayed:wt(),_cardPressed:wt(),_spaceChanged:wt(),_displayContextChanged:wt(),_titleModuleReady:wt(),_sidedockModuleReady:wt(),_controlBarModuleReady:wt(),_videoModuleReady:wt(),_overlayModuleReady:wt(),_notificationModuleReady:wt(),_statsModuleReady:wt(),_apiModuleReady:wt(),_ready:wt(),_notificationHidden:wt(),_alertVisibilityChanged:wt(),_airPlayAvailable:wt(),_airPlayNotAvailable:wt(),_airPlayActivated:wt(),_airPlayDeactivated:wt(),_airPlayButtonPressed:wt(),_adBuffering:wt(),_adComplete:wt(),_adClicked:wt(),_adError:wt(),_adPaused:wt(),_adResumed:wt(),_adStarted:wt(),_adSkipped:wt(),_allAdsCompleted:wt(),_logMetric:wt(),_interactiveReady:wt(),_interactiveHotspotClicked:wt(),_interactiveOverlayPanelClicked:wt(),_interactiveMarkerClicked:wt(),_interactiveSeekCall:wt(),_transcriptChanged:wt(),_rightContentAreaVisibilityChange:wt(),_rightContentAreaEnabled:wt(),_rightContentAreaDisabled:wt(),_transcriptNavActive:wt(),_transcriptSessionStarted:wt(),_transcriptKeyPressed:wt(),_aiWidgetKeyPressed:wt(),_qoeSurveyPresented:wt(),_parentUrlAvailable:wt(),_liveEventSafeToPlay:wt(),_startTimeUpdated:wt(),_endTimeUpdated:wt(),_remoteComponentMounted:wt(),_accessGateOpened:wt(),_accessGateClosed:wt(),_accessGateUnlocked:wt(),_eventedStoreCreated:wt(),_outroDataReceived:wt()},$t={_seek:wt(),_play:wt(),_pause:wt(),_playbackRateChange:wt()},qt={"application/vnd.apple.mpegurl":"hls","application/vnd.vimeo.dash+json":"dash","video/vnd.mpeg.dash.mpd":"dash","video/mp4":"progressive","video/webm":"progressive","video/x-flv":"progressive","application/x-mpegURL":"hlslive"},Kt={main:1,privateLocked:2,privateUnlocked:3,privatePassword:4,error:7,contentRating:9},jt={AD_STARTED:"adstarted",AD_COMPLETED:"adcompleted",AD_ERROR:"aderror",AD_SKIPPED:"adskipped",AD_ALL_COMPLETED:"adallcompleted",AD_CLICKED:"adclicked",BUFFER_END:"bufferend",BUFFER_START:"bufferstart",CHAPTER_CHANGE:"chapterchange",CHROMECAST_CONNECTED:"chromecastconnected",CONTROL_BAR_VISIBILITY_CHANGED:"controlbarvisibilitychanged",TOAST_VISIBILITY_CHANGED:"toastvisibilitychanged",CUE_CHANGE:"cuechange",CUEPOINT:"cuepoint",DURATION_CHANGE:"durationchange",ENDED:"ended",ERROR:"error",FULLSCREENCHANGE:"fullscreenchange",INTERACTIVE_HOTSPOT_CLICKED:"interactivehotspotclicked",INTERACTIVE_OVERLAY_PANEL_CLICKED:"interactiveoverlaypanelclicked",LIVE_EVENT_ENDED:"liveeventended",LIVE_EVENT_STARTED:"liveeventstarted",LIVE_STREAM_OFFLINE:"livestreamoffline",LIVE_STREAM_ONLINE:"livestreamonline",LOADED_DATA:"loadeddata",LOAD_START:"loadstart",LOADED_METADATA:"loadedmetadata",LOADED:"loaded",MOTION_END:"motionend",MOTION_START:"motionstart",CAMERA_CHANGE:"camerachange",WEBVR_HARDWARE_AVAILABLE:"webvrhardwareavailable",ENTER_WEBVR:"enterwebvr",EXIT_WEBVR:"exitwebvr",ENTER_PICTURE_IN_PICTURE:"enterpictureinpicture",LEAVE_PICTURE_IN_PICTURE:"leavepictureinpicture",SPATIAL_UNSUPPORTED:"spatialunsupported",PAUSE:"pause",PLAY:"play",PLAYING:"playing",PLAYBACK_RATE_CHANGE:"playbackratechange",RATE_CHANGE:"ratechange",PROGRESS:"progress",QUALITY_CHANGE:"qualitychange",READY:"ready",REMOTE_PLAYBACK_AVAILABILITY_CHANGE:"remoteplaybackavailabilitychange",REMOTE_PLAYBACK_CONNECTING:"remoteplaybackconnecting",REMOTE_PLAYBACK_CONNECT:"remoteplaybackconnect",REMOTE_PLAYBACK_DISCONNECT:"remoteplaybackdisconnect",RESIZE:"resize",SEEKING:"seeking",SEEKED:"seeked",SPACE_CHANGE:"spacechange",TEXT_TRACK_CHANGE:"texttrackchange",TIME_UPDATE:"timeupdate",VOLUME_CHANGE:"volumechange",WAITING:"waiting",PLAYER_LOGIN_SUCCESSFUL:"playerLoginSuccessful",PLAYER_LOGIN_FAILED:"playerLoginFailed",COMPONENT_VISIBILITY_CHANGE:"componentVisibilityChange",APP_BREAKPOINT_CHANGE:"appBreakpointChange",LOAD_VIDEO:"loadVideo"},zt={playProgress:"timeupdate",loadProgress:"progress",finish:"ended",seek:"seeked"},Xt=!0===o.iOS,Zt={BEGINNING:"beginning",VOD:"vod",VIDEOS:"videos",LINK:"link",THREEVIDEOS:"threevideos",PROMOTED:"promoted",SHARE:"share"},Qt=["t","start","at"],Jt="one",en="two",tn="three",nn="four",on={[Jt]:"000000",[en]:"00adef",[tn]:"ffffff",[nn]:"000000"},rn={[Jt]:"color_one",[en]:"color_two",[tn]:"color_three",[nn]:"color_four"},an={[Jt]:"colorOne",[en]:"colorTwo",[tn]:"colorThree",[nn]:"colorFour"};var sn;!function(e){e.POPUP="popup",e.ON_SITE="onsite"}(sn||(sn={}));var ln=sn;const cn=[151656996,85979044,135306151,84839100,156281671,71236980,110717144];let dn;!function(e){e.NOT_SUPPORTED="not-supported",e.DRM_FAILURE="drm-failure",e.DECODE="decode",e.NETWORK="network",e.UNKNOWN="unknown",e.TELECINE_FILE_ERROR="telecine-file-error",e.TELECINE_DOWNLOAD_ERROR="telecine-download-error",e.MEDIA_URL_EXPIRED="media-url-expired",e.SCANNER_ERROR="scanner-error",e.ERROR="error"}(dn||(dn={}));const un=()=>({id:dn.NETWORK,title:"Network error",message:'A network hiccup interrupted playback. Please reload the player and try again.',final:!0}),_n=()=>({id:dn.ERROR,title:"Player error",message:"The player is having trouble. We’ll have it back up and running as soon as possible.",modal:!0,final:!0});var pn=Object.freeze({__proto__:null,BrowserNotSupported:()=>({id:dn.NOT_SUPPORTED,title:"Unsupported viewing environment",message:'Your system is having trouble playing this video. For more information, see our Help Center.',deferred:!0,final:!0}),DRMFailure:()=>({id:dn.DRM_FAILURE,title:"Rights issue",message:"We’re having trouble authorizing playback for this video. ",final:!0}),FilesNotPlayable:()=>({id:dn.NOT_SUPPORTED,title:"Player error",message:"The player is having trouble. We’ll have it back up and running as soon as possible.",deferred:!0,final:!0}),MediaSrcNotSupportedError:()=>({id:dn.NOT_SUPPORTED,final:!1}),MediaDecodeError:()=>({id:dn.DECODE,final:!1}),MediaNetworkError:un,MediaUnknownError:()=>({id:dn.UNKNOWN,title:"Browser error",message:'We’re having trouble playing this video file. Please reload the player and try again.',final:!0}),FileError:()=>({id:dn.TELECINE_FILE_ERROR,final:!1}),DownloadError:()=>({id:dn.TELECINE_DOWNLOAD_ERROR,final:!1}),MediaUrlExpired:()=>({id:dn.MEDIA_URL_EXPIRED,title:"Playback error",message:'We’re having trouble playing this video. Please reload the player and try again.',final:!1}),ScannerError:()=>({id:dn.SCANNER_ERROR,final:!1}),PlayerError:_n});const vn=e=>({onClick:e,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||e(t)}}),mn=function(e){return function(){for(var t=[],n=0;n{var i;return null!==(i=t[n])&&void 0!==i?i:e[n]};function gn(e,t){return!e||0===e.length||-1!==e.indexOf(t)}const En=e=>[Kt.main,Kt.privateUnlocked].includes(e),bn=(e,t)=>e&&(e.contains(t.target)||e===t.target),Cn=(...e)=>e.reduce((e,t)=>t?e?`${e} ${t}`:t:e,null),yn=(e=[],t)=>e.map(e=>(e.active=`${e.id}`===t,e)),Tn=e=>{let t=0,n=0;if(e){const{left:i,right:o}=mt(e),{borderLeftWidth:r,borderRightWidth:a}=window.getComputedStyle(e,"");t=i+parseInt(r,10),n=o-parseInt(a,10)}return{leftOffsetValue:t,rightOffsetValue:n}},Ln=e=>{let{clientX:t}=e;return e.targetTouches&&e.targetTouches.length>0&&(t=e.targetTouches[0].clientX,e.preventDefault()),t},An=(e,t)=>Math.max(e-t.startTime,0),Sn=(e,t)=>{const{startTime:n,endTime:i,duration:o}=t;return ei?1:An(e,t)/o},In=(e,t)=>{const{startTime:n,endTime:i}=t;return ei?1:(e-n)/(i-n)},On=(e,t=!0)=>{const n=100*(t?Tt(e,2):e);return`${Math.max(Math.min(n,100),0)}%`},Pn=(e,t)=>{const{startTime:n,duration:i}=t;return n+i*e},wn=(e,t)=>{const{duration:n}=t;return n*e||0},Rn=(e,t,n)=>(n-t)*e+t,Nn=(e,t,n)=>(e-t)/(n-t),kn=(e,t)=>e.filter(e=>{const n=e.startTime>=t.startTime&&e.startTime<=t.endTime,i=e.endTime>=t.startTime&&e.endTime<=t.endTime,o=e.startTime=t.endTime;return n||i||o});let Dn,Mn,Bn,Vn,xn,Un,Hn,Fn,Gn;!function(e){e.VP_PLAYER_UI_OVERLAYS="vp-player-ui-overlays",e.VP_PLAYER_UI_CONTAINER="vp-player-ui-container",e.VP_VIDEO_WRAPPER="vp-video-wrapper",e.VP_OVERLAY_WRAPPER="vp-overlay-wrapper",e.VP_OVERLAY_LABELLEDBY="vp-overlay-labelledby",e.VP_CONTROLS="vp-controls",e.VP_CHAPTER_BUTTON="vp-chapter-button",e.VP_CAST_BUTTON="vp-cast-button",e.VP_PREFS="vp-prefs",e.VP_INTERACTIVE_MARKER="vp-interactive-marker",e.VP_PROGRESS="vp-progress",e.VP_LIVE_STATUS="vp-live-status",e.VP_LIVE_STATUS_CIRCLE="vp-live-status-circle",e.VP_LIVE_VIEWER_COUNT="vp-live-viewer-count",e.VP_PIP_OVERLAY="vp-pip-overlay",e.VP_CAPTIONS="vp-captions",e.VP_MENU="vp-menu",e.VP_SPIN="vp-spin",e.VP_TOOLTIP="vp-tooltip",e.VP_SIDEDOCK="vp-sidedock",e.VP_BADGE="vp-badge",e.VP_TITLE="vp-title",e.VP_UNMUTE="vp-unmute",e.VP_ALERT="vp-alert",e.VP_CAPTIONS_LINE="vp-captions-line",e.VP_OUTRO_WRAPPER="vp-outro-wrapper",e.COMPASS_WRAPPER="compass-wrapper",e.STEREOSCOPIC="stereoscopic",e.VOD_BUTTON="vod-button",e.VOD_ICON="vod-icon",e.CC="cc",e.AIRPLAY="airplay",e.ON="on",e.PIP="pip",e.VOLUME="volume",e.CUSTOM_LOGO="custom-logo",e.FULLSCREEN="fullscreen",e.CUEPOINT="cuepoint",e.THUMB_PREVIEW="thumb-preview",e.THUMB="thumb",e.COLLECTIONS_BUTTON="collections-button",e.COLLECTIONS_ICON="collections-icon",e.LIKE_BUTTON="like-button",e.LIKE_ICON="like-icon",e.WATCH_LATER_BUTTON="watch-later-button",e.WATCH_LATER_ICON="watch-later-icon",e.FILL="fill",e.PIP_ICON="pip-icon",e.SHOWFOCUS="showfocus",e.ADS_WRAPPER="vp-ads-wrapper",e.ADS_TAG="vp-ads-tag",e.ADS_COUNTDOWN="vp-ads-countdown"}(Dn||(Dn={})),function(e){e.EXCLUDE_GLOBAL_BUTTON_STYLES="exclude-global-button-styles",e.ENTER_FULLSCREEN_ICON="enter-fullscreen-icon",e.EXIT_FULLSCREEN_ICON="exit-fullscreen-icon",e.TITLE_TAG="titleTag",e.CONTENT_AREA_BACKGROUND_CONTAINER="vp-content-area-background",e.REMOTE_ACCESS_GATE="vp-remote-access-gate"}(Mn||(Mn={})),function(e){e.RIGHT_CONTENT_AREA="right-content-area"}(Bn||(Bn={})),function(e){e.TRANSCRIPT_LIST="transcript-list",e.TRANSCRIPT_CUE_PREFIX="transcript-cue",e.TRANSCRIPT_MENU="transcript-menu",e.TRANSCRIPT_VIEWER="transcript-viewer",e.TRANSCRIPT_CONTROL_BAR_BUTTON="transcript-control-bar-button"}(Vn||(Vn={})),function(e){e.AI_WIDGET_ID="ai-widget"}(xn||(xn={})),function(e){e.QOE_SURVEY_TEXT="qoe-survey-text",e.REPLAY="replay",e.BROADCAST_OVER="broadcast-over"}(Un||(Un={})),function(e){e.TITLE_TEXT="title-text"}(Hn||(Hn={})),function(e){e.TEXT_TRACK_ID_PREFIX="telecine-track-"}(Fn||(Fn={})),function(e){e.EMPTY="empty",e.SHARE="share",e.HELP="help",e.ERROR="error",e.SPATIAL_REDIRECT="spatial-redirect",e.PRIVATE_LOCKED="private-locked",e.NOT_SUPPORTED="not-supported",e.INTERACTIVE="interactive"}(Gn||(Gn={}));const Yn=[Gn.HELP,Gn.SHARE,Gn.SPATIAL_REDIRECT],Wn=`.${Dn.VP_OVERLAY_WRAPPER}`,$n=e=>e.querySelector(Wn),qn=e=>{if(e){const t=$n(e);if(t&&!t.classList.contains("hidden")&&!t.classList.contains("out"))return!0}return!1},Kn=e=>{const t=$n(e);return t&&qn(e)?t.getAttribute("name"):Gn.EMPTY},jn=e=>Yn.includes(e),zn=e=>(e=>void 0!==e.settings)(e)?!e.settings.background&&0!==e.settings.controls:!e.background&&e.controls,Xn=e=>(Date.now()-e)/1e3,Zn=e=>Math.round(1e3*e),Qn=(e,t,n)=>{const i=String(e);return new Array(t-i.length+1).join(n||"0")+i},Jn=(e,t)=>{const n=Math.ceil(e)<0;e=Math.abs(e);var i=Math.floor(e/3600%60),o=Math.floor(e/60%60);if(e=Math.floor(e%60),t){var r=e+" second"+(1===e?"":"s");return o>0&&(r=o+" minute"+(1===o?"":"s")+", "+r),i>0&&(r=i+" hour"+(1===i?"":"s")+", "+r),r}return(n?"-":"")+(i>0?i+":":"")+Qn(o,2)+":"+Qn(e,2)};let ei,ti,ni;!function(e){e.ONE="--color-one",e.TWO="--color-two",e.THREE="--color-three",e.FOUR="--color-four",e.ONE_MONOCHROME="--color-one-monochrome",e.TWO_MONOCHROME="--color-two-monochrome",e.ONE_OPACITY_NINETY="--color-one-opacity-ninety",e.TWO_OPACITY_NINETY="--color-two-opacity-ninety",e.THREE_OPACITY_TWENTY="--color-three-opacity-twenty",e.ONE_MONOCHROME_OPACITY_TWENTY="--color-one-monochrome-opacity-twenty",e.TWO_MONOCHROME_OPACITY_TWENTY="--color-two-monochrome-opacity-twenty",e.ONE_MONOCHROME_OPACITY_SIXTY="--color-one-monochrome-opacity-sixty",e.ONE_MONOCHROME_OPACITY_TWENTY_EIGHTY="--color-one-monochrome-opacity-twenty-eighty",e.TWO_MONOCHROME_OPACITY_TWENTY_EIGHTY="--color-two-monochrome-opacity-twenty-eighty"}(ei||(ei={})),function(e){e[e.ZERO=0]="ZERO",e[e.TWENTY=.2]="TWENTY",e[e.TWENTY_FIVE=.25]="TWENTY_FIVE",e[e.FIFTY=.5]="FIFTY",e[e.SIXTY=.6]="SIXTY",e[e.SEVENTY_FIVE=.75]="SEVENTY_FIVE",e[e.EIGHTY=.8]="EIGHTY",e[e.NINETY=.9]="NINETY",e[e.ONE_HUNDRED=1]="ONE_HUNDRED"}(ti||(ti={})),function(e){e.LIGHT="light",e.DARK="dark"}(ni||(ni={}));const ii=(e="")=>4===(e=e.replace("#","")).length||8===e.length,oi=(e,t,n,i)=>{let o;try{o=new r(e)}catch(l){return""}const s=(e=>r.white.contrast(e).ratio>=4.5?ni.DARK:ni.LIGHT)(o);return n&&(o=a(s===ni.DARK?r.white:r.black)),null==t||i&&ii(e)?ii(e)?o.hexWithAlpha:o.hex:("object"==typeof t&&(t=t[s]),o.alpha=t,o.hexWithAlpha)},ri=e=>e.map(([e,t])=>((e,t)=>e+":"+t+";")(e,t)).join("\n"),ai=()=>{};function si(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function li(e,t){try{var n=e()}catch(ke){return t(ke)}return n&&n.then?n.then(void 0,t):n}const ci=function(e){return function(){for(var t=[],n=0;nsetTimeout(e,1e3)),(function(){let t;if(e instanceof Error){const n=e.message,i=null==n?void 0:n.split(" ").find(e=>e.includes("http"));t=new URL(i),t.searchParams.set("t",`${Date.now()}`)}return li((function(){return si(import(t.href))}),(function(){throw e}))}))}))}));let di,ui,_i,pi,vi,mi,fi,hi,gi,Ei,bi,Ci,yi,Ti,Li,Ai,Si;!function(e){e.CONNECTED="CONNECTED",e.CONNECTING="CONNECTING",e.NOT_CONNECTED="NOT_CONNECTED",e.NOT_SETUP="NOT_SETUP",e.NO_DEVICES_AVAILABLE="NO_DEVICES_AVAILABLE",e.SETUP_DONE="SETUP_DONE"}(di||(di={})),function(e){e.VimeoPlayer="VimeoPlayer",e.BackgroundPlayer="BackgroundPlayer",e.ChromelessPlayer="ChromelessPlayer",e.BarebonePlayer="BarebonePlayer"}(ui||(ui={})),function(e){e.NORMAL="normal",e.MINI="mini",e.TINY="tiny"}(_i||(_i={})),function(e){e[e.NONE=0]="NONE",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED",e[e.ERROR=3]="ERROR"}(pi||(pi={})),function(e){e[e.HAVE_NOTHING=0]="HAVE_NOTHING",e[e.HAVE_METADATA=1]="HAVE_METADATA",e[e.HAVE_CURRENT_DATA=2]="HAVE_CURRENT_DATA",e[e.HAVE_FUTURE_DATA=3]="HAVE_FUTURE_DATA",e[e.HAVE_ENOUGH_DATA=4]="HAVE_ENOUGH_DATA"}(vi||(vi={})),function(e){e.FIELD_MARKERS="markers",e.FIELD_CLIP_ID="clip_id",e.FIELD_PROFILE_ID="profile_id",e.FIELD_PLAYER_SIZE="player_size",e.FIELD_DROPPED_FRAMES="dropped_frames",e.FIELD_TOTAL_FRAMES="total_frames",e.FIELD_BANDWIDTH="bandwidth",e.FIELD_STREAMS="streams",e.FIELD_FILES="files",e.FIELD_VIDEO_DIMS="video_dims",e.FIELD_MIN_BANDWIDTH="min_bandwidth",e.FIELD_MAX_BANDWIDTH="max_badwidth",e.FIELD_BUFFER_OCCUPANCY="buffer_occupancy",e.FIELD_LIVE_LATENCY="live_latency",e.FIELD_SCANNERS="scanner",e.FIELD_VR_HEADSET="vr_headset"}(mi||(mi={})),function(e){e.AUTO="auto"}(fi||(fi={})),function(e){e.PRIVACY_PUBLIC="anybody",e.PRIVACY_NOBODY="nobody",e.PRIVACY_FOLLOW="contacts",e.PRIVACY_PASSWORD="password",e.PRIVACY_USER="users",e.PRIVACY_PURGATORY="purgatory",e.PRIVACY_HIDE_FROM_VIMEO="disable",e.PRIVACY_PAYTOVIEW="ptv",e.PRIVACY_PAYTOVIEWEXTRA="ptv_extra",e.PRIVACY_UNLISTED="unlisted",e.PRIVACY_STOCK="stock"}(hi||(hi={})),function(e){e.MEDIA_SOURCE_SCANNER="MediaSourceScanner",e.HLS_LIVE_SCANNER="HLSLiveScanner"}(gi||(gi={})),function(e){e.PLAY="play",e.PAUSE="pause",e.REPLAY="replay",e.TRAILER="trailer"}(Ei||(Ei={})),function(e){e.FONT_SIZE="fontSize",e.FONT_FAMILY="fontFamily",e.FONT_OPACITY="fontOpacity",e.COLOR="color",e.EDGE_STYLE="edgeStyle"}(bi||(bi={})),function(e){e.BG_OPACITY="bgOpacity",e.BG_COLOR="bgColor"}(Ci||(Ci={})),function(e){e.WINDOW_OPACITY="windowOpacity",e.WINDOW_COLOR="windowColor"}(yi||(yi={})),function(e){e[e.FONT_SIZE=bi.FONT_SIZE]="FONT_SIZE",e[e.FONT_FAMILY=bi.FONT_FAMILY]="FONT_FAMILY",e[e.FONT_OPACITY=bi.FONT_OPACITY]="FONT_OPACITY",e[e.COLOR=bi.COLOR]="COLOR",e[e.EDGE_STYLE=bi.EDGE_STYLE]="EDGE_STYLE",e[e.BG_OPACITY=Ci.BG_OPACITY]="BG_OPACITY",e[e.BG_COLOR=Ci.BG_COLOR]="BG_COLOR",e[e.WINDOW_OPACITY=yi.WINDOW_OPACITY]="WINDOW_OPACITY",e[e.WINDOW_COLOR=yi.WINDOW_COLOR]="WINDOW_COLOR"}(Ti||(Ti={})),function(e){e.CCMenu="c",e.PrefsMenu="h",e.Transcript="T"}(Li||(Li={})),function(e){e.SINGLE_VIDEO_VIEW_MANAGE="single_video_view_manage",e.SINGLE_VIDEO_VIEW_RECIPIENT="single_video_view_recipient",e.EMBEDDED_PAGE="embedded_page",e.CLIP_PAGE="clip_page",e.LIVE_EVENT_SETTINGS_PAGE="live_event_settings_page"}(Ai||(Ai={})),function(e){e[e.CacheMiss=0]="CacheMiss",e[e.MidCacheHit=1]="MidCacheHit",e[e.EdgeCacheHit=2]="EdgeCacheHit"}(Si||(Si={}));const{VIMEO_URL:Ii,SVV_RECIPIENT_URL:Oi,SVV_MANAGE_URL:Pi,CLIP_URL:wi,PROFILE_URL:Ri,VOD_URL:Ni,VOD_VIDEO_MANAGE_URL:ki,NO_DESTINATION:Di}={VIMEO_URL:"vimeoUrl",SVV_RECIPIENT_URL:"svvRecipientUrl",SVV_MANAGE_URL:"svvManageUrl",CLIP_URL:"clipUrl",PROFILE_URL:"profileUrl",VOD_URL:"vodUrl",VOD_VIDEO_MANAGE_URL:"vodVideoManageUrl",NO_DESTINATION:"noDestination"},Mi={"vimeo-logo":{viewer:{unlisted:wi,password:wi,disable:Ii,nobody:wi,anybody:wi,ptv:Ni,privateMode:Ii},creator:{unlisted:Pi,password:Pi,disable:Pi,nobody:Pi,anybody:Pi,ptv:ki,privateMode:Pi}},"video-title":{viewer:{unlisted:Oi,password:wi,disable:Ri,nobody:Pi,anybody:wi,ptv:Ni,privateMode:Ii},creator:{unlisted:Pi,password:Pi,disable:Pi,nobody:Pi,anybody:Pi,ptv:ki,privateMode:Pi}},"video-portrait":{viewer:{unlisted:Ri,password:Ri,disable:Ri,nobody:Ri,anybody:Ri,ptv:Ri,privateMode:Ii},creator:{unlisted:Ri,password:Ri,disable:Ri,nobody:Ri,anybody:Ri,ptv:ki,privateMode:Pi}},"video-byline":{viewer:{unlisted:Ri,password:Ri,disable:Ri,nobody:Ri,anybody:Ri,ptv:Ri,privateMode:Ii},creator:{unlisted:Ri,password:Ri,disable:Ri,nobody:Ri,anybody:Ri,ptv:ki,privateMode:Pi}},"chapter-share-base":{viewer:{unlisted:Oi,password:Di,disable:Di,nobody:Di,anybody:wi,ptv:Ni,privateMode:Di},creator:{unlisted:Oi,password:Di,disable:Di,nobody:Di,anybody:wi,ptv:Ni,privateMode:Di}}};function Bi(e={}){const t={selectDestination(e){const n=Mi[e];if(!n)return"";const i=t.isOwner?n.creator:n.viewer;return t.isPrivateMode?i.privateMode:i[t.videoPrivacy]},get[wi](){return zi(t[Ii],e)},get[Oi](){var n,i;return Zi(t[Ii],null==(n=e.video)?void 0:n.id,null==(i=e.video)?void 0:i.unlisted_hash)},get[Pi](){var n;return Xi(t[Ii],null==(n=e.video)?void 0:n.id)},get[Ii](){return`https://${e.vimeo_url}`},get[Ri](){var t,n;return null==(t=e.video)||null==(n=t.owner)?void 0:n.url},get[Ni](){var t,n;return null==(t=e.video)||null==(n=t.vod)?void 0:n.url},get[ki](){var t,n;return`https://${e.vimeo_url}/ondemand/${null==(t=e.video)||null==(n=t.vod)?void 0:n.id}/settings/basic`},get[Di](){return""},get videoPrivacy(){var t;return null==(t=e.video)?void 0:t.privacy},get isPrivateMode(){var t;return!!(null==(t=e.user)?void 0:t.private_mode_enabled)},get isOwner(){var t,n,i;return(null==(t=e.user)?void 0:t.id)===(null==(n=e.video)||null==(i=n.owner)?void 0:i.id)}};return t}function Vi(e,t){let n="";const i=Bi(t),o=i.selectDestination(e);return i[o]&&(n=i[o]),n}const xi=/^(%20|\s)*(javascript|data)/im,Ui=/[^\x20-\x7E]/gim,Hi=/^([^:]+):/gm,Fi=[".","/"];function Gi(e,t,n){Yi(e,t)||((e="")=>e.includes("?"))(e)&&(e+=`&${t}=`);const i=new RegExp("([?&])"+t+"=.*?(&|$)","i");return e.replace(i,"$1"+t+"="+n+"$2")}function Yi(e,t){return-1!==(null==e?void 0:e.indexOf(`?${t}=`))||-1!==(null==e?void 0:e.indexOf(`&${t}=`))}function Wi(e){return-1!==e.indexOf("VideoController")}function $i(e,t=window.location.href){const n=Bi(e),i=-1!==e.embed.context.indexOf("ClipController"),o=function(e,t){const n=Xi(t),i=function(e,t){return`${e}/manage/showcases/`}(t);return-1!==e.indexOf(n)||-1!==e.indexOf(i)}(t,n.vimeoUrl),r=Wi(e.embed.context)&&(-1!==t.indexOf(n.svvRecipientUrl)||t===n.clipUrl);return function(e,t){const n=function(e,t){return`${e}/live/broadcaster/event/`}(t),i=function(e,t){return`${e}/live/rtmp/event/`}(t);return-1!==e.indexOf(n)||-1!==e.indexOf(i)}(t,n.vimeoUrl)?Ai.LIVE_EVENT_SETTINGS_PAGE:o?Ai.SINGLE_VIDEO_VIEW_MANAGE:r?Ai.SINGLE_VIDEO_VIEW_RECIPIENT:i?Ai.CLIP_PAGE:Ai.EMBEDDED_PAGE}function qi(e,t,n){if(!e)return"";const[i]=e.split("#");return`${i}#t=${t}&end=${n}`}const Ki=e=>{const t=e.match(Hi);return null==t?void 0:t[0]},ji=e=>e?decodeURI(encodeURI((e=>{e=e.trim();const t=Ki(e);return e&&!t&&(e=`https://${e}`),e})((e=>{let t=e.replace(Ui,"");if((e=>Fi.indexOf(e[0])>-1)(t))return t;const n=Ki(t);return n&&xi.test(n)?"":t})(e)))):null,zi=(e,t)=>{var n,i;const o=null==(n=t.video)?void 0:n.id,r=null==(i=t.video)?void 0:i.unlisted_hash;return`${e}/${o}${r?"/"+r:""}`};function Xi(e,t){return`${e}/manage/videos/${null!=t?t:""}`}const Zi=(e,t,n)=>n?`${e}/${t}/${n}`:`${e}/${t}`;function Qi(e){return!(!o.browser.chromium||e.video.spatial||"stock"===e.video.privacy||"https:"!==window.location.protocol)}const Ji=s("Storage Access","color: #fff; background-color: #fc6203; padding: 2px; border-radius: 2px;"),eo=()=>o.storageAccessAPI;let to,no;function io(e){return e.video.ecdn?e.video.live_event?"vimeo-live-ecdn":"vimeo-vod-ecdn":l(e.embed.interactive)?e.request.flags.ott?"vimeo-ott-vod":e.video.live_event?"vimeo-live":e.embed.context&&-1!==e.embed.context.indexOf("Stock")?"vimeo-stock-vod":e.video.vod?"vimeo-ondemand":"vimeo-vod":"vimeo-interactive-vod"}!function(e){e.started="started",e.done="done",e.error="error"}(to||(to={})),function(e){e.pending="pending",e.active="active",e.started="started",e.ended="ended"}(no||(no={}));const oo=()=>{const[e,t,n]="4.39.41".split(".");return{full:"4.39.41",major:e,minor:t,patch:n}},ro=o.iPhone||o.mobileAndroid||o.windowsPhone||o.browser.bb10;function ao(){let e="desktop";return o.iPad?e="tablet":ro&&(e="mobile"),e}function so(){let e="windows";return o.iOS?e="iOS":o.android?e="android":o.mac?e="macOS":o.windowsPhone&&(e="windowsPhone"),e}function lo(e){var t;const{user:n,video:i}=e;let o="viewer";return n.team_id&&(o=n.id===n.team_origin_user_id?"admin":"contributor"),n.id===(null==(t=i.owner)?void 0:t.id)&&(o="owner"),o}function co(e,t){return e===t?"square":t>e?"portrait":"landscape"}function uo(e){return(null==e?void 0:e.status)===no.ended?"ended":(null==e?void 0:e.status)===no.started?"streaming":(null==e?void 0:e.status)===no.pending?"unavailable":"unknown"}function _o(e){return e.live_event?"live_event":"other"}function po(e){var t;return(null==e?void 0:e.length)&&(null==(t=e.find(e=>e.is_current))?void 0:t.id)||null}function vo(e){return e===hi.PRIVACY_PUBLIC?"public":e===hi.PRIVACY_PASSWORD?"password":e===hi.PRIVACY_UNLISTED?"unlisted":e===hi.PRIVACY_HIDE_FROM_VIMEO?"hide_from_vimeo":"private"}var mo;function fo(e){const t=e.akamai_request_bc,n=e.x_cache;return t?function(e){return e.includes(mo.Origin)?Si.CacheMiss:e.includes(mo.Peer)||e.includes(mo.ParentCache)||e.includes(mo.CloudWrapper)?Si.MidCacheHit:Si.EdgeCacheHit}(t):n?function(e){return"HIT"===e.substr(0,3)?Si.MidCacheHit:"HIT"===e.substr(-3)?Si.EdgeCacheHit:Si.CacheMiss}(n):Si.CacheMiss}!function(e){e.Origin="c=o",e.Peer="c=p",e.ParentCache="c=c",e.CloudWrapper="c=w"}(mo||(mo={}));const ho=(e,t)=>e.split("/").slice(4).join("/"),go=e=>e.split("/")[4],Eo=(e,t)=>function(n){try{const{type:i,url:o}=n;return i&&o&&o.includes(e)&&(i===_.MANIFEST||i===_.SEGMENT)?p(n,t):null}catch(ke){return Promise.reject(ke)}},bo=()=>{var e;const t=u(window,"_hiveStats",{cdnResponseBytes:0,p2pResponseBytes:0,partners:{}}),{cdnResponseBytes:n,p2pResponseBytes:i,partners:o}=t;return{ecdnBytesByCdn:n,ecdnBytesPeered:i,ecdnPeers:(null!==(e=Object.keys(o))&&void 0!==e?e:[]).length}},Co=()=>{const e=u(window,"_kollectiveStats",{originBytes:0,ecdnBytes:0,currentPeerConnections:0}),{originBytes:t,ecdnBytes:n,currentPeerConnections:i}=e;return{ecdnBytesByCdn:t,ecdnBytesPeered:n,ecdnPeers:i}},yo=e=>{const t={hive:bo,kollective:Co};return t[e]?t[e]():{ecdnBytesByCdn:0,ecdnBytesPeered:0,ecdnPeers:0}},To=({newPriority:e,currentPriority:t,priorityOrder:n})=>{const i=n.indexOf(t),o=n.indexOf(e);return-1===i||-1===o||i>o},Lo=function(e){return function(){for(var t=[],n=0;n{if(!o.intersectionObserver)return void t();const n=new IntersectionObserver((function(e){const[i]=e;(null==i?void 0:i.isIntersecting)&&(t(),n.disconnect())}),{threshold:.5});n.observe(e)})}));function Ao(e){return(null==e?void 0:e.parentElement)===document.body}const So=()=>{try{return window.self!==window.top}catch(ke){return!0}};function Io(e,t){const[n,i]=t;let o=i-n;for(var r,a=v(e);!(r=a()).done;){const e=r.value,[t,a]=e,s=Math.max(n,t),l=Math.min(i,a);o-=Math.max(0,l-s)}return Math.max(o,0)}function Oo(e){return Zn(Tt(e,3))}const Po=e=>{var t;const n=null==e||null==(t=e.ingest)?void 0:t.start_time;if(!n)return 12e3;const i=12e3-(Date.now()-n);return Math.min(Math.max(i,0),12e3)},wo=e=>!!e&&e.status===no.started&&0===Po(e);function Ro(e){return!0===e||!1===e?Number(e):"null"===e?null:e}function No(e,t=document.cookie){try{if(t&&""!==t)return t.split(";").reduce((function(t,n){return 0===(n=n.trim()).indexOf(`${e}=`)?decodeURIComponent(n.substr(e.length+1)):t}),null)}catch(ke){}return null}let ko,Do,Mo;!function(e){e.EMPTY="empty",e.LEAD_CAPTURE_FORM="lead_capture_form"}(ko||(ko={})),function(e){e.BEFORE_VIDEO="before_video",e.DURING_VIDEO="during_video",e.AFTER_VIDEO="after_video"}(Do||(Do={})),function(e){e.OPENED="access_gate_opened",e.CLOSED="access_gate_closed",e.ERROR="access_gate_error"}(Mo||(Mo={}));const Bo={[ko.LEAD_CAPTURE_FORM]:[Kt.main,Kt.privateUnlocked]},Vo=(Mn.REMOTE_ACCESS_GATE,(e,t)=>{const i=t.vimeo_url;let o={lc_param_session_id:t.request.session};return t.video.unlisted_hash&&(o.lc_param_unlisted_hash=t.video.unlisted_hash),t.request.hashed_password&&(o.lc_param_password=t.request.hashed_password),n(`https://${i}${e}`,o)}),xo=(e,t,n=null)=>{switch(e){case ko.LEAD_CAPTURE_FORM:return{purpose:e,url:Vo(`/leadcapture/video/${t.video.id}/form`,t),title:"Lead Capture Form",gateId:n};default:return{purpose:ko.EMPTY,url:"",title:"",gateId:n}}},Uo=(e,t)=>{if(e===ko.LEAD_CAPTURE_FORM){var n;let e=(e=>"lc_"+e.video.id)(t),i=No(e);return i||(e=(e=>{const{id:t,unlisted_hash:n}=e.video;return"lc_"+((e,t=0)=>{let n=3735928559^t,i=1103547991^t;for(let o,r=0;r>>16,2246822507),n^=Math.imul(i^i>>>13,3266489909),i=Math.imul(i^i>>>16,2246822507),i^=Math.imul(n^n>>>13,3266489909),(4294967296*(2097151&i)+(n>>>0)).toString()})(n?`${t}:${n}`:`${t}`)})(t),i=No(e),null!==(n=i)&&void 0!==n?n:"")}return""},Ho=(e,t)=>!!Uo(e,t);function Fo(e){var t;const n=Uo(ko.LEAD_CAPTURE_FORM,e);var i,o;return(null==(t=e.user)?void 0:t.lead)?{leadUuid:(null==(i=e.user.lead)?void 0:i.id)||n,contentType:null==(o=e.user.lead)?void 0:o.type}:n?{leadUuid:n}:{}}let Go;!function(e){e.NOT_LOGGED_IN="not_logged_in",e.LOGGED_IN_STORAGE_ACCESS_REQUIRED="logged_in_storage_access_required",e.STORAGE_ACCESS_GRANTED_LOGIN_UNCONFIRMED="storage_access_granted_login_unconfirmed",e.ALL_ACCESS_ATTEMPTS_FAILED="all_access_attempts_failed",e.LOGGED_IN_NO_ACCESS="logged_in_no_access",e.LOGGED_IN_HAS_ACCESS="logged_in_has_access"}(Go||(Go={}));const Yo={storageAccessRequired:eo,requestCookieAccess:e=>new Promise((t,n)=>document.requestStorageAccess().then(()=>{Ji("User granted storage access"),t(!0)},()=>{e(),Ji("User storage access denied:"),t(!1)}).catch(n))};function Wo(e,t,n){return e/t*n}function $o(e=""){try{const t=null==e?void 0:e.split(".")[1],n=JSON.parse(atob(t)).exp;return f(n)>=0}catch(ke){throw new Error("Failed to parse PHP token.")}}const qo=(e,t)=>!e.isLive()||t;let Ko;!function(e){e.IMAGE="image",e.STATIC_IMAGE="static-image",e.VOD="vod",e.LINK="link",e.NOTHING="nothing",e.BLANK="blank",e.SHARE="share",e.TEXT="text",e.BEGINNING="beginning",e.VIDEOS="videos",e.THREEVIDEOS="threevideos",e.PROMOTED="promoted",e.APP_REDIRECT="app-redirect"}(Ko||(Ko={}));const jo=[Ko.TEXT,Ko.NOTHING,Ko.IMAGE,Ko.VIDEOS,Ko.THREEVIDEOS,Ko.PROMOTED,Ko.LINK,Ko.SHARE],zo=(e,t)=>!(e===Ko.VOD&&null!=t&&t.new_vod_outro||jo.includes(e));let Xo,Zo,Qo,Jo,er,tr,nr,ir,or,rr;!function(e){e.XXS="xxs",e.XS="xs",e.SM="sm",e.MD="md",e.LG="lg",e.XL="xl",e.XXL="xxl"}(Xo||(Xo={})),function(e){e.MD="md",e.SM="sm",e.XS="xs",e.CUSTOM="custom"}(Zo||(Zo={})),function(e){e.PRIMARY="primary",e.ALTERNATIVE="alternative",e.CUSTOM="custom"}(Qo||(Qo={})),function(e){e.LEFT="left",e.RIGHT="right"}(Jo||(Jo={})),function(e){e.RESET="reset",e.BUTTON="button",e.SUBMIT="submit"}(er||(er={})),function(e){e.SM="sm",e.MD="md",e.LG="lg",e.XL="xl"}(tr||(tr={})),function(e){e.NORMAL="normal",e.BOLD="bold",e[e.NUM_500=500]="NUM_500"}(nr||(nr={})),function(e){e.CUSTOM="custom",e.WHITE="white"}(ir||(ir={})),function(e){e.SM="sm",e.LG="lg"}(or||(or={})),function(e){e.FULL_CONTROLS="full-controls",e.VOLUME_SLIDER="volume-slider",e.PROGRESS_BAR="progress-bar",e.SIDE_DOCK_MENU="side-dock-menu"}(rr||(rr={}));const ar=(e,t,n)=>{switch(e){case rr.FULL_CONTROLS:case rr.VOLUME_SLIDER:return t!==_i.MINI&&t!==_i.TINY&&n!==Xo.XXS;case rr.PROGRESS_BAR:return t!==_i.TINY;case rr.SIDE_DOCK_MENU:return t===_i.MINI||t===_i.TINY||n===Xo.XXS||n===Xo.XS;default:return!1}};function sr(e){return 1===e}function lr(e){return Object.keys(e).reduce((t,n)=>h(h({},t),{},{[n]:sr(e[n])}),{})}const cr=!!window.newrelic&&"function"==typeof window.newrelic.addToTrace&&"function"==typeof window.newrelic.noticeError&&"function"==typeof window.newrelic.setErrorHandler&&"function"==typeof window.newrelic.setCustomAttribute,dr=["chrome-extension:","moz-extension:"].includes(document.location.protocol),ur=Date.now(),_r=["NotAllowedError","AbortError","PlayInterrupted","Failed to load image","window.__withBuiltIn is not a function","window.__timeSinceLastTimeout is not a function","div:has(> iframe[id=","No cast extension found","Cast is not available on this browser.","Object Not Found Matching Id:"],pr=!!window.DD_RUM&&"function"==typeof window.DD_RUM.setViewContextProperty&&"function"==typeof window.DD_RUM.setGlobalContextProperty&&"function"==typeof window.DD_RUM.addError&&"function"==typeof window.DD_RUM.addAction;let vr,mr,fr;!function(e){e.WEB_GLOBAL="vimeo.web_global",e.COPY_VIDEO_EMBED_CODE="workflow.copy_video_embed_code",e.PLAYER_PERFORMANCE_MEASUREMENT="vimeo.player_performance_measurement",e.CHAPTER_SEGMENT_CLICK="vimeo.chapter_segment_click",e.CLICK="vimeo.click",e.TIMING_OBJECT_CONNECT="vimeo.timing_object_connect",e.TIMING_OBJECT_DISCONNECT="vimeo.timing_object_disconnect",e.EMBEDDED_TRANSCRIPT_CLICK="vimeo.embedded_transcript_click",e.CLOSED_CAPTIONS_CLICK="vimeo.closed_captions_click",e.MULTI_AUDIO_TRACK_CLICK="vimeo.multi_audio_track_click",e.VIEW_PLAYER_CSAT_V1="vimeo.view_player_csat_v1",e.SELECT_THUMBS_UP_PLAYER_CSAT_V1="vimeo.select_thumbs_up_player_csat_v1",e.SELECT_THUMBS_DOWN_PLAYER_CSAT_V1="vimeo.select_thumbs_down_player_csat_v1",e.DISMISS_PLAYER_CSAT_V1="vimeo.dismiss_player_csat_v1",e.DVR_MODE_ENTERED="vimeo.dvr_mode_entered",e.SEEK_BEHIND_LIVE_EDGE="vimeo.seek_behind_live_edge",e.SKIP_TO_LIVE_CLICK="vimeo.skip_to_live_click",e.SEEK_TO_LIVE_EDGE="vimeo.seek_to_live_edge",e.PLAY_VIDEO="vimeo.play_video",e.FINISH_VIDEO="vimeo.finish_video",e.START_VIDEO_SCRUB="vimeo.start_video_scrub",e.END_VIDEO_SCRUB="vimeo.end_video_scrub",e.WATCH_VIDEO_HEARTBEAT="vimeo.watch_video_heartbeat",e.EMBED_SEGMENT="vimeo.embed_segment",e.PLAY_SEGMENT="vimeo.play_segment",e.WATCH_FULL_VIDEO="vimeo.watch_full_video",e.SEEK_INSIDE_SEGMENT="vimeo.seek_inside_segment",e.SHARE_CHAPTER="vimeo.share_chapter",e.CHAPTER_PLAYED="vimeo.chapter_played",e.OPEN_AI_OPTIONS="vimeo.open_ai_options",e.PROCESS_STEP="vimeo.process_step",e.REMOTE_COMPONENT_LOADED="vimeo.remote_component_loaded",e.REMOTE_COMPONENT_TIMEOUT="vimeo.remote_component_timeout",e.REACH_TIME_ACTION="vimeo.reach_time_action",e.VIEW_HOTSPOT="vimeo.view_hotspot",e.CLICK_HOTSPOT="vimeo.click_hotspot",e.VIEW_OVERLAY="vimeo.view_overlay",e.CLOSE_OVERLAY="vimeo.close_overlay",e.CLICK_OVERLAY="vimeo.click_overlay",e.VIEW_POLL="vimeo.view_poll",e.VOTE_POLL="vimeo.vote_poll"}(vr||(vr={})),function(e){e.TEAM="team_context",e.ACTION="action_context",e.VIEW="view_context",e.WEB="web_context",e.VIDEO="video_context",e.PLAYER="player_context",e.LIVE="live_context",e.PRODUCT_ANALYTICS="product_analytics_context",e.TARGET_TEAM="target_team_context",e.USER_FACING_VIDEO_ANALYTICS="user_facing_video_analytics_context",e.THIRD_PARTY_INTEGRATION="third_party_integration_context"}(mr||(mr={})),function(e){e[e.WEB_GLOBAL=5]="WEB_GLOBAL",e[e.COPY_VIDEO_EMBED_CODE=5]="COPY_VIDEO_EMBED_CODE",e[e.PLAYER_PERFORMANCE_MEASUREMENT=1]="PLAYER_PERFORMANCE_MEASUREMENT",e[e.CHAPTER_SEGMENT_CLICK=2]="CHAPTER_SEGMENT_CLICK",e[e.CLICK=83]="CLICK",e[e.TIMING_OBJECT_CONNECT=1]="TIMING_OBJECT_CONNECT",e[e.TIMING_OBJECT_DISCONNECT=1]="TIMING_OBJECT_DISCONNECT",e[e.EMBEDDED_TRANSCRIPT_CLICK=6]="EMBEDDED_TRANSCRIPT_CLICK",e[e.CLOSED_CAPTIONS_CLICK=2]="CLOSED_CAPTIONS_CLICK",e[e.MULTI_AUDIO_TRACK_CLICK=1]="MULTI_AUDIO_TRACK_CLICK",e[e.PLAY_VIDEO=2]="PLAY_VIDEO",e[e.FINISH_VIDEO=2]="FINISH_VIDEO",e[e.START_VIDEO_SCRUB=2]="START_VIDEO_SCRUB",e[e.END_VIDEO_SCRUB=1]="END_VIDEO_SCRUB",e[e.WATCH_VIDEO_HEARTBEAT=2]="WATCH_VIDEO_HEARTBEAT",e[e.EMBED_SEGMENT=1]="EMBED_SEGMENT",e[e.PLAY_SEGMENT=1]="PLAY_SEGMENT",e[e.WATCH_FULL_VIDEO=1]="WATCH_FULL_VIDEO",e[e.SEEK_INSIDE_SEGMENT=1]="SEEK_INSIDE_SEGMENT",e[e.SHARE_CHAPTER=1]="SHARE_CHAPTER",e[e.CHAPTER_PLAYED=1]="CHAPTER_PLAYED",e[e.OPEN_AI_OPTIONS=4]="OPEN_AI_OPTIONS",e[e.PROCESS_STEP=1]="PROCESS_STEP",e[e.REMOTE_COMPONENT_LOADED=1]="REMOTE_COMPONENT_LOADED",e[e.REMOTE_COMPONENT_TIMEOUT=1]="REMOTE_COMPONENT_TIMEOUT",e[e.REACH_TIME_ACTION=1]="REACH_TIME_ACTION",e[e.VIEW_HOTSPOT=1]="VIEW_HOTSPOT",e[e.CLICK_HOTSPOT=1]="CLICK_HOTSPOT",e[e.VIEW_OVERLAY=1]="VIEW_OVERLAY",e[e.CLOSE_OVERLAY=1]="CLOSE_OVERLAY",e[e.CLICK_OVERLAY=1]="CLICK_OVERLAY",e[e.VIEW_POLL=1]="VIEW_POLL",e[e.VOTE_POLL=1]="VOTE_POLL",e[e.TEAM=5]="TEAM",e[e.ACTION=5]="ACTION",e[e.VIEW=3]="VIEW",e[e.WEB=25]="WEB",e[e.VIDEO=10]="VIDEO",e[e.PLAYER=5]="PLAYER",e[e.LIVE=6]="LIVE",e[e.PRODUCT_ANALYTICS=41]="PRODUCT_ANALYTICS",e[e.TARGET_TEAM=6]="TARGET_TEAM",e[e.USER_FACING_VIDEO_ANALYTICS=2]="USER_FACING_VIDEO_ANALYTICS",e[e.THIRD_PARTY_INTEGRATION=5]="THIRD_PARTY_INTEGRATION",e[e.DEFAULT=-1]="DEFAULT"}(fr||(fr={}));const hr={[vr.WEB_GLOBAL]:fr.WEB_GLOBAL,[vr.COPY_VIDEO_EMBED_CODE]:fr.COPY_VIDEO_EMBED_CODE,[vr.PLAYER_PERFORMANCE_MEASUREMENT]:fr.PLAYER_PERFORMANCE_MEASUREMENT,[vr.CHAPTER_SEGMENT_CLICK]:fr.CHAPTER_SEGMENT_CLICK,[vr.CLICK]:fr.CLICK,[vr.TIMING_OBJECT_CONNECT]:fr.TIMING_OBJECT_CONNECT,[vr.TIMING_OBJECT_DISCONNECT]:fr.TIMING_OBJECT_DISCONNECT,[vr.EMBEDDED_TRANSCRIPT_CLICK]:fr.EMBEDDED_TRANSCRIPT_CLICK,[vr.CLOSED_CAPTIONS_CLICK]:fr.CLOSED_CAPTIONS_CLICK,[vr.MULTI_AUDIO_TRACK_CLICK]:fr.MULTI_AUDIO_TRACK_CLICK,[vr.VIEW_PLAYER_CSAT_V1]:fr.DEFAULT,[vr.SELECT_THUMBS_UP_PLAYER_CSAT_V1]:fr.DEFAULT,[vr.SELECT_THUMBS_DOWN_PLAYER_CSAT_V1]:fr.DEFAULT,[vr.DISMISS_PLAYER_CSAT_V1]:fr.DEFAULT,[vr.DVR_MODE_ENTERED]:fr.DEFAULT,[vr.SEEK_BEHIND_LIVE_EDGE]:fr.DEFAULT,[vr.SKIP_TO_LIVE_CLICK]:fr.DEFAULT,[vr.SEEK_TO_LIVE_EDGE]:fr.DEFAULT,[vr.PLAY_VIDEO]:fr.PLAY_VIDEO,[vr.FINISH_VIDEO]:fr.FINISH_VIDEO,[vr.START_VIDEO_SCRUB]:fr.START_VIDEO_SCRUB,[vr.END_VIDEO_SCRUB]:fr.END_VIDEO_SCRUB,[vr.WATCH_VIDEO_HEARTBEAT]:fr.WATCH_VIDEO_HEARTBEAT,[vr.EMBED_SEGMENT]:fr.EMBED_SEGMENT,[vr.PLAY_SEGMENT]:fr.PLAY_SEGMENT,[vr.WATCH_FULL_VIDEO]:fr.WATCH_FULL_VIDEO,[vr.SEEK_INSIDE_SEGMENT]:fr.SEEK_INSIDE_SEGMENT,[vr.SHARE_CHAPTER]:fr.SHARE_CHAPTER,[vr.CHAPTER_PLAYED]:fr.CHAPTER_PLAYED,[vr.OPEN_AI_OPTIONS]:fr.OPEN_AI_OPTIONS,[vr.PROCESS_STEP]:fr.PROCESS_STEP,[vr.REMOTE_COMPONENT_LOADED]:fr.REMOTE_COMPONENT_LOADED,[vr.REMOTE_COMPONENT_TIMEOUT]:fr.REMOTE_COMPONENT_TIMEOUT,[vr.REACH_TIME_ACTION]:fr.REACH_TIME_ACTION,[vr.VIEW_HOTSPOT]:fr.VIEW_HOTSPOT,[vr.CLICK_HOTSPOT]:fr.CLICK_HOTSPOT,[vr.VIEW_OVERLAY]:fr.VIEW_OVERLAY,[vr.CLOSE_OVERLAY]:fr.CLOSE_OVERLAY,[vr.CLICK_OVERLAY]:fr.CLICK_OVERLAY,[vr.VIEW_POLL]:fr.VIEW_POLL,[vr.VOTE_POLL]:fr.VOTE_POLL,[mr.TEAM]:fr.TEAM,[mr.ACTION]:fr.ACTION,[mr.VIEW]:fr.VIEW,[mr.WEB]:fr.WEB,[mr.VIDEO]:fr.VIDEO,[mr.PLAYER]:fr.PLAYER,[mr.LIVE]:fr.LIVE,[mr.PRODUCT_ANALYTICS]:fr.PRODUCT_ANALYTICS,[mr.USER_FACING_VIDEO_ANALYTICS]:fr.USER_FACING_VIDEO_ANALYTICS,[mr.TARGET_TEAM]:fr.TARGET_TEAM,[mr.THIRD_PARTY_INTEGRATION]:fr.THIRD_PARTY_INTEGRATION},gr=[mr.PLAYER,mr.VIDEO,mr.WEB,mr.TEAM],Er=[mr.TEAM,mr.VIDEO,mr.LIVE,mr.PRODUCT_ANALYTICS,mr.USER_FACING_VIDEO_ANALYTICS,mr.TARGET_TEAM,mr.THIRD_PARTY_INTEGRATION],br={[vr.VIEW_PLAYER_CSAT_V1]:[].concat(gr,[mr.VIEW]),[vr.SELECT_THUMBS_UP_PLAYER_CSAT_V1]:[].concat(gr,[mr.ACTION]),[vr.SELECT_THUMBS_DOWN_PLAYER_CSAT_V1]:[].concat(gr,[mr.ACTION]),[vr.DISMISS_PLAYER_CSAT_V1]:[].concat(gr,[mr.ACTION]),[vr.DVR_MODE_ENTERED]:[].concat(gr,[mr.VIEW,mr.LIVE,mr.PRODUCT_ANALYTICS]),[vr.SEEK_BEHIND_LIVE_EDGE]:[].concat(gr,[mr.ACTION,mr.LIVE,mr.PRODUCT_ANALYTICS]),[vr.SKIP_TO_LIVE_CLICK]:[].concat(gr,[mr.ACTION,mr.LIVE,mr.PRODUCT_ANALYTICS]),[vr.SEEK_TO_LIVE_EDGE]:[].concat(gr,[mr.ACTION,mr.LIVE,mr.PRODUCT_ANALYTICS]),[vr.PLAY_VIDEO]:[].concat(gr,[mr.ACTION,mr.LIVE,mr.PRODUCT_ANALYTICS,mr.TARGET_TEAM,mr.USER_FACING_VIDEO_ANALYTICS]),[vr.FINISH_VIDEO]:[].concat(gr,[mr.ACTION,mr.LIVE,mr.PRODUCT_ANALYTICS,mr.TARGET_TEAM,mr.USER_FACING_VIDEO_ANALYTICS]),[vr.START_VIDEO_SCRUB]:[].concat(gr,[mr.ACTION,mr.LIVE,mr.PRODUCT_ANALYTICS,mr.TARGET_TEAM,mr.USER_FACING_VIDEO_ANALYTICS]),[vr.END_VIDEO_SCRUB]:[].concat(gr,[mr.ACTION,mr.LIVE,mr.PRODUCT_ANALYTICS,mr.TARGET_TEAM,mr.USER_FACING_VIDEO_ANALYTICS]),[vr.WATCH_VIDEO_HEARTBEAT]:[].concat(gr,[mr.ACTION,mr.LIVE,mr.PRODUCT_ANALYTICS,mr.TARGET_TEAM,mr.USER_FACING_VIDEO_ANALYTICS]),[vr.WATCH_FULL_VIDEO]:[].concat(gr,[mr.ACTION,mr.PRODUCT_ANALYTICS]),[vr.SEEK_INSIDE_SEGMENT]:[].concat(gr,[mr.ACTION,mr.PRODUCT_ANALYTICS]),[vr.SHARE_CHAPTER]:[].concat(gr,[mr.ACTION,mr.PRODUCT_ANALYTICS]),[vr.CHAPTER_PLAYED]:[].concat(gr,[mr.ACTION,mr.PRODUCT_ANALYTICS]),[vr.EMBED_SEGMENT]:[].concat(gr,[mr.VIEW,mr.PRODUCT_ANALYTICS]),[vr.PLAY_SEGMENT]:[].concat(gr,[mr.ACTION,mr.PRODUCT_ANALYTICS]),[vr.OPEN_AI_OPTIONS]:[mr.TEAM,mr.ACTION,mr.PRODUCT_ANALYTICS,mr.WEB,mr.VIDEO],[vr.PROCESS_STEP]:[].concat(gr,[mr.ACTION,mr.PRODUCT_ANALYTICS]),[vr.REMOTE_COMPONENT_LOADED]:[].concat(gr,[mr.ACTION,mr.PRODUCT_ANALYTICS,mr.THIRD_PARTY_INTEGRATION]),[vr.REMOTE_COMPONENT_TIMEOUT]:[].concat(gr,[mr.ACTION,mr.PRODUCT_ANALYTICS,mr.THIRD_PARTY_INTEGRATION]),[vr.REACH_TIME_ACTION]:[].concat(Er,[mr.VIEW]),[vr.VIEW_HOTSPOT]:[].concat(Er,[mr.VIEW]),[vr.CLICK_HOTSPOT]:[].concat(Er,[mr.ACTION]),[vr.VIEW_OVERLAY]:[].concat(Er,[mr.VIEW]),[vr.CLOSE_OVERLAY]:[].concat(Er,[mr.ACTION]),[vr.CLICK_OVERLAY]:[].concat(Er,[mr.ACTION]),[vr.VIEW_POLL]:[].concat(Er,[mr.VIEW]),[vr.VOTE_POLL]:[].concat(Er,[mr.ACTION])};let Cr;function yr(t,n){let i,r=null,a=null,s=null,l=null,c=0,d=0,u=[],_=!1,p=!1,v=!1,m=0,f=0,C=g(),y=!0,T=!0;function L(){w(),n(vr.PLAY_VIDEO,t.config,R(vr.PLAY_VIDEO)),l=s}function A(){t.backbone.seeking||(_=!1,I(),n(vr.FINISH_VIDEO,t.config,R(vr.FINISH_VIDEO)),T=!1,P())}function S(){_&&p&&!v&&(p=!1,w(),n(vr.END_VIDEO_SCRUB,t.config,R(vr.END_VIDEO_SCRUB)),l=s,O())}function I(){let e=m;(t.backbone.seeking||v)&&(e=f),s=Tt(e,3),c&&(n(vr.WATCH_VIDEO_HEARTBEAT,t.config,function(){const e=R(vr.WATCH_VIDEO_HEARTBEAT);return h(h({},e),{},{log_view_time:c,log_view_time_excluding_repeats:Math.min(d,c),previous_log_end_time:l,is_first_log:y})}()),c=0,d=0,y=!1,l=s)}function O(){i||(i=setInterval(I,1e4))}function P(){clearInterval(i),i=null}function w(){const e=Tt(Zn(t.currentTime),3);r?r++:r=1,a=e,s=e,c=0,d=0,f=e,C=g()}function R(e){let n;switch(e){case vr.FINISH_VIDEO:n={session_segment_id:r,segment_start_time:a,log_end_time:s,is_first_log:T};break;case vr.PLAY_VIDEO:n={session_segment_id:r,segment_start_time:a,log_end_time:s,video_duration_ms:Oo(t.config.video.duration)};break;default:n={session_segment_id:r,segment_start_time:a,log_end_time:s}}return n}t.events.on(E.PLAY,(function(){if(O(),!_)if(_=!0,t.backbone.isLive()){const e=({currentTime:n})=>{0!==n&&(L(),t.events.off(E.TIME_UPDATE,e))};t.events.on(E.TIME_UPDATE,e)}else L()})),t.events.on(E.PAUSE,(function(){t.backbone.ended||t.backbone.seeking||v||(I(),P())})),t.events.on(E.SEEKING,(function(){_&&!p&&(p=!0,I(),n(vr.START_VIDEO_SCRUB,t.config,R(vr.START_VIDEO_SCRUB)),P())})),t.events.on(E.SEEKED,b(S,750)),t.events.on(E.ENDED,A),t.events.on(E.TIME_UPDATE,(function(){if(t.backbone.seeking)return;const n=Zn(Tt(t.currentTime,3)),i=v?f:n;let r=Math.round(i-f);const s=g();if(r=function(e,n,i){const o=t.backbone.playbackRate||1,r=C||i,a=Math.round((i-r)*o),s=Math.max(a,0),l=Oo(t.config.video.duration);return!t.backbone.isLive()&&l&&n>l||s&&e>1.3*s?Math.min(e,s):e}(r,i,s),r<=0)return;m=i;const l=[a,i];if(c+=r,o.iOS&&t.backbone.isLive()){d+=Tt(Io(u,l),3);const t=function(e,t){const[n,i]=t;return e.map((e,t)=>{const[o,r]=e;return n>=o&&n<=r||i>=o&&i<=r||o<=n&&r>=i||n<=o&&i>=r?t:null}).filter(e=>null!==e)}(u,l);u=function(t,n,i){const[o,r]=n;let a;if(i.length)a=Math.min.apply(Math,e(i));else{const e=t.findIndex(e=>ot[e][0])))),Math.max.apply(Math,[r].concat(e(i.map(e=>t[e][1]))))];return s.splice(a,i.length,l),s}(u,l,t)}else{const e=t.backbone.played;d+=Tt(Io(u,l),3),u=function(e){const t=e.length,n=[];for(let i=0;i=Oo(t.config.video.duration)-300){A();const e=()=>{t.currentTime>=0&&(t.events.off(E.TIME_UPDATE,e),L())};t.events.on(E.TIME_UPDATE,e)}}(m)})),t.events.on(Wt._scrubbingStarted,(function(){v=!0})),t.events.on(Wt._scrubbingEnded,(function(){v=!1,p&&S()})),t.events.on(Wt._configChanged,e=>{e&&(P(),r=null,a=null,s=null,l=null,c=0,d=0,u=[],_=!1,p=!1,v=!1,m=0,f=0,C=g(),T=!0,y=!0)}),window.addEventListener("pagehide",(function(){I()}))}!function(e){e.WORKFLOW="Workflow",e.PLAYBACK="Playback"}(Cr||(Cr={}));let Tr={transcriptId:null,transcriptStartTime:null,transcriptDefaultLanguage:null,currentTime:null,leadUuid:null,contentType:null,playerBreakpoint:null,playerWidth:0,playerHeight:0},Lr=function(){function e(e){this.player=e,this._configure(),this._setupEventListeners()}var t=e.prototype;return t._configure=function(){const e=this._getBPService(),t=Ir(vr.WEB_GLOBAL,this.player.config),n=new C.Configuration(e,t,null,this.player.config.request.urls.telemetry_base);C.BigPictureClient.configure(n)},t._setupEventListeners=function(){Ar(h({playerBreakpoint:this.player.store.get("ui.player.breakpoint"),playerWidth:this.player.store.get("ui.player.width"),playerHeight:this.player.store.get("ui.player.height")},Fo(this.player.config))),this.player.events.on(E.TIME_UPDATE,({currentTime:e})=>{Ar({currentTime:e})}),this.player.events.on(Wt._transcriptSessionStarted,({id:e,startTime:t,defaultLanguage:n})=>{Ar({transcriptId:e,transcriptStartTime:t,transcriptDefaultLanguage:n})}),this.player.events.on(Wt._accessGateClosed,e=>{(null==e?void 0:e.leadUuid)&&Ar({leadUuid:e.leadUuid})}),this.player.events.on(Wt._configChanged,()=>{Ar(h({},Fo(this.player.config)))}),this.player.store.watch("ui.player.breakpoint",e=>{Ar({playerBreakpoint:e})}),this.player.store.watch("ui.player.width",e=>{Ar({playerWidth:e})}),this.player.store.watch("ui.player.height",e=>{Ar({playerHeight:e})})},t._getBPService=function(){let e;switch(this.player.config.request.urls.telemetry_base){case C.Service.FRESNEL_PROD_CN:e=C.Service.FRESNEL_PROD_CN;break;case C.Service.EVENTS_PROD:e=C.Service.EVENTS_PROD;break;case C.Service.FRESNEL_PROD:e=C.Service.FRESNEL_PROD;break;default:e=C.Service.FRESNEL_DEV}return e},e}();function Ar(e){Object.assign(Tr,e)}function Sr(e){return hr[e]}function Ir(e,t,n={}){const i=function(e,t,n={}){return Object.assign({},function(e,t){var n,i,r,a,s;const{user:l,request:c,video:d,embed:u}=t;switch(e){case vr.WEB_GLOBAL:return{user:{subscription_type:l.account_type||null,is_mod:!!l.mod,session_id:c.session||null,teams:l.team_id?[{team_id:l.team_id,team_role:lo(t)}]:[],user_id:l.id||null,vuid:No("vuid")||null,flags:c.flags?Object.keys(c.flags):null,is_free_trial:!1},application:{application:"vimeo",vimeo_language:c.lang||"en",product:io(t),build_environment:"production",version:oo()},platform:{device_language:null!==(n=null==(i=window.navigator)?void 0:i.language)&&void 0!==n?n:"",screen:{dpi:screen.pixelDepth,height:screen.height,width:screen.width,size:`${screen.width} x ${screen.height}`},network:null,platform:"web"}};case vr.COPY_VIDEO_EMBED_CODE:return{hash:d.unlisted_hash,height:d.height,is_video_password_protected:"password"===d.privacy,product:Cr.WORKFLOW,sizing:u.playsinline?"fixed":"responsive",video_embed_privacy:d.embed_permission,video_id:`${d.id||""}`,video_privacy:d.privacy,width:d.width,actor_resource_role:null,actor_team_role:null,entry_page:null,is_preset_applied:null,location:null,page:null,path:null,team_owner_id:null,team_size:null,team_subscription_type:null,upload_id:null,video_app_id:null,video_status:null,video_type:null};case vr.PLAYER_PERFORMANCE_MEASUREMENT:return{module_player:!1,device_type:ao(),browser:Object.keys(o.browser).find(e=>o.browser[e])||"",device_os:so(),iframed:So(),measurement_type:null,measurement_value:null};case vr.CHAPTER_SEGMENT_CLICK:return{video_id:d.id,team_owner_id:(null==(r=d.owner)?void 0:r.id)||0,is_creator_mode:!!l.owner,chapter_seek_event_delta:null,fragment_no_chapters_at_seek:null,is_chapter_seek:null,nearest_chapter_start_time:null,seek_event_start_time:null,total_no_chapters_at_seek:null};case vr.CLICK:return{page:$i(t),click_type:null,copy:null,device_type:null,feature:null,location:null,name:null,path:null,target:null,target_path:null,type:null};case vr.EMBEDDED_TRANSCRIPT_CLICK:return{video_id:d.id,team_owner_id:(null==(a=d.owner)?void 0:a.id)||0,total_clip_duration:Tt(d.duration,2),embedded_transcript_session_id:Tr.transcriptId,session_duration:Tt(Xn(Tr.transcriptStartTime),2),default_transcript_language:Tr.transcriptDefaultLanguage,video_timestamp:Tt(Tr.currentTime,2)||0,copy:null,current_transcript_language:null,element:null,location:null,name:null};case vr.CLOSED_CAPTIONS_CLICK:return{video_id:d.id,video_privacy:d.privacy,final_action_reset_all:null,has_changed_background:null,has_changed_font:null,has_changed_window:null,has_clicked_background:null,has_clicked_window:null,has_clicked_customize:null,has_clicked_font:null,has_customized:null,has_reset_all:null,language_selected:null};case vr.MULTI_AUDIO_TRACK_CLICK:return{video_id:`${d.id||""}`,video_privacy:d.privacy,video_owner_id:`${null==(s=d.owner)?void 0:s.id}`,page:$i(t),event_name:null,has_selected_track:null,initial_track:null,track_selected:null};case vr.OPEN_AI_OPTIONS:return{if_uploader:!!l.owner,value:null};case vr.REACH_TIME_ACTION:return{time_action_id:null};case vr.VIEW_HOTSPOT:return{hotspot_id:null};case vr.CLICK_HOTSPOT:return{hotspot_id:null,overlay_id:null,click_action_type:null,clickout_id:null};case vr.VIEW_OVERLAY:return{overlay_id:null};case vr.CLOSE_OVERLAY:return{overlay_id:null,dwell_time:null};case vr.CLICK_OVERLAY:return{overlay_id:null,click_action_type:null,clickout_id:null};case vr.VIEW_POLL:return{poll_id:null};case vr.VOTE_POLL:return{poll_id:null,poll_option_id:null,is_poll_option_correct:null};default:return{}}}(e,t),n)}(e,t,n),r=Sr(e);return new C.Event(e,r,i)}function Or(e,t,n={},i={}){const r=Ir(e,t,n),a=function(e,t,n={}){const i=br[e];return i?i.reduce((e,i)=>{var r;if(i===mr.LIVE&&!(null==(r=t.video)?void 0:r.live_event_id))return e;const a=Sr(i),s=n[i]||{},l=function(e,t,n={}){return Object.assign({},function(e,t){var n,i,r,a;const{embed:s,user:l,request:c,video:d}=t;switch(e){case mr.TEAM:return{team_owner_id:l.team_origin_user_id,team_subscription_type:l.account_type,team_role:lo(t),team_id:l.team_id,joined_team_at:null,resource_permission_level:null,team_size:null};case mr.WEB:return{location:"player",page_name:$i(t),referrer:c.referrer,copy:null,path:null,referrer_page_name:null,target:null,target_path:null};case mr.VIDEO:return{video_id:d.id,title:d.title,video_privacy:d.privacy,video_embed_privacy:d.embed_permission,content_rating:[`${null==(n=d.rating)?void 0:n.id}`],duration:Math.round(d.duration),resolution:`${d.width}x${d.height}`,video_height:d.height,video_width:d.width,orientation:co(d.width,d.height),is_auto_cc_enabled:null,upload_method_api:null,upload_method_api_id:null,is_demo:null,video_owner_id:(null==(i=d.owner)?void 0:i.id)||0,video_owner_account_type:(null==(r=d.owner)?void 0:r.account_type)||"",video_categories:null,has_embed_available:!!s.settings.embed,video_version_id:po(null==(a=d.version)?void 0:a.available),embed_context:s.context};case mr.PLAYER:return{player_session_id:c.session,total_video_duration:d.duration,video_timestamp:Tt(Tr.currentTime,2)||0,player_location:s.on_site?"onsite":"embed",player_breakpoint:Tr.playerBreakpoint,player_width:Math.floor(Tr.playerWidth),player_height:Math.floor(Tr.playerHeight)};case mr.ACTION:return{feature:"player",action_type:o.touch?"tap":"click"};case mr.VIEW:return{feature:"player",view_type:"impression"};case mr.LIVE:return{recurring_live_event_id:`${d.live_event_id}`,live_event_id:null,live_status:uo(null==d?void 0:d.live_event),live_production_method:null,encoder_type:null,audience_type:_o(d),lead_source:null,event_privacy:vo(d.privacy),live_feature:null,is_guest_speaker:null};case mr.PRODUCT_ANALYTICS:return{product:"viewer_experience",feature:"player",location:"player",modal_name:null,flow:null,element:null,copy:null,device_type:ao(),is_user_facing_data:null,entity_type:null};case mr.TARGET_TEAM:return{is_team_member:!!l.team_id,team_owner_id:l.team_origin_user_id,team_subscription_type:l.account_type,team_role:lo(t),team_id:l.team_id,team_size:null,resource_permission_level:null,joined_team_at:null};case mr.USER_FACING_VIDEO_ANALYTICS:const e=c.atid,[u,_]=e.split(".").map(Number);return{session_ts:_,session_id:u,lead_id:Tr.leadUuid,content_type:Tr.contentType,is_do_not_track:!!s.dnt,playback_route:"player_embed",is_session_live:null};case mr.THIRD_PARTY_INTEGRATION:return{is_integration:!1,integration_id:null,integration_type:null,integration_name:null,app_id:null,managed_user_id:null,partner_bucket:null,is_partner:null};default:return{}}}(e,t),n)}(i,t,s);return e[i]=new C.EventContext(i,a,l),e},{}):{}}(e,t,i);C.BigPictureClient.sendEventWithContexts(r,a)}const Pr={product_analytics_context:{product:"analysis",feature:"interactive"}};let wr=function(){function e(e){y(this,"_overlayOpenTime",void 0),y(this,"_config",void 0),this._config=e,this._overlayOpenTime=new Map}var t=e.prototype;return t._sendEvent=function(e,t={}){Or(e,this._config,t,Pr)},t.sendReachTimeAction=function({timeActionId:e}){this._sendEvent(vr.REACH_TIME_ACTION,{time_action_id:e})},t.sendViewHotspot=function({hotspotId:e}){this._sendEvent(vr.VIEW_HOTSPOT,{hotspot_id:e})},t.sendClickHotspot=function({hotspotId:e,clickActionType:t,clickoutId:n,overlayId:i}){this._sendEvent(vr.CLICK_HOTSPOT,{hotspot_id:e,click_action_type:t,clickout_id:null!=n?n:null,overlay_id:null!=i?i:null})},t.sendViewOverlay=function({overlayId:e}){this._overlayOpenTime.set(e,g()),this._sendEvent(vr.VIEW_OVERLAY,{overlay_id:e})},t.sendCloseOverlay=function({overlayId:e}){const t=this._overlayOpenTime.get(e),n=g()-t;this._sendEvent(vr.CLOSE_OVERLAY,{overlay_id:e,dwell_time:n})},t.sendClickOverlay=function({overlayId:e,clickActionType:t,clickoutId:n}){this._sendEvent(vr.CLICK_OVERLAY,{overlay_id:e,click_action_type:t,clickout_id:null!=n?n:null})},t.sendViewPoll=function({pollId:e}){this._sendEvent(vr.VIEW_POLL,{poll_id:e})},t.sendVotePoll=function({pollId:e,pollOptionId:t,isPollOptionCorrect:n}){this._sendEvent(vr.VOTE_POLL,{poll_id:e,poll_option_id:t,is_poll_option_correct:null!=n?n:null})},e}();function Rr(e){return Math.random()<=e}function Nr(e,t,n=.1){Rr(n)&&(((e,t={})=>{if(cr&&e){const n=Object.assign({},t,{manually_captured:1,player_lifespan_seconds:Math.round((Date.now()-ur)/1e3)});newrelic.noticeError(e,n)}})(e,t),((e,t={})=>{if(pr&&e){const n=Object.assign({},t,{manually_captured:1});window.DD_RUM.addError(e,n)}})(e,t))}window.addEventListener("unhandledrejection",e=>{e.preventDefault(),e.reason&&Nr(e.reason,{unhandled_rejection:1})});var kr={setUp:function(e,t=ui.VimeoPlayer){((e,t=ui.VimeoPlayer)=>{cr&&(((e,t)=>{var n,i,o;const r={environment:"dev"===e.request.build.js?"dev":"production",js_modules:!0,version_js:e.request.build.js,version_backend:e.request.build.backend,visibility_state:document.visibilityState,vimeo_session:e.request.session,locale:e.request.lang,product:io(e),video_embed_permission:e.video.embed_permission,video_privacy:e.video.privacy,live_session_id:null==(n=e.video.live_event)?void 0:n.id,rawUserAgent:navigator.userAgent,background_mode:1===(null==(i=e.embed)||null==(o=i.settings)?void 0:o.background)?1:0,player_name:t};if(e.request.ab_tests)for(const a in e.request.ab_tests){const t=e.request.ab_tests[a];r[`${a}_test`]=1,r[`${a}_group`]=t.group;for(const e in t.data)r[`${a}_data_${e}`]=t.data[e]}e.user.logged_in&&(r.userId=e.user.id);for(let a in r)newrelic.setCustomAttribute(a,r[a])})(e,t),newrelic.setErrorHandler((function(t){var n;return!!((e,t)=>{var n;return!!(o.appleMail||!t.request||dr||_r.some(t=>{var n,i;return(null==e||null==(n=e.message)?void 0:n.includes(t))||(null==e||null==(i=e.name)?void 0:i.includes(t))})||(null==e||null==(n=e.message)?void 0:n.startsWith("ReportingObserver"))&&Math.random()>.01)})(t,e)||((null==t||null==(n=t.message)?void 0:n.startsWith("Non-Error exception captured"))&&newrelic.addToTrace({name:"nonErrorException",start:Date.now()}),!1)})))})(e,t),((e,t=ui.VimeoPlayer)=>{if(pr){var n,i,o;const r={js_modules:!0,version_js:e.request.build.js,version_backend:e.request.build.backend,visibility_state:document.visibilityState,vimeo_session:e.request.session,locale:e.request.lang,product:io(e),video_embed_permission:e.video.embed_permission,video_privacy:e.video.privacy,live_session_id:null==(n=e.video.live_event)?void 0:n.id,rawUserAgent:navigator.userAgent,background_mode:Number(1===(null==(i=e.embed)||null==(o=i.settings)?void 0:o.background)),player_name:t};if(e.request.ab_tests)for(const t in e.request.ab_tests){const n=e.request.ab_tests[t];r[`${t}_test`]=1,r[`${t}_group`]=n.group;for(const e in n.data)r[`${t}_data_${e}`]=n.data[e]}e.user.logged_in&&(r.userId=e.user.id);for(let e in r)window.DD_RUM.setGlobalContextProperty(e,r[e]);if(t){const e=`has${t}`;window.DD_RUM.setViewContextProperty(e,1)}}})(e,t)},captureException:Nr,captureMessage:function(e){},captureBreadcrumb:function(e){(e=>{cr&&newrelic.addToTrace({name:e,start:Date.now()})})(e),(e=>{pr&&window.DD_RUM.addAction(e)})(e)}};let Dr;function Mr({events:e}){let t=null,n=null,i=null,o=null,r=null,a={video:{},request:{},embed:{}};function s(){return n&&n-6e4<=Date.now()}function l(e){const t=Date.now()+1e3*e;return r=setTimeout(()=>{"onLine"in navigator&&!navigator.onLine||o||(o=d().catch(kr.captureException))},1e3*e-6e4-5e3),t}function c(e,i={}){var o,s;clearTimeout(r);const c=t;if(isNaN(e)&&"string"!=typeof e){t=e,n=l(t.request.expires);let i=new URL(window.location.href);const o=i.searchParams.get("referrer"),r=i.searchParams.get("player_id");return o&&(t.request.referrer=o,i.searchParams.delete("referrer")),r&&(t.embed.player_id=r,i.searchParams.delete("player_id")),Promise.resolve({old:c,loaded:t})}Date.now(),a=L(a,t);const d=a.request.referrer;d&&(i.referrer=d),i.s=a.request.signature,i.expires=a.request.expires,i.time=a.request.timestamp,Dr||(Dr=bt(e));const u=Ct(Dr||((null==(o=t)?void 0:o.player_url)?`https://${null==(s=t)?void 0:s.player_url}`:""),e,i);return T(u,{withCredentials:!0,throwHttpErrors:!1}).json().then(e=>(t=e,t.view!==Kt.error&&(n=l(t.request.expires),a.request.session&&t.video.id===a.video.id&&(t.request.session=a.request.session),d&&(t.request.referrer=d),a.embed.player_id&&(t.embed.player_id=a.embed.player_id),a.embed.on_site&&(t.embed.on_site=1,t.embed.context=a.embed.context)),Date.now(),{old:c,loaded:t})).catch(e=>{kr.captureException(e)})}function d(){var i;clearTimeout(r),Date.now();const a=null==(i=t)?void 0:i.request.referrer,{signature:s,session:c,timestamp:d,expires:u,atid:_}=t.request,p=t.request.ott_chromecast_token;let v=`https://${t.player_url}/video/${t.video.id}/config/request?atid=${_}&session=${c}&signature=${s}&time=${d}&expires=${u}`;return p&&(v=`${v}&ott_chromecast_token=${p}`),a&&(v+=`${-1===v.indexOf("?")?"?":"&"}referrer=${encodeURIComponent(a)}`),T(v,{withCredentials:!0,retry:3}).json().then(i=>(t.request=i,a&&(t.request.referrer=a),n=l(t.request.expires),Date.now(),o=null,e.fire(Wt._assetUrlsRefreshed),t.request)).catch(t=>{const n=un();throw e.fire(Wt._error,n.id,n),t})}return window.addEventListener("online",()=>{s()&&(o=d().catch(kr.captureException))}),e.on(Wt._error,e=>{o||"media-url-expired"!==e||(o=d().catch(kr.captureException))}),{get isExpired(){return s()},load:(e,t)=>c(e,t),reload(){var e;return(null==(e=t)?void 0:e.video.id)?c(t.video.id):Promise.reject(new Error("No config loaded."))},toJSON:()=>t,get config(){return t},set config(e){t=e},verify:()=>s()?(o||(o=d()),o):Promise.resolve(t.request),refreshAssetUrls:()=>d(),get _video(){return i},set _video(e){i=e}}}function Br(e,t){let n=e,i=t;return n%320!=0&&(n=100*Math.ceil(e/100),i=Math.round(n/e*t)),{width:n,height:i}}function Vr({width:e,height:t,baseUrl:i,crop:r=!1}){i=i.replace(/\.[^/.]+$/,"");let a={};const s=parseInt(e,10),l=parseInt(t,10);return 0===s||isNaN(s)||(r?a.w=s:a.mw=s),0===l||isNaN(l)||(r?a.h=l:a.mh=l),o.devicePixelRatio>1&&(a.q=70),n(i,a)}function xr(e){return function(e){return new Promise((t,n)=>{const i=new Image;function o(){kr.captureBreadcrumb(`Load image: ${e}`,{}),n(new Error("Failed to load image."))}i.onload=function(){i&&i.width>0&&i.height>0?t(i):o()},i.onerror=o,i.src=e})}(e).catch(t=>(kr.captureException(t,{extra:{imageUrl:e}}),new Promise(()=>{})))}const Ur={id:"7742C69E",name:"prod"},Hr={id:"BA42D416",name:"prod"},Fr={id:"78077C77",name:"prod"},Gr={connected:wt(),disconnected:wt(),playing:wt(),paused:wt(),buffering:wt(),idle:wt(),ended:wt(),initialized:wt(),castStateChanged:wt(),sessionStateChanged:wt(),timeUpdated:wt(),mediaLoadedSuccess:wt(),mediaLoadedFailed:wt(),error:wt()};let Yr=function(){function e({core:e,textAlert:t=null}){this._textAlert=t,this._core=e,this._onControlSeek=this.onControlSeek.bind(this),this._onChangeVolume=this.onChangeVolume.bind(this),this._onPlayOrPausePressed=this.onPlayOrPausePressed.bind(this),this._onConfigChanged=this.onConfigChanged.bind(this),this._onReset=this.onReset.bind(this),this._onPlayerStateChanged=this.onPlayerStateChanged.bind(this),this._onCurrentTimeChanged=this.onCurrentTimeChanged.bind(this),this._onIsConnectedChanged=this.onIsConnectedChanged.bind(this),this._onSessionStateChanged=this.onSessionStateChanged.bind(this),this._onCastStateChanged=this.onCastStateChanged.bind(this),this._onIsMediaLoadedChanged=this.onIsMediaLoadedChanged.bind(this),this._onVolumeLevelChanged=this.onVolumeLevelChanged.bind(this),this._onIsMutedChanged=this.onIsMutedChanged.bind(this),this._onCaptionsChanged=this.onCaptionsChanged.bind(this),this._onMessageReceived=this.onMessageReceived.bind(this),this._preventPlayerDefaultEvent=this.preventPlayerDefaultEvent.bind(this),this.endVideo=P(this._endVideo,500),this._onOutroDisplayed=this.onOutroDisplayed.bind(this),this._onOutroHidden=this.onOutroHidden.bind(this)}var t=e.prototype;return t.calculateStartTime=function(e=null){let t=Number(e)||this._core.backbone.currentTime-7;return t<0&&(t=0),this.isEndOfVideo&&(t=0),t},t.loadMedia=function({contentId:e,currentTime:t=null,duration:n=null,token:i=null,bypassToken:o=null,autoRequest:r=!1,autoCaption:a=!0,autoDisconnect:s=!0,tracks:l=[]}={}){if($r.isLoadingMedia)return Promise.resolve(!1);const c=this._core.config;e=e||c.video.id;const d=c.request,_=d.drm;let p;if(_){const t=u(d,"files.dash.default_cdn");e=u(d,`files.dash.cdns.${t}.url`),p=u(_,"cdms.widevine.license_url"),l=(d.text_tracks||[]).map(e=>{const{pathname:t,search:n}=A(e.url);return h(h({},e),{},{url:`https://player.vimeo.com${t}${n}`})})}const v=this.calculateStartTime(t);n=Number(n)||this.duration,i=i||c.user.vimeo_api_client_token,o=o||c.video.bypass_token,this.isEndOfVideo&&(this._isEndOfVideo=!1);const m={contentId:e,duration:n,autoRequest:r,tracks:l,currentTime:v,requestCustomData:{token:i,bypassToken:o,tokenType:"jwt"}};return this._core.config.request.ott_chromecast_token&&(m.requestCustomData.ottChromecastToken=this._core.config.request.ott_chromecast_token),this._core.config.ottCastOptions&&(m.ottCastOptions=this._core.config.ottCastOptions),(p?this._getLicenseUrl(p).then(e=>h(h({},m),{},{mediaCustomData:{widevineLicenseServerURL:e}})):Promise.resolve(m)).then(e=>$r.loadMedia(e)).then(()=>($r.fire(Gr.mediaLoadedSuccess),this.addRemotePlayerListenersOnPlaying(),this._core.events.fire(S),this._core.events.fire(kt._hideOutro),this._isOutroRendered=!1,a&&this.onCaptionsChanged(this._core.backbone.enabledTextTrack),this._core.backbone.paused||this._core.backbone.pause(),!0)).catch(e=>($r.fire(Gr.mediaLoadedFailed,e),s&&this.endCurrentSession(),Promise.reject(e)))},t._getLicenseUrl=function(e){return new Promise((t,n)=>{const i=new XMLHttpRequest;i.open("GET",e),i.onload=()=>{const e=e=>new Error(`Error retrieving License Acquisition URL (LA_URL): ${e}`);if(i.status>=200&&i.status<300)try{t(i.response)}catch(ke){n(e(ke))}else n(e(i.status))},i.onerror=n,i.send()})},t.init=function(){this.removeInitListeners(),this.addInitListeners()},t.addInitListeners=function(){this.addSessionStateListener(),this.addCastStateListener(),this.addIsConnectedListener()},t.endCurrentSession=function(e=!0){$r.castContext&&$r.castContext.endCurrentSession(e)},t.syncBackbone=function(){!this.isOutroRendered&&this._core.backbone.paused&&(this._core.backbone.currentTime=this.lastCurrentTime,this.syncTime())},t.stopBackbone=function(){this._core.events.fire(kt._reset)},t.storeBackboneData=function(){this.lastCurrentTime=this._core.backbone.currentTime},t.applyBackboneData=function(){this.lastCurrentTime&&(this._core.backbone.currentTime=this.lastCurrentTime)},t.enableUI=function(){if(this._textAlert){var e;const t=null==(e=$r.currentSessionObj)?void 0:e.receiver;t&&this._textAlert.show("Casting on "+t.friendlyName)}this._core.preview.show(),this._core.element.classList.add("is-casting")},t.disableUI=function(){this._textAlert&&this._textAlert.hide(),this.isOutroRendered||(this._core.preview.hide(),this._core.backbone.element.classList.remove("invisible")),this._core.element.classList.remove("is-casting")},t.syncTime=function(){const e=this.lastCurrentTime/this.duration;$r.fire(Gr.timeUpdated,{currentTime:this.lastCurrentTime,duration:this.duration,percent:e}),e>0&&this._core.events.fire(E.TIME_UPDATE,{currentTime:this.lastCurrentTime,duration:this.duration,timeProgress:e})},t._endVideo=function(){return this._isEndOfVideo=!0,this._core.events.fire(Wt._ended),this.removeRemotePlayerListenersOnPlaying(),this.isLooped?this.loadMedia().catch(()=>{this.showOutro()}):this.showOutro(),$r.fire(Gr.ended),!0},t.showOutro=function(){this.isOutroRendered||(this._isOutroRendered=!0,this._core.events.fire(kt._showOutro))},t.dispose=function(){this.endCurrentSession(),this.removeAllRemoteListeners()},t.onIsMediaLoadedChanged=function(e){!1===e.value?this.isTimeEnded&&this.endVideo():this._core.backbone.paused||this._core.backbone.pause()},t.onPlayerStateChanged=function(e){switch(null===e.value&&this.isTimeEnded&&this.endVideo(),e.value){case $r.PlayerState.PLAYING:$r.fire(Gr.playing);break;case $r.PlayerState.PAUSED:$r.fire(Gr.paused);break;case $r.PlayerState.BUFFERING:$r.fire(Gr.buffering);break;case $r.PlayerState.IDLE:default:$r.fire(Gr.idle)}},t.onVolumeLevelChanged=function(e){this._core.events.fire(kt._changeVolume,e.value,!0)},t.onIsMutedChanged=function(e){this._core.events.fire(kt._changeVolume,e.value?0:$r.remotePlayer.volumeLevel,!0)},t.onCurrentTimeChanged=function(e){this.isMediaLoaded&&(this.lastCurrentTime=e.value),this.syncTime(),this.isTimeEnded&&this.endVideo()},t.onChangeVolume=function(e){this.volumeLevel=e},t.onCaptionsChanged=function(e){const t=$r.currentSession;t&&t.sendMessage("urn:x-cast:com.vimeo.cast.media",{action:"setActiveByLanguage",value:null==e?void 0:e.language})},t.onSessionStateChanged=function(e){switch(e.sessionState){case $r.SessionState.SESSION_STARTING:this.addPreventLocalPlayerEvents();break;case $r.SessionState.SESSION_RESUMED:case $r.SessionState.SESSION_STARTED:this.loadMedia();break;case $r.SessionState.SESSION_ENDING:case $r.SessionState.SESSION_ENDED:break;case $r.SessionState.SESSION_START_FAILED:this.removePreventLocalPlayerEvents()}$r.fire(Gr.sessionStateChanged,e.sessionState)},t.onCastStateChanged=function(e){$r.fire(Gr.castStateChanged)},t.onIsConnectedChanged=function(e){e.value?this.onConnected():this.onDisconnected()},t.onConnected=function(){this.removePreventLocalPlayerEvents(),this.storeBackboneData(),this.stopBackbone(),this.applyBackboneData(),this.addLocalPlayerListeners(),this.addRemotePlayerListenersOnIdle(),this.addMessageListener(),this.enableUI(),$r.fire(Gr.connected)},t.onDisconnected=function(){this.syncBackbone(),this.removeRemotePlayerListeners(),this.removeLocalPlayerListeners(),this.removeMessageListener(),this.disableUI(),$r.fire(Gr.disconnected)},t.onConfigChanged=function(){this.loadMedia()},t.onReset=function(){this.loadMedia()},t.onPlayOrPausePressed=function(){this.isEndOfVideo?this.loadMedia():this.isPlayingOrPaused&&$r.remotePlayerController.playOrPause(),this._core.events.halt()},t.onControlSeek=function(e){this.currentTime=e,this._core.events.halt()},t.addSessionStateListener=function(){$r.castContext&&$r.castContext.addEventListener($r.CastContextEventType.SESSION_STATE_CHANGED,this._onSessionStateChanged)},t.addCastStateListener=function(){$r.castContext&&$r.castContext.addEventListener($r.CastContextEventType.CAST_STATE_CHANGED,this._onCastStateChanged)},t.addMessageListener=function(){const e=$r.currentSession;e&&e.addMessageListener("urn:x-cast:com.vimeo.cast.media",this._onMessageReceived)},t.onMessageReceived=function(e,t){"MEDIA_FINISHED"===(t=JSON.parse(t)).type&&("END_OF_STREAM"===t.endedReason?this.endVideo():"ERROR"===t.endedReason&&(this.endCurrentSession(),$r.fire(Gr.error,new Error("Chromecast encountered an error and media finished."))))},t.onOutroDisplayed=function(){this._isOutroRendered=!0},t.onOutroHidden=function(){this._isOutroRendered=!1},t.addIsConnectedListener=function(){$r.remotePlayerController&&$r.remotePlayerController.addEventListener($r.RemotePlayerEventType.IS_CONNECTED_CHANGED,this._onIsConnectedChanged)},t.addPreventLocalPlayerEvents=function(){this._core.events.prependOn([Wt._playButtonPressed,Wt._pauseButtonPressed,Wt._scrubbingStarted,Wt._scrubbingEnded,I.BUFFER_STARTED,I.BUFFER_ENDED,kt._seek,Wt._volumeChanged,Wt._captionsChanged,Wt._configChanged,kt._reset],this._preventPlayerDefaultEvent)},t.addRemotePlayerListenersOnIdle=function(){this.removeRemotePlayerListenersOnIdle(),this.addIsMediaLoadedChangedListener(),this.addVolumeLevelChangedListener()},t.addLocalPlayerListeners=function(){this._core.events.prependOn(Wt._playButtonPressed,this._onPlayOrPausePressed),this._core.events.prependOn(Wt._pauseButtonPressed,this._onPlayOrPausePressed),this._core.events.prependOn(Wt._scrubbingStarted,this._preventPlayerDefaultEvent),this._core.events.prependOn(Wt._scrubbingEnded,this._preventPlayerDefaultEvent),this._core.events.prependOn(I.BUFFER_STARTED,this._preventPlayerDefaultEvent),this._core.events.prependOn(I.BUFFER_ENDED,this._preventPlayerDefaultEvent),this._core.events.prependOn(kt._seek,this._onControlSeek),this._core.events.prependOn(Wt._volumeChanged,this._onChangeVolume),this._core.events.on(Wt._captionsChanged,this._onCaptionsChanged),this._core.events.on(Wt._configChanged,this._onConfigChanged),this._core.events.on(kt._reset,this._onReset),this._core.events.on(Wt._outroDisplayed,this._onOutroDisplayed),this._core.events.on(Wt._outroHidden,this._onOutroHidden)},t.preventPlayerDefaultEvent=function(){this._core.events.halt()},t.addCurrentTimeChangedListener=function(){$r.remotePlayerController&&$r.remotePlayerController.addEventListener($r.RemotePlayerEventType.CURRENT_TIME_CHANGED,this._onCurrentTimeChanged)},t.addIsMediaLoadedChangedListener=function(){$r.remotePlayerController&&$r.remotePlayerController.addEventListener($r.RemotePlayerEventType.IS_MEDIA_LOADED_CHANGED,this._onIsMediaLoadedChanged)},t.addPlayerStateChangedListener=function(){$r.remotePlayerController&&$r.remotePlayerController.addEventListener($r.RemotePlayerEventType.PLAYER_STATE_CHANGED,this._onPlayerStateChanged)},t.addVolumeLevelChangedListener=function(){$r.remotePlayerController&&($r.remotePlayerController.addEventListener($r.RemotePlayerEventType.VOLUME_LEVEL_CHANGED,this._onVolumeLevelChanged),$r.remotePlayerController.addEventListener($r.RemotePlayerEventType.IS_MUTED_CHANGED,this._onIsMutedChanged))},t.addRemotePlayerListenersOnPlaying=function(){this.removeRemotePlayerListenersOnPlaying(),this.addCurrentTimeChangedListener(),this.addPlayerStateChangedListener()},t.removeRemotePlayerListenersOnIdle=function(){this.removeIsMediaLoadedChangedListener(),this.removeVolumeLevelChangedListener()},t.removeInitListeners=function(){$r.castContext&&($r.castContext.removeEventListener($r.CastContextEventType.SESSION_STATE_CHANGED,this._onSessionStateChanged),$r.castContext.removeEventListener($r.CastContextEventType.CAST_STATE_CHANGED,this._onCastStateChanged)),$r.remotePlayerController&&$r.remotePlayerController.removeEventListener($r.RemotePlayerEventType.IS_CONNECTED_CHANGED,this._onIsConnectedChanged)},t.removeRemotePlayerListenersOnPlaying=function(){this.removeCurrentTimeChangedListener(),this.removePlayerStateChangedListener()},t.removeMessageListener=function(){const e=$r.currentSession;e&&e.removeMessageListener("urn:x-cast:com.vimeo.cast.media",this._onMessageReceived)},t.removeCurrentTimeChangedListener=function(){$r.remotePlayerController&&$r.remotePlayerController.removeEventListener($r.RemotePlayerEventType.CURRENT_TIME_CHANGED,this._onCurrentTimeChanged)},t.removeIsMediaLoadedChangedListener=function(){$r.remotePlayerController&&$r.remotePlayerController.removeEventListener($r.RemotePlayerEventType.IS_MEDIA_LOADED_CHANGED,this._onIsMediaLoadedChanged)},t.removePlayerStateChangedListener=function(){$r.remotePlayerController&&$r.remotePlayerController.removeEventListener($r.RemotePlayerEventType.PLAYER_STATE_CHANGED,this._onPlayerStateChanged)},t.removeVolumeLevelChangedListener=function(){$r.remotePlayerController&&($r.remotePlayerController.removeEventListener($r.RemotePlayerEventType.VOLUME_LEVEL_CHANGED,this._onVolumeLevelChanged),$r.remotePlayerController.removeEventListener($r.RemotePlayerEventType.IS_MUTED_CHANGED,this._onIsMutedChanged))},t.removePreventLocalPlayerEvents=function(){this._core.events.off([Wt._playButtonPressed,Wt._pauseButtonPressed,Wt._scrubbingStarted,Wt._scrubbingEnded,I.BUFFER_STARTED,I.BUFFER_ENDED,kt._seek,Wt._volumeChanged,Wt._captionsChanged,Wt._configChanged,kt._reset],this._preventPlayerDefaultEvent)},t.removeLocalPlayerListeners=function(){this._core.events.off(Wt._playButtonPressed,this._onPlayOrPausePressed),this._core.events.off(Wt._pauseButtonPressed,this._onPlayOrPausePressed),this._core.events.off(Wt._scrubbingStarted,this._preventPlayerDefaultEvent),this._core.events.off(Wt._scrubbingEnded,this._preventPlayerDefaultEvent),this._core.events.off(I.BUFFER_STARTED,this._preventPlayerDefaultEvent),this._core.events.off(I.BUFFER_ENDED,this._preventPlayerDefaultEvent),this._core.events.off(kt._seek,this._onControlSeek),this._core.events.off(Wt._volumeChanged,this._onChangeVolume),this._core.events.off(Wt._captionsChanged,this._onCaptionsChanged),this._core.events.off(Wt._configChanged,this._onConfigChanged),this._core.events.off(kt._reset,this._onReset)},t.removeRemotePlayerListeners=function(){this.removeRemotePlayerListenersOnPlaying(),this.removeRemotePlayerListenersOnIdle()},t.removeAllRemoteListeners=function(){this.removeRemotePlayerListeners(),this.removeInitListeners()},O(e,[{key:"currentTime",get:function(){return this.lastCurrentTime||0},set:function(e){$r.remotePlayer&&$r.remotePlayerController&&($r.remotePlayer.currentTime=e,$r.remotePlayerController.seek(),this.lastCurrentTime=e)}},{key:"isTimeEnded",get:function(){return this.lastCurrentTime+.5>=this.duration}},{key:"isOutroRendered",get:function(){return this._isOutroRendered||!1}},{key:"isLooped",get:function(){return this._core.config.embed.loop}},{key:"isEndOfVideo",get:function(){return this._isEndOfVideo||!1}},{key:"volumeLevel",set:function(e){$r.remotePlayer&&$r.remotePlayerController&&($r.remotePlayer.volumeLevel=e,$r.remotePlayerController.setVolumeLevel())},get:function(){return $r.remotePlayer?$r.remotePlayer.volumeLevel:0}},{key:"duration",get:function(){return this._core.config.video.duration}},{key:"isPlayingOrPaused",get:function(){return $r.remotePlayer?$r.remotePlayer.playerState===$r.PlayerState.PLAYING||$r.remotePlayer.playerState===$r.PlayerState.PAUSED:null}},{key:"isIdle",get:function(){return $r.remotePlayer?null===$r.remotePlayer.playerState||$r.remotePlayer.playerState===$r.PlayerState.IDLE:null}},{key:"isMediaLoaded",get:function(){return!!$r.remotePlayer&&$r.remotePlayer.isMediaLoaded}}]),e}(),Wr=function(e){function t(){return e.apply(this,arguments)||this}R(t,e);var n=t.prototype;return n.init=function({appId:t,chromecastPlayer:n=null}={}){var i,o;return t||(t=(null==n||null==(i=n._core)?void 0:i.config.request.flags.ott)?(null==n||null==(o=n._core)?void 0:o.config.ottCastOptions)?n._core.config.ottCastOptions.appId?n._core.config.ottCastOptions.appId:Hr.id:Fr.id:Ur.id),this.chromecastPlayer=n,this.setup().then(n=>(n&&(e.prototype.init.call(this,{receiverApplicationId:t,autoJoinPolicy:this.AutoJoinPolicy.PAGE_SCOPED}),this.chromecastPlayer&&this.chromecastPlayer.init(),this.fire(Gr.initialized)),n)).catch(e=>(this.fire(Gr.error,e),Promise.reject(e)))},n.dispose=function(){this.chromecastPlayer=null},O(t,[{key:"chromecastPlayer",get:function(){return this._chromecastPlayer},set:function(e){if(e&&!(e instanceof Yr))throw new SyntaxError("An invalid ChromecastPlayer was specified");this.chromecastPlayer&&this.chromecastPlayer.dispose(),this._chromecastPlayer=e}}]),t}(N);const $r=w.extend(new Wr);function qr(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}function Kr(e){return function e(t,n){return Object.keys(n).reduce((i,o)=>(n[o]&&"object"==typeof n[o]?i[t(o)]=e(t,n[o]):i[t(o)]=n[o],i),{})}(qr,e)}const jr=e=>({type:"CONFIG_LOAD",payload:h({},Kr(e))}),zr=e=>({type:"LIVE_SETTINGS_UPDATE",payload:e});function Xr(e={},{type:t,payload:n}){switch(t){case"CONFIG_LOAD":return n.video.liveEvent?h(h({},e),n.video.liveEvent):null;case"LIVE_UPDATE":return h(h({},e),n);case"LIVE_SET_START_TIME":return h(h({},e),{},{ingest:h(h({},e.ingest),{},{startTime:n})});case"LIVE_SETTINGS_UPDATE":return h(h({},e),{},{settings:h(h({},e.settings),n)});default:return e}}const Zr=e=>{var t;return!!(null==(t=e.liveEvent)?void 0:t.status)},Qr=e=>{var t;return null==(t=e.liveEvent)?void 0:t.status},Jr=e=>{var t,n;return(null==(t=e.liveEvent)||null==(n=t.ingest)?void 0:n.scheduledStartTime)||null},ea=e=>{var t,n;return(null==(t=e.liveEvent)||null==(n=t.ingest)?void 0:n.startTime)||null},ta=e=>{var t;return"pending"===(null==(t=e.liveEvent)?void 0:t.status)},na=e=>{var t;return"active"===(null==(t=e.liveEvent)?void 0:t.status)},ia=e=>{var t;return"started"===(null==(t=e.liveEvent)?void 0:t.status)},oa=e=>{var t;return"ended"===(null==(t=e.liveEvent)?void 0:t.status)},ra=e=>Zr(e)&&!oa(e),sa=e=>{var t,n;return"done"===(null==(t=e.liveEvent)||null==(n=t.archive)?void 0:n.status)},la=e=>{var t,n;return null==e||null==(t=e.liveEvent)||null==(n=t.settings)?void 0:n.eventSchedule};var ca=Object.freeze({__proto__:null,default:Xr,liveExists:Zr,liveStatus:Qr,liveArchiveStatus:e=>{var t,n;return null==(t=e.liveEvent)||null==(n=t.archive)?void 0:n.status},dashLiveUrl:e=>{var t;return null==(t=e.liveEvent)?void 0:t.playback.dash_noredirect},hlsLiveUrl:e=>{var t;return null==(t=e.liveEvent)?void 0:t.playback.hls},scheduledLiveStartTime:Jr,liveStartTime:ea,isLivePending:ta,isLiveActive:na,isLiveStarted:ia,isLiveEnded:oa,liveInProgress:ra,isLiveArchived:sa,hasEventSchedule:la});const da=(e,t,n)=>{let i;try{i=new URL(e)}catch(ke){return null}const o=Array.isArray(t)?t:[t],r=o.map((function(e){return`vimeo_${e}`})).concat(o),a=new URLSearchParams(i.hash.substring(1));let s=null;return r.some(e=>{const t=`${e}_${n}`,i=a.get(t)||a.get(e);return!!i&&(s=(e=>{var t;let n,i=!1,o="0",r="0",a="0",s=e;const l=s.startsWith("-");if(l&&(s=s.substring(1)),n=s.match(/^(\d*\.?\d+)$/),(null==(t=n)?void 0:t.length)&&(i=!0,a=n[0]),!1===i&&(n=s.match(/^(?:([0-9]+)h)?(?:([0-9]+)m)?(?:([0-9]+)s)?/),null!==n&&""!==n[0]&&(i=!0,[,o="0",r="0",a="0"]=n)),!1===i&&(n=s.match(/^([0-9:]+)/),null!==n&&(i=!0,[a,r="0",o="0"]=s.split(":").reverse())),!i)return null;const c=60*Number(o)*60+60*Number(r)+Number(a);return l?-c:c})(i),!0)}),s},ua=(e,t,n)=>-1===e.indexOf("#")?null:da(e,t,n);function _a(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function pa(){}function va(e){return function(){for(var t=[],n=0;n{ha(e)?t():(e.events.once(E.LOADED_DATA,()=>{ha(e)&&t()}),e.events.once(E.PLAYING,()=>{n("Video started playing before start time thumbnail could be shown")}))})})),fa=va((function(e){return function(t){var n=function(){if(ga(e))return function(e){if(e&&e.then)return e.then(pa)}(function(t,n){try{var i=_a(e.ready(),(function(){return _a(e.inView(),(function(){return e.backbone.preload="auto",_a(ma(e),(function(){!function(e){var t,n;null==(t=e.backbone.element)||null==(n=t.classList)||n.remove("invisible"),e.preview.hide()}(e)}))}))}))}catch(ke){return}return i&&i.then?i.then(void 0,n):i}(0,(function(e){})))}();if(n&&n.then)return n.then(pa)}()}));function ha(e){return e.currentTime===e.startTime&&e.backbone.readyState>=vi.HAVE_CURRENT_DATA}function ga(e){var t,n;const i=1===(null==e||null==(t=e.config)||null==(n=t.embed)?void 0:n.autoplay);return o.videoContentPreload&&e.segmentedPlaybackEnabled&&!i}function Ea(e){return!!ga(e)&&e.backbone.readyState{t.on(Wt._parentUrlAvailable,(function(i){const{backbone:o}=e,{startTime:r,endTime:a}=function(e,t){const{video:n,embed:i}=t.config,o=n.id,r=n.duration,a=i.chapters,s=((e,t)=>ua(e,"chapter",t))(e,o);let l,c;return s?(({startTime:l,endTime:c}=ya(s,a)),La(t,s)):(l=((e,t)=>ua(e,Qt,t))(e,o),c=((e,t)=>ua(e,"end",t))(e,o)),({startTime:l,endTime:c}=Ta(l,c,r)),{startTime:l,endTime:c}}(i,e);n({startTime:r,endTime:a}),null!==r&&o.currentTime!==r&&t.fire(kt._setTime,r,r/o.duration)}))})}));function Ca(e){const{video:t,embed:n}=e.config;let i;if(!(null==t?void 0:t.live_event)){let i=null,r=null;const a=((e,t)=>da(e,"chapter",t))(document.location.href,t.id);a?(({startTime:i,endTime:r}=ya(a,n.chapters)),La(e,a)):({startTime:i,endTime:r}=function(e,t){const n=document.location.href;let i=((e,t)=>da(e,Qt,t))(n,e),o=((e,t)=>da(e,"end",t))(n,e);var r,a;return null!==i&&function(e){var t;-1!==e.indexOf("at=")&&(null==(t=history)?void 0:t.replaceState)&&history.replaceState("","",window.location.pathname+window.location.search)}(null==(r=document)||null==(a=r.location)?void 0:a.hash),({startTime:i,endTime:o}=Ta(i,o,t)),{startTime:i,endTime:o}}(t.id,t.duration)),o(i,r),null===i&&null===r&&function(e,t,n){e&&e.then||(e=Promise.resolve(e)),t&&e.then(t)}(ba(e),(function({startTime:e,endTime:t}){o(e,t)}))}function o(o,r){null!==o&&(e.startTime=gt(o,0,t.duration)),null!==r&&(e.endTime=r,i=function({player:e,startTime:t,endTime:n,loop:i=!1}){let o=!0,r=!1;const{events:a}=e;return function(){const i=n-t,o={duration:i,endTime:n,startTime:t},r={get currentFragment(){return o},firstFragmentDuration:i,checkForNewFragment:ai,reset:ai,hibernate:ai,wake:ai},a=function(e,t){return[1e3*e,1e3*t]}(t,n);e.overrideFragmentsHandler(r,a)}(),fa(e),a.on(E.TIME_UPDATE,s),a.on(Wt._playButtonPressed,c),a.on(Wt._configChanged,d),a.on(E.SEEKED,u),a.once(S,(function(){o&&Or(vr.PLAY_SEGMENT,e.config,{start_time:t,end_time:n})})),()=>{o=!1,a.off(E.TIME_UPDATE,s),a.off(Wt._playButtonPressed,c),a.off(Wt._configChanged,d),a.off(E.SEEKED,u),e.restoreLastFragmentsHandler()};function s({currentTime:o}){o>=n&&(i?l(t):(e.backbone.pause(),a.fire(E.ENDED)))}function l(t){r=!1,e.backbone.currentTime=t}function c(){e.backbone&&(e.backbone.currentTime>=n||e.backbone.currentTime{Or(vr.EMBED_SEGMENT,e.config,{start_time:o,end_time:r})}).catch(e=>{}))}return{clearSegmentedPlayback:()=>null==i?void 0:i()}}function ya(e,t){const n=null==t?void 0:t.find(t=>t.id===e);let i={startTime:null,endTime:null};return n&&(i={startTime:n.timecode,endTime:null}),i}function Ta(e,t,n){let i=e,o=t;return i&&(i=Math.max(i,0)),o&&(o<0&&(o=Math.max(0,n+o)),o=Math.min(o,n),i?i>o&&(i=null,o=null):i=0),{startTime:i,endTime:o}}function La(e,t){e.events.once(S,()=>{Or(vr.CHAPTER_PLAYED,e.config,{chapter_id:t})})}function Aa(e,t,n){let i=Promise.resolve();const r=!ga(e)&&!!e.config.video.thumbnail_url;function a(){return n.getAttribute("data-thumb")}function s(){return Br(t.get("ui.player.width")*o.devicePixelRatio,t.get("ui.player.height")*o.devicePixelRatio)}function l(){return t.get(Zr)&&!t.get(ia)||!e.config.embed.autoplay||$r.isCastConnected}function c(){if(!r)return Promise.resolve();const{width:i,height:o}=s(),c=Vr({width:i,height:o,baseUrl:e.config.video.thumbnail_url});n.setAttribute("data-thumb",c),n.setAttribute("data-thumb-width",i);const d=xr(c).then(e=>(t.dispatch(((e,t)=>({type:"PREVIEW_SET_SIZE",payload:{width:e,height:t}}))(e.width,e.height)),l()&&(n.style.backgroundImage=`url(${a()})`),e));return l()?Promise.race([d,new Promise(e=>setTimeout(e,2e3))]):Promise.resolve()}return i=c(),e.events.on(Wt._didEnterFullscreen,()=>{n.classList.contains("vp-preview-invisible")&&e.config.embed.outro!==Ko.BEGINNING||(i=c())}),t.watch("ui.player.width",P(()=>{i=i.then(()=>function(){const{width:e}=s(),t=n.getAttribute("data-thumb-width");return e<=parseInt(t,10)||0===e?Promise.resolve():c()}()).catch(e=>{})},150)),t.watch("ui.preview.scaleFactor",e=>{n.classList.toggle("vp-preview-cover",e>1)}),{show:function(){n.style.backgroundImage=`url(${a()})`,n.classList.remove("vp-preview-invisible")},hide:function(){n.classList.add("vp-preview-invisible")},resetThumbnail:function(){n.setAttribute("data-thumb",""),n.setAttribute("data-thumb-width",""),n.style.backgroundImage=""},getThumbnail:a,loadThumbnail:c,thumbnailPromise:i}}function Sa(e){const t=!ga(e);function n(e){if("opacity"===e.propertyName){const e=i();var t;e&&(k(e).off("transitionend",n),null==e||null==(t=e.parentNode)||t.removeChild(e))}}function i(){return document.querySelector(".vp-placeholder")}return{hide:function(){if(t){const e=i();e&&(k(e).on("transitionend",n),e.classList.add("vp-placeholder-fadeout"))}}}}const Ia=e=>({type:"CAPTIONS_SET_FONT_SIZE",payload:e}),Oa=e=>({type:"CAPTIONS_SET_FONT_FAMILY",payload:e}),Pa=e=>({type:"CAPTIONS_SET_FONT_OPACITY",payload:e}),wa=e=>({type:"CAPTIONS_SET_COLOR",payload:e}),Ra=e=>({type:"CAPTIONS_SET_BACKGROUND_OPACITY",payload:e}),Na=e=>({type:"CAPTIONS_SET_BACKGROUND_COLOR",payload:e}),ka=e=>({type:"CAPTIONS_SET_WINDOW_OPACITY",payload:e}),Da=e=>({type:"CAPTIONS_SET_WINDOW_COLOR",payload:e}),Ma=e=>({type:"CAPTIONS_SET_EDGE_STYLE",payload:e}),Ba=()=>({bgColor:{items:[{id:"white",label:"White"},{id:"yellow",label:"Yellow"},{id:"green",label:"Green"},{id:"cyan",label:"Cyan"},{id:"blue",label:"Blue"},{id:"magenta",label:"Magenta"},{id:"red",label:"Red"},{id:"black",label:"Black"}],id:"bgColor",cookie:"bg_color",title:"Color",dispatch:Na},color:{items:[{id:"#fff",label:"White"},{id:"#ff0",label:"Yellow"},{id:"#0f0",label:"Green"},{id:"#0ff",label:"Cyan"},{id:"#00f",label:"Blue"},{id:"#f0f",label:"Magenta"},{id:"#f00",label:"Red"},{id:"#000",label:"Black"}],id:"color",cookie:"color",title:"Color",dispatch:wa},fontSize:{items:[{id:"0.5",label:"50%"},{id:"1",label:"100%"},{id:"1.5",label:"150%"},{id:"2",label:"200%"}],id:"fontSize",cookie:"font_size",title:"Size",dispatch:Ia},fontFamily:{items:[{id:"monospace_serif",value:'"Courier New", Courier, monospace',label:"Monospace Serif"},{id:"proportional_serif",value:"Georgia, Times, serif",label:"Proportional Serif"},{id:"monospace_sans_serif",value:'Monaco, "Lucida Console", monospace',label:"Monospace Sans-Serif"},{id:"proportional_sans_serif",value:'"Helvetica Neue", Helvetica, Arial, sans-serif',label:"Proportional Sans-Serif"},{id:"casual",value:'"Comic Sans MS", sans-serif',label:"Casual"},{id:"cursive",value:'"Apple Chancery", "Lucida Handwriting”, cursive',label:"Cursive"},{id:"small_capitals",value:'"Helvetica Neue", Helvetica, Arial, sans-serif',label:"Small Capitals"}],id:"fontFamily",cookie:"font_family",title:"Family",dispatch:Oa},fontOpacity:{items:[{id:"25",label:"25%"},{id:"50",label:"50%"},{id:"75",label:"75%"},{id:"100",label:"100%"}],id:"fontOpacity",cookie:"font_opacity",title:"Opacity",dispatch:Pa},edgeStyle:{items:[{id:"none",label:"None"},{id:"shadow",label:"Drop Shadow"},{id:"raised",label:"Raised"},{id:"depressed",label:"Depressed"},{id:"outline",label:"Outline"}],id:"edgeStyle",cookie:"edge",title:"Edge style",dispatch:Ma},bgOpacity:{items:[{id:"0",label:"0%"},{id:"25",label:"25%"},{id:"50",label:"50%"},{id:"75",label:"75%"},{id:"100",label:"100%"}],id:"bgOpacity",cookie:"bg_opacity",title:"Opacity",dispatch:Ra},windowColor:{items:[{id:"#fff",label:"White"},{id:"#ff0",label:"Yellow"},{id:"#0f0",label:"Green"},{id:"#0ff",label:"Cyan"},{id:"#00f",label:"Blue"},{id:"#f0f",label:"Magenta"},{id:"#f00",label:"Red"},{id:"#000",label:"Black"}],id:"windowColor",cookie:"window_color",title:"Color",dispatch:Da},windowOpacity:{items:[{id:"0",label:"0%"},{id:"25",label:"25%"},{id:"50",label:"50%"},{id:"75",label:"75%"},{id:"100",label:"100%"}],id:"windowOpacity",cookie:"window_opacity",title:"Opacity",dispatch:ka}}),Va={fontSize:1,fontFamily:"proportional_sans_serif",fontOpacity:"100",color:"#fff",bgOpacity:"100",bgColor:"black",windowOpacity:"0",windowColor:"#000",edgeStyle:"none"},xa=["quality","volume","captions","transcript","captions_color","captions_font_family","captions_font_size","captions_font_opacity","captions_bg_color","captions_bg_opacity","captions_edge","captions_window_color","captions_window_opacity","audio_language","audio_kind","qoe_survey_vote"];let Ua=null;function Ha(e){const t=Ba(),n=0!==e.config.request.urls.proxy.indexOf(window.location.origin);let i=0;function o(e){let t=null;try{t=No("player")}catch(ke){}if(!t)return null;t=t.substring(1,t.length-1);const n={};t.split("&").forEach((function(e){e=e.split("="),n[e[0]]=Ro(decodeURIComponent(e[1]||""))}));const i=[].concat(e),o=i.reduce((function(e,t){if(t in n){const i=parseFloat(n[t]);return e[t]=isNaN(i)||"quality"===t?n[t]:i,e}return e[t]=null,e}),{});return 1===i.length?o[e]:o}function r(t,n,i=!0){e.doNotTrackEnabled||(n=Ro(n),i&&function(t,n){if(Ua){const i={method:"set",key:`sync_${t}`,val:n,session:e.config.request.session};return function(t){Ua.then(n=>{const i=ft(e.config.request.urls.proxy);return n.contentWindow.postMessage(t,i),n}).catch(t=>{kr.captureException(t,{extra:{proxyUrl:e.config.request.urls.proxy}})})}(i),void function(t){e.config.embed.on_site&&window.postMessage(t,window.location.origin)}(i)}try{window.localStorage.setItem(`sync_${t}`,JSON.stringify(n))}catch(i){}}(t,n),function(t,n){xa.indexOf(t)>=0&&(e.config.request.cookie[t]=n);const i=[];xa.indexOf(t)>=0&&null!==n&&i.push(`${t}=${n}`);const r=o(xa);for(let e in r)e in r&&null!==r[e]&&e!==t&&i.push(`${e}=${r[e]}`);!function(e,t,n,{samesite:i,secure:o}={}){var r=new Date;r.setFullYear(r.getFullYear()+1),r=r.toGMTString();var a=`${e}=${t=Ro(t)}`;a+=`;expires=${r}`,a+=";path=/",a+=`;domain=${n}`,o&&(a+=";secure"),i&&(a+=`;samesite=${i}`);try{document.cookie=a}catch(ke){return!1}}("player",`"${i.join("&")}"`,e.config.request.cookie_domain,{secure:!0,samesite:"none"})}(t,n))}function a(t,n){switch(t){case"sync_quality":e.events.fire(kt._changeQuality,n,!0);break;case"sync_volume":if(e.config.embed.settings.background)break;e.events.fire(kt._changeVolume,n,!0);break;case"sync_captions":if(null===n){e.events.fire(kt._turnCaptionsOff,!0);break}e.events.fire(kt._turnCaptionsOn,n,!0);break;case"sync_login":!function(t){i>4||(i++,t&&!e.config.user.logged_in?e.events.fire(Wt._userLogIn):!t&&e.config.user.logged_in&&e.events.fire(Wt._userLoggedOut))}(n);break;case"sync_active":null!==n&&n!==e.config.request.session&&e.config.embed.autopause&&e.events.fire(Wt._becameInactive)}}return e.events.on(Wt._qualityChanged,(function(e,t){t||r("quality",e)})),function(){const t=(t,n)=>{e.config.request.cookie.volume=Ro(t),n||r("volume",t,!1)};e.events.on(Wt._volumeChanged,t),e.events.on(Wt._mutedChanged,(e,n)=>{e&&t(0,n)})}(),e.events.on(Wt._captionsChanged,(function(t,n){if(t){const i=`${t.language}.${t.kind}`;return e.config.request.cookie.captions=Ro(i),void(n||r("captions",e.config.request.cookie.captions))}e.config.request.cookie.captions=null,n||r("captions",null)})),e.events.on(kt._changeCaptionsStyles,(function(t,n){const{dispatch:i,cookie:o}=t;e.store.dispatch(i(n)),r(`captions_${o}`,Ro(n))})),e.events.on(kt._resetCaptionsStyles,(function(){e.store.dispatch({type:"CAPTIONS_RESET"}),Object.keys(t).forEach(e=>{const{cookie:n}=t[e];r(`captions_${n}`,null)})})),e.events.on(Wt._transcriptChanged,(function(t,n){if(t)return e.config.request.cookie.transcript=Ro(t.language),void(n||r("transcript",e.config.request.cookie.transcript));e.config.request.cookie.transcript=null,n||r("transcript",null)})),function(){const t=["descriptions","main-desc"];e.events.on(kt._changeAudioTrack,(function(n,i){e.config.request.cookie.audio_language=(null==n?void 0:n.language)?Ro(n.language):null,e.config.request.cookie.audio_kind=t.includes(null==n?void 0:n.kind)?Ro(n.kind):null,i||(r("audio_language",e.config.request.cookie.audio_language),r("audio_kind",e.config.request.cookie.audio_kind))}))}(),e.events.on(Wt._qoeSurveyPresented,(function(){const t=Date.now();e.config.request.cookie.qoe_survey_vote=t,r("qoe_survey_vote",t)})),e.events.on(Wt._playButtonPressed,(function(){e.config.embed.settings.background||(r("active",e.config.request.session),e.events.fire(Wt._becameActive))})),e.events.on([Wt._pauseButtonPressed,Wt._ended],(function(){o("active")===e.config.request.session&&r("active",null)})),e.events.on(Wt._userLoggedIn,(function(){r("login",!0)})),n&&!Ua&&(Ua=function(t){return new Promise((n,i)=>{document.createElement("a").href=e.config.request.urls.proxy;const o=document.createElement("iframe");o.src=t,o.setAttribute("title","Vimeo LocalStorage Proxy"),o.setAttribute("aria-hidden","true"),o.setAttribute("hidden",""),o.onload=function(t){const n=ft(e.config.request.urls.proxy);o.contentWindow.postMessage({method:"ping"},n)},o.onerror=function(e){i(e)};const r=setTimeout(()=>{i()},1e4);window.addEventListener("message",(function e(i){0!==t.indexOf(i.origin)||"ready"!==i.data&&"ping"!==i.data||(window.removeEventListener("message",e,!1),clearTimeout(r),n(o))}),!1),document.body.appendChild(o)})}(e.config.request.urls.proxy)),n?window.addEventListener("message",(function(t){const n=ft(e.config.request.urls.proxy);t.origin===n&&"object"==typeof t.data&&"key"in t.data&&"newValue"in t.data?a(t.data.key,t.data.newValue):t.origin===window.location.origin&&t.data.session!==e.config.request.session&&a(t.data.key,t.data.val)}),!1):window.addEventListener("storage",(function(e){var t;if(0===(null==(t=e.key)?void 0:t.indexOf("sync_"))&&e.oldValue!==e.newValue){try{if(window.localStorage.getItem(e.key)!==e.newValue)return}catch(n){}try{a(e.key,JSON.parse(e.newValue))}catch(n){kr.captureException(n,{extra:{key:e.key,oldValue:e.oldValue,newValue:e.newValue}})}}}),!1),{reset:function(){r("login",!!e.config.user.logged_in)}}}function Fa(){}function Ga(e,t,i){const r=function(e){return function(){for(var t=[],n=0;n=8||Xt)&&!o.iPad;let u=!1,_=!1,p=!1,v=!1,m=null,f=!1,h=null,g=!1,b=!1,C=!1,y=!1,T=!1;function L(e){s.element.classList.remove("invisible"),A()}function A(){let e=s.play();return T&&(e=e.catch(O)),e.catch(w).then(R)}function O(e){if(T=!1,P(e))return a.fire(kt._changeMuted,!0,!0),s.play();throw e}function P(e){return e&&("NotAllowedError"===e.name||"AbortError"===e.name)}function w(e){return a.fire(Wt._playRejected,e),new Promise(()=>{})}function R(){a.fire(Wt._playResolved)}function N(e){try{s.currentTime=e}catch(t){}}function k(){v||f||u&&s.paused&&A()}function ne(){let t="none";("metadata"===e.config.request.flags.preload_video||c||o.iOS>=8||Xt)&&(t="metadata"),"auto"===e.config.request.flags.preload_video&&(t="metadata","MediaSourceScanner"===s.currentScannerName&&(t="auto")),o.isGoogleBot&&(t="none"),s.preload=t,a.on(Wt._mousedOver,(function(){e.config.request&&"metadata_on_hover"===e.config.request.flags.preload_video&&!p&&e.verifyConfig().then(()=>(s.preload="metadata",!0)).catch(e=>{})})),a.on(I.LOAD_SEGMENT_FAILED,(function(e){kr.captureException(e)}))}function ie(){y=!1;const t=s.video;if(s.loadVideo(e.config),!t)if(e.config.embed.texttrack){let t=e.config.embed.texttrack;if(s.hasTextTrack(t)){const e=!0;a.fire(kt._turnCaptionsOn,t,e)}}else a.on(I.TEXT_TRACKS_AVAILABLE,()=>{n(),i()}),n(),i();function n(){if(null===e.config.request.cookie.captions||"null"===e.config.request.cookie.captions);else if(s.hasTextTrack(e.config.request.cookie.captions)){const t=!0;a.fire(kt._turnCaptionsOn,e.config.request.cookie.captions,t)}}function i(){Object.keys(l).forEach(t=>{var n;const{dispatch:i,items:o}=l[t],r=null==(n=e.config.request.cookie.captions_styles)?void 0:n[t],a=o.some(e=>e.id===r);e.store.dispatch(i(a?r:Va[t]))})}}function oe(e,t,n,i){if(_){const o=new XMLHttpRequest;o.open("DELETE",`${e}/plays/${t}/${n}?token=${i}`,!1),o.send(),_=!1}}function re(){e.startTime>0&&a.fire(kt._setTime,e.startTime,e.startTime/s.duration)}function ae(){if(e.config.embed.autoplay){var n,i;if(t.get(Zr)&&!t.get(ia))return;if(t.get(Zr)&&!wo(null==(n=e.config.video)?void 0:n.live_event))return void setTimeout((function(){a.fire(Wt._liveEventSafeToPlay),a.fire(Wt._playButtonPressed)}),Po(null==(i=e.config.video)?void 0:i.live_event));a.fire(Wt._playButtonPressed)}}s.element.classList.add("invisible"),d&&s.element.classList.add("hide-webkit-controls"),e.config.video.live_event&&i.classList.add("live-background"),e.config.embed.transparent&&i.classList.add("transparent"),t.watch(Qr,(function(e){"started"===e&&setTimeout(()=>{ie(),s.element.classList.remove("invisible"),a.fire(Wt._liveEventSafeToPlay),a.fire(Wt._playButtonPressed)},12e3)})),t.watch(sa,r),t.watch("ui.video.scaleFactor",e=>{s.element.classList.toggle("vp-telecine-cover",e>1)}),function t(){a.once(Wt._swapVideo,t),s=e.backbone,St(s.on,a.fire,[D,M,B,V,S,x,U,H,F,G,Y,W,$,q.ACTIVATED,q.AVAILABLE,q.DEACTIVATED,q.UNAVAILABLE,K.ARCHIVE_DONE,K.EVENT_ACTIVE,K.EVENT_ENDED,K.EVENT_STARTED,K.STREAM_OFFLINE,K.STREAM_ONLINE,K.BUFFER_GAP_JUMP,K.BUFFER_GAP_JUMP_PREVENT,K.STALL_JUMP,K.SETTINGS_UPDATED,K.LOW_LATENCY_FALLBACK,K.LIVE_STATS_SUCCESS,K.LIVE_STATS_FAILURE,K.LATENCY_UPDATED,j.MEDIASESSION_PAUSE,j.MEDIASESSION_PLAY,j.MEDIASESSION_SEEK_BACKWARD,j.MEDIASESSION_SEEK_FORWARD,j.MEDIASESSION_SEEK_TO,I.AV_DURATION_MISMATCH,I.BANDWIDTH,I.BUFFER_ENDED,I.BUFFER_OCCUPANCY,I.BUFFER_STARTED,I.CHAPTER_CUES_UPDATED,I.CUE_POINT,I.CURRENT_FILE_CHANGE,I.DOWNLOAD_END,I.DOWNLOAD_TIMEOUT,I.DRM_AUTH_SUCCESS,I.DRM_KEY_SWITCH,I.DROPPED_FRAMES,I.MANIFEST_LOADED,I.MANIFEST_TIMEOUT,I.QUOTA_EXCEEDED_ERROR,I.SCANNER_CHANGE,I.STREAM_BUFFER_START,I.STREAM_CHANGE,I.STREAM_CHANGE_START,I.STREAM_TARGET_CHANGE,I.AVAILABLE_STREAMS_CHANGED,I.MEDIA_CAPABILITY_STREAMS_UNSUPPORTED,I.TEXT_TRACKS_AVAILABLE,I.DROPPED_FRAME_PERCENT_EXCEEDED,I.LOAD_SEGMENT_FAILED,I.AUDIO_TRACK_CHANGED,I.SEGMENT_CUES_LOADED,z.CAMERA_CHANGE,z.CAMERA_UPDATE,z.MOTION_END,z.MOTION_START,z.SPATIAL_UNSUPPORTED,z.WEBVR_ENTER,z.WEBVR_EXIT,z.WEBVR_HARDWARE_AVAILABLE,E.DURATION_CHANGE,E.ENDED,E.ERROR,E.LOAD_START,E.LOADED_DATA,E.LOADED_METADATA,E.PAUSE,E.PLAY,E.PLAYING,E.PROGRESS,E.RATE_CHANGE,E.RESIZE,E.SEEKED,E.SEEKING,E.STALLED,E.TIME_UPDATE,E.VOLUME_CHANGE,E.WAITING,E.ENTER_PICTURE_IN_PICTURE,E.LEAVE_PICTURE_IN_PICTURE,E.WEBKIT_BEGIN_FULLSCREEN,E.WEBKIT_END_FULLSCREEN])}(),St($r.on,a.fire,[Gr.connected,Gr.disconnected]),ne(),a.on(E.LOADED_METADATA,(function(t){e.config.video.duration=s.duration,e.config.video.video_width=s.videoWidth,e.config.video.video_height=s.videoHeight})),a.on(E.DURATION_CHANGE,(function(t){e.config.video.duration=s.duration})),a.on(I.SCANNER_CHANGE,()=>{ne(),setTimeout(()=>{a.fire(X.settingVolume?kt._enableVolume:kt._disableVolume),a.fire(X.textTracks?kt._enableCaptions:kt._disableCaptions)},0),kr.captureBreadcrumb(`Scanner changed to ${s.currentScannerName}`,{},"video")}),a.on([K.EVENT_ACTIVE,K.EVENT_STARTED,K.EVENT_ENDED,K.ARCHIVE_DONE],n=>{Object.assign(e.config.video.live_event,n),t.dispatch((e=>({type:"LIVE_UPDATE",payload:e}))(n))}),a.on(Wt._playButtonPressed,(function(){e.displayContext!==e.backbone?e.displayContext.play():function(){if("disable"!==e.config.video.privacy&&e.config.video.spatial&&o.iOS&&!y||s.element.classList.remove("invisible"),m)return a.fire(Wt._error,m),void e.preview.show();if(u=!0,f)e.preview.show();else{if(s.off(E.PLAY,L),c&&(g=!0,a.fire(kt._forceFullscreen)),t.get(ia)&&(T=!0),!p)return e.config.video.spatial&&o.iOS&&!y?(y=!0,a.fire(kt._showOverlay,"spatial-redirect","browser-support"),void a.once(E.PLAY,L)):void A().catch(console.error);p&&k()}}()})).on(Wt._pauseButtonPressed,()=>{u=!1,e.displayContext.pause()}).on(Wt._becameInactive,(function(){(window.location.search.indexOf("autopause=0")<0&&!s.paused&&!e.config.embed.settings.background||u)&&(u=!1,a.fire(Wt._pauseButtonPressed))})),a.on(E.ERROR,(function(t){if(P(t)&&!T){if(e.config.embed.autoplay=0,s.pause(),e.startTime)return N(e.startTime),void a.fire(Wt._paused,s.currentTime);if(0===s.currentTime)return void a.fire(kt._reset);a.fire(Wt._paused,s.currentTime)}})),a.on(E.PLAY,(function(e){s.element.classList.remove("invisible")})),a.on(E.PAUSE,(function(e,t){v||a.fire(Wt._paused,e,t)})),a.on(E.TIME_UPDATE,(function({currentTime:e}){})),a.on(E.ENDED,(function(t){v||e.config.embed.loop||(g&&a.fire(Wt._fullscreenButtonPressed),u=!1,a.fire(Wt._ended,t))})),a.on(I.DRM_AUTH_SUCCESS,()=>{_=!0}),a.on(S,()=>{p=!0,a.once(E.TIME_UPDATE,()=>{a.fire(Wt._firstTimeUpdate)})}),a.on(I.BUFFER_STARTED,()=>{}),function(){let t=!1,n=!1;function i(o){if(t)return;if(o.name.includes(Z))return;if(o.name===Q)return void a.fire(kt._disableCaptions);kr.captureBreadcrumb(o.name,{message:o.message},"telecine error","error");let r=e.config.video.live_event?.25:.01;if(o.name===J&&!n){n=!0,r=.5;const t=e.config.request,i=t.files,a=i.dash.cdns.fastly_skyfire.url,s=i.hls.cdns.fastly_skyfire.url,l=i.dash.cdns.akfire_interconnect_quic.url,c=i.hls.cdns.akfire_interconnect_quic.url,d=i.progressive.length?i.progressive[0].url:null,u=i.progressive.length?i.progressive[0].id:null,_=t.file_codecs,p=e.config.video.file_codecs,v=e.config.user.logged_in,m=t.build.js;kr.captureBreadcrumb(o.name,{fastly_dash_url:a,fastly_hls_url:s,akamai_dash_url:l,akamai_hls_url:c,prog_url:d,prog_id:u,file_codecs:_,video_file_codecs:p,logged_in:v,version:m},"MediaUrlBadRequest config","error")}const s="string"!=typeof o.message?o.name:o.message,l=new Error(s);l.name=o.name;const c="object"==typeof o.message?o.message:null;kr.captureException(l,c,r);const d=pn[o.name];if("function"!=typeof d)return;const u=d();if(u.final&&a.off(E.ERROR,i),m=u.deferred?u.id:null,o.name===ee){let t=e.config.request.dynamic_drm_translation_map,n=o.message.code;t&&n&&t[n]&&(u.title=t[n].title,u.message=t[n].msg),kr.captureBreadcrumb("DRM failure",o,"video")}a.fire(Wt._error,u.id,u,s)}window.addEventListener("pagehide",()=>{t=!0},!1),a.on(E.ERROR,i),a.on("test-error",i)}(),a.on(kt._changeLoop,(function(t){const n=!!t&&("boolean"==typeof o.iOS||o.iOS>=10);e.config.embed.loop=n,s.loop=n})),a.fire(kt._changeLoop,e.config.embed.loop),a.on(Wt._chapterSeekAttempted,(t,n)=>{e.events.fire(Wt._chapterSeek,n),e.events.fire(kt._seek,t),p||a.fire(Wt._playButtonPressed)}),a.on(Wt._scrubbingStarted,(function(){f||(u=!s.paused,v=!0,s.pause())})),a.on(Wt._scrubbingEnded,(function(e){v=!1,p?e||k():a.fire(Wt._playButtonPressed)})),a.on(kt._seek,(function(e){f||a.fire(kt._setTime,e)})),a.on(kt._setTime,(function(t){p||e.fragmentsHandler.checkForNewFragment(t,s.duration),N(t)})),function(){a.on(kt._changeVolume,(function(t,n,i){i&&(t+=s.volume),t=Tt(t=gt(t,0,1)),e.displayContext!==s&&(e.displayContext.volume=t),s.volume=t,e.events.fire(Wt._volumeChanged,t,n),s.muted&&e.events.fire(kt._changeMuted,!1,n)})),a.on(kt._changeMuted,(function(t,n=!1){s.muted=!!t,e.displayContext!==s&&(e.displayContext.muted=t),e.events.fire(Wt._mutedChanged,t,n)})),a.on(E.VOLUME_CHANGE,()=>{a.fire(Wt._volumeChanged,s.volume,!0)});const t=e.config.request.cookie.volume;a.fire(kt._changeVolume,t,!0),a.fire(kt._changeMuted,e.config.embed.muted,!0)}(),function(){let e;a.on(kt._changeQuality,(function(n,i){(s.video.currentFile.mime===Nt.dash||t.get(ia))&&(i=!0),e=i,s.quality=n})),a.on(x,(function(t){a.fire(Wt._qualityChanged,t,e)}))}(),function(){let e=s.playbackRate;a.on(E.RATE_CHANGE,(function(t){s.playbackRate!==e&&(a.fire(Wt._playbackRateChanged,s.playbackRate,e),e=s.playbackRate)})),a.on(kt._changePlaybackRate,(function(e){s.playbackRate=e})),a.on(Wt._loadVideo,(function(){try{s.playbackRate=1}catch(e){}}))}(),function(){function e(e){f=!0,h=e,"interactive"!==e&&p&&!C&&(u=u||!s.paused,s.pause(),a.fire(Wt._paused,s.currentTime))}function t(){const e=h===ko.LEAD_CAPTURE_FORM&&!p;f=!1,h=null,e?a.fire(Wt._playButtonPressed):u&&!C&&(g||b||!c||a.fire(kt._forceFullscreen),k())}a.on(Wt._overlayOpened,e),a.on(Wt._accessGateOpened,e),a.on(Wt._overlayClosed,t),a.on(Wt._accessGateClosed,t),a.on(Wt._menuVisibilityChanged,(function(n,i){i&&"preact-menu"!==i&&i.isCentered()&&(i.isVisible()?e():t())}))}(),a.on(Wt._popupOpened,(function(e){p&&!C&&(u=!s.paused,s.pause())})),a.on(Wt._popupClosed,(function(e){C||k()})),a.on(Wt._didEnterFullscreen,(function(t,n){s.element.classList.remove("hide-webkit-controls"),t&&(b=!0),t||(p||o.browser.safari||(s.poster=e.preview.getThumbnail()),g=!0,setTimeout(()=>{s.textTracks.forEach(e=>{"hidden"===e.mode&&(e.mode="showing")})},500)),n||!o.windowsPhone||o.browser.edge||a.fire(kt._toggleNativeControls,!0)})),a.on(Wt._didExitFullscreen,(function(e){s.poster="",e||s.pause(),p||s.element.classList.add("invisible"),g=!1,b=!1,d&&s.element.classList.add("hide-webkit-controls"),s.textTracks.forEach(e=>{"showing"===e.mode&&(e.mode="hidden")})})),a.on(S,(function(){s.poster=""})),a.on(kt._toggleNativeControls,(function(e){if(e)return s.controls=!0,void i.classList.add("native-controls");s.controls=!1,i.classList.remove("native-controls")})),a.on(Wt._assetUrlsRefreshed,(function(){ie()})),a.on(Wt._configChanged,(function(){ie(),ae()})),a.on(kt._reset,(function(){if(e.segmentedPlaybackEnabled)re();else{const t=e.element.querySelector("[telecine-snapshot]");t&&"none"!==t.style.display||(e.preview.show(),s.element.classList.add("invisible")),setTimeout(()=>{s.unload(),a.fire(Wt._paused,s.currentTime),p=!1,u=!1,m=null},300)}})),function(){let t;a.on(kt._turnCaptionsOn,(function(n,i=!1){t=i;try{(e.config.request.flags.ott||"dev"===e.config.request.build.js||"gedevplayer.vimeows.com"===e.config.player_url)&&s.videoElement&&s.videoElement.setAttribute("crossorigin","anonymous"),s.enableTextTrack(n)}catch(o){}})).on(kt._turnCaptionsOff,(function(n=!1){t=n,e.config.request.flags.ott&&s.videoElement&&s.videoElement.removeAttribute("crossorigin"),s.disableTextTrack()})).on(kt._requestCompleteLiveSubtitles,(function(){s.requestCompleteLiveSubtitles()})).on(kt._updateLiveSubtitleRequests,(function(e){s.setCaptionsShouldLoad(e)})),a.on(D,(function(e,n){e&&s.enableTextTrack(e.id),a.fire(Wt._captionsChanged,e,t||n)})),a.on(E.WEBKIT_BEGIN_FULLSCREEN,(function(){var e;null==(e=s.videoElement)||e.setAttribute("crossorigin","anonymous")})),a.on(E.WEBKIT_END_FULLSCREEN,(function(){var t;e.config.request.flags.ott||null==(t=s.videoElement)||t.removeAttribute("crossorigin")}))}(),a.on(q.AVAILABLE,(function({type:t}){if(!e.config.request.drm)switch(t){case"AirPlay":a.fire(Wt._airPlayAvailable)}})),a.on(q.UNAVAILABLE,(function({type:t}){if(!e.config.request.drm)switch(t){case"AirPlay":a.fire(Wt._airPlayNotAvailable)}})),a.on(q.ACTIVATED,(function({type:e}){switch(C=!0,e){case"AirPlay":a.fire(Wt._airPlayActivated)}})),a.on(q.DEACTIVATED,(function({type:e}){switch(C=!1,e){case"AirPlay":a.fire(Wt._airPlayDeactivated)}})),a.on(Wt._airPlayButtonPressed,(function(){s.showExternalDisplayPicker("AirPlay")})),a.on(kt._activatePictureInPicture,()=>{e.canPlayPictureInPicture&&s.requestPictureInPicture()}),a.on(kt._deactivatePictureInPicture,()=>{s.pictureInPictureEnabled&&s.exitPictureInPicture()}),ie(),o.spatialPlayback?(a.fire(kt._attachSpatialPlaybackEvents),a.on([E.PLAY,E.SEEKED],()=>{a.fire(kt._revealSpatialControls)}),a.on(z.SPATIAL_UNSUPPORTED,()=>{p?a.fire(Rt._spatialFailure,f):a.once(Wt._firstTimeUpdate,()=>{a.fire(Rt._spatialFailure,f)})})):a.once(Wt._firstTimeUpdate,()=>{e.config.video.spatial&&a.fire(Rt._spatialUnsupported,f)}),window.addEventListener("beforeunload",()=>{const t=e.config.request.drm;t&&oe(t.hoover_url,t.user,t.asset,t.hoover_token)},!1),a.on(Wt._loadVideo,()=>{const t=e.config.request&&e.config.request.drm;t&&oe(t.hoover_url,t.user,t.asset,t.hoover_token)}),e.events.on(kt._destroy,()=>s.destroy()),"mediaSession"in navigator&&(a.on(E.LOADED_METADATA,()=>(navigator.mediaSession.setActionHandler("play",()=>{A().then(()=>s.fire(j.MEDIASESSION_PLAY)).catch(console.error)}),navigator.mediaSession.setActionHandler("pause",()=>{s.pause(),a.fire(j.MEDIASESSION_PAUSE)}),navigator.mediaSession.setActionHandler("seekto",e=>{s.currentTime=e.seekTime,a.fire(j.MEDIASESSION_SEEK_TO)}),navigator.mediaSession.setActionHandler("seekforward",()=>{s.currentTime=Math.min(s.duration,s.currentTime+10),a.fire(j.MEDIASESSION_SEEK_FORWARD)}),void navigator.mediaSession.setActionHandler("seekbackward",()=>{s.currentTime=Math.max(0,s.currentTime-10),a.fire(j.MEDIASESSION_SEEK_BACKWARD)}))),a.on(E.PLAY,()=>(()=>{const t={title:e.config.video.title,artist:`from ${e.config.video.owner.name}`,artwork:[{src:n(e.config.video.thumbnail_url,{w:"640"})}]};navigator.mediaSession.metadata=new MediaMetadata(t)})())),e.ready().then(()=>(setTimeout(()=>ae(),0),re(),null)).catch(e=>{}),a.fire(Wt._videoModuleReady)}function Ya(e){return"dev"===e.request.build.js?"dev":"4.39.41"}function Wa(e,t){var n,i,r,a,s,l,c=0,u={},_=new d,p=!1;function v(){return Date.now?Date.now():(new Date).getTime()}function m(){const t=e.backbone.getEffectByName("ThreeSixtyEffect");return o.spatialPlayback&&t?t.isStereo()?2:1:0}function f(){n=!1,i=e.backbone?e.backbone.currentTime:0,r=0,a=0,s=0,l=!1}function g(t,n,i,o){e.verifyConfig().then(()=>{let r=n;r.signature=e.config.request.signature,r.session=e.config.request.session,r.time=e.config.request.timestamp,r.expires=e.config.request.expires;const a=JSON.stringify(r);if(null===r.sessionTime&&(kr.captureBreadcrumb("sessionTime is null breadcrumbs",{endpoint:t,allParams:r}),kr.captureException("sessionTime is null when making stats request")),!e.config.request.urls.player_telemetry_url)throw new Error("Stats logging failed due to lack of telemetry host");const s=e.config.request.urls.player_telemetry_url+t;return _.logRequestPromiseWithUrl(s,a,!i).then(t=>{if(200!==t.status&&o<2){if(410===t.status)return void e.events.once(Wt._assetUrlsRefreshed,()=>{g(s,n,i,o+1)});setTimeout(()=>{g(s,n,i,o+1)},1e3)}}).catch(e=>{throw e})}).catch(e=>{})}function b(n,i,o){const a=e.backbone.currentFile||{};let{id:s=0,mime:l=Nt.h264,metadata:{profile:c=-1}={}}=a;l===Nt.dash&&({id:s=0,profile:c=-1}=u),e.performDelegateAction(Yt,(d,u={})=>{let _=t=>{var d,_;let p=h(h({referrer:e.config.request.referrer,embed:!e.config.embed.on_site,context:e.config.embed.context,autoplay:u.continuous?2:e.config.embed.autoplay,loop:e.config.embed.loop?1:0,id:e.config.video.id,vodId:(null==(d=e.config.video.vod)?void 0:d.id)?e.config.video.vod.id:null,vodSaleId:(null==(_=e.config.video.vod)?void 0:_.sale_id)?e.config.video.vod.sale_id:null,sessionTime:Tt(r),videoShape:e.config.video.spatial?"mono"!==e.config.video.spatial.stereo_mode?2:1:0,spatialPlayback:m(),userId:e.config.user.id,userAccountType:e.config.user.account_type,userIsMod:e.config.user.mod?1:0,teamOriginUserId:e.config.user.team_origin_user_id?e.config.user.team_origin_user_id:null,teamId:e.config.user.team_id?e.config.user.team_id:null,ownerId:e.config.video.owner.id,ownerAccountType:e.config.video.owner.account_type,privacy:e.config.video.privacy,rating:e.config.video.rating?e.config.video.rating.id:null,type:"html",videoFileId:Number.isInteger(Number(s))?s:"0",delivery:qt[l],profileId:c,quality:a.metadata?a.metadata.quality:null,duration:Tt(e.config.video.duration),seconds:Tt(i)},t),{},{playbackRate:e.backbone.playbackRate,build:Ya(e.config)},Fo(e.config));g(n,p,o)};const p=e.config.video.live_event?1:0;let v=t.get(ea),f={isLive:p};if(p){if(!v)return void T(`https://${e.config.vimeo_url}/live_event/status?clip_id=${e.config.video.id}`).json().then(e=>(e&&e.ingest&&(t.dispatch((e=>({type:"LIVE_SET_START_TIME",payload:e}))(e.ingest.start_time)),v=t.get(ea)),v&&(f.liveStartTime=v),_(f),e)).catch(e=>{});f.liveStartTime=v}_(f)})}function C(){!l&&e.playLoggingEnabled&&(l=!0,b("/log/play",e.backbone.currentTime))}function y(t=0,i=!1,o=!0){if(e.playLoggingEnabled&&l&&!p){var r=v();o&&a+1e3>r||(a=r,n||b("/log/partial",t,i))}}function L(t,n){var i,o;n=n||{};var r={referrer:e.config.request.referrer,embed:!e.config.embed.on_site,context:e.config.embed.context,id:e.config.video.id,vodId:(null==(i=e.config.video.vod)?void 0:i.id)?e.config.video.vod.id:null,vodSaleId:(null==(o=e.config.video.vod)?void 0:o.sale_id)?e.config.video.vod.sale_id:null,userId:e.config.user.id,userAccountType:e.config.user.account_type,userIsMod:e.config.user.mod?1:0,ownerId:e.config.video.owner?e.config.video.owner.id:0,duration:Tt(e.config.video.duration),seconds:Tt(e.backbone.currentTime),playbackRate:e.backbone.playbackRate,build:Ya(e.config)};for(var a in n)n.hasOwnProperty(a)&&(r[a]=n[a]);g("/log/"+t,r)}return f(),function(){e.events.on(E.TIME_UPDATE,(function({currentTime:e,duration:t,timeProgress:o,playbackRate:a}){var l=Math.floor(e);if(!n&&s+1e3i&&!t&&(r+=(e-i)/a),i=e}l%30==0&&y(e)})),e.events.on(Wt._playbackRateChanged,(function(t,n){L("playback_rate_change",{oldPlaybackRate:n}),y(e.backbone.currentTime)})),e.events.once(S,(function(){t.get(Zr)&&t.get(ia)?e.events.once(Wt._firstTimeUpdate,()=>C()):C()})),e.events.on(I.SCANNER_CHANGE,(function(t){p=!0,e.events.once(S,()=>{p=!1})})),e.events.on(Wt._paused,(function(t){0===e.backbone.duration&&0===e.backbone.currentTime||e.backbone.ended||y(t)})),e.events.on(E.SEEKED,(function({currentTime:t}){(e.backbone.isLive()||0!==e.backbone.duration||0!==e.backbone.currentTime)&&(c=t,n||y(c))})),e.events.on(Wt._scrubbingStarted,(function(){s=v(),n=!0})),e.events.on(Wt._scrubbingEnded,(function(){i=e.backbone.currentTime,n=!1,y(i)})),e.events.on(Wt._prefsButtonPressed,(function(){y(e.backbone.currentTime)})),e.events.on(Wt._ended,(function(){e.backbone.isLive()||(r+=e.config.video.duration-i),y(e.backbone.isLive()?i:e.config.video.duration,!1,!1)})),e.events.on(I.STREAM_CHANGE,(function(e){u=e}));let o=[],a=!1;function l(){o.length&&e.performDelegateAction(Yt,(t,n={})=>{var i,r;g("/log/spatial",{embed:!e.config.embed.on_site,id:e.config.video.id,context:e.config.embed.context,ownerId:e.config.video.owner?e.config.video.owner.id:0,referrer:e.config.request.referrer,vodId:(null==(i=e.config.video.vod)?void 0:i.id)?e.config.video.vod.id:null,vodSaleId:(null==(r=e.config.video.vod)?void 0:r.sale_id)?e.config.video.vod.sale_id:null,userId:e.config.user.id,userAccountType:e.config.user.account_type,userIsMod:e.config.user.mod?1:0,teamOriginUserId:e.config.user.team_origin_user_id?e.config.user.team_origin_user_id:null,teamId:e.config.user.team_id?e.config.user.team_id:null,build:Ya(e.config),motionLog:JSON.stringify(o)},!1)})}e.events.on(z.MOTION_START,()=>{a=!0,function t(){let n=e.backbone.getEffectByName("ThreeSixtyEffect").currentCoordinates,i=Math.round(100*n.lat)/100,s=Math.round(100*n.long)/100;const l={sessionTime:r,videoTime:e.backbone.currentTime,coordinates:{lat:i,lon:s}};o.push(l),setTimeout(()=>{a&&t()},1e3)}()}),e.events.on(z.MOTION_END,()=>{a=!1,l()}),e.events.on(Wt._loadVideo,()=>{l(),o=[]}),window.addEventListener("pagehide",(function(){if(e.backbone&&e.backbone.currentTime>0){const t=!0,n=!1;y(e.backbone.currentTime,t,n),l()}}),!1)}(),function(){let t;[{type:"share_press",event:Wt._shareButtonPressed},{type:"facebook_press",event:Wt._facebookButtonPressed},{type:"twitter_press",event:Wt._twitterButtonPressed},{type:"tumblr_press",event:Wt._tumblrButtonPressed},{type:"email_press",event:Wt._emailButtonPressed},{type:"embed_press",event:Wt._embedButtonPressed},{type:"login_success",event:Wt._userLoggedIn},{type:"airplay",event:Wt._airPlayActivated},{type:"vod_press",event:Wt._vodButtonPressed},{type:"collection_press",event:Wt._collectionsButtonPressed}].forEach((function(t){e.events.on(t.event,function(e){return function(){L(e)}}(t.type))})),e.events.on(Wt._outroDataReceived,(function(e){t=e})).on(Wt._outroDisplayed,(function(){var n,i,o={outroType:e.config.embed.outro,ownerAccountType:e.config.video.owner.account_type,playerWidth:e.element.clientWidth,playerHeight:e.element.clientHeight};(null==(n=t)||null==(i=n.videos)?void 0:i.length)&&(o.outroVideos=t.videos.map(e=>e.id).join(",")),L("outro_displayed",o)})).on(Wt._outroVideoPressed,(function(t){L("outro_video_press",{ownerAccountType:e.config.video.owner.account_type,videoId:t})})).on(Wt._followButtonPressed,(function(){L("outro_follow_press",{add:!e.config.user.following})})).on(Wt._outroCtaPressed,(function(t){L("outro_cta_press",{ownerAccountType:e.config.video.owner.account_type,link:t})})).on(Wt._outroLinkPressed,(function(t){L("outro_link_press",{ownerAccountType:e.config.video.owner.account_type,link:t})})).on(Wt._outroImagePressed,(function(t){L("outro_image_press",{ownerAccountType:e.config.video.owner.account_type,link:t})})).on(Wt._likeButtonPressed,(function(){L("like_press",{add:!e.config.user.liked})})).on(Wt._watchLaterButtonPressed,(function(){L("watch_later_press",{add:!e.config.user.watch_later})})).on(Wt._popupOpened,(function(e){0===e.indexOf("login-")&&L("login_attempt")})).on(Wt._captionsChanged,(function(e,t){t||(e?L("text_track_change",{textTrackLanguage:e.language,textTrackKind:e.kind}):L("text_track_change"))})).on(Wt._badgePressed,(function(e){1!==e&&12!==e||L("badge_press",{badgeId:e})})).on(Wt._cardPressed,(function(t){L("card_press",{ownerAccountType:e.config.video.owner.account_type,cardId:t,cardType:"link"})})).on(Wt._cardDisplayed,(function(t,n){e.config.embed.editor||L("card_displayed",{ownerAccountType:e.config.video.owner.account_type,cardId:t,cardType:n.url?"link":"text"})}))}(),e.events.on(Wt._configChanged,(function(e){e&&f()})),e.events.fire(Wt._statsModuleReady),{}}const $a={settings:{}};function qa(e=$a,{type:t,payload:n}){switch(t){case"CONFIG_LOAD":return h(h({},e),n.embed);default:return e}}var Ka=Object.freeze({__proto__:null,default:qa,transparent:e=>e.embed.transparent});function ja(e={},{type:t,payload:n}){switch(t){case"CONFIG_LOAD":return h(h({},e),n.video);default:return e}}const za=e=>e.video.height/e.video.width;var Xa=Object.freeze({__proto__:null,default:ja,ratio:za});function Za(e={},t){switch(t.type){case"CONTAINER_RESIZE":return h(h({},e),{},{width:t.payload.width,height:t.payload.height});default:return e}}var Qa=Object.freeze({__proto__:null,default:Za,width:e=>e.ui.container.width,height:e=>e.ui.container.height});function Ja(e={},t){switch(t.type){case"PLAYER_CONTAINER_RESIZE":return h(h({},e),{},{width:t.payload.width,height:t.payload.height});default:return e}}var es=Object.freeze({__proto__:null,default:Ja,width:e=>e.ui.playercontainer.width,height:e=>e.ui.playercontainer.height});function ts(e={},t){switch(t.type){case"PREVIEW_SET_SIZE":return h(h({},e),{},{width:t.payload.width,height:t.payload.height});default:return e}}var ns=Object.freeze({__proto__:null,default:ts,scaleFactor:e=>ht({width:e.ui.preview.width,height:e.ui.preview.height,elementWidth:_s.width(e),elementHeight:_s.height(e)}).scaleFactor});function is(e=Va,t){switch(t.type){case"CAPTIONS_RESET":return h(h({},e),Va);case"CAPTIONS_SET_FONT_SIZE":return h(h({},e),{},{fontSize:t.payload});case"CAPTIONS_SET_COLOR":return h(h({},e),{},{color:t.payload});case"CAPTIONS_SET_FONT_FAMILY":return h(h({},e),{},{fontFamily:t.payload});case"CAPTIONS_SET_FONT_OPACITY":return h(h({},e),{},{fontOpacity:t.payload});case"CAPTIONS_SET_BACKGROUND_OPACITY":return h(h({},e),{},{bgOpacity:t.payload});case"CAPTIONS_SET_BACKGROUND_COLOR":return h(h({},e),{},{bgColor:t.payload});case"CAPTIONS_SET_WINDOW_COLOR":return h(h({},e),{},{windowColor:t.payload});case"CAPTIONS_SET_WINDOW_OPACITY":return h(h({},e),{},{windowOpacity:t.payload});case"CAPTIONS_SET_EDGE_STYLE":return h(h({},e),{},{edgeStyle:t.payload});default:return e}}var os=Object.freeze({__proto__:null,default:is,calculatedFontSize:e=>Math.max(10,Math.round(.045*_s.height(e)*e.ui.captions.fontSize)),fontFamily:e=>e.ui.captions.fontFamily,fontOpacity:e=>e.ui.captions.fontOpacity,color:e=>e.ui.captions.color,backgroundOpacity:e=>e.ui.captions.bgOpacity,backgroundColor:e=>e.ui.captions.bgColor,edgeStyle:e=>e.ui.captions.edgeStyle});const rs=e=>{const t=t=>Math.min(e.height(t)/za(t),e.width(t)),n=t=>Math.min(e.width(t)*za(t),e.height(t)),i=i=>ht({width:t(i),height:n(i),elementWidth:e.width(i),elementHeight:e.height(i)}).scaleFactor,o=e=>i(e)>1,r=n=>n.embed.transparent&&!o(n)?t(n):e.width(n),a=t=>t.embed.transparent&&!o(t)?n(t):e.height(t),s=e=>e.embed.transparent&&!o(e)?"contain":"100% 100%",l=ne(e=>({width:r(e),height:a(e)})),c=ne(e=>({ratio:za(e),size:s(e)}));return{scaleFactor:i,width:r,height:a,size:s,boundingRect:l,settings:c}},as={xxs:0,xs:430,sm:600,md:960,lg:1280,xl:1600,xxl:1920},ss=(e,t)=>{const n=ne(n=>({width:e(n),height:t(n)})),i=e=>{const{height:t,width:n}=e.video;return t>n},o=n=>{const o=e(n),r=t(n);if(i(n))return o<225;const a=l(n.embed.settings.customLogo)&&o<300||r<169,s=!l(n.embed.settings.customLogo)&&(o<338||r<190);return a||s},r=t=>{const n=e(t);if(i(t))return n<300;const o=l(t.embed.settings.customLogo)&&n<=375,r=!l(t.embed.settings.customLogo)&&n<=450;return o||r},a=t=>{const n=e(t);return n>=as.xxs&&n{const n=e(t);return n>=as.xs&&n{const n=e(t);return n>=as.sm&&n{const n=e(t);return n>=as.md&&n{const n=e(t);return n>=as.lg&&n{const n=e(t);return n>=as.xl&&ne(t)>=as.xxl;return{width:e,height:t,breakpoint:e=>{const t={xxs:a,xs:s,sm:c,md:d,lg:u,xl:_,xxl:p};return Object.keys(as).find(n=>t[n](e))},xxl:p,xl:_,lg:u,md:d,sm:c,xs:s,xxs:a,mode:e=>o(e)?"tiny":r(e)?"mini":"normal",isMiniMode:r,isTinyMode:o,isVerticalVideo:i,boundingRect:n}};var ls=Object.freeze({__proto__:null,scaleFactor:e=>ht({width:e.video.width,height:e.video.height,elementWidth:_s.width(e),elementHeight:_s.height(e)}).scaleFactor});const cs=e=>_s.isVerticalVideo(e)?_s.isTinyMode(e):_s.isMiniMode(e)||_s.isTinyMode(e)||_s.xs(e)||_s.xxs(e);var ds=Object.freeze({__proto__:null,isPrefsMenuCentered:e=>o.touch&&_s.width(e)<415,isMenuFullWidth:cs,isMenuVerticalVideoMode:e=>!cs(e)&&_s.isVerticalVideo(e)&&_s.xxs(e)&&_s.height(e)>300,doMenuItemsWrap:e=>_s.width(e)<240});function us(e={},t,n){return{container:Za(e.container,t),preview:ts(e.preview,t),captions:is(e.captions,t),playercontainer:Ja(e.playercontainer,t)}}const _s=ss(e=>ms.width(e),e=>ms.height(e)),ps=ss(e=>vs.width(e),e=>vs.height(e)),vs=rs(Qa),ms=rs(es);var fs=Object.freeze({__proto__:null,default:us,container:Qa,player:_s,appLayout:vs,playerLayout:ms,preview:ns,video:ls,controlbar:ds,captions:os,playercontainer:es,app:ps});function hs(e={},t){const n=h(h({},function(e={},t){switch(t.type){case"CONFIG_LOAD":return h(h({},e),t.payload);default:return e}}(e,t)),{},{embed:qa(e.embed,t),video:ja(e.video,t),liveEvent:Xr(e.liveEvent,t)});return h(h({},n),{},{ui:us(e.ui,t)})}var gs=Object.freeze({__proto__:null,default:hs,embed:Ka,video:Xa,liveEvent:ca,ui:fs}),Es=re((function(e){!function(){var t={templates:{},render:function(e,n){return t.templates[e]?t.templates[e].call(t,n||{}):""},map:{"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},escape:function(e){return null==e?"":String(e).replace(/[&<>"'\\/]/g,(function(e){return t.map[e]}))},helpers:{}};t.templates.logo=function(e){return'Vimeo'},t.templates.outer=function(e){var t='
';return t+='
',t+='"},t.templates.threesixty_reminder=function(e){var t='
';return e.showArrows&&(t+='
'),t+"
"+e.text+"
"},t.templates.icon_check=function(e){return""},t.templates.icon_clock=function(e){return''},t.templates.icon_close=function(e){return''},t.templates.icon_embed=function(e){return''+e.title+''},t.templates.icon_facebook=function(e){return''},t.templates.icon_follow=function(e){return''},t.templates.icon_mail=function(e){return''+e.title+''},t.templates.icon_prev=function(e){return''},t.templates.icon_tumblr=function(e){return''+e.title+''},t.templates.icon_twitter=function(e){return''},t.templates.icon_vod=function(e){return''},t.templates.icon_vod_download=function(e){return''},t.templates.icon_vod_rent=function(e){return''},t.templates.icon_vod_subscribe=function(e){return''},t.templates.error=function(e){var t='
'+e.aria_label+"
";return e.title&&(t+="

"+e.title+"

"),e.message&&(t+="

"+e.message+"

"),t+"
"},t.templates.outro_vod=function(e){var t='"},t.templates.share=function(e){var t='

'+e.strings.share+'

",e.embed&&(t+=' "),e.shareUrl&&(t+=' "),t+="
",e.embed&&(t+='

'+e.strings.embedTitle+'

'+e.strings.embedSubtitle+'

'+e.strings.copy+" "),t+="
",e.customizeEmbed&&(t+='

'+e.strings.customize+"

"),t+="
"),t+"
"},e.exports?e.exports=t:window.Aftershave=t}()}));const bs=function(e){return(t,...n)=>(n.forEach(n=>{for(const i in n){const o=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(t,i,Object.assign(o,e))}}),t)}({enumerable:!0,configurable:!0,writeable:!1});function Cs(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function ys(){}function Ts(e){var t=e();if(t&&t.then)return t.then(ys)}function Ls(e){return function(){for(var t=[],n=0;n0&&o>0,s=e>0&&n>0;(c()||!a||s)&&t.dispatch(((e,t)=>({type:"CONTAINER_RESIZE",payload:{width:e,height:t}}))(e,n))}(),function(){const{width:e,height:n}=mt(a),i=t.get("ui.player.width"),o=t.get("ui.player.height"),r=i>0&&o>0,s=e>0&&n>0;(c()||!r||s)&&t.dispatch(((e,t)=>({type:"PLAYER_CONTAINER_RESIZE",payload:{width:e,height:t}}))(e,n))}()}function c(){return n.parentElement===document.body}function d({size:e,ratio:t,bottom:i}){c()&&(r.classList.toggle("vp-center","contain"===e),function(e,t){[].concat(["height","max-width","max-height","bottom"]).map(t=>e.style.removeProperty(t))}(n),"contain"!==e?i>0&&At(n,{height:`calc(100% - ${i}px)`,bottom:`${i/2}px`}):At(n,i>0?{maxWidth:`calc((100vh - ${i}px) / ${t})`,maxHeight:`calc(100vh - ${i}px)`,height:`calc(${t} * 100vw)`,bottom:`${i/2}px`}:{maxWidth:`calc(100vh / ${t})`,height:`calc(${t} * 100vw)`}))}t.watch("ui.appLayout.settings",d),d(t.get("ui.appLayout.settings")),new ae(s).observe(r),window.addEventListener("orientationchange",s),e.events.on(Wt._didEnterFullscreen,s),e.events.on(Wt._didExitFullscreen,s),e.events.on(Wt._configChanged,s),l(),o(),i(),Cs()}function Ss(e){return e.account_type&&"basic"!==e.account_type&&!/_lapsed|_expired/.test(e.account_type)}function Is(e){const{videoObject:t}=Ps();null==e||!e.length||null!=t&&t.transcript||Os({transcript:e.map(({text:e})=>e).join(" ")})}function Os(e){const{videoObject:t,element:n}=Ps();if(t)try{Object.assign(t,e),n.textContent=JSON.stringify(t)}catch(i){}}function Ps(){const e=document.body.querySelector("script[type='application/ld+json']");if(e)try{return{videoObject:JSON.parse(e.textContent),element:e}}catch(t){}return{}}function ws(e,t){switch(e.view){case Kt.privateLocked:throw new se("The video is private.","PrivacyError",t);case Kt.privatePassword:throw new se("The video is password-protected. The viewer must enter the password first.","PasswordError",t);case Kt.error:throw new se(e.message,"NotFoundError",t)}}function Rs(e){let t=[];for(let n=0;n{};function ks(e){const t=e.events;let n,i,o,a=new w,s=!1,l=!1,c=null,d=!1,u=null,_=null,p=!1,v=[];function m(t){i!==t&&(i=t,e.config.embed.api=t)}function f(){n&&n.emit("exitFullscreen"),e.events.halt()}function g(){var t=Tt(e.config.request.cookie.volume);return 1===i?Math.round(100*t):t}function b(n,i,o,a=[]){const s=rn[i];let l=e.config.embed[s];l||i!==en||(l=e.config.embed.color);let c=e.config.embed.settings[`force_${s}`];if(c||i!==en||(c=e.config.embed.settings.color),c&&!e.config.embed.on_site)throw new se(`The creator of the video has chosen to always use ${new r(l).hex}.`,"EmbedSettingsError",o);try{const o=new r(n);t.fire(kt._changeColor,o.hex,i),a.forEach((function(t){const n=rn[t],i=e.config.embed[n];try{new r(i).contrast(o).ratio}catch(ke){}}))}catch(ke){throw new se("The color should be a valid hex value.","TypeError",o)}}let C={ping:()=>e.config.video.id,notifyTimingObjectConnect(){Or(vr.TIMING_OBJECT_CONNECT,e.config)},notifyTimingObjectDisconnect(){Or(vr.TIMING_OBJECT_DISCONNECT,e.config)},fullscreenchange(t){e.element.classList.toggle("js-player-fullscreen-api",t),t?(e.events.prependOn(Wt._fullscreenButtonPressed,f),n.listeners.exitFullscreen=!0,e.events.fire(Wt._willEnterFullscreen),e.events.fire(Wt._didEnterFullscreen,!0,!0)):(e.events.off(Wt._fullscreenButtonPressed,f),n.listeners.exitFullscreen=!1,e.events.fire(Wt._willExitFullscreen),e.events.fire(Wt._didExitFullscreen,!0))},on(e,t){e in zt&&(e=zt[e]);const i=It(jt);if(i.indexOf(e)<0)throw new se(`“${e}” is not a valid event. Valid events are: ${i.join(", ")}.`,"TypeError","on");t&&a.on(e,t),n&&(n.listeners[e]=!0),e===jt.LOADED&&O()},off(e,t){t&&a.off(e,t),n&&(n.listeners[e]=!1)},play:()=>new Promise((n,i)=>{t.once(Wt._playResolved,n),t.once(Wt._playRejected,e=>{i(new se(e.message,e.name,"play"))}),ws(e.config,"play"),t.fire($t._play),t.fire(Wt._playButtonPressed)}),destroy(){t.fire(kt._destroy)},pause(){ws(e.config,"pause"),t.fire($t._pause),t.fire(Wt._pauseButtonPressed)},loadVideo(t){const{id:i,url:o,params:r}=function(e){if(!e)return{};if(dt(e))return{id:parseInt(e,10),params:{}};if("string"==typeof e)return 0!==e.indexOf("https://")?{}:{url:e,params:{}};if("url"in e){if(0!==e.url.indexOf("https://"))return{};const t=e.url;return delete e.url,{url:t,params:e}}if("id"in e){if(!dt(e.id))return{};const t=e.id;return delete e.id,{id:parseInt(t,10),params:e}}return{}}(t);if(!i&&!o)throw new se("The video id must be an integer.","TypeError","loadVideo");if(o&&!function(e,t){return null!==e.match(new RegExp(`^https?://${t.player_url}/video/([0-9]+)`))||null!==e.match(new RegExp(`^https?://${t.vimeo_url}/([0-9]+)`))}(o,e.config))throw new se("The url must be a valid Vimeo url.","TypeError","loadVideo");return function(e,t,n,i){var o;if(t===e.video.id)return!0;const r=`^https?://${e.player_url}/video/${e.video.id}(/(config/?)?)?(\\?.*)?$`,a=`^https?://${e.player_url}/video/([0-9]+)`;if(null==n?void 0:n.match(new RegExp(r)))return!0;const s=Yi(n||"","s")||(null==i||null==(o=i.s)?void 0:o.length);return!(!n||null===n.match(new RegExp(a))||!s)}(e.config,i,o,r)||!Ao(e.element)?e.loadVideoViaConfig(o||i,r).then(()=>t).catch(()=>{throw ws(e.config,"loadVideo"),new se("An error occurred loading the video.","Error","loadVideo")}):(e.loadVideoViaIframe(o||i,r,n.listeners),Ns)},unload(){e.config.view!==Kt.main&&e.config.view!==Kt.privateUnlocked||t.fire(kt._reset)},addCuePoint(n,i){if(n=parseFloat(n),isNaN(n)||n<0||n>e.config.video.duration)throw new se(`Cue point time must be positive number less than the duration of the video (${Tt(e.config.video.duration)}).`,"RangeError","addCuePoint");try{const o=e.backbone.addCuePoint(n,i);return setTimeout(()=>{t.fire(Wt._cuePointAdded,o)},0),o.id}catch(ke){if("CuePointsNotSupported"===ke.name)throw new se("Cue points are not supported in the current player.","UnsupportedError","addCuePoint");throw new se("Unable to add cue point","InvalidCuePoint","addCuePoint")}},removeCuePoint(n){const i=e.backbone.cuePoints.filter(e=>e.id===n)[0];if(!i)throw new se(`Cue point “${n}” was not found.`,"InvalidCuePoint","removeCuePoint");e.backbone.removeCuePoint(i),setTimeout(()=>{t.fire(Wt._cuePointRemoved,i)},0)},enableTextTrack(n,o=null){let r=("text_tracks"in e.config.request?e.config.request.text_tracks:[]).map(e=>(e.language=e.lang,e));if(!r.some(e=>e.language.toLowerCase()===n.toLowerCase()))throw new se(`There are no tracks for “${n.toUpperCase()}”.`,"InvalidTrackLanguageError","enableTextTrack");const a=o?`${n}.${o}`:n,{track:s}=((e,t=[])=>{if(!e||"null"===e||0===t.length)return{track:null};const[n,i]=e.split("."),[o]=n.split(/[-_]/),r=n!==o,a=t.filter(e=>r&&e.language===n||e.language===o).sort((e,t)=>{const r=2*Number(e.language===o&&e.kind===i)+2*Number(e.language===n)+1*Number(e.kind===i);return 2*Number(t.language===o&&t.kind===i)+2*Number(t.language===n)+1*Number(t.kind===i)-r});return a.length>0?{track:a[0],exactMatch:a[0].language===n&&a[0].kind===i}:{track:null}})(a,r);if(!s||o&&s.kind!==o)throw new se(`There are no ${o} tracks for “${n.toUpperCase()}”.`,"InvalidTrackError","enableTextTrack");return t.fire(kt._turnCaptionsOn,s.id),i<3?null:new Promise((e,n)=>{t.once(Wt._captionsChanged,(t,n)=>{e({label:t.label,language:t.language,kind:t.kind})})})},disableTextTrack(){t.fire(kt._turnCaptionsOff)},toggleFullscreen(e){const n={not_supported:{name:"UnsupportedError",msg:"Fullscreen is not supported at all or for this element."},not_enabled:{name:"Error",msg:"The request was made from an iframe that does not allow fullscreen."},not_allowed:{name:"NotAllowedError",msg:"The request failed, probably because it was not called from a user-initiated event."}};return new Promise((i,o)=>{if(!de.element===e){const r=()=>{de.off("enter",r),i()},a=(t,i)=>{de.off("error",a);const r=n[i]||n.not_supported;o(new se(r.msg,r.name,`${e?"request":"exit"}Fullscreen`))};return de.on("enter",r),de.on("error",a),void t.fire(Wt._fullscreenButtonPressed)}i()})},requestFullscreen:()=>C.toggleFullscreen(!0),exitFullscreen:()=>C.toggleFullscreen(!1),get fullscreen(){return!!de.element},requestPictureInPicture:()=>e.backbone.requestPictureInPicture(),exitPictureInPicture:()=>e.backbone.exitPictureInPicture(),remotePlaybackPrompt(){try{e.backbone.showExternalDisplayPicker()}catch(t){throw new se("Remote playback is not available.","NotFoundError","remotePlaybackPrompt")}},appendVideoMetadata:n=>new Promise((i,o)=>{try{const o=Array.from(e.backbone.chapters);e.parentUrl=n,function(e,t,n){const{duration:i,id:o,privacy:r}=e.video;"disable"!==r&&"anybody"!==r&&"unlisted"!==r||Os({hasPart:function(e,t,n,i){if(t<30||0===i.length)return[];const o=[];return i.forEach((r,a)=>{const{startTime:s,text:l}=r;if(s({time:e.time,data:e.data,id:e.id}))},get currentTime(){return e.currentTime},set currentTime(n){if(n=parseFloat(n),isNaN(n)||n<0||n>e.config.video.duration)throw new se(`Seconds must be a positive number less than the duration of the video (${Tt(e.config.video.duration)}).`,"RangeError","setCurrentTime");return t.fire($t._seek),t.fire(kt._seek,n),t.fire(Wt._mousedOver),i<3?null:new Promise((e,n)=>{t.once(E.SEEKED,({currentTime:t})=>{e(t)})})},get duration(){return Tt(e.config.video.duration)},get ended(){return!!e.backbone.ended},get loop(){return!!e.config.embed.loop},set loop(e){t.fire(kt._changeLoop,e)},set muted(e){t.fire(kt._changeMuted,e,!0)},get muted(){return e.backbone.muted||0===g()},get paused(){return!(e.backbone&&"paused"in e.backbone&&!e.backbone.paused)},get buffered(){return Rs(e.backbone.buffered)},get played(){return Rs(e.backbone.played)},get seekable(){return Rs(e.backbone.seekable)},get seeking(){return e.backbone.seeking},get playbackRate(){return e.backbone?e.backbone.playbackRate:1},set playbackRate(n){if(!e.config.embed.settings.speed)throw new se("Setting the playback rate is not enabled for this video.","Error","setPlaybackRate");if(isNaN(n)||n>2)throw new se("Playback rate should be a number below or equal to 2.","RangeError","setPlaybackRate");t.fire(kt._changePlaybackRate,n)},get remotePlaybackAvailability(){return e.backbone.externalDisplayAvailable},get remotePlaybackState(){return e.backbone.externalDisplayActive?"connected":"disconnected"},get textTracks(){return(e.backbone?e.backbone.video.textTracks:[]).map(e=>({label:e.label,language:e.language,kind:e.kind,mode:e===u?"showing":"disabled"}))},get videoEmbedCode(){return e.config.video.embed_code},get videoHeight(){return e.backbone.videoHeight||e.config.video.height},get videoId(){return e.config.video.id},get videoTitle(){return e.config.video.title},get videoWidth(){return e.backbone.videoWidth||e.config.video.width},get videoUrl(){if(!e.config.video.url)throw new se("The URL is not available because of the video’s privacy settings.","PrivacyError","getVideoUrl");return e.config.video.url},get volume(){return g()},set volume(e){if(e=parseFloat(e),1===i&&(e/=100),isNaN(e)||e<0||e>1)throw new se("Volume should be a number between 0 and 1.","RangeError","setVolume");_=e,X.settingVolume||0!==e?t.fire(kt._changeVolume,e,!0):t.fire(kt._changeMuted,!0,!0)},get qualities(){return e.backbone.qualities},get quality(){return e.backbone.quality},set quality(t){if(!Ss(e.config.video.owner))throw new se("Setting the quality is not enabled for this video.","Error","setQuality");t=t.toLowerCase();const n=e.backbone.qualities.map(e=>e.id);if(!n.includes(t))throw new se(`“${t}” is not a valid quality. Valid qualities are: ${n.join(", ")}.`,"TypeError","on");e.backbone.quality=t},_loadVideo:(t,n)=>e.loadVideoViaConfig(t,n),get _like(){return!!e.config.user.liked},set _like(n){e.config.user.liked!==n&&t.fire(Wt._likeButtonPressed,n)},get _watchLater(){return!!e.config.user.watch_later},set _watchLater(n){e.config.user.watch_later!==n&&t.fire(Wt._watchLaterButtonPressed,n)},get currentChapter(){const t=e.backbone.currentChapterID;if(!t)return null;const n=Array.from(e.backbone.chapters),i=n.findIndex(e=>t===e.id);return{startTime:n[i].startTime,title:n[i].text,index:i+1}},get chapters(){return Array.from(e.backbone.chapters).map((e,t)=>({startTime:e.startTime,title:e.text,index:t+1}))},_addChapter(t,n){if(t=parseFloat(t),isNaN(t)||t<0||t>e.config.video.duration)throw new se(`Chapter timecode must be positive number less than the duration of the video (${Tt(e.config.video.duration)}).`,"RangeError","_addChapter");try{e.backbone.addChapter(t,n)}catch(ke){if("ChaptersNotSupported"===ke.name)throw new se(ke.message,"UnsupportedError","_addChapter");throw new se("Unable to add chapter","InvalidChapter","_addChapter")}},_removeChapter(t){let n;try{n=e.backbone.chapters.getCueById(t)}catch(ke){throw new se("Chapters are not supported in this browser.","UnsupportedError","_removeChapter")}if(!n)throw new se("Chapter was not found.","InvalidChapter","_removeChapter");try{e.backbone.removeChapter(n)}catch(ke){if("ChaptersNotSupported"===ke.name)throw new se("Chapters are not supported in this browser.","UnsupportedError","_removeChapter");throw new se("Unable to remove chapter","InvalidChapter","_removeChapter")}},_addCard(e){t.fire(kt._addCard,e)},_removeCard(e){t.fire(kt._removeCard,e)},_setOutro(n,i){e.config.embed.outro!==n?(t.fire(kt._hideOutro),setTimeout(()=>{e.config.embed.outro=n,t.fire(kt._showOutro,n,i)},400)):t.fire(kt._showOutro,n,i)},_hideOutro(){t.fire(kt._hideOutro)},_hideOverlay(e){t.fire(kt._hideOverlay,{name:e,unmakeModal:!0})},_showOverlay(e,n){t.fire(kt._showOverlay,e,n)},_fireEvent(...e){t.fire.apply(null,e)},_setEmbedEditor(t){e.config.embed.editor=!!t},_setLiveEventSettings(n){e.config.video.live_event&&(Object.keys(n).forEach(i=>{let o=n[i];o="object"==typeof o?o:Number(o),e.config.video.live_event.settings[i]=o,t.fire(Wt._liveEventSettingsChanged,i,o),t.fire(K.SETTINGS_UPDATED,i,o)}),t.fire(Wt._configChanged,!1,e.config))},_setEmbedSettings(n){Object.keys(n).forEach(i=>{let r=n[i];r="object"==typeof r?r:Number(r),"badge"===i&&(r?r=o:o=e.config.embed.settings.badge),e.config.embed.settings[i]=r,t.fire(Wt._embedSettingChanged,i,r)}),t.fire(Wt._configChanged,!1,e.config)},_setEmbedSetting(n,i){i="object"==typeof i?i:Number(i),"badge"===n&&(i?i=o:o=e.config.embed.settings.badge),e.config.embed.settings[n]=i,t.fire(Wt._embedSettingChanged,n,i),t.fire(Wt._configChanged,!1,e.config)},_setCreateInteractive(n,i){e.config.embed.create_interactive=n,e.config.embed.interactive=i,t.fire(Wt._createInteractiveChanged,n,e.config),t.fire(Wt._configChanged,!1,e.config)},_setOTTVideoMetadata(n){e.config.request.flags.ott&&(e.ottVideoMetadata=n,t.fire(Wt._ottMetadataSet,n))},_toggleDebugPanel(){t.fire(Wt._debugButtonPressed)},_overrideControlbarBehavior(e){t.fire(kt._overrideControlbarBehavior,e)},_setControlbarVisibility(e){t.fire(kt._setControlsVisibility,e)},get cameraProps(){const t=e.backbone.getEffectByName("ThreeSixtyEffect");if(e.backbone&&!t)throw new se("Camera props are not available in the current player.","UnsupportedError","getCameraProps");return t.cameraProps},set cameraProps(t){const n=e.backbone.getEffectByName("ThreeSixtyEffect");if(e.backbone&&!n)throw new se("Camera props are not available in the current player.","UnsupportedError","setCameraProps");try{n.cameraProps=t}catch(ke){throw new se(ke.message,ke.name,"setCameraProps")}},get _fieldOfView(){const t=e.backbone.getEffectByName("ThreeSixtyEffect");if(e.backbone&&!t)throw new se("Field of view is not available in the current player.","UnsupportedError","getFieldOfView");return t.fieldOfView},set _fieldOfView(t){const n=e.backbone.getEffectByName("ThreeSixtyEffect");if(e.backbone&&!n)throw new se("Field of view is not available in the current player.","UnsupportedError","setFieldOfView");n.fieldOfView=t},get _coordinates(){const t=e.backbone.getEffectByName("ThreeSixtyEffect");if(e.backbone&&!t)throw new se("Coordinates are not available in the current player.","UnsupportedError","getCoordinates");return t.currentCoordinates},set _coordinates(t){const n=e.backbone.getEffectByName("ThreeSixtyEffect");if(e.backbone&&!n)throw new se("Coordinates are not available in the current player.","UnsupportedError","setCoordinates");try{n.currentCoordinates=t}catch(ke){throw new se(ke.message,"RangeError","setCoordinates")}},_setChromecastUI(e){const t=$r.currentSession;t&&ue(e)&&t.sendMessage("urn:x-cast:com.vimeo.cast.media",{action:"setCustomUIStyles",value:e})},get _controlSelectors(){return{details:".vp-title",sidedock:".vp-sidedock",controls:".vp-controls",customLogo:".custom-logo"}},get _controlAreas(){const t=e.element.offsetWidth,n=e.element.offsetHeight,i={get details(){const e=mt(document.querySelector(".headers > h1")),t=mt(document.querySelector(".sub-title")),n=mt(document.querySelector(".vp-portrait")),i=Math.max(e.width,t.width)+n.width,o=Math.max(n.height,e.height+t.height);return{top:10,left:10,width:Math.max(200,i),height:Math.max(60,o)}},get sidedock(){return{top:10,left:t-10-36,width:36,height:118}},get controls(){const e=i.customLogo,o=Math.max(60,e.height);return{height:o,top:n-10-o,left:10,width:t-20}},get customLogo(){const e=document.querySelector(".custom-logo"),i=e?mt(e):{width:0,height:0};return{top:n-10-i.height,left:t-10-i.width,width:i.width,height:i.height}}};return i},set _lowLatencyMode(t){e.backbone.lowLatencyMode=t},get _lowLatencyMode(){return e.backbone.lowLatencyMode},get _presentationDelay(){return e.backbone.presentationDelay},set _presentationDelay(t){e.backbone.presentationDelay=t},get _liveLatency(){return e.backbone.latency},get _downloadSpeed(){return e.backbone.downloadSpeed},get _backbone(){return e.backbone},addEventListener(...e){C.on.apply(C,e)},removeEventListener(...e){C.off.apply(C,e)},seekTo(e){C.currentTime=e},changeColor(e){C.color=e}};const y={addCuePoint:({time:e,data:t})=>C.addCuePoint(e,t),enableTextTrack({language:e,kind:t=null}){C.enableTextTrack(e,t)}};function T(e,t){n&&n.emit(e,t),a.fire(e,t)}const L=(e,t)=>(...n)=>{const i=t?t.apply(void 0,n):void 0;T(e,i)};function A({currentTime:e,duration:t,timeProgress:n}){return{seconds:Tt(e),percent:Tt(n),duration:Tt(t)}}function S(e){return{playbackRate:e}}function O(){T(jt.LOADED,d?null:(d=!0,{id:e.config.video.id}))}function P(e){return c=e,R(function(e){switch(e){case"BrowserNotSupported":case"FilesNotPlayable":case"MediaSrcNotSupportedError":return new se("This video is not supported in this browser.","NotSupportedError");case"FileError":return new se("There was an error loading the files for this video.","FileError")}return new se("An error occurred during playback.","PlaybackError")}(c))}function R(e){let t={message:"An error occurred.",name:"Error",method:e.source};return"MessageApiError"===e.constructorName&&(t={message:e.message,name:e.name,method:e.source}),t}return function(){var e;let t=new URL(window.location.href);p=!!t.searchParams.get("fromLoadVideo"),v=(null==(e=t.searchParams.get("listeners"))?void 0:e.split(","))||[],(p||v.length)&&(t.searchParams.delete("fromLoadVideo"),t.searchParams.delete("listeners"))}(),e.config.embed.on_site||(m(e.config.embed.api),n=new le,n.configureClient(window.parent,"*"),n.filter((function(){return ce()})),n.listeners=It(jt).reduce((e,t)=>h(h({},e),{},{[t]:!1}),{}),v.length?v.forEach(e=>{n.listeners[e]=!0}):(n.listeners[jt.READY]=!0,n.listeners[jt.ERROR]=!0),n.filter(e=>n.listeners[e]),t.on(Wt._remoteComponentMounted,(e,t,i)=>{n.addAllowedActor(e,null==t?void 0:t.contentWindow,i)})),function(){if(!n)return;const t=bs({},C,y);n.extendMethods(t),n.hooks({logError(e){T(jt.ERROR,R(e))},parseMessage(e){if(!e||""===e)return{};if(ue(e))return m(3),e;try{const t=JSON.parse(e);return m(2),t}catch(t){return m(null),T(jt.ERROR,"The Vimeo Froogaloop v1 API is no longer supported.\n Please follow the upgrade instructions here: https://goo.gl/mueGRR"),{}}},buildMessage(t){var n;(null==(n=e.config.embed)?void 0:n.player_id)&&(t.player_id=e.config.embed.player_id);try{2===i&&(t=function(e){if(e.event){for(const t in zt)if(zt[t]===e.event){e.event=t;break}"cuechange"===e.event&&(e.data.text=e.data.cues[0].text,e.data.html=e.data.cues[0].html,delete e.data.cues)}return JSON.stringify(e)}(t)),ue(t)&&"ready"===t.event&&(t=JSON.stringify(t))}catch(ke){}return t}})}(),t.on(I.BUFFER_STARTED,L(jt.BUFFER_START)),t.on(I.BUFFER_ENDED,L(jt.BUFFER_END)),t.on(I.CUE_POINT,L(jt.CUEPOINT,(function({time:e,data:t,id:n}){return{time:e,data:t,id:n}}))),t.on(M,L(jt.CUE_CHANGE,(function(e,t=[]){const{language:n=null,label:i=null,kind:o=null}=e||{};return{label:i,language:n,kind:o,cues:t}}))),t.on(Wt._chapterChanged,L(jt.CHAPTER_CHANGE,(function(t){const n=Array.from(e.backbone.chapters).findIndex(e=>t===e.id);return n>=0?{startTime:e.backbone.chapters[n].startTime,title:e.backbone.chapters[n].text,index:n+1}:null}))),t.on(Wt._ended,L(jt.ENDED,(function(){return l=!1,{seconds:Tt(e.config.video.duration),percent:1,duration:Tt(e.config.video.duration)}}))),t.on(Wt._paused,L(jt.PAUSE,(function(t){return l=!1,{seconds:Tt(t),percent:Tt(t/e.config.video.duration),duration:Tt(e.config.video.duration)}}))),t.on(Wt._playbackRateChanged,L(jt.PLAYBACK_RATE_CHANGE,S)),t.on(Wt._playbackRateChanged,L(jt.RATE_CHANGE,S)),t.on(Wt._captionsChanged,L(jt.TEXT_TRACK_CHANGE,(function(e){u=e;const{language:t=null,label:n=null,kind:i=null}=e||{};return{label:n,language:t,kind:i}}))),t.on(Wt._volumeChanged,L(jt.VOLUME_CHANGE,(function(e){return{volume:Tt(e)}}))),t.on(Wt._controlBarVisibilityChanged,L(jt.CONTROL_BAR_VISIBILITY_CHANGED,(function(e){return{visible:e}}))),t.on(Wt._toastVisibilityChanged,L(jt.TOAST_VISIBILITY_CHANGED,(function(e){return{visible:e}}))),t.on(Wt._configChanged,(function(e){_&&setTimeout((function(){X.settingVolume||0!==_?t.fire(kt._changeVolume,_,!0):t.fire(kt._changeMuted,!0,!0)}),0),e&&O()})),t.on(Wt._error,(function(e){const t=P(e);s&&T(jt.ERROR,t)})),t.on(Wt._didEnterFullscreen,L(jt.FULLSCREENCHANGE,(function(){return{fullscreen:!0}}))),t.on(Wt._didExitFullscreen,L(jt.FULLSCREENCHANGE,(function(){return{fullscreen:!1}}))),t.on(Wt._qualityChanged,L(jt.QUALITY_CHANGE,(function(e){return{quality:e}}))),t.on(Wt._adStarted,L(jt.AD_STARTED)),t.on(Wt._adComplete,L(jt.AD_COMPLETED)),t.on(Wt._adError,L(jt.AD_ERROR)),t.on(Wt._adSkipped,L(jt.AD_SKIPPED)),t.on(Wt._allAdsCompleted,L(jt.AD_ALL_COMPLETED)),t.on(Wt._adClicked,L(jt.AD_CLICKED)),t.on(Wt._interactiveHotspotClicked,L(jt.INTERACTIVE_HOTSPOT_CLICKED,(function({hotspotId:e,customPayloadData:t,actionPreference:n,currentTime:i,action:o}){return{hotspotId:e,customPayloadData:t,actionPreference:n,currentTime:i,action:o}}))),t.on(Wt._interactiveOverlayPanelClicked,L(jt.INTERACTIVE_OVERLAY_PANEL_CLICKED,(function({action:e,actionPreference:t,currentTime:n,customPayloadData:i,overlayId:o,panelId:r}){return{action:e,actionPreference:t,currentTime:n,customPayloadData:i,overlayId:o,panelId:r}}))),t.once(Wt._ready,(function(){s=!0,p?(O(),function(e,t){n&&n.emitMethodEvent(e,t)}(jt.LOAD_VIDEO,e.config.video.id)):T(jt.READY),c&&(T(jt.ERROR,P(c)),c=null)})),t.on(K.EVENT_ENDED,L(jt.LIVE_EVENT_ENDED)),t.on(K.EVENT_STARTED,L(jt.LIVE_EVENT_STARTED)),t.on(K.STREAM_OFFLINE,L(jt.LIVE_STREAM_OFFLINE)),t.on(K.STREAM_ONLINE,L(jt.LIVE_STREAM_ONLINE)),t.on(z.CAMERA_CHANGE,L(jt.CAMERA_CHANGE,(function(e){return e}))),t.on(z.MOTION_END,L(jt.MOTION_END)),t.on(z.MOTION_START,L(jt.MOTION_START)),t.on(z.WEBVR_HARDWARE_AVAILABLE,L(jt.WEBVR_HARDWARE_AVAILABLE)),t.on(z.WEBVR_ENTER,L(jt.ENTER_WEBVR)),t.on(z.WEBVR_EXIT,L(jt.EXIT_WEBVR)),t.on(z.SPATIAL_UNSUPPORTED,L(jt.SPATIAL_UNSUPPORTED)),t.on(E.PLAY,L(jt.PLAY,(function(t){return l?null:(l=!0,{seconds:Tt(t),percent:Tt(t/e.config.video.duration),duration:Tt(e.config.video.duration)})}))),t.on(E.PLAYING,L(jt.PLAYING,(function(){return l?{seconds:Tt(e.currentTime),percent:Tt(e.currentTime/e.config.video.duration),duration:Tt(e.config.video.duration)}:null}))),t.on(E.PROGRESS,L(jt.PROGRESS,(function({loaded:e,duration:t,loadProgress:n}){let o={seconds:Tt(e),percent:Tt(n),duration:Tt(t)};return i<3&&(o.bytesLoaded=-1,o.bytesTotal=-1),o}))),t.on(E.SEEKING,L(jt.SEEKING,A)),t.on(E.SEEKED,L(jt.SEEKED,A)),t.on(E.TIME_UPDATE,L(jt.TIME_UPDATE,(function({currentTime:e,duration:t,timeProgress:n}){return{seconds:Tt(e),percent:Tt(n),duration:Tt(t)}}))),t.on(E.LOADED_METADATA,L(jt.LOADED_METADATA)),t.on(E.DURATION_CHANGE,L(jt.DURATION_CHANGE,(function(t){return{duration:e.backbone.duration}}))),t.on(E.WAITING,L(jt.WAITING)),t.on(E.LOADED_DATA,L(jt.LOADED_DATA)),t.on(E.LOAD_START,L(jt.LOAD_START)),t.on(E.RESIZE,L(jt.RESIZE,(function(){return{videoWidth:e.backbone.videoWidth,videoHeight:e.backbone.videoHeight}}))),t.on(E.ENTER_PICTURE_IN_PICTURE,L(jt.ENTER_PICTURE_IN_PICTURE)),t.on(E.LEAVE_PICTURE_IN_PICTURE,L(jt.LEAVE_PICTURE_IN_PICTURE)),t.on(Gr.connected,L(jt.CHROMECAST_CONNECTED)),t.on(Wt._airPlayAvailable,L(jt.REMOTE_PLAYBACK_AVAILABILITY_CHANGE,()=>!0)),t.on(Wt._airPlayNotAvailable,L(jt.REMOTE_PLAYBACK_AVAILABILITY_CHANGE,()=>!1)),t.on(Wt._airPlayActivated,L(jt.REMOTE_PLAYBACK_CONNECT)),t.on(Wt._airPlayDeactivated,L(jt.REMOTE_PLAYBACK_DISCONNECT)),t.on(kt._reset,(function(){c=null,d=!1})),t.on(Wt._spaceChanged,(function(e={}){n&&(n.listeners[jt.SPACE_CHANGE]=!0,T(jt.SPACE_CHANGE,e))})),t.fire(Wt._apiModuleReady),C}let Ds=function(){function e(e){this.alertTextElement=e.querySelector(".vp-text-alert-wrapper"),this.alertContentElement=this.alertTextElement.querySelector(".vp-alert-text")}var t=e.prototype;return t.show=function(e){this.alertContentElement.innerHTML=e,this.alertContentElement.classList.remove("hidden"),this.alertTextElement.classList.remove("hidden")},t.hide=function(){this.alertContentElement.classList.add("hidden"),this.alertTextElement.classList.add("hidden")},e}();const Ms=h(h({},_e),{},{CAPTIONS_ENABLED:"captions-enabled",CAPTIONS_DISABLED:"captions-disabled",CHROMECAST_CONNECTED:"chromecast-connected",CHROMECAST_DISCONNECTED:"chromecast-disconnected",DRM_KEY_SWITCH:"drm-key-switch",MEDIASESSION_PLAY:"mediasession-play",MEDIASESSION_PAUSE:"mediasession-pause",MEDIASESSION_SEEK_FORWARD:"mediasession-seekforward",MEDIASESSION_SEEK_BACKWARD:"mediasession-seekbackward",SLATE_DISPLAYED:"slate-displayed",CLICK:"click",VIDEO_DURATION_MISMATCH:"video-duration-mismatch",VIDEO_FULLSCREEN_CHANGE:"video-fullscreen-change",VIDEO_MANIFEST_LOADED:"video-manifest-loaded",VIDEO_MANIFEST_TIMEOUT:"video-manifest-timeout",VIDEO_PICTURE_IN_PICTURE_CHANGE:"video-picture-in-picture-change",VIDEO_PLAYBACK_RATE_CHANGED:"video-playback-rate-changed",VIDEO_STREAM_CHANGE:"video-stream-change",VIDEO_SWITCH_BACK_TO_AUTO:"video-switch-back-to-auto",VIDEO_SWITCH_FROM_AUTO:"video-switch-from-auto",DOWNLOAD_TIMEOUT:"video-download-timeout",AD_BUFFERING:"ad-buffering",AD_COMPLETE:"ad-complete",AD_CLICKED:"ad-clicked",AD_ERROR:"ad-error",AD_PAUSED:"ad-paused",AD_RESUMED:"ad-resumed",AD_STARTED:"ad-started",AD_SKIPPED:"ad-skipped",ENTER_WEBVR:"enter-webvr",EXIT_WEBVR:"exit-webvr"});function Bs(e){return Ot("av01",e)?"AV1":Ot("dvh1",e)?"HEVC_DVH1":Ot("hvc1",e)?"HEVC":Ot("avc1",e)?"AVC":e||""}function Vs(e){return Ot("mp4a",e)?"AAC":Ot("opus",e)?"OPUS":e||""}function xs(e,t){var n,i;return(null==e||null==(n=e.request)||null==(i=n.ab_tests)?void 0:i[t])?e.request.ab_tests[t]:{}}function Us(t,n,i,r){const a=function(e){return function(){for(var t=[],n=0;n{const t=s[e],n=e.replace(v,"_");l[n]=t});let c=a.slice();return c.forEach(e=>{e.profile=String(e.profile||"")||null,e.id=String(e.id||"")||null}),{host:Ee(n.data.url),product:io(t.config),duration:n.data.duration,size:o.byteLength,index:e.segment,session_id:t.config.request.session,profile_id:String(r.profile||"")||null,quality:r.quality,streams:c,clip_id:t.config.video.id,headers:l,buffered:Tt(fe(t.backbone.currentTime,t.backbone.buffered),2),request_id:n.data.uuid?n.data.uuid:""}}(e,n,i,a,s,r);let u=l;o&&(u=be({extraContext:o},l)),t.events.fire(Wt._logMetric,{name:Ms.CHUNK_DOWNLOADED,data:u});const _={ak_reference_id:l.headers.akamai_grn||null,akamai_edge_ip:l.headers.akamai_request_bc||null,akamai_request_bc:l.headers.akamai_request_bc||null,content_length:l.headers.content_length||null,content_type:l.headers.content_type||null,x_cache:l.headers.x_cache||null,x_cache_hits:l.headers.x_cache_hits||null};l.headers=_,xs(t.config,"chunk_logging").group&&t.config.request.urls.fresnel_chunk_url&&function(e,t,n){const i=Date.now(),o=[{uuid:c(),created_at:i,event:{name:"chunk_downloads",version:5,ts_ms:i,fields:t},tracker:{name:"vimeo-player",version:n}}];new d(e).logRequestPromiseWithUrl(e,JSON.stringify(o),!0)}(t.config.request.urls.fresnel_chunk_url+"?beacon=1",l,Ya(t.config)),J+=a.byteLength,te=l}"akamai-grn"in r&&(G=r["akamai-grn"]),function({headers:e,url:t}){const n=fo(e);n===Si.CacheMiss?Y={url:t,edge:!1,tier1:!1,tier2:!1}:n===Si.MidCacheHit?Y={url:t,edge:!1,tier1:!0,tier2:!1}:n===Si.EdgeCacheHit&&(Y={url:t,edge:!0,tier1:!0,tier2:!1})}(i);let s={};G&&(s.akamai_reference_id=G),s.manifest_load_durations=t.backbone.manifestLoadDurations,s.successful_segment_count=t.backbone.successfulSegments.length,s.failed_segment_count=t.backbone.failedSegments.length,$=s}))}));let s,l,_;const p=new WeakMap,v=new RegExp("-","g");let m,f=null,b=null,C=!1,y=!1,T=!1,L="auto",A={},O={},P=null,w=null,R=null,N=[],k=null,D={},M=!1,B=!1,V=!1,x=0,U=0,H=0,G=null,Y=null,W=!1,$=null,q=null,X=null,Z=!1,Q=!1,J=0,ee=0,te=null;function ne(){const e=p.get(t.backbone.videoElement);e?({_videoMonitor:l,_metricsBufferTracker:_}=e):(_=new he,l=new ve(t.backbone.videoElement,oe),ie(),p.set(t.backbone.videoElement,{_videoMonitor:l,_metricsBufferTracker:_}))}function ie(){const e=_;l.customizeHooks({bufferTracker:e,videoBufferCheck(){t.events.on(I.BUFFER_STARTED,()=>{C&&(Z||W||(W=!0,e.trackBufferStart(l.logBufferStart,{lower_profile_available:t.backbone.isLowerProfileAvailable})))}),t.events.on(I.BUFFER_ENDED,()=>{C&&W&&(W=!1,e.trackBufferEnd(l.logBufferEnd,{cdn_data:Y}),e.resetLastBufferTime())})},addEventData(e){const t=Q;switch(Q=!1,e){case Ms.VIDEO_START_TIME:return $;case Ms.VIDEO_SEEK:const e=q;return q=null,e;case Ms.VIDEO_PLAYED:case Ms.VIDEO_PAUSED:return{api_call:t}}return null},customMinuteTracker:{shouldCount:()=>{var e;return t.backbone.isLive()&&(null==(e=t.config.video.live_event)?void 0:e.dvr)&&!t.backbone.atLiveEdge},onCount:e=>{ee=e}}}),l.initHooks()}function oe(n,r={}){(function(e){var n,i,o,r;switch(e){case Ms.VIDEO_SEEK:case Ms.VIDEO_SEEKED:return(null==(n=t.config.embed)?void 0:n.loop)||(null==(i=t.config.embed)||null==(o=i.settings)?void 0:o.background);case Ms.VIDEO_PLAYBACK_RATE_CHANGED:return null==(r=t.config.video.live_event)?void 0:r.low_latency;case Ms.VIDEO_PLAYBACK_ERROR&&(null==e?void 0:e.error_type)===I.MEDIA_CAPABILITY_STREAMS_UNSUPPORTED:return Rr(.1);default:return!1}})(n)||((r=Object.assign(l?l.globalProperties():{},Object.assign(function(){var e,n,r,a,s;const l={autoplay:1===t.config.embed.autoplay,background:!!t.config.embed.settings.background,clip_id:t.config.video.id,context:t.config.embed.context,device_pixel_ratio:window.devicePixelRatio||1,drm:!!t.config.request.drm,embed:!t.config.embed.on_site,is_mod:!!t.config.user.mod,is_spatial:!(!o.spatialPlayback||!t.config.video.spatial),looping:!!t.config.embed.loop,owner_id:null==(e=t.config.video)||null==(n=e.owner)?void 0:n.id,product:io(t.config),referrer:t.config.request.referrer,session_id:t.config.request.session,version:Ya(t.config),version_backend:t.config.request.build.backend,viewer_id:null==(r=t.config.user)?void 0:r.id,viewer_team_id:null==(a=t.config.user)?void 0:a.team_id,viewer_team_origin_user_id:null==(s=t.config.user)?void 0:s.team_origin_user_id,vuid:No("vuid"),fps:t.config.video.fps};var c;return t.config.video.owner&&(l.account_type=t.config.video.owner.account_type),t.config.embed.api&&(l.api_version=t.config.embed.api),t.config.embed.app_id&&(l.app_id=String(t.config.embed.app_id)),t.config.video.privacy&&(l.privacy=t.config.video.privacy),i.get(ra)&&(l.live_session_id=null==(c=t.config.video.live_event)?void 0:c.id),l}(),function(){var n,i;const o=t.backbone.video?t.backbone.video.currentFile:{},r=function(){const n={},i=g(),o=ge("asc"),r="MediaSourceScanner"===t.backbone.currentScannerName,a="HTMLScanner"===t.backbone.currentScannerName,s="HLSLiveScanner"===t.backbone.currentScannerName;let l=[];a&&(l=u(t.config,"request.files.progressive")||u(t.config,"request.files.hls")||[]),r&&(l=u(t.config,"request.files.dash.streams",[])),s&&(l=t.backbone.video.currentFile.mime===Nt.dashMpd?u(t.config,"request.files.dash.streams",[]):u(t.config,"request.files.hls.streams",[]));const c=Array.from(l).sort(o).map(e=>e.profile);let d=-1,_=0,p=null;if(Object.keys(O).forEach(e=>{const t=c.indexOf(parseInt(e,10));t>d&&(d=t);const n=O[e].reduce((e,t)=>((t.end||i)-t.start)/1e3+e,0);n>_&&(_=n,p=e)}),n.highest_profile=c[d],n.highest_available_profile=c[c.length-1],n.most_used_profile=p,(r||s)&&N){n.max_speed=Math.round(Math.max.apply(Math,e(N)))/1e3,n.min_speed=Math.round(Math.min.apply(Math,e(N)))/1e3;const t=N.reduce((e,t)=>e+t,0);n.average_speed=Math.round(t/N.length)/1e3}return n}();let{id:a=0,mime:s=Nt.h264,metadata:{profile:l=null}={}}=o,c=!1,d=!1;switch(s){case Nt.dash:0===o.restrictedStreamIndexes.length&&(c=!0),u(t.config,"request.files.dash.separate_av")&&(d=!0),l=A?A.profile:null;break;case Nt.hls:c=!0}let _={audio_bitrate:t.backbone.getBitrateAtTime(t.backbone.currentTime,"audio","average")/1e3,audio_provenance:re(),auto:c,average_speed:r.average_speed||0,cdn:o.metadata?o.metadata.cdn:"akamai",delivery:"live"!==qt[s]?qt[s]:"dash",display:t.expose.pictureInPicture?"pip":t.expose.fullscreen?"fs":t.backbone.videoElement.webkitCurrentPlaybackTargetIsWireless?"airplay":null,dropped_frame_percent:H,event_time:f+me(b),fullscreen:B,picture_in_picture:V,highest_available_profile:r.highest_available_profile?String(r.highest_available_profile):null,highest_profile:r.highest_profile?String(r.highest_profile):null,max_speed:isFinite(r.max_speed)?r.max_speed:0,mime:o.mime||null,min_speed:isFinite(r.min_speed)?r.min_speed:0,most_used_profile:r.most_used_profile?String(r.most_used_profile):null,profile_id:l?String(l):null,codec:Bs(null==t.backbone.getCurrentStream||null==(n=t.backbone.getCurrentStream("video"))?void 0:n.codecs),audio_codec:Vs(null==t.backbone.getCurrentStream||null==(i=t.backbone.getCurrentStream("audio"))?void 0:i.codecs),quality:A?A.quality:null,quality_downswitch_count:U,quality_upswitch_count:x,separate_av:d,target_profile_id:X,video_bitrate:t.backbone.getBitrateAtTime(t.backbone.currentTime,"video","average")/1e3,video_duration:Tt(t.config.video.duration)};if(t.backbone.isLive()){var p;void 0!==t.backbone.latency&&(_.latency=t.backbone.latency),void 0!==t.backbone.lowLatencyMode&&(_.is_low_latency=t.backbone.lowLatencyMode);const e=!!(null==(p=t.config.video.live_event)?void 0:p.dvr);_.dvr=e,e&&(_.in_dvr_mode=e&&!t.backbone.atLiveEdge,_.dvr_minutes_watched=ee)}if(t.config.video.ecdn){const e=t.config.video.ecdn.ecdn_provider,{ecdnBytesByCdn:n,ecdnBytesPeered:i,ecdnPeers:o}=yo(e);_.ecdn=!0,_.ecdn_provider=e,_.ecdn_bytes_via_cdn=n,_.ecdn_bytes_via_peering=i,_.ecdn_peers=o}return _}(),function(){let e={};if(t.config.request.ab_tests)for(const n in t.config.request.ab_tests){const i=t.config.request.ab_tests[n];e[`${n}_test`]=1,e[`${n}_group`]=i.group;for(const t in i.data)e[`${n}_data_${t}`]=i.data[t]}return h(h({},e),{},{ab_tests:t.abTests})}()),r)).name=n,t.events.fire(Wt._logMetric,{name:n,data:r}),s.log(r).catch(e=>{}))}function re(){if(!t.config.request.audio_tracks)return null;let e=t.backbone.audioTracks.find(e=>!!e.active);if(!e)return null;if(e.provenance)return e.provenance;const n=t.config.request.audio_tracks.filter(t=>t.language===e.language);return 1===n.length?n[0].provenance:null}function ae(e,t={final:!0},n=null){const i={error_type:e,error_reason:n};l.handleExternalError(i,t)}b=pe(),f=t.config.request.timestamp,t.config.request.drm,s=new d(function(){const e=`?beacon=1&session-id=${t.config.request.session}`;return t.config.request.urls.fresnel+e}()),t.events.on(Wt._error,ae),t.events.on(kt._reset,(function(){M=!1})),t.events.on(kt._seek,(function(){Z=!0})),t.events.on(Wt._didEnterFullscreen,(function(){B=!0,oe(Ms.VIDEO_FULLSCREEN_CHANGE)})),t.events.on(Wt._didExitFullscreen,(function(){B=!1,oe(Ms.VIDEO_FULLSCREEN_CHANGE)})),t.events.on(E.ENTER_PICTURE_IN_PICTURE,(function(){V=!0,oe(Ms.VIDEO_PICTURE_IN_PICTURE_CHANGE)})),t.events.on(E.LEAVE_PICTURE_IN_PICTURE,(function(){V=!1,oe(Ms.VIDEO_PICTURE_IN_PICTURE_CHANGE)})),t.events.on(Wt._configChanged,(function(){f=t.config.request.timestamp,b=pe(),C=!1,y=!1,T=!1,L="auto",A={},O={},P=null,w=null,R=null,N=[],k=null,D={},M=!1,B=!1,x=0,U=0,H=0,Y=null,X=null,J=0,t.config.request.drm,ee=0,l&&(l.reset(),ie())})),t.events.on(Wt._nudgeAttempted,(function(){q={seek_type:"nudge"}})),t.events.on(Wt._scrubbingStarted,(function(e){const t=null==e?void 0:e.seekType;q={seek_type:t}})),t.events.on(Wt._chapterSeek,(function(e){q={seek_type:`chapter-${e}`}})),t.events.on(Wt._interactiveSeekCall,(function(e){q={seek_type:e.type}})),t.events.on(Wt._interactiveMarkerClicked,(function(e){q={seek_type:e.type,seek_action:e.action}})),t.events.on(S,(function(){M||$r.isCastConnected||(t.performDelegateAction(Yt,(e,t={})=>{M=!0,m.then(()=>l.logStartRequest()).catch(()=>{})}),xs(t.config,"chunk_logging").group&&t.config.request.urls.fresnel_manifest_url&&function(e,t,n,i){const o=Date.now(),r=[{uuid:c(),created_at:o,event:{name:"session_manifest",version:1,ts_ms:o,fields:{sessionID:t,manifest:n}},tracker:{name:"vimeo-player",version:i}}];new d(e).logRequestPromiseWithUrl(e,JSON.stringify(r),!0)}(t.config.request.urls.fresnel_manifest_url+"?beacon=1",t.config.request.session,t.backbone.manifest,Ya(t.config)))})),t.events.on(Wt._overlayOpened,(function(e){"interactive"===e&&oe(Ms.SLATE_DISPLAYED,{slate_type:"interactive"})})),t.events.on(Wt._playbackRateChanged,(function(e,t){oe(Ms.VIDEO_PLAYBACK_RATE_CHANGED,{previous_playback_rate:t})})),t.events.on(kt._changeQuality,(function(e){t.backbone.video.currentFile.mime===Nt.dash&&("auto"===e||y?"auto"===e&&y&&!T&&(oe(Ms.VIDEO_SWITCH_BACK_TO_AUTO,{quality:L,auto:1}),T=!0):(oe(Ms.VIDEO_SWITCH_FROM_AUTO,{quality:e,auto:0}),y=!0),L=e)})),t.events.on(kt._turnCaptionsOn,(function(e){k!==e&&(k=e,oe(Ms.CAPTIONS_ENABLED,{captions_id:String(e)}))})),t.events.on(kt._turnCaptionsOff,(function(){k&&(k=null,oe(Ms.CAPTIONS_DISABLED))})),t.events.on(Gr.connected,(function(){oe(Ms.CHROMECAST_CONNECTED)})),t.events.on(Gr.disconnected,(function(){oe(Ms.CHROMECAST_DISCONNECTED)})),t.events.on(I.STREAM_CHANGE,(function(e,t,n,i){var o;A=e;const r=e.profile?e.profile:e.id,a=g();if(O[r]=O[r]||[],P){const e=O[P].length-1;O[P][e]&&(O[P][e].end=a)}w&&(n[t].bitrate>w?x+=1:U+=1),O[r].push({start:a}),D[r]={bitrate:n[t].bitrate,width:n[t].width,height:n[t].height};let s={previous_audio_bitrate:R/1e3,previous_video_bitrate:w/1e3,previous_profile_id:String(P),reason:null==i?void 0:i.reasonForSwitch};r.toString()===(null==(o=te)?void 0:o.profile_id)&&(te.headers.akamai_request_bc||te.headers.x_cache)&&(s.cache_hit=fo(te.headers)),oe(Ms.VIDEO_STREAM_CHANGE,s),P=r,w=n[t].bitrate,R=n[t].audioBitrate})),t.events.on(I.STREAM_TARGET_CHANGE,(function(e){e&&(X=String(e.profile||"")||null)})),t.events.on(E.PLAYING,(function(){Z=!1})),t.events.once(Wt._firstTimeUpdate,(function(){C=!0})),t.events.on(Wt._adBuffering,(function(){oe(Ms.AD_BUFFERING)})),t.events.on(Wt._adComplete,(function(){oe(Ms.AD_COMPLETE)})),t.events.on(Wt._adClicked,(function(){oe(Ms.AD_CLICKED)})),t.events.on(Wt._adError,(function(e){oe(Ms.AD_ERROR,{error_type:e.errorType,error_reason:e.errorReason})})),t.events.on(Wt._adPaused,(function(){oe(Ms.AD_PAUSED)})),t.events.on(Wt._adResumed,(function(){oe(Ms.AD_RESUMED)})),t.events.on(Wt._adStarted,(function(e){oe(Ms.AD_STARTED,{startup_duration:e.time?Tt(e.time/1e3,2):null})})),t.events.on(Wt._adSkipped,(function(){oe(Ms.AD_SKIPPED)})),t.events.on(Wt._pausedForAd,(function(){o.iPhone&&l.setDisplayContext(1)})),t.events.on(Wt._resumedAfterAd,(function(){o.iPhone&&l.setDisplayContext(0)})),t.events.on(I.DROPPED_FRAMES,(function(e){let t=e.dropped/e.total*100;H=Math.round(100*t)/100})),t.events.on(I.BANDWIDTH,(function({speed:e}){N.push(e),N.length>500&&N.shift()})),t.events.on(I.MANIFEST_TIMEOUT,(function(){oe(Ms.VIDEO_MANIFEST_TIMEOUT)})),t.events.on(I.MANIFEST_LOADED,(function(){oe(Ms.VIDEO_MANIFEST_LOADED)})),t.events.on(I.DOWNLOAD_END,a),t.events.on(I.DOWNLOAD_TIMEOUT,(function(){oe(Ms.DOWNLOAD_TIMEOUT)})),t.events.on(I.DRM_KEY_SWITCH,(function(){oe(Ms.DRM_KEY_SWITCH)})),t.events.on(I.SCANNER_CHANGE,(function(){Y=null})),t.events.on(I.AV_DURATION_MISMATCH,(function(e){oe(Ms.VIDEO_DURATION_MISMATCH,{duration_difference:Math.round(100*e)/100})})),t.events.on(I.QUOTA_EXCEEDED_ERROR,(function({buffered:e}){let t={error_type:I.QUOTA_EXCEEDED_ERROR};t.buffered=Tt(fe(0,e),2),t.bytes_loaded=J,oe(Ms.VIDEO_PLAYBACK_ERROR,t)})),t.events.on(I.DROPPED_FRAME_PERCENT_EXCEEDED,(function(){let e={error_type:I.DROPPED_FRAME_PERCENT_EXCEEDED};oe(Ms.VIDEO_PLAYBACK_ERROR,e)})),t.events.on(I.MEDIA_CAPABILITY_STREAMS_UNSUPPORTED,(function({incompatibleStreams:e,incompatibleStreamsAttributes:t}){const n=["codecs","bitrate","framerate","quality","width","height","mime_type"];e.forEach((e,i)=>{const o=n.reduce((t,n)=>(t.push(e[n]),t),[]).concat(t[i].join(",")).join("|"),r={error_type:I.MEDIA_CAPABILITY_STREAMS_UNSUPPORTED,error_reason:o};oe(Ms.VIDEO_PLAYBACK_ERROR,r)})})),t.events.on(j.MEDIASESSION_PLAY,(function(){oe(Ms.MEDIASESSION_PLAY)})),t.events.on(j.MEDIASESSION_PAUSE,(function(){oe(Ms.MEDIASESSION_PAUSE)})),t.events.on(j.MEDIASESSION_SEEK_FORWARD,(function(){oe(Ms.MEDIASESSION_SEEK_FORWARD)})),t.events.on(j.MEDIASESSION_SEEK_BACKWARD,(function(){oe(Ms.MEDIASESSION_SEEK_BACKWARD)})),t.events.on(j.MEDIASESSION_SEEK_TO,(function(){oe(Ms.MEDIASESSION_SEEK_TO)})),t.events.on($t._seek,(function(){q={seek_type:"api"}})),t.events.on($t._play,(function(){Q=!0})),t.events.on($t._pause,(function(){Q=!0})),t.events.on(z.WEBVR_ENTER,(function(){oe(Ms.ENTER_WEBVR,!0)})),t.events.on(z.WEBVR_EXIT,(function(){oe(Ms.EXIT_WEBVR,!0)})),t.events.on(K.STALL_JUMP,(function({msg:e}){ae("livestall",{final:!1},e)})),t.events.on(K.LOW_LATENCY_FALLBACK,(function({msg:e}){ae("livefallback",{final:!1},e)})),m=new Promise((e,n)=>{var i;(null==(i=t.backbone)?void 0:i.video)&&e(),t.events.on(F,e)}),m.then(ne).catch(()=>{}),t.events.on(Wt._swapVideo,ne)}function Hs(e){let t,i,o=e.config.ott||{};const r=o.analytics_url||"https://collector.vhx.tv/events.gif",a=new d(r),s=b((function(){u("timeupdate")}),1e4,{leading:!1}),l=b((function(){u("seeking")}),500);function c(){o=e.config.ott||{},i=!1,t=!1}function u(i,s){(s=Object.assign({},s,{name:o.video_title,user_id:o.viewer_user_id,user_email:o.viewer_user_email,site_id:o.site_id,user_agent:navigator.userAgent,url:top===self?window.location.href:document.referrer,referrer:e.config.request.referrer,session_id:e.config.request.session,device:"html5",device_id:null,collection_id:o.collection_id,product_id:o.product_id,platform:o.platform,platform_id:null,platform_version:o.platform_version},{type:"video",video_id:o.video_id,current_src:e.backbone.currentFile.src,current_subtitle:"none",current_type:o.video_content_type,duration:o.video_duration,is_drm:e.config.request.drm?1:0,is_fullscreen:t?1:0,is_trailer:o.is_trailer?1:0,is_chromecast:$r.isCastConnected?1:0,is_live:e.config.video.live_event?1:0,seconds:10,timecode:e.currentTime})).name=i,void 0===s.timestamp&&(s.timestamp=Math.round(.001*Date.now()));const l=n(r,s);return a.logRequestPromiseWithUrl(l,{},!0,"GET").catch(e=>{})}function _(){e.events.on(E.ENDED,p),e.events.on(E.ERROR,v),e.events.on(E.PAUSE,m),e.events.on(E.PLAY,f),e.events.on(E.TIME_UPDATE,s),e.events.on(E.SEEKING,l),e.events.on(E.SEEKED,h),e.events.on(E.WAITING,g),e.events.on(Wt._didEnterFullscreen,C),e.events.on(Wt._didExitFullscreen,y),e.events.on(Wt._adComplete,T),e.events.on(Wt._adClicked,L),e.events.on(Wt._adError,A),e.events.on(Wt._adStarted,S),e.events.on(Wt._adSkipped,I)}function p(){s.cancel(),u("ended")}function v(){s.cancel(),u("error")}function m(){s.cancel(),u("pause")}function f(){if(!i)return i=!0,void u("firstplay");u("play")}function h(){l.cancel(),u("seeked")}function g(){u("waiting")}function C(){t=!0}function y(){t=!1}function T(){u(Ms.AD_COMPLETE)}function L(){u(Ms.AD_CLICKED)}function A(){u(Ms.AD_ERROR)}function S(){u(Ms.AD_STARTED)}function I(){u(Ms.AD_SKIPPED)}e.events.on(Wt._configChanged,c),c(),e.config.ott?_():new Promise((t,n)=>{e.ottVideoMetadata?t():e.events.on(Wt._ottMetadataSet,e=>{t()})}).then(()=>{o=e.ottVideoMetadata,_()}).catch(e=>{})}function Fs(e,t){let n,i,r,a,s,l,c,d,u,_;function p(){var t,o,a,l;e.events.on(E.ERROR,I),e.events.on(S,O),e.events.on(q.ACTIVATED,A),n=document.querySelector(`.${Dn.ADS_WRAPPER}`),n||(n=document.createElement("div"),n.classList.add(Dn.ADS_WRAPPER),n.innerHTML=`\n \n `,document.querySelector(".player").appendChild(n)),i=n.querySelector(`.${Dn.ADS_TAG}`),r={adCode:e.config.request.ads.adcode||null,adUnit:e.config.request.ads.adunit||null,adUrl:e.config.request.ads.adurl||null,autoplay:Boolean(null==(t=e.config)||null==(o=t.embed)?void 0:o.autoplay),muted:Boolean(null==(a=e.config)||null==(l=a.embed)?void 0:l.muted),videoPlayer:e.backbone,width:{linear:488,nonlinear:488},height:{linear:252,nonlinear:150}},s=new Ce(n,r),s.on(ye.ADS_MANAGER_LOADED,()=>{s.on(ye.AD_BUFFERING,m),s.on(ye.AD_COMPLETE,h),s.on(ye.AD_CLICK,f),s.on(ye.AD_ERROR,g),s.on(ye.AD_STARTED,b),s.on(ye.AD_SKIPPED,C),s.on(ye.ALL_ADS_COMPLETED,y),s.on(ye.CONTENT_PAUSE_REQUESTED,T),s.on(ye.CONTENT_RESUME_REQUESTED,L),e.events.on(E.ENDED,R),e.store.watch("ui.player.width",V),e.events.on(Wt._didEnterFullscreen,V,!0),e.events.on(Wt._didExitFullscreen,V,!1),e.events.fire(Wt._pausedForAd),s.isAutoPlayAllowed()&&B()})}function v(){i&&(D(),i=null),s&&(s.destroy(),s=null),c&&(clearInterval(c),c=null),n=null,r={},a=null,l=!1,d=!1,u=!1,_=!1,e.events.off(S,O),e.events.off(Wt._didEnterFullscreen,V),e.events.off(Wt._didExitFullscreen,V),e.events.off(q.ACTIVATED,A),e.events.off(E.ENDED,R),e.events.off(E.ERROR,I),e.events.off(E.PLAYING,P),e.store.unwatch("ui.player.width",V)}function m(){d&&e.events.fire(Wt._adBuffering)}function f(){e.events.fire(Wt._adClicked)}function h(){o.iPhone&&e.backbone.addVideoEventListeners(),c&&clearInterval(c),d=!1,e.events.fire(Wt._adComplete)}function g(t){const n={errorType:t.o,errorReason:t.l};e.events.fire(Wt._adError,n),"adPlayError"===n.errorType&&e.events.fire(Wt._resumedAfterAd)}function b(t){o.iPhone&&e.backbone.removeVideoEventListeners();let i=t.getAd();const r=i.getTraffickingParameters();i.isLinear()&&"0"!==r.ad&&(c=setInterval(()=>{let e="AD "+(e=>{if(e<0)return"00:00";let t=Math.floor(e/60),n=Math.round(e%60);return t=t<10?"0"+t:t,n=n<10?"0"+n:n,t+":"+n})(s.remainingTime);n.querySelector(`.${Dn.ADS_COUNTDOWN}`).innerHTML=e},1e3),setTimeout(k,1e3)),d=!0;let l={type:i.isLinear()?"linear":"nonlinear"};a&&(l.time=Date.now()-a,a=null),e.events.fire(Wt._adStarted,l)}function C(t){e.events.fire(Wt._adSkipped,t)}function y(t){l=!0,o.iPhone||v(),e.events.fire(Wt._allAdsCompleted,t)}function T(){e.events.fire(Wt._pausedForAd),a=Date.now(),_=!0,u||(e.backbone.paused?e.events.once(E.PLAYING,P):e.backbone.pause())}function L(){D(),e.events.fire(Wt._resumedAfterAd),o.iPhone&&l&&s.destroy(),u||(e.events.off(E.PLAYING,P),N())}function A(){v()}function I(e){e&&("NotAllowedError"===e.name||e.name)}function O(){s.setUserPlayState(!0)}function P(){e.backbone.pause()}function R(){u=!0,s.setContentComplete()}function N(){_=!1,e.backbone.play()}function k(){i=n.querySelector(`.${Dn.ADS_TAG}`),i.classList.remove("hidden"),i.removeAttribute("hidden")}function D(){i.classList.add("hidden"),i.setAttribute("hidden","")}function M(){const e=t.getBoundingClientRect();return{height:e.height,width:e.width}}function B(){const{width:t,height:n}=M();try{s.start(t,n)}catch(i){u&&e.events.fire(Wt._adComplete),_&&N()}}function V(e){const{width:t,height:n}=M();s.resize(t,n,e)}const x={pause:()=>(e.events.fire(Wt._adPaused),s.pause()),play:()=>(e.events.fire(Wt._adResumed),B(),s.play()),get volume(){return s.volume},set volume(e){s.volume=e},get muted(){return s.muted},set muted(e){s.muted=e},events:new w};return v(),p(),e.events.on(Wt._configChanged,()=>{v(),p()}),x}const Gs=["clip_id","profile_id","player_size","dropped_frames","total_frames","bandwidth","markers","streams","files","video_dims","min_bandwidth","max_badwidth","buffer_occupancy","live_latency","scanner","vr_headset"];let Ys=function(){function e(e){this._core=e,this._seriesStore={},this._latencyInterval=null,this._clearAllFields(),this._attachEventHandlers(),this._watchPlayerSize(),this._setDefaults()}var t=e.prototype;return t.reset=function(){this._clearAllFields(),this._setDefaults(),this._core.events.fire(Wt._debugDataChange)},t._setToSeries=function(e,t){return this._seriesStore[e]=[t],this._core.events.fire(Wt._debugDataChange),this._seriesStore[e]},t._addToSeries=function(e,t){return this._seriesStore[e].push(t),this._seriesStore[e].length>300&&this._seriesStore[e].splice(0,25),this._core.events.fire(Wt._debugDataChange),this._seriesStore[e]},t.getCurrent=function(e){return this._seriesStore[e].slice(-1)[0]},t.getSeries=function(e){return this._seriesStore[e]},t._onLogMetric=function(e={}){const t=e.name,n=L({},e.data),i=this._filterMetricData(t,n);this._addMarker(t,t,i)},t._filterMetricData=function(e,t){let n;return e===Ms.CHUNK_DOWNLOADED?(n={},n.host=t.host,n.duration=Tt(t.duration,2),n.size=t.size,n.index=t.index,n.profile_id=t.profile_id,n.quality=t.quality,n.buffered=Tt(t.buffered,2),n.ttfb=Tt(t.ttfb,2),n.extraContext=t.extraContext,n.headers=Te(t.headers,["x_cache","akamai_request_bc","akamai_grn","content_type"]),n.cache_hit=fo(n.headers),n):e===Ms.VIDEO_PLAYBACK_ERROR||e===Ms.VIDEO_LOAD_FAILURE||e===Ms.VIDEO_START_FAILURE||e===Ms.VIDEO_READY?t:void 0!==t.autoplay&&void 0!==t.looping?(n={},n.cdn=t.cdn,n.quality=t.quality,void 0!==t.reason&&(n.reason=t.reason),n):t},t._addMarker=function(e,t,n={}){const i=this._core.backbone.currentTime,o=Date.now(),r=Tt(fe(i,this._core.backbone.buffered),2);this._addToSeries("markers",{type:e,title:t,vt:i,t:o,bt:r,data:n})},t._attachEventHandlers=function(){this._core.events.on(Wt._configChanged,()=>{this.reset()}),this._core.events.on(I.BANDWIDTH,this._onBandwidthChange.bind(this)),this._core.events.on(I.BUFFER_OCCUPANCY,this._onBufferOccupancyChange.bind(this)),this._core.events.on(I.CURRENT_FILE_CHANGE,this._onFileChange.bind(this)),this._core.events.on(I.DROPPED_FRAMES,this._onDroppedFrames.bind(this)),this._core.events.on(I.SCANNER_CHANGE,this._onScannerChange.bind(this)),this._core.events.on(I.STREAM_CHANGE,this._onStreamChange.bind(this)),this._core.events.on(I.STREAM_CHANGE_START,this._onStreamChangeStart.bind(this)),this._core.events.on(E.TIME_UPDATE,this._onTimeUpdate.bind(this)),this._core.events.on(z.WEBVR_HARDWARE_AVAILABLE,this._onVRHeadsetAvailble.bind(this)),this._core.events.on(Wt._logMetric,this._onLogMetric.bind(this)),this._core.events.on(K.BUFFER_GAP_JUMP_PREVENT,this._onBufferGapJumpPrevent.bind(this)),this._core.events.on(K.BUFFER_GAP_JUMP,this._onBufferGapJump.bind(this)),this._core.events.on(K.STALL_JUMP,this._onStallJump.bind(this))},t._onVRHeadsetAvailble=function(e){e.displayName&&this._setToSeries("vr_headset",e.displayName)},t._setLatencyInterval=function(){this._latencyInterval=setInterval(()=>{const e=this._core.backbone.buffered,t=this._core.backbone.videoElement;if(e&&e.length&&t&&t.currentTime){const e=this._core.backbone.latency;this._setToSeries("live_latency",e)}else this._setToSeries("live_latency",0)},500)},t._removeLatencyInterval=function(){clearInterval(this._latencyInterval)},t._watchPlayerSize=function(){this._core.store.watch("ui.player.boundingRect",e=>{const t=this.getCurrent("video_dims"),n=this._getVideoDimensionsString(e);this._addToSeries("video_dims",n);const i=t?`Resized from ${t} to ${n}`:`Resized to ${n}`;this._addMarker("resize",i)})},t._getVideoDimensionsString=function(e){const t=`${Math.round(e.width)}px`,n=`${Math.round(e.height)}px`,i=window.devicePixelRatio&&window.devicePixelRatio>1?`@${Tt(window.devicePixelRatio,3)}x`:"";return t&&n?`${parseInt(t,10)}×${parseInt(n,10)} ${i}`:""},t._clearAllFields=function(){this._seriesStore=Gs.reduce((e,t)=>(e[t]=[],e),{})},t._setDefaults=function(){const e=this._core.backbone.currentFile;this._addToSeries("files",e),this._addToSeries("scanner",this._core.backbone.currentScannerName),"HLSLiveScanner"===this._core.backbone.currentScannerName&&this._setLatencyInterval(),this._setToSeries("min_bandwidth",0),this._setToSeries("max_badwidth",0);const t=this._core.store.get("ui.player.boundingRect"),n=this._getVideoDimensionsString(t);this._addToSeries("video_dims",n)},t._onBandwidthChange=function(e){const t=Math.round(100*e.speed)/100;this._addToSeries("bandwidth",{videoTime:this._core.backbone.currentTime,time:Date.now(),value:t});let n=this.getCurrent("max_badwidth"),i=this.getCurrent("min_bandwidth");(!i||tn)&&this._setToSeries("max_badwidth",t)},t._onDroppedFrames=function(e){const{dropped:t,total:n}=e;this._setToSeries("total_frames",n),this._setToSeries("dropped_frames",t)},t._onSeeked=function(){this._addMarker("seeked",`Seeked to ${this._core.backbone.currentTime}`)},t._onEnded=function(){this._addMarker("ended","Ended")},t._onStreamChangeStart=function({previousStreamIndex:e,index:t,streams:n}){const i=n[t],o=n[e],r=o?o.bitrate:null;if(r!==i.bitrate&&null!==r){const e=this._getResolutionString(o),t=this._getResolutionString(i);i.bitrater&&this._addMarker("upswitch",`Starting Upswitch from ${e} to ${t}`)}},t._onStreamChange=function(e,t,n){var i,o,r,a;const s=n[t],l=this._getResolutionString(s),c=Bs(s.codecs),d=null==(i=this._core.backbone)||null==i.getCurrentStream?void 0:i.getCurrentStream("audio"),u=Vs(null==d?void 0:d.codecs),_=`${c}${u?` / ${u}`:""}`,p=null==(o=this._core.backbone)?void 0:o.telecine.getEffectByName("AmbisonicEffect");this._addMarker("switchcomplete",`Completed switch to ${l}`),this._addToSeries("streams",{profile:void 0!==e?e.profile:null,quality:void 0!==e?e.quality:`${s.height}p`,avgBitrate:s.avg_bitrate,ambisonicConnected:null==p?void 0:p.connected,ambisonicOrder:null==d?void 0:d.ambisonic_order,audioBitrate:null==d?void 0:d.avg_bitrate,audioChannels:null!==(r=null!==(a=null==d?void 0:d.channels)&&void 0!==a?a:s.channels)&&void 0!==r?r:void 0,framerate:s.framerate,height:s.height,width:s.width,id:s.id,codec:_})},t._onFileChange=function(){const e=this.getCurrent("files"),t=this._core.backbone.currentFile;this._addToSeries("files",t);const n=t.metadata.cdn,i=e?e.metadata.cdn:null,o=e?qt[e.mime]:null,r=qt[t.mime];let a=`CDN to ${n}/${r}`;i&&(a=`CDN from ${i}/${o} to ${n}/${r}`),this._addMarker("filechange",a)},t._onBufferOccupancyChange=function(e){const t=Math.round(1e3*e)/1e3;this._addToSeries("buffer_occupancy",{videoTime:this._core.backbone.currentTime,time:Date.now(),value:t})},t._onScannerChange=function(){const e=this.getCurrent("scanner"),t=this._core.backbone.currentScannerName;this._setToSeries("scanner",t),e&&this._addMarker("scannerchange",`Scanner change to ${t}`),"HLSLiveScanner"===t?this._setLatencyInterval():this._removeLatencyInterval()},t._onBufferGapJump=function(e){this._addMarker("buffergapjump",e.msg)},t._onBufferGapJumpPrevent=function(e){this._addMarker("buffergapjumpprevent",e.msg)},t._onStallJump=function(e){this._addMarker("stalljump",e.msg)},t._onStalled=function(){this._addMarker("stalled","Stalled")},t._getResolutionString=function(e){return`${e.width}×${e.height}@${Math.round(e.framerate)} ${Math.round(e.bitrate/1e3).toLocaleString()} Kbps`},t._onTimeUpdate=function(){this._core.events.fire(Wt._debugDataChange)},e}(),Ws=function(){function e(e){this._player=e,this._currentFragment=null,this._attachEventHandlers()}var t=e.prototype;return t._attachEventHandlers=function(){this._onReset=()=>this.reset(),this._player.events.on(kt._reset,this._onReset)},t._detachEventHandlers=function(){this._player.events.off(kt._reset,this._onReset)},t.hibernate=function(){this._detachEventHandlers()},t.wake=function(){this._attachEventHandlers()},t._getFragment=function(e,t,n){if(l(n))return{startTime:0,endTime:t,duration:t};const i=1e3*e,o=n.findIndex((e,t)=>{const o=n[t+1],r=t===n.length-1;return e<=i&&(i1?(t[1]-1)/1e3:this._player.config.video.duration}},{key:"currentFragment",get:function(){var e;return l(null==(e=this._player.config.embed.interactive)?void 0:e.fragments)?{startTime:0,endTime:this._player.config.video.duration,duration:this._player.config.video.duration}:this._currentFragment}}]),e}();var $s;!function(e){e.FIRST_INPUT_DELAY="firstInputDelay",e.CUMULATIVE_LAYOUT_SHIFT="cumulativeLayoutShift",e.LARGEST_CONTENTFUL_PAINT="largestContentfulPaint"}($s||($s={}));const qs=4e-4/Object.keys($s).length,Ks={};let js;var zs;let Xs,Zs;!function(e){e.PQ="PQ",e.DV5="DV5",e.DV81="DV81",e.DV82="DV82",e.DV84="DV84",e.HDR10="HDR10",e.HDR10_PLUS="HDR10_PLUS",e.HLG="HLG"}(js||(js={})),function(e){e.FAIRPLAY="fairplay",e.WIDEVINE="widevine",e.PLAYREADY="playready"}(zs||(zs={})),function(e){e.FREE="free",e.BASIC="basic",e.STARTER="starter",e.STANDARD="standard",e.ADVANCED="advanced",e.BUSINESS="business",e.PLUS="plus",e.PLUS_LAPSED="plus_lapsed",e.PRO="pro",e.PRO_LAPSED="pro_lapsed",e.PRO_EXPIRED="pro_expired",e.PRODUCER="producer",e.PRODUCER_LAPSED="producer_lapsed",e.LIVE_PRO="live_pro",e.LIVE_BUSINESS="live_business",e.LIVE_BUSINESS_LAPSED="live_business_lapsed",e.LIVE_PREMIUM="live_premium",e.LIVE_PREMIUM_LAPSED="live_premium_lapsed",e.ENTERPRISE="enterprise",e.ENTERPRISE_LAPSED="enterprise_lapsed",e.CUSTOM="custom",e.GUEST="none"}(Xs||(Xs={})),function(e){e.KOLLECTIVE="kollective",e.HIVE="hive"}(Zs||(Zs={}));const Qs={[Zs.KOLLECTIVE]:"Kollective",[Zs.HIVE]:"Hive"};function Js({config:e,debugCollector:t,backbone:n}){var i,r,a,s,l;const c=e.request.session,d=t.getCurrent(mi.FIELD_VIDEO_DIMS),u=t.getCurrent(mi.FIELD_TOTAL_FRAMES)||0,_=t.getCurrent(mi.FIELD_DROPPED_FRAMES)||0,p=t.getCurrent(mi.FIELD_FILES),v=t.getCurrent(mi.FIELD_STREAMS),m=t.getCurrent(mi.FIELD_SCANNERS),f=t.getCurrent(mi.FIELD_BANDWIDTH),h=m===gi.HLS_LIVE_SCANNER,g=m===gi.MEDIA_SOURCE_SCANNER,E=Ie(n.currentTime,n.buffered),b=n.currentTime+E,C=function(e){if(!e)return null;const t=e.length;let n=0,i=[];for(;n{var n;return`${t}: ${null==(n=e.request.ab_tests[t])?void 0:n.group}`}).join(", "),isDNTEnabled:L,totalFrames:u,droppedFrames:_,bufferTarget:y,presentationDelay:T,ua:null==(i=navigator)?void 0:i.userAgent,clipId:e.video.id,readyState:n.readyState,support:JSON.stringify(o),bufferEnd:Tt(b,3),bufferAhead:Tt(E,3),currentTime:Tt(n.currentTime,3),clientIp:null==(r=e.request)||null==(a=r.client)?void 0:a.ip,playerVersion:Ya(e),bufferedRanges:JSON.stringify(C),brainDebug:JSON.stringify(n.brainDebug),codec:v?v.codec:null,hideCloseButton:!!e.embed.settings.background,isCopyDisabled:!!L,vrHeadsetName:t.getCurrent(mi.FIELD_VR_HEADSET),droppedFramesPercent:0!==u?`${(_/u*100).toFixed(2)}%`:0,resolution:v?`${v.width}×${v.height}@${Math.round(v.framerate)} ${Math.round(v.avgBitrate/1e3).toLocaleString()} Kbps ${v.audioBitrate?` / ${Math.round(v.audioBitrate/1e3).toLocaleString()} Kbps`:""}`:null,payloadId:`${e.video.owner.id}_${e.video.id}_${e.request.session}_${Math.floor(Date.now()/1e3)}`,bandwidthKbps:f?`${Math.floor(f.value/1e3).toLocaleString()} Kbps`:0,bandwidthMinKbps:`${Math.floor(t.getCurrent(mi.FIELD_MIN_BANDWIDTH)/1e3).toLocaleString()} Kbps`,bandwidthMaxKbps:`${Math.floor(t.getCurrent(mi.FIELD_MAX_BANDWIDTH)/1e3).toLocaleString()} Kbps`,separateAudioVideo:!(null==(s=e.request.files)||!s.dash||!e.request.files.dash.separate_av),bandwidthSeriesData:tl(t)};(null==v?void 0:v.audioChannels)&&(A.resolution+=v.ambisonicConnected&&v.ambisonicOrder?` ambisonic ${v.ambisonicOrder} (${v.audioChannels}ch)`:` ${v.audioChannels}ch`),p&&(A.delivery=p.mime),e.request.drm&&Object.assign(A,{drmEnabled:!0});const S=null==(l=e.video.ecdn)?void 0:l.ecdn_provider;if(S){const{ecdnBytesByCdn:e,ecdnBytesPeered:t,ecdnPeers:n}=yo(S),i={p2pSources:n.toString(),p2pOffload:`${el(t,e)}%`,ecdnVendor:Qs[S]};Object.assign(A,i)}return h&&Object.assign(A,function(e,t){var n;const i=(null==(n=e.video.live_event)?void 0:n.id)||null;let o="";try{var r;o=`${(null!==(r=t.getCurrent(mi.FIELD_LIVE_LATENCY))&&void 0!==r?r:0).toFixed(2)}`}catch(ke){}return{liveLatency:o,liveSessionID:i}}(e,t)),A}function el(e,t){return 0===e&&0===t?0:Tt(e/(t+e)*100,1)}function tl(e){const t=e.getSeries(mi.FIELD_BANDWIDTH)||[],n=e.getCurrent(mi.FIELD_MAX_BANDWIDTH)||1;return{debugMarkers:e.getSeries(mi.FIELD_MARKERS)||[],timeSeries:t,max:n}}let nl=function(){function e(e=((e,t)=>et?this._binarySearch(e,t,n,o-1):e[o]this._data[e])},t.forEach=function(e){const t=this._sortedKeys.length;for(let n=0;n{var t,n;const i=new nl;return(null==(t=e.embed)||null==(n=t.cards)?void 0:n.length)&&e.embed.cards.forEach(e=>{const t=e.url?h(h({},e),{},{url:ji(e.url)}):e;i.set(e.timecode,Kr(t))}),i},rl=e=>{const{events:t,set:n}=e,i=function(e){return{cardsMap:ol(e.config),activeCard:null,hoveredCard:null,displayedCard:null,cardPressed:void 0}}(e),o=e=>{const{hoveredCard:t,activeCard:n}=e,i=null!==t?t:n;return{cards:h(h({},e),{},{displayedCard:i})}},r=e=>{e&&t.fire(Wt._cardDisplayed,e.id,e)},a=e=>e.timecode;return t.on(Wt._configChanged,(e,t)=>{n(e=>{const n=h(h({},e.cards),{},{cardsMap:ol(t),activeCard:null,hoveredCard:null});return o(n)})}),t.on(kt._addCard,e=>{n(t=>{let{cardsMap:n}=t.cards;n.set(e.timecode,e),r(e);const i=h(h({},t.cards),{},{cardsMap:n,activeCard:e.timecode});return o(i)})}),t.on(kt._removeCard,e=>{n(t=>{let{cardsMap:n}=t.cards;n.delete(e.timecode);const i=h(h({},t.cards),{},{cardsMap:n,activeCard:null,hoveredCard:null});return o(i)})}),t.on(E.TIME_UPDATE,({currentTime:e})=>{n(t=>{const n=((e,t)=>{const{cardsMap:n}=e.cards;let i=n.values().filter(e=>((e,t)=>t>=a(e)&&t<(e=>a(e)+(e.displayTime||6))(e))(e,t)).slice(-1)[0];return(null==i?void 0:i.timecode)||null})(t,e),i=t.cards.cardsMap.get(n);if(n===t.cards.activeCard)return il;const s=h(h({},t.cards),{},{activeCard:n});return r(i),o(s)})}),t.on(Wt._ended,()=>{n(e=>{const t=h(h({},e.cards),{},{activeCard:null,hoveredCard:null});return o(t)})}),{cards:i,setCards:(e,i)=>{"cardPressed"!==e?((e,t)=>{n(n=>{const i=h(h({},n.cards),{},{[e]:t});return o(i)})})(e,i):t.fire(Wt._cardPressed,i)}}};function al(e){var t,n,i,r;const{config:a}=e,{title:s}=a.video,{title:c,portrait:d}=a.embed.settings,u=0===a.embed.on_site,_=a.embed.settings.spatial_label,p=!(!a.video.spatial||!_),v=a.request.file_codecs||a.video.file_codecs,m=!l(v),f=a.request.hdr_formats||[],g=m&&(null==(t=v.hevc)||null==(n=t.hdr)?void 0:n.length)>0,E=f.includes(js.HDR10_PLUS),b=f.includes(js.DV84)||m&&(null==(i=v.hevc)||null==(r=i.dvh1)?void 0:r.length)>0,C=!!a.video.ai,y=a.video.channel_layout||"stereo",T=a.video.owner[o.devicePixelRatio>1?"img_2x":"img"],L=a.video.owner.name,A=Vi("video-portrait",a),S=Vi("video-byline",a);let I=Vi("video-title",a);const O=function(e){let t={displayByline:!1,displayBadge:!1};if(e.embed.settings.byline){const{type:n,url:i}=e.embed.settings.byline_badge||{};Object.assign(t,{displayByline:!0,displayBadge:!e.video.live_event,bylineBadgeType:n,bylineBadgeUrl:i})}return t}(a);return e.segmentedPlaybackEnabled&&(I=qi(I,e.startTime,e.endTime)),h({ownerLinkUrl:A,titleLinkUrl:I,bylineLinkUrl:S,displayTitle:!!c,displayPortrait:!!d,ownerName:L,targetBlank:u,portraitImg:T,title:s,is360:p,hasAIContent:C,hasHDR:g,hasHDR10Plus:E,hasDolbyVision:b,channelLayout:y},O)}let sl,ll;function cl(e){var t;const{config:n,store:i}=e,{request:o,video:r}=n,a=Vi("vimeo-logo",e.config),s=null==(t=r.vod)?void 0:t.button_text,l=i.get("ui.player.breakpoint"),c=i.get("ui.player.mode"),d=ar(rr.FULL_CONTROLS,c,l);return{overrideBehavior:!1,trailerButtonText:s,vimeoLogoUrl:a,thumbnailPreview:o.thumb_preview,showAllControls:d,progressBarExpanded:!1,shouldRestoreButtonsDisplayed:!1}}!function(e){e.EMPTY="empty",e.UNMUTE="unmute",e.WATCH_FULL_VIDEO="watchFullVideo"}(ll||(ll={}));const dl=[ll.WATCH_FULL_VIDEO,ll.UNMUTE];function ul(e){const{config:t}=e,{autoplay:n,settings:i}=t.embed;return{purpose:e.segmentedPlaybackEnabled&&n&&i.watch_full_video?ll.WATCH_FULL_VIDEO:ll.EMPTY}}function _l({displayList:e,playback:t,embed:n}){const{outro:i,controlBar:o}=e,{isSegmentedPlaybackEnabled:r,paused:a,scrubbing:s}=t;return!!r&&!i&&o&&!(a&&!s)&&n.watchFullVideo}function pl(e){const t=e.embed.access_gates;if(!t)return null;const n=t.find(e=>e.placement===Do.BEFORE_VIDEO);return n?Ho(null==n?void 0:n.gate_type,e)?null:((e,t)=>{const n=Bo[e];return!n||n.includes(t.view)})(null==n?void 0:n.gate_type,e)?n:null:null}const vl=e=>!e.title&&!e.portrait&&!e.byline,ml=e=>{const{config:t,element:n}=e,{embed:i}=t,o=n.classList.contains("player-tiny"),r=ul(e),a=(null==r?void 0:r.purpose)===ll.WATCH_FULL_VIDEO;return!(o||null!==pl(t)||qn(n)||t.view&&!En(t.view)||null!=i&&i.autoplay||vl(null==i?void 0:i.settings)||!zn(i)||a)},fl=e=>{const{view:t,video:n,embed:i,request:r}=e.config,{vod:a}=n,s=t!==Kt.main&&t!==Kt.privateUnlocked,l=!!i.settings.instant_sidedock,c=a&&"purchase_options"in a&&!!a.purchase_options.length,d=a&&gn(a.countries,r.country);return!qn(e.element)&&null===pl(e.config)&&!!zn(i)&&!e.segmentedPlaybackEnabled&&(o.touch||s||l||c&&d)},hl=e=>{var t;const{view:n,embed:i,request:o}=e.config;return!(null!==pl(e.config)||qn(e.element)||n&&!En(n)||i.autoplay&&(null==(t=o.flags)?void 0:t.autohide_controls)||!zn(i))};function gl({element:e,get:t,set:n}){return{purpose:Kn(e),spatialRedirectContext:null,overlayElementsUpdatedCount:0,incrementOverlayElementsUpdatedCount:()=>{n(e=>({overlay:h(h({},e.overlay),{},{overlayElementsUpdatedCount:t().overlay.overlayElementsUpdatedCount+1})}))}}}function El(e){return Object.values(Gn).includes(e)}let bl;!function(e){e.EMPTY="empty",e.SPATIAL_UNSUPPORTED="spatial-unsupported",e.SPATIAL_FAILURE="spatial-failure"}(bl||(bl={}));const Cl=({element:e,config:t})=>{if(e.classList.contains("player-mini")||e.classList.contains("player-tiny"))return!1;const{embed:n}=t;return!(!n.settings.badge||n.autoplay&&16!==n.settings.badge.id)};let yl,Tl,Ll,Al;!function(e){e.IDLE="idle",e.LOADED="loaded",e.ERROR="error",e.LOADING="loading"}(yl||(yl={})),function(e){e.MAIN="main",e.LANGUAGE="language"}(Tl||(Tl={})),function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(Ll||(Ll={})),function(e){e.PREV="prev",e.NEXT="down",e.FIRST="first",e.LAST="last"}(Al||(Al={}));const Sl="en",Il=e=>e.replace(/<\/?[\w\s]*>|<.+[\W]>/g,""),Ol={language:"en",id:"",label:"Transcript",rtl:!1},Pl=(e,t)=>{const{lang:n,cookie:i}=e.request,{captions:o,transcript:r}=i,[a]=(r||"").split("."),[s]=(o||"").split(".");return r&&t.find(e=>e.language.includes(a))||s&&t.find(e=>e.language.includes(s))||n&&t.find(e=>n.includes(e.language))||t.find(e=>e.language.includes("en"))||t[0]||Ol},wl=(e,t)=>e.findIndex(e=>e.startTime<=t&&e.endTime>t),Rl=(e,t)=>!!e.find(e=>e.index===t),Nl=e=>e?e.endTime-e.startTime:0;function kl(e,t,n,i){return(e=>e.map((e,t,n)=>{const i=n[t+1];return i&&i.startTime{if(0===e.length)return[];let o,r,a,s,l;return c(e[0]),e.reduce((function(a,s,l,u){var _;const{text:p,endTime:v}=s,m=function(e,t){return e+1===t.length}(l,u);if(r+=`${p} `,m)return d(v,a);const f=p.split(" "),h=function(e){return function(e){return[".","?","!"].some(t=>e.trim().endsWith(t))}(e[e.length-1])}(f);o+=f.length;const g=o>=n,E=o>=t&&h,b=function(e,t,n){return t-e>n}(s.endTime,null==(_=u[l+1])?void 0:_.startTime,i);return(g||E||b)&&(a=d(v,a),c(e[l+1])),a}),[]).map((e,t)=>h(h({},e),{},{originalIndex:t}));function c(e){e&&(o=0,r="",a=e.startTime,s=e.originalIndex,l=e.startTimeDisplay)}function d(e,t){return t.concat({originalIndex:s,text:r.trim(),startTime:a,startTimeDisplay:l,endTime:e})}})(((e,t,n,i)=>{let o;return o=t?e.reduce((e,n)=>(n.startTime>=t.startTime&&n.endTime<=t.endTime&&e.push(h(h({},n),{},{startTimeDisplay:Jn(An(n.startTime,t))})),e),[]):(e=>e.map(e=>h(h({},e),{},{startTimeDisplay:Jn(e.startTime)})))(n||i?e.filter(e=>{const t=!n||e.startTime>=n,o=!i||e.startTime<=i;return t&&o}):e),o})((e=>e.map((e,t)=>({startTime:e.startTime,endTime:e.endTime,startTimeDisplay:"",text:Il(e.text),originalIndex:t})))(e),!o.isGoogleBot&&t,n,i)))}function Dl(e){var t;return(null==(t=e[0])?void 0:t.startTime)||0}function Ml(e){var t;return(null==(t=e[e.length-1])?void 0:t.endTime)||0}const Bl=(e,t)=>{let n={index:0,diff:1/0};for(let i=0;i=e)return i;const o=Math.abs(t[i].startTime-e),r=Math.abs(t[i].endTime-e),a=Math.min(o,r);ao.isGoogleBot||(null==e?void 0:e.config.embed.tq),xl=[Gn.EMPTY,Gn.HELP,Gn.SHARE,Gn.INTERACTIVE],Ul=({config:e,store:t})=>{const{embed:n}=e;if(!n.settings.playbar)return!1;if(!zn(n))return!1;const i=t.get("ui.player.breakpoint"),o=t.get("ui.player.mode");return ar(rr.PROGRESS_BAR,o,i)},Hl=e=>{const t=Vl(e);return o.isGoogleBot&&t};function Fl(e){e(e=>({displayList:h(h({},e.displayList),{},{aiWidget:!1})}))}const Gl=({config:e,store:t})=>{const{embed:n}=e;if(!zn(n))return!1;const i=t.get("ui.player.breakpoint"),o=t.get("ui.player.mode");return ar(rr.FULL_CONTROLS,o,i)},Yl=e=>{const{set:t,get:n}=e,i=function(e){const t=fl(e),n=ml(e),i=(e=>gl(e).purpose!==Gn.EMPTY)(e),o=(({store:e,config:t,events:n,set:i})=>{var o,r;return n.on(Wt._configChanged,(e,t)=>{i(e=>{var n,i;return{displayList:h(h({},e.displayList),{},{cards:!!(null==(n=t.embed)||null==(i=n.cards)?void 0:i.length)&&!e.appearance.isMenuBlockingUI})}})}),!!(null==(o=t.embed)||null==(r=o.cards)?void 0:r.length)&&!e.get("ui.controlbar.isMenuFullWidth")})(e),r=Cl(e),a=hl(e),s=Ul(e),l=Hl(e),d=Vl(e),u=function(e){const{purpose:t}=ul(e);return t!==ll.EMPTY}(e),_=(e=>{const{config:t}=e;return null!==pl(t)})(e),p=Gl(e),v=i||_;return(({set:e,get:t,events:n,subscribe:i})=>{const o=(i,o=!1)=>{t().displayList.outro!==i&&(i&&(t().displayList.accessGate||t().displayList.ad||t().embed.background||t().embed.loop)||(e(e=>({displayList:h(h({},e.displayList),{},{outro:i})})),o&&n.fire(i?Wt._outroDisplayed:Wt._outroHidden)))};function r(e){a()||(e?o(!1,!0):t().playback.ended&&o(!0,!0))}function a(){return zo(t().outro.purpose,t().embed.flags)}n.on(Wt._outroDisplayed,()=>o(!0)),n.on([Wt._outroHidden,E.PLAY,E.SEEKED,Wt._scrubbingStarted,kt._hideOutro,kt._reset],()=>o(!1)),n.on(kt._showOutro,e=>{zo(e,t().embed.flags)||o(!0,!0)}),i(e=>{var t;return null==e||null==(t=e.playback)?void 0:t.ended},e=>{a()||o(e,!0)}),i(e=>{var t;return null==e||null==(t=e.displayList)?void 0:t.accessGate},r),i(e=>{var t;return null==e||null==(t=e.displayList)?void 0:t.ad},r)})(e),(({store:e,config:t,set:n})=>{e.watch("ui.controlbar.isMenuFullWidth",e=>{n(n=>{var i,o;return{displayList:h(h({},n.displayList),{},{cards:!!(null==(i=t.embed)||null==(o=i.cards)?void 0:o.length)&&!e})}})})})(e),(({set:e,events:t,store:n})=>{n.watch("ui.player.mode",t=>{t===_i.TINY&&e(e=>({displayList:h(h({},e.displayList),{},{debugPanel:!1})}))}),t.on(Wt._debugButtonPressed,()=>{e(e=>n.get("ui.player.mode")===_i.TINY?il:{displayList:h(h({},e.displayList),{},{debugPanel:!e.displayList.debugPanel})})})})(e),(e=>{const{set:t,get:n,subscribe:i,events:o}=e;function r(e={}){n().displayList.sideDock&&t(t=>{const{playback:n,displayList:i,appearance:r,embed:a,cards:s}=t,{fullPlayerElement:l,alert:c,menu:u,toast:_}=i,{playInitiated:p,targetTimeReached:v}=n,{forceExitedFullscreen:m}=r,f=hn(r,e,"mousedOverSidedock"),g=l||c||u&&r.isMenuBlockingUI||!!s.displayedCard||_&&d();return m?il:p&&v||g||a.autoHideControls?f?il:!r.externalDisplay&&!r.pictureInPictureActive||g?(o.fire(Wt._sidedockVisibilityChanged,!1),{appearance:h(h({},t.appearance),{},{mousedOverSidedock:f}),displayList:h(h({},t.displayList),{},{sideDock:!1})}):il:il})}function a(e={}){n().displayList.sideDock||t(t=>{const{displayList:n,appearance:i,embed:r,cards:a,playback:s}=t,{menu:l,fullPlayerElement:c,alert:u,toast:_}=n,p=c||u||l&&i.isMenuBlockingUI||!!a.displayedCard||_&&d();return zn(r)?p||s.isSegmentedPlaybackEnabled?il:(o.fire(Wt._sidedockVisibilityChanged,!0),{appearance:h(h({},t.appearance),{},{mousedOverSidedock:hn(t.appearance,e,"mousedOverSidedock")}),displayList:h(h({},t.displayList),{},{sideDock:!0})}):il})}function s(){return r({mousedOverSidedock:!1})}function l(e,t){e&&t&&s()}function c(e,t){!e&&t&&a()}function d(){return[Xo.XXS,Xo.XS].includes(n().appearance.playerBreakpoint)}o.on([Wt._mousedOut,Wt._mouseTimeout,Wt._nudgeAttempted],r),o.on([Wt._mousedOver,Wt._airPlayActivated,E.ENTER_PICTURE_IN_PICTURE],a),o.on(Wt._configChanged,(function(n,i){const o=fl(h(h({},e),{},{config:i}));t(e=>({displayList:h(h({},e.displayList),{},{sideDock:o})}))})),i(e=>{var t;return null==e||null==(t=e.playback)?void 0:t.targetTimeReached},e=>e&&r()),i(e=>{var t;return null==e||null==(t=e.appearance)?void 0:t.fullscreen},e=>!e&&s()),i(e=>{var t;return null==e||null==(t=e.displayList)?void 0:t.alert},e=>e&&r()),i(e=>{var t;return null==e||null==(t=e.displayList)?void 0:t.menu},e=>e?l(e,n().appearance.isMenuBlockingUI):c(e,n().appearance.isMenuBlockingUI)),i(e=>{var t;return null==e||null==(t=e.appearance)?void 0:t.isMenuBlockingUI},e=>e?l(n().displayList.menu,e):c(n().displayList.menu,e)),i(e=>{var t;return null==e||null==(t=e.displayList)?void 0:t.fullPlayerElement},e=>e?s():a()),i(e=>{var t;return null==e||null==(t=e.displayList)?void 0:t.ad},e=>{e?t(e=>({displayList:h(h({},e.displayList),{},{sideDock:!1})})):n().displayList.sideDock||a()}),i(e=>{var t;return null==e||null==(t=e.cards)?void 0:t.displayedCard},e=>e&&s()),i(e=>{var t;return null==e||null==(t=e.displayList)?void 0:t.toast},e=>e&&d()&&s()),i(e=>{var t;return null==e||null==(t=e.playback)?void 0:t.isSegmentedPlaybackEnabled},e=>{e?s():a()})})(e),(e=>{const{set:t,get:n,subscribe:i,events:o,config:r}=e;function a(){t(e=>{const{appearance:t,playback:n,embed:i}=e,{externalDisplay:o}=t,{scrubbing:a,paused:s}=n,l=d(e),{embed:c}=r;return zn(i)?t.playerSizeMode===_i.TINY||vl(c.settings)||l?il:o?{displayList:h(h({},e.displayList),{},{title:!0})}:!s||a?il:{displayList:h(h({},e.displayList),{},{title:!0})}:il})}function s(){t(e=>{const{appearance:t,playback:n}=e,{externalDisplay:i}=t,{playInitiated:o}=n,r=d(e);return t.playerSizeMode===_i.TINY||r?{displayList:h(h({},e.displayList),{},{title:!1})}:i||!o?il:{displayList:h(h({},e.displayList),{},{title:!1})}})}function l(e,t){e&&t&&s()}function c(e,t){!e&&t&&a()}function d(e){const{fullPlayerElement:t,outro:n,menu:i,toast:o,topCenterActionItem:r}=e.displayList,{isMenuBlockingUI:a}=e.appearance;return t||n||i&&a||o||r}i(e=>{var t;return null==e||null==(t=e.playback)?void 0:t.playInitiated},e=>e&&s()),i(e=>{var t;return null==e||null==(t=e.playback)?void 0:t.paused},e=>{e?a():s()}),i(e=>{var t;return null==e||null==(t=e.appearance)?void 0:t.fullscreen},e=>{e?s():a()}),i(e=>{var t;return null==e||null==(t=e.appearance)?void 0:t.externalDisplay},e=>{e?a():s()}),i(e=>{var t;return null==e||null==(t=e.displayList)?void 0:t.outro},e=>{e?s():a()}),i(e=>{var t;return null==e||null==(t=e.displayList)?void 0:t.fullPlayerElement},e=>{e?s():a()}),i(e=>{var t;return null==e||null==(t=e.displayList)?void 0:t.menu},e=>e?l(e,n().appearance.isMenuBlockingUI):c(e,n().appearance.isMenuBlockingUI)),i(e=>{var t;return null==e||null==(t=e.appearance)?void 0:t.isMenuBlockingUI},e=>e?l(n().displayList.menu,e):c(n().displayList.menu,e)),i(e=>{var t;return null==e||null==(t=e.overlay)?void 0:t.purpose},e=>{[Gn.NOT_SUPPORTED,Gn.HELP,Gn.EMPTY].includes(e)||s()}),i(e=>{var t;return null==e||null==(t=e.appearance)?void 0:t.playerSizeMode},e=>{e===_i.TINY?s():a()}),i(e=>{var t;return null==e||null==(t=e.displayList)?void 0:t.toast},e=>e?s():a()),i(e=>{var t;return null==e||null==(t=e.displayList)?void 0:t.topCenterActionItem},e=>e?s():a()),o.on(Wt._ended,s).on(kt._reset,a).on(Wt._configChanged,(n,i)=>{t(t=>({displayList:h(h({},t.displayList),{},{title:ml(h(h({},e),{},{config:i}))})}))})})(e),(({set:e,subscribe:t})=>{t(e=>{var t;return null==e||null==(t=e.overlay)?void 0:t.purpose},t=>(t=>{e(e=>({displayList:h(h({},e.displayList),{},{overlay:t})}))})(t!==Gn.EMPTY))})(e),(({get:e,set:t,subscribe:n})=>{n(e=>{var t;return null==e||null==(t=e.alert)?void 0:t.currentAlert},n=>{const i=e().displayList.alert;if(!i&&n===bl.EMPTY)return;if(i&&n!==bl.EMPTY)return;const o=n!==bl.EMPTY;t(e=>({displayList:h(h({},e.displayList),{},{alert:o})}))})})(e),(({events:e,subscribe:t,set:n,get:i})=>{function o(){n(e=>{const{menu:t}=e.displayList;return t?{displayList:h(h({},e.displayList),{},{menu:!1})}:il})}e.on(kt._reset,o),t(e=>{var t;return null==e||null==(t=e.displayList)?void 0:t.menu},t=>{const n=t?"preact-menu":"";e.fire(Wt._menuVisibilityChanged,n)}),t(e=>{var t;return null==e||null==(t=e.displayList)?void 0:t.transcript},e=>{var t,n,r,a;return e&&((null==(t=i())?void 0:t.appearance.appBreakpoint)===Xo.XS||(null==(n=i())?void 0:n.appearance.appBreakpoint)===Xo.XXS||(null==(r=i())?void 0:r.appearance.appSizeMode)===_i.MINI||(null==(a=i())?void 0:a.appearance.appSizeMode)===_i.TINY)&&o()}),t(e=>{var t;return null==e||null==(t=e.appearance)?void 0:t.appBreakpoint},e=>{var t;return(null==(t=i())?void 0:t.displayList.transcript)&&(e===Xo.XS||e===Xo.XXS)&&o()}),t(e=>{var t;return null==e||null==(t=e.appearance)?void 0:t.appSizeMode},e=>{var t;return(null==(t=i())?void 0:t.displayList.transcript)&&(e===_i.MINI||e===_i.TINY)&&o()})})(e),(({set:e,events:t})=>{const n=t=>e(e=>({displayList:h(h({},e.displayList),{},{ad:t})}));t.on(Wt._pausedForAd,()=>n(!0)),t.on([Wt._resumedAfterAd,kt._reset],()=>n(!1))})(e),(({set:e,get:t,config:n,events:i,subscribe:o,store:r,element:a})=>{let s=n;const l=(t={})=>{var n,i,o;(16!==(null==(n=s.embed)||null==(i=n.settings)||null==(o=i.badge)?void 0:o.id)||t.isStockBadgeBehavior)&&e(e=>({displayList:h(h({},e.displayList),{},{badge:!1})}))},c=(t={})=>{var n,i,o;(16!==(null==(n=s.embed)||null==(i=n.settings)||null==(o=i.badge)?void 0:o.id)||t.isStockBadgeBehavior)&&e(e=>{const{appearance:t}=e;return[_i.MINI,_i.TINY].includes(t.playerSizeMode)?il:s.embed.settings.badge?{displayList:h(h({},e.displayList),{},{badge:!0}),appearance:h(h({},e.appearance),{},{shouldRestoreBadge:!1})}:il})};function d(t){e(e=>({displayList:h(h({},e.displayList),{},{badge:Cl({config:t,element:a})})}))}i.on(Wt._controlBarVisibilityChanged,e=>{var t,n,i;16===(null==(t=s.embed)||null==(n=t.settings)||null==(i=n.badge)?void 0:i.id)&&(e?c({isStockBadgeBehavior:!0}):l({isStockBadgeBehavior:!0}))}),i.on(Wt._ended,l),i.on(Wt._configChanged,(e,t)=>{s=t,d(t)}),i.on(kt._reset,()=>{d(s)}),r.watch("ui.player.mode",n=>{n!==_i.TINY&&n!==_i.MINI||!t().displayList.badge?t().appearance.shouldRestoreBadge&&c():e(e=>({displayList:h(h({},e.displayList),{},{badge:!1}),appearance:h(h({},e.appearance),{},{shouldRestoreBadge:!0})}))}),o(e=>{var t;return null==e||null==(t=e.playback)?void 0:t.paused},e=>{e?c():l()}),o(e=>{var t;return null==e||null==(t=e.playback)?void 0:t.playInitiated},e=>e&&l()),o(e=>{var t;return null==e||null==(t=e.displayList)?void 0:t.fullPlayerElement},e=>{(function(e){return[Gn.NOT_SUPPORTED,Gn.HELP,null].includes(e)})(e)||l(),e||t().playback.playInitiated||c()})})(e),(({set:e,subscribe:t})=>{t(e=>{var t;return null==e||null==(t=e.notification)?void 0:t.currentNotification},t=>{(t=>{e(e=>({displayList:h(h({},e.displayList),{},{notification:t})}))})(!!t)})})(e),(({set:e,events:t})=>{const n=t=>{e(e=>({displayList:h(h({},e.displayList),{},{pipOverlay:t})}))};t.on(E.ENTER_PICTURE_IN_PICTURE,()=>n(!0)),t.on(E.LEAVE_PICTURE_IN_PICTURE,()=>n(!1))})(e),(e=>{const{set:t,events:n,config:i,subscribe:o}=e;function r(e={}){t(t=>{const{controlBar:i,embed:o,playback:r,displayList:a,appearance:s}=t,l=hn(s,e,"mousedOverControlBar"),c={appearance:h(h({},t.appearance),{},{mousedOverControlBar:l})};return i.overrideBehavior||s.forceExitedFullscreen?c:r.playInitiated&&r.targetTimeReached||a.fullPlayerElement||o.autoHideControls||a.ad?l?c:!s.externalDisplay&&!s.pictureInPictureActive||a.fullPlayerElement?r.buffering||r.scrubbing?c:(n.fire(Wt._controlBarVisibilityChanged,!1),h(h({},c),{},{displayList:h(h({},t.displayList),{},{controlBar:!1})})):c:c})}function a(){t(e=>{const{displayList:t,controlBar:i,embed:o}=e;return zn(o)?i.overrideBehavior||t.fullPlayerElement?il:(n.fire(Wt._controlBarVisibilityChanged,!0),{displayList:h(h({},e.displayList),{},{controlBar:!0})}):il})}function s(){return r({mousedOverControlBar:!1})}function l(n){const i=hl(h(h({},e),{},{config:n}));t(e=>({displayList:h(h({},e.displayList),{},{controlBar:i})}))}n.on([Wt._mousedOver,Wt._scrubbingStarted,kt._changeVolume,kt._reset],a),n.on(Wt._mousedOut,s),n.on(Wt._mouseTimeout,r),n.on(Wt._configChanged,(function(e,t){l(t)})),n.on([K.STREAM_ONLINE,K.STREAM_OFFLINE,K.EVENT_ENDED],(function(){l(i)})),n.on(kt._setControlsVisibility,(function(e){t(t=>t.controlBar.overrideBehavior?{displayList:h(h({},t.displayList),{},{controlBar:e})}:il)})),o(e=>{var t;return null==e||null==(t=e.appearance)?void 0:t.externalDisplay},e=>e&&a()),o(e=>{var t;return null==e||null==(t=e.playback)?void 0:t.targetTimeReached},e=>e&&r()),o(e=>{var t;return null==e||null==(t=e.appearance)?void 0:t.fullscreen},e=>{e?s():a()}),o(e=>{var t;return null==e||null==(t=e.displayList)?void 0:t.fullPlayerElement},e=>{e?r():a()}),o(e=>{var t;return null==e||null==(t=e.displayList)?void 0:t.menu},e=>{e&&a()})})(e),(e=>{const{get:t,set:n,events:i,subscribe:o,config:r}=e;function a(){n(e=>{const{transcript:t}=e.displayList;return t?s(e,!1):il})}function s(e,t){return{displayList:h(h({},e.displayList),{},{transcript:t})}}i.on(Wt._configChanged,()=>{n(t=>s(t,Vl(e)))}),i.on(Wt._transcriptKeyPressed,(function(){var e,i,o,a,s,l,c,d,u;const _=null==(e=t())||null==(i=e.overlay)?void 0:i.purpose,p=null==(o=t().displayList)?void 0:o.transcript,v=null==(a=t())||null==(s=a.displayList)?void 0:s.outro,m=null==(l=t())||null==(c=l.displayList)?void 0:c.accessGate,f=null==(d=t())||null==(u=d.captions)?void 0:u.textTracks,g=!!p||!v&&xl.includes(_)&&!!f.length&&!m;t().embed.transcript&&g&&(n(e=>h(h({},e),{},{displayList:h(h({},e.displayList),{},{transcript:!e.displayList.transcript})})),Or(vr.EMBEDDED_TRANSCRIPT_CLICK,r,{name:p?"exit_embed_transcript":"open_embed_transcript",copy:null,location:"keyboard_shortcut",element:"",current_transcript_language:""}))})),i.on(Wt._rightContentAreaDisabled,a),o(e=>{var t;return null==e||null==(t=e.displayList)?void 0:t.outro},e=>e&&a()),o(e=>{var t;return null==e||null==(t=e.displayList)?void 0:t.ad},e=>e&&a()),o(e=>{var t;return null==e||null==(t=e.appearance)?void 0:t.stereoscopicEnabled},e=>e&&a()),o(e=>{var t,n;return(null==e||null==(t=e.displayList)?void 0:t.overlay)&&!xl.includes(null==e||null==(n=e.overlay)?void 0:n.purpose)},e=>e&&a()),o(e=>{var t;return null==e||null==(t=e.displayList)?void 0:t.accessGate},e=>e&&a()),o(e=>{var t;return null==e||null==(t=e.displayList)?void 0:t.transcript},e=>{var n,o;(({events:e},t)=>{e.fire(kt._updateLiveSubtitleRequests,t)})({events:i},e);const a=null==(n=t())||null==(o=n.captions)?void 0:o.textTrackEls;e&&(({config:e,events:t},n)=>{var i;const o=n.map(e=>({id:e.id,label:e.label,language:e.srclang})),r=(null==(i=Pl(e,o))?void 0:i.language)||"";t.fire(Wt._transcriptSessionStarted,{id:c(),startTime:Date.now(),defaultLanguage:r})})({config:r,events:i},a)}),o(e=>{var t;return null==e||null==(t=e.displayList)?void 0:t.aiWidget},e=>e&&a())})(e),(e=>{const{set:t,get:n,subscribe:i,events:o}=e;function r(){t(e=>({displayList:h(h({},e.displayList),{},{progressBar:!1})}))}function a(){t(e=>{const{appearance:t,displayList:n,embed:i,controlBar:o}=e,{playerSizeMode:r,playerBreakpoint:a}=t;return i.playbar?n.ad?il:ar(rr.PROGRESS_BAR,r,a)?!o.showAllControls&&n.controlBarButtons?il:{displayList:h(h({},e.displayList),{},{progressBar:!0})}:il:il})}i(e=>{var t;return null==e||null==(t=e.appearance)?void 0:t.playerSizeMode},e=>{e===_i.TINY?r():a()}),i(e=>{var t;return null==e||null==(t=e.displayList)?void 0:t.controlBarButtons},e=>{e&&!n().controlBar.showAllControls?r():a()}),i(e=>{var t;return null==e||null==(t=e.controlBar)?void 0:t.showAllControls},e=>{!e&&n().displayList.controlBarButtons?r():a()}),i(e=>{var t;return null==e||null==(t=e.displayList)?void 0:t.ad},e=>{e?r():a()}),o.on(Wt._configChanged,(n,i)=>{t(t=>({displayList:h(h({},t.displayList),{},{progressBar:Ul(h(h({},e),{},{config:i}))})}))})})(e),(e=>{const{subscribe:t,set:n,get:i,events:o}=e;function r(e){o.fire(Wt._rightContentAreaVisibilityChange,e),n(t=>({displayList:h(h({},t.displayList),{},{rightContentArea:e}),appearance:h(h({},t.appearance),{},{rightContentAreaAnimating:!0})})),clearTimeout(a),a=setTimeout((function(){n(e=>({appearance:h(h({},e.appearance),{},{rightContentAreaAnimating:!1})}))}),400)}let a;t(e=>{var t,n;return(null==e||null==(t=e.displayList)?void 0:t.transcript)||(null==e||null==(n=e.displayList)?void 0:n.aiWidget)},e=>{var t,n;const o=null==(t=i())||null==(n=t.displayList)?void 0:n.rightContentArea;e&&!o?r(!0):!e&&o&&r(!1)}),Hl(e)&&o.fire(Wt._rightContentAreaVisibilityChange,!0)})(e),(({set:e,get:t,events:n,subscribe:i,config:o,backbone:r})=>{function a(){e(e=>({displayList:h(h({},e.displayList),{},{captions:!1})}))}function s(){e(e=>{const{appearance:t,embed:n}=e;return n.cc?t.pictureInPictureActive||n.background?il:{displayList:h(h({},e.displayList),{},{captions:!0})}:(r.disableTextTrack(),il)})}n.on(S,s),n.on(E.ENTER_PICTURE_IN_PICTURE,a),n.on(E.LEAVE_PICTURE_IN_PICTURE,s),n.on(Wt._ended,()=>{o.embed.outro!==Ko.NOTHING&&a()}),n.on(kt._reset,a),i(e=>{var t;return null==e||null==(t=e.displayList)?void 0:t.fullPlayerElement},e=>{e?a():s()}),i(e=>{var t;return null==e||null==(t=e.playback)?void 0:t.paused},e=>{!e&&s()}),i(e=>{var t;return null==e||null==(t=e.playback)?void 0:t.scrubbing},e=>{e&&s()}),i(e=>{var t;return null==e||null==(t=e.displayList)?void 0:t.ad},e=>{e?a():s()}),i(e=>{var t;return null==e||null==(t=e.captions)?void 0:t.activeCues},e=>{var n,i;e.length&&(null==(n=t())||null==(i=n.playback)?void 0:i.playInitiated)?s():a()})})(e),(e=>{const{subscribe:t,events:n}=e;t(e=>{var t;return null==e||null==(t=e.displayList)?void 0:t.toast},e=>n.fire(Wt._toastVisibilityChanged,e))})(e),(e=>{const{subscribe:t,set:n,get:i,events:o}=e;t(e=>{var t;return null==e||null==(t=e.displayList)?void 0:t.transcript},e=>e&&Fl(n)),o.on(kt._closeRemoteComponent,e=>{e===xn.AI_WIDGET_ID&&Fl(n)}),o.on(Wt._aiWidgetKeyPressed,()=>{const{toggleDisplayList:e,embed:t}=i();t.aiWidget&&e("aiWidget")})})(e),(e=>{const{set:t,events:n}=e,i=e=>{t(t=>({displayList:h(h({},t.displayList),{},{accessGate:e})}))};n.on(Wt._accessGateOpened,()=>{i(!0)}),n.on(Wt._accessGateClosed,()=>{i(!1)})})(e),(({set:e,get:t,subscribe:n})=>{function i(){e(e=>({displayList:h(h({},e.displayList),{},{fullPlayerElement:t().displayList.accessGate||t().displayList.overlay})}))}n(e=>{var t;return null==e||null==(t=e.displayList)?void 0:t.overlay},()=>i()),n(e=>{var t;return null==e||null==(t=e.displayList)?void 0:t.accessGate},()=>i())})(e),(e=>{const{set:t,get:n,subscribe:i,events:o}=e;function r(){t(e=>({displayList:h(h({},e.displayList),{},{controlBarButtons:!1})}))}function a(){zn(n().embed)&&(n().controlBar.progressBarExpanded||t(e=>({displayList:h(h({},e.displayList),{},{controlBarButtons:!0})})))}i(e=>{var t;return null==e||null==(t=e.controlBar)?void 0:t.showAllControls},e=>{e||n().controlBar.shouldRestoreButtonsDisplayed?a():r()}),i(e=>{var t;return null==e||null==(t=e.controlBar)?void 0:t.progressBarExpanded},e=>{!e&&n().controlBar.showAllControls?a():r()}),o.on(Wt._configChanged,(n,i)=>{t(t=>({displayList:h(h({},t.displayList),{},{controlBarButtons:Gl(h(h({},e),{},{config:i}))})}))})})(e),{debugPanel:!1,cards:o,sideDock:t,title:n,controlBar:a,outro:!1,overlay:i,alert:!1,menu:!1,ad:!1,badge:r,notification:!1,nudgeNotification:!1,pipOverlay:!1,transcript:d,progressBar:s,rightContentArea:l,captions:!1,toast:!1,topCenterActionItem:u,aiWidget:!1,accessGate:_,fullPlayerElement:v,controlBarButtons:p}}(e),o=(e,n)=>{t(t=>({displayList:h(h({},t.displayList),{},{[e]:n})}))};return{displayList:i,setDisplayList:o,toggleDisplayList:e=>{const t=n().displayList[e];o(e,!t)}}};function Wl(e){const{config:t,store:i}=e,{video:o}=t,r=i.get("ui.player.width"),a=i.get("ui.player.height"),s=o.width,l=o.height,{videoHeight:c}=$l(r,a,s,l),d=Ea(e);return{playerBreakpoint:i.get("ui.player.breakpoint"),appBreakpoint:i.get("ui.app.breakpoint"),playerSizeMode:i.get("ui.player.mode"),appSizeMode:i.get("ui.app.mode"),transcriptNavActive:!1,fullscreen:!1,forceExitedFullscreen:!1,pictureInPictureActive:!1,externalDisplay:!1,mousedOverSidedock:!1,mousedOverControlBar:!1,isMenuBlockingUI:i.get("ui.controlbar.isMenuFullWidth"),isMenuVerticalVideoMode:i.get("ui.controlbar.isMenuVerticalVideoMode"),shouldRestoreBadge:!1,isVerticalVideo:i.get("ui.player.isVerticalVideo"),boundingClientRect:mt(e.element),isDisplayContextBackbone:e.displayContext===e.backbone,showAirPlayPicker:!1,shouldMenuItemsWrap:i.get("ui.controlbar.doMenuItemsWrap"),stereoscopicEnabled:!1,videoHeight:c,containerHeight:i.get("ui.container.height"),placeholderThumbnail:n(null==o?void 0:o.thumbnail_url,{mw:"80",q:"85"}),rightContentAreaAnimating:!1,isStartTimeThumbLoading:d}}function $l(e,t,n,i){const o=n/i,r=o>e/t;return{videoWidth:r?e:Math.round(t*o),videoHeight:r?Math.round(e/o):t}}const ql=(e,t)=>{Oe(()=>{!function(e){return function(){for(var t=[],n=0;n{Oe(()=>{e||setTimeout(()=>{n(t)},250)},[e])},jl=e=>({onClick:t=>{t.preventDefault(),t.stopPropagation(),e(t)},onKeyDown:t=>{["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),e(t))}}),zl=()=>{const e=Gd(e=>e.playback.paused),t=Gd(e=>e.playback.scrubbing),n=Gd(e=>e.playback.scrubbingByFrame),i=Gd(e=>e.playback.playInitiated),o=Gd(e=>e.playback.isChromecastPlaying),r=Gd(e=>e.playback.isChromecastConnected),a=Gd(e=>e.playback.buffering),s=Gd(e=>e.playback.isAdPlaying),l=Gd(e=>e.embed.isTrailer),c=Gd(e=>e.embed.autoPlay),d=Gd(e=>e.displayList.outro),u=Gd(e=>e.displayList.ad),_=l&&!i;let p=Ei.PLAY;_?p=Ei.TRAILER:c&&(p=Ei.PAUSE);const[v,m]=Pe(p);return r&&m(o?Ei.PAUSE:Ei.PLAY),u&&m(s?Ei.PAUSE:Ei.PLAY),Oe(()=>{d?m(Ei.REPLAY):t&&!d&&m(e?Ei.PLAY:Ei.PAUSE)},[d]),Oe(()=>{t&&!n||a||_||r||d||u||m(e?Ei.PLAY:Ei.PAUSE)},[e,a,_,r,d,u]),Oe(()=>{i&&m(Ei.PAUSE)},[i]),{buttonState:v,setButtonState:m}};let Xl,Zl,Ql;!function(e){e.PREFS="prefs",e.CHAPTERS="chapters",e.CC="cc",e.TRANSCRIPT="transcript",e.SIDEDOCK="sidedock"}(Xl||(Xl={})),function(e){e.EMPTY="empty",e.PREFS="prefs",e.QUALITY="quality",e.SPEED="speed",e.AUDIO="audio",e.CHAPTERS="chapters",e.LANGUAGES="languages",e.CUSTOMIZE="customize",e.FONT="font",e.BACKGROUND="background",e.WINDOW="window",e.PREVIEW="preview",e.TRANSCRIPT_SETTINGS="transcriptSettings",e.TRANSCRIPT_LANGUAGES="transcriptLanguages",e.SIDEDOCK="sidedock"}(Zl||(Zl={})),function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(Ql||(Ql={}));const Jl=()=>{const e=Gd(e=>e.captions.textTracks),t=Gd(e=>e.playback.supportsTextTracks),n=Gd(e=>e.appearance.isDisplayContextBackbone),i=Gd(e=>e.displayList.ad),o=Gd(e=>e.embed.speedChangeEnabled),r=Gd(e=>e.playback.qualities),a=Gd(e=>e.embed.quality),s=Gd(e=>e.playback.isChromecastConnected),l=Gd(e=>e.chapters.chapters),c=Gd(e=>e.embed.transcript),d=Gd(e=>e.embed.cc),u=Gd(e=>e.embed.chapters),_=Gd(e=>e.playback.isSegmentedPlaybackEnabled),p=Gd(e=>e.playback.audioTracks),v=!!(a&&(null==r?void 0:r.length)),m=p.length>1,f=t&&!!e.length&&n&&!i&&d,h=n&&!!(o||v||m)&&!s&&!i,g=!!(null==l?void 0:l.length)&&u&&!i&&!_,E=t&&!!e.length&&n&&!i&&c;return{[Xl.CC]:f,[Xl.PREFS]:h,[Xl.CHAPTERS]:g,[Xl.TRANSCRIPT]:E}};let ec;function tc(){}!function(e){e.IDLE="idle",e.LOADING="loading",e.LOADED="loaded",e.ERROR="error"}(ec||(ec={}));const nc=e=>{const[t,n]=Pe(ec.IDLE),i=we();return{readyState:t,load:Re(function(e){return function(){for(var t=[],n=0;n{Oe(()=>{function i(n){n.key!==e&&n.code!==e||t(n)}function o(t){t.key!==e&&t.code!==e||!n||n(t)}return window.addEventListener("keydown",i),n&&window.addEventListener("keyup",o),()=>{window.removeEventListener("keydown",i),n&&window.removeEventListener("keyup",o)}},[t,n,e])},oc=()=>{const e=Gd(e=>e.config);return Re((t,n,i={})=>{Or(t,e,n,i)},[e])};let rc;!function(e){e[e.AUTO=0]="AUTO",e[e.BOTTOM=1]="BOTTOM",e[e.CENTER=2]="CENTER"}(rc||(rc={}));const ac=()=>{const e=Gd(e=>e.embed.playButtonPosition),t=Gd(e=>e.embed.playbar),n=Gd(e=>e.appearance.playerSizeMode),i=Gd(e=>e.appearance.isVerticalVideo),{buttonState:o}=zl(),r=n===_i.TINY,a=n===_i.MINI&&i;return o===Ei.REPLAY?rc.BOTTOM:r||a||e===rc.CENTER?rc.CENTER:e===rc.BOTTOM||e!==rc.AUTO||t?rc.BOTTOM:rc.CENTER},sc=()=>{const e=Gd(e=>e.playback.volume),t=Gd(e=>e.playback.muted),n=Gd(e=>e.setPlayback),i=()=>{n("muted",!1),e<=0&&n("volume",100)},o=()=>{n("muted",!0)};return{mute:o,unmute:i,toggleMuted:()=>{t||e<=0?i():o()}}},lc=(e=1e4)=>{const[t,n]=Pe(!1),[i,o]=Pe(e),[r,a]=Pe(Date.now());return{hasError:t,componentTimeout:i,componentVersion:r,onError:()=>{n(!0)},onReload:()=>{n(!1),o(i+1e3),a(Date.now())}}};let cc;!function(e){e.VOLUME="volume",e.CHROMECAST="chromecast",e.AIRPLAY="airplay",e.STEREOSCOPIC="stereoscopic",e.PIP="pip",e.FULLSCREEN="fullscreen",e.VIMEO_LOGO="vimeo_logo"}(cc||(cc={}));const dc=e=>{const t=Gd(e=>e.appearance.playerSizeMode),n=Gd(e=>e.appearance.playerBreakpoint);return ar(e,t,n)},uc=e=>{let t=[];return((null==e?void 0:e.children)?Array.from(e.children):[]).forEach(e=>{var n;const i=window.getComputedStyle(e);if(!i.display||"none"===i.display)return;const o="none"!==i.pointerEvents;e.tabIndex>-1&&o&&t.push(e),(null==(n=e.children)?void 0:n.length)&&(t=t.concat(uc(e)))}),t},_c=e=>{document.body.classList.toggle(Dn.SHOWFOCUS,e)},pc=["s","?"],vc=({parentRef:e,isActive:t,toggleKey:n,arrowNavigation:i=!1,onEscape:o=ai,onToggle:r=ai})=>{const a=Gd(e=>e.config.view),s=Gd(e=>e.embed.controls),l=Gd(e=>e.embed.background),c=Gd(e=>e.embed.keyboard),d=Gd(e=>e.element),u=we(null),_=we(t),p=we(null);function v(e){0!==e.detail&&_c(!1)}function m(t=0){if(t>=5)return;const n=uc(e.current);n.length>0&&(n[0].focus(),n[0]!==mc()&&(clearTimeout(p.current),p.current=setTimeout(()=>m(t+1),100)))}function f(){u.current&&(u.current.focus(),u.current=null)}function h(t){let n=uc(e.current),i=n.indexOf(mc()),o="prev"===t?i-1:i+1,r=null;r=o>=n.length?n[0]:o<0?n[n.length-1]:n[o],r&&r.focus()}function g(){var t;return null==e||null==(t=e.current)?void 0:t.contains(mc())}const E=c=>{if(function(e){if(pc.includes(e.key)||"Space"===e.code)return!0;if(e.ctrlKey||e.metaKey||e.altKey||"Shift"===e.key)return!0;if("keydown"!==e.type)return!0;if(!s||l)return!0;const t=e.target||e.srcElement,n=d.contains(t),i=t.tagName;if("INPUT"===i||"SELECT"===i||"TEXTAREA"===i||t.isContentEditable){const t=!n,i=n&&"Escape"!==e.key&&"Tab"!==e.key&&e.shiftKey;if(t||i)return!0}return!En(a)}(c))return;"Escape"!==c.key?_c(!0):_c(!1);const u=()=>{g()&&h("prev")},p=()=>{g()&&h("next")},v=c.key,m={Escape:()=>{(null==e?void 0:e.current)&&(f(),null==o||o())},Tab:()=>{var n;const i=c.shiftKey?"prev":"next",o="dialog"===(null==e||null==(n=e.current)||null==n.getAttribute?void 0:n.getAttribute("role"));(t||g())&&o&&(c.preventDefault(),h(i))}};n&&(m[n]=()=>{null==r||r(!_.current)}),i&&(m.ArrowUp=u,m.ArrowDown=p,m.ArrowLeft=u,m.ArrowRight=p),"function"==typeof m[v]&&m[v]()};return Oe(()=>{t?m():f(),_.current=t},[t]),Oe(()=>(c&&(document.addEventListener("click",v,!1),document.addEventListener("keydown",E,!1)),()=>{document.removeEventListener("click",v,!1),document.removeEventListener("keydown",E,!1)}),[c,E]),{onFocus:function(t){var n,i;(null==(n=e.current)?void 0:n.contains(mc()))&&!(null==(i=e.current)?void 0:i.contains(t.relatedTarget))&&!u.current&&(u.current=t.relatedTarget)},focusFirstItem:m}};function mc(){return document.activeElement}const fc=e=>{const t=Gd(e=>e.appearance.appSizeMode),n=Gd(e=>e.appearance.appBreakpoint),i=t===_i.MINI||t===_i.TINY||n===Xo.XXS||n===Xo.XS;return{role:i?"dialog":void 0,ariaModal:!!i||void 0,ariaHidden:!e||void 0}},hc=(e,t,n=300)=>{const i=P(t,n),o=we(new ae(i));Oe(()=>{const t=o.current,n=null==e?void 0:e.current;return n&&t.observe(n),()=>{n&&t.unobserve(n)}},[])};let gc;!function(e){e.DOLBY_VISION="dolbyVision",e.CLOSE="close",e.PIP="pip",e.AIRPLAY="airPlay",e.ENTER_FULLSCREEN="enterFullscreen",e.EXIT_FULLSCREEN="exitFullscreen",e.GEAR="gear",e.VIMEO="vimeo",e.VIMEO_SMALL="vimeoSmall",e.ENTER_PICTURE_IN_PICTURE="enterPictureInPicture",e.EXIT_PICTURE_IN_PICTURE="exitPictureInPicture",e.PAUSE="pause",e.PLAY="play",e.REPLAY="replay",e.CHAPTERS="chapters",e.POINT="point",e.CC="cc",e.CC_FILLED="ccFilled",e.CHECKMARK="checkmark",e.STEREOSCOPIC="stereoscopic",e.PERSON_FILLED="personFilled",e.CHEVRON_DOWN="chevronDown",e.CHEVRON_RIGHT="chevronRight",e.CLOCK="clock",e.CLOCK_FILLED="clockFilled",e.COLLECTIONS="collections",e.DISMISS_X="dismissX",e.HEART="heart",e.HEART_FILLED="heartFilled",e.HEART_WIDER_FILLED="heartWiderFilled",e.HEART_WIDER_BROKEN_FILLED="heartWiderBrokenFilled",e.ONDEMAND="ondemand",e.PAPER_PLANE="paperPlane",e.POP_OUT="popOut",e.VOLUME_OFF_FILLED="volumeOffFilled",e.VOLUME_ON_FILLED="volumeOnFilled",e.FAST_FORWARD="fastForward",e.INFO_CIRCLE="infoCircle",e.TRANSCRIPT_ON="transcriptOn",e.TRANSCRIPT_OFF="transcriptOff",e.SEARCH="search",e.CHEVRON_UP="chevronUp",e.CLOSE_CIRCLE="closeCircle",e.SPINNER="spinner",e.SLIDERS="sliders",e.SWITCH_CONTAINER="switchContainer",e.SWITCH_CIRCLE="switchCircle",e.WARN_CIRCLE="warnCircle",e.THUMBS_UP="thumbsUp",e.THUMBS_DOWN="thumbsDown",e.THUMBS_UP_FILLED="thumbsUpFilled",e.THUMBS_DOWN_FILLED="thumbsDownFilled",e.LINK="link",e.SPARKLE_TWO_STARS_FILLED="sparkleTwoStarsFilled",e.WARN_TRIANGLE="warnTriangle",e.VERTICAL_ELLIPSIS="verticalEllipsis",e.PLUS_SYMBOL="plusSymbol",e.FACEBOOK="facebook",e.TUMBLR="tumblr",e.EMAIL="email",e.EMBED="embed",e.PREVIOUS="previous",e.TWITTER="twitter"}(gc||(gc={}));const Ec=()=>{const e=Gd(e=>e.toggleDisplayList);return{label:"Ask Vimeo AI",enabled:Gd(e=>e.embed.aiWidget),onSelect:()=>e("aiWidget"),icon:gc.SPARKLE_TWO_STARS_FILLED}},bc=()=>{const e=Gd(e=>e.setUser);return{label:"Add to collections",enabled:Gd(e=>e.embed.collections),onSelect:()=>e("collected",!0),icon:gc.COLLECTIONS}},Cc=e=>{const t=we(!1),n=Gd(e=>e.setUser),i=Gd(e=>e.user.loggedIn);return Oe(()=>{t.current&&i&&"function"==typeof e&&(e(),t.current=!1)},[i]),()=>{i?e():(n("loggedIn",1),t.current=!0)}},yc=()=>{const e=Gd(e=>e.user.loggedIn),t=Gd(e=>e.setUser),n=Gd(e=>e.embed.like),i=Gd(e=>e.user.liked),o=i?"Unlike":"Like",r=e?o:"Like (this opens in a new window)",a=i?gc.HEART_FILLED:gc.HEART,s=Re(e=>t("liked",!e),[t]);return{label:o,ariaLabel:r,enabled:n,onSelect:Cc(()=>s(i)),icon:a}},Tc=()=>{const e=Gd(e=>e.setOverlay),t=Gd(e=>e.embed.share);return{label:Gd(e=>e.embed.embedOnlyShare)?"Embed":"Share",enabled:t,onSelect:()=>e("purpose",Gn.SHARE),icon:gc.PAPER_PLANE}},Lc=()=>{const e=Gd(e=>e.setVod),t=Gd(e=>e.vod.vodButtonVisible);return{label:Gd(e=>e.vod.vodLabel),enabled:t,onSelect:()=>e("purchased",!0),icon:gc.ONDEMAND}},Ac=()=>{const e=Gd(e=>e.user.loggedIn),t=Gd(e=>e.setUser),n=Gd(e=>e.embed.watchLater),i=Gd(e=>e.user.watchLater),o=i?"Remove from Watch Later":"Add to Watch Later",r=e?o:"Add to Watch Later (this opens in a new window)",a=i?gc.CLOCK_FILLED:gc.CLOCK,s=Re(e=>t("watchLater",!e),[t]);return{label:o,ariaLabel:r,enabled:n,onSelect:Cc(()=>s(i)),icon:a}};let Sc;!function(e){e.VOD="vod",e.LIKE="like",e.WATCH_LATER="watch_later",e.COLLECTIONS="collections",e.SHARE="share",e.AI="ai"}(Sc||(Sc={}));const Ic=()=>({[Sc.VOD]:Lc(),[Sc.LIKE]:yc(),[Sc.WATCH_LATER]:Ac(),[Sc.COLLECTIONS]:bc(),[Sc.SHARE]:Tc(),[Sc.AI]:Ec()}),{Provider:Oc,useStore:Pc}=De(),wc=({player:e,children:t})=>(Ne(e=>{}),ke(Oc,{createStore:()=>Me((t,n)=>{const{config:i,events:o,uuid:r,element:a}=e,s={set:t,get:n,events:o,get config(){return e.config}};return h(h(h(h(h({config:i,element:a,uuid:r,view:i.view,events:o},(e=>{const t=h(h({},function(){const t=pl(e.config),n=(null==t?void 0:t.gate_type)||ko.EMPTY;return xo(n,e.config,null==t?void 0:t.gate_id)}()),{},{accessGateLoaded:!1,accessGateReady:!1,setAccessGateLoaded:function(){e.set(e=>({accessGate:h(h({},null==e?void 0:e.accessGate),{},{accessGateLoaded:!0})}))},setAccessGateReady:function(){e.set(e=>({accessGate:h(h({},null==e?void 0:e.accessGate),{},{accessGateReady:!0})})),n(Mo.OPENED)},closeAccessGate:o,sendGateBPEvent:n});function n(t,n){var i;(null==(i=e.config.embed.access_gates)?void 0:i.length)&&Or(vr.PROCESS_STEP,e.config,{process_name:"access_gate",step_name:t,status:t===Mo.ERROR?"fail":"success",error:(null==n?void 0:n.message)||null,error_code:"number"==typeof(null==n?void 0:n.code)?`${n.code}`:null})}function i(t,n=null){const i=xo(t,e.config,n);e.set(e=>({accessGate:h(h({},null==e?void 0:e.accessGate),i)})),e.events.fire(Wt._accessGateOpened,i.purpose)}function o(t){e.set(t=>({accessGate:h(h({},null==t?void 0:t.accessGate),{},{accessGateLoaded:!1,accessGateReady:!1},xo(ko.EMPTY,e.config))})),e.events.fire(Wt._accessGateClosed,t),n(Mo.CLOSED)}function r(){var t,n,r,a;const s=e.config.embed.access_gates;(null==s?void 0:s.length)&&s.forEach(t=>{!function(t){const{gate_type:n,placement:o,timecode:r,gate_id:a}=t;function s({currentTime:t}){t>=r&&(i(n,a),e.events.off(E.TIME_UPDATE,s))}function l(){i(n,a),e.events.off(Wt._ended,l)}Ho(n,e.config)||(o===Do.DURING_VIDEO&&e.events.on(E.TIME_UPDATE,s),o===Do.AFTER_VIDEO&&e.events.on(Wt._ended,l),e.events.on(Wt._configChanged,(function(){e.events.off(E.TIME_UPDATE,s),e.events.off(Wt._ended,l)})))}(t)});const l=pl(e.config),c=null==(t=e.get())||null==(n=t.accessGate)?void 0:n.gateId,d=(null==(r=e.get())||null==(a=r.accessGate)?void 0:a.purpose)||ko.EMPTY,u=null==l?void 0:l.gate_id,_=(null==l?void 0:l.gate_type)||ko.EMPTY,p=c!==u||d!==_;d!==ko.EMPTY&&p&&o(),_!==ko.EMPTY&&u&&p&&(i(_,u),e.events.once(Wt._ready,()=>{e.events.fire(Wt._accessGateOpened,_)}))}return r(),e.events.on(Wt._configChanged,(function(){r()})),{accessGate:t}})(s)),Rc(s)),kc(s)),Bc(s)),Uc(s))}),children:t})),Rc=e=>{const t=Nc(e),{set:n,events:i}=e;return i.on(kt._reset,()=>{n(()=>({colors:Nc(e)}))}),i.on(kt._changeColor,(e,t)=>{const i=oi(e);if(!i)return;const o=an[t];n(e=>({colors:h(h({},e.colors),{},{[o]:i})}))}),{colors:t}};function Nc(e){const{embed:t}=e.config;return{colorOne:oi(t.color_one)||oi(on[Jt]),colorTwo:oi(t.color_two)||oi(t.color)||oi(on[en]),colorThree:oi(t.color_three)||oi(on[tn]),colorFour:oi(t.color_four)||oi(on[nn])}}const kc=e=>{const t=Dc(e),{set:n,events:i}=e;return i.on(Wt._configChanged,()=>{n(()=>({embed:Dc(e)}))}),{embed:t}};function Dc(e){const{config:t}=e;return{playerUrl:t.player_url,referrer:t.request.referrer,transparent:!!t.embed.transparent,videoId:t.video.id,vimeoUrl:t.vimeo_url}}let Mc;!function(e){e.EMPTY="empty",e.PRIVATE_LOCKED="private-locked",e.PASSWORD="password"}(Mc||(Mc={}));const Bc=e=>{const{set:t,events:n}=e,i={purpose:Vc(e.config.view)};return n.on(Wt._configChanged,(function(){t(()=>({localAccessGate:{purpose:Vc(e.config.view)}}))})),{localAccessGate:i}};function Vc(e){return e===Kt.privateLocked?Mc.PRIVATE_LOCKED:e===Kt.privatePassword?Mc.PASSWORD:Mc.EMPTY}const xc=[Kt.main,Kt.privateUnlocked],Uc=e=>{const{set:t,events:n}=e,i=Hc(e);return n.on(kt._updateOverlay,(e,n)=>{e===Gn.PRIVATE_LOCKED&&t(e=>({login:h(h({},e.login),{},{status:n.loginState})}))}),n.on(Wt._userLoggedIn,()=>{t(()=>({login:Hc(e)}))}),n.on(Wt._configChanged,()=>{t(()=>({login:Hc(e)}))}),{login:i}};function Hc(e){return{status:Fc(e)}}function Fc(e){const{config:t}=e;return t.user.logged_in?xc.includes(t.view)?Go.LOGGED_IN_HAS_ACCESS:Go.LOGGED_IN_NO_ACCESS:Go.NOT_LOGGED_IN}let Gc;!function(e){e.PRIVATE_LOCKED="private-locked"}(Gc||(Gc={}));let Yc=null;const Wc=()=>{const e=Pc(e=>e.events),t=Pc(e=>e.embed.videoId),n=we(null),{openLoginPopup:i}=(({url:e,context:t})=>{const n=Pc(e=>e.events);return{openLoginPopup:()=>{switch(t){case Gc.PRIVATE_LOCKED:Yc=Et(e,"login",{width:670,height:545,scrollbars:"yes",resizable:"yes",toolbar:"no"})}window.closePopup=function(){if(Yc){try{Yc.close(),n.fire(Wt._popupClosed,t)}catch(ke){}Yc=null}}}}})({url:`/video/${t}/login/private`,context:Gc.PRIVATE_LOCKED});return Oe(()=>{n.current=function({events:e,dependencies:t=Yo}){const n={onLoginRequested:function(t){c=t,!i()||a?(d(),u()):(s++,o(d).then(t=>t?(a=!0,r||u(),void e.fire(Wt._userLogIn,"private")):void(m(1)?p(Go.ALL_ACCESS_ATTEMPTS_FAILED):u())).catch(e=>{}))}},{storageAccessRequired:i,requestCookieAccess:o}=t;let r=!1,a=!1,s=0,l=0,c=ai;function d(){r=!0,c()}function u(){e.once(Wt._loginFailure,_)}function _(){l++;const e=v();m()?p(Go.ALL_ACCESS_ATTEMPTS_FAILED):p(!e&&r?Go.LOGGED_IN_STORAGE_ACCESS_REQUIRED:Go.STORAGE_ACCESS_GRANTED_LOGIN_UNCONFIRMED)}function p(t){e.fire(kt._updateOverlay,"private-locked",{loginState:t})}function v(){return s>=2}function m(e=2){const t=!i()&&r&&l>0,n=l>=e,o=v();return n&&o||t}return n}({events:e})},[e]),{loginHandler:()=>{n.current&&n.current.onLoginRequested(i)}}};function $c(e){var t,n,i,r,a,s,l;const{config:c,events:d,parentUrl:u,backbone:_}=e,{embed:p,request:v,video:m}=c,f=!!p.autoplay,h=!!(p.autoplay&&(null==(t=v.flags)?void 0:t.autohide_controls)),g=!!p.settings.playbar,E=!!p.settings.like,b=!!p.settings.share,C=!!(null==(n=p.settings.share)?void 0:n.embed_only),y=!!p.settings.collections,T=!!p.settings.watch_later,L=!(null==(i=p.settings)||!i.watch_trailer||p.autoplay||!p.on_site),A=qo(_,null==(r=m.live_event)?void 0:r.dvr),S=!!(p.settings.speed&&A&&X.settingPlaybackRate),I=!!p.keyboard,O=!!p.settings.logo,P=!!p.settings.volume,w=!!p.settings.fullscreen,R=!!(null==(a=m.live_event)||null==(s=a.settings)?void 0:s.hide_live_label),N=!!(null==(l=m.live_event)?void 0:l.show_viewer_count),k=!!p.settings.custom_logo,D=function(e){var t;const{config:n}=e;let i={customLogoUrl:null,customLogoImg:null,customLogoSticky:!1,customLogoWidth:null,customLogoHeight:null};if(!(null==(t=n.embed.settings.custom_logo)?void 0:t.img))return i;const r=n.embed.settings.custom_logo;let a=r.img;return o.devicePixelRatio>=2&&(a=a.replace(/(mw|mh)=(\d+)/g,(function(e,t,n){return t+"="+2*parseInt(n,10)}))),i={customLogoUrl:ji(r.url),customLogoImg:a,customLogoSticky:r.sticky,customLogoWidth:r.width,customLogoHeight:r.height},i}(e),M=!!p.settings.background,B=0!==p.settings.controls,V=!!p.transparent,x=!!p.on_site,U=qc(e),H=!!p.settings.audio_tracks,F=!!p.settings.airplay,G=!!p.settings.chapters,Y=!!p.settings.chromecast,W=!!p.settings.cc,$=!!p.settings.quality,q=p.settings.play_button_position,K=!!p.settings.watch_full_video,j=!!p.settings.ask_ai,z=!!m.spatial&&!!p.settings.spatial_compass,Z=m.unlisted_hash,Q=!!c.embed.settings.badge,J=p.tq||"",ee=!!p.persistent_logo,te=v.ai_widget_signature,ne=0!==p.unmute_button,ie=!!p.settings.pip,oe=p.loop,re=Wi(p.context),ae=Boolean("public"===m.embed_permission&&p.settings.embed),se=m.share_url,le=`https://${c.player_url}/video/${m.id}/share`,ce=m.embed_code,de=m.url,ue=m.privacy,_e=1===(c.embed.dnt||c.request.flags.dnt),pe=lr(c.request.flags),ve=!!U||!!j;return ve&&d.fire(Wt._rightContentAreaEnabled),{autoPlay:f,autoHideControls:h,playbar:g,like:E,share:b,embedOnlyShare:C,collections:y,watchLater:T,isTrailer:L,speedChangeEnabled:S,keyboard:I,showVimeoLogo:O,volume:P,fullscreen:w,hideLiveLabel:R,showViewerCount:N,customLogo:k,customLogoFields:D,background:M,controls:B,transparent:V,transcript:U,rightContentAreaEnabled:ve,onsite:x,multipleAudioTracks:H,airplay:F,chapters:G,cc:W,chromecast:Y,quality:$,playButtonPosition:q,parentUrl:u,watchFullVideo:K,aiWidget:j,compass:z,videoUnlistedHash:Z,badge:Q,transcriptQuery:J,persistentLogo:ee,aiWidgetSignature:te,unmuteButton:ne,pip:ie,loop:oe,svvContext:re,allowEmbedShare:ae,shareUrl:se,embedCode:ce,videoUrl:de,playerShareUrl:le,privacy:ue,doNotTrack:_e,flags:pe}}function qc(e){const{embed:t,video:n}=e.config,i=n.live_event,o=!i||i.archive.status===to.done||i.dvr;return!!t.settings.transcript&&o}const Kc=[{id:.5,label:"0.5x"},{id:.75,label:"0.75x"}],jc={id:1,label:"Normal"},zc=[{id:1.25,label:"1.25x"},{id:1.5,label:"1.5x"},{id:2,label:"2x"}],Xc=[jc].concat(zc),Zc=[].concat(Kc,[jc],zc),Qc=[].concat(Kc,[jc]);function Jc(e){var t,n;const{config:i,backbone:r}=e,a=ed(e),s=!!o.airPlay,l=i.embed.quality?yn(r.qualities,i.embed.quality):r.qualities,c=td(r.qualities,i.embed.quality),d=od(i);return{playInitiated:!1,targetTimeReached:!1,scrubbing:!1,scrubbingByFrame:!1,paused:!i.embed.autoplay||(null==(t=i.video.live_event)||null==(n=t.archive)?void 0:n.status)===to.done,buffering:!1,loadedTime:0,currentTime:r.currentTime,liveEdgeTime:r.liveEdgeTime,atLiveEdge:r.atLiveEdge,liveTailTime:r.liveTailTime,hasFragments:d,currentFragment:e.fragmentsHandler.currentFragment,duration:i.video.duration,qualities:l,currentQuality:c,playbackRates:a,loadedMetadata:r.readyState>=1,loadedData:r.readyState>1,canPlayPictureInPicture:e.canPlayPictureInPicture,supportsAirPlay:s,supportsTextTracks:X.textTracks,supportsStereoscopic:nd(e),supportsChromecast:Qi(e.config),isChromecastConnected:!1,isChromecastPlaying:!1,isChromecastBuffering:!1,isChromecastSetupWithAvailableDevices:id(),isAdPlaying:!1,supportsSettingVolume:X.settingVolume,volume:r.volume,muted:r.muted||!!i.embed.muted,audioTracks:r.audioTracks,isSegmentedPlaybackEnabled:e.segmentedPlaybackEnabled,startTime:e.startTime,endTime:e.endTime,ended:r.ended}}function ed(e){var t;const{backbone:n,config:i}=e;let o=[];if(qo(n,null==(t=i.video.live_event)?void 0:t.dvr)&&X.settingPlaybackRate&&i.embed.settings.speed){const e=function(e,t){return e?Xc:t?Qc:Zc}(n.atLiveTail,n.atLiveEdge);o=yn(e,`${n.playbackRate}`)}return o}function td(e,t){var n;if(t){var i;const n="string"==typeof t?t:t.quality||`${t.height}p`,o=null==e||null==(i=e.find(e=>e.id===n))?void 0:i.label;if(o)return o}return null==e||null==(n=e.find(e=>e.active))?void 0:n.label}function nd(e){const{config:t}=e;return"disable"!==t.video.privacy&&(o.webvr||o.stereoscopic)&&t.video.spatial&&xs(t,"webvr").group}function id(){return $r.castState!==di.NOT_SETUP&&$r.castState!==di.NO_DEVICES_AVAILABLE}function od(e){var t;return!l(null==(t=e.embed.interactive)?void 0:t.fragments)}function rd(e){const{atLiveEdge:t,liveEdgeTime:n,liveTailTime:i}=e;return{atLiveEdge:t,liveEdgeTime:n,liveTailTime:i}}function ad({config:e}){const{user:t,video:n}=e,i=Ss(n.owner);return{liked:!!t.liked,loggedIn:t.logged_in,isClipOwner:t.id===n.owner.id,watchLater:!!t.watch_later,ownerName:n.owner.name,ownerId:n.owner.id,following:!!t.following,collected:!1,shared:!1,isPayingOwner:i}}const sd={isVOD:!1,vodButtonVisible:!1};function ld(e){const{video:t,embed:n,user:i,request:o}=e.config;let r=h({},sd);if(t.vod&&"purchase_options"in t.vod&&t.vod.purchase_options.length){const e=!0,a=t.vod.is_coming_soon,s="ondemand.main"===n.context||"Vimeo\\Controller\\OnDemandController.main"===n.context,l=t.vod&&i.purchased;let c=n.settings.vod&&gn(t.vod.countries,o.country);c&&a&&s&&(c=!1);const[d]=t.vod.purchase_options;let u=null;d&&(u=function(e,t,n,i){var o=i.label_string;return o?(o=function(e,t,n){let i=n.USD;return t in n&&(i=n[t]),-1!==e.indexOf("${price}")?e.replace("${price}",i):-1!==e.indexOf("{PRICE}")?e.replace("{PRICE}",i):e}(o=function(e,t){return void 0!==e&&void 0!==e[t]?e[t]:t}(e,o),n,i.prices),i.expires_in_duration_str&&(o=o.replace("{TIME}",i.expires_in_duration_str)),i.available_on_formatted&&(o=o.replace("{DATE}",i.available_on_formatted)),o):null}(o.dynamic_translation_map,0,o.currency,d)),r.isVOD=e,r.vodLabel=u,r.purchased=!!l,r.productId=d.product_id,r.isExpiring=!!d.expiring,r.vodButtonVisible=c}return r}function cd({config:e}){const{badge:t}=e.embed.settings;let n=o.devicePixelRatio>1?"img_2x":"img";return o.svg&&t.svg&&(n="svg"),{link:t.link,img:t[n],margin:t.margin||!1,width:t.width,height:t.height,name:t.name,shadow:!!t.shadow,id:t.id}}function dd(e){const t=Vi("chapter-share-base",e.config),n=So()?t:window.location.href;return{chapters:ud(e),chapterShareBaseUrl:n,activeCueId:null}}function ud(e){const t=Array.from(e.backbone.chapters),n=e.config.embed.chapters||[];return t.map(e=>{const t=n.find(t=>t.timecode===e.startTime);return{cueId:e.id,startTime:e.startTime,endTime:e.endTime,text:e.text,chapterId:null==t?void 0:t.id,clipId:null==t?void 0:t.clip_id,timecode:null==t?void 0:t.timecode,title:null==t?void 0:t.title}})}let _d;!function(e){e.RTL="rtl",e.LTR="ltr"}(_d||(_d={}));const pd={black:"#000",red:"#f00",yellow:"#ff0",green:"#0f0",blue:"#00f",white:"#fff",cyan:"#0ff",magenta:"#f0f"};function vd(e){var t,n,i,o,r;const{backbone:a,config:s}=e,l=a.enabledTextTrack,c=a.textTracks,d=!!s.video.live_event,{textTracks:u,activeTextTrackId:_,language:p,direction:v}=md(c,d,l),m=fd(e),f=(null==c||null==(t=c.filter(e=>e.trackElement))?void 0:t.map(e=>e.trackElement))||[],g=1===(null==s||null==(n=s.request)||null==(i=n.flags)?void 0:i.ott)||"dev"===(null==s||null==(o=s.request)||null==(r=o.build)?void 0:r.js)||"gedevplayer.vimeows.com"===(null==s?void 0:s.player_url),E=(c||[]).reduce((e,t)=>t.rtl?e.concat(t.id):e,[]);return h({textTracks:u,textTrackEls:f,activeTextTrackId:_,requiresCrossOrigin:g,activeCues:[],language:p,direction:v,rtlTracks:E},m)}function md(e,t,n){let i=[],o=gd(n);return(null==e?void 0:e.length)&&(o||(o="off"),i.push({label:"Off",id:"off",active:"off"===o}),e.forEach(e=>{let n="CC"===e.label.substring(e.label.length-2),r="captions"!==e.kind||n?"":" CC",a=t?"Display Captions":e.label+r;const s=gd(e),l={label:a,id:s,active:o===s};i.push(l)})),{textTracks:i,activeTextTrackId:o,language:null==n?void 0:n.language,direction:hd(n)}}function fd(e){const{store:t}=e,n=Ba();return Object.keys(n).forEach(e=>{const i=t.get(`ui.captions.${e}`);n[e]=i}),n}function hd(e){return e?e.rtl?_d.RTL:_d.LTR:null}function gd(e){return e?""!==e.id?`${e.id}`:`${e.language}.${e.kind}`:""}function Ed(e){var t;const{config:n}=e,i=n.video.live_event,o=null==i?void 0:i.status,r=!!o,a=null==i||null==(t=i.archive)?void 0:t.status,s=Cd(o),l=bd(a),c=s.isStarted&&wo(i);return h(h(h({isLiveEvent:r,isPlayable:c},s),l),{},{dvrEnabled:null==i?void 0:i.dvr,viewerCount:ct(0),liveStatsRequestSucceeded:null})}function bd(e){return{isArchived:"done"===e}}function Cd(e){return{isStarted:e===no.started,isEnded:e===no.ended}}function yd(e,t){let n;return function(i){if(void 0!==n)return n;if(t in window)return n=Promise.resolve(window[t]),n;const o="PROD"===function(e){switch(e.player_url){case"player.vimeo.com":return"PROD";case"master.playerci.vimeows.com":case"player-backend-ci.vimeows.com":return"CI";case"player2.vimeo.dev":return"DEV";default:return}}(i)?"https://embedder-sdk.wirewax.com":"https://embedder-sdk.wirewax.tv";return n=Ve(`${o}/${e}`,!0).then(()=>window[t]),n}}const Td=yd("latest/wirewax-embedder-sdk@beta.umd.js","WIREWAX"),Ld=yd("latest-create/create-interactive-plugin@beta.umd.js","CREATE_INTERACTIVE_PLUGIN");function Ad(){}function Sd(e){return function(){for(var t=[],n=0;no().backbone.play(),n=()=>o().backbone.pause(),i=e=>r.fire(Wt._interactiveHotspotClicked,e),a=e=>r.fire(Wt._interactiveOverlayPanelClicked,e),s=({seekTo:e,seekType:t})=>{r.fire(Wt._interactiveSeekCall,{type:t}),o().backbone.currentTime=e},l=e=>{e.overlayOnDisplay?(r.fire(Wt._overlayOpened,Gn.INTERACTIVE),o().setInteractive("active",!0)):(r.fire(Wt._overlayClosed,Gn.INTERACTIVE),o().setInteractive("active",!1))};return e.on("play",t),e.on("pause",n),e.on("hotspotClick",i),e.on("overlayPanelClick",a),e.on("seeked",s),e.on("toggleOverlay",l),()=>{e.off("play",t),e.off("pause",n),e.off("hotspotClick",i),e.off("overlayPanelClick",a),e.off("seeked",s),e.off("toggleOverlay",l)}}(l),c=function(e){function t(){_(e),e.play()}function n(){p(),e.pause()}function i(){e.setCurrentTime(o().playback.currentTime)}function a(){e.setEnded(!0),e.setCurrentTime(o().backbone.duration)}return r.on(E.PLAY,t),r.on(E.PAUSE,n),r.on(E.SEEKED,i),r.on(E.ENDED,a),r.once(Wt._firstTimeUpdate,t),function(){u("destroyed"),e.destroy(),p(),r.off(E.PLAY,t),r.off(E.PAUSE,n),r.off(E.SEEKED,i),r.off(E.ENDED,a)}}(l),i.embed.autoplay&&(_(l),l.play())}));u("destroyed")}))}()}catch(ke){return n()}return a&&a.then?a.then(void 0,n):a}(0,(function(e){u("error")}))})),{config:i,get:o,events:r}=e;let a,s=!1,l=null,c=null,d=null;return{load:Sd((function(){if(!s)return function(e,t){return function(e,t,n){if(n)return t?t(e()):e();try{var i=Promise.resolve(e());return t?i.then(t):i}catch(ke){return Promise.reject(ke)}}(e,Ad,t)}(n)})),destroy(){s=!0,null==d||d(),null==c||c()}};function u(e){o().setInteractive("embedderStateHistory",o().interactive.embedderStateHistory.concat(e))}function _(e){cancelAnimationFrame(a),a=requestAnimationFrame(()=>{e.setCurrentTime(o().backbone.currentTime),_(e)})}function p(){cancelAnimationFrame(a)}}function Pd(){}const wd=e=>{const t=function(e){return function(){for(var t=[],n=0;n{n(n=>({interactive:h(h({},n.interactive),{},{[e]:t})}))},c=()=>{d(),n(()=>({interactive:Rd(e)}))};function d(){var e;l("destroyed",!0);const t=null==(e=i().interactive)?void 0:e.embedderManager;t&&(t.destroy(),l("embedderManager",null),l("instanceId",null))}return r.on(Wt._configChanged,e=>{e&&c()}),r.on(Wt._createInteractiveChanged,c),r.on(kt._destroy,d),a(e=>{var t;return null==e||null==(t=e.interactive)?void 0:t.instanceId},t),{interactive:s,setInteractive:l}};function Rd(e){const{config:t}=e,{interactive:n}=t.embed,i=!!(null==n?void 0:n.markers);return{hotspots:[],polls:[],enabled:!l(n),showMarkers:i,instanceId:null,active:!1,embedderManager:null,ready:!1,destroyed:!1,embedderStateHistory:[]}}let Nd;!function(e){e.EMPTY="empty",e.QOE_SURVEY="qoe_survey",e.SKIP_TO_LIVE="skip_to_live",e.BROADCAST_OVER="broadcast_over"}(Nd||(Nd={}));const kd=[Nd.QOE_SURVEY,Nd.BROADCAST_OVER,Nd.SKIP_TO_LIVE];function Dd(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Md=Vd((function(e,t){var n;const{width:i,height:r}=t().appearance.boundingClientRect;let a=Object.assign({},e);if((null==e?void 0:e.img_base)&&(a.imageUrl=function(e,t,n){const{width:i,height:r}=Br(t*o.devicePixelRatio,n*o.devicePixelRatio);return Vr({baseUrl:e,width:i,height:r})}(e.img_base,i,r)),(null==a||null==(n=a.videos)?void 0:n.length)>0){const e=t().user.ownerId,n=t().user.ownerName,o=Math.round(i/a.videos.length),s=Math.round(r/a.videos.length);a.videos=a.videos.map(function(e,t,n,i){return o=>{const{owner:r}=o,a=Object.assign({},o);return r.id!==e&&(a.byline="from "+t),o.thumbnail_base&&(a.thumbnail=Vr({baseUrl:o.thumbnail_base,width:n,height:i})),a}}(e,n,o,s))}return a})),Bd=function(e,t){return Dd(Md(e,t),(function(e){return(null==e?void 0:e.url)&&(e.url=ji(e.url)),(null==e?void 0:e.url2)&&(e.url2=ji(e.url2)),e}))};function Vd(e){return function(){for(var t=[],n=0;n{const{set:t,get:i,events:o,subscribe:r,config:a}=e,s=(e,n)=>{t(t=>({outro:h(h({},t.outro),{},{[e]:n})}))};function l(){const e=i().displayList.outro&&!i().displayList.overlay;e!==i().outro.active&&s("active",e)}function c(){const e=i().outro.fetchingOutroData,t=i().playback.currentTime>=(i().playback.isSegmentedPlaybackEnabled?i().playback.endTime-i().playback.startTime:i().playback.duration)-10,n=null!==i().outro.outroData,o=i().embed.background;e||!t||n||o||d(i().outro.purpose)}function d(e){const t=Vd((function(){return function(e){if(e&&e.then)return e.then(xd)}(function(t,n){try{var r=function(t,n){try{var r=(s("fetchingOutroData",!0),Dd(T(v,{withCredentials:!0,retry:3}),(function(t){return Dd(t.json(),(function(t){return Dd(Bd(t.data,i),(function(t){return Dd(function(e){const t=function(e){var t;let n=[];return(null==e?void 0:e.imageUrl)&&n.push(e.imageUrl),(null==e||null==(t=e.videos)?void 0:t.length)>0&&n.concat(e.videos.map(e=>e.thumbnail)),n}(e);return Promise.all(t.map(e=>xr(e)))}(t),(function(){o.fire(Wt._outroDataReceived,t),s("outroData",t),u(e,t)}))}))}))})))}catch(ke){return}return r&&r.then?r.then(void 0,n):r}(0,(function(e){}))}catch(ke){return n(!0,ke)}return r&&r.then?r.then(n.bind(null,!1),n.bind(null,!0)):n(!1,r)}(0,(function(e,t){return s("fetchingOutroData",!1),function(e,t){if(e)throw t;return t}(e,t)})))}));if(i().outro.fetchingOutroData)return;const{player_url:r}=a,{id:l,unlisted_hash:c}=a.video,{on_site:d}=a.embed,_=`https://${r}/video/${l}/outro`,p={on_site:d?1:0,type:e};c&&(p.h=c);const v=n(_,p);t()}function u(e,t){var n;[Ko.VIDEOS,Ko.THREEVIDEOS].includes(e)&&t.following&&(null==(n=i())||n.setUser("following",!!t.following))}return o.on(Wt._configChanged,(e,n)=>{n.embed.outro!==i().outro.purpose&&t(e=>({outro:h(h({},e.outro),{},{outroData:null,fetchingOutroData:!1,purpose:n.embed.outro})}))}),o.on(kt._showOutro,Vd((function(e,t){let n=!1;if(s("purpose",e),zo(e,i().embed.flags))return;const o=!!(null==t?void 0:t.data);return function(r,a){var l=function(){if(o)return Dd(Bd(t.data,i),(function(t){s("outroData",t),u(e,t),n=!0}))}();return l&&l.then?l.then(a):a(l)}(0,(function(t){if(n)return t;e===i().outro.purpose&&i().outro.outroData||d(e)}))}))),r(e=>{var t;return null==e||null==(t=e.displayList)?void 0:t.outro},l),r(e=>{var t;return null==e||null==(t=e.displayList)?void 0:t.overlay},l),r(e=>{var t;return null==e||null==(t=e.playback)?void 0:t.currentTime},c),r(e=>{var t;return null==e||null==(t=e.playback)?void 0:t.ended},c),{outro:function({config:e}){let{outro:t}=e.embed;return t!==Ko.THREEVIDEOS&&t!==Ko.PROMOTED||(t=Ko.VIDEOS),{purpose:t,active:!1,outroData:null,fetchingOutroData:!1}}(e),setOutro:s}};let Hd;!function(e){e.LikedAdded="liked-added",e.LikeRemoved="like-removed",e.WatchLaterAdded="watch-later-added",e.WatchLaterRemoved="watch-later-removed"}(Hd||(Hd={}));const{Provider:Fd,useStore:Gd,useStoreApi:Yd}=De(),Wd=({player:e,children:t})=>{const[n,i]=Pe(!1);return ql(()=>i(!0),e),n?ke(Fd,{createStore:()=>Me(xe((t,n,{subscribe:i})=>{const r=h(h({set:t,get:n,subscribe:i},e),{},{get backbone(){return e.backbone},get displayContext(){return e.displayContext},get config(){return e.config},get fragmentsHandler(){return e.fragmentsHandler},get startTime(){return e.startTime},set startTime(t){e.startTime=t},get endTime(){return e.endTime},set endTime(t){e.endTime=t},get segmentedPlaybackEnabled(){return e.segmentedPlaybackEnabled},get canPlayPictureInPicture(){return e.canPlayPictureInPicture},get parentUrl(){return e.parentUrl},set parentUrl(t){e.parentUrl=t}}),{config:s,backbone:l,element:c,expose:d,verifyConfig:u,events:_,loadVideoViaIframe:p}=e,v=h(h(h(h(h(h(h(h(h(h(h(h(h(h(h(h(h(h(h(h(h(h(h(h(h({},(e=>{const{set:t,events:n}=e,i=Js(e);return n.on(Wt._debugDataChange,()=>{t(()=>({debug:Js(e)}))}),{debug:i}})(r)),(e=>{const{set:t,get:n,events:i,subscribe:o}=e,r=cl(e),a=(e,n)=>{t(t=>({controlBar:h(h({},t.controlBar),{},{[e]:n})}))};function s(){const e=ar(rr.FULL_CONTROLS,n().appearance.playerSizeMode,n().appearance.playerBreakpoint);a("showAllControls",e)}return i.on(Wt._configChanged,()=>{t(()=>({controlBar:cl(e)}))}),i.on(kt._overrideControlbarBehavior,e=>{a("overrideBehavior",e)}),o(e=>{var t;return null==e||null==(t=e.appearance)?void 0:t.playerSizeMode},s),o(e=>{var t;return null==e||null==(t=e.appearance)?void 0:t.playerBreakpoint},s),{controlBar:r,setControlBar:a}})(r)),Yl(r)),(e=>{const{store:t,set:n,events:i,element:o,backbone:r,config:a}=e,s=Wl(e),l=(e,t)=>n(n=>({appearance:h(h({},n.appearance),{},{[e]:t})}));return t.watch("ui.player.breakpoint",e=>l("playerBreakpoint",e)),t.watch("ui.player.mode",e=>l("playerSizeMode",e)),t.watch("ui.app.breakpoint",e=>l("appBreakpoint",e)),t.watch("ui.app.mode",e=>l("appSizeMode",e)),t.watch("ui.controlbar.isMenuFullWidth",e=>l("isMenuBlockingUI",e)),t.watch("ui.player.isVerticalVideo",e=>{l("isVerticalVideo",e)}),t.watch("ui.controlbar.isMenuVerticalVideoMode",e=>l("isMenuVerticalVideoMode",e)),t.watch("ui.player.width",()=>{l("boundingClientRect",mt(o))}),t.watch("ui.controlbar.doMenuItemsWrap",e=>{l("shouldMenuItemsWrap",e)}),t.watch("ui.player.width",e=>{const{videoHeight:n}=$l(e,t.get("ui.player.height"),a.video.width,a.video.height);l("videoHeight",n)}),t.watch("ui.player.height",e=>{const{videoHeight:n}=$l(t.get("ui.player.width"),e,a.video.width,a.video.height);l("videoHeight",n)}),t.watch("ui.container.height",e=>{l("containerHeight",e)}),i.on(Wt._willEnterFullscreen,()=>l("fullscreen",!0)),i.on(Wt._didExitFullscreen,e=>{n(t=>{const n={fullscreen:!1,forceExitedFullscreen:t.appearance.forceExitedFullscreen};return e||(n.forceExitedFullscreen=!0),{appearance:h(h({},t.appearance),n)}})}),i.on(E.WEBKIT_END_FULLSCREEN,()=>{l("fullscreen",!1)}),i.on(Wt._airPlayActivated,()=>{n(e=>({appearance:h(h({},e.appearance),{},{showAirPlayPicker:!0})}))}),i.on(Wt._airPlayDeactivated,()=>{n(e=>({appearance:h(h({},e.appearance),{},{showAirPlayPicker:!1})}))}),i.on(kt._reset,()=>{n(()=>({appearance:Wl(e)}))}),i.on(Wt._airPlayActivated,()=>{n(e=>({appearance:h(h({},e.appearance),{},{externalDisplay:!0})}))}),i.on(Wt._airPlayDeactivated,()=>{n(e=>({appearance:h(h({},e.appearance),{},{externalDisplay:!1})}))}),i.on(E.ENTER_PICTURE_IN_PICTURE,()=>{n(e=>({appearance:h(h({},e.appearance),{},{pictureInPictureActive:!0})}))}),i.on(E.LEAVE_PICTURE_IN_PICTURE,()=>{n(e=>({appearance:h(h({},e.appearance),{},{pictureInPictureActive:!1})}))}),i.on(z.WEBVR_ENTER,()=>{n(e=>({appearance:h(h({},e.appearance),{},{stereoscopicEnabled:!0})}))}),i.on(z.WEBVR_EXIT,()=>{n(e=>({appearance:h(h({},e.appearance),{},{stereoscopicEnabled:!1})}))}),i.on(E.LOADED_DATA,()=>{n(t=>({appearance:h(h({},t.appearance),{},{isStartTimeThumbLoading:Ea(e)})}))}),{appearance:s,setAppearance:(e,t)=>{"fullscreen"!==e?"pictureInPictureActive"!==e?"showAirPlayPicker"!==e?("stereoscopicEnabled"===e&&i.fire(Wt._stereoscopicButtonPressed),"transcriptNavActive"===e&&i.fire(Wt._transcriptNavActive,t),l(e,t)):i.fire(Wt._airPlayButtonPressed):i.fire(r.pictureInPictureActive?kt._deactivatePictureInPicture:kt._activatePictureInPicture):i.fire(Wt._fullscreenButtonPressed)}}})(r)),(e=>{const{set:t,events:n,subscribe:i,get:o}=e,r=$c(e);return n.on(Wt._configChanged,()=>{t(()=>({embed:$c(e)}))}),n.on(Wt._parentUrlAvailable,(function(e){e&&t(t=>({embed:h(h({},t.embed),{},{parentUrl:e})}))})),i(e=>{var t;return null==e||null==(t=e.liveEvent)?void 0:t.isArchived},i=>{var r,a;const s=qc(e),l=null==(r=o())||null==(a=r.embed)?void 0:a.transcript;i&&s&&!l&&(n.fire(Wt._rightContentAreaEnabled),t(e=>({embed:h(h({},e.embed),{},{rightContentAreaEnabled:!0,transcript:!0})})))}),{embed:r}})(r)),rl(r)),(e=>{const{events:t,set:n}=e,i=()=>{clearTimeout(sl),sl=setTimeout(()=>{n(e=>({displayList:h(h({},e.displayList),{},{nudgeNotification:!1})})),t.fire(Wt._nudgeEnded)},1050)},o=e=>{i(),n(t=>({displayList:h(h({},t.displayList),{},{nudgeNotification:!0}),nudge:e}))};return t.on(Wt._showNudgeNotification,({direction:e,time:t})=>{o({direction:e,time:t})}),{nudge:{direction:null,time:null},setNudge:(e,t)=>{i(),n(n=>({nudge:h(h({},n.nudge),{},{[e]:t})}))},setNudgeProperties:o}})(r)),(e=>{const{events:t,set:n,get:i,backbone:o,subscribe:r,config:a}=e,s=(e,t)=>{n(n=>({playback:h(h({},n.playback),{},{[e]:t})}))},l=Jc(e);return t.on(kt._reset,()=>{n(()=>({playback:Jc(e)}))}),t.on(Wt._configChanged,t=>{t&&n(()=>({playback:Jc(e)}))}),t.on(S,()=>s("playInitiated",!0)),t.on(E.PLAY,()=>{n(e=>({playback:h(h({},e.playback),{},{scrubbing:!1,scrubbingByFrame:!1,paused:!1,playInitiated:!0,ended:!1})}))}),t.on(Wt._playButtonPressed,()=>s("paused",!1)),t.on([E.PAUSE,Wt._paused,Wt._pauseButtonPressed],()=>s("paused",!0)),t.on(Wt._targetTimeReached,()=>s("targetTimeReached",!0)),t.on(I.BUFFER_STARTED,()=>s("buffering",!0)),t.on(I.BUFFER_ENDED,()=>s("buffering",!1)),t.on(Wt._scrubbingStarted,e=>{s("scrubbing",!0),"keyboard"===(null==e?void 0:e.seekType)&&(null==e?void 0:e.isFrameByFrame)&&s("scrubbingByFrame",!0)}),t.on(Wt._scrubbingEnded,()=>{s("scrubbing",!1),s("scrubbingByFrame",!1)}),t.on(kt._setTime,e=>{n(t=>{const n=t.liveEvent.dvrEnabled?t.playback.liveTailTime:0,i=t.liveEvent.dvrEnabled?t.playback.liveEdgeTime:t.playback.duration,o=gt(e,n,i);return{playback:h(h({},t.playback),{},{currentTime:o})}})}),t.on(E.TIME_UPDATE,({currentTime:t,timeProgress:i,liveEdgeTime:o,atLiveEdge:r,liveTailTime:a,atLiveTail:s})=>{n(n=>{const l=Math.min(Tt(100*i),100);t=t||n.playback.duration*l||0;const c=ed(e);return{playback:h(h({},n.playback),{},{currentTime:t,liveEdgeTime:o,atLiveEdge:r,liveTailTime:a,atLiveTail:s,playbackRates:c})}})}),t.on(Wt._ended,()=>{const e=i().liveEvent.dvrEnabled&&!i().playback.atLiveEdge,t=i().liveEvent.dvrEnabled&&i().playback.atLiveEdge;e||n(e=>({playback:h(h({},e.playback),{},{ended:!0,currentTime:t?0:e.playback.currentFragment.duration})}))}),t.on(E.PROGRESS,({loaded:e})=>{n(t=>({playback:h(h({},t.playback),{},{loadedTime:e})}))}),t.on([Wt._fragmentChanged,E.DURATION_CHANGE],()=>{const t=i().playback.currentFragment;if(!Be(t,e.fragmentsHandler.currentFragment)){const t=od(e.config);n(n=>({playback:h(h({},n.playback),{},{hasFragments:t,currentFragment:e.fragmentsHandler.currentFragment})}))}}),t.on(E.LOADED_METADATA,()=>{n(e=>({playback:h(h({},e.playback),{},{loadedMetadata:!0})}))}),t.on(E.LOADED_DATA,()=>{n(e=>({playback:h(h({},e.playback),{},{loadedData:!0})}))}),t.on([I.STREAM_CHANGE,G],e=>{const t={currentQuality:td(o.qualities,e)};i().liveEvent.isLiveEvent&&Object.assign(t,{qualities:o.qualities}),n(e=>({playback:h(h({},e.playback),t)}))}),t.on(Wt._qualityChanged,e=>{n(t=>({playback:h(h({},t.playback),{},{qualities:o.qualities,currentQuality:td(o.qualities,e)})}))}),t.on(I.AUDIO_TRACK_CHANGED,()=>s("audioTracks",o.audioTracks)),t.once(V,()=>s("canPlayPictureInPicture",e.canPlayPictureInPicture)),t.on(Wt._airPlayAvailable,()=>{n(e=>({playback:h(h({},e.playback),{},{supportsAirPlay:!0})}))}),t.on(Wt._airPlayNotAvailable,()=>{n(e=>({playback:h(h({},e.playback),{},{supportsAirPlay:!1})}))}),t.on(Wt._playbackRateChanged,()=>{n(t=>({playback:h(h({},t.playback),{},{playbackRates:ed(e)})}))}),t.on(Wt._volumeChanged,e=>{n(t=>({playback:h(h({},t.playback),{},{volume:e,muted:o.muted})}))}),t.on(Wt._mutedChanged,e=>{n(t=>({playback:h(h({},t.playback),{},{muted:e})}))}),t.on(I.AVAILABLE_STREAMS_CHANGED,()=>{n(e=>({playback:h(h({},e.playback),{},{qualities:o.qualities,currentQuality:td(o.qualities)})}))}),$r.on(Gr.connected,()=>{n(e=>({playback:h(h({},e.playback),{},{isChromecastConnected:!0})}))}),$r.on(Gr.disconnected,()=>{n(e=>({playback:h(h({},e.playback),{},{isChromecastConnected:!1})}))}),$r.on(Gr.initialized,()=>{n(e=>({playback:h(h({},e.playback),{},{isChromecastSetupWithAvailableDevices:id()})}))}),$r.on(Gr.castStateChanged,()=>{n(e=>({playback:h(h({},e.playback),{},{isChromecastSetupWithAvailableDevices:id()})}))}),$r.on(Gr.playing,()=>{n(e=>({playback:h(h({},e.playback),{},{isChromecastPlaying:!0,isChromecastBuffering:!1})}))}),$r.on(Gr.buffering,()=>{n(e=>({playback:h(h({},e.playback),{},{isChromecastBuffering:!0})}))}),$r.on([Gr.error,Gr.idle,Gr.paused,Gr.ended,Gr.disconnected],()=>{n(e=>({playback:h(h({},e.playback),{},{isChromecastPlaying:!1,isChromecastBuffering:!1})}))}),$r.on(Gr.error,()=>{n(e=>({playback:h(h({},e.playback),{},{supportsChromecast:!1})}))}),t.on([Wt._adClicked,Wt._adPaused,Wt._adComplete,Wt._adError,Wt._adSkipped,Wt._allAdsCompleted],()=>{n(e=>({playback:h(h({},e.playback),{},{isAdPlaying:!1})}))}),t.on([Wt._adStarted,Wt._adResumed],()=>{n(e=>({playback:h(h({},e.playback),{},{isAdPlaying:!0})}))}),t.on([Wt._startTimeUpdated,Wt._endTimeUpdated],()=>{n(t=>({playback:h(h({},t.playback),{},{isSegmentedPlaybackEnabled:e.segmentedPlaybackEnabled,startTime:e.startTime,endTime:e.endTime})}))}),t.on(K.LATENCY_UPDATED,(function(){n(e=>e.playback.paused||e.playback.buffering?e.playback.scrubbing?il:{playback:h(h({},e.playback),rd(o))}:il)})),t.on(I.SCANNER_CHANGE,(function(){n(e=>({playback:h(h({},e.playback),rd(o))}))})),r(e=>{var t;return null==e||null==(t=e.playback)?void 0:t.atLiveEdge},e=>!e&&i().liveEvent.dvrEnabled&&!i().liveEvent.isArchived&&Or(vr.DVR_MODE_ENTERED,a)),r(e=>{var t;return null==e||null==(t=e.embed)?void 0:t.pip},()=>{n(t=>({playback:h(h({},t.playback),{},{canPlayPictureInPicture:e.canPlayPictureInPicture})}))}),{playback:l,clearSegment:()=>{e.startTime=null,e.endTime=null},setPlayback:(e,r,a)=>{if("paused"!==e){if("qualities"===e)return t.fire(kt._changeQuality,r),void n(e=>{const t=yn(e.playback.qualities,r);return{playback:h(h({},e.playback),{},{qualities:t,currentQuality:td(t)})}});if("playbackRates"===e)return t.fire(kt._changePlaybackRate,r),void n(e=>{const t=yn(e.playback.playbackRates,r);return{playback:h(h({},e.playback),{},{playbackRates:t})}});if("scrubbing"!==e)if("currentTime"!==e)if("volume"!==e)if("muted"!==e)if("audioTracks"!==e)s(e,r);else{const e=o.audioTracks.find(e=>e.id===`${r}`);e&&(o.enableAudioTrack(e),t.fire(kt._changeAudioTrack,e))}else t.fire(kt._changeMuted,r);else t.fire(kt._changeVolume,r);else switch(null==a?void 0:a.seekType){case"interactive-marker":t.fire(kt._seek,r),t.fire(Wt._playButtonPressed),t.fire(Wt._interactiveMarkerClicked,{type:"interactive-marker",action:null==a?void 0:a.action});break;case"nudge":t.fire(Wt._nudgeAttempted),t.fire(kt._seek,r),i().playback.playInitiated||t.fire(Wt._playButtonPressed);break;default:t.fire(kt._seek,r)}else r?t.fire(Wt._scrubbingStarted):t.fire(Wt._scrubbingEnded)}else!1===r?t.fire(Wt._playButtonPressed):t.fire(Wt._pauseButtonPressed)}}})(r)),(e=>{const{events:t,get:n,set:i}=e,o=(e,t)=>{i(n=>({user:h(h({},n.user),{},{[e]:t})}))};return t.on(Wt._liked,()=>o("liked",!0)),t.on(Wt._unliked,()=>o("liked",!1)),t.on(Wt._addedToWatchLater,()=>o("watchLater",!0)),t.on(Wt._removedFromWatchLater,()=>o("watchLater",!1)),t.on(Wt._configChanged,(t,n)=>{e.set(()=>({user:ad({config:n})}))}),t.on(Wt._userLoggedIn,()=>{n().user.loggedIn||o("loggedIn",1)}),t.on(Wt._unfollowed,()=>o("following",!1)),t.on(Wt._followed,()=>o("following",!0)),{user:ad(e),setUser:(i,r)=>{if("liked"!==i)if("watchLater"!==i)if("collected"!==i)if("shared"!==i)"loggedIn"!==i||!0!==r||n().user.loggedIn?("following"===i&&t.fire(Wt._followButtonPressed),o(i,r)):t.fire(kt._openPopup,"basic");else{const{share:n}=e.config.embed.settings,i=(null==n?void 0:n.embed_only)?Wt._embedButtonPressed:Wt._shareButtonPressed;t.fire(i)}else t.fire(Wt._collectionsButtonPressed);else t.fire(Wt._watchLaterButtonPressed);else t.fire(Wt._likeButtonPressed)}}})(r)),(e=>{const{set:t,get:n,events:i,config:o,subscribe:r}=e,a=ld(e);function s(e){e&&n().vod.vodButtonVisible?t(e=>({vod:h(h({},e.vod),{},{vodButtonVisible:!1})})):e||!n().vod.isVOD||n().vod.vodButtonVisible||t(e=>({vod:h(h({},e.vod),{},{vodButtonVisible:!0})}))}return r(e=>{var t;return null==e||null==(t=e.displayList)?void 0:t.fullPlayerElement},e=>{s(e)}),r(e=>{var t;return null==e||null==(t=e.displayList)?void 0:t.ad},e=>s(e)),i.on(Wt._configChanged,(n,i)=>{t(()=>({vod:ld(h(h({},e),{},{config:i}))}))}),{vod:a,setVod:(e,n)=>{if("purchased"!==e||!0!==n)t(t=>({vod:h(h({},t.vod),{},{[e]:n})}));else{const[e]=o.video.vod.purchase_options;i.fire(Wt._vodButtonPressed,e.product_id)}}}})(r)),(e=>{const{set:t,get:n,events:i}=e,r=gl(e),a=(e,i)=>{if("purpose"!==e)t(t=>({overlay:h(h({},t.overlay),{},{[e]:i})}));else{const e=n().overlay.purpose===i?Gn.EMPTY:i;t(t=>({overlay:h(h({},t.overlay),{},{purpose:e})}))}};return i.on(Wt._overlayOpened,(e,t)=>{t||(jn(e)&&n().overlay.purpose===e?i.fire(Wt._overlayClosed):a("purpose",e))}),i.on(Wt._overlayClosed,()=>{a("purpose",Gn.EMPTY)}),i.on(kt._showOverlay,(e,t,o)=>{o||(e===Gn.SPATIAL_REDIRECT&&a("spatialRedirectContext",t),jn(e)&&!n().displayList.accessGate&&i.fire(Wt._overlayOpened,e))}),i.on(Wt._overlayCloseButtonPressed,()=>{jn(n().overlay.purpose)&&i.fire(Wt._overlayClosed)}),o.stereoscopic&&i.on(Wt._showAndroidVRDeepLink,()=>{a("spatialRedirectContext","headset"),a("purpose",Gn.SPATIAL_REDIRECT)}),{overlay:r,setOverlay:(t,o)=>{if("purpose"!==t||El(o)){if("purpose"===t&&o===Gn.EMPTY){if(jn(n().overlay.purpose))return void i.fire(Wt._overlayClosed);a("purpose",Kn(e.element))}"purpose"===t&&El(o)&&jn(o)&&(i.fire(kt._showOverlay,o,{},!0),i.fire(Wt._overlayOpened,o,!0)),a(t,o)}}}})(r)),(e=>{const{set:t,events:n,subscribe:i}=e,o=al(e);return n.on(Wt._configChanged,(n,i)=>{t(()=>({title:al(h(h({},e),{},{config:i}))}))}),i(e=>{var t;return null==e||null==(t=e.playback)?void 0:t.isSegmentedPlaybackEnabled},n=>{let i=Vi("video-title",e.config);n&&(i=qi(i,e.startTime,e.endTime)),t(e=>({title:h(h({},e.title),{},{titleLinkUrl:i})}))}),{title:o}})(r)),(e=>{const{events:t,set:n}=e,i=cd(e);return t.on(Wt._configChanged,(e,t)=>{n(()=>({badge:cd({config:t})}))}),{badge:i,setBadge:(e,i)=>{"id"!==e?((e,t)=>{n(n=>({badge:h(h({},n.badge),{},{[e]:t})}))})(e,i):t.fire(Wt._badgePressed,i)}}})(r)),(e=>{const{set:t,events:n}=e,i=(e,n)=>{t(t=>({chapters:h(h({},t.chapters),{},{[e]:n})}))},o=dd(e),r=({backbone:e})=>{if(e.chaptersTrack){const t=()=>n.fire(Wt._chapterChanged,null==e?void 0:e.currentChapterID);e.chaptersTrack.addEventListener("cuechange",t)}};return r(e),n.on(Wt._chapterChanged,e=>{t(t=>({chapters:h(h({},t.chapters),{},{activeCueId:e})}))}),n.on(I.CHAPTER_CUES_UPDATED,()=>i("chapters",ud(e))),n.on(Wt._configChanged,()=>{t(()=>({chapters:dd(e)})),r(e)}),{chapters:o,setChapters:i}})(r)),(e=>{const{set:t,get:n,events:i,backbone:o}=e,r=Ba(),s=e=>{var i,r;const a=md(o.textTracks,null==(i=n())||null==(r=i.liveEvent)?void 0:r.isLiveEvent,e);t(e=>({captions:h(h({},e.captions),a)}))},l=vd(e);return i.on(Wt._captionsChanged,e=>{s(e)}),i.on(I.TEXT_TRACKS_AVAILABLE,()=>{s()}),i.on(Wt._configChanged,()=>{t(()=>({captions:vd(e)}))}),i.on(M,(e,n=[])=>{o.enabledTextTrack&&"disabled"!==(null==e?void 0:e.mode)&&t(e=>({captions:h(h({},e.captions),{},{activeCues:a(n)})}))}),i.on(kt._turnCaptionsOff,()=>{t(e=>({captions:h(h({},e.captions),{},{activeCues:[]})}))}),{captions:l,setCaptions:(n,o)=>{if("activeTextTrackId"===n)return"off"!==o&&o?void i.fire(kt._turnCaptionsOn,o):void i.fire(kt._turnCaptionsOff);if(Ti.hasOwnProperty(n)){const a=r[n];return i.fire(kt._changeCaptionsStyles,a,o),void t(t=>({captions:h(h({},t.captions),fd(e))}))}((e,n)=>{t(t=>({captions:h(h({},t.captions),{},{[e]:n})}))})(n,o)},resetCaptionsStyles:()=>{i.fire(kt._resetCaptionsStyles),t(t=>({captions:h(h({},t.captions),fd(e))}))}}})(r)),(e=>{const{events:t,set:n,subscribe:i}=e,o=Ed(e),r=(e,t)=>{n(n=>({liveEvent:h(h({},n.liveEvent),{},{[e]:t})}))};t.on(Wt._configChanged,()=>{n(()=>({liveEvent:Ed(e)}))});const{EVENT_ACTIVE:a,EVENT_PENDING:s,EVENT_STARTED:l,EVENT_ENDED:c}=K,d={[a]:no.active,[s]:no.pending,[l]:no.started,[c]:no.ended};Object.keys(d).forEach(e=>t.on(e,()=>n(t=>({liveEvent:h(h({},t.liveEvent),Cd(d[e]))}))));const{ARCHIVE_STARTED:u,ARCHIVE_DONE:_,ARCHIVE_ERROR:p}=K,v={[u]:to.started,[_]:to.done,[p]:to.error};return Object.keys(v).forEach(e=>t.on(e,()=>n(t=>({liveEvent:h(h({},t.liveEvent),bd(v[e]))})))),t.on(K.LIVE_STATS_SUCCESS,({viewerCount:e})=>{n(t=>({liveEvent:h(h({},t.liveEvent),{},{viewerCount:ct(e),liveStatsRequestSucceeded:!0})}))}),t.on(K.LIVE_STATS_FAILURE,()=>{n(e=>({liveEvent:h(h({},e.liveEvent),{},{liveStatsRequestSucceeded:!1})}))}),t.on(Wt._liveEventSafeToPlay,()=>{r("isPlayable",!0)}),i(e=>{var t;return null==e||null==(t=e.liveEvent)?void 0:t.isStarted},e=>!e&&r("isPlayable",!1)),{liveEvent:o,setLiveEvent:r}})(r)),wd(r)),(e=>{const{set:t,events:n,config:i}=e;return n.on(Wt._configChanged,()=>{t(()=>({cuePoints:{cuePoints:[]}}))}),i.embed.on_site&&(n.on(Wt._cuePointAdded,e=>{t(t=>{const n=t.cuePoints.cuePoints.concat(e);return{cuePoints:h(h({},t.cuePoints),{},{cuePoints:n})}})}),n.on(Wt._cuePointRemoved,e=>{t(t=>{const n=t.cuePoints.cuePoints.filter(t=>t.id!==e.id);return{cuePoints:h(h({},t.cuePoints),{},{cuePoints:n})}})})),{cuePoints:{cuePoints:[]},setCuePoints:(e,n)=>{t(t=>({cuePoints:h(h({},t.cuePoints),{},{[e]:n})}))}}})(r)),(e=>{const{set:t,get:n,events:i,subscribe:o,element:r,config:a}=e,s={purpose:Nd.EMPTY};let l=function(e){const{request:t,video:n,embed:i}=e.config,{qoe_survey_forced:o,ott:r}=t.flags,{qoe_survey_vote:a}=t.cookie,{duration:s,live_event:l}=n;return!(!o&&(s<60&&!l||!zn(i)||r||Xn(7776e6){zn(a.embed)&&To({newPriority:i,currentPriority:n().toast.purpose,priorityOrder:kd})&&t(t=>({toast:h(h({},t.toast),{},{[e]:i})}))},d=()=>{l&&To({newPriority:Nd.QOE_SURVEY,currentPriority:n().toast.purpose,priorityOrder:kd})&&(e=>{if(!e)return!1;const t=e.getBoundingClientRect(),n=t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth),i="visible"===document.visibilityState;return n&&i})(r)&&(c("purpose",Nd.QOE_SURVEY),i.fire(Wt._qoeSurveyPresented),l=!1)};function u(){t(e=>{const{liveEvent:t,toast:n,playback:i,displayList:o}=e;return t.dvrEnabled&&n.purpose!==Nd.SKIP_TO_LIVE?i.atLiveEdge?il:t.isPlayable?i.paused&&!i.scrubbing?il:o.controlBar?{toast:{purpose:Nd.SKIP_TO_LIVE}}:il:il:il})}function _(){t(e=>e.toast.purpose!==Nd.SKIP_TO_LIVE?il:{toast:{purpose:Nd.EMPTY}})}return o(e=>{var t;return null==e||null==(t=e.playback)?void 0:t.playInitiated},e=>{var t,i,o,r;const a=function(e,t){return t?6e5:Math.round(.4*e*1e3)}(null==(t=n())||null==(i=t.playback)?void 0:i.duration,null==(o=n())||null==(r=o.liveEvent)?void 0:r.isLiveEvent);e&&a&&setTimeout(d,a)}),o(e=>{var t;return null==e||null==(t=e.playback)?void 0:t.atLiveEdge},e=>{e?_():u()}),o(e=>{var t;return null==e||null==(t=e.liveEvent)?void 0:t.isEnded},e=>e&&void t(e=>e.liveEvent.dvrEnabled&&e.liveEvent.isEnded?{toast:{purpose:Nd.BROADCAST_OVER}}:il)),o(e=>{var t;return null==e||null==(t=e.playback)?void 0:t.paused},e=>{n().liveEvent.isEnded||n().playback.scrubbing||(e?_():u())}),o(e=>{var t;return null==e||null==(t=e.displayList)?void 0:t.controlBar},e=>e?u():_()),{toast:s,setToast:c,closeToast:()=>{c("purpose",Nd.EMPTY)}}})(r)),(e=>{const{get:t,set:n,subscribe:i,config:o,backbone:r}=e,a=ul(e),s=(e,i)=>{zn(o.embed)&&To({newPriority:i,currentPriority:t().topCenterActionItem.purpose,priorityOrder:dl})&&n(t=>({topCenterActionItem:h(h({},t.topCenterActionItem),{},{[e]:i})}))},l=e=>{e&&t().topCenterActionItem.purpose!==e||s("purpose",ll.EMPTY)},c=()=>l(ll.UNMUTE),d=()=>s("purpose",ll.WATCH_FULL_VIDEO),u=()=>l(ll.WATCH_FULL_VIDEO);return i(e=>{var t;return null==e||null==(t=e.playback)?void 0:t.loadedData},e=>{if(!e)return;const n=t(),i=n.embed.autoPlay||n.liveEvent.isLiveEvent,o=0===n.playback.volume||n.playback.muted,a=zn(n.embed),l=r.hasAudio||n.liveEvent.isLiveEvent;o&&i&&a&&l&&n.embed.unmuteButton&&s("purpose",ll.UNMUTE)}),i(e=>{var t;return null==e||null==(t=e.playback)?void 0:t.volume},e=>e>0&&c()),i(e=>{var t;return null==e||null==(t=e.playback)?void 0:t.muted},e=>!e&&c()),i(e=>{var t;return null==e||null==(t=e.liveEvent)?void 0:t.isEnded},e=>e&&c()),i(e=>{var t;return null==e||null==(t=e.playback)?void 0:t.isSegmentedPlaybackEnabled},()=>{_l(t())?d():u()}),i(e=>{var t;return null==e||null==(t=e.displayList)?void 0:t.controlBar},()=>{_l(t())?d():u()}),i(e=>{var t;return null==e||null==(t=e.displayList)?void 0:t.outro},()=>{_l(t())?d():u()}),i(e=>{var t;return null==e||null==(t=e.playback)?void 0:t.paused},()=>{_l(t())?d():u()}),{topCenterActionItem:a,setTopCenterActionItem:s,closeTopCenterActionItem:l}})(r)),(e=>{const{events:t,set:n}=e,i=(e,t)=>{n(n=>({spatial:h(h({},n.spatial),{},{[e]:t})}))};return t.on(z.WEBVR_ENTER,()=>{i("webVRActive",!0)}),t.on(z.WEBVR_EXIT,()=>{i("webVRActive",!1)}),t.on(z.CAMERA_UPDATE,e=>{n(t=>({spatial:h(h({},t.spatial),{},{latitude:e.pitch,longitude:e.yaw})}))}),{spatial:function(e){const{spatial:t}=e.config.video;return{webVRActive:!1,longitude:0,latitude:0,fieldOfView:t?t.fov:0}}(e),setSpatial:i}})(r)),Ud(r)),(e=>{const{set:t,events:n,subscribe:i,get:o}=e,r=(e,n)=>{t(t=>({alert:h(h({},t.alert),{},{[e]:n})}))},a=e=>{t(t=>{const n=t.embed.background;return t.displayList.overlay||n?il:{alert:h(h({},t.alert),{},{currentAlert:e})}})};return n.on(Rt._spatialUnsupported,()=>a(bl.SPATIAL_UNSUPPORTED)),n.on(Rt._spatialFailure,()=>a(bl.SPATIAL_FAILURE)),i(e=>{var t;return null==e||null==(t=e.displayList)?void 0:t.overlay},e=>{e&&o().alert.currentAlert!==bl.EMPTY&&r("currentAlert",bl.EMPTY)}),{alert:{currentAlert:bl.EMPTY},setAlert:r}})(r)),(e=>{const{subscribe:t,set:n,events:i}=e;let o=!1,r=!1;const a=(e,t)=>{n(n=>({notification:h(h({},n.notification),{},{[e]:t})}))};return i.on([Wt._notificationHidden,kt._reset],()=>a("currentNotification",null)),t(e=>{var t;return null==e||null==(t=e.user)?void 0:t.liked},e=>{void 0!==e&&(o?a("currentNotification",e?Hd.LikedAdded:Hd.LikeRemoved):o=!0)}),t(e=>{var t;return null==e||null==(t=e.user)?void 0:t.watchLater},e=>{void 0!==e&&(r?a("currentNotification",e?Hd.WatchLaterAdded:Hd.WatchLaterRemoved):r=!0)}),{notification:{currentNotification:null},setNotification:a}})(r)),{},{config:s,backbone:l,element:c,name:(null==d?void 0:d.name)||ui.VimeoPlayer,verifyConfig:u,events:_,subscribe:i,loadVideoViaIframe:p});return _.fire(Wt._eventedStoreCreated,v),v})),children:t}):null},$d=e=>`opacity ${e}ms ease-out`,qd=({children:e,visible:t,duration:n=250,styleOverrides:i={},onFaded:o,delay:r=0,fadeIn:a=!0,fadeOut:s=!0})=>{const l=Gd(e=>e.embed.background||!e.embed.controls||e.displayList.accessGate),c=$d(n),d={enter:{opacity:0},enterActive:{opacity:1,transition:c,transitionDelay:`${r}ms`},enterDone:{opacity:1},exit:{opacity:1},exitActive:{opacity:0,transition:c,transitionDelay:`${r}ms`},exitDone:l?{display:"none"}:{overflow:"hidden",opacity:0,pointerEvents:"none"}};return Object.keys(i).forEach(e=>{e in d&&Object.assign(d[e],i[e])}),a||delete d.enter,s||delete d.exit,ke(Ue,{in:t,duration:n,styles:d,alwaysMounted:!0,onExited:()=>{o&&o()},children:e})};const Kd=({children:e,text:t})=>{const n=we(t),[i,r]=Pe(!1),[a,s]=Pe(!1),l=()=>{a||s(!0)},c=()=>{i&&(l(),r(!1))},d=()=>{i||o.touch||(l(),r(!0))},u=Re(()=>{a&&s(!1)},[a]),_={className:"LabeledButton_module_box__2e0341f7",onMouseEnter:d,onMouseLeave:c,onFocus:d,onBlur:c},p=h({className:"LabeledButton_module_labeledButton__2e0341f7"},vn(t=>{c(),e.props.onClick&&e.props.onClick(t)})),v=`${$d(250)} transform 250 ease-out`,m={visible:i,styleOverrides:{enterActive:{transform:"translateX(0)",transition:v},exitActive:{transform:"translateX(5px)",transition:v}}};return n.current!==t&&(a?m.onFaded=u:n.current=t),ke("div",h(h({},_),{},{children:[ke(qd,h(h({},m),{},{children:ke("label",h(h({},p),{},{role:"presentation","aria-hidden":"true",children:ke("span",{children:n.current})}))})),e]}))};const jd=He((e,t)=>{let{href:n,children:i,element:o="div",className:r="",targetBlank:a=!0}=e,s=m(e,["href","children","element","className","targetBlank"]);const l=Fe(o,h(h({},s),{},{className:r}),i);return n?ke("a",h(h(h({href:n,className:Cn("Link_module_link__13523a65",r),ref:t,"aria-describedby":"new-window"},a?{target:"_blank",rel:"noopener"}:{}),s),{},{children:i})):l}),zd={[gc.CLOSE]:e=>{let t=Object.assign({},e);return ke("svg",h(h({viewBox:"0 0 20 20"},t),{},{children:ke("path",{d:"M11.06 10l4.597-4.596a.749.749 0 1 0-1.061-1.06L10 8.938 5.404 4.343a.749.749 0 1 0-1.06 1.061L8.938 10l-4.596 4.596a.749.749 0 1 0 1.061 1.06L10 11.062l4.596 4.596a.749.749 0 1 0 1.06-1.061L11.062 10z",fill:"#fff",fillRule:"evenodd"})}))},[gc.AIRPLAY]:e=>{let t=Object.assign({},e);return ke("svg",h(h({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","data-airplay-icon":!0},t),{},{children:ke("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.6666 4.99992H3.33329V13.3333H5.43825L4.0911 14.9999H3.33329C2.41282 14.9999 1.66663 14.2537 1.66663 13.3333V4.99992C1.66663 4.07944 2.41282 3.33325 3.33329 3.33325H16.6666C17.5871 3.33325 18.3333 4.07944 18.3333 4.99992V13.3333C18.3333 14.2537 17.5871 14.9999 16.6666 14.9999H15.9088L14.5617 13.3333H16.6666V4.99992ZM10.7777 12.6288C10.3774 12.1336 9.62249 12.1336 9.22224 12.6288L6.26454 16.288C5.73597 16.9419 6.2014 17.9166 7.04225 17.9166H12.9577C13.7985 17.9166 14.2639 16.9419 13.7354 16.288L10.7777 12.6288Z"})}))},[gc.DOLBY_VISION]:e=>{let t=Object.assign({},e);return ke("svg",h(h({viewBox:"0 0 844 126","aria-labelledby":"dv-logo-title"},t),{},{children:[ke("title",{id:"dv-logo-title",children:"Dolby Vision"}),ke("path",{d:"M478.94 30.12l-18.96 42.63-18.95-42.63h-15.9l26.9 60.48-6.59 14.85a7.77 7.77 0 01-10.25 3.94l-2.08-.93-5.88 13.19h.03l5.04 2.26a18.86 18.86 0 0024.85-9.56l37.69-84.23h-15.9zm-66.52 33.04c0-11-9.05-20.05-20.06-20.05a20.08 20.08 0 00-19.02 26.37 20.05 20.05 0 0039.08-6.32zm13.2.13a33.3 33.3 0 01-33.26 33.26 33.08 33.08 0 01-19.02-6v6.02h-14.58V.47h14.58v35.55c5.4-3.77 11.96-6 19.02-6a33.3 33.3 0 0133.27 33.27zm-93.64 33.29h14.55V.48h-14.55v96.1zm-22.62-33.4c0-11-9.05-20.06-20.06-20.06a20.07 20.07 0 000 40.11c11 0 20.06-8.92 20.06-20.05zm13.2.03a33.3 33.3 0 01-33.26 33.26 33.3 33.3 0 01-33.26-33.26 33.3 33.3 0 0133.26-33.27 33.3 33.3 0 0133.27 33.27zM234.1 48.47a33.5 33.5 0 00-33.44-33.45h-20.12v66.9h20.12a33.5 33.5 0 0033.44-33.45zm14.56 0c0 26.47-21.54 48-48 48h-34.68v-96h34.68c26.46 0 48 21.53 48 48zM136.92.47h-14.17c-26.44 0-48 21.56-48 48s21.56 48 48 48h14.17v-96zM.36 96.47h14.16c26.45 0 48-21.56 48-48s-21.55-48-48-48H.36v96zm789.18-66.35c.4 4.2.54 12.61.54 16.14v50.32h7.46V62.8c0-17.63 9.9-26.44 20.88-26.44 13.96 0 17.9 10.3 17.9 22.78v37.44h7.32V56.43c0-14.92-7.05-26.3-23.6-26.3-9.48 0-18.97 5.55-22.63 14.23h-.27c0-3.39-.28-10.7-.55-14.24h-7.05zM769.7 63.28c0 15.02-9.88 26.65-25.7 26.65-15.7 0-25.57-11.63-25.57-26.65 0-15.01 9.88-26.78 25.57-26.78 15.82 0 25.7 11.77 25.7 26.78zm7.57 0c0-19.2-13.66-33.14-33.27-33.14-19.48 0-33.14 13.94-33.14 33.14 0 19.07 13.66 33.28 33.14 33.28 19.61 0 33.27-14.2 33.27-33.28zm-78.51-33.16h-7.85v66.44h7.85V30.12zm1.57-24.1a5.58 5.58 0 00-5.56-5.55 5.55 5.55 0 000 11.12c2.85 0 5.56-2.3 5.56-5.56zm-24.88 34.81c-4.06-6.91-12.04-10.7-21.24-10.7-10.96 0-21.51 5.42-21.51 17.62 0 23.46 36.66 13.01 36.66 30.24 0 8.8-7.71 12.33-15.56 12.33a21.65 21.65 0 01-18.13-9.76l-5.81 4.2c5.4 8 14.47 11.8 23.94 11.8 11.5 0 22.87-5.7 22.87-19.12 0-10.3-7.71-15.18-21.1-18.17-10.43-2.3-15.84-4.74-15.84-12.06 0-7.87 7.58-10.98 14.21-10.98 7.03 0 12.72 3.38 15.83 8.67l5.68-4.07zM617.6 30.1h-7.46v66.48h7.46V30.1zm1.76-23.96A5.58 5.58 0 00613.8.6a5.56 5.56 0 000 11.11c2.85 0 5.56-2.3 5.56-5.56zm-61.1 80.8h.27L590.92.47h8.27l-36.6 96.1h-8.68L517.44.48h8.4l32.4 86.47z",fill:"currentColor",fillRule:"nonzero"})]}))},[gc.PIP]:e=>{let{direction:t="enter"}=e,n=m(e,["direction"]);return ke("svg",h(h({className:Dn.PIP_ICON,viewBox:"0 0 16 12"},n),{},{children:[ke("polygon",{className:Dn.FILL,points:"6 8 1 8 1 1 14 1 14 6 15 6 15 0 0 0 0 9 6 9 6 8"}),ke("rect",{className:Dn.FILL,x:"7",y:"7",width:"9",height:"5"}),ke("polyline",{className:Dn.FILL,transform:"enter"===t?"translate(4, 4) rotate(180) translate(-4, -4)":"",points:"5.33 2 5.33 3 3.67 3 5.67 5 5 5.67 3 3.67 3 5.33 2 5.33 2 2"})]}))},[gc.ENTER_FULLSCREEN]:()=>ke("svg",{className:Mn.ENTER_FULLSCREEN_ICON,width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","data-enter-fullscreen":!0,children:ke("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 5L17.5858 5L14.2929 8.29292C13.9024 8.68345 13.9024 9.31661 14.2929 9.70714C14.6834 10.0977 15.3166 10.0977 15.7071 9.70714L19 6.41426V8C19 8.55228 19.4477 9 20 9C20.5523 9 21 8.55228 21 8V4C21 3.73478 20.8946 3.48043 20.7071 3.29289C20.5196 3.10536 20.2652 3 20 3H16C15.4477 3 15 3.44772 15 4C15 4.55228 15.4477 5 16 5ZM5 8.00002V6.4142L8.29292 9.70712C8.68345 10.0976 9.31661 10.0976 9.70714 9.70712C10.0977 9.3166 10.0977 8.68343 9.70714 8.29291L6.41424 5.00001L8 5.00002C8.55228 5.00002 9 4.5523 9 4.00002C9 3.44773 8.55228 3.00002 8 3.00002H4C3.73478 3.00002 3.48043 3.10537 3.29289 3.29291C3.10536 3.48044 3 3.7348 3 4.00002V8.00002C3 8.5523 3.44772 9.00001 4 9.00001C4.55228 9.00001 5 8.5523 5 8.00002ZM8.00002 19H6.4142L9.70712 15.7071C10.0976 15.3166 10.0976 14.6834 9.70712 14.2929C9.3166 13.9024 8.68343 13.9024 8.29291 14.2929L5.00001 17.5858V16C5.00001 15.4477 4.5523 15 4.00001 15C3.44773 15 3.00002 15.4477 3.00002 16L3.00002 20C3.00002 20.2652 3.10537 20.5196 3.29291 20.7071C3.48044 20.8947 3.7348 21 4.00002 21H8.00002C8.5523 21 9.00001 20.5523 9.00001 20C9.00001 19.4477 8.5523 19 8.00002 19ZM19 17.5858V16C19 15.4477 19.4477 15 20 15C20.5523 15 21 15.4477 21 16V20C21 20.2652 20.8946 20.5196 20.7071 20.7071C20.5196 20.8947 20.2652 21 20 21H16C15.4477 21 15 20.5523 15 20C15 19.4477 15.4477 19 16 19H17.5858L14.2929 15.7071C13.9023 15.3166 13.9023 14.6834 14.2929 14.2929C14.6834 13.9024 15.3166 13.9024 15.7071 14.2929L19 17.5858Z"})}),[gc.EXIT_FULLSCREEN]:()=>ke("svg",{className:Mn.EXIT_FULLSCREEN_ICON,width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","data-exit-fullscreen":!0,children:[ke("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.41425 7.00003L8.41425 4.41425L10.4142 4.41425L10.4142 9.41425C10.4142 9.67946 10.3089 9.93382 10.1214 10.1214C9.93382 10.3089 9.67946 10.4142 9.41425 10.4142L4.41425 10.4142L4.41425 8.41425L7.00003 8.41425L3 4.41422L4.41422 3L8.41425 7.00003Z"}),ke("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.0097 8.41425L21 4.42398L19.5858 3.00977L15.5858 7.0098L15.5858 4.42401L13.5858 4.42401L13.5858 9.41424C13.5858 9.67946 13.6911 9.93382 13.8787 10.1214C14.0662 10.3089 14.3205 10.4142 14.5858 10.4142L19.5858 10.4142L19.5858 8.41425L17.0097 8.41425Z"}),ke("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.41419 17L4.41421 21L3 19.5858L6.99997 15.5858L4.41419 15.5858L4.41419 13.5858L9.41419 13.5858C9.96647 13.5858 10.4142 14.0335 10.4142 14.5858L10.4142 19.5858L8.41419 19.5858L8.41419 17Z"}),ke("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.5858 16.9986L19.5855 21L21 19.5861L17.0015 15.5858L19.5813 15.5858L19.5813 13.5858L14.5858 13.5858C14.3206 13.5858 14.0662 13.6912 13.8787 13.8787C13.6912 14.0662 13.5858 14.3206 13.5858 14.5858L13.5858 19.5858L15.5858 19.5858L15.5858 16.9986Z"})]}),[gc.GEAR]:e=>{let t=Object.assign({},e);return ke("svg",h(h({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:ke("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.16668 1.66699C8.2462 1.66699 7.50001 2.41318 7.50001 3.33366V4.72835C7.21484 4.86382 6.94241 5.02175 6.68499 5.19984L5.46953 4.4981C4.68103 4.04285 3.66009 4.31415 3.20034 5.11047L2.36526 6.55686C1.90707 7.35046 2.17605 8.3701 2.96953 8.82822L4.18535 9.53017C4.17298 9.68526 4.16668 9.84206 4.16668 10.0003C4.16668 10.1586 4.17298 10.3154 4.18535 10.4705L2.96953 11.1724C2.17605 11.6306 1.90707 12.6502 2.36526 13.4438L3.20034 14.8902C3.66009 15.6865 4.68103 15.9578 5.46953 15.5026L6.685 14.8008C6.94241 14.9789 7.21484 15.1368 7.50001 15.2723V16.667C7.50001 17.5875 8.2462 18.3337 9.16668 18.3337H10.8333C11.7538 18.3337 12.5 17.5875 12.5 16.667V15.2723C12.7851 15.1369 13.0574 14.979 13.3147 14.801L14.5298 15.5026C15.3183 15.9578 16.3393 15.6865 16.799 14.8902L17.6341 13.4438C18.0923 12.6502 17.8233 11.6306 17.0298 11.1724L15.8146 10.4708C15.827 10.3156 15.8333 10.1587 15.8333 10.0003C15.8333 9.84193 15.827 9.68501 15.8146 9.52981L17.0298 8.82822C17.8233 8.3701 18.0923 7.35046 17.6341 6.55686L16.799 5.11047C16.3393 4.31415 15.3183 4.04285 14.5298 4.4981L13.3147 5.19963C13.0574 5.02162 12.7851 4.86377 12.5 4.72835V3.33366C12.5 2.41318 11.7538 1.66699 10.8333 1.66699H9.16668ZM12.5 10.0003C12.5 11.381 11.3807 12.5003 10 12.5003C8.6193 12.5003 7.50001 11.381 7.50001 10.0003C7.50001 8.61961 8.6193 7.50033 10 7.50033C11.3807 7.50033 12.5 8.61961 12.5 10.0003Z"})}))},[gc.VIMEO]:e=>{let t=Object.assign({},e);return ke("svg",h(h({width:"54",height:"18",viewBox:"0 0 54 18",role:"img",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:ke("path",{fill:"#fff",fillRule:"evenodd",clipRule:"evenodd",d:"M17.1192 1.32529C17.1011 1.76753 16.8758 2.19197 16.4427 2.59836C15.9559 3.05781 15.3789 3.28759 14.7119 3.28759C13.6845 3.28759 13.1881 2.84607 13.2245 1.96218C13.2418 1.50286 13.5168 1.06061 14.0487 0.636176C14.5808 0.21258 15.1711 0 15.8207 0C16.1992 0 16.5146 0.146412 16.7675 0.437671C17.0197 0.729653 17.1367 1.02548 17.1192 1.32529ZM17.7011 13.0761C17.6 13.1708 17.4962 13.2641 17.3896 13.3562C16.181 14.3855 14.9735 14.9003 13.766 14.9003C13.2063 14.9003 12.778 14.7228 12.4809 14.3676C12.1837 14.0126 12.0438 13.5517 12.062 12.9831C12.0794 12.3977 12.2642 11.4922 12.6159 10.2672C12.9677 9.04241 13.1439 8.3853 13.1439 8.29652C13.1439 7.83551 12.981 7.60428 12.6571 7.60428C12.555 7.60428 12.2769 7.77023 11.8227 8.10073C11.4798 9.10988 10.7329 10.3442 9.58186 11.8036C7.94436 13.9012 6.5589 14.9501 5.42559 14.9501C4.72371 14.9501 4.1294 14.3115 3.64413 13.0338L2.67201 9.5206C2.31167 8.24356 1.92519 7.60426 1.51184 7.60426C1.42173 7.60426 1.10644 7.79121 0.566591 8.16344L0 7.44389C0.59431 6.92922 1.18068 6.41456 1.75765 5.89905C2.55027 5.22401 3.14543 4.86899 3.54217 4.83314C4.47949 4.74436 5.05646 5.37584 5.27308 6.72759C5.50692 8.18593 5.66896 9.09304 5.75981 9.44818C6.03016 10.6581 6.32726 11.2625 6.65219 11.2625C6.90423 11.2625 7.28277 10.87 7.78781 10.0852C8.29201 9.3002 8.56236 8.70301 8.59875 8.29265C8.67067 7.61521 8.40032 7.2757 7.78781 7.2757C7.49939 7.2757 7.20217 7.34115 6.89641 7.47036C7.48828 5.55955 8.61926 4.63151 10.2884 4.68432C11.403 4.71661 11.9869 5.3614 12.04 6.6187C12.3087 6.37895 12.5773 6.1391 12.846 5.89907C13.6213 5.22403 14.1982 4.86889 14.5776 4.83316C15.1719 4.78023 15.609 4.95226 15.8887 5.35096C16.1677 5.74953 16.2713 6.2666 16.2001 6.90362C15.9654 7.9836 15.7124 9.35472 15.4422 11.0178C15.424 11.7794 15.7037 12.1594 16.2807 12.1594C16.5328 12.1594 16.9833 11.897 17.6329 11.3707L17.6568 11.3514C17.6982 10.9804 17.7648 10.5395 17.8569 10.029C18.0055 9.20512 18.0884 8.56353 18.1059 8.10264C18.1414 7.78419 18.06 7.62455 17.8624 7.62455C17.7541 7.62455 17.4475 7.8044 16.9425 8.16339L16.2936 7.44397C16.3838 7.37383 16.9512 6.85832 17.9976 5.899C18.7546 5.20689 19.2684 4.85174 19.5387 4.83382C20.0074 4.79809 20.3859 4.98877 20.6745 5.40623C20.9629 5.82357 21.1075 6.3078 21.1075 6.85832C21.1075 7.03589 21.0894 7.2048 21.0539 7.36457C21.3241 6.95649 21.6394 6.60063 22.0006 6.29854C22.8296 5.58837 23.7584 5.18812 24.7858 5.09933C25.6694 5.02847 26.3001 5.23251 26.6795 5.71217C26.9852 6.10304 27.1291 6.66294 27.1117 7.39091C27.2382 7.28504 27.3733 7.16907 27.518 7.04443C27.9322 6.56489 28.3376 6.18329 28.7343 5.899C29.4013 5.41935 30.096 5.15311 30.8168 5.09933C31.6822 5.02847 32.3041 5.23179 32.6828 5.70988C33.0067 6.09919 33.1514 6.65669 33.1159 7.38165C33.0976 7.87755 32.976 8.59866 32.7508 9.54546C32.5246 10.4923 32.4124 11.0358 32.4124 11.1775C32.3943 11.5498 32.4307 11.8059 32.5207 11.9476C32.6108 12.0893 32.8266 12.1593 33.1696 12.1593C33.3237 12.1593 33.5517 12.0614 33.8539 11.8652C33.8254 11.6415 33.8136 11.4089 33.8184 11.1674C33.8359 9.72924 34.4855 8.36197 35.7659 7.06471C37.1718 5.64451 38.8307 4.9335 40.7418 4.9335C42.5089 4.9335 43.4462 5.64282 43.5545 7.06002C43.6264 7.96328 43.1214 8.89372 42.0402 9.85075C40.8856 10.8964 39.4338 11.5607 37.6855 11.844C38.0096 12.2871 38.4964 12.5083 39.146 12.5083C40.4438 12.5083 41.8593 12.1836 43.3925 11.5326C43.4607 11.5043 43.528 11.4758 43.5944 11.4474C43.5823 11.339 43.5733 11.2286 43.5673 11.1161C43.4765 9.5907 44.0351 8.18902 45.2443 6.9121C46.5421 5.49333 48.1733 4.78413 50.1388 4.78413C51.4003 4.78413 52.3559 5.20147 53.0054 6.03459C53.6187 6.79769 53.8977 7.78179 53.8439 8.98725C53.7714 10.6192 53.1587 12.0294 52.0049 13.2175C50.851 14.4058 49.4173 15 47.7047 15C46.2805 15 45.1985 14.5475 44.4596 13.6427C44.2931 13.4353 44.1496 13.2118 44.0292 12.9724C43.8357 13.0907 43.6324 13.209 43.4193 13.3273C41.5083 14.4097 39.5697 14.9501 37.605 14.9501C36.1444 14.9501 35.098 14.4704 34.4673 13.512C34.4211 13.4446 34.3774 13.3759 34.3361 13.3059L34.2784 13.3561C33.0701 14.3856 31.8623 14.9003 30.6549 14.9003C29.4819 14.9003 28.9146 14.2618 28.9507 12.9832C28.9682 12.4147 29.0813 11.7319 29.2882 10.9331C29.4953 10.1341 29.6084 9.51274 29.6266 9.06893C29.6448 8.39462 29.4368 8.05668 29.0021 8.05668C28.532 8.05668 27.9716 8.60792 27.3204 9.70896C26.6328 10.8637 26.2614 11.9826 26.2076 13.0657C26.1712 13.8304 26.2471 14.4168 26.4352 14.8247C25.177 14.8606 24.2956 14.6558 23.793 14.2119C23.3426 13.821 23.1363 13.1733 23.1727 12.2669C23.1901 11.6985 23.2786 11.13 23.4382 10.5617C23.597 9.99324 23.6856 9.48711 23.7038 9.04247C23.7402 8.38536 23.4959 8.05668 22.9727 8.05668C22.5206 8.05668 22.0329 8.56353 21.5098 9.57578C20.9866 10.588 20.6974 11.6455 20.6436 12.7466C20.6072 13.7416 20.672 14.4338 20.8372 14.8247C19.5995 14.8606 18.7207 14.6035 18.2006 14.0538C17.9631 13.8005 17.7966 13.4746 17.7011 13.0761ZM40.3632 7.9913C40.3807 7.51477 40.183 7.27573 39.7689 7.27573C39.2283 7.27573 38.6798 7.64254 38.1219 8.37592C37.5638 9.10942 37.2754 9.81177 37.2579 10.483C37.2477 10.483 37.2477 10.5982 37.2579 10.8279C38.1399 10.5101 38.9051 10.0243 39.5531 9.37024C40.0748 8.80505 40.345 8.34476 40.3632 7.9913ZM50.5847 7.56539C50.738 7.96564 50.8059 8.40644 50.7877 8.88682C50.7515 9.74099 50.4905 10.5593 50.0038 11.3426C49.4268 12.2864 48.7321 12.7574 47.9212 12.7574C47.56 12.7574 47.2802 12.562 47.0827 12.1703C46.9026 11.8324 46.8212 11.4408 46.8393 10.9953C46.8748 10.0882 47.1452 9.23414 47.6511 8.43291C48.2453 7.4541 49.0025 6.96434 49.9223 6.96434C50.2102 6.96434 50.4313 7.16513 50.5847 7.56539Z"})}))},[gc.VIMEO_SMALL]:e=>{let t=Object.assign({},e);return ke("svg",h(h({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:ke("path",{fill:"#fff",fillRule:"evenodd",clipRule:"evenodd",d:"M18.7781 6.00913C18.6943 7.81161 17.4171 10.2795 14.9465 13.4122C12.3922 16.6841 10.231 18.3203 8.46324 18.3203C7.36838 18.3203 6.44133 17.3242 5.68438 15.331C5.17905 13.5043 4.67352 11.6776 4.168 9.85093C3.60591 7.8589 3.00305 6.86167 2.35829 6.86167C2.21771 6.86167 1.7259 7.1533 0.88381 7.73392L0 6.61152C0.927048 5.80871 1.84171 5.00589 2.74171 4.20176C3.9781 3.14879 4.90648 2.59501 5.52533 2.53908C6.98743 2.40059 7.88743 3.38562 8.22533 5.49419C8.5901 7.76902 8.84286 9.18398 8.98457 9.73796C9.40629 11.6253 9.86971 12.5681 10.3766 12.5681C10.7697 12.5681 11.3602 11.9557 12.148 10.7316C12.9345 9.50713 13.3562 8.57558 13.413 7.93547C13.5251 6.87875 13.1034 6.34917 12.148 6.34917C11.6981 6.34917 11.2345 6.45126 10.7575 6.65281C11.6808 3.67218 13.445 2.22456 16.0486 2.30695C17.9792 2.36287 18.8891 3.59693 18.7781 6.00913Z"})}))},[gc.ENTER_PICTURE_IN_PICTURE]:e=>{let t=Object.assign({},e);return ke("svg",h(h({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{"data-enter-pip":!0,children:ke("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.33329 4.99992H16.6666V9.99992H18.3333V4.99992C18.3333 4.07944 17.5871 3.33325 16.6666 3.33325H3.33329C2.41282 3.33325 1.66663 4.07944 1.66663 4.99992V13.3333C1.66663 14.2537 2.41282 14.9999 3.33329 14.9999H8.33329V13.3333H3.33329V4.99992ZM9.99996 12.6666C9.99996 12.1143 10.4477 11.6666 11 11.6666H17.3333C17.8856 11.6666 18.3333 12.1143 18.3333 12.6666V17.3333C18.3333 17.8855 17.8856 18.3333 17.3333 18.3333H11C10.4477 18.3333 9.99996 17.8855 9.99996 17.3333V12.6666ZM7.91663 7.60408V8.59492L6.17079 6.84909C6.05829 6.73659 5.90163 6.66659 5.72913 6.66659C5.38413 6.66659 5.10413 6.94575 5.10413 7.29159C5.10413 7.46409 5.17413 7.61992 5.28746 7.73325L7.03246 9.47909H6.04163C5.69663 9.47909 5.41663 9.75825 5.41663 10.1041C5.41663 10.4491 5.69663 10.7291 6.04163 10.7291H8.54163C8.88663 10.7291 9.16663 10.4491 9.16663 10.1041V7.60408C9.16663 7.25825 8.88663 6.97909 8.54163 6.97909C8.19663 6.97909 7.91663 7.25825 7.91663 7.60408Z",fill:"white"})}))},[gc.EXIT_PICTURE_IN_PICTURE]:e=>{let t=Object.assign({},e);return ke("svg",h(h({width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","data-exit-pip":!0},t),{},{children:ke("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 6H20V12H22V6C22 4.89543 21.1046 4 20 4H4C2.89543 4 2 4.89543 2 6V16C2 17.1046 2.89543 18 4 18H10V16H4V6ZM12 15C12 14.4477 12.4477 14 13 14H21C21.5523 14 22 14.4477 22 15V21C22 21.5523 21.5523 22 21 22H13C12.4477 22 12 21.5523 12 21V15ZM7.625 11.75V10.561L9.72 12.656C9.855 12.791 10.043 12.875 10.25 12.875C10.664 12.875 11 12.54 11 12.125C11 11.918 10.916 11.731 10.78 11.595L8.686 9.5H9.875C10.289 9.5 10.625 9.165 10.625 8.75C10.625 8.336 10.289 8 9.875 8L6.875 8C6.461 8 6.125 8.336 6.125 8.75V11.75C6.125 12.165 6.461 12.5 6.875 12.5C7.289 12.5 7.625 12.165 7.625 11.75Z"})}))},[gc.PAUSE]:e=>{let t=Object.assign({},e);return ke("svg",h(h({width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","data-pause-icon":!0},t),{},{children:ke("path",{fillRule:"evenodd",clipRule:"evenodd",className:Dn.FILL,d:"M8 4C6.89543 4 6 4.89543 6 6V18C6 19.1046 6.89543 20 8 20C9.10457 20 10 19.1046 10 18V6C10 4.89543 9.10457 4 8 4ZM16 4C14.8954 4 14 4.89543 14 6V18C14 19.1046 14.8954 20 16 20C17.1046 20 18 19.1046 18 18V6C18 4.89543 17.1046 4 16 4Z"})}))},[gc.PLAY]:e=>{let t=Object.assign({},e);return ke("svg",h(h({width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","data-play-icon":!0},t),{},{children:ke("path",{d:"M19 12C19 12.3557 18.8111 12.6846 18.5039 12.8638L6.50387 19.8638C6.19458 20.0442 5.81243 20.0455 5.50194 19.8671C5.19145 19.6888 5 19.3581 5 19L5 5C5 4.64193 5.19145 4.3112 5.50194 4.13286C5.81243 3.95452 6.19458 3.9558 6.50387 4.13622L18.5039 11.1362C18.8111 11.3154 19 11.6443 19 12Z",className:Dn.FILL})}))},[gc.REPLAY]:e=>{let t=Object.assign({},e);return ke("svg",h(h({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:ke("path",{className:Dn.FILL,d:"M0 1V5C0 5.6 0.4 6 1 6H5C5.6 6 6 5.6 6 5C6 4.4 5.6 4 5 4H3.5C4.6 2.8 6.2 2 8 2C11.3 2 14 4.7 14 8C14 11.3 11.3 14 8 14C5.7 14 3.60001 12.7 2.60001 10.6C2.40001 10.1 1.79999 9.89998 1.29999 10.1C0.799988 10.3 0.599988 10.9 0.799988 11.4C2.09999 14.2 5 16 8 16C12.4 16 16 12.4 16 8C16 3.6 12.4 0 8 0C5.7 0 3.5 1.00001 2 2.70001V1C2 0.4 1.6 0 1 0C0.4 0 0 0.4 0 1Z"})}))},[gc.CHAPTERS]:e=>{let t=Object.assign({},e);return ke("svg",h(h({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:ke("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.6665 4.1665V4.99984V5.83317H2.49984H3.33317V4.99984V4.1665H2.49984H1.6665ZM5.83317 4.99984C5.83317 4.5396 6.20627 4.1665 6.6665 4.1665H17.4998C17.9601 4.1665 18.3332 4.5396 18.3332 4.99984C18.3332 5.46007 17.9601 5.83317 17.4998 5.83317H6.6665C6.20627 5.83317 5.83317 5.46007 5.83317 4.99984ZM5.83317 9.99984C5.83317 9.5396 6.20627 9.1665 6.6665 9.1665H17.4998C17.9601 9.1665 18.3332 9.5396 18.3332 9.99984C18.3332 10.4601 17.9601 10.8332 17.4998 10.8332H6.6665C6.20627 10.8332 5.83317 10.4601 5.83317 9.99984ZM6.6665 14.1665C6.20627 14.1665 5.83317 14.5396 5.83317 14.9998C5.83317 15.4601 6.20627 15.8332 6.6665 15.8332H17.4998C17.9601 15.8332 18.3332 15.4601 18.3332 14.9998C18.3332 14.5396 17.9601 14.1665 17.4998 14.1665H6.6665ZM1.6665 9.99984V9.1665H2.49984H3.33317V9.99984V10.8332H2.49984H1.6665V9.99984ZM3.33317 14.9998V14.1665H2.49984H1.6665V14.9998V15.8332H2.49984H3.33317V14.9998Z"})}))},[gc.POINT]:e=>{let t=Object.assign({},e);return ke("svg",h(h({width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:ke("circle",{className:Dn.FILL,cx:"4",cy:"4",r:"4"})}))},[gc.CC]:e=>{let t=Object.assign({},e);return ke("svg",h(h({viewBox:"0 0 24 24","data-cc-icon":!0},t),{},{children:ke("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 6H4V18H20V6ZM4 4C2.89543 4 2 4.89543 2 6V18C2 19.1046 2.89543 20 4 20H20C21.1046 20 22 19.1046 22 18V6C22 4.89543 21.1046 4 20 4H4ZM11.486 12.8238C11.3743 13.5215 11.0859 14.0974 10.6307 14.5377C10.1676 14.9833 9.56909 15.2094 8.85284 15.2094C7.97089 15.2094 7.26496 14.9058 6.7557 14.3063C6.25372 13.7133 6 12.8972 6 11.8775C6 10.7761 6.28832 9.91206 6.85646 9.30664C7.36026 8.77164 8.00852 8.5 8.78364 8.5C9.81431 8.5 10.5828 8.86515 11.0677 9.58479C11.3306 9.98486 11.475 10.3944 11.4963 10.801L11.5054 10.9803H11.3215H10.1026H9.96788L9.93328 10.8536C9.86226 10.5844 9.77364 10.3826 9.66802 10.2535C9.48229 10.0281 9.21096 9.91857 8.83402 9.91857C8.46012 9.91857 8.17059 10.0766 7.95146 10.4027C7.7202 10.7465 7.60305 11.2484 7.60305 11.897C7.60305 12.5403 7.72445 13.0226 7.9636 13.3304C8.19547 13.6292 8.48015 13.7748 8.83342 13.7748C9.197 13.7748 9.46468 13.6541 9.65285 13.4038C9.75968 13.2659 9.85073 13.0475 9.92478 12.7569L9.95634 12.6285H10.0941H11.313H11.5169L11.486 12.8238ZM17.1137 14.5377C17.569 14.0974 17.8567 13.5215 17.9684 12.8238L17.9999 12.6285H17.796H16.5766H16.44L16.4078 12.7569C16.3344 13.0475 16.2427 13.2659 16.1353 13.4038C15.9477 13.6541 15.6794 13.7748 15.3158 13.7748C14.9632 13.7748 14.6791 13.6292 14.4472 13.3304C14.2081 13.0226 14.0855 12.5403 14.0855 11.897C14.0855 11.2484 14.2032 10.7465 14.4351 10.4027C14.653 10.0766 14.9425 9.91857 15.3171 9.91857C15.6934 9.91857 15.9659 10.0281 16.1504 10.2535C16.2561 10.3826 16.3459 10.5844 16.4169 10.8536L16.4503 10.9803H16.5863H17.8045H17.9878L17.9799 10.801C17.9574 10.3944 17.8136 9.98486 17.5502 9.58479C17.0652 8.86515 16.2979 8.5 15.2673 8.5C14.4909 8.5 13.8433 8.77164 13.3395 9.30664C12.7707 9.91206 12.483 10.7761 12.483 11.8775C12.483 12.8972 12.7368 13.7133 13.2381 14.3063C13.748 14.9058 14.4533 15.2094 15.3359 15.2094C16.0521 15.2094 16.65 14.9833 17.1137 14.5377Z"})}))},[gc.CC_FILLED]:e=>{let t=Object.assign({},e);return ke("svg",h(h({viewBox:"0 0 24 24","data-cc-filled-icon":!0},t),{},{children:ke("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6C2 4.89543 2.89543 4 4 4H20C21.1046 4 22 4.89543 22 6V18C22 19.1046 21.1046 20 20 20H4C2.89543 20 2 19.1046 2 18V6ZM11.486 12.8238C11.3743 13.5215 11.0859 14.0974 10.6307 14.5377C10.1676 14.9833 9.56909 15.2094 8.85284 15.2094C7.97089 15.2094 7.26496 14.9058 6.7557 14.3063C6.25372 13.7133 6 12.8972 6 11.8775C6 10.7761 6.28832 9.91206 6.85646 9.30664C7.36026 8.77164 8.00852 8.5 8.78364 8.5C9.81431 8.5 10.5828 8.86515 11.0677 9.58479C11.3306 9.98486 11.475 10.3944 11.4963 10.801L11.5054 10.9803H11.3215H10.1026H9.96788L9.93328 10.8536C9.86226 10.5844 9.77364 10.3826 9.66802 10.2535C9.48229 10.0281 9.21096 9.91857 8.83402 9.91857C8.46012 9.91857 8.17059 10.0766 7.95146 10.4027C7.7202 10.7465 7.60305 11.2484 7.60305 11.897C7.60305 12.5403 7.72445 13.0226 7.9636 13.3304C8.19547 13.6292 8.48015 13.7748 8.83342 13.7748C9.197 13.7748 9.46468 13.6541 9.65285 13.4038C9.75968 13.2659 9.85073 13.0475 9.92478 12.7569L9.95634 12.6285H10.0941H11.313H11.5169L11.486 12.8238ZM17.9684 12.8238C17.8567 13.5215 17.569 14.0974 17.1137 14.5377C16.65 14.9833 16.0521 15.2094 15.3359 15.2094C14.4533 15.2094 13.748 14.9058 13.2381 14.3063C12.7368 13.7133 12.483 12.8972 12.483 11.8775C12.483 10.7761 12.7707 9.91206 13.3395 9.30664C13.8433 8.77164 14.4909 8.5 15.2673 8.5C16.2979 8.5 17.0652 8.86515 17.5502 9.58479C17.8136 9.98486 17.9574 10.3944 17.9799 10.801L17.9878 10.9803H17.8045H16.5863H16.4503L16.4169 10.8536C16.3459 10.5844 16.2561 10.3826 16.1504 10.2535C15.9659 10.0281 15.6934 9.91857 15.3171 9.91857C14.9425 9.91857 14.653 10.0766 14.4351 10.4027C14.2032 10.7465 14.0855 11.2484 14.0855 11.897C14.0855 12.5403 14.2081 13.0226 14.4472 13.3304C14.6791 13.6292 14.9632 13.7748 15.3158 13.7748C15.6794 13.7748 15.9477 13.6541 16.1353 13.4038C16.2427 13.2659 16.3344 13.0475 16.4078 12.7569L16.44 12.6285H16.5766H17.796H17.9999L17.9684 12.8238Z"})}))},[gc.CHECKMARK]:e=>{let t=Object.assign({},e);return ke("svg",h(h({width:"12",height:"8",viewBox:"0 0 12 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:ke("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.66668 6.39041L10.1953 0.861816L11.1381 1.80463L5.13808 7.80463C4.87773 8.06498 4.45562 8.06498 4.19527 7.80463L0.861938 4.47129L1.80475 3.52848L4.66668 6.39041Z",fill:"white"})}))},[gc.STEREOSCOPIC]:()=>ke("svg",{viewBox:"0 0 64 64",children:ke("path",{d:"M55.3066 16H8.53325C6.79992 16 5.33325 17.52 5.33325 19.3867V47.28C5.33325 49.1467 6.79992 50.6667 8.61325 50.6667H21.3333C22.7733 50.6667 23.9999 49.8133 24.4266 48.56L28.1333 39.3067C28.7733 37.76 30.2666 36.6667 31.9999 36.6667C33.7333 36.6667 35.2266 37.76 35.8666 39.3067L39.5733 48.56C40.0799 49.8133 41.2266 50.6667 42.5333 50.6667H55.3066C57.1999 50.6667 58.6666 49.1467 58.6666 47.28V19.3867C58.6666 17.52 57.1999 16 55.3066 16ZM19.2533 38.88C15.9999 38.88 13.3333 36.1333 13.3333 32.7733C13.3333 29.3333 15.9999 26.6667 19.2533 26.6667C22.5066 26.6667 25.1466 29.3333 25.1466 32.7733C25.1466 36.1333 22.5066 38.88 19.2533 38.88ZM44.7466 38.88C41.4933 38.88 38.8533 36.1333 38.8533 32.7733C38.8533 29.4133 41.4933 26.6667 44.7466 26.6667C47.9999 26.6667 50.6666 29.4133 50.6666 32.7733C50.6666 36.1333 47.9999 38.88 44.7466 38.88Z"})}),[gc.PERSON_FILLED]:e=>{let t=Object.assign({},e);return ke("svg",h(h({width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:ke("path",{fill:"white",fillRule:"evenodd",clipRule:"evenodd",d:"M7.99999 1.33398C6.15904 1.33398 4.66666 2.82637 4.66666 4.66732C4.66666 6.50827 6.15904 8.00065 7.99999 8.00065C9.84094 8.00065 11.3333 6.50827 11.3333 4.66732C11.3333 2.82637 9.84094 1.33398 7.99999 1.33398ZM2.66666 12.0007C2.66666 10.1597 4.15904 8.66732 5.99999 8.66732H9.99999C11.8409 8.66732 13.3333 10.1597 13.3333 12.0007V14.6673H2.66666V12.0007Z"})}))},[gc.CHEVRON_DOWN]:e=>{let t=Object.assign({},e);return ke("svg",h(h({width:"24",height:"24",viewBox:"0 0 24 24"},t),{},{children:ke("path",{d:"M12 15.5a1 1 0 0 1-.67-.26l-5-4.5 1.34-1.48L12 13.15l4.33-3.9 1.34 1.49-5 4.5a1 1 0 0 1-.67.26z",fill:"#1a2e3b"})}))},[gc.CHEVRON_RIGHT]:e=>{let t=Object.assign({},e);return ke("svg",h(h({viewBox:"0 0 24 24"},t),{},{children:ke("path",{d:"M9.71 17.71l-1.42-1.42 4.3-4.29-4.3-4.29 1.42-1.42 5 5a1 1 0 0 1 0 1.41z",fill:"#1a2e3b"})}))},[gc.CLOCK]:e=>{let t=Object.assign({},e);return ke("svg",h(h({viewBox:"0 0 20 20"},t),{},{children:ke("path",{d:"M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zm0-1.5a8.5 8.5 0 1 0 0-17 8.5 8.5 0 0 0 0 17zM10.75 5v4.69l3.075 3.075a.75.75 0 1 1-1.06 1.06L9.25 10.311V5a.75.75 0 0 1 1.5 0z"})}))},[gc.CLOCK_FILLED]:e=>{let t=Object.assign({},e);return ke("svg",h(h({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:ke("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 10C20 15.5228 15.5228 20 10 20C4.47715 20 0 15.5228 0 10C0 4.47715 4.47715 0 10 0C15.5228 0 20 4.47715 20 10ZM10 4C10.5523 4 11 4.44772 11 5V9.49995L14.6001 12.2C15.0419 12.5314 15.1314 13.1582 14.8001 13.6C14.4687 14.0418 13.8419 14.1314 13.4001 13.8L9.41174 10.8088C9.38636 10.7903 9.36189 10.7706 9.3384 10.7499C9.24863 10.6708 9.17612 10.5786 9.12159 10.4783C9.04406 10.3362 9 10.1733 9 10V9.99923V5C9 4.44772 9.44772 4 10 4Z"})}))},[gc.COLLECTIONS]:e=>{let t=Object.assign({},e);return ke("svg",h(h({viewBox:"0 0 20 20"},t),{},{children:ke("path",{d:"M20 10a1 1 0 0 0-.52-.88L17.44 8l2-1.13A1 1 0 0 0 20 6a1 1 0 0 0-.52-.87l-8-4.45a3 3 0 0 0-2.9 0l-8 4.45A1 1 0 0 0 0 6a1 1 0 0 0 .51.88L2.56 8l-2 1.13a1 1 0 0 0 0 1.75l2 1.13-2 1.12a1 1 0 0 0 0 1.75l8 4.46a3 3 0 0 0 2.92 0l8-4.46a1 1 0 0 0 0-1.75l-2-1.12 2-1.13A1 1 0 0 0 20 10zM9.52 2.41a1 1 0 0 1 1 0L16.94 6l-6.45 3.57a1 1 0 0 1-1 0L3.06 6zm-1 8.91a3 3 0 0 0 2.92 0l3.92-2.18 1.56.86-6.45 3.59a1.06 1.06 0 0 1-1 0L3.06 10l1.56-.86zM16.94 14l-6.45 3.59a1.06 1.06 0 0 1-1 0L3.06 14l1.54-.86 3.94 2.19a3 3 0 0 0 2.92 0l3.94-2.18z",fill:"#1a2e3b"})}))},[gc.DISMISS_X]:e=>{let t=Object.assign({},e);return ke("svg",h(h({viewBox:"0 0 20 20"},t),{},{children:ke("path",{d:"M11.06 10l4.597-4.596a.749.749 0 1 0-1.061-1.06L10 8.938 5.404 4.343a.749.749 0 1 0-1.06 1.061L8.938 10l-4.596 4.596a.749.749 0 1 0 1.061 1.06L10 11.062l4.596 4.596a.749.749 0 1 0 1.06-1.061L11.062 10z",fill:"#1A2E3B",fillRule:"evenodd"})}))},[gc.HEART]:e=>{let t=Object.assign({},e);return ke("svg",h(h({viewBox:"0 0 20 20"},t),{},{children:ke("path",{d:"M10 18a1 1 0 0 1-.81-.42 15.8 15.8 0 0 0-4.35-3.71C2.46 12.3 0 10.68 0 7.5a5.38 5.38 0 0 1 1.61-3.92A6 6 0 0 1 6 2a5.54 5.54 0 0 1 4.05 1.88A5.74 5.74 0 0 1 14 2c2.9 0 6 2.21 6 5.5s-2.46 4.8-4.84 6.37a15.8 15.8 0 0 0-4.35 3.71A1 1 0 0 1 10 18zM5.78 4A4 4 0 0 0 3 5a3.37 3.37 0 0 0-1 2.5c0 2 1.5 3.09 3.94 4.7A20.94 20.94 0 0 1 10 15.42a20.94 20.94 0 0 1 4.06-3.22C16.5 10.59 18 9.5 18 7.5 18 5.22 15.68 4 14 4c-1.44 0-2.78 1.49-3.17 2.06a1 1 0 0 1-.92.44 1 1 0 0 1-.82-.58A3.65 3.65 0 0 0 6 4z",fill:"#1a2e3b"})}))},[gc.HEART_FILLED]:e=>{let t=Object.assign({},e);return ke("svg",h(h({viewBox:"0 0 20 20"},t),{},{children:ke("path",{d:"M10 18a1.23 1.23 0 0 1-.8-.4 14.25 14.25 0 0 0-4.4-3.7C2.5 12.3 0 10.7 0 7.5a5.52 5.52 0 0 1 1.6-3.9A5.73 5.73 0 0 1 6 2a5.25 5.25 0 0 1 4 1.9A5.85 5.85 0 0 1 14 2c2.9 0 6 2.2 6 5.5s-2.5 4.8-4.8 6.4a15.51 15.51 0 0 0-4.4 3.7 1.23 1.23 0 0 1-.8.4z",fill:"#1a2e3b"})}))},[gc.HEART_WIDER_FILLED]:e=>{let t=Object.assign({},e);return ke("svg",h(h({viewBox:"0 0 110 81"},t),{},{children:ke("path",{d:"M82.496 1c-14.698 0-25.969 11.785-27.496 13.457-1.526-1.672-12.798-13.457-27.494-13.457-16.299 0-27.506 15.037-27.506 27.885 0 12.795 12.562 22.558 22.245 27.592 9.186 4.771 30.601 18.349 32.755 24.523 2.154-6.174 23.57-19.752 32.755-24.523 9.684-5.034 22.245-14.797 22.245-27.592 0-12.848-11.206-27.885-27.504-27.885z",fill:"#1a2e3b"})}))},[gc.HEART_WIDER_BROKEN_FILLED]:e=>{let t=Object.assign({},e);return ke("svg",h(h({viewBox:"0 0 110 81"},t),{},{children:ke("path",{d:"M82.496 1c-14.594 0-23.198 10.043-25.948 14.48l-6.77 10.727 13.661 8.543-13.661 12.535 5.695 15.348-9.686-15.348 11.389-11.975-11.969-7.402s4.22-14.27 4.621-15.521c.782-2.438.782-2.438-.813-3.289-5.516-2.944-12.608-8.098-21.509-8.098-16.299 0-27.506 15.037-27.506 27.885 0 12.795 12.562 22.558 22.245 27.592 9.186 4.771 30.601 18.349 32.755 24.523 2.154-6.174 23.57-19.752 32.753-24.523 9.684-5.034 22.247-14.797 22.247-27.592 0-12.848-11.208-27.885-27.504-27.885z",fill:"#1a2e3b"})}))},[gc.ONDEMAND]:e=>{let t=Object.assign({},e);return ke("svg",h(h({viewBox:"0 0 20 20"},t),{},{children:ke("path",{d:"M17.44 3.83L11.6.4a3.33 3.33 0 0 0-3.14 0l-5.9 3.43A3.41 3.41 0 0 0 1 6.57v6.86a3.41 3.41 0 0 0 1.56 2.74l5.87 3.43A3.08 3.08 0 0 0 10 20a3.18 3.18 0 0 0 1.57-.39l5.87-3.44A3.41 3.41 0 0 0 19 13.43V6.57a3.41 3.41 0 0 0-1.56-2.74zm-8-1.71A1.13 1.13 0 0 1 10 2a1.19 1.19 0 0 1 .56.12l5.84 3.43a1.47 1.47 0 0 1 .57 1v2.71a1 1 0 0 0-.38-.26L8.08 4.13 8 4.11V3zM8 6.4l6.3 3.6L8 13.66zm-5 7V6.57a1.43 1.43 0 0 1 .57-1L6 4.14v10.68l-.9.52-1.53-.9A1.43 1.43 0 0 1 3 13.43zm13.43 1l-5.87 3.44a1.37 1.37 0 0 1-1.12 0L7.08 16.5l9.22-5.32.7.4v1.85a1.43 1.43 0 0 1-.57 1.01z",fill:"#1a2e3b"})}))},[gc.PAPER_PLANE]:e=>{let t=Object.assign({},e);return ke("svg",h(h({viewBox:"0 0 18.1 20.95"},t),{},{children:ke("path",{d:"M18.11 0L-.01 12.07l8 4v4.88l2.26-3.75 6.65 3.32zm-3 17.37l-3.93-2 1.81-6.42-5 4.91-4-2.03 11.9-7.93z",fill:"#1a2e3b"})}))},[gc.POP_OUT]:e=>{let t=Object.assign({},e);return ke("svg",h(h({viewBox:"0 0 20 20"},t),{},{children:[ke("path",{d:"M16 17a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h5V2H3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3v-5h-2z",fill:"#1a2e3b"}),ke("path",{d:"M19 0h-7v2h4.59l-8 8L10 11.41l8-8V8h2V1a1 1 0 0 0-1-1z",fill:"#1a2e3b"})]}))},[gc.VOLUME_OFF_FILLED]:e=>{let t=Object.assign({},e);return ke("svg",h(h({viewBox:"0 0 24 24"},t),{},{children:ke("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 2.20001C15.1263 2.42863 16.1838 2.84654 17.1379 3.41908L15.5513 4.82943C15.0606 4.58595 14.5414 4.39136 14 4.25201V2.20001ZM21.1249 7.90287L19.5378 9.31361C19.8371 10.1532 20 11.0576 20 12C20 15.7277 17.4505 18.8599 14 19.7479V21.7999C18.5645 20.8734 22 16.8379 22 12C22 10.5401 21.6872 9.15325 21.1249 7.90287ZM12 4.00396V7.98614L3.17811 15.8278C2.48346 15.5143 2 14.8156 2 14.004V10.004C2 8.89939 2.89543 8.00396 4 8.00396H6.58579L10.2929 3.29685C10.9229 2.66689 12 3.11305 12 4.00396ZM12 10.662L5.99037 16.004L2.33565 19.2526C1.92286 19.6195 1.88568 20.2516 2.2526 20.6644C2.61952 21.0772 3.25159 21.1143 3.66437 20.7474L21.6644 4.74742C22.0772 4.3805 22.1143 3.74843 21.7474 3.33565C21.3805 2.92286 20.7484 2.88568 20.3356 3.2526L12 10.662ZM10.2929 20.7111L8.81985 18.8407L12 16.0139V20.004C12 20.8949 10.9229 21.341 10.2929 20.7111ZM14 15.4648C15.0633 14.8498 15.8172 13.7593 15.971 12.4841L17.8778 10.7892C17.9579 11.1803 18 11.5852 18 12C18 14.6124 16.3304 16.8349 14 17.6586V15.4648Z"})}))},[gc.VOLUME_ON_FILLED]:e=>{let t=Object.assign({},e);return ke("svg",h(h({viewBox:"0 0 24 24"},t),{},{children:ke("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 12C20 15.7277 17.4505 18.8599 14 19.7479V21.7999C18.5645 20.8734 22 16.8379 22 12C22 7.16206 18.5645 3.12655 14 2.20001V4.25201C17.4505 5.1401 20 8.2723 20 12ZM18 12C18 9.38754 16.3304 7.16506 14 6.34139V8.53511C15.1956 9.22672 16 10.5194 16 12C16 13.4805 15.1956 14.7732 14 15.4648V17.6586C16.3304 16.8349 18 14.6124 18 12ZM6.58579 8.00396H4C2.89543 8.00396 2 8.89939 2 10.004V14.004C2 15.1085 2.89543 16.004 4 16.004H6.58579L10.2929 20.7111C10.9229 21.341 12 20.8949 12 20.004V4.00396C12 3.11305 10.9229 2.66689 10.2929 3.29685L6.58579 8.00396Z"})}))},[gc.FAST_FORWARD]:e=>{let t=Object.assign({},e);return ke("svg",h(h({viewBox:"0 0 64 64"},t),{},{children:ke("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.4506 12.0055L32.4643 30.0179C33.6413 31.0772 33.6413 32.9228 32.4643 33.9821L12.4506 51.9945C10.7345 53.5389 8 52.3211 8 50.0124V13.9876C8 11.6789 10.7345 10.4611 12.4506 12.0055ZM39.1172 12.0055L59.131 30.0179C60.308 31.0772 60.308 32.9228 59.131 33.9821L39.1172 51.9945C37.4012 53.5389 34.6667 52.3211 34.6667 50.0124V13.9876C34.6667 11.6789 37.4012 10.4611 39.1172 12.0055Z"})}))},[gc.INFO_CIRCLE]:e=>{let t=Object.assign({},e);return ke("svg",h(h({width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:ke("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.6667 6C10.6667 8.57733 8.57733 10.6667 6 10.6667C3.42267 10.6667 1.33333 8.57733 1.33333 6C1.33333 3.42267 3.42267 1.33333 6 1.33333C8.57733 1.33333 10.6667 3.42267 10.6667 6ZM12 6C12 9.31371 9.31371 12 6 12C2.68629 12 0 9.31371 0 6C0 2.68629 2.68629 0 6 0C9.31371 0 12 2.68629 12 6ZM6 4.66667C6.36819 4.66667 6.66667 4.36819 6.66667 4C6.66667 3.63181 6.36819 3.33333 6 3.33333C5.63181 3.33333 5.33333 3.63181 5.33333 4C5.33333 4.36819 5.63181 4.66667 6 4.66667ZM6 5.33333C6.36819 5.33333 6.66667 5.54653 6.66667 5.80952V8.19048C6.66667 8.45347 6.36819 8.66667 6 8.66667C5.63181 8.66667 5.33333 8.45347 5.33333 8.19048V5.80952C5.33333 5.54653 5.63181 5.33333 6 5.33333Z",fill:"white"})}))},[gc.TRANSCRIPT_ON]:e=>{let t=Object.assign({},e);return ke("svg",h(h({viewBox:"0 0 24 24"},t),{},{children:ke("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.5 3C3.39543 3 2.5 3.89543 2.5 5V19C2.5 20.1046 3.39543 21 4.5 21H14.7547C14.0868 20.7085 13.461 20.2895 12.9142 19.7426C10.5711 17.3995 10.5711 13.6005 12.9142 11.2574C14.4297 9.74185 16.5543 9.20655 18.5 9.65145V5C18.5 3.89543 17.6046 3 16.5 3H4.5ZM18.5 11.7313C17.0907 11.2301 15.4565 11.5435 14.3284 12.6716C14.1332 12.8668 13.9623 13.0773 13.8159 13.2991C12.7907 14.8517 12.9616 16.9616 14.3284 18.3284C15.4515 19.4515 17.0762 19.7671 18.4812 19.2754C18.725 19.19 18.9622 19.0804 19.1891 18.9464L21.3995 21.1569C21.79 21.5474 22.4232 21.5474 22.8137 21.1569C23.2042 20.7663 23.2042 20.1332 22.8137 19.7426L20.6033 17.5322C21.5092 15.9983 21.3032 13.9895 19.9853 12.6716C19.5512 12.2375 19.0423 11.9241 18.5 11.7313ZM7.5 7C6.94772 7 6.5 7.44772 6.5 8C6.5 8.55228 6.94772 9 7.5 9H12.5C13.0523 9 13.5 8.55228 13.5 8C13.5 7.44772 13.0523 7 12.5 7H7.5ZM7.5 11C6.94772 11 6.5 11.4477 6.5 12C6.5 12.5523 6.94772 13 7.5 13H9.5C10.0523 13 10.5 12.5523 10.5 12C10.5 11.4477 10.0523 11 9.5 11H7.5ZM6.5 16C6.5 15.4477 6.94772 15 7.5 15H8.5C9.05228 15 9.5 15.4477 9.5 16C9.5 16.5523 9.05228 17 8.5 17H7.5C6.94772 17 6.5 16.5523 6.5 16Z"})}))},[gc.TRANSCRIPT_OFF]:e=>{let t=Object.assign({},e);return ke("svg",h(h({viewBox:"0 0 24 24"},t),{},{children:ke("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.5 5H16.5V9.53585C17.1669 9.46283 17.8436 9.50136 18.5 9.65145V5C18.5 3.89543 17.6046 3 16.5 3H4.5C3.39543 3 2.5 3.89543 2.5 5V19C2.5 20.1046 3.39543 21 4.5 21H14.7547C14.0868 20.7085 13.461 20.2895 12.9142 19.7426C12.6802 19.5086 12.4696 19.2601 12.2823 19H4.5V5ZM15.2182 19C16.2222 19.5567 17.415 19.6485 18.4812 19.2754C18.725 19.19 18.9622 19.0804 19.1891 18.9464L21.3995 21.1569C21.79 21.5474 22.4232 21.5474 22.8137 21.1569C23.2042 20.7663 23.2042 20.1332 22.8137 19.7426L20.6033 17.5322C21.5092 15.9983 21.3032 13.9895 19.9853 12.6716C19.5512 12.2375 19.0423 11.9241 18.5 11.7313C17.857 11.5026 17.1672 11.4435 16.5 11.554C15.7048 11.6857 14.9418 12.0582 14.3284 12.6716C12.7663 14.2337 12.7663 16.7663 14.3284 18.3284C14.5992 18.5992 14.8992 18.8231 15.2182 19ZM6.5 8C6.5 7.44772 6.94772 7 7.5 7H12.5C13.0523 7 13.5 7.44772 13.5 8C13.5 8.55228 13.0523 9 12.5 9H7.5C6.94772 9 6.5 8.55228 6.5 8ZM6.5 12C6.5 11.4477 6.94772 11 7.5 11H10.5C11.0523 11 11.5 11.4477 11.5 12C11.5 12.5523 11.0523 13 10.5 13H7.5C6.94772 13 6.5 12.5523 6.5 12ZM7.5 15C6.94772 15 6.5 15.4477 6.5 16C6.5 16.5523 6.94772 17 7.5 17H8.5C9.05228 17 9.5 16.5523 9.5 16C9.5 15.4477 9.05228 15 8.5 15H7.5Z"})}))},[gc.SEARCH]:e=>{let t=Object.assign({},e);return ke("svg",h(h({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:ke("path",{className:Dn.FILL,d:"M11 4C7.13401 4 4 7.13401 4 11C4 14.866 7.13401 18 11 18C12.5725 18 14.0238 17.4815 15.1925 16.6062L18.298 19.7076C18.6888 20.0978 19.3219 20.0974 19.7122 19.7066C20.1025 19.3159 20.1021 18.6827 19.7113 18.2924L16.6066 15.1919C17.4817 14.0233 18 12.5722 18 11C18 7.13401 14.866 4 11 4ZM6 11C6 8.23858 8.23858 6 11 6C13.7614 6 16 8.23858 16 11C16 13.7614 13.7614 16 11 16C8.23858 16 6 13.7614 6 11Z"})}))},[gc.CHEVRON_UP]:e=>{let t=Object.assign({},e);return ke("svg",h(h({width:"24",height:"24",viewBox:"0 0 24 24"},t),{},{children:ke("path",{d:"M12 11.3454L16.331 15.2433L17.6689 13.7567L12.6689 9.25671C12.2886 8.91443 11.7113 8.91443 11.331 9.25671L6.33102 13.7567L7.66895 15.2433L12 11.3454Z",fill:"#1a2e3b"})}))},[gc.CLOSE_CIRCLE]:e=>{let t=Object.assign({},e);return ke("svg",h(h({width:"24",height:"24",viewBox:"0 0 24 24"},t),{},{children:ke("path",{clipRule:"evenodd",d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM14.7071 9.26251C14.3571 8.9125 13.7896 8.9125 13.4396 9.26251L12 10.7023L10.5604 9.26252C10.2104 8.9125 9.64292 8.9125 9.29293 9.26252L9.26302 9.29244C8.91306 9.64243 8.91306 10.2099 9.26302 10.5599L10.7027 11.9997L9.26247 13.4401C8.91251 13.7901 8.91251 14.3576 9.26247 14.7076L9.29239 14.7375C9.64237 15.0875 10.2098 15.0875 10.5598 14.7375L12 13.2971L13.4402 14.7375C13.7902 15.0875 14.3576 15.0875 14.7076 14.7375L14.7375 14.7076C15.0875 14.3576 15.0875 13.7901 14.7375 13.4401L13.2973 11.9997L14.737 10.5599C15.0869 10.2099 15.0869 9.64243 14.737 9.29244L14.7071 9.26251Z",fill:"#fff",fillRule:"evenodd"})}))},[gc.SPINNER]:e=>{let t=Object.assign({},e);return ke("svg",h(h({viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",fill:"none","data-spinner":!0},t),{},{children:[ke("circle",{"data-spinner-trace":!0,cx:"24",cy:"24",r:"22",stroke:"white"}),ke("circle",{"data-spinner-circle":!0,cx:"24",cy:"24",r:"22",stroke:"white"})]}))},[gc.SLIDERS]:e=>{let t=Object.assign({},e);return ke("svg",h(h({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:ke("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 7C16.4477 7 16 6.55228 16 6C16 5.44772 16.4477 5 17 5C17.5523 5 18 5.44772 18 6C18 6.55228 17.5523 7 17 7ZM19.8293 5C19.4175 3.83481 18.3062 3 17 3C15.6938 3 14.5825 3.83481 14.1707 5H3C2.44772 5 2 5.44772 2 6C2 6.55228 2.44772 7 3 7H14.1707C14.5825 8.16519 15.6938 9 17 9C18.3062 9 19.4175 8.16519 19.8293 7H21C21.5523 7 22 6.55228 22 6C22 5.44772 21.5523 5 21 5H19.8293ZM3 11C2.44772 11 2 11.4477 2 12C2 12.5523 2.44772 13 3 13H4.17071C4.58254 14.1652 5.69378 15 7 15C8.30622 15 9.41746 14.1652 9.82929 13H21C21.5523 13 22 12.5523 22 12C22 11.4477 21.5523 11 21 11H9.82929C9.41746 9.83481 8.30622 9 7 9C5.69378 9 4.58254 9.83481 4.17071 11H3ZM7 11C7.55228 11 8 11.4477 8 12C8 12.5523 7.55228 13 7 13C6.44772 13 6 12.5523 6 12C6 11.4477 6.44772 11 7 11ZM3 17C2.44772 17 2 17.4477 2 18C2 18.5523 2.44772 19 3 19H14.1707C14.5825 20.1652 15.6938 21 17 21C18.3062 21 19.4175 20.1652 19.8293 19H21C21.5523 19 22 18.5523 22 18C22 17.4477 21.5523 17 21 17H19.8293C19.4175 15.8348 18.3062 15 17 15C15.6938 15 14.5825 15.8348 14.1707 17H3ZM18 18C18 17.4477 17.5523 17 17 17C16.4477 17 16 17.4477 16 18C16 18.5523 16.4477 19 17 19C17.5523 19 18 18.5523 18 18Z"})}))},[gc.SWITCH_CIRCLE]:e=>{let t=Object.assign({},e);return ke("svg",h(h({width:"12",height:"12",viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg",fill:"none","data-toggle-container":!0},t),{},{children:ke("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 12C9.31371 12 12 9.31371 12 6C12 2.68629 9.31371 0 6 0C2.68629 0 0 2.68629 0 6C0 9.31371 2.68629 12 6 12Z",fill:"white"})}))},[gc.SWITCH_CONTAINER]:e=>{let t=Object.assign({},e);return ke("svg",h(h({width:"32",height:"16",viewBox:"0 0 32 16",xmlns:"http://www.w3.org/2000/svg",fill:"none","data-toggle-container":!0},t),{},{children:ke("rect",{width:"32",height:"16",rx:"8",fill:"#2F8363"})}))},[gc.WARN_CIRCLE]:e=>{let t=Object.assign({},e);return ke("svg",h(h({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:ke("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM12 14C11.4477 14 11 13.5523 11 13V8C11 7.44772 11.4477 7 12 7C12.5523 7 13 7.44772 13 8V13C13 13.5523 12.5523 14 12 14ZM11 16C11 15.4477 11.4477 15 12 15C12.5523 15 13 15.4477 13 16C13 16.5523 12.5523 17 12 17C11.4477 17 11 16.5523 11 16Z",fill:"white"})}))},[gc.THUMBS_UP]:e=>{let t=Object.assign({},e);return ke("svg",h(h({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:ke("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.0514 9H19.0738C20.0444 9 20.8299 9.35394 21.3493 9.99618C21.8401 10.6031 22 11.3518 22 12V15C22 16.9967 21.2949 18.6828 20.5308 19.8635C20.1484 20.4545 19.7394 20.9376 19.3716 21.2847C19.1892 21.4569 19.0014 21.6105 18.8178 21.7283C18.7263 21.787 18.6199 21.8471 18.5035 21.8953C18.3992 21.9384 18.2213 22 18.0043 22H12C10.837 22 9.83327 21.7103 9.12861 21.4285C8.99855 21.3765 8.87772 21.3243 8.76692 21.2737C8.25906 21.7332 7.59078 22 6.88197 22H4C2.89543 22 2 21.1046 2 20V11C2 9.89643 2.89367 9 3.99924 9H7.90182C8.9732 8.60827 9.61763 8.20384 10.1078 7.63449C10.6376 7.01903 11.0675 6.11901 11.5331 4.57534L11.5413 4.53968C11.6279 4.16374 11.7631 3.57633 12.062 3.09009C12.2335 2.81089 12.4762 2.53151 12.8223 2.32587C13.1723 2.11782 13.5711 2.01926 14 2.01926C14.8534 2.01926 15.466 2.41723 15.8386 2.78144C16.0237 2.9623 16.1588 3.14255 16.2496 3.28199C16.2954 3.35222 16.3322 3.41568 16.3605 3.4686C16.3951 3.5336 16.4261 3.60015 16.4492 3.67019C16.5013 3.82791 16.5197 4.0011 16.5373 4.167L16.5425 4.21554C16.5696 4.46535 16.5931 4.81409 16.583 5.23366C16.5627 6.07019 16.4078 7.208 15.8625 8.40636C15.7274 8.70327 15.7031 8.87123 15.7005 8.94441C15.741 8.96116 15.8033 8.97895 15.8838 8.99016C15.9396 8.99795 15.9952 9 16.0514 9ZM13.4759 5.05072L13.4741 5.05871C13.4693 5.07933 13.4638 5.09979 13.4577 5.12006C12.9658 6.75821 12.4366 7.99485 11.6235 8.93936C10.9182 9.75858 10.0581 10.2914 9 10.7202V19.2174C9.08899 19.2196 9.17122 19.2384 9.24448 19.2784C9.38703 19.3561 9.60104 19.4634 9.87139 19.5715C10.4167 19.7897 11.163 20 12 20H17.8014C17.8514 19.9621 17.9179 19.9067 17.9987 19.8304C18.2399 19.6027 18.5483 19.2459 18.8517 18.777C19.4594 17.8379 20 16.5239 20 15V12C20 11.6482 19.9099 11.3969 19.7942 11.2538C19.707 11.1461 19.5294 11 19.0738 11H16.0654C16.0365 11.0006 15.9909 11.0009 15.9325 10.999C15.8501 10.9964 15.7377 10.9891 15.6076 10.971C15.3617 10.9367 14.9841 10.8544 14.6237 10.6345C14.2372 10.3985 13.8666 9.99723 13.7424 9.38864C13.6261 8.81811 13.7562 8.20634 14.0421 7.57802C14.4491 6.68359 14.568 5.82532 14.5835 5.18521C14.5913 4.86647 14.5732 4.60676 14.5541 4.43084C14.55 4.39233 14.5458 4.35787 14.5418 4.32773C14.5154 4.29227 14.4815 4.25162 14.4407 4.21169C14.323 4.09673 14.1856 4.01926 14 4.01926C13.8867 4.01926 13.8489 4.04221 13.8443 4.04499C13.8371 4.04925 13.8089 4.06724 13.7659 4.13728C13.7194 4.21297 13.6697 4.32623 13.6182 4.49311C13.5668 4.65929 13.5255 4.83727 13.4759 5.05072ZM7 19.9889V11H4V20H6.88197C6.91933 20 6.95876 19.9961 7 19.9889Z",fill:"white"})}))},[gc.THUMBS_DOWN]:e=>{let t=Object.assign({},e);return ke("svg",h(h({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:ke("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.94864 15.0193H4.9262C3.95557 15.0193 3.17013 14.6653 2.65073 14.0231C2.15987 13.4161 2 12.6675 2 12.0193V9.01926C2 7.02253 2.70509 5.33649 3.46916 4.15574C3.85161 3.56472 4.26059 3.08171 4.62837 2.73451C4.81075 2.56233 4.99859 2.40877 5.18217 2.291C5.27374 2.23225 5.38005 2.17217 5.49649 2.12398C5.60076 2.08082 5.77867 2.01926 5.99567 2.01926L12 2.01926C13.163 2.01926 14.1667 2.30892 14.8714 2.59078C15.0015 2.64281 15.1223 2.69495 15.2331 2.74553C15.7409 2.28605 16.4092 2.01926 17.118 2.01926H20C21.1046 2.01926 22 2.91469 22 4.01926L22 13.0193C22 14.1228 21.1063 15.0193 20.0008 15.0193H16.0982C15.0268 15.411 14.3824 15.8154 13.8922 16.3848C13.3624 17.0002 12.9325 17.9003 12.4669 19.4439L12.4587 19.4796C12.3721 19.8555 12.2369 20.4429 11.938 20.9292C11.7665 21.2084 11.5238 21.4878 11.1777 21.6934C10.8277 21.9014 10.4289 22 10 22C9.14656 22 8.53398 21.602 8.16136 21.2378C7.97632 21.057 7.84124 20.8767 7.7504 20.7373C7.70464 20.667 7.66777 20.6036 7.63954 20.5507C7.60486 20.4857 7.57388 20.4191 7.55075 20.3491C7.49868 20.1913 7.48029 20.0182 7.46266 19.8523L7.45748 19.8037C7.43043 19.5539 7.40687 19.2052 7.41704 18.7856C7.43731 17.9491 7.59222 16.8113 8.13751 15.6129C8.27262 15.316 8.29694 15.148 8.29953 15.0748C8.25898 15.0581 8.19666 15.0403 8.11624 15.0291C8.06037 15.0213 8.00485 15.0193 7.94864 15.0193ZM10.5241 18.9685L10.5259 18.9606C10.5307 18.9399 10.5362 18.9195 10.5423 18.8992C11.0342 17.2611 11.5634 16.0244 12.3765 15.0799C13.0818 14.2607 13.9419 13.7279 15 13.2991L15 4.80189C14.911 4.79964 14.8288 4.78086 14.7555 4.7409C14.613 4.66315 14.399 4.55587 14.1286 4.44773C13.5833 4.2296 12.837 4.01926 12 4.01926L6.1986 4.01926C6.14859 4.05717 6.08207 4.11258 6.00131 4.18882C5.76012 4.41652 5.4517 4.77339 5.14827 5.24229C4.54059 6.18137 4 7.49534 4 9.01926V12.0193C4 12.371 4.09013 12.6224 4.20582 12.7654C4.29297 12.8732 4.47062 13.0193 4.9262 13.0193H7.93463C7.96345 13.0186 8.00911 13.0183 8.06745 13.0202C8.14991 13.0229 8.26226 13.0301 8.39236 13.0483C8.63827 13.0825 9.01586 13.1648 9.37627 13.3848C9.76282 13.6207 10.1334 14.022 10.2576 14.6306C10.3739 15.2012 10.2438 15.8129 9.95791 16.4412C9.55092 17.3357 9.43197 18.1939 9.41645 18.834C9.40873 19.1528 9.4268 19.4125 9.44585 19.5884C9.45002 19.6269 9.45424 19.6614 9.45823 19.6915C9.48457 19.727 9.5185 19.7676 9.55935 19.8076C9.67696 19.9225 9.81438 20 10 20C10.1133 20 10.1511 19.9771 10.1557 19.9743C10.1629 19.97 10.1911 19.952 10.2341 19.882C10.2806 19.8063 10.3303 19.693 10.3818 19.5262C10.4332 19.36 10.4745 19.182 10.5241 18.9685ZM17 4.03039V13.0193H20L20 4.01926H17.118C17.0807 4.01926 17.0412 4.02315 17 4.03039Z",fill:"white"})}))},[gc.THUMBS_UP_FILLED]:e=>{let t=Object.assign({},e);return ke("svg",h(h({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:ke("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.0514 9H19.0738C20.0444 9 20.8299 9.35394 21.3493 9.99618C21.8401 10.6031 22 11.3518 22 12V15C22 16.9967 21.2949 18.6828 20.5308 19.8635C20.1484 20.4545 19.7394 20.9376 19.3716 21.2847C19.1892 21.4569 19.0014 21.6105 18.8178 21.7283C18.7263 21.787 18.6199 21.8471 18.5035 21.8953C18.3992 21.9384 18.2213 22 18.0043 22H12C10.837 22 9.83327 21.7103 9.12861 21.4285C9.08468 21.4109 9.0418 21.3933 9 21.3758V8.51408C9.46407 8.25834 9.8137 7.9761 10.1078 7.63449C10.6376 7.01903 11.0675 6.11901 11.5331 4.57534L11.5413 4.53968C11.6279 4.16374 11.7631 3.57633 12.062 3.09009C12.2335 2.81089 12.4762 2.53151 12.8223 2.32587C13.1723 2.11782 13.5711 2.01926 14 2.01926C14.8534 2.01926 15.466 2.41723 15.8386 2.78144C16.0237 2.9623 16.1588 3.14255 16.2496 3.28199C16.2954 3.35222 16.3322 3.41568 16.3605 3.4686C16.3951 3.5336 16.4261 3.60015 16.4492 3.67019C16.5013 3.82791 16.5197 4.0011 16.5373 4.167L16.5425 4.21554C16.5696 4.46535 16.5931 4.81409 16.583 5.23366C16.5627 6.07019 16.4078 7.208 15.8625 8.40636C15.7274 8.70327 15.7031 8.87123 15.7005 8.94441C15.741 8.96116 15.8033 8.97895 15.8838 8.99016C15.9396 8.99795 15.9952 9 16.0514 9ZM7 9H3.99924C2.89367 9 2 9.89643 2 11V20C2 21.1046 2.89543 22 4 22H6.88197C6.92144 22 6.96079 21.9992 7 21.9975V9Z",fill:"white"})}))},[gc.THUMBS_DOWN_FILLED]:e=>{let t=Object.assign({},e);return ke("svg",h(h({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:ke("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.94864 15.0193H4.9262C3.95557 15.0193 3.17013 14.6653 2.65073 14.0231C2.15987 13.4161 2 12.6675 2 12.0193V9.01926C2 7.02253 2.70509 5.33649 3.46916 4.15574C3.85161 3.56472 4.26059 3.08171 4.62837 2.73451C4.81075 2.56233 4.99859 2.40877 5.18217 2.291C5.27374 2.23225 5.38006 2.17217 5.49649 2.12398C5.60076 2.08082 5.77867 2.01926 5.99567 2.01926H12C13.163 2.01926 14.1667 2.30892 14.8714 2.59078C14.9153 2.60835 14.9582 2.62594 15 2.64348V15.5052C14.5359 15.7609 14.1863 16.0432 13.8922 16.3848C13.3624 17.0002 12.9325 17.9003 12.4669 19.4439L12.4587 19.4796C12.3721 19.8555 12.2369 20.4429 11.938 20.9292C11.7665 21.2084 11.5238 21.4878 11.1777 21.6934C10.8277 21.9014 10.4289 22 10 22C9.14656 22 8.53398 21.602 8.16136 21.2378C7.97632 21.057 7.84124 20.8767 7.7504 20.7373C7.70464 20.667 7.66777 20.6036 7.63954 20.5507C7.60486 20.4857 7.57388 20.4191 7.55075 20.3491C7.49868 20.1913 7.48029 20.0182 7.46266 19.8523L7.45748 19.8037C7.43043 19.5539 7.40687 19.2052 7.41704 18.7856C7.43731 17.9491 7.59222 16.8113 8.13751 15.6129C8.27262 15.316 8.29694 15.148 8.29953 15.0748C8.25898 15.0581 8.19666 15.0403 8.11624 15.0291C8.06037 15.0213 8.00485 15.0193 7.94864 15.0193ZM17 15.0193H20.0008C21.1063 15.0193 22 14.1228 22 13.0193V4.01926C22 2.91469 21.1046 2.01926 20 2.01926H17.118C17.0786 2.01926 17.0392 2.02008 17 2.02173V15.0193Z",fill:"white"})}))},[gc.LINK]:e=>{let t=Object.assign({},e);return ke("svg",h(h({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:ke("path",{className:Dn.FILL,d:"M11.2929 8.46447C10.9024 8.07395 10.9024 7.44078 11.2929 7.05026L13.4142 4.92894C14.9763 3.36684 17.509 3.36684 19.0711 4.92894C20.6332 6.49103 20.6332 9.02369 19.0711 10.5858L16.9498 12.7071C16.5593 13.0976 15.9261 13.0976 15.5356 12.7071C15.145 12.3166 15.145 11.6834 15.5356 11.2929L17.6569 9.17158C18.4379 8.39053 18.4379 7.1242 17.6569 6.34315C16.8758 5.5621 15.6095 5.5621 14.8285 6.34315L12.7071 8.46447C12.3166 8.85499 11.6834 8.85499 11.2929 8.46447ZM8.46443 11.2929C8.07391 10.9024 7.44074 10.9024 7.05022 11.2929L4.9289 13.4142C3.3668 14.9763 3.3668 17.509 4.9289 19.0711C6.49099 20.6332 9.02365 20.6332 10.5858 19.0711L12.7071 16.9497C13.0976 16.5592 13.0976 15.9261 12.7071 15.5355C12.3165 15.145 11.6834 15.145 11.2929 15.5355L9.17154 17.6569C8.39049 18.4379 7.12416 18.4379 6.34311 17.6569C5.56206 16.8758 5.56206 15.6095 6.34311 14.8284L8.46443 12.7071C8.85495 12.3166 8.85495 11.6834 8.46443 11.2929ZM9.87874 12.7071C9.48821 13.0976 9.48821 13.7308 9.87874 14.1213C10.2693 14.5118 10.9024 14.5118 11.293 14.1213L14.1214 11.2929C14.5119 10.9024 14.5119 10.2692 14.1214 9.87868C13.7309 9.48816 13.0977 9.48816 12.7072 9.87868L9.87874 12.7071Z"})}))},[gc.SPARKLE_TWO_STARS_FILLED]:e=>{let{fill:t}=e,n=m(e,["fill"]);const i={};return t&&(i.fill=t),ke("svg",h(h({width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"none"},n),{},{children:[ke("path",{style:i,"data-shape":"smallStar",fillRule:"evenodd",clipRule:"evenodd",d:"M 20.861 4.11 L 21.903 4.472 L 21.899 4.474 C 22.105 4.546 22.214 4.771 22.144 4.978 C 22.105 5.095 22.013 5.186 21.896 5.224 L 20.859 5.585 C 20.401 5.745 20.047 6.099 19.887 6.557 L 19.526 7.599 C 19.452 7.806 19.225 7.914 19.018 7.842 C 18.901 7.802 18.811 7.709 18.774 7.592 L 18.414 6.555 C 18.257 6.099 17.899 5.741 17.443 5.583 L 16.4 5.222 C 16.112 5.121 16.041 4.746 16.272 4.546 C 16.314 4.511 16.362 4.484 16.414 4.468 L 17.445 4.11 C 17.902 3.951 18.255 3.597 18.415 3.139 L 18.779 2.097 C 18.877 1.809 19.25 1.736 19.45 1.965 C 19.486 2.005 19.513 2.053 19.529 2.104 L 19.889 3.139 C 20.048 3.597 20.402 3.951 20.86 4.11 L 20.861 4.11 Z"}),ke("path",{style:i,"data-shape":"largeStar",fillRule:"evenodd",clipRule:"evenodd",d:"M 15.732 10.906 L 18.352 11.817 L 18.354 11.815 C 18.734 11.949 18.935 12.364 18.804 12.745 C 18.73 12.96 18.56 13.127 18.344 13.197 L 15.732 14.107 C 14.507 14.528 13.545 15.49 13.122 16.714 L 12.212 19.336 C 12.077 19.712 11.669 19.912 11.289 19.789 C 11.069 19.718 10.897 19.545 10.828 19.324 L 9.922 16.716 C 9.499 15.492 8.538 14.531 7.314 14.108 L 4.697 13.2 C 4.165 13.02 4.027 12.331 4.449 11.96 C 4.521 11.897 4.606 11.848 4.697 11.817 L 7.314 10.907 C 8.538 10.485 9.5 9.524 9.922 8.3 L 10.832 5.677 C 10.894 5.495 11.026 5.346 11.198 5.262 C 11.594 5.068 12.069 5.265 12.213 5.681 L 13.123 8.3 C 13.545 9.524 14.508 10.486 15.732 10.907 L 15.732 10.906 Z"})]}))},[gc.WARN_TRIANGLE]:e=>{let t=Object.assign({},e);return ke("svg",h(h({width:"36",height:"32.326",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"287.915 380.297 36 32.326"},t),{},{children:ke("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"white",d:"M309.646 382.963c-2.052-3.555-5.41-3.555-7.462 0L288.79 406.16c-2.05 3.555-.372 6.463 3.732 6.463h26.786c4.104 0 5.783-2.908 3.73-6.463l-13.392-23.197zm-2 23.224c0 .983-.804 1.788-1.788 1.788-.983 0-1.788-.805-1.788-1.788 0-.984.805-1.79 1.788-1.79s1.79.805 1.788 1.79zm-.317-7.76c-.254 2.604-.916 4.735-1.472 4.735-.557 0-1.22-2.13-1.477-4.735-.255-2.604-.464-5.72-.464-6.925 0-1.204.87-2.19 1.935-2.19 1.066 0 1.936.986 1.936 2.19s-.205 4.32-.457 6.925z"})}))},[gc.VERTICAL_ELLIPSIS]:e=>{let t=Object.assign({},e);return ke("svg",h(h({width:"4",height:"19",viewBox:"0 0 4 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:ke("path",{d:"M2 4.5C2.39556 4.5 2.78224 4.3827 3.11114 4.16294C3.44004 3.94318 3.69639 3.63082 3.84776 3.26537C3.99914 2.89992 4.03874 2.49778 3.96157 2.10982C3.8844 1.72186 3.69392 1.36549 3.41421 1.08579C3.13451 0.806082 2.77814 0.615601 2.39018 0.53843C2.00222 0.46126 1.60009 0.500867 1.23463 0.652242C0.869182 0.803617 0.556825 1.05996 0.337062 1.38886C0.117299 1.71776 1.07779e-06 2.10444 1.07779e-06 2.5C1.07779e-06 3.03043 0.210715 3.53914 0.585788 3.91421C0.960861 4.28929 1.46957 4.5 2 4.5ZM2 14.5C1.60444 14.5 1.21776 14.6173 0.888861 14.8371C0.559963 15.0568 0.303617 15.3692 0.152242 15.7346C0.000866562 16.1001 -0.0387401 16.5022 0.0384303 16.8902C0.115601 17.2781 0.306083 17.6345 0.585788 17.9142C0.865493 18.1939 1.22186 18.3844 1.60982 18.4616C1.99778 18.5387 2.39992 18.4991 2.76537 18.3478C3.13082 18.1964 3.44318 17.94 3.66294 17.6111C3.8827 17.2822 4 16.8956 4 16.5C4 15.9696 3.78929 15.4609 3.41421 15.0858C3.03914 14.7107 2.53043 14.5 2 14.5ZM2 7.5C1.60444 7.5 1.21776 7.6173 0.888861 7.83706C0.559963 8.05682 0.303617 8.36918 0.152242 8.73463C0.000866562 9.10009 -0.0387401 9.50222 0.0384303 9.89018C0.115601 10.2781 0.306083 10.6345 0.585788 10.9142C0.865493 11.1939 1.22186 11.3844 1.60982 11.4616C1.99778 11.5387 2.39992 11.4991 2.76537 11.3478C3.13082 11.1964 3.44318 10.94 3.66294 10.6111C3.8827 10.2822 4 9.89556 4 9.5C4 8.96957 3.78929 8.46086 3.41421 8.08579C3.03914 7.71071 2.53043 7.5 2 7.5Z"})}))},[gc.PLUS_SYMBOL]:e=>{let t=Object.assign({},e);return ke("svg",h(h({viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid"},t),{},{children:ke("path",{d:"M24 10h-10v-10h-4v10h-10v4h10v10h4v-10h10z"})}))},[gc.FACEBOOK]:e=>{let t=Object.assign({},e);return ke("svg",h(h({viewBox:"0 0 64 64"},t),{},{children:ke("path",{d:"M35.992 64h-11.992v-32h-8v-11.028l8-0.004-0.013-6.497c0-8.997 2.44-14.471 13.037-14.471h8.824v11.030h-5.514c-4.127 0-4.325 1.541-4.325 4.418l-0.016 5.52h9.918l-1.169 11.028-8.741 0.004-0.008 32z"})}))},[gc.TUMBLR]:e=>{let t=Object.assign({},e);return ke("svg",h(h({viewBox:"0 0 12 20"},t),{},{children:ke("path",{d:"M7.865,19.958 C3.629,19.958 2.02,16.834 2.02,14.627 L2.02,8.105 L0,8.105 L0,5.527 C3.027,4.436 3.756,1.705 3.927,0.149 C3.938,0.042 4.022,0 4.07,0 L6.994,0 L6.994,5.084 L10.987,5.084 L10.987,8.105 L6.979,8.105 L6.979,14.318 C6.993,15.149 7.291,16.287 8.815,16.287 C8.843,16.287 8.872,16.287 8.9,16.286 C9.43,16.272 10.14,16.118 10.511,15.941 L11.471,18.788 C11.11,19.317 9.481,19.932 8.015,19.957 C7.964,19.958 7.915,19.958 7.865,19.958"})}))},[gc.EMAIL]:e=>{let t=Object.assign({},e);return ke("svg",h(h({viewBox:"0 0 72 72"},t),{},{children:[ke("path",{d:"M71.754,57.6C71.9,57.169,72,56.718,72,56.241V16.759c0-0.453-0.092-0.881-0.225-1.291l-23.487,19.86L71.754,57.6z"}),ke("path",{d:"M35.999,40.118l6.187-4.971l3.131-2.516L68.9,12.693c-0.387-0.113-0.789-0.193-1.213-0.193H4.312c-0.424,0-0.827,0.08-1.215,0.194l23.599,19.949l3.132,2.517L35.999,40.118z"}),ke("path",{d:"M67.688,60.5c0.405,0,0.791-0.074,1.164-0.18L45.157,37.843l-9.159,7.361l-9.145-7.351L3.15,60.322C3.522,60.426,3.907,60.5,4.312,60.5H67.688z"}),ke("path",{d:"M0.226,15.468C0.092,15.878,0,16.307,0,16.759v39.482c0,0.478,0.099,0.929,0.247,1.356l23.476-22.261L0.226,15.468z"})]}))},[gc.EMBED]:e=>{let t=Object.assign({},e);return ke("svg",h(h({viewBox:"0 0 55 48"},t),{},{children:[ke("polygon",{points:"16.019,16.385 11.968,13.131 0,24.543 12.082,35.955 16.132,32.703 7.439,24.543"}),ke("polygon",{points:"42.92,13.131 38.868,16.384 47.561,24.542 38.981,32.701 43.033,35.955 55,24.542"}),ke("polygon",{points:"24.083,39.221 28.76,39.221 36.243,8.351 31.566,8.351"})]}))},[gc.PREVIOUS]:e=>{let t=Object.assign({},e);return ke("svg",h(h({viewBox:"0 0 27 48",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:ke("path",{d:"M7.243,24L26.414,4.828c0.781-0.781,0.781-2.047,0-2.828L25,0.586 c-0.781-0.781-2.047-0.781-2.828,0L0.879,21.879c-1.172,1.172-1.172,3.071,0,4.243l21.293,21.293c0.781,0.781,2.047,0.781,2.828,0 L26.414,46c0.781-0.781,0.781-2.047,0-2.828L7.243,24z"})}))},[gc.TWITTER]:e=>{let t=Object.assign({},e);return ke("svg",h(h({viewBox:"0 0 24 24"},t),{},{children:ke("path",{d:"M17.751 3h3.067l-6.7 7.658L22 21.078h-6.172l-4.833-6.32-5.531 6.32h-3.07l7.167-8.19L2 3h6.328l4.37 5.777L17.75 3Zm-1.076 16.243h1.7L7.404 4.739H5.58l11.094 14.504Z"})}))}},Xd=e=>{let{name:t,className:n}=e,i=m(e,["name","className"]);const o=zd[t];return o&&ke(o,h({className:n},i))};const Zd=He(({isMenuDisplayed:e,isMenuBlockingUI:t,setMenuDisplayed:n=ai,panel:i,buttonRef:o,progressBarAndButtonsRef:r,panelContent:a,headerContent:s,toggleKey:l,className:c,id:d,type:u,resizeDependencies:_,ariaLabel:p},v)=>{const m=we(null);v=v||m;const f=we(null),g=we(null),E=we(null),b=we(null),[C,y]=Pe({height:"auto"}),[T,L]=Pe({}),[A,S]=Pe(!1),[I,O]=Pe(!1),w=Gd(e=>e.appearance.isMenuBlockingUI);t=void 0===t?w:t;const R=Gd(e=>e.appearance.isMenuVerticalVideoMode),N=Gd(e=>e.appearance.boundingClientRect),k=Gd(e=>e.appearance.playerBreakpoint),D=Gd(e=>e.displayList.controlBar),{isAccordionToggling:M}=Ge(Qd),{onFocus:B,focusFirstItem:V}=vc({parentRef:v,isActive:e,toggleKey:l,arrowNavigation:!0,onEscape:()=>{n(!1)},onToggle:e=>{n(e)}});Oe(()=>{e&&V()},[i]);const x=e=>{const t=window.getComputedStyle(e);return parseFloat(t.fontSize)},U=()=>{S(!1),cancelAnimationFrame(null==b?void 0:b.current)},H=()=>{var n;if(!((null==(n=v)?void 0:n.current)&&e))return;if(t)return O(!1),void y(e=>h(h({},e),{},{height:"100%"}));let i="auto";const o=mt(v.current),r=x(v.current),a=o.bottom-v.current.scrollHeight,s=Math.max(N.top,0)-a;if(s>0){let e=v.current.scrollHeight-s-r;i=`${e/r}em`}y(e=>h(h({},e),{},{height:i})),O(s>0)},F=()=>{if(!(null==g?void 0:g.current))return;if(t)return void L({});if(!e)return void L({height:"0"});const n=x(g.current),i=`${(g.current.scrollHeight+16)/n}em`;L({height:i})},G=()=>{H(),A&&(b.current=requestAnimationFrame(G))},Y=()=>{U(),F(),H()},W=P(i=>{var r;(null==(r=v)?void 0:r.current)&&(null==o?void 0:o.current)&&e&&(o.current.contains(i.target)||v.current.contains(i.target)||!document.contains(i.target)||t||n(!1))},200),$=P(()=>{t||n(!1)},200);Oe(()=>(document.addEventListener("click",W,!1),window.addEventListener("blur",$,!1),()=>{document.removeEventListener("click",W,!1),window.removeEventListener("blur",$,!1)}),[v,o,e]),Oe(()=>((()=>{var n;const i=(null==(n=v)?void 0:n.current)&&(null==o?void 0:o.current)&&(null==r?void 0:r.current)&&e,a=R&&k===Xo.XXS&&(null==N?void 0:N.width);if(!i)return;if(t)return void y(e=>h(h({},e),{},{right:""}));if(a){const e=`${N.width-16}px`;return void y(t=>h(h({},t),{},{width:e,right:""}))}const s=mt(o.current),l=mt(v.current.parentElement),c=mt(r.current),d=mt(v.current);let u=-8-c.right+l.right;const _=s.right-s.width/2+d.width/2+8;_h(h({},e),{},{right:`${u/p}em`}))})(),!e||t?Y():(F(),S(!0),G()),()=>{U()}),[e,i,null==N?void 0:N.width,t,k,_]),Oe(()=>{D||n(!1)},[D]),Oe(()=>{(null==f?void 0:f.current)&&(M?t?H():(L(e=>h(h({},e),{},{height:"auto"})),S(!0),G()):t?(S(!1),Y()):(F(),G()))},[M]);const q=Cn(Dn.VP_MENU,"Menu_module_menu__97a70da7",c,I&&"Menu_module_scroll__97a70da7",t&&"Menu_module_fullWidth__97a70da7",R&&"Menu_module_verticalVideo__97a70da7");return ke(qd,{visible:e,styleOverrides:{exitDone:{display:"none"}},children:ke("div",h(h({id:d,className:q,ref:v,style:C,onTransitionEnd:e=>{e.target===(null==f?void 0:f.current)&&"height"===e.propertyName&&(H(),U())},onFocus:B,"data-menu":u||!0},{ariaLabel:p,role:t?"dialog":"menu",ariaModal:!!t||void 0,hidden:!e||void 0}),{},{children:[s&&ke("div",{ref:E,children:s}),ke("div",{ref:f,className:"Menu_module_menuBody__97a70da7",style:T,children:ke("div",{className:"Menu_module_menuPanel__97a70da7",ref:g,children:a})})]}))})}),Qd=Ye({isAccordionToggling:!1,activeAccordion:"",setAccordionToggling:()=>{},setActiveAccordion:()=>{}}),Jd=({children:e})=>{const[t,n]=Pe(!1),[i,o]=Pe(""),r={isAccordionToggling:t,activeAccordion:i,setAccordionToggling:n,setActiveAccordion:o};return ke(Qd.Provider,{value:r,children:e})};const eu=({buffer:e=!1})=>ke("div",{className:`Divider_module_divider__74e2aa5b ${e?"Divider_module_buffer__74e2aa5b":""}`});const tu=({onBack:e=null,title:t,isMenuBlockingUI:n,setMenuDisplayed:i=ai,hasCloseButton:o=!0,onClose:r=(()=>i(!1)),size:a=tr.MD})=>{var s;const l=Gd(e=>e.appearance.isMenuBlockingUI);n=null!==(s=n)&&void 0!==s?s:l;const c=Cn("MenuHeader_module_menuHeader__c10a9277",n&&"MenuHeader_module_fullWidth__c10a9277",e&&"MenuHeader_module_hasBack__c10a9277",!o&&"MenuHeader_module_hideCloseButton__c10a9277");return ke("div",{className:c,children:[ke("header",{className:"MenuHeader_module_header__c10a9277",children:[ke("div",{className:"MenuHeader_module_backButtonWrapper__c10a9277",children:ke(Su,{className:"MenuHeader_module_backButton__c10a9277",onClick:e,"aria-label":"Back",color:Qo.ALTERNATIVE,icon:ke(Xd,{name:gc.CHEVRON_RIGHT}),iconSize:Zo.MD})}),ke(bu,{size:a,className:"MenuHeader_module_title__c10a9277",color:ir.WHITE,element:"h1",children:t}),ke("div",{className:"MenuHeader_module_closeButtonWrapper__c10a9277",children:ke(Su,{className:"MenuHeader_module_closeButton__c10a9277","aria-label":"Close menu",onClick:r,color:Qo.ALTERNATIVE,icon:ke(Xd,{name:gc.DISMISS_X}),iconSize:Zo.MD})})]}),ke(eu,{})]})};const nu=e=>{let{className:t,id:n,active:i,withActive:o=!0,onSelect:r,onMouseEnter:a,onMouseLeave:s,element:l="div",styled:c=!0,children:d,role:u="menuitemradio"}=e,_=m(e,["className","id","active","withActive","onSelect","onMouseEnter","onMouseLeave","element","styled","children","role"]);const{onClick:p,onKeyDown:v}=jl(r),f=Cn("MenuOption_module_option__828f05b2",o&&"MenuOption_module_withActive__828f05b2",c&&"MenuOption_module_styled__828f05b2",t),g=h({className:f,role:u,"aria-checked":i,"data-id":n,tabIndex:0,onClick:p,onKeyDown:v,onMouseDown:e=>e.preventDefault(),onMouseEnter:a,onMouseLeave:s},_);return Fe(l,g,d)};const iu=({className:e,onSelect:t,label:n,value:i,id:o,isAccordion:r=!1,isOpened:a=!1,size:s=Ql.MEDIUM,role:l="menuitem"})=>{let c,d=tr.MD;return s===Ql.LARGE?(d=tr.LG,c=tr.MD):r&&(d=tr.SM),ke(nu,{className:Cn("MenuItem_module_optionButton__14a7084a",s===Ql.SMALL&&"MenuItem_module_small__14a7084a",e),onSelect:t,id:o,withActive:!1,role:l,"aria-haspopup":"true","aria-expanded":r?a:void 0,children:[ke(bu,{size:d,weight:r?nr.BOLD:nr.NORMAL,className:"MenuItem_module_label__14a7084a",color:ir.WHITE,children:n}),i&&ke(bu,{weight:nr.NORMAL,size:c,className:"MenuItem_module_value__14a7084a",color:ir.WHITE,children:i}),ke("div",{className:Cn("MenuItem_module_icon__14a7084a",a&&"MenuItem_module_open__14a7084a"),children:ke(Xd,{name:r?gc.CHEVRON_DOWN:gc.CHEVRON_RIGHT})})]})};const ou=tr.MD,ru=tr.SM,au=({onSelect:e,onMouseEnter:t,onMouseLeave:n,label:i,active:o,id:r,ordered:a=!1,index:s,isAccordion:l=!1,tabIndex:c,icon:d=null})=>{const u=Cn("MenuOptionListItem_module_listItem__2a2a4b59",a&&"MenuOptionListItem_module_ordered__2a2a4b59",o&&"MenuOptionListItem_module_active__2a2a4b59",l&&"MenuOptionListItem_module_accordion__2a2a4b59");return ke(nu,{element:"li",className:u,onSelect:e,onMouseEnter:t,onMouseLeave:n,active:o,id:r,tabIndex:c,children:[d&&ke("div",{className:"MenuOptionListItem_module_icon__2a2a4b59",children:ke(Xd,{name:d})}),a&&!d&&ke("div",{className:"MenuOptionListItem_module_number__2a2a4b59",children:s}),!a&&!d&&ke("div",{className:`MenuOptionListItem_module_check__2a2a4b59 ${o?"MenuOptionListItem_module_activeCheck__2a2a4b59":""}`,children:ke(Xd,{name:gc.CHECKMARK})}),ke(bu,{className:"MenuOptionListItem_module_text__2a2a4b59",weight:nr.NORMAL,size:l?ru:ou,color:ir.WHITE,children:i}),a&&o&&ke("div",{className:"MenuOptionListItem_module_point__2a2a4b59",children:ke(Xd,{name:gc.POINT})})]})};const su=({items:e,onSelect:t,onMenuOptionMouseEnter:n,onMenuOptionMouseLeave:i,ordered:o=!1,isAccordion:r=!1,listItemTabIndex:a=0,itemComponent:s})=>{const l=o?"ol":"ul",c={className:"MenuOptionList_module_list__deee601b",role:"group"},d=e.map(e=>{const l={key:e.id,id:e.id,active:e.active,label:e.label,onSelect:t,onMouseEnter:n,onMouseLeave:i,ordered:o,isAccordion:r,tabIndex:a,icon:e.icon};return s?s(h(h({},l),e)):ke(au,h({},l))});return Fe(l,c,d)};const lu=({label:e,items:t=[],onSelect:n})=>{var i;const o=we(null),r=we(null),{setAccordionToggling:a,activeAccordion:s,setActiveAccordion:l}=Ge(Qd),[c,d]=Pe(!1),[u,_]=Pe({}),p=null==(i=t.find(e=>e.active))?void 0:i.label,v=t=>{const n=void 0!==t?t:!c;d(n),a(!0),n&&l(e)},m=e=>{e.target===r.current&&"height"===e.propertyName&&a(!1)},f=e=>{(null==o?void 0:o.current)&&!o.current.contains(e.target)&&o.current!==e.target&&v(!1)};return Oe(()=>(document.addEventListener("click",f),document.addEventListener("transitionend",m),()=>{l(""),document.removeEventListener("click",f),document.removeEventListener("transitionend",m)}),[]),Oe(()=>{_((()=>{let e={};if(c&&(null==r?void 0:r.current)){const t=window.getComputedStyle(r.current),n=parseFloat(t.fontSize);e={height:`${r.current.scrollHeight/n}em`}}return e})())},[c,r]),Oe(()=>{s&&s!==e&&v(!1)},[s]),t.length&&ke("div",{className:"Accordion_module_accordion__2cb96b8e",role:"menu",ref:o,children:[ke(iu,{label:e,value:p,onSelect:()=>v(),isAccordion:!0,isOpened:c,role:"button"}),ke("div",{className:"Accordion_module_content__2cb96b8e","aria-hidden":!c,ref:r,style:u,children:ke(su,{items:t,onSelect:n,isAccordion:!0,listItemTabIndex:c?0:-1})})]})};const cu=({label:e,className:t=""})=>ke("div",{className:`MenuFieldLabel_module_menuField__832e2f60 ${t}`,children:ke(bu,{className:"MenuFieldLabel_module_label__832e2f60",color:ir.WHITE,children:e})}),du=({items:e=[],label:t,onSelect:n})=>{const i=Gd(e=>e.appearance.shouldMenuItemsWrap);return ke(We,{children:[ke(cu,{label:t}),ke("ul",{className:`ButtonRow_module_buttonRow__ed961dd7 ${i?"ButtonRow_module_wrap__ed961dd7":""}`,role:"menu","aria-label":t,children:e.map(e=>ke(nu,{element:"li",className:`ButtonRow_module_filledButton__ed961dd7 ${e.active?"ButtonRow_module_active__ed961dd7":""}`,active:e.active,id:e.id,onSelect:n,styled:!1,children:ke(bu,{className:"ButtonRow_module_label__ed961dd7",color:ir.WHITE,children:e.label})},e.id))})]})};const uu=({items:e=[],label:t,onSelect:n})=>{const i=Gd(e=>e.appearance.shouldMenuItemsWrap);return ke(We,{children:[ke(cu,{label:t}),ke("ul",{className:`ColorSwabs_module_colorSwabs__ee1dd808 ${i?"ColorSwabs_module_wrap__ee1dd808":""}`,role:"menu","aria-label":t,children:e.map(e=>ke(nu,{id:e.id,element:"li",className:`ColorSwabs_module_colorSwab__ee1dd808 ${e.active?"ColorSwabs_module_active__ee1dd808":""}`,active:e.active,"aria-label":e.label,onSelect:n,styled:!1,children:ke("div",{className:"ColorSwabs_module_inner__ee1dd808",style:{backgroundColor:e.id}})},e.id))})]})};let _u;!function(e){e.TOP="top",e.BOTTOM="bottom",e.LEFT="left",e.RIGHT="right"}(_u||(_u={}));const pu={onPointerDown:e=>e.preventDefault()},vu=({children:t,tooltipContent:n,className:i="",containerEl:r,position:a,margin:s,visible:l=null,preventFocusOnClick:c=!1,id:d=null,animating:u=!1})=>{var _,p,v;const[m,f]=Pe(!1),g=()=>f(!0),E=()=>f(!1),b=null!==l,C=l||m,y=mu("onPointerEnter",t,e=>{"mouse"===e.pointerType&&g()}),T=mu("onPointerLeave",t,E),L=mu("onFocus",t,()=>{o.touch&&!document.body.classList.contains(Dn.SHOWFOCUS)||g()}),A=mu("onBlur",t,E);ic("Escape",E);let S=null==t?void 0:t.ref;const I=we(null);S=S||I;const O=we(null),P=Cn("Tooltip_module_tooltipContainer__d9b61844",null==t||null==(_=t.props)?void 0:_.className,b&&l&&"Tooltip_module_forceVisible__d9b61844"),w=h(h({},null==t?void 0:t.props),{},{className:P,ref:S,onPointerEnter:y,onPointerLeave:T,onFocus:L,onBlur:A,"aria-labelledby":null!=d?d:null,"data-touch-device":o.touch.toString()});c&&Object.assign(w,pu);const R=(({tooltipEl:e,wrappedEl:t,visible:n,containerEl:i,position:o=_u.TOP,margin:r=0,animating:a=!1})=>{const s=we(null),[l,c]=Pe({top:null,bottom:null,left:o===_u.LEFT?"auto":"50%",right:o===_u.LEFT?`calc(100% + ${r}px)`:"auto"}),d=Gd(e=>e.element),u=Re(()=>{const i={};if(e&&t&&n){const{left:n,right:a}=d.getBoundingClientRect(),{left:s,right:l,width:c}=t.getBoundingClientRect(),{width:u}=e.getBoundingClientRect();if(o===_u.TOP||o===_u.BOTTOM){const e=(u-c)/2,t=s-e,o=l+e,d=Math.max(n+r-t,0),_=Math.max(o+r-a,0);Object.assign(i,{left:`calc(50% + ${d-_}px)`})}}return i},[r,d,o,e,n,t]),_=Re(()=>{const t={};if(e&&i&&n){const{bottom:e}=i.getBoundingClientRect(),{top:n}=d.getBoundingClientRect();switch(o){case _u.BOTTOM:const i=e-n-r;isNaN(i)||Object.assign(t,{top:`${i}px`})}}return t},[i,r,d,o,e,n]),p=Re(()=>{c(e=>{const t=h(h(h({},e),u()),_());return Be(t,e)?e:t})},[u,_]);return Oe(()=>(a?function e(){p(),s.current=requestAnimationFrame(e)}():(cancelAnimationFrame(s.current),p()),()=>{cancelAnimationFrame(s.current)}),[a,p]),l})({tooltipEl:null==O?void 0:O.current,wrappedEl:null==(p=S)?void 0:p.current,containerEl:null==r?void 0:r.current,position:a,margin:s,visible:b&&l||m,animating:u}),N=Cn("Tooltip_module_tooltip__d9b61844",Dn.VP_TOOLTIP,i,a===_u.LEFT&&"Tooltip_module_tooltipLeft__d9b61844"),k=ke(qd,{visible:C,children:ke("span",{id:d,ref:O,style:R,className:N,"aria-hidden":"true",children:n})}),D=$e(null==t||null==(v=t.props)?void 0:v.children),M=[k].concat(e(D));return qe(t,w,M)};function mu(e,t,n){return i=>{var o;(null==t||null==(o=t.props)?void 0:o[e])&&t.props[e](i),n(i)}}var fu={text:"Text_module_text__705900fc",sm:"Text_module_sm__705900fc",md:"Text_module_md__705900fc",lg:"Text_module_lg__705900fc",xl:"Text_module_xl__705900fc",bpxxs_fontsm:"Text_module_bpxxs_fontsm__705900fc",bpxxs_fontmd:"Text_module_bpxxs_fontmd__705900fc",bpxxs_fontlg:"Text_module_bpxxs_fontlg__705900fc",bpxxs_fontxl:"Text_module_bpxxs_fontxl__705900fc",bpxs_fontsm:"Text_module_bpxs_fontsm__705900fc",bpxs_fontmd:"Text_module_bpxs_fontmd__705900fc",bpxs_fontlg:"Text_module_bpxs_fontlg__705900fc",bpxs_fontxl:"Text_module_bpxs_fontxl__705900fc",bpsm_fontsm:"Text_module_bpsm_fontsm__705900fc",bpsm_fontmd:"Text_module_bpsm_fontmd__705900fc",bpsm_fontlg:"Text_module_bpsm_fontlg__705900fc",bpsm_fontxl:"Text_module_bpsm_fontxl__705900fc",bpmd_fontsm:"Text_module_bpmd_fontsm__705900fc",bpmd_fontmd:"Text_module_bpmd_fontmd__705900fc",bpmd_fontlg:"Text_module_bpmd_fontlg__705900fc",bpmd_fontxl:"Text_module_bpmd_fontxl__705900fc",bplg_fontsm:"Text_module_bplg_fontsm__705900fc",bplg_fontmd:"Text_module_bplg_fontmd__705900fc",bplg_fontlg:"Text_module_bplg_fontlg__705900fc",bplg_fontxl:"Text_module_bplg_fontxl__705900fc",bpxl_fontsm:"Text_module_bpxl_fontsm__705900fc",bpxl_fontmd:"Text_module_bpxl_fontmd__705900fc",bpxl_fontlg:"Text_module_bpxl_fontlg__705900fc",bpxl_fontxl:"Text_module_bpxl_fontxl__705900fc",bpxxl_fontsm:"Text_module_bpxxl_fontsm__705900fc",bpxxl_fontmd:"Text_module_bpxxl_fontmd__705900fc",bpxxl_fontlg:"Text_module_bpxxl_fontlg__705900fc",bpxxl_fontxl:"Text_module_bpxxl_fontxl__705900fc",bold:"Text_module_bold__705900fc",normal:"Text_module_normal__705900fc",medium:"Text_module_medium__705900fc",white:"Text_module_white__705900fc"};const hu={[tr.SM]:"sm",[tr.MD]:"md",[tr.LG]:"lg",[tr.XL]:"xl"},gu={[nr.BOLD]:fu.bold,[nr.NORMAL]:fu.normal,[nr.NUM_500]:fu.medium},Eu={[ir.WHITE]:fu.white},bu=({element:e="span",children:t,size:n=tr.SM,sizeMap:i,weight:o=nr.BOLD,color:r=ir.CUSTOM,className:a="",id:s="",ariaHidden:l=!1,role:c,containsMarkup:d=!1})=>{let u=[];i?Object.keys(i).forEach(e=>{const t=hu[i[e]];u.push(fu[`bp${e}_font${t}`])}):u.push(fu[hu[n]]);const _={className:Cn.apply(void 0,[fu.text].concat(u,[gu[o],Eu[r],a])),id:s,ariaHidden:l,role:c};return d&&(_.dangerouslySetInnerHTML={__html:t}),Fe(e,_,t)},Cu=e=>ke(jd,{className:e.classNames,href:e.url,tabIndex:e.url?"0":"-1",style:e.style,children:ke("img",{className:e.imgClassNames,src:e.img,alt:e.imgAlt})});var yu={roundedBox:"shared_module_roundedBox__fd03e359",hidden:"shared_module_hidden__fd03e359",focusable:"shared_module_focusable__fd03e359",focusableButton:"shared_module_focusableButton__fd03e359",focusableCircle:"shared_module_focusableCircle__fd03e359",focusableMarker:"shared_module_focusableMarker__fd03e359",visuallyHidden:"shared_module_visuallyHidden__fd03e359"};const Tu={[Qo.PRIMARY]:"Button_module_primary__779846a6",[Qo.ALTERNATIVE]:"Button_module_alternative__779846a6"},Lu={[Zo.MD]:"Button_module_md__779846a6",[Zo.SM]:"Button_module_sm__779846a6",[Zo.XS]:"Button_module_xs__779846a6"},Au={[Zo.MD]:"Button_module_iconMd__779846a6",[Zo.SM]:"Button_module_iconSm__779846a6"},Su=He((e,t)=>{let{children:n,className:i,color:o=Qo.CUSTOM,size:r=Zo.CUSTOM,focusable:a=!0,icon:s,iconPosition:l=Jo.LEFT,iconSize:c=Zo.CUSTOM,type:d,style:u={}}=e,_=m(e,["children","className","color","size","focusable","icon","iconPosition","iconSize","type","style"]);const p=Cn("Button_module_button__779846a6",a&&yu.focusable,Tu[o],Lu[r],s&&"Button_module_icon__779846a6",s&&Au[c],Mn.EXCLUDE_GLOBAL_BUTTON_STYLES,i);return ke("button",h(h({className:p,ref:t,type:d||er.BUTTON,style:u},_),{},{children:[l===Jo.LEFT&&s,n&&ke("span",{className:"Button_module_buttonChildren__779846a6",children:n}),l===Jo.RIGHT&&s]}))});const Iu=["Shift","Tab"],Ou=!!o.iOS&&"SearchInput_module_mobileSafari__60ee88ba",Pu=He(({onChange:e,onEnter:t,onSearchIterate:n,value:i,numSearchResults:o,ariaControls:r,disabled:a,placeholder:s,searchItemIterator:l},c)=>{var d;const u={defaultPlaceholder:"Search",clearResults:"Clear Search Results",previousResult:"Previous search result",nextResult:"Next search result",noResults:"No results",numberResults:1===o?o+" result":o+" results"},[_,p]=Pe(!1),[v,m]=Pe(!1),f=we(null),g=i.length>0,E=(e=>{const[t,n]=Pe(!1);return ic("Shift",()=>{n(!0)},()=>{n(!1)}),t})();let b=s;o&&_&&(b=u.numberResults),!o&&i&&_&&(b=u.noResults);const[C,y]=Pe(u.nextResult),[T,L]=Pe(u.previousResult);s=null!==(d=s)&&void 0!==d?d:u.defaultPlaceholder,Oe((function(){return clearTimeout(f.current),f.current=setTimeout(()=>{p(!0)},1e3),()=>clearTimeout(f.current)}),[i]);const A=()=>{(null==c?void 0:c.current)&&(null==c.current.focus||c.current.focus())},S=()=>{e&&e(""),t&&t(""),A()},I=e=>{let t;null==e||e.preventDefault(),null==e||e.stopPropagation(),t=l{let t;null==e||e.preventDefault(),null==e||e.stopPropagation(),t=l>0?l-1:o-1,o&&L("Result "+(t+1)+" of "+o),n&&n(t)},P=Cn("SearchInput_module_inputForm__60ee88ba",g&&"SearchInput_module_active__60ee88ba"),w=Cn("SearchInput_module_searchButton__60ee88ba",yu.focusableButton),R=0!==o&&Number.isInteger(l)?`${l+1}/${o}`:"0/0";return(ke("form",{className:P,role:"search","data-component-type":"SearchInput","data-focused":`${v}`,"data-disabled":`${a}`,onReset:()=>S(),onSubmit:e=>{e.preventDefault(),t&&t(i),E?O():I()},onClick:A,children:[!g&&ke("div",h(h({"data-icon":"search",className:"SearchInput_module_searchIcon__60ee88ba"},vn(A)),{},{children:ke(Xd,{name:gc.SEARCH,"aria-hidden":"true"})})),ke("input",{"aria-live":"polite",type:"text",ref:c,className:Ou,onFocus:()=>m(!0),onBlur:()=>m(!1),onKeyDown:e=>{Iu.includes(e.key)||e.stopPropagation()},"aria-controls":r,onInput:t=>{t.preventDefault(),e&&e(t.target.value),p(!1)},value:i,placeholder:s,"aria-describedby":"searchResultsStatus",disabled:a}),i&&ke("span",{id:"searchResultsStatus","aria-live":"polite",className:yu.visuallyHidden,children:b}),g&&ke(We,{children:[Number.isInteger(l)&&ke("div",{"data-purpose":"search-item",className:"SearchInput_module_searchItem__60ee88ba","aria-hidden":"true",children:R}),ke(Su,h(h({"aria-live":"polite"},vn(O)),{},{"data-purpose":"decrement-search","aria-label":T,icon:ke(Xd,{name:gc.CHEVRON_UP}),iconSize:Zo.SM,className:w,disabled:a||!o,onBlur:()=>{L(u.previousResult)}})),ke(Su,h(h({"aria-live":"polite"},vn(I)),{},{"aria-label":C,"data-purpose":"increment-search",icon:ke(Xd,{name:gc.CHEVRON_DOWN}),iconSize:Zo.SM,className:w,disabled:a||!o,onBlur:()=>{y(u.nextResult)}})),ke(Su,h(h({},vn(S)),{},{"data-icon":"close","data-purpose":"close","aria-label":u.clearResults,icon:ke(Xd,{name:gc.CLOSE_CIRCLE,"data-icon":"close"}),iconSize:Zo.SM,type:er.RESET,className:w,disabled:a}))]})]}))});const wu=e=>{let{className:t="",size:n=or.SM}=e,i=m(e,["className","size"]);const o=Cn(Dn.VP_SPIN,n===or.LG&&"Spinner_module_lg__c0a9f13b",n===or.SM&&"Spinner_module_sm__c0a9f13b",t);return ke(Xd,h({"data-component-type":"spinner",name:gc.SPINNER,className:`Spinner_module_spinner__c0a9f13b ${o}`},i))};const Ru=({cues:e,language:t,direction:n,className:i,fontSize:o,fontFamily:a,fontOpacity:s,color:l,windowOpacity:c,windowColor:d,bgOpacity:u,bgColor:_,edgeStyle:p,height:v,style:m={}})=>{const f=Ba(),g=(e,t)=>{const n=new r(pd[e]||e);return n.alpha=t/100,n.rgba},E=h(h(h(h(h({},{fontSize:`${(e=>Math.max(10,Math.round(.045*v*e)))(o)}px`}),(()=>{const e=((e,t)=>f.fontFamily.items.find(e=>e.id===t))(0,a);return{fontVariant:"small_capitals"===e.id?"small-caps":"initial",fontFamily:e.value}})()),{color:g(l,s)}),(()=>{const e=`0, 0, 0, ${Number(s)/100}`;let t;switch(p){case"shadow":t=`2px 2px 2px rgba(${e})`;break;case"outline":t=`1px 0px 1px rgba(${e}), 0px 1px 1px rgba(${e}), -1px 0px 1px rgba(${e}), 0px -1px 1px rgba(${e})`;break;case"raised":t=`rgba(${e}) 1px 1px, rgba(${e}) 1.5px 1.5px`;break;case"depressed":t=`rgba(${e}) -1px -1px, rgba(${e}) -1.5px -1.5px`;break;default:t="none"}return{textShadow:t}})()),m),b=h({},{backgroundColor:g(d,c)}),C=h({},{background:g(_,u)}),y=Cn(Dn.VP_CAPTIONS,"CaptionsRenderer_module_captions__f2659eec",i),T=(()=>{let t=[];return e.forEach(e=>{const n=e.html.split("
");t=t.concat(n)}),t})();return ke("div",{className:y,"aria-live":"assertive",lang:t,dir:n,style:E,children:ke("span",{className:"CaptionsRenderer_module_captionsWindow__f2659eec",style:b,children:T.map(e=>ke("span",{className:`CaptionsRenderer_module_captionsLine__f2659eec ${Dn.VP_CAPTIONS_LINE}`,style:C,dangerouslySetInnerHTML:{__html:e}},e))})})};const Nu=He(({children:e,className:t,style:n,role:i="dialog",ariaLabelledby:o},r)=>ke("div",{role:i,"aria-labelledby":o,className:`ToastBase_module_toast__fb6cbe17 ${t||""}`,ref:r,style:n,children:e}));const ku=()=>ke("div",{className:"ToastDivider_module_divider__b81b458b"});const Du=e=>{let{tooltipLabel:t,icon:n,onClick:i,containerRef:o,fullToast:r,className:a,onMouseEnter:s,onMouseLeave:l}=e,c=m(e,["tooltipLabel","icon","onClick","containerRef","fullToast","className","onMouseEnter","onMouseLeave"]);const d=Gd(e=>e.appearance.playerBreakpoint),u=["xl","xxl"].includes(d)?16:8,_=Cn("ToastButton_module_toastButton__a3f96132",r&&"ToastButton_module_fullToast__a3f96132",a);return t?ke(vu,{tooltipContent:t,position:_u.BOTTOM,containerEl:o,margin:u,children:ke(Su,h({color:r?Qo.PRIMARY:Qo.ALTERNATIVE,icon:n,onClick:i,onMouseEnter:s,onMouseLeave:l,className:_},c))}):ke(Su,h({color:r?Qo.PRIMARY:Qo.ALTERNATIVE,icon:n,onClick:i,onMouseEnter:s,onMouseLeave:l,className:_},c))},Mu={[Xo.XXS]:tr.MD,[Xo.LG]:tr.LG,[Xo.XXL]:tr.XL},Bu=({onClick:e,onMouseEnter:t,onMouseLeave:n,label:i})=>ke(Du,{fullToast:!0,onClick:e,onMouseEnter:t,onMouseLeave:n,children:ke(bu,{sizeMap:Mu,children:i})});const Vu=({transitionTime:e,delay:t=400,ariaLabelledby:n})=>{const i=`width ${e-t}ms linear`,[o,r]=Pe({});return Oe(()=>{const e=setTimeout(()=>{r({transition:i,width:"100%"})},t);return()=>{clearTimeout(e)}},[r,i,t]),ke("div",{className:"ToastProgress_module_progressWrapper__c722ee37",role:"progressbar","aria-labelledby":n,children:ke("div",{className:"ToastProgress_module_progress__c722ee37",style:o})})};const xu=({id:e,children:t,className:n})=>{const i=Cn("ToastMessage_module_label__bad39dc9",n);return ke(bu,{id:e,weight:nr.NORMAL,className:i,color:ir.WHITE,sizeMap:{[Xo.XXS]:tr.SM,[Xo.SM]:tr.MD,[Xo.XL]:tr.LG,[Xo.XXL]:tr.XL},children:t})};const Uu=({onClick:e,describedBy:t,selected:n})=>ke(Du,{className:`CloseToastButton_module_close__cfcb6e11 ${n?"CloseToastButton_module_selected__cfcb6e11":""}`,icon:ke(Xd,{name:gc.DISMISS_X}),onClick:e,"aria-label":"Close","aria-describedby":t}),Hu=({children:e,targetContent:t,onContentChange:n=ai,delay:i=250,styleOverrides:o,fadeIn:r=!0,fadeOut:a=!0})=>{const s=we(null),[l,c]=Pe(t),d=t!==l,u=d&&!l,_=!d&&!!t;return clearTimeout(s.current),u?(c(t),n(t)):d&&(s.current=setTimeout((function(){c(t),n(t)}),i)),ke(qd,{fadeIn:r,fadeOut:a,visible:_,duration:i,styleOverrides:o,children:null==e?void 0:e(l)})};let Fu;!function(e){e.LOAD_TIMEOUT="Load timeout"}(Fu||(Fu={}));const Gu=1e3,Yu=100*Math.random()<=100,Wu=[jt.PLAYER_LOGIN_SUCCESSFUL,jt.PLAYER_LOGIN_FAILED,jt.COMPONENT_VISIBILITY_CHANGE,jt.APP_BREAKPOINT_CHANGE],$u=e=>{const{id:t,url:n,title:i,visible:o,userLoggedIn:r,appBreakpoint:a,config:s,onIframeLoad:l=ai,onError:c=ai,onRemoteComponentReady:d=ai,waitForReady:u=!1,isAnimating:_=!1,timeout:p=Gu,className:v}=e,m=we(!1),[f,g]=Pe(!1),[E,b]=Pe(!1),C=we(le()),y=we(null),T=we(null),L=Cn("RemoteComponent_module_remoteComponent__c2722e03",E&&"RemoteComponent_module_loaded__c2722e03",v),A=we(Date.now()),S=()=>{u&&b(!0),d()};Oe((function(){y.current&&function(e,t,n){const{url:i,onPlay:o=ai,onPause:r=ai,onSeek:a=ai,onClose:s=ai,onLoginRequest:l=ai,onRemoteComponentReady:c=ai,onError:d=ai}=e,u=ft(i);t.configureClient(n.contentWindow,u),t.extendMethods({play:o,pause:r,set currentTime(e){a(e)},closeRemoteComponent:s,remoteComponentRequestLogin:l,remoteComponentReady:c,reportRemoteComponentError:d}),Wu.forEach((function(e){t.listeners[e]=!0}))}(h(h({},e),{},{onRemoteComponentReady:S}),C.current,y.current),clearTimeout(T.current),T.current=setTimeout(()=>{m.current||((e=>{m.current=!1,g(!0),c(e)})({message:Fu.LOAD_TIMEOUT,code:408}),Or(vr.REMOTE_COMPONENT_TIMEOUT,s,{component_url:n,component_timeout:p}))},p)}),[]),Oe((function(){r&&C.current.emit(jt.PLAYER_LOGIN_SUCCESSFUL)}),[r]),Oe((function(){o||document.activeElement!==y.current||y.current.blur(),_||C.current.emit(jt.COMPONENT_VISIBILITY_CHANGE,o)}),[o,_]),Oe((function(){C.current.emit(jt.APP_BREAKPOINT_CHANGE,a)}),[a]),Oe((function(){A.current=Date.now()}),[n]);const I=Cn("RemoteComponent_module_spinner__c2722e03",!E&&!f&&"RemoteComponent_module_visible__c2722e03");return ke(We,{children:[ke(wu,{className:I}),ke("iframe",{id:t,ref:y,onLoad:()=>{f||(clearTimeout(T.current),m.current=!0,l(),Yu&&Or(vr.REMOTE_COMPONENT_LOADED,s,{component_url:n,component_load_time:Date.now()-A.current}),u||b(!0))},title:i,src:n,className:L})]})},qu=e=>{const{onPlay:t,onPause:n,onSeek:i,onLoginRequest:o,url:r,visible:a}=e,s=m(e,["onPlay","onPause","onSeek","onLoginRequest","url","visible"]),l=Gd(e=>e.setPlayback),c=Gd(e=>e.setUser),d=Gd(e=>e.user.loggedIn),u=Gd(e=>e.appearance.appBreakpoint),_=Pc(e=>e.colors.colorOne),p=Pc(e=>e.colors.colorTwo),v=Pc(e=>e.colors.colorThree),f=Pc(e=>e.colors.colorFour),g=Gd(e=>e.config),[E,b]=Pe(Ku(r,C()));function C(){return{loggedIn:d,appBreakpoint:u,visible:a,colorOne:_,colorTwo:p,colorThree:v,colorFour:f}}return Oe((function(){b(Ku(r,C()))}),[r]),ke($u,h({userLoggedIn:d,onPlay:()=>{l("paused",!1),null==t||t()},onPause:()=>{l("paused",!0),null==n||n()},onSeek:e=>{l("currentTime",e),null==i||i(e)},onLoginRequest:()=>{c("loggedIn",1),null==o||o()},appBreakpoint:u,url:E,visible:a,config:g},s))};function Ku(e,t){const i=Object.keys(t).filter(e=>void 0!==t[e]),o=Te(t,i);return n(e,o)}const ju=({playerBreakpoint:e})=>{const t=[Xo.XS,Xo.XXS].includes(e),n=t?gc.VIMEO_SMALL:gc.VIMEO;return ke(Xd,{name:n,"aria-hidden":!0,[t?"data-vimeo-small-icon":"data-vimeo-icon"]:!0})};const zu=({url:e,className:t})=>{const n={backgroundImage:`url(${e})`},i=Cn("Image_module_image__2d6414b2",t);return ke("div",{className:i,style:n})};const Xu=e=>{let{embedCode:t,onClick:n}=e,i=m(e,["embedCode","onClick"]);const[o,r]=Pe(!1),a=we(null);return ke(Su,h(h({onClick:()=>{r(!0),mn(t),n(),clearTimeout(a.current),a.current=setTimeout((function(){r(!1)}),2e3)},className:"CopyEmbedCodeButton_module_copyEmbedCodeButton__ac44b4e7"},i),{},{children:o?"Copied!":"Copy"}))},Zu=({visible:e})=>{const t=Gd(e=>e.embed.allowEmbedShare),n=Gd(e=>e.embed.embedCode),i=Gd(e=>e.embed.videoUrl),o=Gd(e=>e.displayList.outro),r=Gd(e=>e.embed.embedOnlyShare),a=we(null),s=oc(),l={title:"Embed",subtitle:"Add this video to your site with the embed code below.",customize:`
`+"Customize this embed on Vimeo"},c=Cn("EmbedShare_module_embedShareContainer__fb691e4b",r&&"EmbedShare_module_embedOnlyShare__fb691e4b",!e&&"EmbedShare_module_hidden__fb691e4b"),d=Re(e=>{const t=o?"end_screen":"share_overlay";s(vr.COPY_VIDEO_EMBED_CODE,{location:`player_embed_${t}_${e}`,path:window.location.pathname})},[o,s]);return Oe(()=>{a.current&&a.current.setSelectionRange(0,n.length)},[n]),t&&ke(Ue,{duration:200,alwaysMounted:!0,in:e,styles:Qu(),children:ke("section",{className:c,children:ke("div",{children:[ke(bu,{element:"h1",color:ir.WHITE,size:tr.XL,className:"shared_module_shareTitle__b1d5c277",children:l.title}),ke(bu,{element:"p",color:ir.WHITE,className:"EmbedShare_module_embedShareSubtitle__fb691e4b",size:tr.MD,containsMarkup:!0,children:l.subtitle}),ke("div",{className:"EmbedShare_module_embedShareEmbedCode__fb691e4b",children:[ke("div",{children:ke("input",{onClick:e=>{e.currentTarget.select()},onCut:()=>d("keyboard"),onCopy:()=>d("keyboard"),className:"EmbedShare_module_embedInput__fb691e4b",readOnly:!0,"aria-readonly":"true",value:n,ref:a})}),ke(Xu,{embedCode:n,onClick:()=>d("button")})]}),ke(bu,{element:"p",size:tr.MD,className:"shared_module_shareFootnote__b1d5c277 EmbedShare_module_shareFootnote__fb691e4b",containsMarkup:!0,children:l.customize})]})})})};function Qu(){const e={transform:"translateX(125%)",opacity:0},t={transform:"translateX(-17%)",opacity:1};return{enter:h({visibility:"hidden"},e),enterActive:h({transition:"200ms",visibility:"visible"},t),enterDone:{transform:"translateX(-17%)"},exit:h({},t),exitActive:h(h({},e),{},{transition:"200ms"}),exitDone:{visibility:"hidden"}}}const Ju={facebook:gc.FACEBOOK,twitter:gc.TWITTER,tumblr:gc.TUMBLR,email:gc.EMAIL,embed:gc.EMBED},e_={facebook:Wt._facebookButtonPressed,twitter:Wt._twitterButtonPressed,tumblr:Wt._tumblrButtonPressed,email:Wt._emailButtonPressed,embed:Wt._embedButtonPressed},t_={facebook:"Share on Facebook",twitter:"Share on Twitter",tumblr:"Share on Tumblr",email:"Share via Email",embed:"Get embed code"},n_=He(({destination:e,onClick:t},i)=>{const o=Gd(e=>e.title.title),r=Gd(e=>e.title.ownerName),a=Gd(e=>e.embed.shareUrl),s=Gd(e=>e.embed.videoUrl),l=Gd(e=>e.embed.playerShareUrl),c=Gd(e=>e.embed.videoUnlistedHash),d=Gd(e=>e.events),u={emailSubject:"Check out “"+o+"” from "+r+" on Vimeo",emailBody:"Check out “"+o+"” from "+r+" on Vimeo.\n\nThe video is available for your viewing pleasure at "+a+"\n\nIf you like this video, make sure you share it, too!\n\nVimeo is filled with lots of amazing videos. See more at https://vimeo.com."},_=Re(e=>"email"===e?`mailto:?subject=${encodeURIComponent(u.emailSubject)}&body=${encodeURIComponent(u.emailBody)}`:"embed"===e?`${s}#share`:n(`${l}/${e}`,c?{h:c}:{}),[l,c,s,u.emailBody,u.emailSubject]),p=Re(n=>{n.preventDefault(),d.fire(e_[e],_(e)),t(e,n.currentTarget.href)},[d,t]);return ke(jd,{ref:i,className:"SocialShareLink_module_shareButton__5552a811",role:"button",href:_(e),onClick:p,ariaLabel:t_[e],children:ke(Xd,{name:Ju[e]})})});const i_=({visible:e,onEmbedClick:t})=>{const n=Gd(e=>e.embed.allowEmbedShare),i=Gd(e=>e.embed.shareUrl),o=we(null),r=we(null),a=Cn("SocialShare_module_shareButtons__8480906e"),s=Cn("SocialShare_module_socialShareContainer__8480906e",!e&&"SocialShare_module_hidden__8480906e"),l=(e,n)=>{"embed"!==e?"email"!==e?Et(n,e,{width:600,height:600}):window.top.location=n:null==t||t()};return ke(Ue,{duration:200,alwaysMounted:!0,in:e,styles:o_(),children:ke("section",{className:s,children:[ke(bu,{element:"h1",color:ir.WHITE,size:tr.XL,className:"shared_module_shareTitle__b1d5c277",children:"Share"}),ke("ul",{className:a,children:[ke("li",{className:"SocialShare_module_shareButtonItem__8480906e",children:ke(n_,{destination:"facebook",onClick:l,ref:o})}),ke("li",{className:"SocialShare_module_shareButtonItem__8480906e",children:ke(n_,{destination:"twitter",onClick:l})}),ke("li",{className:"SocialShare_module_shareButtonItem__8480906e",children:ke(n_,{destination:"tumblr",onClick:l})}),i&&ke("li",{className:"SocialShare_module_shareButtonItem__8480906e",children:ke(n_,{destination:"email",onClick:l})})]}),n&&ke("ul",{className:a,children:ke("li",{className:"SocialShare_module_shareButtonItem__8480906e",children:ke(n_,{onClick:l,destination:"embed",ref:r})})}),i&&ke("p",{className:"shared_module_shareFootnote__b1d5c277",children:ke(jd,{className:"SocialShare_module_clipUrl__8480906e",href:i,children:i})})]})})};function o_(){const e={transform:"translateX(-125%)",opacity:0},t={transform:"translateX(0)",opacity:1};return{enter:h({visibility:"hidden"},e),enterActive:h({transition:"200ms",visibility:"visible"},t),exit:h({},t),exitActive:h(h({},e),{},{transition:"200ms"}),exitDone:{visibility:"hidden"}}}const r_=({onEmbedShareVisibilityChange:e})=>{const t=Gd(e=>e.embed.embedOnlyShare),[n,i]=Pe(t),o=Cn("Share_module_backButton__248d76cb",n&&"Share_module_visible__248d76cb");return Oe((function(){t!==n&&i(t)}),[t]),Oe((function(){null==e||e()}),[n]),ke(We,{children:[ke("div",{className:"Share_module_shareWrapper__248d76cb",children:[ke(i_,{visible:!n,onEmbedClick:()=>i(!0)}),ke(Zu,{visible:n})]}),!t&&ke(Su,h(h({className:o,onClick:()=>i(!1),"aria-label":"Back",tabIndex:n?0:-1},pu),{},{children:ke(Xd,{className:"Share_module_backButtonIcon__248d76cb",name:gc.PREVIOUS})}))]})};const a_={enter:{opacity:0,animation:"wiggle 300ms linear 1"},enterActive:{opacity:1,transition:"opacity 300ms",animation:"wiggle 300ms linear 1"},enterDone:{opacity:1},exit:{opacity:1},exitActive:{opacity:0,transition:"opacity 300ms"},exitDone:{display:"none"}},s_=({message:e,visible:t,wrapperEl:n})=>{const[i,o]=Pe(t),r=n&&mt(n);return Oe(()=>{let e;return clearTimeout(e),t?(o(!0),e=setTimeout(()=>{o(!1)},5e3)):o(!1),()=>clearTimeout(e)},[t]),ke(Ue,{in:i,styles:a_,children:ke("div",{className:"ValidationBubble_module_validationBubble__74475ac4",style:{top:(null==r?void 0:r.height)+4+"px"},children:ke(bu,{weight:nr.BOLD,className:"ValidationBubble_module_message__74475ac4",children:e})})})},l_=He((e,t)=>{let{on:n,label:i,icon:o,onClick:r,className:a="",children:s}=e,l=m(e,["on","label","icon","onClick","className","children"]);const c=Gd(e=>e.displayList.sideDock);return ke(Su,h(h({tabIndex:c?0:-1,ref:t,size:Zo.SM,color:Qo.PRIMARY,icon:o,iconSize:Zo.SM,"aria-label":i,onClick:r,className:Cn(n&&Dn.ON,a)},l),{},{children:s}))}),c_=()=>{const{enabled:e,icon:t,label:n,onSelect:i}=bc();return e&&ke(Kd,{text:n,children:ke(l_,{label:n,className:Dn.COLLECTIONS_BUTTON,onClick:i,icon:ke(Xd,{name:t,className:Dn.COLLECTIONS_ICON,focusable:"false"})})})},d_=()=>{const e=Gd(e=>e.user.liked),{label:t,ariaLabel:n,enabled:i,icon:o,onSelect:r}=yc();return i&&ke(Kd,{text:t,children:ke(l_,{label:n,className:Dn.LIKE_BUTTON,on:e,icon:ke(Xd,{name:o,className:Dn.LIKE_ICON,focusable:"false"}),"data-like-button":!0,onClick:r})})};const u_=()=>{const{label:e,icon:t,onSelect:n,enabled:i}=Tc();return i&&ke(Kd,{text:e,children:ke(l_,{label:e,"data-share-button":!0,onClick:n,icon:ke(Xd,{name:t,className:"share-icon ShareButton_module_shareIcon__e4957da4",focusable:"false"})})})};const __=()=>{const e=Gd(e=>e.vod.purchased),t=Gd(e=>e.vod.isExpiring),{onSelect:n,enabled:i,icon:o,label:r}=Lc(),a=vn(n);return i&&ke("div",h(h({},a),{},{className:`VODButton_module_vodButtonContainer__33b65469 ${t?"VODButton_module_expiring__33b65469":""}`,"data-vod-expiring":t,"data-vod-purchased":e,"data-vod-button":!0,children:ke(Su,{size:Zo.SM,color:Qo.PRIMARY,iconPosition:Jo.RIGHT,className:Cn(Dn.VOD_BUTTON,"VODButton_module_vodButton__33b65469",e&&Dn.ON),"data-vod-button":!0,icon:ke(Xd,{name:o,className:Cn(Dn.VOD_ICON,"VODButton_module_icon__33b65469"),"data-vod-icon":!0}),iconSize:Zo.SM,children:ke("span",{"data-vod-button-label":!0,children:r})})}))},p_=()=>{const e=Gd(e=>e.user.watchLater),{enabled:t,label:n,ariaLabel:i,onSelect:o,icon:r}=Ac();return t&&ke(Kd,{text:n,children:ke(l_,{label:i,className:Dn.WATCH_LATER_BUTTON,on:e,onClick:o,icon:ke(Xd,{name:r,className:Dn.WATCH_LATER_ICON,focusable:"false"}),"data-watch-later-button":!0})})};const v_=()=>{const[e,t]=Pe(!1),[n,i]=Pe(!1),o=we(null),r=Gd(e=>e.displayList.aiWidget),a=we(null),s=we(!1),{label:l,onSelect:c,enabled:d,icon:u}=Ec(),_=r?[xn.AI_WIDGET_ID,Bn.RIGHT_CONTENT_AREA].join(" "):Bn.RIGHT_CONTENT_AREA;Oe(()=>{function e(){document.activeElement.id===xn.AI_WIDGET_ID&&(s.current=!0)}return window.addEventListener("blur",e),()=>{window.removeEventListener("blur",e)}},[]),ic("Tab",e=>{const t=document.activeElement===document.body;var n;s.current&&t&&(e.preventDefault(),s.current=!1,null==(n=a.current)||n.focus())});const p=()=>{clearTimeout(o.current),t(!1),i(!0)},v=()=>{clearTimeout(o.current),i(!1),t(!0),o.current=setTimeout((function(){t(!1)}),420)},m=Cn("AIButton_module_button__51e5bbdf",n&&"AIButton_module_transitionIn__51e5bbdf",e&&"AIButton_module_transitionOut__51e5bbdf"),f={backgroundColor:"rgb(0,0,0,0.9)",transitionProperty:n||e?"background-position":"none"};return d&&ke(We,{children:[ke("style",{children:"\n .AIButton_module_button__51e5bbdf {\n --shimmer-speed-in: 450ms;\n --shimmer-speed-out: 420ms;\n }\n "}),ke(Kd,{text:l,children:ke(l_,h({label:l,"data-ai-button":!0,onClick:c,ref:a,className:m,"aria-expanded":r,"aria-controls":_,"aria-haspopup":"true",onFocus:p,onBlur:v,onPointerEnter:e=>{"mouse"===e.pointerType&&p()},onPointerLeave:e=>{"mouse"===e.pointerType&&v()},style:f,icon:ke(Xd,{fill:"#fff",name:u,focusable:"false",className:"AIButton_module_icon__51e5bbdf"})},pu))})]})},m_=({isMenuDisplayed:e,setMenuDisplayed:t})=>{const n=Ic(),i=Object.keys(n).filter(e=>n[e].enabled).map(e=>{const t=n[e];return{id:e,label:t.label,icon:t.icon}});return ke(Zd,{type:Xl.SIDEDOCK,ariaLabel:"More options",isMenuDisplayed:e,setMenuDisplayed:t,panel:Zl.SIDEDOCK,panelContent:ke(su,{items:i,onSelect:e=>{const t=e.currentTarget.dataset.id;(0,n[t].onSelect)(e)}}),headerContent:ke(tu,{title:"More options",onClose:()=>t(!1),isMenuBlockingUI:!0}),isMenuBlockingUI:!0})},f_=({onClick:e})=>{const t=Ic();return Object.values(t).filter(e=>e.enabled).length?ke(Kd,{text:"More options",children:ke(l_,{label:"More options",onClick:e,icon:ke(Xd,{name:gc.VERTICAL_ELLIPSIS,focusable:"false"})})}):null},h_=()=>{const e=Gd(e=>e.displayList.sideDock),t=Gd(e=>e.appearance.fullscreen),n=Gd(e=>e.displayList.outro),i=Gd(e=>e.vod.purchased),o=Gd(e=>e.displayList.menu),r=Gd(e=>e.setAppearance),a=Gd(e=>e.setDisplayList),s=Lc(),l=dc(rr.SIDE_DOCK_MENU),[c,d]=Pe(!1),u=e=>{a("menu",e),d(e)};o||d(!1);const _={className:Cn(Dn.VP_SIDEDOCK,"SideDock_module_root__63ca0e19",e&&"SideDock_module_visible__63ca0e19",n&&"SideDock_module_outroVisible__63ca0e19",t&&"SideDock_module_fullscreen__63ca0e19"),onPointerEnter:()=>r("mousedOverSidedock",!0),onMouseEnter:()=>r("mousedOverSidedock",!0),onPointerLeave:()=>r("mousedOverSidedock",!1),onMouseLeave:()=>r("mousedOverSidedock",!1)};return ke(Jd,{children:[ke("div",h(h({},_),{},{"data-sidedock":!0,children:[s.enabled&&!i&&ke(__,{}),ke(qd,{visible:e,children:ke("div",{className:"SideDock_module_sidedockInner__63ca0e19","data-sidedock-inner":!0,children:l?ke(f_,{onClick:()=>u(!0)}):ke(We,{children:[s.enabled&&i&&ke(__,{}),ke(d_,{}),ke(p_,{}),ke(c_,{}),ke(u_,{}),ke(v_,{})]})})})]})),l&&ke(m_,{isMenuDisplayed:c,setMenuDisplayed:u})]})};let g_,E_;!function(e){e.MARKER_SEEKED="seeked",e.MARKER_ENDED="ended",e.MARKER_UPSWITCH="upswitch",e.MARKER_DOWNSWITCH="downswitch",e.MARKER_SWITCH_COMPLETE="switchcomplete",e.MARKER_RESIZE="resize",e.MARKER_SCANNER_CHANGE="scannerchange",e.MARKER_FILE_CHANGE="filechange",e.MARKER_STALLED="stalled",e.MARKER_BUFFER_GAP_JUMP="buffergapjump",e.MARKER_BUFFER_GAP_JUMP_PREVENT="buffergapjumpprevent",e.MARKER_STALL_JUMP="stalljump"}(g_||(g_={})),function(e){e.MARKER_SEEKED="#0088cc",e.MARKER_ENDED="#503873",e.MARKER_UPSWITCH="#5a9e02",e.MARKER_DOWNSWITCH="#d93636",e.MARKER_RESIZE="#FF8A00",e.MARKER_SCANNER_CHANGE="#e9ff00",e.MARKER_FILE_CHANGE="#b5d3e2",e.MARKER_STALLED="#f44283"}(E_||(E_={}));const b_=Object.entries(g_).reduce((e,[t,n])=>(e[n]=E_[t],e),{}),C_=({max:e=1,timeSeries:t=[],debugMarkers:n=[]})=>{const i=t.length,o=i<100?0:i-100,r=t[o],a=t[i-1],s=r?r.time:0,l=a?a.time:0,c=t.slice(o).map(t=>{let n=(t.time-s)/(l-s)*250,i=14-14*t.value/e;return isNaN(i)&&(i=0),isNaN(n)&&(n=0),`${n},${function(e,t,n){return Math.min(Math.max(e,0),14)}(i)}`}).join(" ");return ke("svg",{width:250,height:14,viewBox:"0 0 250 14",children:[ke("g",{children:ke("polyline",{stroke:"white",fill:"none",points:c})}),ke("g",{children:!!n.length&&n.filter(e=>e.t>=s&&e.t<=l).map((e,t)=>{let n=(e.t-s)/(l-s)*250;return isNaN(n)&&(n=0),ke("g",{children:ke("line",{className:"BandwidthSeriesDisplay_module_marker__e795ff85",x1:n,y1:"0",x2:n,y2:14,strokeWidth:"1",stroke:b_[e.type]})},`${e.t}-${t}`)})})]})};const y_=({title:e="",value:t})=>ke("li",{children:ke("dl",{children:[ke("dt",{children:e}),ke("dd",{children:t})]})}),T_=({payloadId:e,showSessionId:t})=>{const n=Gd(e=>e.debug.codec),i=Gd(e=>e.debug.isLive),o=Gd(e=>e.debug.isDash),r=Gd(e=>e.debug.delivery),a=Gd(e=>e.debug.resolution),s=Gd(e=>e.debug.embedSize),l=Gd(e=>e.debug.drmEnabled),c=Gd(e=>e.debug.sessionId),d=Gd(e=>e.debug.ecdnVendor),u=Gd(e=>e.debug.p2pSources),_=Gd(e=>e.debug.p2pOffload),p=Gd(e=>e.debug.totalFrames),v=Gd(e=>e.debug.liveLatency),m=Gd(e=>e.debug.currentTime),f=Gd(e=>e.debug.bufferEnd),g=Gd(e=>e.debug.bufferAhead),E=Gd(e=>e.debug.bufferTarget),b=Gd(e=>e.debug.presentationDelay),C=Gd(e=>e.debug.droppedFrames),y=Gd(e=>e.debug.vrHeadsetName),T=Gd(e=>e.debug.liveSessionID),L=Gd(e=>e.debug.bandwidthKbps),A=Gd(e=>e.debug.bandwidthMinKbps),S=Gd(e=>e.debug.bandwidthMaxKbps),I=Gd(e=>e.debug.separateAudioVideo),O=Gd(e=>e.debug.bandwidthSeriesData),P=Gd(e=>e.debug.droppedFramesPercent),w=Gd(e=>e.debug.clipId),{max:R,debugMarkers:N,timeSeries:k}=O;return ke("ul",{className:"DebugValues_module_values__a8fe72d5",children:[w&&ke("li",h(h({},vn(()=>{mn(`${w}`)})),{},{children:ke("dl",{children:[ke("dt",{children:"Clip ID:"}),ke("br",{}),ke("dd",{className:"DebugValues_module_clipId__a8fe72d5",children:w})]})})),!!r&&ke(y_,{title:"Delivery:",value:r}),!!n&&ke(y_,{title:"Codec:",value:n}),!!a&&ke(y_,{title:"Playing:",value:a}),!!s&&ke(y_,{title:"Embed Size:",value:s}),o&&ke(y_,{title:"Separate AV:",value:`${I}`}),(o||i)&&ke(y_,{title:"Dropped Frames:",value:`${C} / ${p} - ${P}`}),!!y&&ke(y_,{title:"VR Hardware:",value:y}),!!d&&ke(We,{children:[ke(y_,{title:"eCDN Vendor:",value:d}),ke(y_,{title:"Peers - P2P Delivery:",value:`${u} - ${_}`})]}),l&&ke(y_,{title:"DRM:",value:l}),i&&ke(We,{children:[!!T&&ke(y_,{title:"Live Session ID:",value:T}),ke(y_,{title:"Live Latency / Target:",value:`${v} / ${b}`})]}),ke(y_,{title:"Playhead / Buffer End:",value:`${m} / ${f}`}),!!E&&ke(y_,{title:"Buffer Ahead / Target:",value:`${g} / ${E}`}),(o||i)&&ke(We,{children:[ke(y_,{title:"Bandwidth:",value:L}),ke("div",{className:"DebugValues_module_bandwidthMinMax__a8fe72d5",children:["(",ke("b",{className:"DebugValues_module_bandwidthMin__a8fe72d5",children:A}),ke("b",{className:"DebugValues_module_bandwidthMax__a8fe72d5",children:S}),")"]}),ke("div",{className:"DebugValues_module_timeSeries__a8fe72d5",children:ke(C_,{max:R,debugMarkers:N,timeSeries:k})})]}),c&&t&&ke("li",{children:ke("dl",{children:[ke("dt",{children:"Key:"}),ke("br",{}),ke("dd",{className:"DebugValues_module_sessionId__a8fe72d5",children:c})]})}),e&&ke("li",{children:ke("dl",{children:[ke("dt",{children:"Debug Key:"}),ke("br",{}),ke("dd",{className:"DebugValues_module_payloadId__a8fe72d5",children:e})]})})]})};let L_;function A_(){}const S_=He(({onCopyFailed:e,labelResetDelay:t,className:n},i)=>{const[o,r]=Pe(!1),a=Gd(e=>e.debug),{bandwidthSeriesData:s}=a,l=m(a,["bandwidthSeriesData"]),c=function(e){return function(){for(var t=[],n=0;n{clearTimeout(L_),r(!1)},t)):e(),i.current.focus()}))}()}catch(ke){return a()}return s&&s.then?s.then(void 0,a):s}(0,(function(t){e()})))}));return ke(Su,{ref:i,className:n,onClick:c,children:o?"Copied":"Copy Debug Payload"})});let I_;function O_(){}const P_=({onSendSuccess:e,labelResetDelay:t,className:n})=>{const{player_url:i,request:o}=Gd(e=>e.config),[r,a]=Pe(!1),[s,l]=Pe(!1),c=Gd(e=>e.debug),{bandwidthSeriesData:d}=c,u=m(c,["bandwidthSeriesData"]),{signature:_,expires:p,timestamp:v}=o,f=function(e){return function(){for(var t=[],n=0;n{clearTimeout(I_),a(!1),l(!1)},t),function(e,t){if(e)throw t;return t}(e,n)})))}));let h="Send Debug Payload";return r?h="Sent":s&&(h="Something Went Wrong"),ke(Su,{className:n,onClick:f,children:h})},w_=()=>{const e=Gd(e=>e.name),t=Gd(e=>e.appearance.playerBreakpoint),n=Gd(e=>e.displayList.debugPanel),i=Gd(e=>e.setDisplayList),o=Gd(e=>e.debug.isDNTEnabled),r=Gd(e=>e.debug.hideCloseButton),a=Gd(e=>e.debug.isCopyDisabled),[s,l]=Pe(void 0),[c,d]=Pe(!1),u=we(null),_=we(null),p=we(null),v=e=>i("debugPanel",e),m=!r&&e!==ui.ChromelessPlayer,f=!a&&e!==ui.ChromelessPlayer,g=Cn("DebugPanel_module_root__634b1a20",yu.roundedBox,(t===Xo.XS||t===Xo.XXS)&&"DebugPanel_module_smallPlayer__634b1a20"),{onFocus:E}=vc({parentRef:u,isActive:n,onEscape:()=>{v(!1)}});return n&&ke("div",{ref:u,className:g,role:"dialog","aria-label":"Debug log",onFocus:E,children:[ke(T_,{payloadId:s,showSessionId:c}),f&&ke(We,{children:[ke(S_,{labelResetDelay:1500,onCopyFailed:()=>d(!0),className:"DebugPanel_module_button__634b1a20",ref:p}),ke(P_,{labelResetDelay:1500,onSendSuccess:e=>l(e),className:"DebugPanel_module_button__634b1a20"})]}),m&&ke("button",h(h({},vn(()=>v(!1))),{},{className:"DebugPanel_module_closeButton__634b1a20","aria-label":"Close stats debug panel",ref:_,children:ke(Xd,{name:gc.DISMISS_X})})),!!o&&"No Debug Key available as Do Not Track is enabled."]})};const R_=()=>{const{link:e,img:t,margin:n,width:i,height:o,name:r,id:a}=Gd(e=>e.badge),s=Gd(e=>e.setBadge),l=Gd(e=>e.displayList.badge),c=r+" Badge",d={};return n&&Object.assign(d,{margin:n}),ke(qd,{visible:l,children:ke("div",{className:`${Dn.VP_BADGE} Badge_module_badge__7943985c`,style:d,"data-badge":!0,children:ke(jd,{href:e,onClick:()=>s("id",a),targetBlank:!0,className:`Badge_module_badgeLink__7943985c ${yu.focusable}`,children:ke("img",{src:t,width:i,height:o,alt:c})})})})};const N_=({clip:e,is360:t,hasHDRNot10Plus:n,hasHDR10Plus:i,hasDolbyVision:o,hasAIContent:r,hasSurroundSound:a,hasAmbosonic:s,channelLayout:l,className:c})=>{const d=Cn("TitleTags_module_tag__68bba8ae",c);return ke("div",{className:"TitleTags_module_tagWrapper__68bba8ae",children:[e&&ke("span",{className:d,children:"Clip"}),t&&ke("span",{className:d,children:s?"360 ambisonic":"360"}),n&&ke("span",{className:d,children:"HDR"}),i&&ke("span",{className:d,children:"HDR10+"}),o&&ke("span",{className:`${d} TitleTags_module_dolbyVisionTag__68bba8ae`,children:ke(Xd,{name:gc.DOLBY_VISION})}),r&&ke(jd,{href:"https://help.vimeo.com/hc/en-us/articles/25551485186833/",className:`${d} TitleTags_module_aiTag__68bba8ae`,"data-ai-content-tag":"true",children:"Includes AI"}),a&&ke("span",{className:d,children:l})]})};const k_=()=>{const e=Gd(e=>e.title.displayTitle),t=Gd(e=>e.title.displayPortrait),n=Gd(e=>e.title.ownerLinkUrl),i=Gd(e=>e.title.targetBlank),o=Gd(e=>e.title.portraitImg),r=Gd(e=>e.title.titleLinkUrl),a=Gd(e=>e.title.title),s=Gd(e=>e.title.ownerName),l=Gd(e=>e.title.is360),c=Gd(e=>e.title.hasHDR),d=Gd(e=>e.title.hasHDR10Plus),u=Gd(e=>e.title.hasDolbyVision),_=Gd(e=>e.title.channelLayout),p=Gd(e=>e.title.bylineLinkUrl),v=Gd(e=>e.title.displayByline),m=Gd(e=>e.title.hasAIContent),f="5.1"===_||"7.1"===_,g=_.startsWith("ambisonic"),E=Gd(e=>e.displayList.title),b=Gd(e=>e.embed.badge),C=Gd(e=>e.displayList.badge),[y,T]=Pe(t&&!C),L={is360:l,hasHDRNot10Plus:c&&!d,hasHDR10Plus:d,hasDolbyVision:u,hasAIContent:m,hasSurroundSound:f,clip:Gd(e=>e.playback.isSegmentedPlaybackEnabled)},A=Object.values(L).some(Boolean);return Oe(()=>{let e;return!C&&t?e=setTimeout(()=>T(!0),250):T(!1),()=>clearTimeout(e)},[C,t]),ke(We,{children:[b&&ke(R_,{}),ke(qd,{visible:E,children:ke("div",{className:`${Dn.VP_TITLE} Title_module_title__c87a7c0c`,role:"presentation",children:ke("header",{className:"Title_module_header__c87a7c0c",role:"presentation",children:[y&&ke("div",{className:"Title_module_portrait__c87a7c0c",children:ke(jd,{href:n,targetBlank:i,variant:"minimal",className:Cn("Title_module_portraitLink__c87a7c0c",yu.focusableCircle),tabIndex:E?0:-1,children:ke("img",{src:o,alt:"Link to video owner's profile",width:"60",height:"60","data-trackClick":"video-portrait"})})}),ke("div",{className:"Title_module_headers__c87a7c0c",children:[e&&ke("div",{className:"Title_module_titleWrapper__c87a7c0c",children:[ke(jd,{href:r,targetBlank:i,"data-track-click":"video-title",variant:"minimal",className:Cn("Title_module_titleLink__c87a7c0c",yu.focusable),tabIndex:E?0:-1,"aria-labelledby":Hn.TITLE_TEXT}),ke("div",{className:"Title_module_textAndTagsWrapper__c87a7c0c","data-title-tags":!!A||void 0,children:[ke(bu,{id:Hn.TITLE_TEXT,className:Cn("Title_module_titleText__c87a7c0c"),children:a}),ke(N_,h(h({},L),{},{hasAmbosonic:g,channelLayout:_,className:"Title_module_titleTag__c87a7c0c"}))]})]}),v&&ke(jd,{href:p,targetBlank:i,variant:"minimal",className:Cn("Title_module_subtitle__c87a7c0c",yu.focusable),tabIndex:E?0:-1,children:ke(bu,{children:s})})]})]})})})]})};const D_=({id:e,timecode:t,className:n,teaser:i,url:o,imageUrl:r,headline:a,inView:s})=>{const l=Gd(e=>e.appearance.isVerticalVideo),c=Gd(e=>e.setCards),d=Gd(e=>e.setPlayback),u=()=>{c("hoveredCard",null),c("cardPressed",e),o&&d("paused",!0)},_=Cn("Card_module_card__449914f1",n,s&&"Card_module_active__449914f1",r&&"Card_module_hasThumbnail__449914f1",l&&"Card_module_vertical__449914f1");return ke("div",{className:_,onMouseEnter:()=>c("hoveredCard",t),onMouseLeave:()=>c("hoveredCard",null),onClick:u,onKeyUp:e=>{"Enter"===e.key&&u()},role:"link",tabIndex:-1,"aria-hidden":!s,children:ke(jd,{href:o,className:"Card_module_inner__449914f1",tabIndex:s?0:-1,children:[!!r&&ke("div",{className:"Card_module_imageWrap__449914f1",children:ke("img",{className:"Card_module_image__449914f1",src:r,alt:""})}),ke("div",{className:"Card_module_body__449914f1",children:[ke(bu,{size:tr.MD,className:Cn("Card_module_text__449914f1","Card_module_title__449914f1"),color:ir.WHITE,children:a}),!!i&&ke(bu,{weight:nr.NORMAL,element:"p",className:"Card_module_text__449914f1 Card_module_detail__449914f1",color:ir.WHITE,children:i})]}),!!o&&ke("div",{className:"Card_module_popOutWrapper__449914f1",children:ke(Xd,{name:gc.POP_OUT,className:"Card_module_popOut__449914f1"})})]})})};const M_=()=>{const e=Gd(e=>e.cards.cardsMap),t=Gd(e=>e.cards.displayedCard),n=Gd(e=>e.displayList.cards),i=Gd(e=>e.displayList.fullPlayerElement),o=e=>t===e&&!i;return n&&ke("div",{className:"Cards_module_cardsWrapper__9492d3ed",children:e.values().map(e=>ke(D_,{id:e.id,timecode:e.timecode,className:e.className,teaser:e.teaser,url:e.url,imageUrl:e.imageUrl,headline:e.headline,inView:o(e.timecode)},e.id))})};const B_=({show:e})=>{const{buffering:t,currentTime:n,loadedTime:i,currentFragment:o}=Gd(e=>e.playback),r=Sn(n,o),a=Sn(i,o);return e&&ke("div",{className:"TinyProgressBar_module_tinyBar__71fa705b",children:ke("svg",{className:"TinyProgressBar_module_tinyBarSVG__71fa705b",width:"100%",height:"100%",viewBox:"0 0 70 40",focusable:"false",children:[ke("defs",{children:[ke("clipPath",{id:"rounded-border",children:ke("rect",{height:"100%",width:"100%",x:"0",y:"0",rx:"5"})}),ke("pattern",{id:"tiny-buffer","data-tiny-buffer-pattern":!0,className:"TinyProgressBar_module_bufferPattern__71fa705b",patternUnits:"userSpaceOnUse",x:"0",y:"0",width:"10",height:"10",viewBox:"0 0 10 10",children:[ke("line",{x1:"5",y1:"-1",x2:"-5",y2:"10",strokeWidth:"2",strokeLinecap:"butt"}),ke("line",{x1:"10",y1:"-1",x2:"0",y2:"10",strokeWidth:"2",strokeLinecap:"butt"}),ke("line",{x1:"15",y1:"-1",x2:"5",y2:"10",strokeWidth:"2",strokeLinecap:"butt"})]})]}),ke("g",{clipPath:"url(#rounded-border)",children:t?ke("rect",{className:"TinyProgressBar_module_buffer__71fa705b",height:"3",width:"110%",x:"0",y:"37",fill:"url(#tiny-buffer)"}):ke(We,{children:[ke("rect",{className:"TinyProgressBar_module_loaded__71fa705b","data-tiny-loaded":!0,height:"3",width:On(a),x:"0",y:"37"}),ke("rect",{className:"TinyProgressBar_module_played__71fa705b","data-tiny-played":!0,height:"3",width:On(r),x:"0",y:"37"})]})})]})})};const V_=({className:e,controlBarVisibilityHandlers:t})=>{const n=Gd(e=>e.displayList.controlBar),i=Gd(e=>e.liveEvent.isLiveEvent),o=Gd(e=>e.liveEvent.isPlayable),r=Gd(e=>e.liveEvent.isArchived),a=Gd(e=>e.liveEvent.isEnded),s=Gd(e=>e.liveEvent.dvrEnabled),l=Gd(e=>e.setPlayback),c=Gd(e=>e.controlBar.trailerButtonText),d=Gd(e=>e.embed.playbar),u=Gd(e=>e.appearance.playerSizeMode),_=Gd(e=>e.controlBar.progressBarExpanded),{buttonState:p,setButtonState:v}=zl(),m=ac(),f=!i||o||r||s&&a,h=u===_i.TINY||!d,g=p===Ei.TRAILER,E={[Ei.PLAY]:{icon:gc.PLAY,onClick:()=>{l("paused",!1),v(Ei.PAUSE)},label:"Play",className:"PlayButton_module_playIcon__282507bf"},[Ei.PAUSE]:{icon:gc.PAUSE,onClick:()=>{l("paused",!0),v(Ei.PLAY)},label:"Pause",className:"PlayButton_module_pauseIcon__282507bf"},[Ei.REPLAY]:{icon:gc.REPLAY,onClick:()=>{l("paused",!1),v(Ei.PAUSE)},label:"Play",className:"PlayButton_module_replayIcon__282507bf"},[Ei.TRAILER]:{icon:gc.PLAY,onClick:()=>{l("paused",!1)},label:"Play",className:"PlayButton_module_trailerIcon__282507bf"}}[p],b=m===rc.CENTER,C=Cn("PlayButton_module_playButtonWrapper__282507bf",b&&"PlayButton_module_center__282507bf",g&&"PlayButton_module_trailer__282507bf",_&&!b&&"PlayButton_module_progressExpanded__282507bf"),y=Cn("PlayButton_module_playButton__282507bf",g&&"PlayButton_module_trailer__282507bf",yu.focusable,_&&!b&&"PlayButton_module_progressExpanded__282507bf",e);return f&&ke(qd,{visible:n,children:ke("div",{className:C,children:ke(vu,{id:"play-button-tooltip",tooltipContent:E.label,className:`Tooltip_module_playTooltip__d9b61844 ${g?"Tooltip_module_trailerPlayTooltip__d9b61844":""}`,children:ke(Su,{className:y,onClick:E.onClick,icon:ke(Xd,{className:E.className,name:E.icon}),onTouchStart:t.onTouchStart,onTouchEnd:t.onTouchEnd,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,"data-play-button":!0,children:[ke(B_,{show:h}),g&&ke("span",{className:"PlayButton_module_text__282507bf",children:c||"Watch Trailer"})]})})})})};const x_=e=>{const t=Gd(e=>e.displayList.menu);return(o.touch||t)&&Object.assign(e,{visible:!1}),ke(vu,h({},e))},U_=He((e,t)=>{let{className:n="",icon:i,children:o,tooltipLabel:r,hasTooltip:a=!0,animating:s=!1,id:l}=e,c=m(e,["className","icon","children","tooltipLabel","hasTooltip","animating","id"]);const d=Gd(e=>e.appearance.playerBreakpoint),u=Gd(e=>e.displayList.controlBarButtons),_=Cn("ControlBarButton_module_controlBarButton__258d5b7f",yu.focusable,n),p=["xl","xxl"].includes(d)?16:8,v=u?0:-1;return a?ke(x_,{id:l?`${l}-tooltip`:null,tooltipContent:r,margin:p,animating:s,children:ke(Su,h(h({id:l,ref:t,className:_,icon:i,tabIndex:v},c),{},{children:o}))}):ke(Su,h({ref:t,className:_,icon:i,tabIndex:v},c))});const H_=({onFocus:e})=>{const t=Gd(e=>e.appearance.fullscreen),n=Gd(e=>e.setAppearance),i=Cn(Dn.FULLSCREEN,"FullscreenButton_module_fullscreen__81b38f0e"),o=t?"Exit full screen":"Fullscreen",r=t?gc.EXIT_FULLSCREEN:gc.ENTER_FULLSCREEN;return ke(U_,{id:"fullscreen-control-bar-button",onClick:()=>n("fullscreen",!t),onFocus:e,className:i,icon:ke(Xd,{name:r}),tooltipLabel:o,"data-fullscreen-button":!0})};const F_=He(({isMenuDisplayed:e,setMenuDisplayed:t,onFocus:n},i)=>{const{onClick:o,onKeyDown:r}=jl(()=>t(!e));return ke(U_,{id:"prefs-control-bar-button",ref:i,className:`${Dn.VP_PREFS} PrefsButton_module_prefsButton__cdff1984`,"aria-expanded":e,"aria-haspopup":"true",icon:ke(Xd,{name:gc.GEAR,className:"PrefsButton_module_gearIcon__cdff1984"}),onClick:o,onKeyDown:r,onFocus:n,tooltipLabel:"Settings","data-prefs-button":!0})}),G_=({onFocus:e})=>{const t=Gd(e=>e.appearance.pictureInPictureActive),n=Gd(e=>e.setAppearance),i=t?"Exit Picture-in-Picture":"Picture-in-Picture",o=t?gc.EXIT_PICTURE_IN_PICTURE:gc.ENTER_PICTURE_IN_PICTURE;return ke(U_,{id:"pip-control-bar-button",className:Dn.PIP,icon:ke(Xd,{name:o,className:t?Dn.ON:""}),onClick:()=>n("pictureInPictureActive",!t),onFocus:e,tooltipLabel:i,"data-pip-button":!0})},Y_=He(({onFocus:e},t)=>{const n=Gd(e=>e.playback.volume),i=Gd(e=>e.playback.muted),o=i?"Unmute":"Mute",{toggleMuted:r}=sc();return ke(U_,{ref:t,onClick:r,onFocus:e,icon:ke(Xd,!i&&n>0?{name:gc.VOLUME_ON_FILLED,"data-volume-icon":!0}:{name:gc.VOLUME_OFF_FILLED,"data-volume-muted-icon":!0}),"aria-label":o,"aria-keyshortcuts":"m","data-volume-button":!0,hasTooltip:!1})});const W_=()=>{const e=Gd(e=>e.controlBar.vimeoLogoUrl),t=Gd(e=>e.appearance.playerBreakpoint);return ke(jd,{className:Cn("VimeoLogoLink_module_vimeoLogo__5236f985",yu.focusable),href:e,"data-vimeo-logo":!0,"aria-label":"Watch on Vimeo",children:ke(ju,{playerBreakpoint:t})})},$_=({onFocus:e})=>{const t=Gd(e=>e.appearance.showAirPlayPicker),n=Gd(e=>e.setAppearance),i=t?"Turn off AirPlay":"Choose an AirPlay device";return ke(U_,{onClick:()=>n("showAirPlayPicker",!t),onFocus:e,className:Dn.AIRPLAY,"aria-label":i,tooltipLabel:"AirPlay","data-airplay-button":!0,icon:ke(Xd,{name:gc.AIRPLAY,className:t?Dn.ON:""})})},q_=He(({isMenuDisplayed:e,setMenuDisplayed:t,onFocus:n},i)=>{const{onClick:o,onKeyDown:r}=jl(()=>t(!e));return ke(U_,{ref:i,className:Dn.VP_CHAPTER_BUTTON,onClick:o,onKeyDown:r,onFocus:n,"aria-expanded":e,"aria-haspopup":"true",icon:ke(Xd,{name:gc.CHAPTERS}),tooltipLabel:"Chapters","data-chapter-button":!0,id:"chapters-control-bar-button"})}),K_=He(({isMenuDisplayed:e,setMenuDisplayed:t,onFocus:n},i)=>{const o=Gd(e=>e.captions.activeTextTrackId),{onClick:r,onKeyDown:a}=jl(()=>t(!e)),s=o&&"off"!==o?gc.CC_FILLED:gc.CC;return ke(U_,{id:"cc-control-bar-button",ref:i,className:Dn.CC,"aria-haspopup":"true","aria-expanded":e,icon:ke(Xd,{name:s}),onClick:r,onKeyDown:a,onFocus:n,tooltipLabel:"CC/Subtitles","data-cc-button":!0})}),j_=({onFocus:e})=>{const t=Gd(e=>e.setAppearance),n=Gd(e=>e.appearance.stereoscopicEnabled),i=n?"Disable stereoscopic playback":"Enable stereoscopic playback";return ke(U_,{className:Dn.STEREOSCOPIC,onClick:()=>t("stereoscopicEnabled",!n),onFocus:e,"aria-label":i,icon:ke(Xd,{name:gc.STEREOSCOPIC}),tooltipLabel:"Stereoscopic","data-stereoscopic-button":!0})};const z_=({onFocus:e})=>{const t=Cn(Mn.EXCLUDE_GLOBAL_BUTTON_STYLES,"ChromecastButton_module_chromecastButton__a2d33bfd","ControlBarButton_module_controlBarButton__258d5b7f",yu.focusable,Dn.VP_CAST_BUTTON);return(()=>{const[e,t]=Pe(!1);Oe(()=>{setTimeout(()=>t(!0),500)},[])})(),ke(vu,{id:"chromecast-control-bar-button-tooltip",tooltipContent:"GoogleCast",children:ke("button",{className:t,is:"google-cast-button","data-chromecast-button":!0,onFocus:e})})},X_=({onFocus:e})=>{const t=oc(),n=Gd(e=>e.displayList.transcript),i=Gd(e=>e.toggleDisplayList),{onClick:o,onKeyDown:r}=jl(()=>{i("transcript"),t(vr.EMBEDDED_TRANSCRIPT_CLICK,{name:n?"exit_embed_transcript":"open_embed_transcript",copy:"Transcript",location:"control_bar",element:"transcript_button",current_transcript_language:""})}),a=ke(Xd,{name:n?gc.TRANSCRIPT_ON:gc.TRANSCRIPT_OFF}),s=n?[Vn.TRANSCRIPT_VIEWER,Bn.RIGHT_CONTENT_AREA].join(" "):Bn.RIGHT_CONTENT_AREA;return ke(U_,{id:Vn.TRANSCRIPT_CONTROL_BAR_BUTTON,onClick:o,onKeyDown:r,onFocus:e,icon:a,tooltipLabel:"Transcript","aria-controls":s,"aria-expanded":n,"aria-haspopup":"true"})};const Z_=()=>{const e=Gd(e=>e.displayList.controlBarButtons),t=Gd(e=>e.setDisplayList),n=we(e),[i,o]=Pe(!1),r=Gd(e=>e.setControlBar);Oe(()=>{e!==n.current&&o(!0),n.current=e},[e]);const a=e?"Hide controls":"Show controls",s=Cn("CollapseButton_module_collapseButton__f4f99df4",e&&"CollapseButton_module_expanded__f4f99df4");return ke(U_,{onClick:()=>{const n=!e;r("shouldRestoreButtonsDisplayed",n),t("controlBarButtons",n)},onTransitionEnd:e=>{"transform"===e.propertyName&&o(!1)},tooltipLabel:a,animating:i,tabIndex:0,icon:ke(Xd,{"data-collapse-icon":!0,name:gc.CHEVRON_RIGHT,className:s})})};const Q_=({className:e})=>{const t=Gd(e=>e.displayList.controlBar),n=Gd(e=>e.displayList.accessGate),i=Gd(e=>e.appearance.playerSizeMode)===_i.TINY,o=Gd(e=>e.embed.customLogo),r=Gd(e=>e.displayList.ad),{customLogoUrl:a,customLogoImg:s,customLogoSticky:l}=Gd(e=>e.embed.customLogoFields),c=Gd(e=>e.user.ownerName),d=Gd(e=>e.controlBar.progressBarExpanded),u=o&&!i&&!r,_=!n&&(l||t),p=Cn(Dn.CUSTOM_LOGO,"CustomLogo_module_customLogo__66f98cb4",a?"CustomLogo_module_link__66f98cb4":"",yu.focusable,e,d&&"CustomLogo_module_progressExpanded__66f98cb4"),v=Cn("CustomLogo_module_customLogoImg__66f98cb4",d&&"CustomLogo_module_progressExpanded__66f98cb4");return u&&ke(qd,{visible:!!_,children:ke(Cu,{classNames:p,imgClassNames:v,url:a,img:s,imgAlt:c})})},J_=({className:e,marker:t})=>{const n=Gd(e=>e.setPlayback),i=Gd(e=>e.playback.currentFragment),o=(t.startTime-i.startTime)/i.duration*100,r=e=>n("currentTime",e.path[0].dataset.time),a="Seek to "+Math.round(100*t.startTime)/100+" seconds.";return ke("div",{id:`cuepoint-${t.id}`,className:e,style:{left:`${o}%`},"data-time":t.startTime,role:"button","aria-label":a,tabIndex:0,onClick:r,onKeyUp:e=>{["Space","Enter"].includes(e.code)&&r(e)},"data-cue-point-marker":!0})};const ep=()=>{const e=Gd(e=>e.playback.currentFragment),t=Gd(e=>e.cuePoints.cuePoints),n=Gd(e=>e.displayList.progressBar),i=Cn("CuePointMarkers_module_cuePoints__b267e324",yu.focusableMarker,Dn.CUEPOINT),o=t.filter(t=>e.startTime<=t.time&&t.time<=e.endTime).map(e=>({id:e.id,startTime:e.time})),r=!!o.length&&n;return ke(We,{children:r&&o.map(e=>ke(J_,{className:i,marker:e},e.startTime))})};const tp=()=>{const e=Gd(e=>e.playback.currentTime),t=Gd(e=>e.playback.currentFragment),n=Gd(e=>e.liveEvent.isLiveEvent),i=Gd(e=>e.liveEvent.isArchived),o=Gd(e=>e.playback.liveEdgeTime),r=Gd(e=>e.playback.liveTailTime),a=Gd(e=>e.playback.atLiveEdge),s=Gd(e=>e.displayList.progressBar),l=An(e,t),c={progressBar:"Progress Bar",ariaTextVOD:Jn(l)+" of "+Jn(t.duration),ariaTextLiveEdge:"Live time at "+Jn(o),ariaTextLiveDVR:Jn(Math.abs(o-l))+" behind Live"};let d=c.ariaTextVOD,u=0,_=t.duration;return n&&!i&&(d=a?c.ariaTextLiveEdge:c.ariaTextLiveDVR,u=Math.round(r),_=Math.round(o)),ke("div",{className:`FocusTarget_module_focusTarget__4fd67130 ${yu.focusable}`,role:"slider","aria-label":c.progressBar,"aria-valuemin":u,"aria-valuemax":_,"aria-valuenow":Math.round(l),"aria-valuetext":d,tabIndex:s?0:-1,"data-progress-bar-focus-target":!0})};const np=({marker:e,setTabFocused:t,setHoverFocused:n})=>{const i=Gd(e=>e.setPlayback),o=Gd(e=>e.playback.currentFragment),r=(e.start-o.startTime)/o.duration,a={visibleLabel:e.visibleLabel,ariaLabel:e.ariaLabel,id:e.id,start:e.start,left:r},s=Cn("InteractiveMarker_module_interactiveMarker__82a7358d",Dn.VP_INTERACTIVE_MARKER,yu.focusableMarker);function l(e){i("currentTime",e.path[0].dataset.time,{action:e.type,seekType:"interactive-marker"})}return ke("div",{className:s,role:"button",style:{left:On(r,!1)},"aria-label":e.ariaLabel,"data-time":e.start,tabIndex:0,onClick:l,onKeyUp:e=>{["Space","Enter"].includes(e.code)&&l(e)},onMouseEnter:()=>n(a),onMouseLeave:()=>n(null),onFocus:()=>t(a),onBlur:()=>t(null),"data-hotspot-marker":!0})},ip=({markers:e,setHoverFocused:t,setTabFocused:n})=>{const i=Gd(e=>e.displayList.progressBar);return ke(We,{children:i&&e.map(e=>ke(np,{marker:e,setTabFocused:n,setHoverFocused:t},e.start))})};const op=({time:e,left:t,visible:n=!0,disabled:i=!1})=>ke(qd,{visible:n,children:ke("div",{className:"Timecode_module_timecodeContainer__2fac2855",role:"presentation",style:{left:t},"aria-hidden":"true","data-progress-bar-timecode-container":!0,children:ke("div",{className:`Timecode_module_timecode__2fac2855 ${i?"Timecode_module_disabled__2fac2855":""}`,"data-progress-bar-timecode":!0,children:Jn(e)})})}),rp=()=>{const e=Gd(e=>e.playback.currentTime),t=Gd(e=>e.playback.liveEdgeTime),n=Gd(e=>e.playback.liveTailTime),i=Gd(e=>e.playback.atLiveEdge),o=Gd(e=>e.playback.currentFragment),r=Gd(e=>e.playback.playInitiated),a=Gd(e=>e.playback.paused),s=Gd(e=>e.playback.buffering),l=Gd(e=>e.displayList.progressBar),c=Gd(e=>e.liveEvent.isLiveEvent),d=Gd(e=>e.liveEvent.dvrEnabled),u=Gd(e=>e.liveEvent.isEnded),_=Gd(e=>e.liveEvent.isArchived),[p,v]=Pe(c?t:o.duration),m=c&&!_?1:0,[f,h]=Pe(m);Oe(()=>{const a=An(e,o);if(c)if(d){if(d){const a=u&&!r&&0===e,s=_&&0!==o.duration;a?(v(o.duration),h(0)):s?(v(e),h(e/o.duration)):i?(h(1),v(e)):(h(Nn(e,n,t)),v(e-t))}}else _&&(r||0!==e)?(h(Sn(e,o)),v(a)):_?(v(o.duration),h(m)):(h(1),v(e));else r||0!==a?(h(Sn(e,o)),v(a)):(v(o.duration),h(m))},[e,r,o,c,u,_,t,i]);const g=(!c||_||d&&0!==t||!a&&!s&&0!==t)&&!isNaN(p)&&l;return ke(op,{time:p,left:On(f,!1),disabled:c&&!d,visible:g})};const ap={xs:120,md:160,xl:200},sp=({visible:e=!1,mousePercent:t=0,progressBarWidth:n,isMousedOverProgress:i=!1,tabOrHoverFocusedMarker:o=null})=>{const r=Gd(e=>e.displayList.menu),a=Gd(e=>e.playback.currentFragment),s=Gd(e=>e.playback.duration),l=Gd(e=>e.playback.liveEdgeTime),c=Gd(e=>e.playback.liveTailTime),d=Gd(e=>e.liveEvent.isLiveEvent),u=Gd(e=>e.liveEvent.dvrEnabled),_=Gd(e=>e.liveEvent.isArchived),p=Gd(e=>e.appearance.boundingClientRect),v=Gd(e=>e.appearance.isVerticalVideo),m=Gd(e=>e.appearance.playerBreakpoint),f=Gd(e=>e.verifyConfig),g=Gd(e=>e.chapters.chapters),E=Gd(e=>e.embed.chapters),b=Gd(e=>e.controlBar.thumbnailPreview),C=Gd(e=>e.playback.isSegmentedPlaybackEnabled),[y,T]=Pe({width:0,height:0,backgroundImage:"",backgroundSize:"",backgroundPosition:""}),[L,A]=Pe(!1),S=p.height>300&&n>=185,I=0!==l&&!isNaN(l);let O=S&&!r&&(!d||u&&I)&&e;const[P,w]=Pe(0);i?w(t):o?w(o.left):O=!1;const R=Pn(P,a);let N;N=u?_&&0!==a.duration?wn(P,a):((e,t,n)=>Rn(e,t,n)-n)(P,c,l):wn(P,a),isNaN(N)&&(O=!1);let k="";if(g.length&&E&&!C){const e=g.find(e=>e.startTime<=R&&e.endTime>=R);k=(null==e?void 0:e.text)||""}const D=(null==o?void 0:o.visibleLabel)||"",M=((e,t)=>ap[e]*(t?9/16:1))((e=>{switch(e){case Xo.XL:case Xo.XXL:return"xl";case Xo.SM:case Xo.MD:case Xo.LG:return"md";default:return"xs"}})(m),v),B=M/(null==b?void 0:b.frame_width);return Oe(()=>{!L&&S&&e&&b&&f().then(()=>xr(b.url).then(()=>{A(!0),T({width:b.frame_width*B,height:b.frame_height*B,backgroundImage:`url(${b.url})`,backgroundSize:`${b.width*B}px ${b.height*B}px`,backgroundPosition:""})})).catch(()=>{})},[e,L,S,b,B,f]),Oe(()=>{A(!1)},[b]),Oe(()=>{b&&T(e=>h(h({},e),{},{width:b.frame_width*B,height:b.frame_height*B,backgroundSize:`${b.width*B}px ${b.height*B}px`}))},[m]),Oe(()=>{if(b&&S){let e=0,t=0;if(b){const n=s/b.frames,i=Math.min(b.frames-1,Math.ceil(R/n)),o=i%b.columns,r=Math.floor(i/b.columns);e=-o*b.frame_width*B,t=-r*b.frame_height*B}T(n=>h(h({},n),{},{backgroundPosition:`${e}px ${t}px`}))}},[P,p,b,S,s,B,R]),ke(qd,{visible:O,children:ke("div",{className:`${Dn.THUMB_PREVIEW} ThumbnailPreview_module_thumbnailPreview__a900d8d1`,role:"presentation","aria-hidden":"true",style:{left:On(P,!1),maxWidth:M},children:[!!y.backgroundImage&&L&&ke("div",{className:`${Dn.THUMB} ThumbnailPreview_module_thumbnailPreviewImage__a900d8d1`,style:{width:`${y.width}px`,height:`${y.height}px`,backgroundImage:y.backgroundImage,backgroundSize:y.backgroundSize,backgroundPosition:y.backgroundPosition}}),ke("div",{className:"ThumbnailPreview_module_thumbnailPreviewText__a900d8d1",children:[D&&ke("span",{className:"ThumbnailPreview_module_text__a900d8d1",children:D}),D&&k&&ke("span",{className:"ThumbnailPreview_module_separator__a900d8d1"}),k&&ke("span",{className:"ThumbnailPreview_module_text__a900d8d1",children:k}),ke("span",{className:"ThumbnailPreview_module_time__a900d8d1",children:Jn(N)})]})]})})};const lp=({segment:e,isExpanded:t})=>{const n=Gd(e=>e.playback.currentFragment),i=Gd(e=>e.playback.loadedTime),o=Gd(e=>e.playback.currentTime),r=Gd(e=>e.playback.liveEdgeTime),a=Gd(e=>e.playback.liveTailTime),s=Gd(e=>e.playback.atLiveEdge),l=Gd(e=>e.liveEvent.isLiveEvent),c=Gd(e=>e.liveEvent.dvrEnabled),d=Gd(e=>e.liveEvent.isPlayable),u=Gd(e=>e.liveEvent.isArchived),_=Gd(e=>e.liveEvent.isEnded),p=Gd(e=>e.playback.playInitiated),v=l&&!u,m=0!==r&&!isNaN(r);let f,h;const g=l?1:((e,t)=>(e.endTime-e.startTime)/t.duration)(e,n);if(l)if(c){if(c){const t=_&&!p&&0===o,l=u&&0!==n.duration;t?(f=0,h=0):l?(f=In(i,e),h=In(o,e)):s?(f=1,h=1):(f=Nn(i,a,r),h=Nn(o,a,r))}}else u?(f=In(i,e),h=In(o,e)):(f=d?1:0,h=0);else f=In(i,e),h=In(o,e);const E=On(g,!1),b=On(h,!1),C=On(f),y=Cn("ChapterSegment_module_chapterWrapper__7241288a",v&&(!c||!m)&&"ChapterSegment_module_disabled__7241288a",t&&"ChapterSegment_module_expanded__7241288a"),T=e.startTime===n.startTime?0:2;return ke("div",{className:y,style:{width:`calc(${E} - ${T}px)`},children:ke("div",{className:"ChapterSegment_module_chapter__7241288a",children:[ke("div",{className:`ChapterSegment_module_loaded__7241288a ${n.duration<60?"ChapterSegment_module_shortVideo__7241288a":""}`,style:{width:C},"data-progress-bar-loaded":!0}),ke("div",{className:"ChapterSegment_module_played__7241288a",style:{width:b},"data-progress-bar-played":!0})]})})};const cp=({hoveredChapterId:e})=>{const t=Gd(e=>e.playback.currentFragment),n=Gd(e=>e.chapters.chapters),i=Gd(e=>e.embed.chapters),o=Gd(e=>e.appearance.playerBreakpoint),r=Gd(e=>e.playback.isSegmentedPlaybackEnabled),a=Gd(e=>e.controlBar.progressBarExpanded);let s;return s=o===Xo.XXS||!i||r?[{startTime:t.startTime,endTime:t.endTime}]:((e,t)=>{const n=kn(e,t);let i=[];return 0===n.length?i.push({startTime:t.startTime,endTime:t.endTime}):n.forEach((e,o)=>{let r=e.startTime,a=e.endTime;0===o&&e.startTime>t.startTime&&i.push({startTime:t.startTime,endTime:e.startTime}),0===o&&e.startTimet.endTime&&(a=t.endTime),i.push({startTime:r,endTime:a,chapterId:e.startTime})}),i})(n,t),ke("div",{className:"ChapterSegments_module_chapterSegmentsWrapper__e2d21102",children:s.map(t=>ke(lp,{segment:t,isExpanded:a||t.chapterId===e},t.startTime))})};const dp=({hoveredChapterId:t})=>{const n=Gd(e=>e.chapters.chapters),i=Gd(e=>e.embed.chapters),r=Gd(e=>e.playback.currentFragment),a=Gd(e=>e.playback.liveEdgeTime),s=Gd(e=>e.playback.liveTailTime),l=Gd(e=>e.liveEvent.isLiveEvent),c=Gd(e=>e.liveEvent.isArchived),d=Gd(e=>e.liveEvent.dvrEnabled),u=Gd(e=>e.playback.atLiveEdge),_=Gd(e=>e.controlBar.progressBarExpanded),p=Gd(e=>e.displayList.progressBar),v=Gd(e=>e.setControlBar),f=Gd(e=>e.setPlayback),g=Gd(e=>e.element),E=Gd(e=>e.interactive.hotspots),b=Gd(e=>e.interactive.polls),C=Gd(e=>e.interactive.showMarkers),y=oc(),[T,L]=Pe(!1),[A,S]=Pe(!1),[I,O]=Pe(0),[P,w]=Pe(null),[R,N]=Pe(null),[k,D]=Pe(null),M=we(null),B=we(!1),V=we(!1),x=we(!1),U=we(null),H=we(null),[F,G]=Pe(Tn(null==U?void 0:U.current)),Y=we(F);function W(){const e=Tn(null==U?void 0:U.current);G(e),Y.current=e}const $=F.rightOffsetValue-F.leftOffsetValue;hc(U,()=>{W()});const q=we(u),K=we(c);Oe(()=>{q.current=u,K.current=c},[u,c]);const j=(e,t=3)=>Tt(gt((e-Y.current.leftOffsetValue)/(Y.current.rightOffsetValue-Y.current.leftOffsetValue),0,1),t),z=e=>{e?g.classList.add("scrubbing"):g.classList.remove("scrubbing")};function X(e){const{clientX:t}=e,n=j(t);O(n)}function Z(e){if(2===(null==e?void 0:e.button)||(null==e?void 0:e.ctrlKey))return;if(f("scrubbing",!0),z(!0),"pointerdown"===e.type||"MSPointerDown"===e.type){w(e.pointerId);try{e.target.msSetPointerCapture?e.target.msSetPointerCapture(P):e.target.setPointerCapture(P)}catch(ke){}document.addEventListener("pointermove",Q),document.addEventListener("pointerup",J)}else"touchstart"===e.type?(document.addEventListener("touchmove",Q),document.addEventListener("touchend",J),clearTimeout(M.current),v("progressBarExpanded",!0),x.current||(B.current=!0)):(document.addEventListener("mousemove",Q),document.addEventListener("mouseup",J));const t=Ln(e),o=j(t),l=!d||c&&0!==r.duration?Pn(o,r):Rn(o,s,a);f("currentTime",l),(e=>{if(!n.length||!i)return;const t=((e,t)=>t.reduce((t,n)=>{if(null===t)return n;const i=n.startTime-e,o=t.startTime-e;return Math.abs(i)>Math.abs(o)?t:n},null))(e,n);if(!t)return;const o=t.startTime,a=e-o,s=Math.abs(a)<=5,l=kn(n,r);y(vr.CHAPTER_SEGMENT_CLICK,{seek_event_start_time:e,is_chapter_seek:s,nearest_chapter_start_time:o,chapter_seek_event_delta:a,total_no_chapters_at_seek:n.length,fragment_no_chapters_at_seek:l.length})})(l)}function Q(e){if(P&&P!==e.pointerId||!1===e.isPrimary)return;if(B.current)return;const t=Ln(e),n=j(t),i=!d||c&&0!==r.duration?Pn(n,r):Rn(n,s,a);f("currentTime",i),O(n)}function J(e){const t=e.type;"pointerup"===t||"MSPointerUp"===t?(document.removeEventListener("pointermove",Q),document.removeEventListener("pointerup",J),w(null)):"touchend"===t?(document.removeEventListener("touchmove",Q),document.removeEventListener("touchend",J),B.current=!1,clearTimeout(M.current),x.current?M.current=setTimeout(()=>{V.current=!0,v("progressBarExpanded",!1)},250):(V.current=!0,v("progressBarExpanded",!1))):(document.removeEventListener("mousemove",Q),document.removeEventListener("mouseup",J)),f("scrubbing",!1),z(!1),d&&!K.current&&y(q.current?vr.SEEK_TO_LIVE_EDGE:vr.SEEK_BEHIND_LIVE_EDGE)}Oe(()=>()=>{document.removeEventListener("touchmove",Q),document.removeEventListener("touchend",J),document.removeEventListener("mousemove",Q),document.removeEventListener("mouseup",J),document.removeEventListener("pointermove",Q),document.removeEventListener("pointerup",J)},[]);let ee={};(!l||d&&a||c)&&(ee=o.pointerEvents?{onPointerDown:Z}:{onTouchStart:Z,onMouseDown:Z});const te=function({hotspots:t=[],polls:n=[],fragment:i,progressBarWidth:o}){const r=function(t,n){return[].concat(e(t.map(e=>({id:e.hotspotId,label:"Hotspot",start:e.start,visibleLabel:e.name,ariaLabel:e.name,name:e.name}))),e(n.map(e=>({id:e.pollId,label:"Poll",name:e.questionText,visibleLabel:e.questionText,ariaLabel:e.questionText,start:e.start}))))}(t,n);let a,s=1,l=[],c=[];return r.sort((e,t)=>e.start-t.start).reduce((e,t)=>{let{label:n}=t,r=m(t,["label"]);if(!(i.startTime<=r.start&&r.start<=i.endTime))return e;if("Hotspot"===n?r.visibleLabel="Hotspot: "+r.name:"Poll"===n&&(r.visibleLabel="Poll: "+r.name),r.ariaLabel=r.visibleLabel,r.leftPositionInProgressBar=function(e){return(e-i.startTime)/i.duration*100}(r.start),"Poll"===n?l.push(r.name):"Hotspot"===n&&c.push(r.name),!e.length)return function(e,t,n){return e.push(t),a=n,e}(e,r,n);const d=e.length-1,u=function(e,t,n,i){const o=Wo(e,n,i),r=Wo(t,n,i);return Math.floor(r-o)}(e[d].start-i.startTime,r.start-i.startTime,i.duration,o);return!isNaN(u)&&u<=5?(s+=1,n!==a?function(e,t){a="Hotspots & Polls",e[t].visibleLabel="Hotspots & Polls",e[t].name="Hotspots & Polls",e[t].ariaLabel=c.length+" hotspots: "+c.join(", ")+"; "+l.length+" polls: "+l.join(", ")}(e,d):"Hotspot"===n?function(e,t,n){e[t].visibleLabel=s+" hotspots",e[t].name+=`, ${n.name}`,e[t].ariaLabel=s+" hotspots: "+e[t].name}(e,d,r):"Poll"===n&&function(e,t,n){e[t].visibleLabel=s+" polls",e[t].name+=`, ${n.name}`,e[t].ariaLabel=s+" polls: "+e[t].name}(e,d,r)):isNaN(u)||function(e,t,n){s=1,e.push(t),a=n,l=[],c=[]}(e,r,n),e},[])}({hotspots:E,polls:b,fragment:r,progressBarWidth:$}),ne=!!te.length&&C,ie=Cn("ProgressBar_module_progressBarContainer__8f93bbb9",!p&&"ProgressBar_module_progressHidden__8f93bbb9",_&&"ProgressBar_module_progressExpanded__8f93bbb9"),oe=Cn(Dn.VP_PROGRESS,"ProgressBar_module_progressBar__8f93bbb9");return ke("div",{className:ie,ref:H,onTransitionEnd:function(e){e.target===(null==H?void 0:H.current)&&"flex-shrink"===e.propertyName&&(B.current?x.current=!0:V.current&&(x.current=!1),B.current=!1,V.current=!1)},children:ke("div",h(h({className:oe,"data-progress-bar":!0,ref:U,onMouseEnter:e=>{W(),X(e),S(!0)},onMouseMove:e=>{X(e),L(!1),N(null)},onMouseLeave:()=>S(!1),onFocus:()=>L(!0),onBlur:()=>L(!1),role:"presentation"},ee),{},{children:[ke(tp,{}),ke(cp,{hoveredChapterId:t}),ke(ep,{}),ne&&ke(ip,{markers:te,setTabFocused:N,setHoverFocused:D}),ke(sp,{visible:A||T,mousePercent:I,isMousedOverProgress:A,progressBarWidth:$,tabOrHoverFocusedMarker:R||k}),ke(rp,{})]}))})};const up=({setMenuDisplayed:e})=>{const t=Gd(e=>e.setDisplayList);return ke(Su,{className:"DebugPanelButton_module_debugPanelButton__9c678770",onClick:()=>{e(!1),t("debugPanel",!0)},icon:ke(Xd,{className:"DebugPanelButton_module_debugPanelButtonIcon__9c678770",name:gc.INFO_CIRCLE}),color:Qo.ALTERNATIVE,iconSize:Zo.XS,"aria-haspopup":"dialog",children:ke(bu,{size:tr.SM,weight:nr.NORMAL,children:"Debug log"})})},_p={[Zl.EMPTY]:()=>ke(We,{}),[Zl.PREFS]:({setPanel:e,setMenuDisplayed:t})=>{const n=Gd(e=>e.embed.speedChangeEnabled),i=Gd(e=>e.embed.multipleAudioTracks),r=Gd(e=>e.embed.quality),a=Gd(e=>e.playback.qualities),s=Gd(e=>e.playback.currentQuality),l=Gd(e=>e.playback.playbackRates),c=Gd(e=>e.playback.audioTracks),d=r&&(null==a?void 0:a.length)>0,u=i&&(null==c?void 0:c.length)>1,_=(e=[])=>{var t;return null==(t=e.find(e=>e.active))?void 0:t.label},p=_(l),v={quality:{label:"Quality",value:"Auto"===s?"Auto":s,onSelect:()=>e(Zl.QUALITY)},speed:{label:"Speed",value:"Normal"===p?"Normal":p,onSelect:()=>e(Zl.SPEED)},audio:{label:"Audio",value:_(c),onSelect:()=>e(Zl.AUDIO)}};return ke(We,{children:[d&&ke(iu,h({},v.quality)),n&&ke(iu,h({},v.speed)),u&&ke(iu,h({},v.audio)),o.touch&&ke(We,{children:[ke(eu,{buffer:!0}),ke(up,{setMenuDisplayed:t})]})]})},[Zl.QUALITY]:()=>{const{qualities:e}=Gd(e=>e.playback),t=Gd(e=>e.setPlayback),n=e.map(e=>h(h({},e),{},{label:"Auto"===e.label?"Auto":e.label}));return ke(su,{items:n,onSelect:e=>t("qualities",e.currentTarget.dataset.id)})},[Zl.SPEED]:()=>{const{playbackRates:e}=Gd(e=>e.playback),t=Gd(e=>e.setPlayback),n=e.map(e=>h(h({},e),{},{label:"Normal"===e.label?"Normal":e.label}));return ke(su,{items:n,onSelect:e=>t("playbackRates",e.currentTarget.dataset.id)})},[Zl.AUDIO]:()=>{var e;const t=Gd(e=>e.playback.audioTracks),n=Gd(e=>e.setPlayback),i=oc(),o=we(!1),r=we(null==(e=t.find(e=>e.enabled))?void 0:e.label);return Oe(()=>(i(vr.MULTI_AUDIO_TRACK_CLICK,{event_name:"audio_menu_opened",has_selected_track:o.current,initial_track:r.current}),()=>{i(vr.MULTI_AUDIO_TRACK_CLICK,{event_name:"audio_menu_closed",has_selected_track:o.current,initial_track:r.current})}),[i]),ke(su,{items:t,onSelect:e=>{n("audioTracks",e.currentTarget.dataset.id),o.current=!0,i(vr.MULTI_AUDIO_TRACK_CLICK,{event_name:"select_audio_track",track_selected:e.currentTarget.innerText,has_selected_track:o.current,initial_track:r.current})}})}},pp={[Zl.EMPTY]:()=>ke(We,{}),[Zl.QUALITY]:({setPanel:e,setMenuDisplayed:t})=>ke(tu,{title:"Quality",onBack:()=>e(Zl.PREFS),setMenuDisplayed:t}),[Zl.SPEED]:({setPanel:e,setMenuDisplayed:t})=>ke(tu,{title:"Speed",onBack:()=>e(Zl.PREFS),setMenuDisplayed:t}),[Zl.PREFS]:({setMenuDisplayed:e})=>Gd(e=>e.appearance.isMenuBlockingUI)&&ke(tu,{title:"Settings",setMenuDisplayed:e}),[Zl.AUDIO]:({setPanel:e,setMenuDisplayed:t})=>ke(tu,{title:"Audio",onBack:()=>e(Zl.PREFS),setMenuDisplayed:t})},vp=({isMenuDisplayed:e,setMenuDisplayed:t,buttonRef:n,progressBarAndButtonsRef:i})=>{const o=Zl.PREFS,[r,a]=Pe(o),s=Gd(e=>e.playback.playbackRates);Kl({isMenuDisplayed:e,defaultPanel:o,setPanel:a});const l=(e=>_p[e]||_p[Zl.EMPTY])(r),c=(e=>pp[e]||pp[Zl.EMPTY])(r),d=r===Zl.SPEED?s.length:null;return ke(Zd,{ariaLabel:"Settings",type:Xl.PREFS,isMenuDisplayed:e,setMenuDisplayed:t,panel:r,buttonRef:n,progressBarAndButtonsRef:i,toggleKey:Li.PrefsMenu,panelContent:ke(l,{setPanel:a,setMenuDisplayed:t}),headerContent:ke(c,{setPanel:a,setMenuDisplayed:t}),resizeDependencies:d})},mp=({setMenuDisplayed:e})=>Gd(e=>e.appearance.isMenuBlockingUI)&&ke(tu,{title:"Chapters",setMenuDisplayed:e});const fp=({linkUrl:e,hoverStyles:t,chapterId:n})=>{const i=we(null),r=we(null),[a,s]=Pe(!1),l=Cn(o.touch&&"CopyLinkButton_module_touchDevice__74fff4a9","CopyLinkButton_module_copyLinkButton__74fff4a9",t),c=()=>{clearTimeout(i.current),clearTimeout(r.current)},d=oc(),u=function(e){return function(){for(var t=[],n=0;ns(!1),2e3)}))}));return ke(vu,{id:"copy-link-button-tooltip",tooltipContent:a||o.touch?ke("span",{className:"CopyLinkButton_module_linkCopied__74fff4a9",children:[ke(Xd,{name:gc.CHECKMARK,className:"CopyLinkButton_module_linkCopiedIcon__74fff4a9"}),"Link copied"]}):"Copy link",visible:a,position:_u.LEFT,margin:4,preventFocusOnClick:!0,children:ke(Su,{icon:ke("div",{className:"CopyLinkButton_module_shareIconContainer__74fff4a9",children:ke(Xd,{name:gc.LINK})}),iconSize:Zo.MD,className:l,onMouseLeave:()=>{c(),r.current=setTimeout(()=>s(!1),150)},onClick:u})})};const hp=({startTime:e,id:t,chapterId:n,active:i,label:o,onMouseEnter:r,onMouseLeave:a,onSelect:s})=>{const{onClick:l,onKeyDown:c}=jl(s),d=Cn("ChaptersPanelMenuOption_module_chapterListItem__a25107e7",i&&"ChaptersPanelMenuOption_module_active__a25107e7"),u=Cn(i&&"ChaptersPanelMenuOption_module_active__a25107e7","ChaptersPanelMenuOption_module_chapterListButton__a25107e7",Mn.EXCLUDE_GLOBAL_BUTTON_STYLES),_=Gd(e=>e.embed.parentUrl),p=Gd(e=>e.chapters.chapterShareBaseUrl),v=Gd(e=>e.debug.clipId),m=_?function(e,t,n){const[i]=n.split("#");return`${i}#vimeo_chapter_${e}=${t}`}(v,n,_):function(e,t){if(!t)return"";const[n]=t.split("#");return`${n}#chapter=${e}`}(n,p);return ke("li",{className:d,children:[ke("button",h(h({"data-id":t,"data-testid":"chapter-list-item-button",tabIndex:0,className:u,onClick:l,onKeyDown:c,onMouseEnter:r,onMouseLeave:a},pu),{},{children:ke("div",{className:"ChaptersPanelMenuOption_module_chapterInfoContainer__a25107e7",children:[ke("div",{className:"ChaptersPanelMenuOption_module_chapterTitleText__a25107e7",children:o}),ke("div",{className:"ChaptersPanelMenuOption_module_chapterStartTime__a25107e7",children:Jn(e)})]})})),m&&ke(fp,{linkUrl:m,chapterId:n,hoverStyles:"ChaptersPanelMenuOption_module_copyLinkButton__a25107e7"})]},t)},gp=({setMenuDisplayed:e,onMenuOptionMouseEnter:t,onMenuOptionMouseLeave:n})=>{const i=Gd(e=>e.events),o=Gd(e=>e.chapters.chapters),r=Gd(e=>e.chapters.activeCueId),a=o.map(e=>({label:e.text,id:e.cueId,active:e.cueId===r,startTime:e.startTime,chapterId:e.chapterId}));return ke(su,{items:a,onSelect:t=>{const n=t.currentTarget.dataset.id;"string"==typeof n&&i.fire(Wt._chapterSeekAttempted,parseFloat(n)+.001,"menu"),e(!1)},onMenuOptionMouseEnter:t,onMenuOptionMouseLeave:n,itemComponent:hp})},Ep=({isMenuDisplayed:e,setMenuDisplayed:t,buttonRef:n,progressBarAndButtonsRef:i,onMenuOptionMouseEnter:o,onMenuOptionMouseLeave:r})=>ke(Zd,{type:Xl.CHAPTERS,isMenuDisplayed:e,setMenuDisplayed:t,panel:Zl.CHAPTERS,buttonRef:n,progressBarAndButtonsRef:i,panelContent:ke(gp,{setMenuDisplayed:t,onMenuOptionMouseEnter:o,onMenuOptionMouseLeave:r}),headerContent:ke(mp,{setMenuDisplayed:t})});const bp=()=>{const e=Gd(e=>e.captions.fontSize),t=Gd(e=>e.captions.fontFamily),n=Gd(e=>e.captions.fontOpacity),i=Gd(e=>e.captions.color),o=Gd(e=>e.captions.bgColor),r=Gd(e=>e.captions.bgOpacity),a=Gd(e=>e.captions.windowOpacity),s=Gd(e=>e.captions.windowColor),l=Gd(e=>e.captions.edgeStyle),c=Gd(e=>e.appearance.videoHeight);return ke("div",{className:"PreviewWindow_module_previewWindow__13200e2c",children:ke("div",{className:"PreviewWindow_module_checkeredBackground__13200e2c",children:ke(Ru,{cues:[{html:"This is a preview\n of a caption"}],fontSize:e,fontFamily:t,fontOpacity:n,color:i,bgColor:o,bgOpacity:r,windowOpacity:a,windowColor:s,edgeStyle:l,height:c})})})};const Cp=({updateMetricsPayload:e})=>{const t=Gd(e=>e.resetCaptionsStyles);return ke(Su,h(h({className:`${Mn.EXCLUDE_GLOBAL_BUTTON_STYLES} ResetButton_module_resetButton__33762fc2 ${yu.focusable}`,withActive:!1,styled:!1},vn(()=>{t(),e({has_reset_all:!0,final_action_reset_all:!0})})),{},{children:ke("span",{children:"Reset all"})}))},yp={[Zl.EMPTY]:()=>ke(We,{}),[Zl.LANGUAGES]:({setPanel:e,updateMetricsPayload:t})=>{const n=Gd(e=>e.captions.textTracks),i=Gd(e=>e.setCaptions),{isMenuBlockingUI:o,isMenuVerticalVideoMode:r}=Gd(e=>e.appearance),a=o||r,s={customize:{label:"Customize",onSelect:()=>{e(Zl.CUSTOMIZE),t({has_clicked_customize:!0})}},preview:{label:"Preview",onSelect:()=>e(Zl.PREVIEW)}};return ke(We,{children:[ke(su,{items:n,onSelect:e=>{i("activeTextTrackId",e.currentTarget.dataset.id)}}),ke(eu,{buffer:!0}),ke(iu,h({},s.customize)),a&&ke(We,{children:[ke(eu,{buffer:!0}),ke(iu,h({},s.preview))]})]})},[Zl.CUSTOMIZE]:({setPanel:e,updateMetricsPayload:t})=>{const n=Gd(e=>e.appearance.isMenuBlockingUI),i=Gd(e=>e.appearance.isMenuVerticalVideoMode),o=n||i,r={font:{label:"Font",onSelect:()=>{e(Zl.FONT),t({has_clicked_font:!0})},size:Ql.SMALL},background:{label:"Background",onSelect:()=>{e(Zl.BACKGROUND),t({has_clicked_background:!0})},size:Ql.SMALL},window:{label:"Window",onSelect:()=>{e(Zl.WINDOW),t({has_clicked_window:!0})},size:Ql.SMALL},preview:{label:"Preview",onSelect:()=>e(Zl.PREVIEW)}};return ke(We,{children:[ke(iu,h({},r.font)),ke(iu,h({},r.background)),ke(iu,h({},r.window)),ke(Cp,{updateMetricsPayload:t}),o&&ke(We,{children:[ke(eu,{buffer:!0}),ke(iu,h({},r.preview))]})]})},[Zl.FONT]:({setPanel:e,updateMetricsPayload:t})=>{const n=Gd(e=>e.setCaptions),i=Gd(e=>e.captions.fontSize),o=Gd(e=>e.captions.fontFamily),r=Gd(e=>e.captions.fontOpacity),a=Gd(e=>e.captions.color),s=Gd(e=>e.captions.edgeStyle),l=Gd(e=>e.appearance.isMenuBlockingUI),c=Gd(e=>e.appearance.isMenuVerticalVideoMode),d=l||c,u=Ba(),_=()=>t({has_changed_font:!0,has_customized:!0,final_action_reset_all:!1}),p={fontFamily:{label:u.fontFamily.title,items:yn(u.fontFamily.items,o),onSelect:e=>{n("fontFamily",e.currentTarget.dataset.id),_()}},color:{label:u.color.title,items:yn(u.color.items,a),onSelect:e=>{n("color",e.currentTarget.dataset.id),_()}},fontSize:{label:u.fontSize.title,items:yn(u.fontSize.items,`${i}`),onSelect:e=>{n("fontSize",e.currentTarget.dataset.id),_()}},fontOpacity:{label:u.fontOpacity.title,items:yn(u.fontOpacity.items,r),onSelect:e=>{n("fontOpacity",e.currentTarget.dataset.id),_()}},edgeStyle:{label:u.edgeStyle.title,items:yn(u.edgeStyle.items,s),onSelect:e=>{n("edgeStyle",e.currentTarget.dataset.id),_()}},preview:{label:"Preview",onSelect:()=>e(Zl.PREVIEW)}};return ke(We,{children:[ke(lu,h({},p.fontFamily)),ke(uu,h({},p.color)),ke(du,h({},p.fontSize)),ke(du,h({},p.fontOpacity)),ke(lu,h({},p.edgeStyle)),ke(Cp,{updateMetricsPayload:t}),d&&ke(We,{children:[ke(eu,{}),ke(iu,h({},p.preview))]})]})},[Zl.BACKGROUND]:({setPanel:e,updateMetricsPayload:t})=>{const n=Gd(e=>e.setCaptions),i=Gd(e=>e.captions.bgColor),o=Gd(e=>e.captions.bgOpacity),r=Gd(e=>e.appearance.isMenuBlockingUI),a=Gd(e=>e.appearance.isMenuVerticalVideoMode),s=r||a,l=Ba(),c=()=>t({has_changed_background:!0,final_action_reset_all:!1,has_customized:!0}),d={bgColor:{label:l.bgColor.title,items:yn(l.bgColor.items,i),onSelect:e=>{n("bgColor",e.currentTarget.dataset.id),c()}},bgOpacity:{label:l.bgOpacity.title,items:yn(l.bgOpacity.items,o),onSelect:e=>{n("bgOpacity",e.currentTarget.dataset.id),c()}},preview:{label:"Preview",onSelect:()=>e(Zl.PREVIEW)}};return ke(We,{children:[ke(uu,h({},d.bgColor)),ke(du,h({},d.bgOpacity)),ke(Cp,{updateMetricsPayload:t}),s&&ke(We,{children:[ke(eu,{}),ke(iu,h({},d.preview))]})]})},[Zl.WINDOW]:({setPanel:e,updateMetricsPayload:t})=>{const n=Gd(e=>e.setCaptions),i=Gd(e=>e.captions.windowOpacity),o=Gd(e=>e.captions.windowColor),r=Gd(e=>e.appearance.isMenuBlockingUI),a=Gd(e=>e.appearance.isMenuVerticalVideoMode),s=r||a,l=Ba(),c=()=>t({has_changed_window:!0,final_action_reset_all:!1,has_customized:!0}),d={windowColor:{label:l.windowColor.title,items:yn(l.windowColor.items,o),onSelect:e=>{n("windowColor",e.currentTarget.dataset.id),c()}},windowOpacity:{label:l.windowOpacity.title,items:yn(l.windowOpacity.items,i),onSelect:e=>{n("windowOpacity",e.currentTarget.dataset.id),c()}},preview:{label:"Preview",onSelect:()=>e(Zl.PREVIEW)}};return ke(We,{children:[ke(uu,h({},d.windowColor)),ke(du,h({},d.windowOpacity)),ke(Cp,{updateMetricsPayload:t}),s&&ke(We,{children:[ke(eu,{}),ke(iu,h({},d.preview))]})]})},[Zl.PREVIEW]:({updateMetricsPayload:e})=>ke(We,{children:[ke(bp,{}),ke(Cp,{updateMetricsPayload:e})]})},Tp={[Zl.EMPTY]:()=>ke(We,{}),[Zl.LANGUAGES]:({setMenuDisplayed:e})=>Gd(e=>e.appearance.isMenuBlockingUI)&&ke(tu,{title:"CC/Subtitles",setMenuDisplayed:e}),[Zl.CUSTOMIZE]:({setPanel:e,setMenuDisplayed:t})=>ke(tu,{title:"Customize",onBack:()=>e(Zl.LANGUAGES),setMenuDisplayed:t}),[Zl.FONT]:({setPanel:e,setMenuDisplayed:t})=>ke(tu,{title:"Font",onBack:()=>e(Zl.CUSTOMIZE),setMenuDisplayed:t}),[Zl.BACKGROUND]:({setPanel:e,setMenuDisplayed:t})=>ke(tu,{title:"Background",onBack:()=>e(Zl.CUSTOMIZE),setMenuDisplayed:t}),[Zl.WINDOW]:({setPanel:e,setMenuDisplayed:t})=>ke(tu,{title:"Window",onBack:()=>e(Zl.CUSTOMIZE),setMenuDisplayed:t}),[Zl.PREVIEW]:({previousPanel:e,setPanel:t,setMenuDisplayed:n})=>ke(tu,{title:"Preview",onBack:()=>t(e),setMenuDisplayed:n})},Lp=({isMenuDisplayed:e,setMenuDisplayed:t,buttonRef:n,progressBarAndButtonsRef:i,updateMetricsPayload:o})=>{const r=Zl.LANGUAGES,[a,s]=Pe(r),[l,c]=Pe(r),d=(e=>yp[e]||yp[Zl.EMPTY])(a),u=(e=>Tp[e]||Tp[Zl.EMPTY])(a),_=e=>{c(a),s(e)};return Kl({isMenuDisplayed:e,defaultPanel:r,setPanel:s}),ke(Zd,{type:Xl.CC,ariaLabel:"CC/Subtitles",isMenuDisplayed:e,setMenuDisplayed:t,panel:a,buttonRef:n,progressBarAndButtonsRef:i,toggleKey:Li.CCMenu,panelContent:ke(d,{setPanel:_,setMenuDisplayed:t,previousPanel:l,updateMetricsPayload:o}),headerContent:ke(u,{setPanel:_,setMenuDisplayed:t,previousPanel:l})})};const Ap=({onButtonFocus:e})=>{const t=we(null),n=we(null),i=Gd(e=>e.setPlayback),r=Gd(e=>e.setDisplayList),a=Gd(e=>e.playback.volume),s=Gd(e=>e.playback.muted)?0:a,l=Gd(e=>e.playback.supportsSettingVolume),c=Gd(e=>e.displayList.controlBar),[d,u]=Pe(!1),_=100*s,[p,v]=Pe(!1),[m,f]=Pe(!1),g=dc(rr.VOLUME_SLIDER)&&l,E=d&&g,b=Math.round(100*s)+"% volume";Oe(()=>{c||u(!1)},[c]);const C=e=>{O(e)},y=()=>{u(!0),r("menu",!1)},T=e=>{bn(t.current,e)||bn(null==n?void 0:n.current,e)||u(!1),v(!1),document.removeEventListener("mouseup",T),document.removeEventListener("mousemove",C),document.removeEventListener("pointerup",T),document.removeEventListener("pointermove",C)},L=e=>{v(!0),O(e),o.pointerEvents?(document.addEventListener("pointerup",T),document.addEventListener("pointermove",C)):(document.addEventListener("mouseup",T),document.addEventListener("mousemove",C))},A=()=>{p||u(!1)},S=()=>f(!0),I=()=>f(!1);function O(e){let n=e.clientY;e.targetTouches&&e.targetTouches.length&&(n=e.targetTouches[0].clientY,e.preventDefault());const o=function(e){const n=mt(t.current).top,i=mt(t.current).bottom;return gt((i-e)/(i-n),0,100)}(n);i("volume",o)}const P=Cn("VolumeControl_module_volumeControl__a0c94891",Dn.VOLUME,yu.focusable),w=Cn("VolumeControl_module_volumeBar__a0c94891",m||p?"VolumeControl_module_mouseEnteredSlider__a0c94891":""),R=o.pointerEvents?{onPointerEnter:y,onPointerLeave:A}:{onMouseEnter:y,onMouseLeave:A},N=o.pointerEvents?{onPointerDown:L,onPointerEnter:S,onPointerLeave:I}:{onMouseDown:L,onMouseEnter:S,onMouseLeave:I};return ke("div",h(h({className:"VolumeControl_module_volumeControlContainer__a0c94891"},R),{},{"data-volume-control-container":!0,children:[ke(Y_,{ref:n,onFocus:e}),ke(qd,{visible:E,children:ke("div",h(h({role:"slider",className:P,ref:t,tabIndex:g?0:-1,"aria-label":"Volume (use up/down arrow keys to change)","aria-valuenow":100*s,"aria-valuetext":b,"aria-valuemin":0,"aria-valuemax":100,onBlur:()=>{p||u(!1)},onFocus:()=>{u(!0),r("menu",!1)},onTouchMove:O},N),{},{"data-volume-control":!0,children:ke("div",{className:w,children:[ke("div",{className:"VolumeControl_module_volumeBarFill__a0c94891",style:{height:`${_}%`}}),ke("div",{className:"VolumeControl_module_sliderHandle__a0c94891",style:{bottom:`${_}%`}})]})}))})]}))};const Sp=[cc.VIMEO_LOGO],Ip=({menuProps:e})=>{const t=Gd(e=>e.appearance.isMenuBlockingUI),n=Gd(e=>e.appearance.isMenuVerticalVideoMode),i=Gd(e=>e.controlBar.showAllControls),r=Gd(e=>e.displayList.controlBarButtons),a=Gd(e=>e.displayList.progressBar),s=Gd(e=>e.controlBar.progressBarExpanded),l=Jl(),c=(()=>{const e=Gd(e=>e.playback.canPlayPictureInPicture),t=Gd(e=>e.embed.fullscreen),n=Gd(e=>e.embed.showVimeoLogo),i=Gd(e=>e.embed.volume),r=Gd(e=>e.appearance.fullscreen),a=Gd(e=>e.embed.airplay),s=Gd(e=>e.playback.supportsAirPlay),l=Gd(e=>e.embed.chromecast),c=Gd(e=>e.playback.supportsChromecast),d=Gd(e=>e.playback.isChromecastSetupWithAvailableDevices),u=Gd(e=>e.appearance.stereoscopicEnabled),_=Gd(e=>e.playback.supportsStereoscopic),p=Gd(e=>e.displayList.ad),v=Gd(e=>e.playback.loadedMetadata),m=Gd(e=>{var t;return null==(t=e.interactive.hotspots)?void 0:t.length}),f=Gd(e=>e.interactive.enabled),h=Gd(e=>e.interactive.ready),g=Gd(e=>e.liveEvent.isLiveEvent),E=Gd(e=>e.liveEvent.isArchived),b=!!f&&(!h||m),C=s&&v&&!p&&!b&&a,y=l&&c&&d&&!p&&!b&&(!g||E),T=u&&_&&!p,L=e&&!p,A=(t||r)&&!(o.iOS&&m),S=n&&!p;return{[cc.AIRPLAY]:C,[cc.CHROMECAST]:y,[cc.FULLSCREEN]:A,[cc.PIP]:L,[cc.STEREOSCOPIC]:T,[cc.VIMEO_LOGO]:S,[cc.VOLUME]:i}})(),d=we(),u=we(),_=we(r),p=we(i),v=Object.keys(c).filter(e=>c[e]),m=Object.keys(l).filter(e=>l[e]),f=!!v.length||!!m.length,g=v.concat(m).filter(e=>!Sp.includes(e)),E=g.length>0,b=g.length>1,[C,y]=Pe(!1),T=()=>{if(p.current)return void y(!1);const e=d.current,t=u.current,n=null==e?void 0:e.children;if(!t||!(null==n?void 0:n.length)||!_.current)return;const i=t.clientWidth,o=Array.from(n).reduce((e,t)=>e+t.clientWidth+4,4);y(i{_.current=r,p.current=i},[r,i]),Oe(()=>{T()},[v.length,m.length]);const L=e=>{const t=null==e?void 0:e.target;if(!t||!r||i||!d.current||!u.current||!C)return;const n=mt(t),o=mt(u.current);if(n.left>o.left&&n.right{"ArrowLeft"!==e.code&&"ArrowRight"!==e.code||e.preventDefault()},role:"toolbar",children:ke("div",{className:k,ref:d,children:[c[cc.VOLUME]&&ke(Ap,{onButtonFocus:L}),l[Xl.CC]&&ke(K_,h(h({},e[Xl.CC]),{},{ref:e[Xl.CC].buttonRef,onFocus:L})),A&&l[Xl.CC]&&ke(Lp,h({},e[Xl.CC])),l[Xl.TRANSCRIPT]&&ke(X_,{onFocus:L}),l[Xl.PREFS]&&ke(F_,h(h({},e[Xl.PREFS]),{},{ref:e[Xl.PREFS].buttonRef,onFocus:L})),A&&l[Xl.PREFS]&&ke(vp,h({},e[Xl.PREFS])),l[Xl.CHAPTERS]&&ke(q_,h(h({},e[Xl.CHAPTERS]),{},{ref:e[Xl.CHAPTERS].buttonRef,onFocus:L})),A&&l[Xl.CHAPTERS]&&ke(Ep,h({},e[Xl.CHAPTERS])),c[cc.CHROMECAST]&&ke(z_,{onFocus:L}),c[cc.AIRPLAY]&&ke($_,{onFocus:L}),c[cc.STEREOSCOPIC]&&ke(j_,{onFocus:L}),c[cc.PIP]&&ke(G_,{onFocus:L}),c[cc.FULLSCREEN]&&ke(H_,{onFocus:L})]})}),w&&ke(W_,{})]}):null},Op=({menuProps:e})=>{const t=Jl(),n=Gd(e=>e.appearance.isMenuBlockingUI),i=Gd(e=>e.appearance.isMenuVerticalVideoMode);return(n||i)&&ke(We,{children:[t[Xl.CC]&&ke(Lp,h({},e[Xl.CC])),t[Xl.PREFS]&&ke(vp,h({},e[Xl.PREFS])),t[Xl.CHAPTERS]&&ke(Ep,h({},e[Xl.CHAPTERS]))]})},Pp=()=>{const e=we(null),t=Gd(e=>e.displayList.controlBar),n=Gd(e=>e.displayList.outro),i=Gd(e=>e.playback.playInitiated),o=Gd(e=>e.embed.isTrailer),r=Gd(e=>e.displayList.controlBarButtons),a=Gd(e=>e.controlBar.showAllControls),s=Gd(e=>e.embed.playbar),l=(()=>{const e=Gd(e=>e.setAppearance),[t,n]=Pe(!1);return{onMouseEnter:()=>{t||e("mousedOverControlBar",!0),n(!1)},onMouseLeave:()=>{t||e("mousedOverControlBar",!1),n(!1)},onTouchStart:()=>{e("mousedOverControlBar",!0),n(!0)},onTouchEnd:()=>{e("mousedOverControlBar",!1),n(!0)}}})(),c=ac()===rc.CENTER,d=o&&!i,u=dc(rr.PROGRESS_BAR)&&s,[_,p]=Pe(null),v=(({setHoveredChapterId:e,progressBarAndButtonsRef:t})=>{const n=Gd(e=>e.displayList.menu),i=Gd(e=>e.setDisplayList),o=we(null),r=we(null),a=we(null),{sendBPClosedCaptionsClickEvent:s,updateCCMetricsPayload:l,resetCCMetricsPayload:c}=(()=>{const e=Gd(e=>e.captions.language),t=Gd(e=>e.captions.fontSize),n=Gd(e=>e.captions.fontOpacity),i=Gd(e=>e.captions.fontFamily),o=Gd(e=>e.captions.color),r=Gd(e=>e.captions.edgeStyle),a=Gd(e=>e.captions.bgColor),s=Gd(e=>e.captions.bgOpacity),l=Gd(e=>e.captions.windowColor),c=Gd(e=>e.captions.windowOpacity),d=we({fontSize:t,fontOpacity:n,fontColor:o,fontFamily:i,edgeStyle:r,bgColor:a,bgOpacity:s,windowColor:l,windowOpacity:c}),u=we({language_selected:e||"off",has_clicked_customize:!1,has_customized:!1,has_clicked_font:!1,has_changed_font:!1,has_clicked_background:!1,has_changed_background:!1,has_clicked_window:!1,has_changed_window:!1,has_reset_all:!1,final_action_reset_all:!1}),_=Re(e=>{u.current=h(h({},u.current),e)},[]),p=oc();return Oe((function(){_({language_selected:e||"off"})}),[e,_]),Oe((function(){const e=t!==d.current.fontSize||o!==d.current.fontColor||i!==d.current.fontFamily||n!==d.current.fontOpacity||r!==d.current.edgeStyle||a!==d.current.bgColor||s!==d.current.bgOpacity||l!==d.current.windowColor||c!==d.current.windowOpacity;_({has_customized:e})}),[t,n,o,i,r,a,s,l,c,_]),{sendBPClosedCaptionsClickEvent:()=>p(vr.CLOSED_CAPTIONS_CLICK,u.current),updateCCMetricsPayload:_,resetCCMetricsPayload:()=>{u.current={language_selected:e||"off",has_clicked_customize:!1,has_customized:!1,has_clicked_font:!1,has_changed_font:!1,has_clicked_background:!1,has_changed_background:!1,has_clicked_window:!1,has_changed_window:!1,has_reset_all:!1,final_action_reset_all:!1},d.current={fontSize:t,fontOpacity:n,fontColor:o,fontFamily:i,edgeStyle:r,bgColor:a,bgOpacity:s,windowColor:l,windowOpacity:c}}}})(),[d,u]=Pe(!1),[_,p]=Pe(!1),[v,m]=Pe(!1),f=e=>t=>{e===p&&_&&!t&&(s(),c()),e(t),i("menu",t),e!==u&&u(!1),e!==p&&p(!1),e!==m&&m(!1)};n||(u(!1),p(!1),m(!1));const g=f(u),E=f(m),b=f(p);return{[Xl.CC]:{isMenuDisplayed:_,setMenuDisplayed:b,buttonRef:a,progressBarAndButtonsRef:t,updateMetricsPayload:l},[Xl.PREFS]:{isMenuDisplayed:d,setMenuDisplayed:g,buttonRef:o,progressBarAndButtonsRef:t},[Xl.CHAPTERS]:{isMenuDisplayed:v,setMenuDisplayed:E,buttonRef:r,progressBarAndButtonsRef:t,onMenuOptionMouseEnter:t=>{var n,i;return e(parseInt(null==t||null==(n=t.currentTarget)||null==(i=n.dataset)?void 0:i.id,10))},onMenuOptionMouseLeave:()=>e(null)}}})({setHoveredChapterId:p,progressBarAndButtonsRef:e}),m=Cn("ControlBar_module_controlBarWrapper__e8b5f2fe",c&&"ControlBar_module_centerPlayButton__e8b5f2fe"),f=Cn(Dn.VP_CONTROLS,"ControlBar_module_controls__e8b5f2fe",d&&"ControlBar_module_trailer__e8b5f2fe"),g=Cn("ControlBar_module_progressBarAndButtons__e8b5f2fe",!u&&"ControlBar_module_progressBarDisabled__e8b5f2fe",a&&"ControlBar_module_showAllControls__e8b5f2fe",r&&!a&&"ControlBar_module_buttonsExpanded__e8b5f2fe");return ke(Jd,{children:[ke("div",{className:m,children:[ke(V_,{controlBarVisibilityHandlers:l}),ke(qd,{visible:t,children:ke("div",h(h({className:f},l),{},{"data-control-bar":!0,children:!n&&!d&&ke("div",{className:g,ref:e,children:[u&&ke(dp,{hoveredChapterId:_}),ke(Ip,{menuProps:v})]})}))}),ke(Q_,{})]}),ke(Op,{menuProps:v})]})},wp=({styles:e})=>ke(Xd,{name:gc.HEART_WIDER_FILLED,style:e}),Rp=({styles:e})=>ke(Xd,{name:gc.HEART_WIDER_BROKEN_FILLED,style:e});const Np=({style:e,animateDirection:t="forward"})=>{const n=Cn("AnimatedClock_module_hands__167fcd36","AnimatedClock_module_hour__167fcd36","reverse"===t&&"AnimatedClock_module_reverse__167fcd36"),i=Cn("AnimatedClock_module_hands__167fcd36","AnimatedClock_module_minute__167fcd36","reverse"===t&&"AnimatedClock_module_reverse__167fcd36");return ke("svg",{viewBox:"0 0 20 20",style:e,children:[ke("polyline",{className:n,points:"9.64,4.68 10.56,4.68 11.28,11.21 8.93,11.21 9.64,4.68"}),ke("polyline",{className:i,points:"14.19,13.65 13.7,14.14 8.58,10.4 10.44,8.5 14.19,13.65"}),ke("circle",{className:"AnimatedClock_module_circle__167fcd36",cx:"10",cy:"10",r:"8",strokeWidth:"2"})]})},kp=({styles:e})=>ke(Np,{style:e}),Dp=({styles:e})=>ke(Np,{animateDirection:"reverse",style:e});const Mp=()=>{const e=we(null),t=Gd(e=>e.displayList.menu),n=Gd(e=>e.notification.currentNotification),i=Gd(e=>e.setNotification),{width:o,height:r}=Gd(e=>e.appearance.boundingClientRect),a=dc(rr.SIDE_DOCK_MENU);return ke(Hu,{fadeIn:!1,onContentChange:function(t){null!==t&&(clearTimeout(e.current),e.current=setTimeout(()=>{i("currentNotification",null)},750))},targetContent:n,children:e=>{const n=Cn("Notification_module_root__e1a43ecf",null!==e&&"Notification_module_active__e1a43ecf",a&&t&&"Notification_module_behindSideDock__e1a43ecf"),i=function(e,t,n){const i=e===Hd.WatchLaterAdded||e===Hd.WatchLaterRemoved?.5:.4,o=n>t?t:n;return{width:`${Math.round(o*i*1.6)}px`,height:`${Math.round(o*i)}px`}}(e,o,r);return ke("div",{className:n,children:[e===Hd.LikedAdded&&ke(wp,{styles:i}),e===Hd.LikeRemoved&&ke(Rp,{styles:i}),e===Hd.WatchLaterAdded&&ke(kp,{styles:i}),e===Hd.WatchLaterRemoved&&ke(Dp,{styles:i})]})}})};let Bp;!function(e){e.Backward="backward",e.Forward="forward"}(Bp||(Bp={}));const Vp=()=>{const e=Gd(e=>e.displayList.nudgeNotification),t=Gd(e=>e.nudge.direction),n=Gd(e=>e.nudge.time);return ke(qd,{visible:e,children:ke("div",{"aria-hidden":"true",className:`NudgeNotification_module_nudge__24f10a71 ${t===Bp.Backward&&"NudgeNotification_module_nudgeBackward__24f10a71"}`,children:ke("div",{className:"NudgeNotification_module_nudgeInfo__24f10a71",children:[ke("div",{className:"NudgeNotification_module_nudgeIcon__24f10a71",children:ke(Xd,{name:gc.FAST_FORWARD})}),ke("div",{className:"NudgeNotification_module_nudgeTime__24f10a71",children:n?n+" seconds":""})]})})})};let xp;const Up=()=>{const e=we(Yd().getState().playback.currentFragment),t=we(Yd().getState().playback.currentTime),n=we(Yd().getState().playback.liveEdgeTime),i=we(Yd().getState().playback.liveTailTime);Yd().subscribe(t=>e.current=t.playback.currentFragment),Yd().subscribe(e=>t.current=e.playback.currentTime),Yd().subscribe(e=>n.current=e.playback.liveEdgeTime),Yd().subscribe(e=>i.current=e.playback.liveTailTime);const r=Gd(e=>e.displayList.fullPlayerElement),a=Gd(e=>e.displayList.ad),s=Gd(e=>e.liveEvent.isLiveEvent),l=Gd(e=>e.liveEvent.dvrEnabled),c=Gd(e=>e.liveEvent.isArchived),d=s&&!c&&!l,u=Gd(e=>e.embed.background),_=Gd(e=>e.embed.controls),p=Gd(e=>e.displayList.outro),v=Gd(e=>e.config.video.spatial),m=!(!o.spatialPlayback||!v),f=o.touch&&!r&&!a&&!d&&!u&&_&&!p&&!m,h=Gd(e=>e.setPlayback),g=Gd(e=>e.setNudgeProperties),[E,b]=Pe({left:0,right:0}),C=o=>r=>{let a;r.preventDefault(),o===Bp.Forward?(a=E.left+1,b({left:a,right:0})):(a=E.right+1,b({left:0,right:a})),clearTimeout(xp),xp=setTimeout(y,250),a>=2&&function(o,r){let a,l;s?(a=i.current,l=n.current):({startTime:a,endTime:l}=e.current);let c=0;c=o===Bp.Forward?t.current+10:t.current-10,c=l?c=l-.001:g({direction:o,time:10+10*(r-2)}),h("currentTime",c,{seekType:"nudge"})}(o,a)};function y(){b({left:0,right:0})}return f&&ke(We,{children:[ke("div",{className:"NudgeArea_module_nudgeArea__7d84d7de NudgeArea_module_nudgeBackwardArea__7d84d7de",onTouchEnd:C(Bp.Backward)}),ke("div",{className:"NudgeArea_module_nudgeArea__7d84d7de NudgeArea_module_nudgeForwardArea__7d84d7de",onTouchEnd:C(Bp.Forward)})]})},Hp=({element:e,children:t})=>je(ke(We,{children:t}),e);const Fp=()=>{const e=Gd(e=>e.embed.like),t=Gd(e=>e.embed.watchLater),n=Gd(e=>e.embed.share),i=Gd(e=>e.embed.transcript),o=Gd(e=>e.embed.onsite),r=[{key:"↑",text:"Volume up",className:"HelpOverlay_module_arrow__079276a9 HelpOverlay_module_hideOnSmall__079276a9"},{key:"↓",text:"Volume down",className:"HelpOverlay_module_arrow__079276a9 HelpOverlay_module_hideOnSmall__079276a9"},{key:"→",text:"Scrub forward",className:"HelpOverlay_module_arrow__079276a9 HelpOverlay_module_hideOnSmall__079276a9"},{key:"←",text:"Scrub backwards",className:"HelpOverlay_module_arrow__079276a9 HelpOverlay_module_hideOnSmall__079276a9"},{key:"X",text:"Like",ignore:!e},{key:"S",text:"Share",ignore:!n},{key:"W",text:"Watch Later",ignore:!t},{key:"C",text:"Toggle Captions"},{key:"H",text:"Toggle Preferences Menu"},{key:"F",text:"Toggle fullscreen"},{key:"⇧T",text:"Toggle Transcript",ignore:!i},{key:"⇧A",text:"Toggle Vimeo AI",ignore:!Gd(e=>e.embed.aiWidget)},{key:"V",text:"View on Vimeo",ignore:o},{key:"J",text:"Scrub backwards"},{key:"K",text:"Play/Pause"},{key:"L",text:"Scrub forward"},{key:"M",text:"Toggle Mute"}];return ke(We,{children:[ke("h1",{id:Dn.VP_OVERLAY_LABELLEDBY,children:"Keyboard Shortcuts"}),ke("div",{className:"HelpOverlay_module_keysWrapper__079276a9","data-help-keys":!0,children:r.map(e=>!e.ignore&&ke("div",{className:`HelpOverlay_module_keyWrapper__079276a9 ${e.className||""}`,children:[ke("div",{className:"HelpOverlay_module_keySymbol__079276a9",children:e.key}),ke("div",{className:"HelpOverlay_module_keyText__079276a9",children:e.text})]}))})]})};const Gp=He((e,t)=>{const n=Gd(e=>e.setOverlay),i=vn(e=>{e.preventDefault(),n("purpose",Gn.EMPTY)});return ke("button",h(h(h({ref:t,className:`CloseOverlayButton_module_closeOverlayButton__bc0b3ddc ${yu.focusableButton}`},pu),i),{},{children:ke(Xd,{name:gc.CLOSE})}))});const Yp=({children:e,visible:t,style:n})=>{const i=we(null),o=we(null),r=Gd(e=>e.setOverlay),a=Gd(e=>e.overlay.purpose),s=Gd(e=>e.displayList.overlay),l=Gd(e=>e.overlay.overlayElementsUpdatedCount),c=$e(e).length>0,d=s&&jn(a)&&c,{onFocus:u,focusFirstItem:_}=vc({parentRef:o,isActive:d,onEscape:()=>r("purpose",Gn.EMPTY)}),p=Cn("OverlayBase_module_overlay__86aaa9b4",t&&"OverlayBase_module_visible__86aaa9b4");return Oe((function(){_()}),[l]),Oe((function(){a!==Gn.EMPTY&&jn(a)&&t&&_()}),[a,t]),ke("div",{ref:o,onFocus:u,className:`OverlayBase_module_overlayWrapper__86aaa9b4 ${t?"":"OverlayBase_module_hidden__86aaa9b4"}`,role:"dialog","aria-modal":"true","aria-labelledby":Dn.VP_OVERLAY_LABELLEDBY,"data-content-area-sibling-eligible":!0,style:n,"data-overlay":!0,children:[ke("div",{className:"OverlayBase_module_overlayCell__86aaa9b4",children:ke("div",{className:p,children:e})}),ke("nav",{className:"OverlayBase_module_overlayNav__86aaa9b4",children:ke(Gp,{ref:i})})]})},Wp=()=>{const e=Gd(e=>e.overlay.incrementOverlayElementsUpdatedCount);return ke(r_,{onEmbedShareVisibilityChange:e})};const $p=["disable","unlisted"],qp=()=>{const e=Gd(e=>e.overlay.spatialRedirectContext),t={title:"headset"===e?"Headset viewing isn’t currently supported in your mobile browser.":null,buttonText:"Watch in the Vimeo app",lowerText:"browser-support"===e?"360 not supported in this browser":null},n=Gd(e=>e.embed.doNotTrack),i=Gd(e=>e.embed.onsite),o=Gd(e=>!$p.includes(e.embed.privacy)),r=Gd(e=>e.embed.shareUrl),a=Pc(e=>e.embed.videoId);return ke(We,{children:[ke(qd,{visible:!0,children:ke("div",{className:"SpatialRedirectOverlay_module_background__43dc92f8"})}),"headset"===e&&ke("div",{className:"SpatialRedirectOverlay_module_title__43dc92f8",children:t.title}),o&&ke(Su,{className:"SpatialRedirectOverlay_module_button__43dc92f8",onClick:()=>{const e=n?r:function(e){return`https://vimeo.page.link/?link=https%3A%2F%2Fvimeo.com%2F${e}%3Futm_source%3Dvimeo%26utm_campaign%3Dmobileweb%26utm_content%3Dplayer-button-360video&apn=com.vimeo.android.videoapp&ibi=com.vimeo&isi=425194759&utm_source=vimeo&utm_campaign=mobileweb&utm_content=player-button&ct=360video&pt=417731&efr=1`}(a);window.open(e,i&&"_blank",i?"noopener":"")},children:t.buttonText}),"browser-support"===e&&ke("div",{className:"SpatialRedirectOverlay_module_lowerText__43dc92f8",children:t.lowerText})]})},Kp=()=>{const e=Gd(e=>e.overlay.purpose),t=Gd(e=>e.displayList.overlay),n=Gd(e=>e.setDisplayList),i=t&&jn(e),o=e!==Gn.EMPTY&&jn(e)?e:null;return ke(Hu,{onContentChange:e=>{n("overlay",!(null===e||e===Gn.EMPTY))},styleOverrides:{exitDone:{display:"block",visibility:"hidden"}},targetContent:o,children:t=>ke(Yp,{visible:t===e&&i,children:[t===Gn.HELP&&ke(Fp,{}),t===Gn.SHARE&&ke(Wp,{}),t===Gn.SPATIAL_REDIRECT&&ke(qp,{})]})})};const jp=()=>{const{pipOverlay:e}=Gd(e=>e.displayList);return ke(qd,{visible:e,children:ke("div",{className:`${Dn.VP_PIP_OVERLAY} PipOverlay_module_overlay__8ff12d1a`,"aria-hidden":"true",children:[ke(Xd,{name:gc.PIP}),ke("div",{className:"PipOverlay_module_title__8ff12d1a",children:"Playing in picture-in-picture"})]})})};let zp;!function(e){e.PLAYER_UI="player_ui",e.TITLE="title"}(zp||(zp={}));const Xp=()=>{const e=Gd(e=>e.liveEvent.isLiveEvent),t=Gd(e=>e.liveEvent.isPlayable),n=Gd(e=>e.playback.paused),i=Gd(e=>e.liveEvent.isEnded),o=e&&!i,r=Gd(e=>e.displayList.controlBar),a=Gd(e=>e.displayList.topCenterActionItem),s=Gd(e=>e.displayList.title),l=Gd(e=>e.displayList.toast),c=Gd(e=>e.playback.atLiveEdge);return!!o&&ke(qd,{visible:(r||a)&&!(s||l)&&t&&!n&&c,children:ke("div",{className:"LiveStatusLabelAndViewerCounter_module_liveStatusLabelAndViewerCounter__62de121d","aria-hidden":"true",children:[ke(Qp,{context:zp.PLAYER_UI}),ke(ev,{context:zp.PLAYER_UI})]})})};const Zp={[zp.PLAYER_UI]:"LiveStatusLabel_module_playerUI__103db393",[zp.TITLE]:"LiveStatusLabel_module_title__103db393"},Qp=({className:e,context:t})=>{const n=Gd(e=>e.embed.hideLiveLabel),i=Gd(e=>e.liveEvent.isLiveEvent),o=Gd(e=>e.liveEvent.isPlayable),r=Gd(e=>e.liveEvent.isArchived),a=Zp[t],s=Cn(Dn.VP_LIVE_STATUS,"LiveStatusLabel_module_liveStatusLabel__103db393",a,e),l=Cn(Dn.VP_LIVE_STATUS_CIRCLE,"LiveStatusLabel_module_liveStatusCircle__103db393",o?"LiveStatusLabel_module_live__103db393":"LiveStatusLabel_module_offline__103db393"),c=Cn("LiveStatusLabel_module_liveStatusText__103db393",o?"LiveStatusLabel_module_live__103db393":"LiveStatusLabel_module_offline__103db393");return i&&!r&&!n&&ke("div",{className:s,"data-live-status-label":!0,children:[ke("div",{className:l}),ke("span",{className:c,children:"LIVE"})]})};const Jp={[zp.PLAYER_UI]:"LiveViewerCounter_module_playerUI__ac542125",[zp.TITLE]:"LiveViewerCounter_module_title__ac542125"},ev=({className:e="",context:t})=>{const n=Gd(e=>e.liveEvent.isPlayable),i=Gd(e=>e.embed.showViewerCount),o=Gd(e=>e.liveEvent.viewerCount),r=Gd(e=>e.liveEvent.liveStatsRequestSucceeded),a=Jp[t],s=Cn(Dn.VP_LIVE_VIEWER_COUNT,"LiveViewerCounter_module_liveViewerCounter__ac542125",a,e);return n&&i&&r&&ke("div",{className:s,"data-live-viewer-counter":!0,children:[ke(Xd,{className:"LiveViewerCounter_module_liveViewerCounterIcon__ac542125",name:gc.PERSON_FILLED}),ke("span",{className:"LiveViewerCounter_module_liveViewerCountValue__ac542125",children:o})]})},tv={[ni.LIGHT]:ti.EIGHTY,[ni.DARK]:ti.TWENTY},nv=()=>{const e=Pc(e=>e.uuid),t=Pc(e=>e.view),n=Pc(e=>e.embed.transparent),i=Pc(e=>e.colors.colorOne),o=Pc(e=>e.colors.colorTwo),r=Pc(e=>e.colors.colorThree),a=Pc(e=>e.colors.colorFour),s=[[ei.ONE,oi(i,ti.ONE_HUNDRED)],[ei.TWO,oi(o,ti.ONE_HUNDRED)],[ei.THREE,oi(r,ti.ONE_HUNDRED)],[ei.FOUR,oi(a,ti.ONE_HUNDRED,!1,!0)],[ei.ONE_MONOCHROME,oi(i,ti.ONE_HUNDRED,!0)],[ei.TWO_MONOCHROME,oi(o,ti.ONE_HUNDRED,!0)],[ei.ONE_OPACITY_NINETY,oi(i,ti.NINETY,!1,!0)],[ei.TWO_OPACITY_NINETY,oi(o,ti.NINETY,!1,!0)],[ei.THREE_OPACITY_TWENTY,oi(r,ti.TWENTY)],[ei.ONE_MONOCHROME_OPACITY_TWENTY,oi(i,ti.TWENTY,!0)],[ei.TWO_MONOCHROME_OPACITY_TWENTY,oi(o,ti.TWENTY,!0)],[ei.ONE_MONOCHROME_OPACITY_SIXTY,oi(i,ti.SIXTY,!0)],[ei.ONE_MONOCHROME_OPACITY_TWENTY_EIGHTY,oi(i,tv,!0)],[ei.TWO_MONOCHROME_OPACITY_TWENTY_EIGHTY,oi(o,tv,!0)]];let l,c;return[Kt.privateLocked,Kt.privatePassword].includes(t)?(l="#000 !important",c="transparent !important"):n?(l="transparent !important",c="transparent !important"):(l=`var(${ei.FOUR})`,c=`var(${ei.FOUR})`),ke("style",{type:"text/css","data-player-colors":e,children:[`.player-${e} {\n ${ri(s)}\n }`,`.player-${e} {\n background-color: ${l};\n }`,`.player-${e} .${Dn.VP_VIDEO_WRAPPER} {\n background-color: ${c};\n }`]})};const iv=()=>{const e=Gd(e=>e.embed.rightContentAreaEnabled),t=Gd(e=>e.displayList.rightContentArea),n=Gd(e=>e.appearance.rightContentAreaAnimating);let i=Gd(e=>e.element);const r={transcript:{component:pv,displayed:Gd(e=>e.displayList.transcript)},aiWidget:{component:Iv,displayed:Gd(e=>e.displayList.aiWidget)}},a=o.isGoogleBot&&r.transcript.displayed;var s;a&&(i=null==(s=i)?void 0:s.parentElement);const l=Cn("RightContentArea_module_rightContentArea__47ebd4fd",t&&"RightContentArea_module_visible__47ebd4fd",So&&"RightContentArea_module_iframeEmbed__47ebd4fd",a&&"RightContentArea_module_googleBot__47ebd4fd"),c=Object.keys(r).some(e=>{var t;return null==(t=r[e])?void 0:t.displayed}),d=!t&&n,u=d?400:void 0,_=d||c&&t&&!n?void 0:0,p={exitDone:{visibility:"hidden",display:"block"}};return e&&je(ke("div",{id:Bn.RIGHT_CONTENT_AREA,className:l,"aria-hidden":!t,children:Object.keys(r).map((function(e){var t,n;const i=null==(t=r[e])?void 0:t.component,o=null==(n=r[e])?void 0:n.displayed;return i?ke(qd,{duration:_,visible:o,delay:u,styleOverrides:p,children:ke(i,{})},e):null}))}),i)};const ov=()=>{const[e,t]=Pe(!1),n=Gd(e=>e.appearance.placeholderThumbnail),i=Gd(e=>e.appearance.appSizeMode),r=Gd(e=>e.appearance.appBreakpoint),a=Gd(e=>e.embed.rightContentAreaEnabled),s=Gd(e=>e.displayList.rightContentArea),l=Gd(e=>e.appearance.rightContentAreaAnimating),c=Gd(e=>e.element),d=a&&(s||l),u=r===Xo.XS||r===Xo.XXS||i===_i.MINI||i===_i.TINY,_=Cn("ContentAreaBackground_module_img__8653efe9",e&&"ContentAreaBackground_module_loaded__8653efe9"),p=u?{visible:s,duration:400}:{visible:d,duration:0};return o.isGoogleBot?null:je(ke(qd,h(h({},p),{},{children:ke("div",{className:"ContentAreaBackground_module_imgContainer__8653efe9",children:ke("img",{onLoad:()=>t(!0),alt:"video thumbnail",className:_,src:n})})})),null==c?void 0:c.querySelector(`.${Mn.CONTENT_AREA_BACKGROUND_CONTAINER}`))};ze(".TranscriptError_lazy_module_refresh__eeacf550{border:none;padding:4px 12px;gap:4px;height:32px;background:hsla(0,0%,100%,.1);border-radius:4px}.TranscriptError_lazy_module_icon__eeacf550{width:40px;height:40px}",{});const{Provider:rv,useStore:av}=De(),sv={timecodeDisplayed:!0,selectedSettingsMenu:Tl.MAIN,settingsDisplayed:!1,currentSearchResultIndex:0,searchTerms:{terms:"",timestamp:null},searchResults:[],transcriptDisabled:!1,autofollowEnabled:!0},lv=({children:e})=>{const t=Gd(e=>e.subscribe),n=Gd(e=>e.captions.textTrackEls),i=Gd(e=>e.captions.rtlTracks),o=Gd(e=>e.config),r=Gd(e=>e.events),a=Gd(e=>e.displayList.transcript),s=Gd(e=>e.displayList.fullPlayerElement),l=Gd(e=>e.appearance.appBreakpoint),c=Gd(e=>e.appearance.appSizeMode),d=oc(),u=((e,t)=>e.map(e=>{const n=e.id.replace(Fn.TEXT_TRACK_ID_PREFIX,""),i=t.includes(n);return{id:e.id,label:e.label,language:e.srclang,rtl:i}}))(n,i),_=Pl(o,u),p=we(null==_?void 0:_.language);return ke(rv,{createStore:()=>Me((e,n)=>{const i=(t,n)=>e(e=>h(h({},e),{},{[t]:n})),o=sv.selectedSettingsMenu,v=e=>i("selectedSettingsMenu",e),m=sv.settingsDisplayed,f=t=>{var i,o;const a={};if(t!==(null==(i=n())?void 0:i.settingsDisplayed)){var s,l;a.settingsDisplayed=t;const e=null==(s=n())||null==(l=s.selectedTrack)?void 0:l.language;t?d(vr.EMBEDDED_TRANSCRIPT_CLICK,{name:"open_embed_transcript_setting",copy:"settings",location:"player_embedded_transcript",element:"embedded_transcript_settings_menu",current_transcript_language:e}):t||e===p.current||(d(vr.EMBEDDED_TRANSCRIPT_CLICK,{name:"change_language_settings",copy:e,location:"player_embedded_transcript_settings",element:"language_select_panel",current_transcript_language:e}),p.current=e)}(null==(o=n())?void 0:o.settingsDisplayed)&&!t&&(a.selectedSettingsMenu=sv.selectedSettingsMenu),Object.keys(a).length&&e(e=>h(h({},e),a));const c=t?"preact-menu":"";r.fire(Wt._menuVisibilityChanged,c)},g=sv.timecodeDisplayed,E=sv.currentSearchResultIndex,b=e=>i("currentSearchResultIndex",e),C=sv.searchResults,y=e=>{0===e.length&&i("currentSearchResultIndex",0),i("searchResults",e)},T=sv.searchTerms,L=e=>i("searchTerms",e),A=!a||s,S=cv(l,c),I=sv.autofollowEnabled;function O(){L(sv.searchTerms),y(sv.searchResults),b(sv.currentSearchResultIndex)}return t(e=>{var t;return null==e||null==(t=e.displayList)?void 0:t.transcript},e=>{e||(f(sv.settingsDisplayed),v(sv.selectedSettingsMenu))}),t(e=>{var t,n;return{transcriptVisible:null==e||null==(t=e.displayList)?void 0:t.transcript,overlayVisible:null==e||null==(n=e.displayList)?void 0:n.fullPlayerElement}},({transcriptVisible:e,fullPlayerElement:t})=>{i("transcriptDisabled",!(e&&!t))}),t(e=>{var t,n;return{breakpoint:null==e||null==(t=e.appearance)?void 0:t.appBreakpoint,sizeMode:null==e||null==(n=e.appearance)?void 0:n.appSizeMode}},({breakpoint:t,sizeMode:i})=>{const o=cv(t,i);o!==n().transcriptSizeMode&&e(e=>h(h({},e),{},{transcriptSizeMode:o}))}),t(e=>{var t,n;return{outroDisplayed:null==e||null==(t=e.displayList)?void 0:t.outro,animationActive:null==e||null==(n=e.appearance)?void 0:n.rightContentAreaAnimating}},({outroDisplayed:e,animationActive:t})=>{e&&!t&&O()}),{timecodeDisplayed:g,searchTerms:T,setSearchTerms:L,resetSearchTerms:()=>L(sv.searchTerms),currentSearchResultIndex:E,setCurrentSearchResultIndex:b,settingsDisplayed:m,setSettingsDisplayed:f,selectedTrack:_,availableTracks:u,setSelectedTrack:e=>{const t=u.find(t=>t.id===e);i("selectedTrack",t),O(),r.fire(Wt._transcriptChanged,t)},selectedSettingsMenu:o,setSelectedSettingsMenu:v,searchResults:C,setSearchResults:y,toggleTimecodeDisplayed:()=>{var e;return i("timecodeDisplayed",!(null==(e=n())?void 0:e.timecodeDisplayed))},toggleSettingsDisplayed:()=>{var e;return f(!(null==(e=n())?void 0:e.settingsDisplayed))},transcriptDisabled:A,transcriptSizeMode:S,autoFollowEnabled:I,setAutoFollowEnabled:e=>i("autoFollowEnabled",e)}}),children:e})};function cv(e,t){const n=e===Xo.XS||e===Xo.XXS,i=t===_i.MINI||t===_i.TINY;return n||i?Ll.SMALL:e===Xo.XL||e===Xo.XXL?Ll.LARGE:Ll.MEDIUM}const dv=({onClose:e})=>{const t=Cn(Mn.EXCLUDE_GLOBAL_BUTTON_STYLES,"ContentAreaCloseButton_module_closeContentAreaButton__22a1987e",yu.focusableButton);let n=Zo.MD;const i=Gd(e=>e.appearance.appBreakpoint),r=Gd(e=>e.displayList.rightContentArea);i!==Xo.XL&&i!==Xo.XXL||(n=Zo.CUSTOM);const{onClick:a,onKeyDown:s}=vn(e),l=ke(Su,{onClick:a,onKeyDown:s,size:n,icon:ke(Xd,{name:gc.CLOSE,focusable:"false"}),"aria-label":"Close",disabled:!r,color:Qo.CUSTOM,className:t});return o.touch?l:ke(vu,{tooltipContent:"Close",className:"ContentAreaCloseButton_module_tooltip__22a1987e",children:l})};const uv=({message:e,icon:t,componentType:n,children:i,onClose:o})=>ke("div",{className:"ContentAreaMessage_module_container__7df41131","data-component-type":n,children:[ke(dv,{onClose:o}),t||ke(Xd,{name:gc.INFO_CIRCLE,className:"ContentAreaMessage_module_icon__7df41131"}),ke(bu,{size:tr.MD,weight:nr.NORMAL,className:"ContentAreaMessage_module_messageText__7df41131",children:e}),i]}),_v=({onRetry:e})=>{const t=oc(),n=av(e=>e.selectedTrack),i=Gd(e=>e.setDisplayList),o=ke(Xd,{name:gc.WARN_CIRCLE,className:"TranscriptError_lazy_module_icon__eeacf550"});return ke(uv,{message:"There was a problem loading the transcript.",onClose:()=>i("transcript",!1),componentType:"transcript-error",icon:o,children:ke(Su,{className:"TranscriptError_lazy_module_refresh__eeacf550",color:Qo.PRIMARY,onClick:()=>{e(),t(vr.EMBEDDED_TRANSCRIPT_CLICK,{name:"click_refresh_error",copy:"Refresh",location:"player_embedded_transcript_error",element:"refresh_transcript_button",current_transcript_language:null==n?void 0:n.language})},"data-component-type":"retry-request",children:ke(bu,{size:tr.MD,weight:nr.BOLD,color:ir.WHITE,children:"Refresh"})})})};const pv=({style:e={}})=>{const t=we(!0),n=Gd(e=>e.displayList.transcript),{module:i,load:o,readyState:r}=nc(function(e){return function(){for(var t=[],n=0;ne.embed.transcript);if(n&&t.current&&(o(),t.current=!1),!s||r!==ec.LOADED&&!n)return null;const l=Cn(!n&&"TranscriptLoader_module_hidden__48b2f57a");return(ke("div",{style:e,className:l,children:[r===ec.LOADING&&ke(wu,{}),r===ec.ERROR&&ke(_v,{onRetry:o}),r===ec.LOADED&&ke(a,{})]}))};let vv;const mv=()=>{const e=Gd(e=>e.playback.buffering),t=Gd(e=>e.playback.isChromecastBuffering),n=Gd(e=>e.playback.isChromecastConnected),i=Gd(e=>e.displayList.progressBar),o=Gd(e=>e.appearance.isStartTimeThumbLoading),[r,a]=Pe(o);return e||t||o?vv=setTimeout(()=>{a(!0)},600):(clearTimeout(vv),a(!1)),i&&ke(We,{children:[ke(qd,{visible:n||r,styleOverrides:{enterActive:{opacity:.4},exit:{opacity:.4},exitDone:{display:"none"}},children:ke("div",{className:"BufferHandler_module_shade__a4e303c9","data-shade":!0})}),ke(qd,{visible:r,styleOverrides:{exitDone:{display:"none"}},children:ke(wu,{size:or.LG})})]})};const fv=()=>{const e=Gd(e=>e.captions.activeCues),t=Gd(e=>e.captions.language),n=Gd(e=>e.captions.direction),i=Gd(e=>e.displayList.captions),o=Gd(e=>e.displayList.controlBar),r=Gd(e=>e.displayList.progressBar),a=Gd(e=>e.appearance.fullscreen),s=Gd(e=>e.embed.rightContentAreaEnabled),l=Gd(e=>e.captions.fontSize),c=Gd(e=>e.captions.fontFamily),d=Gd(e=>e.captions.fontOpacity),u=Gd(e=>e.captions.color),_=Gd(e=>e.captions.bgColor),p=Gd(e=>e.captions.bgOpacity),v=Gd(e=>e.captions.windowOpacity),m=Gd(e=>e.captions.windowColor),f=Gd(e=>e.captions.edgeStyle),h=Gd(e=>e.appearance.videoHeight),g=Gd(e=>e.appearance.containerHeight),E=Pc(e=>e.embed.transparent);let b=null,C={};!a&&E||h{const t=Gd(e=>e.closeToast),[n,i]=Pe(!1),[o,r]=Pe(!1),[a,s]=Pe(!1),l=oc();Oe(()=>{l(vr.VIEW_PLAYER_CSAT_V1),hv=setTimeout(t,1e4)},[l,t]);return ke(We,{children:[ke(Vu,{transitionTime:1e4,ariaLabelledby:Un.QOE_SURVEY_TEXT}),ke(xu,{id:Un.QOE_SURVEY_TEXT,children:"How's the viewing experience?"}),ke(Du,{className:`QoESurvey_module_thumbsUp__32b208ff ${n?"QoESurvey_module_selected__32b208ff":""}`,tooltipLabel:"Good","aria-label":"Good","aria-describedby":Un.QOE_SURVEY_TEXT,icon:ke(Xd,{name:n?gc.THUMBS_UP_FILLED:gc.THUMBS_UP}),onClick:()=>{n||o||a||(l(vr.SELECT_THUMBS_UP_PLAYER_CSAT_V1),i(!0),clearTimeout(hv),setTimeout(t,200))},containerRef:e}),ke(Du,{className:`QoESurvey_module_thumbsDown__32b208ff ${o?"QoESurvey_module_selected__32b208ff":""}`,tooltipLabel:"Poor","aria-label":"Poor","aria-describedby":Un.QOE_SURVEY_TEXT,icon:ke(Xd,{name:o?gc.THUMBS_DOWN_FILLED:gc.THUMBS_DOWN}),onClick:()=>{n||o||a||(l(vr.SELECT_THUMBS_DOWN_PLAYER_CSAT_V1),r(!0),clearTimeout(hv),setTimeout(t,200))},containerRef:e}),ke(ku,{}),ke(Uu,{onClick:()=>{n||o||a||(l(vr.DISMISS_PLAYER_CSAT_V1),s(!0),clearTimeout(hv),t())},describedBy:Un.QOE_SURVEY_TEXT,selected:a})]})},Ev=()=>{const e=Gd(e=>e.playback.liveEdgeTime),t=Gd(e=>e.setPlayback),n=oc();return ke(Bu,{onClick:()=>{t("atLiveEdge",!0),t("currentTime",e),n(vr.SKIP_TO_LIVE_CLICK)},label:"Skip to live"})},bv=()=>{const e=Gd(e=>e.closeToast);return ke(We,{children:[ke(xu,{id:Un.BROADCAST_OVER,children:"The live broadcast is over"}),ke(ku,{}),ke(Uu,{onClick:e,describedBy:Un.BROADCAST_OVER})]})};const Cv={[Nd.QOE_SURVEY]:Un.QOE_SURVEY_TEXT,[Nd.BROADCAST_OVER]:Un.BROADCAST_OVER},yv=()=>{const e=we(null),t=Gd(e=>e.toast.purpose),n=Gd(e=>e.appearance.fullscreen),i=Gd(e=>e.setDisplayList),r=Cv[t],a="translateY("+(n&&o.iPadOS?"calc(36px + 16px)":"0")+")",s={enter:{transform:"translateY(calc(-100% - 16px))",opacity:1},enterActive:{transition:"transform 400 ease-in-out",transform:a},enterDone:{transform:a},exit:{transform:a},exitActive:{transition:"transform 400 ease-in-out",transform:"translateY(calc(-100% - 16px))",opacity:1},exitDone:{transform:"translateY(calc(-100% - 16px))",display:"none"}};return ke(Hu,{targetContent:t!==Nd.EMPTY?t:null,onContentChange:e=>{i("toast",!!e)},delay:400,styleOverrides:s,children:t=>ke(Nu,{className:"Toasts_module_toasts__25d07d44",ref:e,ariaLabelledby:r,children:[t===Nd.QOE_SURVEY&&ke(gv,{containerRef:e}),t===Nd.SKIP_TO_LIVE&&ke(Ev,{}),t===Nd.BROADCAST_OVER&&ke(bv,{})]})})},Tv=()=>{const e=Gd(e=>e.liveEvent.isLiveEvent)?"Unmute broadcast":"Unmute",{unmute:t}=sc();return ke(Bu,{onClick:t,label:e})},Lv=()=>{const e=Gd(e=>e.setAppearance),t=Gd(e=>e.clearSegment),n=Gd(e=>e.playback.startTime),i=Gd(e=>e.playback.endTime),o=oc();return ke(Bu,{onMouseEnter:()=>e("mousedOverControlBar",!0),onMouseLeave:()=>e("mousedOverControlBar",!1),onClick:()=>{o(vr.WATCH_FULL_VIDEO,{start_time:n,end_time:i}),t()},label:"Watch full video"})};const Av=()=>{const e=Gd(e=>e.topCenterActionItem.purpose),t=Gd(e=>e.setDisplayList);return ke(Hu,{targetContent:e!==ll.EMPTY?e:null,onContentChange:e=>{t("topCenterActionItem",!!e)},styleOverrides:{exitDone:{display:"none"}},children:e=>ke(Nu,{className:"TopCenterActionItems_module_topCenterActionItems__2bfde47f",children:[e===ll.UNMUTE&&ke(Tv,{}),e===ll.WATCH_FULL_VIDEO&&ke(Lv,{})]})})};const Sv=({onReload:e})=>{const t=Gd(e=>e.setDisplayList),n=Cn(Mn.EXCLUDE_GLOBAL_BUTTON_STYLES,"AIWidgetError_module_reload__7c52451c");return ke(uv,{message:"Unable to load Vimeo AI",componentType:"ai-error",onClose:()=>t("aiWidget",!1),children:ke(Su,{className:n,size:Zo.CUSTOM,onClick:e,"data-component-type":"reload-ai",children:ke(bu,{size:tr.MD,weight:nr.BOLD,children:"Try again"})})})};const Iv=({style:e={}})=>{const t=Gd(e=>e.displayList.aiWidget),i=Pc(e=>e.embed.vimeoUrl),o=Pc(e=>e.embed.videoId),r=Gd(e=>e.embed.videoUnlistedHash),a=Gd(e=>e.setDisplayList),s=Gd(e=>e.appearance.rightContentAreaAnimating),l=Gd(e=>e.embed.onsite),c=Gd(e=>e.embed.aiWidgetSignature),d=oc(),u=fc(t),[_,p]=Pe(!1),v=Cn("AIWidget_module_aiWidget__9bd9d0b8",!t&&"AIWidget_module_hidden__9bd9d0b8"),m={transparentBackground:!l};c&&(m.guestSignature=c);const f=n(`https://${i}/ai-player/${o}${r?`/${r}`:""}`,m),{componentVersion:g,hasError:E,componentTimeout:b,onError:C,onReload:y}=lc(),T=Re(()=>{const e={[mr.WEB]:{page_name:"player"},[mr.PRODUCT_ANALYTICS]:{copy:"Ask Vimeo AI",feature:"ai",product:"ai",element:"icon"}};d(vr.OPEN_AI_OPTIONS,{},e)},[d]);return Oe(()=>{t&&(T(),_||p(!0))},[t]),ke("div",h(h({className:v,style:e,"aria-label":"Ask Vimeo AI"},u),{},{children:[E&&ke(Sv,{onReload:y}),!E&&_&&ke(qu,{id:xn.AI_WIDGET_ID,url:f,title:"Ask Vimeo AI",onError:C,timeout:b,visible:t,onClose:()=>{a("aiWidget",!1)},isAnimating:s,waitForReady:!0},g)]}))},Ov=()=>{const e=we(!0),{module:t,load:n,readyState:i}=nc(function(e){return function(){for(var t=[],n=0;ne.playback.playInitiated),a=Gd(e=>e.embed.compass);return a&&r&&e.current&&(n(),e.current=!1),!a||i!==ec.LOADED&&!r?null:ke(o,{})};const Pv=()=>{const e=Gd(e=>e.embed.persistentLogo),t=Gd(e=>e.appearance.playerBreakpoint);return e&&ke("div",{className:"PersistentLogo_module_persistentLogo__e4ddb428",tabIndex:-1,"aria-hidden":"true","data-persistent-logo":!0,children:ke(ju,{playerBreakpoint:t})})};const wv=({children:e,shade:t,hideOnTiny:n})=>{const i=Gd(e=>e.appearance.playerSizeMode),o=Cn("OutroContentWrapper_module_outroContent__1c499014",t&&"OutroContentWrapper_module_outroShade__1c499014",i===_i.TINY&&n&&"OutroContentWrapper_module_hidden__1c499014");return ke("div",{className:o,children:e})};const Rv=()=>{const e=Gd(e=>e.outro.outroData);return ke(wv,{hideOnTiny:!0,shade:!0,children:ke("div",{className:"TextOutro_module_textWrapper__eb1c7bb7",children:e&&ke("div",{className:"TextOutro_module_text__eb1c7bb7",dangerouslySetInnerHTML:{__html:e.text}})})})};const Nv=({url:e})=>{const t={};return e&&(t.backgroundImage=`url(${e})`),ke("div",{className:"OutroContentBackground_module_background__fad7b858",style:t})},kv=()=>{const e=Gd(e=>e.outro.outroData);return e&&ke(We,{children:[ke(Nv,{url:null==e?void 0:e.imageUrl}),ke(wv,{shade:!0,hideOnTiny:!0,children:ke(r_,{})})]})};const Dv=()=>{const e=Gd(e=>e.outro.outroData),t={};return(null==e?void 0:e.imageUrl)&&(t.backgroundImage=`url(${e.imageUrl})`),ke(We,{children:[ke(qd,{visible:!0,children:ke("div",{className:"LinkOutro_module_linkBackground__1d6e5c98",style:t})}),ke(wv,{shade:!0,children:ke("div",{className:"LinkOutro_module_linkWrapper__1d6e5c98",children:e&&ke(We,{children:[e.title&&ke("h1",{className:"LinkOutro_module_title__1d6e5c98",children:e.title}),e.description&&ke("p",{className:"LinkOutro_module_description__1d6e5c98",children:e.description}),e.text&&e.url&&ke("div",{className:"LinkOutro_module_buttonWrap__1d6e5c98",children:ke(jd,{className:"LinkOutro_module_button__1d6e5c98",href:e.url,children:ke("span",{children:e.text})})}),e.text2&&e.url2&&ke(jd,{className:"LinkOutro_module_link__1d6e5c98",href:e.url2,children:e.text2})]})})})]})};const Mv=()=>{const e=Gd(e=>e.outro.outroData),t=function(e){const t=Gd(e=>e.events);return Re((function(){t.fire(Wt._outroImagePressed,e)}),[e,t])}(null==e?void 0:e.url);return e&&ke(wv,{children:(null==e?void 0:e.url)?ke(jd,{href:e.url,className:"ImageOutro_module_imageOutroLink__7a84ec40",onClick:t,targetBlank:!0,children:ke(Bv,{url:e.imageUrl,altText:null==e?void 0:e.alt_text})}):ke(Bv,{url:e.imageUrl,altText:null==e?void 0:e.alt_text})})};function Bv({url:e,altText:t}){return ke("div",h({role:"img",className:"ImageOutro_module_imageOutro__7a84ec40",style:{backgroundImage:`url(${e})`}},t?{ariaLabel:t}:{}))}const Vv=()=>ke(wv,{shade:!0});const xv=({videos:e})=>{const t=Gd(e=>e.embed.onsite),n=Gd(e=>e.events),i=Gd(e=>e.user.isPayingOwner),o=Gd(e=>e.embed.svvContext),r=Gd(e=>e.loadVideoViaIframe),a=e=>t=>{n.fire(Wt._outroVideoPressed,e.id),i&&!o&&(t.preventDefault(),r(e.id,{autoplay:!0}))},s=Cn("VideosList_module_videoLink__e7886b41",yu.focusable);return e.length&&ke("ul",{className:"VideosList_module_videosList__e7886b41","data-num-videos":e.length,children:e.map(e=>ke("li",{children:ke(jd,h(h({className:s,targetBlank:!t,href:e.url,onClick:a(e)},pu),{},{children:[ke(zu,{url:e.thumbnail,className:"VideosList_module_videoThumbnail__e7886b41"}),ke("header",{className:"VideosList_module_videoHeader__e7886b41",children:[ke(bu,{className:"VideosList_module_videoTitle__e7886b41",weight:nr.BOLD,element:"h1",size:tr.MD,color:ir.WHITE,children:e.title}),e.byline&&ke(bu,{className:"VideosList_module_videoByline__e7886b41",element:"h2",children:e.byline})]})]}))},e.id))})};const Uv=()=>{const[e,t]=Pe(!1),n=Gd(e=>e.user.following),i=Gd(e=>e.setUser);let o="Follow";const r=n&&e,a=n&&!e;r&&(o="Unfollow"),a&&(o="Following");const s=Cn("FollowButton_module_icon__9a75dd35","FollowButton_module_check__9a75dd35"),l=Cn("FollowButton_module_icon__9a75dd35","FollowButton_module_close__9a75dd35"),c=Cn("FollowButton_module_followButton__9a75dd35",a&&"FollowButton_module_following__9a75dd35");return ke("div",{onMouseEnter:()=>n&&t(!0),onMouseLeave:()=>t(!1),className:"FollowButton_module_followButtonContainer__9a75dd35",children:ke(Su,{className:c,onClick:()=>i("following",!n),children:[!n&&ke(Xd,{className:"FollowButton_module_icon__9a75dd35",name:gc.PLUS_SYMBOL}),a&&ke(Xd,{className:s,name:gc.CHECKMARK}),r&&ke(Xd,{className:l,name:gc.CLOSE}),ke("span",{className:"FollowButton_module_followButtonText__9a75dd35",children:o})]})})};const Hv=({titleMarkup:e})=>{const t=Gd(e=>!e.user.isClipOwner);return ke("div",{className:"VideosHeader_module_videosHeaderWrapper__82d8877c",children:ke("header",{className:"VideosHeader_module_videosHeader__82d8877c",children:[ke(bu,{className:"VideosHeader_module_videosTitle__82d8877c",size:tr.LG,element:"h1",containsMarkup:!0,children:e}),t&&ke(Uv,{})]})})};const Fv=()=>{var e;const t=Gd(e=>e.outro.outroData);return(null==t||null==(e=t.videos)?void 0:e.length)>0&&ke(We,{children:[ke(Nv,{url:t.imageUrl}),ke(wv,{shade:!0,children:ke("div",{className:"VideosOutro_module_videosOutro__aa31a3f4",children:[ke(Hv,{titleMarkup:t.context}),ke(xv,{videos:t.videos})]})})]})},Gv=()=>ke("h1",{children:"This is the VOD outro"}),Yv=()=>{const e=Gd(e=>e.outro.purpose),t=Gd(e=>e.embed.flags);return zo(e,t)?null:ke(Wv,{})};function Wv(){const e=Gd(e=>e.displayList.outro),t=Gd(e=>e.outro.active),n=Gd(e=>e.outro.purpose),i=Cn("Outro_module_outroWrapper__552ef1cd",Dn.VP_OUTRO_WRAPPER,!t&&"Outro_module_inactive__552ef1cd");return ke(qd,{visible:e,styleOverrides:{exitDone:{display:"none"}},children:ke("div",{className:i,"data-content-area-sibling-eligible":!0,children:ke("div",{className:"Outro_module_outro__552ef1cd",role:"dialog",children:[n===Ko.TEXT&&ke(Rv,{}),n===Ko.SHARE&&ke(kv,{}),n===Ko.VIDEOS&&ke(Fv,{}),n===Ko.LINK&&ke(Dv,{}),n===Ko.IMAGE&&ke(Mv,{}),n===Ko.NOTHING&&ke(Vv,{}),n===Ko.VOD&&ke(Gv,{})]})})})}const $v=({text:e})=>ke("h3",{children:[ke(Xd,{name:gc.WARN_TRIANGLE,className:"Warning_module_warningIcon__d2643ae4"}),ke("span",{dangerouslySetInnerHTML:{__html:e}})]});function qv(){return ke($v,{text:'See a list of browsers that support 360 viewing.'})}function Kv(){return ke($v,{text:'Looking to watch a 360 video? See supported browsers and settings.'})}const jv=({visible:e,children:t,duration:n,onComplete:i})=>ke(Ue,{in:e,duration:n,styles:{enter:{transform:"translateY(-100%)",transition:`transform ${n}ms linear, opacity ${n}ms`,opacity:0},enterActive:{opacity:1,transition:`transform ${n}ms cubic-bezier(0, 1.14, 0.57, 1.21), opacity ${n}ms`,transform:"translateY(0)",animationName:"bounce",animationDelay:n,animationDuration:"0.5s",animationFillMode:"forwards"},enterDone:{opacity:1,transform:"translateY(0)"},exit:{opacity:1,transform:"translateY(0)"},exitActive:{animationFillMode:"none",opacity:0,transform:"translateY(-100%)",transition:`transform ${2*n}ms linear, opacity ${2*n}ms linear`},exitDone:{display:"none"}},onExited:i,children:t}),zv=()=>{const e=Gd(e=>e.displayList.alert),t=we(null),n=Gd(e=>e.setAlert),i=Gd(e=>e.setDisplayList),o=Gd(e=>e.alert.currentAlert),r=Re(()=>i("alert",!1),[i]),a=Re(()=>n("currentAlert",bl.EMPTY),[n]);return Oe((function(){e&&(clearTimeout(t.current),t.current=setTimeout(r,1e3))}),[e,o]),ke(jv,{visible:e,duration:100,onComplete:a,children:ke("div",{className:"Alert_module_alert__c3129383",role:"alert",hidden:!e,children:[ke(Su,{onClick:r,icon:ke(Xd,{name:gc.CLOSE,className:"Alert_module_closeIcon__c3129383"}),"aria-label":"Close alert",className:"Alert_module_close__c3129383"}),o===bl.SPATIAL_UNSUPPORTED&&ke(qv,{}),o===bl.SPATIAL_FAILURE&&ke(Kv,{})]})})};const Xv={enter:{opacity:0},enterActive:{opacity:1,transition:"opacity 250ms ease-out"},enterDone:{opacity:1},exit:{opacity:1},exitActive:{opacity:0,transition:"opacity 250ms ease-out"},exitDone:{display:"none"}},Zv=Object.values(Fu),Qv=()=>{const e=Pc(e=>e.element),t=Pc(e=>e.accessGate.purpose),n=Pc(e=>e.accessGate.url),i=Pc(e=>e.accessGate.title),o=Pc(e=>e.accessGate.accessGateReady),r=Pc(e=>e.accessGate.accessGateLoaded),a=Pc(e=>e.accessGate.closeAccessGate),s=Pc(e=>e.accessGate.setAccessGateReady),l=Pc(e=>e.accessGate.setAccessGateLoaded),c=Pc(e=>e.accessGate.sendGateBPEvent),d=Pc(e=>e.config),[u,_]=Pe(!1),[p,v]=Pe(!1),m=t!==ko.EMPTY,f=u&&p&&m,h=u&&m&&!r,g=f&&o,E=Cn(Mn.REMOTE_ACCESS_GATE,"RemoteAccessGate_module_accessGate__ad33d653",h&&"RemoteAccessGate_module_waitingToDisplay__ad33d653",g&&"RemoteAccessGate_module_visible__ad33d653"),{componentVersion:b,hasError:C,componentTimeout:y,onError:T,onReload:L}=lc();return Oe(()=>{_(!0)},[]),Oe(()=>{const t=function(e){return function(){for(var t=[],n=0;n{Zv.includes(null==e?void 0:e.message)&&T(),c(Mo.ERROR,e)},config:d,onRemoteComponentReady:s,onIframeLoad:l},b)]})})};const Jv=({onReload:e})=>{const t=Cn(Mn.EXCLUDE_GLOBAL_BUTTON_STYLES,"RemoteAccessGateError_module_reload__765f151c");return ke("div",{className:"RemoteAccessGateError_module_container__765f151c","data-component-type":"access-gate",children:[ke(Xd,{name:gc.INFO_CIRCLE,className:"RemoteAccessGateError_module_icon__765f151c","aria-hidden":"true"}),ke(bu,{size:tr.LG,weight:nr.NORMAL,className:"RemoteAccessGateError_module_messageText__765f151c",role:"alert",children:"Unable to load registration form"}),ke(Su,{className:t,size:Zo.CUSTOM,onClick:e,"data-component-type":"reload-access-gate",children:ke(bu,{size:tr.MD,weight:nr.BOLD,children:"Try again"})})]})};const em=()=>{const e=Pc(e=>e.login.status),t=Pc(e=>e.embed.videoId),n=Pc(e=>e.embed.vimeoUrl),{loginText:i,buttonTarget:o}=((e=Go.NOT_LOGGED_IN)=>{const t={loginText:eo()?{title:"Sign in to Vimeo to watch this video",subtitle:"You may need to allow cookies first. If asked, select Allow to continue.",buttonText:"Sign in"}:{title:"Sign in to Vimeo",subtitle:"This video is private. Sign in to watch.",buttonText:"Sign in"},buttonTarget:ln.POPUP};switch(e){case Go.LOGGED_IN_NO_ACCESS:t.loginText={title:"Private Video",subtitle:"Sorry, you don’t have permission to watch.",buttonText:null};break;case Go.LOGGED_IN_STORAGE_ACCESS_REQUIRED:t.loginText={title:"Allow cookies",subtitle:"Your browser will ask if you want to allow cookies. Select Allow to continue.",buttonText:"Continue"};break;case Go.STORAGE_ACCESS_GRANTED_LOGIN_UNCONFIRMED:t.loginText={title:"Continue to sign in",subtitle:"You may now sign in to watch this video.",buttonText:"Continue"};break;case Go.ALL_ACCESS_ATTEMPTS_FAILED:t.loginText={title:"Video unavailable",subtitle:"Try watching on vimeo.com.",buttonText:"Watch on Vimeo"},t.buttonTarget=ln.ON_SITE}return t})(e),{loginHandler:r}=Wc(),a=e===Go.STORAGE_ACCESS_GRANTED_LOGIN_UNCONFIRMED||e===Go.ALL_ACCESS_ATTEMPTS_FAILED;return ke("div",{className:"PrivateGate_module_privateGateWrapper__57f31972","data-private-gate":!0,children:[ke(bu,{element:"h1",className:"PrivateGate_module_header__57f31972",children:i.title}),ke(bu,{className:"PrivateGate_module_subtitle__57f31972",weight:nr.NORMAL,containsMarkup:!0,"data-private-text":!0,children:i.subtitle}),e!==Go.LOGGED_IN_NO_ACCESS&&ke(Su,{role:a?"link":void 0,color:Qo.PRIMARY,className:Cn("PrivateGate_module_login__57f31972","PrivateGate_module_loginButton__57f31972",yu.focusableButton),"aria-describedby":a?"new-window":void 0,onClick:()=>{if(o===ln.POPUP)return void r();const e=`https://${n}/${t}`;window.open(e,"_blank")},children:i.buttonText})]})};function tm(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function nm(){}function im(e){var t=e();if(t&&t.then)return t.then(nm)}function om(e){return function(){for(var t=[],n=0;n{const e=Pc(e=>e.events),t=Pc(e=>e.embed.playerUrl),n=Pc(e=>e.embed.referrer),i=Pc(e=>e.embed.videoId),o=we(null),r=we(null),a=we(null),[s,l]=Pe(!1),[c,d]=Pe("There is an error with this input."),[u,_]=Pe(!1),p=`https://${t}/video/${i}/check-password?referrer=${n}`,v=Cn("PasswordGate_module_submitPassword__0e9743ae",u&&"PasswordGate_module_loading__0e9743ae"),m=()=>{const e=a.current;e.focus(),_(!1),l(!0),e.value.length?d("The password you entered is incorrect. Please try again."):d("Please enter the password.")},f=om((function(t){return t.preventDefault(),d(""),l(!1),im((function(){if(a.current.checkValidity())return _(!0),im((function(){if(a.current.checkValidity())return function(e){if(e&&e.then)return e.then(nm)}(function(n,i){try{var o=tm(rm(a.current.value,p),(function(t){t&&e.fire(Wt._passwordUnlocked,t)}))}catch(t){return i()}return o&&o.then?o.then(void 0,i):o}(0,(function(){m()})))}));m()}))}));return ke("div",{className:"PasswordGate_module_passwordGateWrapper__0e9743ae","data-password-gate":!0,children:[ke(bu,{className:"PasswordGate_module_header__0e9743ae",element:"h1",children:"Password required"}),ke(bu,{className:"PasswordGate_module_subtitle__0e9743ae",weight:nr.NORMAL,containsMarkup:!0,"data-private-text":!0,children:"If you have access, enter the password to watch."}),ke("form",{className:"PasswordGate_module_form__0e9743ae",ref:o,noValidate:!0,onSubmit:f,children:[ke(s_,{message:c,visible:s,wrapperEl:a.current}),ke("input",{className:"PasswordGate_module_passwordInput__0e9743ae",placeholder:"Enter password",required:!0,"aria-required":"true","aria-label":"Enter password","aria-invalid":s?"true":"false",ref:a,onInput:()=>l(!1),minLength:1,type:"password"}),ke(Su,{className:v,onClick:f,ref:r,disabled:s,focusable:!1,"data-submit-password":!0,children:"Submit"})]})]})},sm=()=>{const e=Pc(e=>e.localAccessGate.purpose);return e!==Mc.EMPTY&&ke("div",{className:"LocalAccessGate_module_localAccessGateWrapper__0fb7e183",children:[e===Mc.PASSWORD&&ke(am,{}),e===Mc.PRIVATE_LOCKED&&ke(em,{})]})};function lm(){const e=Gd(e=>e.setInteractive),t=Gd(e=>e.interactive.instanceId),n=Gd(e=>e.interactive.active),i=Gd(e=>e.interactive.enabled),o=Cn("VimeoInteractive_module_container__8c53216a",n&&"VimeoInteractive_module_active__8c53216a");return i?t?ke("div",{children:ke("div",{id:t,className:o},t)}):(e("instanceId",`vp-vimeo-interactive-instance-${Math.random().toString(36).substring(2)}`),null):null}function cm(e,t){const n=t.querySelector(`.${Dn.VP_PLAYER_UI_CONTAINER}`),i=t.querySelector(`.${Dn.VP_PLAYER_UI_OVERLAYS}`);Xe(ke(wc,{player:e,children:[ke(nv,{}),ke(Qv,{}),ke(sm,{}),ke(Wd,{player:e,children:[ke(Vp,{}),ke(jp,{}),ke(Hp,{element:i,children:[ke(Av,{}),ke(yv,{}),ke(Xp,{}),ke(k_,{}),ke(h_,{}),ke(w_,{}),ke(M_,{}),ke(Mp,{}),ke(Kp,{}),ke(Pp,{}),ke(Up,{}),ke(mv,{}),ke(fv,{}),ke(Ov,{}),ke(Yv,{}),ke(zv,{}),ke(lm,{})]}),ke(Pv,{}),ke(ov,{}),ke(iv,{})]})]}),n)}function dm(e,t){const n=t.querySelector(`.${Dn.VP_PLAYER_UI_OVERLAYS}`);Xe(ke(wc,{player:e,children:[ke(nv,{}),ke(Wd,{player:e,children:ke(w_,{})})]}),n)}let um=0;function _m(e="b"){return`${e}${++um}`}_m(),_m(),_m(),_m(),_m(),_m(),_m(),_m();const pm=_m(),vm=_m(),mm=_m(),fm=_m(),hm=_m(),gm=_m(),Em=_m(),bm=_m(),Cm=_m(),ym=_m(),Tm=_m(),Lm=_m(),Am=_m(),Sm=_m();var Im=Object.freeze({__proto__:null,CONFIG_CHANGED:pm,TELECINE_READY:vm,TELECINE_VIDEO_INIT:mm,PLAY_INITIATED:fm,QUALITY_CHANGED:hm,FORCED_QUALITY:gm,CUE_CHANGED:Em,CAPTIONS_CHANGED:bm,SPATIAL_PLAYBACK_TOGGLED:Cm,PICTURE_IN_PICTURE_AVAILABLE_SAFARI:ym,HLS_QUALITY_CHANGED:Tm,REQUEST_COMPLETE_LIVE_SUBTITLES:Lm,COMPLETE_LIVE_SUBTITLES_LOADED:Am,COMPLETE_LIVE_SUBTITLES_ERROR:Sm}),Om=Object.freeze({__proto__:null,EVENT_PENDING:"liveeventpending",EVENT_ACTIVE:"liveeventactive",EVENT_STARTING:"liveeventstarting",EVENT_STARTED:"liveeventstarted",EVENT_ENDED:"liveeventended",ARCHIVE_STARTED:"livearchivestarted",ARCHIVE_DONE:"livearchivedone",ARCHIVE_ERROR:"livearchiveerror",SETTINGS_UPDATED:"livesettingsupdated",LOW_LATENCY_FALLBACK:"lowlatencyfallback",LIVE_STATS_SUCCESS:"livestatssuccess",LIVE_STATS_FAILURE:"livestatsfailure"});h(h(h(h(h(h(h(h({},E),I),Ze),Om),z),q),j),Im),h(h({},Ze),Om);let Pm=function(){function e(){}return e.init=function(e){this.configurePictureInPicture(e.config,e.backbone),e.backbone.on(pm,(t,n)=>{this.getPipSetting(n)!==this.getPipSetting(t)&&this.configurePictureInPicture(t,e.backbone)})},e.getPipSetting=function(e){var t,n;return null==(t=e.embed)||null==(n=t.settings)?void 0:n.pip},e.configurePictureInPicture=function(e,t){var n,i,o,r,a,s;t.disablePictureInPicture=!(null===(n=null==(i=e.embed)||null==(o=i.settings)?void 0:o.pip)||void 0===n||n),t.autoPictureInPicture=!(null!==(r=null==(a=e.embed)||null==(s=a.settings)?void 0:s.auto_pip)&&void 0!==r&&!r)},e}(),wm=function(e){Pm.init(e)};const Rm=[];function Nm({element:n,delegate:i={},cssLoadedPromise:r=Promise.resolve(null),name:a=null}){Qe.set(kr);let l=!1;const _=Je(hs,tt(e=>(...t)=>{const n=e.apply(void 0,t),i=pt();function o(e,t){return(e=[].concat(e)).map(e=>t(n.createGetter(e)))}return h(h({},n),{},{watch:function(e,t){return o(e,e=>{let o=i.get({selector:e,listener:t});if(!o){const r=function(e,t){let i=e(n.getState());return n.subscribe((function(){let o=e(n.getState());if(i!==o){let e=i;i=o,t(i,e,n.getState())}}))}(e,t);o=i.insert({selector:e,listener:t,unsubscribe:r})}return o.unsubscribe})},unwatch:function(e,t){return o(e,e=>{const n=i.get({selector:e,listener:t});return n&&n.unsubscribe()})}})},function(e={}){return t=>(...n)=>{const i=t.apply(void 0,n);function o(){return e}const r=ne(e=>{if(ie(e))return e;const t=u(o(),e);return ie(t)?t:t=>u(t,e)});return h(h({},i),{},{getSelectors:o,createGetter:r,get:function(e,t){let n=(e=r(e))(i.getState());return void 0!==t&&(n=oe(n,t)),n}})}}(gs),et.apply(void 0,[]))),p=new Map,v=new w,m=new Mr({events:v}),f=c();n.classList.add(`player-${f}`),n.classList.add("loading"),n.id||(n.id=`player${f}`),n.innerHTML=Es.render("outer",{strings:{back:"Back",close:"Close overlay",opensANewWindow:"(opens a new window)"}});const g=n.querySelector(".vp-telecine");if(o.iOS){const e=document.createElement("video");g.appendChild(e);try{e.setAttribute("muted",""),e.setAttribute("playsinline",""),e.load()}catch(ke){kr.captureException(ke)}}let b,C,y,L,A,S,O,P=null,R=null,N=null,k=null,D=null,M=null,B=null,x=[],U=null,H=null,F=null,G=null,Y=null,W=!1,$=!1,q=null,K=null,j={};const z=new Promise((e,t)=>{S=e,O=t,W=!0}).then(()=>(W=!1,v.fire(Wt._ready),null));let X,Z;const Q=new Promise((e,t)=>{X=e,Z=t,$=!0}).then(()=>($=!1,null));let J={get config(){return m.config},set config(e){m.config=e},get delegate(){return i},set delegate(e){i=e},ready(e){if(!e)return z;z.then(()=>e()).catch(e=>{kr.captureException(e)})},playbackEngineReady(e){if(!e)return Q;Q.then(()=>e()).catch(e=>{kr.captureException(e)})},get sessionId(){return m.config.request.session},get name(){return a},get parentUrl(){return G},set parentUrl(e){G=e},destroy(){(W||$)&&(O("Cancelling ready promise for player initialization."),Z("Cancelling playback engine ready promise for player initialization.")),v.fire(kt._destroy)}};function ee(e){var t;const{old:n,loaded:i}=e;if(function(e,t){var n;null==(n=t.request)||n.ab_tests}(0,i),(null==(t=i.request)?void 0:t.urls.js)&&ot(i.request.urls.js),window.parent!==window){var o;let e="Private Video on Vimeo";i.view!==Kt.main&&i.view!==Kt.privateUnlocked||(e=`${i.video.title} from ${i.video.owner.name} on Vimeo`),document.title=e,(null==(o=history)?void 0:o.replaceState)&&i.video&&n&&history.replaceState({id:i.video.id},"",`/video/${i.video.id}${window.location.search}`)}if(i.view!==Kt.main&&i.view!==Kt.privateUnlocked)throw new Error(`Config not authorized: ${i.view}`);!function(e,t){(null==e?void 0:e.embed)&&(null==t?void 0:t.embed)&&[["color",en],["color_one",Jt],["color_two",en],["color_three",tn],["color_four",nn]].forEach(([n,i])=>{t.embed[n]&&e.embed[n]!==t.embed[n]&&v.fire(kt._changeColor,t.embed[n],i)})}(n,i),D&&D.reset();let r=!n||!n.video||n.video.id!==i.video.id||n.video.version.current!==i.video.version.current;return C=null,L=P,v.fire(kt._reset),_.dispatch(jr(i)),v.fire(Wt._configChanged,r,i),e}function te(){var e;null==(e=N)||e.hide(),n.classList.remove("loading"),S()}function re(e){return r.then(()=>{if(le(e),R&&R.resetThumbnail(),"function"!=typeof j.authorizationHandler)throw new Error("Config was not authorized.");return j.authorizationHandler(te)}).then(e=>(m.config=e,C=null,_.dispatch(jr(m.config)),v.fire(kt._reset),v.fire(Wt._configChanged,!0,m.config),e))}function ae(){l||(v.on(Wt._userLogIn,(function(e){m.reload().then(t=>{if(!m.config.user.logged_in)return v.fire(Wt._loginFailure),t;switch(v.fire(Wt._userLoggedIn,e),e){case"like":m.config.user.liked&&v.fire(Wt._liked);break;case"watch-later":m.config.user.watch_later&&v.fire(Wt._addedToWatchLater);break;case"private":v.fire(Wt._privateUnlocked,t.loaded)}return t}).catch(e=>{kr.captureException(e)})})),v.on(Wt._userLoggedOut,()=>{m.reload().catch(e=>{kr.captureException(e)})}),l=!0)}function se(e){!function(e){Rm.forEach(t=>{const n=t(e.config);n&&e.addABTest(n)})}(e),Y=Ca(e),ae(),function(e){R=new Aa(e,_,n.querySelector(".vp-preview")),N=new Sa(e),v.on([I.BUFFER_ENDED,E.PLAYING],()=>{R.hide()});const t={abTests:e.abTests};P=new it(g,m.config,t),L=P,U=new Ys(e),new Ga(e,_,n.querySelector(".vp-video-wrapper")),ce(e),e.doNotTrackEnabled||(m.config.request.urls.test_imp&&function(e,t){if(!e.config.request.ab_tests)return;const n=new d(t);for(const i in e.config.request.ab_tests){const t=e.config.request.ab_tests[i];if(!t.track)continue;const o={session_id:e.config.request.session,test_id:i,test_group:String(t.group)};n.log(o,!0,!1).catch(e=>{})}}(e,`${m.config.request.urls.test_imp}?beacon=1`),new Us(e,n,_,m.config.request.urls.fresnel),new Lr(e),new Wa(e,_),new Hs(e),new yr(e,Or),function(e){function t(t){return function({value:n}){Ks[t]||(Ks[t]=!0,function(t,n){Or(vr.PLAYER_PERFORMANCE_MEASUREMENT,e.config,{measurement_type:t,measurement_value:n})}(t,n))}}Math.random()<=qs&&(Le(t($s.FIRST_INPUT_DELAY)),Ae(t($s.CUMULATIVE_LAYOUT_SHIFT)),Se(t($s.LARGEST_CONTENTFUL_PAINT)))}(e)),D=new Ha(e),function(e){if(!Qi(e.config))return;const t=new Yr({core:e,textAlert:new Ds(n)});$r.init({chromecastPlayer:t}),$r.on([Gr.error,Gr.mediaLoadedFailed],e=>{kr.captureException(e)})}(e),le(e)}(e),new wm(e)}function le(e){k||(k=new ks(e),bs(J,k),rt.set(kr))}function ce(e){const t=m.config.request.ads;t&&(t.adcode&&t.adunit||t.adurl)&&(M=new Fs(e,n.querySelector(".vp-video-wrapper")),v.on(Wt._pausedForAd,()=>{L=M,v.fire(Wt._displayContextChanged)}),v.on(Wt._resumedAfterAd,()=>{L=P,v.fire(Wt._displayContextChanged)}),$r&&($r.on(Gr.connected,()=>{M.toggleCastingState(!0)}),$r.on(Gr.disconnected,()=>{M.toggleCastingState(!1)})))}function de(e,t){let n=e;return isNaN(e)&&"string"!=typeof e||(n=Ct(bt(e),e,t)),n}const ue={get store(){return _},get config(){return m.config},get element(){return n},get events(){return v},get uuid(){return f},get expose(){return J},get backbone(){return P},get adHandler(){return M},get displayContext(){return L},get preview(){return R},get doNotTrackEnabled(){return m.config.embed.dnt||m.config.request.flags.dnt},get playLoggingEnabled(){return m.config.embed.log_plays&&m.config.request.flags.plays},get canPlayPictureInPicture(){var e;const t=!1!==o.pictureInPictureSupportType,n=o.spatialPlayback&&(null==(e=m.video)?void 0:e.spatial),i=(o.iOS>=17||o.browser.safari)&&P.readyState<2;i&&P.once(E.LOADED_DATA,()=>v.fire(V));const r=1===m.config.embed.settings.pip;return t&&!i&&!n&&r},get currentTime(){return $r.isCastConnected?$r.chromecastPlayer.currentTime:P.currentTime},get debugCollector(){return U},overrideFragmentsHandler(e,t){var n;null==(n=H)||n.hibernate(),b=m.config.embed.interactive,F=H,H=e,m.config.embed.interactive=m.config.embed.interactive||{markers:0},m.config.embed.interactive.fragments=t,v.fire(Wt._fragmentChanged)},restoreLastFragmentsHandler(){var e;H=F,null==(e=H)||e.wake(),m.config.embed.interactive&&(m.config.embed.interactive=b),v.fire(Wt._fragmentChanged)},get fragmentsHandler(){return H},get ottVideoMetadata(){return B},set ottVideoMetadata(e){B=e},get startTime(){return q},set startTime(e){var t;null!==q&&null===e&&null===K&&(null==(t=Y)||t.clearSegmentedPlayback()),q=e,v.fire(Wt._startTimeUpdated,q)},get endTime(){return K},set endTime(e){var t;null!==K&&null===e&&null===q&&(null==(t=Y)||t.clearSegmentedPlayback()),K=e,v.fire(Wt._endTimeUpdated,K)},get segmentedPlaybackEnabled(){return null!==q&&null!==K},get abTests(){return x},inView:()=>Lo(n),addABTest(e){s("A/B Test","color: white; background-color: blue")(`Test: ${e.test}, Group: ${e.group}`),x.push(e)},init:(e,t)=>y||(H=new Ws(ue),new As(ue,_,n),j=t,y=m.load(e).then(e=>a===ui.ChromelessPlayer?(new dm(ue,n),e):(new cm(ue,n),e)).then(ee).catch(e=>(ae(),re(ue))).then(()=>"function"==typeof j.initializationHandler?Promise.resolve(t.initializationHandler()):null).then(()=>(se(ue),X(),"function"==typeof j.postInitializationHandler?Promise.resolve(t.postInitializationHandler()):null)).then(()=>Promise.all([R.thumbnailPromise,r])).then(te).then(()=>(kr.setUp(ue.config,a||ui.VimeoPlayer),null)).catch(e=>{kr.captureException(e)}),y),loadVideoViaIframe(e,n={},i={}){let o=[],r=n;for(const t in i)!0===i[t]&&o.push(t);o.length&&(r.listeners=o.join(",")),r.fromLoadVideo=1,r.referrer=m.config.request.referrer;const a=t(window.location.search),s=t(`${e}`.split("?")[1]);r=Object.assign(a,s,r);const l=nt(r),c=yt(e);window.location.replace(`https://${m.config.player_url}/video/${c}?${l}`)},loadVideoViaConfig(e,t){if(A===e&&C)return C;if(R&&R.resetThumbnail(),null==t?void 0:t.video_version){let e=m.config.video.version.available;if(!e||!Array.isArray(e))return Promise.reject("No available video versions");if(e=e.map(e=>e.id),-1===e.indexOf(t.video_version))return Promise.reject("Invalid version id specified")}v.fire(Wt._loadVideo),A=e,n.classList.add("loading");const i=de(e,t),o=p.get(i);return e=o?o._config.loaded:e,C=m.load(e,t).then(e=>{if(o){const e=P.element;P=o._backbone,P.element.style.visibility="visible",e.parentNode.replaceChild(P.element,e),v.fire(Wt._swapVideo)}return e=ee(e),M||ce(ue),e}).catch(e=>re(ue)).then(e=>{let t=R.loadThumbnail();return Promise.resolve(t)}).then(te),C},preloadVideo(e,t,n){const i=de(t,n),o=p.get(i);return o?Promise.resolve(o):new Mr({events:v}).load(t,n).then(t=>{t.loaded.preload=!0;const n=P.element.cloneNode(!1);n.style.visibility="hidden",P.element.parentNode.insertBefore(n,P.element);const o=new it(n,t.loaded);o.loadVideo(t.loaded),o.preload=e;const r={_backbone:o,_config:t};return p.set(i,r),r})},performDelegateAction(t,n=(()=>{}),o=[]){var r,a;let s;var l;null!=(r=i)&&r[t.will]&&(s=(l=i)[t.will].apply(l,[m.config.video.id].concat(e(o))),!1===s)||(n.apply(void 0,[m.config.video.id].concat(e(o),[s])),(null==(a=i)?void 0:a[t.did])&&i[t.did]())},ready:()=>z,playbackEngineReady:()=>Q,verifyConfig:()=>m.verify(),refreshAssetUrls:()=>m.refreshAssetUrls().then(e=>{const t=h(h({},m.config),{},{request:e});return ee({old:m.config,loaded:t})}).catch(e=>re(ue)),updatePhpTokens:()=>new Promise((e,t)=>{if(function(e){const{vimeo_api_client_token:t,vimeo_api_interaction_tokens:{likes:n,watch_later:i,following:o}={},vimeo_live_client_token:r,vimeo_bucketed_live_client_token:a}=e;return t&&$o(t)||n&&$o(n)||i&&$o(i)||o&&$o(o)||r&&$o(r)||a&&$o(a)}(m.config.user)){const{signature:n,session:i,timestamp:o,expires:r}=m.config.request,a=`https://${m.config.player_url}/video/${m.config.video.id}/token/refresh?signature=${n}&session=${i}&time=${o}&expires=${r}`;T(a,{withCredentials:!0}).json().then(t=>(m.config.user.vimeo_api_client_token=t?t.vimeo_api_client_token:null,m.config.user.vimeo_api_interaction_tokens=t?t.vimeo_api_interaction_tokens:null,m.config.user.vimeo_live_client_token=t?t.vimeo_live_client_token:null,m.config.user.vimeo_bucketed_live_client_token=t?t.vimeo_bucketed_live_client_token:null,e())).catch(e=>{kr.captureBreadcrumb("Failed to refresh JWT token",{},"auth","error"),t(e)})}else e()})};return ue}function km(e,t,n){var i=null,r=o.touch?4500:2e3,a=!0,s=!0,l=!1,c=null,d=[],u=!1,_=null,p=null,v=null,m=!0,f=!1,h=!1,g=!1,b=!1,C=!1;let y,T;var L=n.querySelector(".vp-target"),A=n.querySelector(".vp-controls");let O=n.querySelector('button[class*="_playButton_"]');var P=n.querySelector(".vp-title"),w=n.querySelector(".vp-video");let R=n.querySelector(".vp-sidedock"),N=n.querySelectorAll(".vp-menu"),D=n.querySelector(`.${Dn.VP_ADS_WRAPPER}`),M=n.querySelector(".compass-wrapper");const B=e.config.embed.autoplay&&e.config.request.flags.autohide_controls,V=o.touch?300:0;let x=null;const H=xs(e.config,"webvr").group||!1;function F(){clearTimeout(i),i=null}function G(){"preact-menu"!==v&&(v&&v.isNewMenu&&v.isFullwidth()||C&&(clearTimeout(i),i=setTimeout(()=>W(!1,!0),r)))}function Y(){de.element&&de.element.classList.contains("js-player-fullscreen")&&(l||(n.classList.add("player-cursor-hide"),s=!0,l=!0))}function W(t,i){var r,l,c;if("preact-menu"===v&&i)return;if(v&&v.isNewMenu&&v.isFullwidth())return;if(!f&&!m&&!n.classList.contains("player-ad"))return;if(g)return;F(),A=te(),O=ne(),R=ee(),N=n.querySelectorAll(".vp-menu");const d=document.activeElement&&document.body.classList.contains("showfocus")&&((null==(r=R)?void 0:r.contains(document.activeElement))||(null==(l=A)?void 0:l.contains(document.activeElement))||(null==(c=O)?void 0:c.contains(document.activeElement))),u=document.activeElement&&"preact-menu"===v&&Array.from(N).find(e=>null==e?void 0:e.contains(document.activeElement));d||u||(e.events.fire(t?Wt._mousedOut:Wt._mouseTimeout),s=!0,o.spatialPlayback&&e.config.video.spatial||(L.classList.add("hidden"),L.setAttribute("hidden","")),a=!0,Y())}function $(){G(),b||f&&m&&!n.classList.contains("player-ad")||(e.events.fire(Wt._mousedOver),L.classList.remove("hidden"),L.removeAttribute("hidden"))}function q(){f||m?n.removeAttribute("tabindex"):f||m||h||n.setAttribute("tabindex","0")}function K(){e.events.on([E.TIME_UPDATE,E.SEEKED],(function t({currentTime:n}){n>=1.75&&null===i&&(e.events.fire(Wt._targetTimeReached),e.events.off([E.TIME_UPDATE,E.SEEKED],t))}))}function j(){w.classList.remove("threesixty-video"),e.element.classList.remove("grabbable"),e.element.classList.remove("grabbing")}function X(){d.forEach(e=>clearTimeout(e)),d=[]}function Z(e){e&&(e.classList.remove("cloaked"),window.requestAnimationFrame(()=>{e.classList.add("in")}))}function Q(e){e&&(e.classList.add("leaving"),window.requestAnimationFrame(()=>{k(e).on("transitionend",(function t(n){"opacity"===n.propertyName&&(e.classList.remove("in"),e.classList.remove("leaving"),e.classList.add("cloaked"),k(e).off("transitionend",t))}))}))}function J(e){R=ee(),mt(R).width>60?e.classList.add("vp-alert-bumpdown"):e.classList.remove("vp-alert-bumpdown")}function ee(){return R||(R=n.querySelector(".vp-sidedock"),R)}function te(){return A||(A=n.querySelector(".vp-controls"))}function ne(){return O||(O=n.querySelector('button[class*="_playButton_"]'),O)}return function(){var t=!0;function i(){$()}function c(i){var c;if(r=2e3,s)s=!1;else if(void 0===y||void 0===T||i.screenX!==y||i.screenY!==T)if(y=i.screenX,T=i.screenY,l&&(n.classList.remove("player-cursor-hide"),l=!1),0!==i.screenX&&i.screenX!==screen.width-1&&0!==i.screenY&&i.screenY!==screen.height-1){if(t=!0,o.spatialPlayback&&(null==(c=e.config.video)?void 0:c.spatial)){const t=mt(e.element),n=i.clientX-t.left,o=i.clientY-t.top,r=180,a=o>e.element.clientHeight-55,s=n>e.element.clientWidth-45&&o(...t)=>{c&&e.apply(void 0,t)},i=t(t=>{const n=e.element.classList.contains("webvr");c&&n&&c.toggleVR()}),r=t(t=>{c.isVRPresenting?setTimeout(()=>{e.events.fire(z.WEBVR_ENTER)},100):setTimeout(()=>{e.events.fire(z.WEBVR_EXIT)},100)});e.events.on(kt._revealSpatialControls,t(()=>{e.element.classList.contains("webvr")||e.element.classList.add("grabbable")})),e.events.on(Wt._ended,t(()=>{j(),o.webvr&&c.isVRPresenting&&H&&c.toggleVR()})),e.events.on(S,t(()=>{e.config.video.spatial?function(){function t(e){_&&(_.innerHTML=Es.render("threesixty_reminder",e))}e.backbone.getEffectByName("ThreeSixtyEffect"),e.events.once(Wt._firstTimeUpdate,()=>{const n=e.config.embed.cards;(null==n?void 0:n.length)&&n[0].timecode<15||(d.push(setTimeout(()=>{t({showArrows:!1,text:o.android?"Look around":"Click and drag to look around"}),J(_),Z(_),setTimeout(()=>Q(_),3e3)},7e3)),o.android||d.push(setTimeout(()=>{t({showArrows:!1,text:o.android?"Look around":"Use arrow keys to see more"}),J(_),Z(_),setTimeout(()=>Q(_),3e3)},14e3)))}),function(){const e=n;if(_)return;let t=_=document.createElement("div");t.classList.add("cloaked"),t.classList.add("vp-alert-round"),t.classList.add("vp-alert-round--top"),t.classList.add("vp-alert-round--threesixty"),e.appendChild(t)}()}():e.config.video.spatial||(j(),X())})),(o.webvr||o.stereoscopic||o.webxr)&&(o.webvr&&window.addEventListener("vrdisplaypresentchange",r,!1),e.events.on(Wt._stereoscopicButtonPressed,t(()=>{X(),o.webvr&&c.hasVRHeadset&&H?c.toggleVR():e.events.fire(Wt._showAndroidVRDeepLink)})),e.events.on(z.WEBVR_HARDWARE_AVAILABLE,t(e=>{const t=n.querySelector(".stereoscopic");t&&t.classList.contains("off")&&H&&t.classList.remove("off")})),e.events.on(z.WEBVR_ENTER,t(t=>{window.addEventListener("vrdisplaydisconnect",i,!1),window.addEventListener("vrdisplaydeactivate",i,!1),e.element.classList.remove("grabbable"),e.element.classList.add("webvr"),c.isUserInteracting=!1})),e.events.on(z.WEBVR_EXIT,t(t=>{window.removeEventListener("vrdisplaydisconnect",i),window.removeEventListener("vrdisplaydeactivate",i),e.element.classList.add("grabbable"),e.element.classList.remove("webvr"),c.isUserInteracting=!0})));let a=null;const s=t(t=>{const n=e.element.classList.contains("webvr");u||n||(u=!0,t.preventDefault(),e.element.classList.add("grabbing"),p={x:t.clientX,y:t.clientY},c.makeContact(p))}),l=t(t=>{const n=e.element.classList.contains("webvr");u&&!n&&(X(),c.move({x:t.clientX,y:t.clientY}))}),v=t(t=>{const n=e.element.classList.contains("webvr");u&&!n&&(e.element.classList.remove("grabbing"),c.releaseContact(!1),u=!1)}),m=t(t=>{t.preventDefault(),e.element.classList.contains("webvr")||(c.isUserInteracting||(c.isUserInteracting=!0),null!==a&&clearTimeout(a),X(),a=setTimeout(()=>{e.element.classList.remove("player-cursor-hide"),e.element.classList.add("grabbable"),c.isUserInteracting=!1},500),e.element.classList.add("player-cursor-hide"),e.element.classList.remove("grabbable"),c.moveWheel({x:t.deltaX,y:t.deltaY}))}),f=t(e=>{u||(u=!0,c.makeContact({x:e.touches[0].clientX,y:e.touches[0].clientY}))}),h=t(e=>{u&&(e.preventDefault(),X(),c.move({x:e.touches[0].clientX,y:e.touches[0].clientY}))}),g=t(e=>{c.releaseContact(!0),u=!1}),E=t(e=>{u||X(),c.moveDevice(e.alpha,e.beta,e.gamma,e.orientation)}),b=t(t=>{u=!1,e.element.classList.remove("grabbing"),c.abandonMotion()});e.events.on(S,()=>{o.android&&c&&window.addEventListener("deviceorientation",E,!1)}),e.events.once(S,()=>{e.store.watch("ui.player.boundingRect",()=>{c&&c.adjustRenderSize(),u=!1}),o.pointerEvents?(k(L).on("pointerdown",s),window.addEventListener("pointermove",l),window.addEventListener("pointerup",v),window.addEventListener("pointerleave",b)):(k(L).on("mousedown",s).on("wheel",m),L.addEventListener("touchstart",f,!!o.passiveEvents&&{passive:!1}),window.addEventListener("touchmove",h,!!o.passiveEvents&&{passive:!1}),window.addEventListener("touchend",g,!!o.passiveEvents&&{passive:!1}),window.addEventListener("mousemove",l),window.addEventListener("mouseup",v),window.addEventListener("mouseleave",b))})})),e.events.on(U,e=>{j(),c=e,X()}),e.events.on(Wt._nudgeAttempted,()=>{b=!0,clearTimeout(x),x=null}),e.events.on(Wt._nudgeEnded,()=>{b=!1}),{}}let Dm=function(){function e(e){this.alertTextElement=e.querySelector(".vp-text-alert-wrapper"),this.alertContentTitle=this.alertTextElement.querySelector(".vp-live-start-time-title"),this.alertContentTime=this.alertTextElement.querySelector(".vp-live-start-time-body"),this.alertContentFooter=this.alertTextElement.querySelector(".vp-live-start-time-footer")}var t=e.prototype;return t.show=function(e="",t="",n=""){this.alertContentTitle.innerHTML=e,this.alertContentTime.innerHTML=t,this.alertContentFooter.innerHTML=n,this.alertContentTitle.classList.remove("hidden"),this.alertContentTime.classList.remove("hidden"),this.alertContentFooter.classList.remove("hidden"),this.alertTextElement.classList.remove("hidden")},t.hide=function(){this.alertContentTitle.classList.add("hidden"),this.alertContentTime.classList.add("hidden"),this.alertContentFooter.classList.add("hidden"),this.alertTextElement.classList.add("hidden")},e}();let Mm=function(){function e(e,t,n){this.textAlert=new Ds(e),this.timeAlert=new Dm(e),this.player=t,this.store=n,this.startTime=new Date(this.store.get(Jr,null)),this._disabled=!1,this._setUpLiveEvents(),this._checkStatus()}var t=e.prototype;return t.disable=function(){this.hide(),this._disabled=!0},t.hide=function(){this.textAlert.hide(),this.timeAlert.hide()},t._checkStatus=function(){(this.store.get(ta)||this.store.get(na))&&this._onLiveEventActive(),this.store.get(oa)&&this._onLiveStreamEnded()},t._setUpLiveEvents=function(){this.player.events.on(K.EVENT_ACTIVE,this._onLiveEventActive.bind(this)),this.player.events.on(K.STREAM_ONLINE,this._onLiveStreamOnline.bind(this)),this.player.events.on(K.STREAM_OFFLINE,this._onLiveStreamOffline.bind(this)),this.player.events.on(K.SETTINGS_UPDATED,this._onLiveSettingsUpdate.bind(this)),this.player.events.once(K.EVENT_ENDED,this._onLiveStreamEnded.bind(this))},t._onLiveSettingsUpdate=function(e,t){"event_schedule"===e&&this.store.dispatch(zr({eventSchedule:t})),"hide_live_label"===e&&this.store.dispatch(zr({hideLiveLabel:t}))},t._onLiveEventActive=function(){this._setLiveEventSchedule(this.store.get(la))},t._displayTimeAlert=function(){const e=this._timeToDisplayText(this.player.config.request.lang);this.timeAlert.show(e[0],e[1],e[2]),!this.store.get(ta)&&!this.store.get(na)||this._disabled||setTimeout(this._checkStatus.bind(this),1e3)},t._timeToEventStart=function(){return this.startTime-new Date},t._timeToDisplayText=function(e){const t=this._timeToEventStart(),n=Math.ceil(t/1e3).toFixed(0),i=Math.ceil(t/6e4).toFixed(0),o=Math.ceil(t/36e5).toFixed(0),r=Math.ceil(t/864e5).toFixed(0),a=(new Date).toDateString()===this.startTime.toDateString();if(r>1||!a)return("This event is scheduled for\n"+new Intl.DateTimeFormat(e,{month:"long",day:"numeric"}).format(this.startTime)+"\nat "+new Intl.DateTimeFormat(e,{hour:"2-digit",minute:"2-digit"}).format(this.startTime)).split("\n");if(o>1&&a)return("This event is scheduled for\nToday\nat "+new Intl.DateTimeFormat(e,{hour:"numeric",minute:"numeric"}).format(this.startTime)).split("\n");let s;const l=i>1;return s=l?"minutes":n>1?"seconds":"second",("This event will start in\n"+(l?i:n)+" "+s).split("\n")},t._onLiveStreamOnline=function(){this.hide()},t._onLiveStreamOffline=function(){var e;null!=(e=this.player.config.video.live_event)&&e.dvr&&!this.player.backbone.atLiveEdge||(this.textAlert.show("Live stream offline"),o.iOS&&de.element&&(this.player.events.fire(Wt._willExitFullscreen),de.exit()))},t._onLiveStreamEnded=function(){var e;null!=(e=this.player.config.video.live_event)&&e.dvr&&0!==this.player.backbone.currentTime||this.textAlert.show("Live event ended")},t._setLiveEventSchedule=function(e){e?this._timeToEventStart()>0?(this.textAlert.hide(),this._displayTimeAlert()):(this.timeAlert.hide(),this.textAlert.show("This event hasn't started yet")):(this.timeAlert.hide(),this.textAlert.hide())},e}();function Bm(e,t,n,i){var o=!1;i="function"==typeof t?n:i,n="function"==typeof t?t:n;var r=function(e){var t=!0;if(e.changedTouches){var r=e.changedTouches[0].pageX-window.pageXOffset,a=e.changedTouches[0].pageY-window.pageYOffset,s=document.elementFromPoint(r,a);null!==s&&this.contains(s)&&(t=n.call(this,e))}return"function"==typeof i&&i.call(this,e),o=!0,t},a=function(e){if(!o)return n.call(this,e);o=!1};(t="function"==typeof t?null:t)?k(e).on("click",t,a).on("touchend",t,r):k(e).on("click",a).on("touchend",r)}function Vm(e,t,n){if(n)return t?t(e()):e();try{var i=Promise.resolve(e());return t?i.then(t):i}catch(ke){return Promise.reject(ke)}}function xm(){}function Um(e){return function(){for(var t=[],n=0;n!p&&null===l&&!e.config.embed.loop;function y(t,n={}){const{width:i,height:r}=Br(e.element.clientWidth*o.devicePixelRatio,e.element.clientHeight*o.devicePixelRatio);if(n.img_base&&(n.bgimage=Vr({width:i,height:r,baseUrl:n.img_base})),t===Zt.VOD){const t=void 0!==e.config.video.vod.is_preorder?e.config.video.vod.is_preorder:!!e.config.video.vod.date_available,i=e.config.video.vod.is_coming_soon,o=e.config.video.vod.date_available_formatted_datetime||e.config.video.vod.date_available;let r="Coming soon to Vimeo On Demand.";i&&o&&(r="Coming soon to Vimeo On Demand on "+o+"."),t&&(r="Pre-order now. Watch on "+o+"."),n={purchased:e.config.user.purchased,title:e.config.video.vod.feature_title,url:e.config.video.vod.url,currency:e.config.request.currency,countries:e.config.video.vod.countries,country:e.config.request.country,buttons:e.config.video.vod.purchase_options,translationMap:e.config.request.dynamic_translation_map,isPreorder:t,isComingSoon:i,releaseDate:o,strings:{watch:t?"Watch on "+o:"Watch Now",preRelease:r}}}return n}function L(){if(d)return c=!1,u=!1,d=!1,void window.requestAnimationFrame((function(){n.classList.remove("in"),e.events.fire(Wt._outroHidden),O()}));c&&(c=!1,e.events.fire(Wt._outroHidden))}function A(){u||n.clientWidth&&(k(window).off("resize",v),u=!0,e.events.fire(Wt._outroDisplayed))}function I(t){w(t)||g||(e.events.on(S,(function(){w(a)||[Zt.BEGINNING].includes(t)&&(a=t,l=!1)})),e.events.on(Wt._allAdsCompleted,()=>{h=!0}),e.events.on(E.TIME_UPDATE,Um((function({currentTime:t,duration:n}){if(w(a))return;const i=function(e,t,n,i){return t?i-n:e}(n,e.segmentedPlaybackEnabled,e.startTime,e.endTime);return _=!1,function(n){var o=function(){if(t>=i-10&&C())return Vm(r,(function(){_&&e.events.fire(kt._showOutro)}))}();if(o&&o.then)return o.then(xm)}()}))),e.events.on(Wt._ended,()=>{if(!w(a)){if(_=!0,f&&!h)return e.events.once(Wt._allAdsCompleted,()=>e.events.fire(kt._showOutro)),void(f=!1);e.events.fire(kt._showOutro)}}),e.events.on(Wt._loadVideo,()=>{clearTimeout(void 0)}),e.events.on(kt._showOutro,(function(t,n){e.performDelegateAction(Gt,()=>{t&&(a=t,l=null,p=!1),n&&n.data&&(l=y(t,n.data)),i()})})),k(n).on("click",".js-cta",(function(t){e.events.fire(Wt._outroCtaPressed,this.href)})),k(n).on("click",".js-link",(function(t){e.events.fire(Wt._outroLinkPressed,this.href)})),k(n).on("transitionend",(function(e){n.classList.contains("in")||(n.classList.add("hidden"),n.setAttribute("hidden",""))}),!1),e.events.on([kt._hideOutro,kt._reset,E.PLAY,E.SEEKED,Wt._scrubbingStarted],L),e.events.on(Wt._outroDisplayed,(function(){e.element.classList.add("player-outroVisible")})).on(Wt._outroHidden,(function(){e.element.classList.remove("player-outroVisible")})),g=!0)}function O(){k(window).off("resize",v),k(window).on("resize",v)}function w(e){return!zo(e,b)}return I(e.config.embed.outro),e.events.on(kt._showOutro,(function(t,n){e.performDelegateAction(Gt,()=>{t&&a!==t&&w(t)?a=t:(I(t),t&&(a=t,l=null,p=!1),n&&n.data&&(l=y(t,n.data)),i())})})),function(){function t(){setTimeout((function(){n.classList.add("hidden")}),150)}function i(){n.classList.contains("in")&&n.classList.remove("hidden")}e.events.on(kt._showOverlay,t),e.events.on(Wt._accessGateOpened,t),e.events.on(Wt._overlayClosed,i),e.events.on(Wt._accessGateClosed,i)}(),e.events.on(kt._reset,(function(){l=null,p=!1,f=e.config.request.ads instanceof Object})),Bm(n,".js-vod-button",(function(){var t=this.getAttribute("data-product-id");return e.events.fire(Wt._vodButtonPressed,t),!1})),Bm(n,".js-vod-watch",(function(){if(!("date_available"in e.config.video.vod))return L(),e.events.fire(Wt._vodButtonPressed),!1})),O(),{}}function Gm(e,t){var n,i,r=t.querySelector(".vp-overlay-cell"),a=t.querySelector(".vp-overlay"),s=t.querySelector(".vp-overlay-icon-wrapper"),l=s.querySelector(".vp-overlay-icon"),c=t.querySelector(".vp-overlay-logo"),d=!1,u=null;let _=!1,p=null;function v(){var e=mt(t),n=mt(a),i=mt(c),o=n.bottom+(e.height-n.bottom)/2;return e.height-o-i.height/2+"px"}function m(){var e=mt(t),n=mt(a),i=mt(s),o=e.height/2,r=e.height-(e.bottom-n.bottom)/2;return{top:o-i.height/2+"px",transform:"translateY("+(r-o)+"px)"}}function f(n,_){t.setAttribute("data-name",n),a.innerHTML=_.template,o.iOS&&de.element&&(e.events.fire(Wt._willExitFullscreen),de.exit()),_.noblur||function(e=document.activeElement,t=null){try{e.blur()}catch(ke){t&&t(ke)}}(i=document.activeElement),_.modal&&(t.classList.add("modal"),t.setAttribute("data-modal","true")),_.preventBackgroundClose&&t.setAttribute("data-background-close","false"),_.wrapperClass&&t.classList.add(_.wrapperClass),_.icon.type&&(_.logo?(c.classList.remove("hidden"),s.classList.add("cloaked"),window.requestAnimationFrame((function(){c.innerHTML=Es.render("logo"),c.style.bottom=v()}))):s.classList.remove("cloaked"),s.classList.remove("hidden"),l.innerHTML=_.icon.html,window.requestAnimationFrame((function(){var e=m();s.style.top=e.top,s.style[o.transformProperty]=e.transform})),t.setAttribute("data-icon",_.icon.type),s.setAttribute("data-icon",_.icon.type),l.setAttribute("data-icon",_.icon.type)),t.classList.add("invisible"),t.classList.remove("hidden"),t.removeAttribute("hidden"),t.classList.remove("out"),t.classList.add("in"),u=n,d=!0,e.events.fire(Wt._overlayOpened,n),e.element.classList.add("player-overlayVisible"),window.requestAnimationFrame((function(){t.classList.remove("invisible"),!_.nofocus&&e.element.contains(i)&&function(e){if(e){const n=t.querySelector(e);n&&n.focus()}}(_._firstFocusElement),window.requestAnimationFrame((function(){a.classList.add("in"),r.classList.add("in")}))}))}function h(o){if("true"!==t.getAttribute("data-modal")&&d){t.removeAttribute("data-background-close"),r.classList.remove("in"),r.classList.add("out"),a.classList.remove("in"),a.classList.add("out"),t.classList.remove("in"),t.classList.add("out"),clearTimeout(n),n=setTimeout(g,200),(null==o?void 0:o.preventDefault)&&o.preventDefault();var s=t.querySelector(".js-back");s&&s.classList.add("cloaked"),e.events.fire(Wt._overlayClosed,u),e.element.classList.remove("player-overlayVisible"),d=!1,p=null,u=null,window.requestAnimationFrame((function(){i&&(function(e=document.activeElement,t=null){try{e.focus()}catch(ke){t&&t(ke)}}(i),i=null)}))}}function g(){d||(t.setAttribute("hidden",""),t.removeAttribute("data-name"),t.removeAttribute("data-icon"),t.classList.add("hidden"),t.classList.remove("out"),t.classList.remove("embed-active"),t.classList.remove("modal"),t.classList.remove("embed-only"),r.classList.remove("out"),r.classList.remove("in"),s.removeAttribute("data-icon"),s.classList.add("hidden"),s.classList.remove("animate"),l.removeAttribute("data-icon"),l.innerHTML="",c.classList.add("hidden"),a.classList.remove("out"),a.innerHTML="",e.events.fire(Wt._overlayCleared))}function b(){t.classList.remove("modal"),t.setAttribute("data-modal","false")}function C(){l.classList.add("open")}function y(){l.classList.add("pulled-back")}return e.events.on(kt._hideOverlay,(function(e={}){e.name&&u!==e.name||(e.unmakeModal&&b(),h())})),e.events.on(kt._showOverlay,(function(t,n={}){var i=function(){if(jn(t))return u=t,void(d=!0);"error"!==t||f(t,function(e,t){return e.template=Es.render("error",{title:t.title,message:t.message,aria_label:"Error"}),e._firstFocusElement=".js-close",e.modal=!!t.modal,e.logo=!!t.logo,e}({modal:!1,template:null,logo:!1,icon:{type:null,html:null}},n))};return!d||n.nohide||jn(t)?_?(e.events.once(Wt._accessGateClosed,i),b(),void h()):void i():"share"!==u&&"help"!==u||u!==t?(e.events.once(Wt._overlayCleared,i),b(),void h()):void h()})),e.events.on([Wt._overlayCloseButtonPressed,E.PLAY],h),k(window).on("resize",(function(){if(d){c.style.bottom=v();var e=m();s.style.top=e.top,s.style[o.transformProperty]=e.transform}})),k(t).on("transitionend",".vp-overlay-logo",(function(e){"opacity"===e.propertyName&&this.classList.contains("animate")&&(c.classList.add("hidden"),c.classList.remove("animate"))})),k(t).on("transitionend",".vp-overlay-icon-wrapper",(function(e){e.propertyName.indexOf("transform")>-1&&(""===this.style[o.transformProperty]?(this.classList.remove("centered"),"lock"!==this.getAttribute("data-icon")||l.classList.contains("open")||l.querySelector("canvas")?y():setTimeout(C,100)):"translateY(-10px)"===this.style[o.transformProperty]&&(s.classList.add("centered"),s.style[o.transformProperty]=""))})),k(t).on("transitionend",".vp-overlay-icon",(function(e){e.propertyName.indexOf("transform")>-1&&(this.classList.contains("out")?(b(),h()):this.classList.contains("pulled-back")?(l.classList.add("out"),l.classList.remove("pulled-back")):this.classList.contains("open")&&y())})),e.events.on(Wt._error,(function(t,n={modal:!0,final:!0}){if(d&&p===t||!1===n.final)return;p=t;let i={modal:!1,template:null,logo:!1,icon:{type:null,html:null}};if(i.modal=n.modal,i.template=Es.render("error",{title:n.title,message:n.message}),i._firstFocusElement=".js-close",d)return h(),void e.events.once(Wt._overlayCleared,()=>f(t,i));f(t,i)})),e.events.on(Wt._assetUrlsRefreshed,(function(){const e=un();d&&p===e.id&&h()})),e.events.on(Wt._configChanged,(function(){window.requestAnimationFrame((function(){b(),h()}))})),Bm(t,".js-close",(function(){e.events.fire(Wt._overlayCloseButtonPressed)})),k(t).on(["click","touchend"],[".vp-overlay-content",".vp-overlay-logo"],(function(e){e.stopPropagation()})).on(["click","touchend"],[".vp-overlay-cell","nav"],(function(){return"false"===t.getAttribute("data-background-close")||(e.events.fire(Wt._overlayCloseButtonPressed),!1)})),e.events.on(kt._showOutro,(function(){t.classList.add("hidden")})),e.events.on(Wt._outroHidden,(function(){t.classList.contains("in")&&t.classList.remove("hidden")})),e.events.on(Wt._accessGateOpened,(function(){_=!0})),e.events.on(Wt._accessGateClosed,(function(){_=!1})),e.events.fire(Wt._overlayModuleReady),{}}const Ym=["a",".button-link",".vp-overlay-wrapper .footnote.share a:hover",".menu li:hover",".menu li.active",".vp-outro-link:hover",".vp-outro-videosTitle a:hover","li.vp-panel-item:hover","li.vp-panel-item-on",".vp-share-footnote a:hover",".vp-panel-collapsible button.vp-panel-button:hover"],Wm=["a:hover",".button-link:hover"],$m=[".vp-overlay-wrapper .close:hover .fill",".vp-overlay-wrapper .back:hover .fill"],qm=[".controls-outro a:hover .fill",".vp-panel-collapsible button.vp-panel-button:hover .fill"],Km=[".vp-overlay .buttons li",".vp-overlay .vp-overlay-content button",'.vp-overlay .vp-overlay-content input[type="submit"]','.vp-overlay .vp-overlay-content a[role="button"]',"li.vp-panel-item-on:before",".vp-share-buttons li","button.vp-share-embedCopy",".vp-outro-button","a.vp-outro-vodButton",".vp-chapters-active-indicator"],jm=["li.vp-panel-item-on:before"],zm=[".vp-overlay .vp-overlay-content button",'.vp-overlay .vp-overlay-content input[type="submit"]','.vp-overlay .vp-overlay-content a[role="button"]',".vp-share-footnote--embed a",".vp-outro-button",".vp-outro-button:hover",".vp-outro-wrapper .vp-outro-link:hover","button.vp-share-embedCopy",".vp-outro-vodWrapper a.vp-outro-vodButton",".vp-outro-vodWrapper a.vp-outro-vodButton:hover","li.vp-panel-item:hover","li.vp-panel-item-on",".vp-panel-collapsible button.vp-panel-button:hover"],Xm=['.vp-share-wrapper a[role="button"] .fill',".vp-outro-vodButton .fill",".vp-panel-collapsible button.vp-panel-button:hover .fill"],Zm=["li.vp-panel-item-on:before"],Qm=["li.vp-panel-item-on:before"],Jm=['.vp-overlay-wrapper .vp-overlay a[role="button"]',"button.vp-share-embedCopy",".vp-outro-button",".vp-outro-button:hover",".vp-outro-vodWrapper a.vp-outro-vodButton",".vp-outro-vodWrapper a.vp-outro-vodButton:hover"],ef=[".vp-share-button .fill",".vp-outro-vodButton .fill"],tf=["li.vp-panel-item-on:before"],nf=['.vp-overlay .vp-overlay-content input[type="submit"]:active','.vp-overlay a[role="button"]:active',".vp-outro-vodWrapper a.vp-outro-vodButton:active"],of=['.vp-overlay-wrapper .vp-overlay a[role="button"]',"button.vp-share-embedCopy",".vp-outro-button",".vp-outro-button:hover",".vp-outro-vodWrapper a.vp-outro-vodButton",".vp-outro-vodWrapper a.vp-outro-vodButton:hover"],rf=[".vp-share-button .fill",".vp-outro-vodButton .fill"];function af(e,{uuid:t,id:n,isMobileDevice:i}){var o=null;function a(e,o){var r=`.player-${t} `,a=r+e.join(","+r);if(o){var s=`${n} `;a+=`,${s}${e.join(","+s)}`}return i&&(a=a.replace(/:hover/g,":active")),a.replace(/ &/g,"")}return e.events.on(kt._changeColor,(n,i)=>{let s;const l=rn[i],c=on[i];try{s=new r(n)}catch(u){s=new r(c)}if(i===en){let n=function(e){o?function(){for(;o.cssRules.length>0;)o.deleteRule(0)}():function(){var e=document.createElement("style");e.setAttribute("data-player",t),document.querySelector("head").appendChild(e),o=e.sheet}();var n=e.complement,i=new r(30,30,30,.9),s=new r(0,0,0,.15).overlayOn(e);i.contrast(n).ratio<3&&n.lighten(5,3,i);var l,c=e.lightness<40?e.clone().lighten(15,3,e):e.clone().darken(15,3,e),d=r.white.contrast(e).ratio<4.5?r.black:r.white;return vt(a(tf),"border-color:"+s.hex,o),vt(a(Ym),"color:"+e.hex,o),vt(a(qm),"fill:"+e.hex,o),vt(a(Km),"background-color:"+e.hex,o),vt(a(jm),"border-color:"+e.hex,o),vt(a(Wm),"color:"+n.hex,o),vt(a($m),"fill:"+n.hex,o),vt(a(nf),"background-color:"+s.hex,o),e.luminance>.95&&(n=e.clone().darken(15,3,e),vt(a(zm),"color:"+n.hex,o),vt(a(Xm),"fill:"+n.hex,o),vt(a(Zm),"background-color:"+n.hex,o),vt(a(Qm),"border-color:"+n.hex,o),c=n.clone().darken(15,3,n)),e.yiq>175&&e.luminance<.95&&(l=c.clone().darken(15,3,c),vt(a(Jm),"color:"+c.hex,o),vt(a(ef),"fill:"+c.hex,o)),vt(a(of),"color:"+d.hex,o),vt(a(rf),"fill:"+d.hex,o),{main:e.hex,selected:c.hex,sidedockHover:l?c.hex:e.luminance>.95?n.hex:r.white.hex,sidedockSelected:e.luminance>.95?n.hex:e.hex,sidedockSelectedHover:l?l.hex:c.hex}}(s);e.config._colors=n}const d=ii(n)?s.hexWithAlpha:s.hex;e.config.embed[l]=d.replace("#","")}),e.events.fire(kt._changeColor,e.config.embed.color_one,Jt),e.events.fire(kt._changeColor,e.config.embed.color_two||e.config.embed.color,en),e.events.fire(kt._changeColor,e.config.embed.color_three,tn),e.events.fire(kt._changeColor,e.config.embed.color_four,nn),{}}function sf(e){let t=null;return e.events.on(kt._openPopup,(function(n,i){let o=`https://${e.config.player_url}`,r=`${o}/video/${e.config.video.id}`;switch(n){case"basic":t=Et(`${r}/login/basic`,"login",{width:670,height:545}),e.events.fire(Wt._popupOpened,n);break;case"login-like":t=Et(`${r}/login/like`,"login",{width:670,height:545}),e.events.fire(Wt._popupOpened,n);break;case"login-watch-later":t=Et(`${r}/login/watch-later`,"login",{width:670,height:545}),e.events.fire(Wt._popupOpened,n);break;case"purchase":let a=`${o}/video/${e.config.video.vod.feature_id||e.config.video.id}/purchase/vod`;(null==i?void 0:i.productId)&&(a+=`/${i.productId}`),a+=`?referrer=${encodeURIComponent(e.config.request.referrer)}`,t=Et(a,"purchase",{width:790,height:670}),e.events.fire(Wt._popupOpened,n)}})),window.closePopup=function(n){if(t){try{t.close(),e.events.fire(Wt._popupClosed,n)}catch(ke){}t=null}},e.config.embed.on_site||(window.confirmPurchase=function(t,n,i){n?e.loadVideoViaIframe(t):i&&e.events.fire(Wt._playButtonPressed)}),e.config.embed.on_site||(window.confirmLoginAction=function(t,n){e.events.fire(Wt._userLogIn,n)}),{}}const lf={16:"shift",27:"esc",32:"space",37:"left",38:"up",39:"right",40:"down",74:"j",75:"k",76:"l"},cf={106:"j",107:"k",108:"l"},df=["up","down","left","right"],uf=["right","l"],_f=["left","j"],pf=["scrub"],vf=[Vn.TRANSCRIPT_LIST],mf=[Wt._shareButtonPressed];function ff(e,t,n){var i=!!e.config.embed.on_site,r=n.querySelector(".volume"),a=!1;let s;var l=null,c=!1,d=e.config.video.fps/5,u=d,_=0,p=!1,v=b(y,80);function m(n){var i;return!t.get(Zr)||!(pf.includes(n)&&(null==(i=e.config.video.live_event)||!i.dvr))&&(t.get(ia)||t.get(sa))}function f(t){return"d"===t||!i&&(e.config.view===Kt.main||e.config.view===Kt.privateUnlocked)}function h(){a&&s===Gn.HELP&&e.events.fire(Wt._overlayCloseButtonPressed)}function g(e){return"number"!=typeof e.which&&(e.which=e.keyCode),e}function E(e){if(!e)return"";if("keypress"===e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return e.which in lf?lf[e.which]:String.fromCharCode(e.which).toLowerCase()}function C(t){if(e.config.embed.settings.background)return!0;var n=t.target||t.srcElement;return"INPUT"===n.tagName||"SELECT"===n.tagName||"TEXTAREA"===n.tagName||n.isContentEditable}function y(n,i){var o,r,a;const s=uf.includes(n);if(!m("scrub"))return;if((null==(o=e.backbone)||null==(r=o.telecine)?void 0:r.ended)&&s)return;if((null==(a=e.config.video.live_event)?void 0:a.dvr)&&s&&e.backbone.atLiveEdge)return;p||(i&&!e.backbone.paused&&e.events.fire(Wt._pauseButtonPressed),e.events.fire(Wt._scrubbingStarted,{seekType:"keyboard",isFrameByFrame:i}),p=!0),function(n){var i=n,o=Math.ceil(d),r=Math.ceil(function(){const n=t.get(Zr)?e.backbone.liveEdgeTime-e.backbone.liveTailTime:e.config.video.duration;return Math.max(d,.618*n)}()-d);u=function(e,t,n,i){return e/=100,n*(--e*e*e+1)+t}(i,o,r)}(_),1==++_&&(u=5*e.config.video.fps);const l=i?1:u,c=s?l:-l,v=e.currentTime*e.config.video.fps;!function(n,i){let o,r;t.get(Zr)?(o=e.backbone.liveTailTime,r=e.backbone.liveEdgeTime):(o=e.fragmentsHandler.currentFragment.startTime,r=e.fragmentsHandler.currentFragment.endTime);let a=n/e.config.video.fps;a=r?a=r-.001:e.events.fire(Wt._showNudgeNotification,{direction:a-e.currentTime>0?"forward":"backward",time:1!==_||i?null:5}),e.events.fire(kt._seek,a)}((s?Math.ceil(v):Math.floor(v))+c,i)}function T(e){if("preact-menu"===l)return!1;var t=l.getTabIndexItems(),n=t.indexOf(document.activeElement),i="up"===e?n-1:n+1,o=null;return!(o=i>=t.length?t[0]:i<0?t[t.length-1]:t[i])||(o.focus(),!1)}function L(){if(l)return!0;if(!m("play/pause"))return!0;if(!document.activeElement||document.activeElement===document.body){const t=e.backbone.paused?Wt._playButtonPressed:Wt._pauseButtonPressed;return e.events.fire(t),h(),!1}}function A(){const t=e.backbone.muted,n=e.backbone.volume;return t?(e.events.fire(kt._changeMuted,!1),0===n&&e.events.fire(kt._changeVolume,1)):t||0!==n?!t&&n>0&&e.events.fire(kt._changeMuted,!0):e.events.fire(kt._changeVolume,1),!1}function S(){return"preact-menu"!==l&&(l?(l.element.contains(document.activeElement)&&l.button.focus(),l.hide(),!1):a?(e.events.fire(Wt._overlayCloseButtonPressed),!1):void 0)}function I(){return!c&&("preact-menu"===l||(l?!l.element.contains(document.activeElement)||T("up"):o.spatialPlayback&&e.config.video.spatial?(e.backbone.getEffectByName("ThreeSixtyEffect").keyPress("up"),!1):!(!e.config.embed.on_site||!document.activeElement||n.contains(document.activeElement))||(h(),e.events.fire(kt._changeVolume,.05,!1,!0),!1)))}function O(){return!c&&("preact-menu"===l||(l?!l.element.contains(document.activeElement)||T("down"):o.spatialPlayback&&e.config.video.spatial?(e.backbone.getEffectByName("ThreeSixtyEffect").keyPress("down"),!1):!(!e.config.embed.on_site||!document.activeElement||n.contains(document.activeElement))||(h(),e.events.fire(kt._changeVolume,-.05,!1,!0),!1)))}function P(t,n){const i=df.includes(n);if("preact-menu"===l)return!0;if(e.displayContext===e.adHandler)return!0;if(l)return!l.element.contains(document.activeElement)||!i||T("left"===n?"up":"down");if(a&&s!==Gn.HELP)return!0;if(h(),o.spatialPlayback&&e.config.video.spatial&&i)return e.backbone.getEffectByName("ThreeSixtyEffect").keyPress(n),!1;if(document.activeElement&&document.activeElement===r&&i){var c="left"===n?-.05:.05;return e.events.fire(kt._changeVolume,c,!1,!0),!1}t.shiftKey||0===_?y(n,t.shiftKey):v(n,t.shiftKey)}return function(){function t(e){a=!0,s=e,e!==Gn.NOT_SUPPORTED&&e!==ko.LEAD_CAPTURE_FORM||(i=!0)}function n(){a=!1,s=null}e.events.on(Wt._overlayOpened,t),e.events.on(Wt._accessGateOpened,t),e.events.on(Wt._overlayClosed,n),e.events.on(Wt._accessGateClosed,n)}(),e.events.on(Wt._menuVisibilityChanged,(function(e,t){l=e?t||e:null})),e.events.on(Wt._transcriptNavActive,(function(e){c=e})),e.events.on(Wt._configChanged,(function(e){e&&(i=!1)})),function(){const{like:t,watch_later:n,share:i}=e.config.embed.settings,r={c:[Wt._ccButtonPressed,!0],h:[Wt._prefsButtonPressed,!0],T:Wt._transcriptKeyPressed,f:Wt._fullscreenButtonPressed,d:Wt._debugButtonPressed,A:Wt._aiWidgetKeyPressed,k:L,j:P,l:P,m:A,space:L,up:I,down:O,left:P,right:P,esc:S,"?":[kt._showOverlay,Gn.HELP]};function c(t){g(t);const n=E(t);if(function(e){return!(e.ctrlKey||e.metaKey||e.altKey||"keypress"===e.type&&e.charCode in cf||(e.which in lf?"keydown"!==e.type:"keypress"!==e.type))}(t)&&!C(t)&&f(n)&&n in r){if("function"==typeof r[n]){if(!1===r[n](t,n)){var i;if(t.preventDefault(),vf.includes(null==(i=t.target)?void 0:i.id))return;t.stopPropagation()}return}if(!1===function(t){if(t=Array.isArray(t)?t:[t],a&&s===Gn.HELP&&!mf.includes(t[0])){if(e.events.fire(Wt._overlayCloseButtonPressed),t[0]===kt._showOverlay&&"help"===t[1])return!1;if(t[0]!==kt._openVimeo)return setTimeout((function(){e.events.fire.apply(null,t)}),250),!1}return e.events.fire.apply(null,t),!1}(r[n])){var o;if(t.preventDefault(),vf.includes(null==(o=t.target)?void 0:o.id))return;t.stopPropagation()}}}e.config.embed.on_site||(r.v=kt._openVimeo),t&&(r.x=Wt._likeButtonPressed),n&&(r.w=Wt._watchLaterButtonPressed),i&&(r.s=Wt._shareButtonPressed),e.config.embed.keyboard&&(document.addEventListener("keydown",c,!1),document.addEventListener("keypress",c,!1),document.addEventListener("keyup",(function(t){if("preact-menu"!==l&&(g(t),!C(t)&&f())){var n=E(t);o.spatialPlayback&&e.config.video.spatial&&df.includes(n)?e.backbone.getEffectByName("ThreeSixtyEffect").keyUp(n):m("scrub")&&(_f.includes(n)||uf.includes(n))&&function(t){v.cancel(),u=d,_=0;var n=t.shiftKey;e.events.fire(Wt._scrubbingEnded,n),p=!1}(t)}}),!1))}(),e.events.on(Wt._becameActive,(function(){i=!1})).on(Wt._becameInactive,(function(){i=!0})),e.config.embed.on_site&&document.querySelector(".player")===n&&(i=!1),function(){let e,t=!1;document.body.addEventListener("keyup",e=>{9!==e.which||document.body.classList.contains("showfocus")||document.body.classList.add("showfocus")}),document.body.addEventListener("keydown",n=>{32!==n.which&&13!==n.which||(t=!0,clearTimeout(e),e=setTimeout(()=>{t=!1},200))}),document.body.addEventListener("click",e=>{t||document.body.classList.remove("showfocus")})}(),e.events.on(kt._destroy,()=>{i=!0}),{pause:function(){i=!0},unpause:function(){i=!1}}}function hf(e,t,n){let i=n.USD;return t in n&&(i=n[t]),-1!==e.indexOf("${price}")?e.replace("${price}",i):-1!==e.indexOf("{PRICE}")?e.replace("{PRICE}",i):e}function gf(e,t){return void 0!==e&&void 0!==e[t]?e[t]:t}var Ef=Object.freeze({__proto__:null,formatVodLabel:function(e,t,n,i){var o=i[t];return o?(o=hf(o=gf(e,o),n,i.prices),i.expires_in_duration_str&&(o=o.replace("{TIME}",i.expires_in_duration_str)),i.available_on_formatted&&(o=o.replace("{DATE}",i.available_on_formatted)),o):null},getDisplayPrice:hf,isAvailableInCountry:function(e,t){return!e||0===e.length||-1!==e.indexOf(t)},translateFromRequest:gf});function bf(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function Cf(e,t){try{var n=e()}catch(ke){return t(ke)}return n&&n.then?n.then(void 0,t):n}function yf(){}let Tf=function(){function e(e,t){this._player=e,this._store=t,this._failedRequests=0,this._viewerCount=0,this._setUpEvents()}var t=e.prototype;return t._setUpEvents=function(){this._player.events.on(K.STREAM_ONLINE,()=>{this._getViewerCount()})},t._getViewerCount=function(){try{const e=this;if(!e._store.get(ia)||!e._player.config.video.live_event.show_viewer_count)return;const t=setTimeout(()=>{e._getViewerCount()},3e4);let n=`${e._player.config.video.id}`;"unlisted"===e._player.config.video.privacy&&(n+=`:${e._player.config.video.unlisted_hash}`);let i=`https://${e._player.config.vimeo_api_url}/videos/${n}/stats/live`,o={jwt_token:e._player.config.user.vimeo_bucketed_live_client_token};return Lf(Cf((function(){return bf(e._player.updatePhpTokens(),(function(){return Lf(Cf((function(){return bf(T({url:i,searchParams:o}).json(),(function(t){t.viewers?(e._failedRequests=0,e._viewerCount=t.viewers.current,e._player.events.fire(K.LIVE_STATS_SUCCESS,{viewerCount:e._viewerCount})):e._failedRequests++}))}),(function(){e._failedRequests++,e._hideViewerCount()&&clearTimeout(t),e._player.events.fire(K.LIVE_STATS_FAILURE)})))}))}),(function(n){kr.captureException(n),e._failedRequests++,e._hideViewerCount()&&clearTimeout(t),e._player.events.fire(K.LIVE_STATS_FAILURE)})))}catch(ke){return Promise.reject(ke)}},t._hideViewerCount=function(){return this._failedRequests>3},e}();function Lf(e){if(e&&e.then)return e.then(yf)}function Af(e,t,n,i){Es.helpers=Ef;const r=function(e){if(!0===e)return Promise.resolve(null);let t=!1;return new Promise((n,i)=>{e.link.addEventListener("load",()=>{if(!t){t=!0;const i=(new Date).getTime()-e.startTime;setTimeout(()=>n(i),100)}},!1)})}(n),a=new Nm({element:e,delegate:i,cssLoadedPromise:r}),s=a.store;e.classList.add("js-player-fullscreen");let l=a.expose,c=null,d=null,u=null,_=null,p=null,v=null,m=null,f=null,h=null,g=null;const E=e.querySelector(".vp-controls"),b={tiny:Wt._enteredTinyMode,mini:Wt._enteredMiniMode,normal:Wt._enteredNormalMode,none:Wt._enteredNormalMode};function C(t){t&&void 0!==b[t]&&(a.events.fire(b[t]),e.classList.toggle("player-normal","normal"===t),e.classList.toggle("player-mini","mini"===t),e.classList.toggle("player-tiny","tiny"===t))}function y(t){t&&void 0!==b[t]&&(e.classList.toggle("app-normal","normal"===t),e.classList.toggle("app-mini","mini"===t),e.classList.toggle("app-tiny","tiny"===t))}function L(t){Object.keys(as).forEach(n=>e.classList.toggle(`player-${n}`,t===n))}function A(t){Object.keys(as).forEach(n=>e.classList.toggle(`app-${n}`,t===n))}function S(){const t=a.config.embed.settings;e.classList.toggle("with-fullscreen",!!t.fullscreen);const n=t.custom_logo;e.classList.toggle("with-custom-logo",!!n),e.classList.toggle("with-sticky-custom-logo",n&&n.sticky),e.classList.toggle("hide-controls-mode",!!t.background||0===t.controls),e.classList.toggle("touch-support",o.touch),e.classList.toggle("is-google-bot",o.isGoogleBot)}function I(e,t=a.config.video.url){if(!(!t||e&&e.metaKey)){if(-1===t.indexOf("#")&&a.backbone.currentTime>0&&a.backbone.currentTime0)try{document.activeElement.blur()}catch(ke){}}(e),a.events.fire(Wt._pauseButtonPressed),!1;window.location=t}}function O(){m||(C(s.get("ui.player.mode")),m=s.watch("ui.player.mode",C)),f||(C(s.get("ui.app.mode")),f=s.watch("ui.app.mode",y))}function P(){p||(L(s.get("ui.player.breakpoint")),p=s.watch("ui.player.breakpoint",L)),v||(A(s.get("ui.app.breakpoint")),v=s.watch("ui.app.breakpoint",A))}function w(){a.config.video.live_event?s.get(oa)||s.get(sa)?g&&(g.disable(),g=null):(g=new Mm(e,a,s),new Tf(a,s)):g&&(g.disable(),g=null)}function R(){S(),h=new Promise((e,t)=>{let n=null;const i=()=>{clearTimeout(n),window.innerWidth>0&&window.innerHeight>0?e():n=setTimeout(i,250)};a.events.once(Wt._ready,i),a.events.once(Wt._error,i)}),function(){const e=(e,t)=>a.updatePhpTokens().then(()=>{const n="following"===e?a.config.video.owner.id:a.config.video.id,i=a.config.user.vimeo_api_interaction_tokens;let o="";if(i)switch(o="?auth=",e){case"likes":o+=i.likes;break;case"watchlater":o+=i.watch_later;break;case"following":o+=i.following}const r=a.config.video.unlisted_hash&&"following"!==e?`:${a.config.video.unlisted_hash}`:"",s=`https://${a.config.vimeo_api_url}/users/${a.config.user.id}/${e}/${n}${r}${o}`;return T(s,{method:t,jwt:a.config.user.vimeo_api_client_token}).catch(n=>{kr.captureException(n,{extra:{action:e,method:t}})})}).catch(e=>{kr.captureException(e)});a.events.on(Wt._vodButtonPressed,e=>{if(a.config.user.purchased)return!a.config.video.vod.is_feature&&a.config.video.vod.feature_id?void a.loadVideoViaIframe(a.config.video.vod.feature_id):void a.events.fire(Wt._playButtonPressed);a.config.video.vod&&a.config.video.vod.is_coming_soon?I(null,a.config.video.vod.url):a.performDelegateAction(xt,()=>{a.events.fire(kt._openPopup,"purchase",{productId:e})},[e])}),a.events.on(Wt._likeButtonPressed,()=>{a.config.user.logged_in?a.config.user.id!==a.config.video.owner.id&&(a.config.user.liked?a.performDelegateAction(Mt,(function(){e("likes","DELETE"),a.config.user.liked=!1,a.events.fire(Wt._unliked)})):a.performDelegateAction(Dt,(function(){e("likes","PUT"),a.config.user.liked=!0,a.events.fire(Wt._liked)}))):a.performDelegateAction(Ht,()=>{a.events.fire(kt._openPopup,"login-like")})}),a.events.on(Wt._watchLaterButtonPressed,()=>{(a.config.video.url||"unlisted"===a.config.video.privacy)&&(a.config.user.logged_in?a.config.user.watch_later?a.performDelegateAction(Vt,()=>{e("watchlater","DELETE"),a.config.user.watch_later=!1,a.events.fire(Wt._removedFromWatchLater)}):a.performDelegateAction(Bt,()=>{e("watchlater","PUT"),a.config.user.watch_later=!0,a.events.fire(Wt._addedToWatchLater)}):a.performDelegateAction(Ht,()=>{a.events.fire(kt._openPopup,"login-watch-later")}))}),a.events.on(Wt._collectionsButtonPressed,()=>{a.performDelegateAction(Ft,()=>{a.config.video.vod&&a.config.video.vod.url?I(null,`${a.config.video.vod.url}#collections`):a.config.video.url&&I(null,`${a.config.video.url}#collections`)})}),a.events.on(Wt._shareButtonPressed,()=>{const e=a.config.embed.settings.share&&a.config.embed.settings.share.embed_only,t=()=>{a.events.fire(kt._showOverlay,"share",e)};de.element?t():a.performDelegateAction(Ut,t)}),a.events.on(Wt._embedButtonPressed,()=>{a.config.embed.settings.share.embed_only&&a.performDelegateAction(Ut,()=>{a.events.fire(kt._showOverlay,"share",!0)})}),a.events.on(Wt._followButtonPressed,()=>{if(a.config.user.logged_in&&a.config.user.id!==a.config.video.owner.id){if(a.config.user.following)return e("following","DELETE"),a.config.user.following=!1,void a.events.fire(Wt._unfollowed);e("following","PUT"),a.config.user.following=!0,a.events.fire(Wt._followed)}})}(),a.events.on(Wt._pausedForAd,()=>{e.classList.add("player-ad")}),a.events.on([Wt._resumedAfterAd,kt._reset],()=>{e.classList.remove("player-ad")}),function(){const t=function(){return function(e,t,n){return e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e}(h,(function(){const t=function(){const{width:t,height:n}=mt(e);return ro?n<=200?"10px":t<450?"12px":t<=1024?"11px":"10px":"10px"}();E&&(E.style.fontSize=t);const n=e.querySelector(".vp-sidedock");n&&(n.style.fontSize=t)}))};a.events.on(Wt._didEnterFullscreen,t),a.events.on(Wt._didExitFullscreen,t),window.addEventListener("orientationchange",t),ro&&(e.classList.add("mobile"),t())}(),O(),P(),function(){function t(){let t=e;if(i&&i.getFullscreenElement&&"function"==typeof i.getFullscreenElement){const n=i.getFullscreenElement();n&&n instanceof HTMLElement&&n.contains(e)&&n.classList.contains("js-player-fullscreen")&&(t=n)}return t}a.config.embed.fullscreen=!0,o.iPad&&e.classList.add("no-fullscreen-api-support");const n=a.config.embed.playsinline&&(o.iOS>=10||Xt),r=o.iPad||n;de.enabled||r||(e.classList.add("no-fullscreen-support"),o.iOS||(a.config.embed.fullscreen=!1));let s=!1,l=!1;a.events.on(kt._forceFullscreen,(function(){de.enabled||de.videoEnabled(e)?(a.events.fire(Wt._willEnterFullscreen),l=!1,de.request(t())):a.events.fire(kt._toggleNativeControls,!0)})),a.events.on(Wt._fullscreenButtonPressed,(function(){if(a.backbone.pictureInPictureActive&&a.backbone.exitPictureInPicture(),de.element)a.events.fire(Wt._willExitFullscreen),de.exit();else{const{HAVE_CURRENT_DATA:e}=a.backbone.videoElement;o.fullscreenRequiresDataLoaded&&a.backbone.readyState1&&a.events.fire(Wt._fullscreenButtonPressed)})),"undefined"!=typeof MSGesture){var u=1,_=new MSGesture;_.target=e,k(e).on("pointerdown",(function(e){_.addPointer(e.pointerId)})).on(["MSGestureChange"],(function(e){u*=e.scale})).on(["MSGestureEnd"],(function(){(!s&&u>=2||s&&u<1)&&a.events.fire(Wt._fullscreenButtonPressed),u=1}))}}(),function(){const t=Vi("vimeo-logo",a.config);Bm(e,"a[data-clip-link]",e=>I(e,t)),a.events.on(kt._openVimeo,I)}(),w(),a.events.on(Wt._configChanged,()=>{S(),w()}),a.events.on(kt._destroy,()=>{var e;null==(e=g)||e.disable()})}function N(){c||(c=new Gm(a,e.querySelector(".vp-overlay-wrapper")))}function D(){_||(_=new ff(a,s,e),Object.defineProperties(l,{pauseKeyboard:{enumerable:!0,value:_.pause},unpauseKeyboard:{enumerable:!0,value:_.unpause}}))}function M(){d||(d=new af(a,{uuid:a.uuid,id:e.id,isMobileDevice:!1}))}function B(){u||(u=new sf(a))}let V;function x(e=400){var t,n;V&&clearTimeout(V),null==(t=a.element)||null==(n=t.classList)||n.add("animating"),V=setTimeout(()=>{var e,t;null==(e=a.element)||null==(t=e.classList)||t.remove("animating")},e)}const U={initializationHandler:()=>(N(),M(),B(),a.events.on(Wt._rightContentAreaVisibilityChange,e=>{e&&!a.element.classList.contains("right-content-area-open")?(x(),a.element.classList.add("right-content-area-open")):!e&&a.element.classList.contains("right-content-area-open")&&(x(),a.element.classList.remove("right-content-area-open"))}),a.events.on(Wt._rightContentAreaEnabled,()=>{var e,t;null==(e=a.element)||null==(t=e.classList)||t.add("right-content-area-supported"),Array.from(a.element.querySelectorAll("[data-content-area-sibling-eligible]")).forEach(e=>{var t;return null==e||null==(t=e.classList)?void 0:t.add("content-area-sibling-enabled")})}),a.events.on(Wt._rightContentAreaDisabled,()=>{var e,t;null==(e=a.element)||null==(t=e.classList)||t.remove("right-content-area-supported"),Array.from(a.element.querySelectorAll("[data-content-area-sibling-eligible]")).forEach(e=>{var t;return null==e||null==(t=e.classList)?void 0:t.remove("content-area-sibling-enabled")})}),new km(a,s,e),D(),new Fm(a,s,e.querySelector(".vp-outro-wrapper")),R(),Promise.resolve()),postInitializationHandler:()=>Promise.resolve(),authorizationHandler(e){P(),O(),e(),N(),M(),D();let t="Error",n="Unhandled video privacy";switch(a.config.view){case Kt.privatePassword:return new Promise((e,t)=>{a.events.once(Wt._passwordUnlocked,t=>{e(t)})});case Kt.privateLocked:let e;return B(),e=a.config.user.logged_in?Promise.reject():new Promise((e,t)=>{a.events.once(Wt._privateUnlocked,n=>{n.view!==Kt.privateLocked?e(n):t()})}),e;case Kt.error:t=a.config.title,n=a.config.message}return a.events.fire(kt._showOverlay,"error",{title:t,message:n,modal:!0}),Promise.reject()}};return a.init(t,U).catch(t=>{kr.captureException(t),N(),M(),e.classList.remove("loading");const n=_n();a.events.fire(Wt._error,n.id,n)}),l}window.requestModule=window.requestModule||at,window.BigScreen=window.BigScreen||de;export{Jd as $,iu as A,Su as B,Mn as C,Sl as D,bu as E,qd as F,nr as G,su as H,Xd as I,tu as J,Zl as K,Dn as L,Ql as M,Zd as N,Bl as O,Pu as P,uv as Q,Ao as R,Tl as S,vu as T,Is as U,Zo as V,Af as VimeoPlayer,jl as W,lv as X,Pc as Y,fc as Z,_v as _,Cn as a,wu as a0,go as a1,Eo as a2,ho as a3,_u as b,vn as c,gc as d,yl as e,pi as f,Gi as g,kt as h,Ml as i,Dl as j,av as k,Vn as l,yu as m,ai as n,Al as o,kl as p,ic as q,oc as r,wl as s,lt as t,Gd as u,Nl as v,Rl as w,vr as x,Ll as y,tr as z};