"use strict";function GSPB_Accordion_Toggle(e){let t=e.closest(".gs-accordion-item"),o=e.closest(".gs-accordion"),c=o.getAttribute("data-scroll");if(t.classList.contains("gsopen")){if(o.classList.contains("togglelogic")){let s=o.getElementsByClassName("gs-accordion-item");for(let r=0;r<s.length;r++){s[r].classList.replace("gsopen","gsclose");s[r].querySelector(".gs-accordion-item__title").setAttribute("aria-expanded","false");s[r].querySelector(".gs-accordion-item__content").setAttribute("aria-hidden","true")}}else t.classList.replace("gsopen","gsclose"),t.querySelector(".gs-accordion-item__title").setAttribute("aria-expanded","false"),t.querySelector(".gs-accordion-item__content").setAttribute("aria-hidden","true")}else{if(o.classList.contains("togglelogic")){let a=o.getElementsByClassName("gs-accordion-item");for(let n=0;n<a.length;n++){a[n].classList.replace("gsopen","gsclose");a[n].querySelector(".gs-accordion-item__title").setAttribute("aria-expanded","false");a[n].querySelector(".gs-accordion-item__content").setAttribute("aria-hidden","true")}}t.classList.replace("gsclose","gsopen"),t.querySelector(".gs-accordion-item__content").classList.add("stuckMoveDownOpacity"),t.querySelector(".gs-accordion-item__title").setAttribute("aria-expanded","true"),t.querySelector(".gs-accordion-item__content").setAttribute("aria-hidden","false"),c&&t.scrollIntoView({behavior:"smooth"})}}document.addEventListener("click",function(e){let t=e.target;(t.classList.contains("gs-accordion-item__title")||t.closest(".gs-accordion-item__title"))&&GSPB_Accordion_Toggle(e.target)},!1);let accordionItems=document.querySelectorAll(".gs-accordion-item__title");for(let i=0;i<accordionItems.length;i++)accordionItems[i].addEventListener("keydown",function(e){let t=void 0!==e.key?e.key:e.keyCode;("Enter"===t||13===t||["Spacebar"," "].indexOf(t)>=0||32===t)&&(e.preventDefault(),GSPB_Accordion_Toggle(accordionItems[i]))});