1(()=>{let e=[].slice.call(document.querySelectorAll("figure.wp-block-video")),t=[].slice.call(document.querySelectorAll("figure.wp-block-embed")),o=null;const n=document.querySelector(".wp-block-embed-youtube div.wp-block-embed__wrapper");if(n&&(window.onYouTubeIframeAPIReady=()=>{const e=n.getElementsByTagName("iframe")[0];e&&(o=new window.YT.Player(e,{events:{onReady:e=>{}}}))}),e.length>0&&"IntersectionObserver"in window){let t=new IntersectionObserver(function(e,o){e.forEach(function(e){e.isIntersecting&&("string"==typeof e.target.tagName&&"VIDEO"===e.target.tagName&&e.target.dataset.src&&(e.target.src=e.target.dataset.src),e.target.load(),t.unobserve(e.target))})});e.forEach(function(e){const o=e.querySelector("div.video-block__cover"),n=e.getElementsByTagName("video")[0];null!==o?o.addEventListener("click",function(){n.removeAttribute("style"),n.removeAttribute("poster"),o.setAttribute("style","display: none;"),t.observe(n)}):t.observe(n)})}function i(e){const t=e.querySelector("iframe");t&&(void 0!==window.Vimeo&&new window.Vimeo.Player(t).pause().catch(function(){}),o&&o.pauseVideo&&o.pauseVideo(),e.setAttribute("style","display: none;"),e.classList.remove("video-modal__opened"))}t.length>0&&t.forEach(function(e){const t=e.querySelector("div.video-block__cover"),n=e.querySelector("div.wp-block-embed__wrapper");if(!n)return;let i=null;n.parentNode.classList.contains("wp-block-embed-vimeo")?i="vimeo":n.parentNode.classList.contains("wp-block-embed-youtube")&&(i="youtube");const s=n.getElementsByTagName("iframe")[0];s&&s.dataset.src&&(null!==t&&"youtube"===i&&t.addEventListener("click",function(){const e=s.parentNode.classList.contains("video-modal__embed");s.src=s.dataset.src,e?(n.setAttribute("style","display: block;"),n.classList.add("video-modal__opened"),o&&o.playVideo&&o.playVideo()):(n.removeAttribute("style"),t.setAttribute("style","display: none;"))}),null!==t&&"vimeo"===i&&t.addEventListener("click",function(){const e=s.parentNode.classList.contains("video-modal__embed");s.src=s.dataset.src,e?(n.setAttribute("style","display: block;"),n.classList.add("video-modal__opened"),void 0!==window.Vimeo&&s.addEventListener("load",function(){new window.Vimeo.Player(s).play()})):(n.removeAttribute("style"),t.setAttribute("style","display: none;"))}))}),document.querySelectorAll(".video-modal__opened").forEach(function(e){e.addEventListener("click",function(t){t.target===e&&i(e)})}),document.addEventListener("keydown",function(e){"Escape"!==e.key&&27!==e.keyCode||document.querySelectorAll(".video-modal__opened").forEach(function(e){i(e)})})})();
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.