(()=>{"use strict";const t=function(t,e){0<t.length&&Array.prototype.slice.call(t,0).forEach((function(t,r){e(t,r)}))},e=e=>{e.addEventListener("click",(()=>{const r=e.getAttribute("aria-controls");if(!r)return;if(!document.getElementById(r))return;if("true"===e.getAttribute("aria-selected"))return!0;const a=e.parentElement.parentElement.querySelectorAll(".smb-tabs__tab");2>a.length||t(a,(t=>{t!==e&&"true"!==t.getAttribute("aria-selected")||(t=>{const e=t.getAttribute("aria-controls");if(!e)return;const r=document.getElementById(e);r&&(t.setAttribute("aria-selected","true"===t.getAttribute("aria-selected")?"false":"true"),r.setAttribute("aria-hidden","true"===r.getAttribute("aria-hidden")?"false":"true"))})(t)}))}),!1)},r=t=>{if(t?.match(/^#smb-tab-for-/)){const e=document.querySelector(`${t} .smb-tabs__tab`);e&&"false"===e.getAttribute("aria-selected")&&e.click()}},a=t=>{t.addEventListener("click",(t=>{const e=t.target.href.replace(t.target.hash,"");window.location.href.includes(e)&&(t.preventDefault(),r(t.target.hash))}),!1)};document.addEventListener("DOMContentLoaded",(()=>{const n=document.querySelectorAll(".smb-tabs__tab");t(n,e),r(window.location.hash);const c=document.querySelectorAll('a[href*="#smb-tab-for-"]');t(c,a)}),!1)})();