"use strict";var loadedvideoscroll=!1;const onGSVideoScrollInteraction=()=>{if(!0===loadedvideoscroll)return;loadedvideoscroll=!0;const VideoScript=document.createElement("script");VideoScript.src="https://cdn.jsdelivr.net/npm/scrolly-video@latest/dist/scrolly-video.js",document.body.appendChild(VideoScript),VideoScript.onload=()=>{let gspbvideoscroll=document.getElementsByClassName("gs-videoscrloader");gspbvideoscroll.length>0&&Array.from(gspbvideoscroll).forEach(currentNode=>{currentNode.classList.add("gs-videoscrloaded");let currentViewer=currentNode;currentViewer&&"undefined"!=typeof ScrollyVideo&&new ScrollyVideo({scrollyVideoContainer:currentViewer,src:currentViewer.dataset.source,full:!1,cover:!1,sticky:currentViewer.dataset.sticky||!1,useWebCodecs:currentViewer.dataset.usewebcodecs||!1,frameThreshold:parseFloat(currentViewer.dataset.framethreshold),transitionSpeed:parseFloat(currentViewer.dataset.transitionspeed),setCurrentTimePercent:parseFloat(currentViewer.dataset.setcurrenttimepercent)})})}};document.body.addEventListener("mouseover",onGSVideoScrollInteraction,{once:!0}),document.body.addEventListener("touchmove",onGSVideoScrollInteraction,{once:!0}),window.addEventListener("scroll",onGSVideoScrollInteraction,{once:!0}),document.body.addEventListener("keydown",onGSVideoScrollInteraction,{once:!0});var requestIdleCallback=window.requestIdleCallback||function(cb){const start=Date.now();return setTimeout((function(){cb({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-start))}})}),1)};let gspbvideoscroll=document.getElementsByClassName("gs-videoscrloader");for(let i=0;i<gspbvideoscroll.length;i++){let currentNode;gspbvideoscroll[i].classList.contains("gs-loadnow")&&requestIdleCallback((function(){onGSVideoScrollInteraction()}),{timeout:300})}