var tVideoLazy;function t_video_lazyload_init(){t_video_lazyload_add_video(),window.addEventListener("scroll",t_throttle(t_video_lazyload_add_video,300))}function t_video_lazyload_add_video(){var _=document.documentElement.clientHeight,e=document.querySelectorAll(".t-video-lazyload");Array.prototype.forEach.call(e,function(e){var t=e.getAttribute("data-videolazy-height"),a=e.getAttribute("data-videolazy-id"),i=e.getAttribute("data-videolazy-hash"),o=e.getAttribute("data-blocklazy-id"),d=e.getAttribute("data-videolazy-two-id"),l=e.getAttribute("data-videolazy-load"),r=e.getAttribute("data-videolazy-type"),n="100%";t&&-1===t.indexOf("vh")&&(n=t);var t=e.getBoundingClientRect().top,c=a?a.trim():"",u=i?i.trim():"",f=o||"",v=d?"_"+d+"_":"";if(window.pageYOffset>t-_-700&&"false"===l&&!e.classList.contains("t-video__isload"))switch(e.setAttribute("data-videolazy-load","true"),r){case"youtube":c+=-1!==c.indexOf("?")?"&":"?",e.insertAdjacentHTML("afterbegin",'');break;case"vimeo":var y=u?"h="+u+"&":"";e.insertAdjacentHTML("afterbegin",'')}})}"loading"!==document.readyState?(tVideoLazy=document.querySelectorAll(".t-video-lazyload")).length&&t_video_lazyload_init():document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".t-video-lazyload").length&&t_video_lazyload_init()});