!function(o){function a(a){if(o(".combar-sab-wrapper").hasClass("style-toggle_buttons")){let e=[];a.find(".sab-btn").each(function(){e.push(o(this).css("transition-delay"))});let t=e.reverse();a.find(".sab-btn").each(function(a){o(this).css("transition-delay",t[a])})}}o(window).on("load",function(){o(".sab-bottom-gap.js_bottom").length&&o(".sab-bottom-gap.js_bottom").appendTo("body")}),o(document).on("click","body.sab-preview a:not(#sab-trigger)",function(o){o.preventDefault()}),o(document).on("click",".sab-act-toTop",function(){window.scrollTo({top:0,behavior:"smooth"})}),o(document).on("click",".sab-act-copy",function(){let o=document.createElement("input"),a=window.location.href;document.body.appendChild(o),o.value=a,o.select(),document.execCommand ("copy"),document.body.removeChild(o)}),o(document).on("click",".combar-sab-wrapper #sab-trigger",function(e){if(e.preventDefault(),1==!o(".combar-sab-wrapper").hasClass("hover-triggered")||o(window).width()<990){o(this).parent().toggleClass("sab-show"),a(o(this).next()),1==o(this).data("hash")&&(o(".combar-sab-wrapper").hasClass("sab-show")?window.location.hash="sab-toggle":history.replaceState(null,null," "))}}),jQuery(document).on("keydown",function(e){1==!o(".combar-sab-wrapper").hasClass("hover-triggered")&&1==o(".combar-sab-wrapper #sab-trigger").data("esc")&&27==e.which&&o(".combar-sab-wrapper").hasClass("sab-show")&&(o(".combar-sab-wrapper").removeClass("sab-show"),a(),1==o(".combar-sab-wrapper #sab-trigger").data("hash")&&history.replaceState(null,null," "))}),o(document).on("mouseover",".combar-sab-wrapper.hover-triggered",function(){o(window).width()>990&&(o(this).addClass("sab-show"),a())}),o(document).on("mouseout",".combar-sab-wrapper.hover-triggered",function(){o(window).width()>990&&(o(this).removeClass("sab-show"),history.replaceState(null,null," "),a())}),window.onhashchange=function(e){let t=e.oldURL.split("#")[1];e.newURL.split("#")[1];"sab-toggle"==t&&(o(".combar-sab-wrapper").removeClass("sab-show"),history.replaceState(null,null," "),a())}}(jQuery);