1(()=>{function ownKeys(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,s)}return i}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(i),!0).forEach(function(t){_defineProperty(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ownKeys(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function _defineProperty(e,t,i){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==typeof t?t:t+""}function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var s=i.call(e,t||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}const e="application/x-mpegurl";const t="application/vnd.apple.mpegurl";const i=2e6;const s=1e5;const o=1e8;const r="voyagerHlsBandwidthEstimate";const readStoredBandwidthEstimate=()=>{try{const e=Number(window.sessionStorage.getItem(r));if(isFinite(e)&&e>=s&&e<=o)return e}catch(e){}return null};const storeBandwidthEstimate=e=>{if(!isFinite(e)||e<s||e>o)return;try{window.sessionStorage.setItem(r,Math.round(e))}catch(e){}};const formatTime=e=>{const t=Math.floor(e/60);const i=Math.floor(e%60);return`${t}:${i<10?"0":""}${i}`};class VoyagerVideoPlayer{constructor(e,t){this.video=e;this.options=t;this.hls=null;this.attached=false;this.destroyed=false;this.viewportObserver=null;this.slideObserver=null;this.lastIntersectionRatio=0;this.abortController=new AbortController;this.networkRetries=0;this.mediaRecoveries=0;this.slide=e.closest(".splide__slide");this.source=this.resolveSource()}init(e){this.applyAutoplayPolicy();this.attachSource();this.applyAriaLabel();this.bindSlideInterval();if(!this.options.standalone){this.bindControls();this.bindSliderCoupling()}this.bindViewport();this.bindSlideActivation();this.bindExternalEvents(e);return this}destroy(){if(this.destroyed)return;this.destroyed=true;this.abortController.abort();if(this.viewportObserver){this.viewportObserver.disconnect();this.viewportObserver=null}if(this.slideObserver){this.slideObserver.disconnect();this.slideObserver=null}if(this.hls){this.hls.destroy();this.hls=null}if(!this.video.paused)this.video.pause()}resolveSource(){const t=this.video.querySelector("source");const i=this.video.getAttribute("src")||(null===t||void 0===t?void 0:t.getAttribute("src"))||"";const s=(null===t||void 0===t?void 0:t.getAttribute("type"))||"";const o=s.toLowerCase()===e||/\.m3u8(\?|$)/i.test(i);return{src:i,isHls:o}}attachSource(){const{src:e,isHls:s}=this.source;if(!s){this.attached=true;return}if("undefined"!==typeof Hls&&Hls.isSupported()){this.hls=new Hls(_objectSpread({abrEwmaDefaultEstimate:readStoredBandwidthEstimate()??i},this.options.hls));this.hls.on(Hls.Events.ERROR,(e,t)=>this.handleHlsError(t));this.hls.on(Hls.Events.FRAG_LOADED,()=>{if(this.hls)storeBandwidthEstimate(this.hls.bandwidthEstimate)});this.hls.loadSource(e);this.hls.attachMedia(this.video);this.attached=true;return}if(this.video.canPlayType(t)){this.video.src=e;this.attached=true;return}console.warn("VoyagerVideo: this browser supports neither MSE nor native HLS playback.",this.video)}handleHlsError(e){if(!e.fatal||!this.hls)return;if(e.type===Hls.ErrorTypes.NETWORK_ERROR){if(this.networkRetries<2){this.networkRetries++;this.hls.startLoad();return}}else if(e.type===Hls.ErrorTypes.MEDIA_ERROR)if(this.mediaRecoveries<1){this.mediaRecoveries++;this.hls.recoverMediaError();return}this.hls.destroy();this.hls=null;if(this.video.canPlayType(t))this.video.src=this.source.src;else{var i;const t=null===(i=e.response)||void 0===i?void 0:i.code;const s=e.type===Hls.ErrorTypes.NETWORK_ERROR&&(0===t||void 0===t)?" The request got no HTTP response, which usually "+"means the source blocks cross-origin requests "+"(missing Access-Control-Allow-Origin headers).":"";console.warn(`VoyagerVideo: HLS playback failed (${e.details}, `+`HTTP ${t??"n/a"}) for `+`${e.url||this.source.src}.${s}`,e)}}safePlay(){const e=this.video.play();if(!e||"function"!==typeof e.catch)return e;return e.catch(e=>{if("NotAllowedError"===e.name&&!this.video.muted){this.video.muted=true;return this.video.play().catch(()=>{})}})}play(){return this.safePlay()}pause(){this.video.pause()}seek(e){this.video.currentTime=e}setMuted(e){this.video.muted=e}on(e,t){this.video.addEventListener(e,t,{signal:this.abortController.signal})}addListener(e,t,i){e.addEventListener(t,i,{signal:this.abortController.signal})}applyAutoplayPolicy(){if(!this.video.classList.contains(this.options.autoplayClass))return;if(!this.video.getAttribute("autoplay"))this.video.setAttribute("autoplay","true");if(!this.video.muted)this.video.muted=true}applyAriaLabel(){const{video:e}=this;let t="Video Player";if(e.closest(".voyager-hero")||e.closest(".voyager-hero-with-introduction"))t="Hero Video Player";else if(e.classList.contains("voyager-image-video__video"))t="Content Video Player";else if(e.closest(".splide")){var i;const s=Array.from((null===(i=e.closest(".splide__list"))||void 0===i?void 0:i.children)||[]).indexOf(e.closest(".splide__slide"))+1;t=s?`Slide ${s} Video Player`:"Carousel Video Player"}if(e.id)t+=` (${e.id})`;e.setAttribute("aria-label",t)}bindSlideInterval(){if(!this.slide)return;const updateInterval=()=>{const e=this.video.duration;if(e&&isFinite(e))this.slide.setAttribute("data-splide-interval",1e3*e)};this.on("loadedmetadata",updateInterval);this.on("durationchange",updateInterval)}
1bindControls(){if(!this.attached)return;const{controlPanelSelector:e,playButtonSelector:t,pauseButtonSelector:i,muteButtonSelector:s,muteIconSelector:o,progressBarSelector:r}=this.options.videoControls;const n=this.video.nextElementSibling;if(!(null!==n&&void 0!==n&&n.classList.contains(e.slice(1))))return;const a=n.dataset.videoControlsBlockName;n.style.display="block";const togglePlayClass=()=>{if(!this.video.paused){n.classList.remove(`${a}__controls--paused`,"voyager-video__controls--paused");n.classList.add(`${a}__controls--playing`,"voyager-video__controls--playing")}else{n.classList.remove(`${a}__controls--playing`,"voyager-video__controls--playing");n.classList.add(`${a}__controls--paused`,"voyager-video__controls--paused")}};togglePlayClass();this.on("play",togglePlayClass);this.on("pause",togglePlayClass);const l=n.querySelector(t);const d=n.querySelector(i);const c=n.querySelector(r);if(l)this.addListener(l,"click",()=>this.play());if(d)this.addListener(d,"click",()=>this.pause());if(c)this.bindProgress(c);const u=n.querySelector(s);const h=n.querySelector(o);const toggleMuteClass=()=>{if(!h)return;if(this.video.muted){h.classList.remove("voyager-icon-unmute");h.classList.add("voyager-icon-mute");n.classList.remove(`${a}__controls--unmuted`);n.classList.add(`${a}__controls--muted`)}else{h.classList.remove("voyager-icon-mute");h.classList.add("voyager-icon-unmute");n.classList.remove(`${a}__controls--muted`);
1n.classList.add(`${a}__controls--unmuted`)}};toggleMuteClass();this.on("volumechange",toggleMuteClass);if(u)this.addListener(u,"click",e=>{e.preventDefault();e.stopPropagation();this.setMuted(!this.video.muted)})}bindProgress(e){const t=e.querySelector(".js-video-progress-bar");const i=e.querySelector(".js-video-progress-bar-wrap");const s=e.querySelector(".js-video-current-time");const o=e.querySelector(".js-video-duration");const updateDuration=()=>{const e=this.video.duration;if(o&&e&&isFinite(e))o.innerText=formatTime(e)};updateDuration();this.on("durationchange",updateDuration);if(i)this.addListener(i,"click",e=>{const t=this.video.duration;if(!t||!isFinite(t))return;const s=e.clientX-i.getBoundingClientRect().left;this.seek(s/i.offsetWidth*t)});this.on("timeupdate",()=>{const e=this.video.duration;if(!e||!isFinite(e))return;if(t)t.style.width=`${this.video.currentTime/e*100}%`;if(s)s.innerText=formatTime(this.video.currentTime)})}bindViewport(){if(!this.attached)return;if(!this.video.getAttribute("autoplay"))return;const observe=()=>{if(this.viewportObserver||this.destroyed)return;this.viewportObserver=new IntersectionObserver(e=>{e.forEach(e=>{this.lastIntersectionRatio=e.intersectionRatio;const t=this.video.closest(".splide__slide");if(t&&!t.classList.contains("is-visible")){this.pause();return}if(e.intersectionRatio>=.8&&this.video.paused&&this.video.getAttribute("autoplay"))this.play();else if(e.intersectionRatio<=.4&&!this.video.paused)this.pause()})},{threshold:[.4,.8]});this.viewportObserver.observe(this.video)};const e=this.safePlay();if(e)e.then(observe);if(this.video.paused)observe()}bindSlideActivation(){if(!this.attached||!this.slide)return;if(!this.video.getAttribute("autoplay"))return;let e=this.slide.classList.contains("is-visible");this.slideObserver=new MutationObserver(()=>{const t=this.slide.classList.contains("is-visible");if(t===e)return;e=t;if(!t){if(!this.video.paused)this.pause();return}if(this.video.paused&&this.lastIntersectionRatio>=.8)this.safePlay()});this.slideObserver.observe(this.slide,{attributes:true,attributeFilter:["class"]})}bindSliderCoupling(){this.on("play",()=>this.toggleSliderAutoplay(true));this.on("pause",()=>this.toggleSliderAutoplay(false))}toggleSliderAutoplay(e){var t;const i=this.video.closest(".splide");if(!i)return false;if(i.hasFirstSlideVideo&&void 0===i.isFirstSlideVideoEnded)return false;if(this.video.ended&&!this.video.loop)return false;const s=null===(t=this.video.closest(".splide__slide"))||void 0===t?void 0:t.classList.contains("is-visible");if(!s)return false;const{sliderAutoplay:o}=i;if(!o)return false;e?o.play():o.pause();return true}bindExternalEvents(e){if(!e||!e.length)return;e.forEach(e=>{if(!e.eventType||!e.cb)return;if("onended"===e.eventType){this.on("timeupdate",()=>{const t=this.video.duration;if(!t||!isFinite(t))return;if(this.video.currentTime<=.5)return;if(this.video.currentTime+.5>=t)e.cb()});return}this.on(e.eventType,e.cb)})}}class VoyagerVideo{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=_objectSpread(_objectSpread(_objectSpread({},VoyagerVideo.defaults),e),{},{videoControls:_objectSpread(_objectSpread({},VoyagerVideo.defaults.videoControls),e.videoControls||{}),hls:_objectSpread(_objectSpread({},VoyagerVideo.defaults.hls),e.hls||{})})}init(e){VoyagerVideo.prune();const t=document.querySelectorAll(this.options.selector);if(!t.length)return false;t.forEach(t=>{this.initInstance(t,e)})}initInstance(e,t){if(!e||VoyagerVideo.instances.has(e))return false;if(window.acf){VoyagerVideo.createPosterImage(e);return false}const i=new VoyagerVideoPlayer(e,this.options);VoyagerVideo.instances.set(e,i);i.init(t);return i}static get(e){return VoyagerVideo.instances.get(e)||null}static attach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return VoyagerVideo.get(e)||new VoyagerVideo(t).initInstance(e)||null}static destroy(e){const t=VoyagerVideo.instances.get(e);if(!t)return false;t.destroy();VoyagerVideo.instances.delete(e);return true}static destroyWithin(e){if(!e)return;
1VoyagerVideo.instances.forEach((t,i)=>{if(e.contains(i))VoyagerVideo.destroy(i)})}static destroyAll(){VoyagerVideo.instances.forEach(e=>e.destroy());VoyagerVideo.instances.clear()}static prune(){VoyagerVideo.instances.forEach((e,t)=>{if(!t.isConnected)VoyagerVideo.destroy(t)})}static createPosterImage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const i=e.parentNode.querySelector(".voyager-video__poster");if(!e||i)return false;const s=document.createElement("img");if(t)s.src=t;else if(e.getAttribute("poster"))s.src=e.getAttribute("poster");else{const getThemeName=()=>{const e=document.querySelectorAll("img");const t=/\/wp-content\/themes\/([^\/]+)/;for(let i of e)if(i.complete&&i.naturalWidth>0){const e=i.src.match(t);if(e)return e[1]}return"voyager"};s.src=`${window.location.origin}/wp-content/themes/${getThemeName()}/assets/img/placeholder/no-video-image.jpg`}s.alt="Video Poster Image";s.className="voyager-video__poster";s.style.width="100%";s.style.height="100%";e.style.display="none";e.parentNode.insertBefore(s,e.nextSibling);return s}}_defineProperty(VoyagerVideo,"instances",new Map);_defineProperty(VoyagerVideo,"defaults",{selector:".js-voyager-video",autoplayClass:"js-voyager-video-autoplay",standalone:false,videoControls:{controlPanelSelector:".js-voyager-video__controls",playButtonSelector:".js-voyager-video__play-button",pauseButtonSelector:".js-voyager-video__pause-button",muteButtonSelector:".js-voyager-video__mute-button",progressBarSelector:".js-voyager-video__progress-button",muteIconSelector:".js-voyager-video__mute-button .voyager-video__control-icon"},hls:{capLevelToPlayerSize:true,maxBufferLength:30,backBufferLength:30,enableWorker:true}});const updateHeroFirstVideoSlide=()=>{const e=!document.querySelectorAll(".voyager-hero .splide").length?document.querySelectorAll(".voyager-hero-mobile .splide"):document.querySelectorAll(".voyager-hero .splide");e.forEach(e=>{const t=e.classList.contains("is-initialized");if(t)return false;const i=e.querySelector(".splide__slide");const s=null===i||void 0===i?void 0:i.querySelector("video");if(s){s.classList.remove("js-voyager-video");s.classList.add("js-voyager-video-first-slide")}})};updateHeroFirstVideoSlide();const n=new VoyagerVideo;window.VoyagerVideo=VoyagerVideo;window.VideoJs=VoyagerVideo;if(window.acf){window.acf.addAction("render_block_preview/type=voyager-hero",()=>n.init());window.acf.addAction("render_block_preview/type=voyager-image-video",()=>n.init());window.acf.addAction("render_block_preview/type=voyager-fifty-fifty",()=>setTimeout(()=>n.init(),3e3))}else window.addEventListener("load",()=>{n.init()})})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.