function findPosition(n){var t=0;if(n.offsetParent){do t+=n.offsetTop;while(n=n.offsetParent);return[t]}}function updateurl(n){history.pushState&&window.history.pushState({path:n},document.title,n)}var googleAnalyticsQuery="";window.addEventListener("load",function(){var n;n=window.navigator.userAgent.indexOf("Edge")>-1?2500:1e3;setTimeout(function(){function r(){var n={};return currentUrl=decodeURI(window.location.href),currentUrl!=""&&$.each(currentUrl.slice(window.location.href.indexOf("?")+1).split("&"),function(t,i){var r=i.split("=");r.length>1&&(n[r[0].toString()]=r[1].toString())}),n}var e,t,o,u,f,s,n,i;if($(".permalink").addClass("hide"),$(window).width()<=991)for(t=document.querySelectorAll(".mobile"),n=0;n<t.length;n++)t[n].classList.contains("collapsed")||(t[n].parentElement.parentElement.style.border="1px solid #0073DC");if($(window).width()>991)for(t=document.querySelectorAll(".desktop"),n=0;n<t.length;n++)t[n].classList.contains("collapsed")||(t[n].parentElement.parentElement.style.border="1px solid #0073DC");if(o=r(),u=o.question,u!="")for(("scrollRestoration"in history)&&(history.scrollRestoration="manual"),f=window.location.href,s=decodeURI(f.substring(f.indexOf("?"),f.indexOf("=")+1)),n=0;n<t.length;n++)if(i=t[n].firstElementChild.nextElementSibling.innerText.trim().replace(/\s/g,"-").replace("?","").toLowerCase(),i==u&&$(window).width()<=991&&(t[n].classList.remove("collapsed"),t[n].setAttribute("aria-expanded",!0),t[n].parentElement.nextElementSibling.classList.add("in"),t[n].parentElement.nextElementSibling.setAttribute("aria-expanded",!0),t[n].parentElement.nextElementSibling.style.height="auto",t[n].parentElement.parentElement.style.border="1px solid #0073DC",window.navigator.userAgent.indexOf("Edge")>-1?t[n].scrollIntoView():window.scroll(0,findPosition(t[n])),window.scrollBy(0,-80),e=i),i==u&&$(window).width()>991){t[n].classList.remove("collapsed");t[n].setAttribute("aria-expanded",!0);t[n].parentElement.nextElementSibling.classList.add("in");t[n].parentElement.nextElementSibling.setAttribute("aria-expanded",!0);t[n].parentElement.nextElementSibling.style.height="auto";t[n].parentElement.parentElement.style.border="1px solid #0073DC";window.navigator.userAgent.indexOf("Edge")>-1?t[n].scrollIntoView():window.scroll(0,findPosition(t[n]));window.scrollBy(0,-120);e=i;break}$(".question-content").click(function(){if($(this).hasClass("collapsed")){var t=$(this)[0].firstElementChild.nextElementSibling.innerText.trim().replace(/\s/g,"-").replace("?",""),n=r().question;window.location.search.includes("?utm")?(googleAnalyticsQuery=n==""||n==null?window.location.search:window.location.search.split("&question="+n)[0],updateurl(googleAnalyticsQuery+"&question="+t.toLowerCase())):updateurl("?question="+t.toLowerCase());$(this)[0].parentElement.parentElement.style.border="1px solid #0073DC"}$(this).hasClass("collapsed")||($(this)[0].parentElement.parentElement.style.border="1px solid #d7ebff",window.location.search.includes("?utm")?updateurl(window.location.href.substring(window.location.href,window.location.href.indexOf("&question="+r().question))):updateurl(window.location.href.substring(window.location.href,window.location.href.indexOf("?"))))});$(".faq-list h4").mouseenter(function(){$(this).find(".permalink").removeClass("hide")});$(".faq-list h4").mouseleave(function(){$(this).find(".permalink").addClass("hide")});window.onpopstate=function(){var n,u;$(".permalink").addClass("hide");var f=r(),i=f.question,t=document.querySelectorAll(".question-content");if(i!="")for(n=0;n<t.length;n++)u=t[n].firstElementChild.nextElementSibling.innerText.trim().replace(/\s/g,"-").replace("?","").toLowerCase(),u==i?(t[n].classList.remove("collapsed"),t[n].setAttribute("aria-expanded",!0),t[n].parentElement.nextElementSibling.classList.add("in"),t[n].parentElement.nextElementSibling.setAttribute("aria-expanded",!0),t[n].parentElement.nextElementSibling.style.height="auto",t[n].parentElement.parentElement.style.border="1px solid #0073DC",t[n].scrollIntoView()):(t[n].classList.add("collapsed"),t[n].setAttribute("aria-expanded",!1),t[n].parentElement.nextElementSibling.classList.remove("in"),t[n].parentElement.nextElementSibling.setAttribute("aria-expanded",!1),t[n].parentElement.parentElement.style.border="1px solid #d7ebff",$("#faq")[0].scrollIntoView())}},n)})