"use strict";function gsInitTabs(e,t=document){for(let n=0;n<t.getElementsByClassName("gspb-tabs").length;n++){let i=t.getElementsByClassName("gspb-tabs")[n];if(i.classList.contains("tabswiper")){i.classList.add("gsswiper-container-"+n);let e="true"===i.getAttribute("data-autoplay")?{delay:1e3*parseInt(i.getAttribute("data-autoplaytime")),disableOnInteraction:!0}:!1;window["swiper"+n]=new Swiper(".gsswiper-container-"+n+" .gswipertabs",{slidesPerView:1,spaceBetween:0,grabCursor:!0,speed:700,on:{slideChange:function(e){let t=i.querySelectorAll(".t-btn");findActivetabElementAndRemoveIt(t),t[e.activeIndex].classList.add("active")}},autoplay:e})}}for(let n=0;n<t.getElementsByClassName("t-btn").length;n++)t.getElementsByClassName("t-btn")[n].addEventListener("click",function(t){let n=t.currentTarget;if(!n.classList.contains("active")){let t=n.closest(e),i=t.querySelector(".t-btn-container").querySelectorAll(".t-btn"),s=t.querySelector(".swiper-wrapper").querySelectorAll(":scope > .t-panel");findActivetabElementAndRemoveIt(i),findActivetabElementAndRemoveIt(s),n.classList.add("active"),n.setAttribute("aria-selected","true"),n.setAttribute("tabindex",0);var a=Array.prototype.slice.call(n.parentNode.children),r=a.indexOf(n),l=s[r];t.classList.contains("tabswiper")?t.querySelector(".gswipertabs").swiper.slideTo(r,500,!1):(l.classList.add("active"),l.setAttribute("tabindex",0),"true"===l.getAttribute("hidden")&&l.removeAttribute("hidden"))}}),t.getElementsByClassName("t-btn")[n].addEventListener("keydown",function(t){const n=void 0!==t.key?t.key:t.keyCode;if("Enter"===n||13===n||["Spacebar"," "].indexOf(n)>=0||32===n)t.preventDefault(),this.click();else if("ArrowLeft"===n||37===n||"ArrowRight"===n||39===n){t.preventDefault();const i=this.closest(e).querySelector(".t-btn-container").querySelectorAll(".t-btn"),s=Array.from(i).indexOf(this);let a;"ArrowLeft"===n||37===n?a=(s-1+i.length)%i.length:a=(s+1)%i.length,i[a].focus(),i[a].click()}})}function findActivetabElementAndRemoveIt(e){"use strict";Array.prototype.forEach.call(e,function(e){e.classList.remove("active"),e.classList.contains("t-panel")?e.getAttribute("hidden")||e.setAttribute("hidden","true"):(e.setAttribute("tabindex","-1"),"true"===e.getAttribute("aria-selected")&&e.setAttribute("aria-selected","false"))})}gsInitTabs(".gspb-tabs");