!function($){"use strict";$(document).ready((function(){function isVideo(url){var regex;return/^(https?:\/\/)?((www\.)?youtube\.com|vimeo\.com|dailymotion\.com|wistia\.com|hubspot\.com|sproutvideo\.com|hippovideo\.io|brightcove\.com|spotlightr\.com|vidyard\.com)\/.+$/i.test(url)}$('div[id^="sp-wp-tabs-wrapper_"]').each((function(){var _this,tabsID=$(this).attr("id"),preloader=$("#"+tabsID).data("preloader"),activemode=$("#"+tabsID).data("activemode");preloader&&$(".sp-tab__preloader").fadeOut(),"tabs-activator-event-hover"==activemode&&$("#"+tabsID).on("mouseenter.sp.tab.data-api",'[data-sptoggle="tab"], [data-hover="tab"]',(function(e){e.preventDefault(),$(this).sp_tab("show")})),$('.sp-tab__lay-default iframe[style*="width: 0px"]').css({width:"",height:""}),$("#"+tabsID+' iframe:not(.wp-tab-iframe,.skip,[src*="omny.fm/"])').each((function(i){var iframe_url;if(isVideo($(this).attr("src"))){let max_width=$(this).attr("width")>100?"max-width:"+$(this).attr("width")+"px":"";$(this).addClass("wp-tab-iframe").wrap("
"),max_width&&$(this).parent(".wp-tab-iframe-container").wrap("
")}})),$((function(){""!=window.location.hash&&($("#"+tabsID+' .sp-tab__nav-tabs > li [for="'+window.location.hash+'"]').trigger("click"),$("#"+tabsID+".sp-tab__default-accordion .sp-tab__tab-pane"+window.location.hash+" > label").trigger("click"))}));var $tabs=$("#"+tabsID+" .sp-tab__nav-item");$("label",$tabs).on("click",(function(e){e.preventDefault(),"tabs-activator-event-hover"!==activemode&&(window.location.hash=$(this).attr("for"))}));var $tabs=$("#"+tabsID+" .sp-tab__nav-item"),$panels=$("#"+tabsID+" .sp-tab__tab-pane"),$key_control=$("#"+tabsID+" .sp-tab__nav-item, #"+tabsID+" .sp-tab__tab-pane");$tabs.on("click","label",(function(e){e.preventDefault();var id=$(this).attr("for");$tabs.find('[aria-selected="true"]').attr({"aria-selected":!1,tabindex:-1}),$(this).attr({"aria-selected":!0,tabindex:0}),$panels.filter('[aria-hidden="false"]').attr({"aria-hidden":!0,tabindex:-1}),$(id).attr({"aria-hidden":!1,tabindex:0})})),$key_control.on("keydown",(function(e){switch(e.keyCode){case 39:$tabs.find('[aria-selected="true"]').parents("li").next().children("label").click().focus();break;case 37:$tabs.find('[aria-selected="true"]').parents("li").prev().children("label").click().focus()}})),$("#"+tabsID+".sp-tab__default-accordion .sp-tab__tab-pane label[data-sptoggle]").on("click",(function(e){e.preventDefault(),window.location.hash="#"+$(this).parents(".sp-tab__tab-pane").attr("id")})),$(".wp-block .sp-tab__lay-default").addClass("sp-tab-loaded")}))}))}(jQuery);