!function(t){"use strict";document.querySelectorAll(".vc_tta-tabs-list").forEach((function(t){t.setAttribute("role","tablist")})),document.querySelectorAll(".vc_tta-tab > a").forEach((function(t){t.setAttribute("role","tab");var a=t.closest(".vc_tta-tab").classList.contains("vc_active")?"true":"false";t.setAttribute("aria-selected",a)})),document.querySelectorAll(".vc_tta-panel-body").forEach((function(t){t.setAttribute("role","tabpanel")})),t(document).on("click.vc.tabs.data-api","[data-vc-tabs]",(function(a){var e=t(this);e.closest(".vc_tta-tabs-list").find(".vc_tta-tab > a").attr("aria-selected","false"),e.parent(".vc_tta-tab").find("> a").attr("aria-selected","true")}));var a=t(".vc_tta-container"),e=function(t,a,e,n){a.attr("tabindex",-1),t.attr("tabindex",0).focus().click()};a.each((function(){var a=t(this),n=a.find(".vc_tta-tab > a");a.find(".vc_tta-panels");n.each((function(a){var c=t(this);0==a?c.attr("tabindex",0):c.attr("tabindex",-1),c.on("keydown",(function(a){var c=t(this),r=a.keyCode||a.which,i=!!c.parent().next().is("li.vc_tta-tab")&&c.parent().next().find("a"),s=!!c.parent().prev().is("li.vc_tta-tab")&&c.parent().prev().find("a"),o=c.parent().parent().find("li.vc_tta-tab:first").find("a"),l=c.parent().parent().find("li.vc_tta-tab:last").find("a");switch(r){case 37:case 38:a.preventDefault(),a.stopPropagation(),e(s||l,n);break;case 39:case 40:a.preventDefault(),a.stopPropagation(),e(i||o,n);break;case 36:a.preventDefault(),a.stopPropagation(),e(o,n);break;case 35:a.preventDefault(),a.stopPropagation(),e(l,n);break;case 13:case 32:a.preventDefault(),a.stopPropagation()}}))}))}))}(jQuery);