1import{f as m,i as h,t as L}from"./posthog-ba3501e9.js";window.onload=function(){var e=document.querySelectorAll(".sidebar a");e.forEach(function(t){t.addEventListener("click",function(n){e.forEach(function(i){i.classList.remove("active")}),t.classList.add("active")})})};const f=new Set;let d=null;function g(e){const t=e.closest("[data-cta-id]");return t?{cta_id:t.dataset.ctaId,destination:t.dataset.ctaDestination||"other",audience:t.dataset.ctaAudience||"both",page_type:t.dataset.ctaPageType||b()}:null}function b(){const e=window.location.pathname;return e==="/"?"home":/^\/(sign-up|parent-sign-up)/.test(e)?"signup":/^\/(uabmedicine|wellthy|vivvi|tdi|trial|credit)/.test(e)?"landing":/-jobs(\/|$)/.test(e)?"seo_jobs":/^\/search-/.test(e)?"seo_search":"content"}function E(){d||(d=new IntersectionObserver(e=>{for(const t of e){if(!t.isIntersecting||!t.target.checkVisibility({opacityProperty:!0,visibilityProperty:!0}))continue;d.unobserve(t.target);const n=g(t.target);!n||f.has(n.cta_id)||(f.add(n.cta_id),m.capture("CTA Viewed",n))}},{threshold:.5}),document.querySelectorAll("[data-cta-id]").forEach(e=>d.observe(e)))}function q(){document.addEventListener("click",e=>{const t=e.target.closest("[data-cta-id]");if(!t)return;const n=g(t);n&&m.capture("CTA Clicked",n,{transport:"sendBeacon"})})}function S(){typeof m.capture=="function"&&(E(),q())}h();S();document.addEventListener("DOMContentLoaded",function(){window.addEventListener("scroll",function(){window.pageYOffset>1?document.querySelector(".header").classList.add("active"):document.querySelector(".header").classList.remove("active")});var e=document.querySelectorAll(".footer .subtitle");e.forEach(function(c){c.addEventListener("click",function(){if(window.innerWidth<=991){var a=this.parentElement;a.classList.toggle("active");var r=this.nextElementSibling;w(r,300)}})});var t=document.querySelectorAll(".html_lazy_loading");t.forEach(function(c,a){setTimeout(function(){c.classList.remove("html_lazy_loading")},100*(a+1))});var n=document.getElementById("btn-app-close");typeof n<"u"&&n&&n.addEventListener("click",function(){k("show-app-download-banner","0",1),document.getElementById("app-install-banner").classList.toggle("hide"),document.getElementById("app-install-banner-space").remove();for(var c=document.getElementsByClassName("has-app-install-banner"),a=0;a<c.length;a++)c[a].classList.remove("has-app-install-banner")}),window==null||window.initFaqs();for(var i=document.getElementsByClassName("toggle-sign-up-popup"),o=0;o<i.length;o++)i[o].addEventListener("click",_,!1);var s=[].slice.call(document.querySelectorAll(".tabs .tab"));s.forEach(function(c){c.addEventListener("click",function(a){a.preventDefault();const r=document.getElementById(c.getAttribute("content-id"));if(r){const y=c.closest(".tabs");[].slice.call(y.querySelectorAll(".tab")).forEach(function(u){u.classList.remove("active")}),c.classList.add("active");var l=[].slice.call(r.parentNode.querySelectorAll(".tab-pane"));l.forEach(function(u){u.classList.remove("active","show")}),r.classList.add("active","show")}})})});window.initFaqs=function(){var e=document.querySelectorAll(".faqs");e.forEach(function(t){if(!t.classList.contains("init")){t.classList.add("init");var n=t.querySelectorAll(".question");n.forEach(function(i){i.closest(".faqs")&&i.addEventListener("click",function(o){const s=o.target.nextElementSibling;s.classList.contains("active")?(s.classList.remove("active"),o.target.classList.remove("active")):(s.classList.add("active"),o.target.classList.add("active"))})})}})};function w(e,t){if(console.log(e.scrollHeight),e.offsetHeight==0)var n=0,i=e.scrollHeight;else var n=e.offsetHeight,i=0;var o=null;function s(c){o||(o=c);var a=c-o,r=Math.min(a/t,1),l=n+r*(i-n);e.style.height=l+"px",l===0&&(e.style.height=null),r<1&&requestAnimationFrame(s)}requestAnimationFrame(s)}function k(e,t,n){var i=new Date;i.setTime(i.getTime()+n*24*60*60*1e3);var o="expires="+i.toUTCString();document.cookie=e+"="+t+"; "+o}function _(e){e&&e.preventDefault();var t=document.querySelector(".sign-up-options-popup");t.classList.contains("active")?(t.classList.remove("active"),document.removeEventListener("click",v,!0)):(t.classList.add("active"),document.addEventListener("click",v,!0))}function v(e){var t=document.querySelector(".sign-up-options-popup");let n=t.contains(e.target);for(var i=document.getElementsByClassName("toggle-sign-up-popup"),o=0;o<i.length;o++)n=n||i[o].contains(e.target);n||t.classList.contains("active")&&t.classList.remove("active")}window.trackEvent=function(e,t={}){L(e,t)};document.querySelector(".account-icon")&&document.querySelector(".account-icon").addEventListener("click",function(){document.querySelector(".account-menu").classList.toggle("active"),document.querySelector(".account-icon svg").classList.toggle("active"),document.body.classList.add("lock"),document.querySelectorAll(".account-menu-item .back").forEach(function(e){e.addEventListener("click",function(){document.querySelector(".account-menu").classList.remove("active"),document.body.classList.remove("lock")})})});const p=document.querySelector(".header__mobile_hamburger");if(p){const e=document.querySelector(".header__mobile_modal"),t=document.querySelector(".header__mobile_modal_close"),n=document.querySelector(".modal__card"),i=document.querySelectorAll(".modal__content a");p.addEventListener("click",()=>{e.classList.remove("hiden"),setTimeout(()=>{n.classList.add("open")},50),document.querySelector("body").style.overflow="hidden"}),t.addEventListener("click",()=>{setTimeout(()=>{e.classList.add("hiden")},500),n.classList.remove("open"),document.querySelector("body").style.overflow="auto"}
1),i.forEach(o=>{o.addEventListener("click",()=>{setTimeout(()=>{e.classList.add("hiden")},500),n.classList.remove("open"),document.querySelector("body").style.overflow="auto"})}),e.addEventListener("click",()=>{setTimeout(()=>{e.classList.add("hiden")},500),n.classList.remove("open"),document.querySelector("body").style.overflow="auto"}),e.querySelector(".modal__card").addEventListener("click",o=>{o.stopPropagation()})} 2//# sourceMappingURL=main-49698407.js.map
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.