var module_78351880789=function(){var __hs_messages={};i18n_getmessage=function(){return hs_i18n_getMessage(__hs_messages,hsVars.language,arguments)},i18n_getlanguage=function(){return hsVars.language},$(".position-right").insertBefore($(".body-wrapper")),$(document).ready((function(){$(".dark-menu a[href*=\\#]:not([href=\\#])").click((function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")||location.hostname==this.hostname){var target_=this.hash.substr(1);if($("."+target_).length)return $("html, body").animate({scrollTop:$("."+target_).offset().top-$(".global-nav-wrapper").outerHeight()},1e3),!1;$(this).blur()}}))})),$(window).load((function(){if(window.location.hash){var target_=window.location.hash.substr(1);if($("."+target_).length)return $("html, body").animate({scrollTop:$("."+target_).offset().top-$(".global-nav-wrapper").outerHeight()},1e3),!1}})),function($){$.fn.mySelectDropdown=function(options){return this.each((function(){var $this=$(this);$this.each((function(){var dropdown=$("
").addClass("f-dropdown selectDropdown");$(this).is(":disabled")&&dropdown.addClass("disabled"),$(this).wrap(dropdown);var label=$("").append($("").text($(this).attr("placeholder"))).insertAfter($(this)),list=$("");$(this).find("option").each((function(){var image=$(this).data("image"),title=$(this).text(),subtitle="";if($(this).data("subheader"))subtitle=$(this).data("subheader");image?list.append($("").append($("").attr("href",$(this).val()).html($("").append(''+title+''+subtitle+"")).prepend(''))):""!=$(this).val()&&list.append($("").append($("").attr("href",$(this).val()).html($("").append(''+title+''+subtitle+""))))})),list.insertAfter($(this)),$(this).find("option:selected").length>0&&""!=$(this).find("option:selected").val()&&(list.find('li a[data-val="'+$(this).find("option:selected").val()+'"]').parent().addClass("active"),$(this).parent().addClass("filled"),label.html(list.find("li.active a").html()))})),$(this).is(":disabled")||($(this).parent().on("click","ul li a",(function(e){var dropdown=$(this).parent().parent().parent(),active=$(this).parent().hasClass("active"),label=active?$("").text(dropdown.find("select").attr("placeholder")):$(this).html();dropdown.find("option").prop("selected",!1),dropdown.find("ul li").removeClass("active"),dropdown.toggleClass("filled",!active),dropdown.children("span").html(label),active||(dropdown.find('option[value="'+$(this).attr("data-val")+'"]').prop("selected",!0),$(this).parent().addClass("active")),dropdown.removeClass("open")})),$this.parent().on("click","> span",(function(e){$(this).parent().toggleClass("open")})),$(document).on("click touchstart",(function(e){var dropdown=$this.parent();dropdown===e.target||dropdown.has(e.target).length||dropdown.removeClass("open")})))}))}}(jQuery),$("select.f-dropdown").mySelectDropdown()}();