"use strict";window.addEventListener("DOMContentLoaded",()=>{var t=document.querySelectorAll(".zb-tooltip");let e=!1;try{var n={get passive(){return!(e=!0)}};window.addEventListener("test",null,n),window.removeEventListener("test",null,n)}catch(t){e=!1}for(let e of t)e.addEventListener("mouseover",()=>o(e)),e.addEventListener("mouseout",()=>i(e)),e.addEventListener("touchstart",t=>{r(e),t.cancelable&&t.preventDefault()},{passive:!1}),e.addEventListener("click",()=>r(e));function o(t){t.classList.add("tooltip-open");var e,n=t;if(!(window.outerWidth<=600)){const o=n.querySelector(".zb-tooltip--content");o&&((n=o.getBoundingClientRect()).x+n.width>window.outerWidth?(e=n.width-(window.outerWidth-n.x)+16,o.style.left="auto",o.style.right="0",o.style.transform="translateX("+e+"px)"):n.x<8&&(e=-1*n.x+16,o.style.left="0",o.style.transform="translateX(calc(-50% + "+e+"px)"))}s(t,!0)}function i(t){t.classList.remove("tooltip-open"),s(t,!1)}function s(e,n){if(e.hasAttribute("data-parent")){var o=e.dataset.parent;if(""!==o){let t=e.closest("."+o);t&&(n?t.style.zIndex=2:t.style.setProperty("z-index","initial"))}}}function r(t){(t.classList.contains("tooltip-open")?i:o)(t)}});