',u.parentNode.insertBefore(g,u.nextSibling),u.classList.add("has-results");var y=g.querySelector(".ekr__track"),_=g.querySelectorAll(".ekr__arrow");y.addEventListener("scroll",function(){requestAnimationFrame(S)},{passive:!0}),window.addEventListener("resize",S),S(),Array.prototype.forEach.call(_,function(e){e.addEventListener("click",function(){"true"!==e.getAttribute("aria-disabled")&&y.scrollBy({left:+e.getAttribute("data-dir")*L(),behavior:r?"auto":"smooth"})})}),y.addEventListener("keydown",function(e){e.target===y&&("ArrowRight"!==e.key&&"ArrowLeft"!==e.key||(e.preventDefault(),y.scrollBy({left:("ArrowRight"===e.key?1:-1)*L(),behavior:r?"auto":"smooth"})))});var k,w,x=0,A=null;y.addEventListener("click",function(e){var r=e.target.closest&&e.target.closest(".ekr__media");r&&function(e,r){if("function"==typeof HTMLDialogElement){if(!k){(k=document.createElement("dialog")).className="ekr-lb",k.setAttribute("aria-label",m+" before and after results"),k.setAttribute("data-lenis-prevent",""),k.innerHTML='