!function(d){"use strict";d.HSCore={init:function(){d(document).ready(function(e){d('[data-toggle="tooltip"]').tooltip(),d("[data-bg-img-src]").length&&d.HSCore.helpers.bgImage(d("[data-bg-img-src]")),d.HSCore.helpers.extendjQuery(),d.HSCore.helpers.detectIE(),d.HSCore.helpers.bootstrapNavOptions.init()}),d(window).on("load",function(e){})},components:{},helpers:{Math:{getRandomValueFromRange:function(e,t,s){var i=s||!1;return Math.random(),i?Math.random()*(t-e)+e:Math.floor(Math.random()*(t-e+1))+e}},bgImage:function(e){if(e&&e.length)return e.each(function(e,t){var s=d(t),i=s.data("bg-img-src");i&&s.css("background-image","url("+i+")")})},extendjQuery:function(){d.fn.extend({imagesLoaded:function(){var e=this.find('img[src!=""]');if(!e.length)return d.Deferred().resolve().promise();var s=[];return e.each(function(){var e=d.Deferred();s.push(e);var t=new Image;t.onload=function(){e.resolve()},t.onerror=function(){e.resolve()},t.src=this.src}),d.when.apply(d,s)}})},detectIE:function(){var e=window.navigator.userAgent;if(0h||(s=l.find(".navbar-toggler"),(i=l.find(".navbar-collapse")).data("mobile-scroll-hide")&&i.length&&(a=l.data("mobile-menu-scroll-position"),40this.config.breakpointsMap.sm&&this.observers.sm.length?(this.prevViewport=this.viewport,this.viewport="sm"):e.width()>this.config.breakpointsMap.md&&this.observers.md.length?(this.prevViewport=this.viewport,this.viewport="md"):e.width()>this.config.breakpointsMap.lg&&this.observers.lg.length?(this.prevViewport=this.viewport,this.viewport="lg"):e.width()>this.config.breakpointsMap.xl&&this.observers.xl.length?(this.prevViewport=this.viewport,this.viewport="xl"):(this.prevViewport&&(this.prevViewport=this.viewport),this.viewport="xs"),this},i.prototype.notify=function(){return this.prevViewport&&(this.observers[this.prevViewport].forEach(function(e){e.destroy()}),this.prevViewport=null),this.observers[this.viewport].forEach(function(e){e.check()}),this},i.prototype.update=function(){for(var e in this.observers)this.observers[e].forEach(function(e){e.destroy()});return this.prevViewport=null,this.observers[this.viewport].forEach(function(e){e.reinit()}),this},t.prototype.init=function(){return this.defaultState=!0,this.offset=this.element.offset().top,this},t.prototype.destroy=function(){return this.toDefaultState(),this},t.prototype.check=function(){var e=n(window).scrollTop();return e>this.offset&&this.defaultState?this.changeState():ethis.delta?this.direction="down":this.direction="up",this.delta=n(window).scrollTop(),this},a.prototype.toDefaultState=function(){switch(this.effect){case"slide":this.element.removeClass("u-header--moved-up");break;case"fade":this.element.removeClass("u-header--faded");break;default:this.element.removeClass("u-header--invisible")}return this.defaultState=!this.defaultState,this},a.prototype.changeState=function(){switch(this.effect){case"slide":this.element.addClass("u-header--moved-up");break;case"fade":this.element.addClass("u-header--faded");break;default:this.element.addClass("u-header--invisible")}return this.defaultState=!this.defaultState,this},a.prototype.check=function(){var e=n(window).scrollTop();return this.checkDirection(),e>=this.offset&&this.defaultState&&"down"==this.direction?this.changeState():this.defaultState||"up"!=this.direction||this.toDefaultState(),this},h.prototype.init=function(){return!this.defaultState&&n(window).scrollTop()>this.offset||(this.defaultState=!0,this.transitionDuration=1e3*parseFloat(getComputedStyle(this.element.get(0))["transition-duration"],10),this.offset=isFinite(this.element.data("header-fix-moment"))&&this.element.data("header-fix-moment")>this.element.outerHeight()?this.element.data("header-fix-moment"):this.element.outerHeight()+100,this.effect=this.element.data("header-fix-effect")?this.element.data("header-fix-effect"):"show-hide"),this},h.prototype.destroy=function(){return!this.defaultState&&n(window).scrollTop()>this.offset||(this.element.removeClass("u-header--untransitioned"),this._removeCap()),this},h.prototype._insertCap=function(){switch(this.element.addClass("js-header-fix-moment u-header--untransitioned"),this.element.hasClass("u-header--static")&&n("html").css("padding-top",this.element.outerHeight()),this.effect){case"fade":this.element.addClass("u-header--faded");break;case"slide":this.element.addClass("u-header--moved-up");break;default:this.element.addClass("u-header--invisible")}this.capInserted=!0},h.prototype._removeCap=function(){var e=this;this.element.removeClass("js-header-fix-moment"),this.element.hasClass("u-header--static")&&n("html").css("padding-top",0),this.removeCapTimeOutId&&clearTimeout(this.removeCapTimeOutId),this.removeCapTimeOutId=setTimeout(function(){e.element.removeClass("u-header--moved-up u-header--faded u-header--invisible")},10),this.capInserted=!1},h.prototype.check=function(){var e=n(window);e.scrollTop()>this.element.outerHeight()&&!this.capInserted?this._insertCap():e.scrollTop()<=this.element.outerHeight()&&this.capInserted&&this._removeCap(),e.scrollTop()>this.offset&&this.defaultState?this.changeState():e.scrollTop()<=this.offset&&!this.defaultState&&this.toDefaultState()},h.prototype.changeState=function(){switch(this.element.removeClass("u-header--untransitioned"),this.animationTimeoutId&&clearTimeout(this.animationTimeoutId),this.effect){case"fade":this.element.removeClass("u-header--faded");break;case"slide":this.element.removeClass("u-header--moved-up");break;default:this.element.removeClass("u-header--invisible")}this.defaultState=!this.defaultState},h.prototype.toDefaultState=function(){var e=this;switch(this.animationTimeoutId=setTimeout(function(){e.element.addClass("u-header--untransitioned")},this.transitionDuration),this.effect){case"fade":this.element.addClass("u-header--faded");break;case"slide":this.element.addClass("u-header--moved-up");break;default:this.element.addClass("u-header--invisible")}this.defaultState=!this.defaultState},l.prototype.init=function(){return this.element.hasClass("js-header-fix-moment")&&(this.hasFixedClass=!0,this.element.removeClass("js-header-fix-moment")),this.config.fixPointSelf?this.offset=this.element.offset().top:this.offset=isFinite(this.element.data("header-fix-moment"))?this.element.data("header-fix-moment"):0,this.hasFixedClass&&(this.hasFixedClass=!1,this.element.addClass("js-header-fix-moment")),this.imgs=this.element.find(".u-header__logo-img"),this.defaultState=!0,this.mainLogo=this.imgs.filter(".u-header__logo-img--main"),this.additionalLogo=this.imgs.not(".u-header__logo-img--main"),this.imgs.length,this},l.prototype.destroy=function(){return this.toDefaultState(),this},l.prototype.check=function(){var e=n(window);return this.imgs.length&&(e.scrollTop()>this.offset&&this.defaultState?this.changeState():e.scrollTop()<=this.offset&&!this.defaultState&&this.toDefaultState()),this},l.prototype.changeState=function(){return this.mainLogo.length&&this.mainLogo.removeClass("u-header__logo-img--main"),this.additionalLogo.length&&this.additionalLogo.addClass("u-header__logo-img--main"),this.defaultState=!this.defaultState,this},l.prototype.toDefaultState=function(){return this.mainLogo.length&&this.mainLogo.addClass("u-header__logo-img--main"),this.additionalLogo.length&&this.additionalLogo.removeClass("u-header__logo-img--main"),this.defaultState=!this.defaultState,this},o.prototype.init=function(){return this.offset=isFinite(this.element.data("header-fix-moment"))?this.element.data("header-fix-moment"):5,this.section=this.element.find(".u-header__section--hidden"),this.defaultState=!0,this.sectionHeight=this.section.length?this.section.outerHeight():0,this},o.prototype.destroy=function(){return this.section.length&&this.element.css({"margin-top":0}),this},o.prototype.check=function(){if(!this.section.length)return this;var e=n(window).scrollTop();return e>this.offset&&this.defaultState?this.changeState():e<=this.offset&&!this.defaultState&&this.toDefaultState(),this},o.prototype.changeState=function(){return this.element.stop().animate({"margin-top":-1*this.sectionHeight-1}),this.defaultState=!this.defaultState,this},o.prototype.toDefaultState=function(){return this.element.stop().animate({"margin-top":0}),this.defaultState=!this.defaultState,this},r.prototype.init=function(){return this.element.hasClass("js-header-fix-moment")&&(this.hasFixedClass=!0,this.element.removeClass("js-header-fix-moment")),this.config.fixPointSelf?this.offset=this.element.offset().top:this.offset=isFinite(this.element.data("header-fix-moment"))?this.element.data("header-fix-moment"):5,this.hasFixedClass&&(this.hasFixedClass=!1,this.element.addClass("js-header-fix-moment")),this.sections=this.element.find("[data-header-fix-moment-classes]"),this.defaultState=!0,this},r.prototype.destroy=function(){return this.toDefaultState(),this},r.prototype.check=function(){if(!this.sections.length)return this;var e=n(window).scrollTop();return e>this.offset&&this.defaultState?this.changeState():e<=this.offset&&!this.defaultState&&this.toDefaultState(),this},r.prototype.changeState=function(){return this.sections.each(function(e,t){var s=n(t),i=s.data("header-fix-moment-classes"),a=s.data("header-fix-moment-exclude");(i||a)&&(s.addClass(i+" js-header-change-moment"),s.removeClass(a))}),this.defaultState=!this.defaultState,this},r.prototype.toDefaultState=function(){return this.sections.each(function(e,t){var s=n(t),i=s.data("header-fix-moment-classes"),a=s.data("header-fix-moment-exclude");(i||a)&&(s.removeClass(i+" js-header-change-moment"),s.addClass(a))}),this.defaultState=!this.defaultState,this},d.prototype.init=function(){return this.offset=isFinite(this.element.data("header-fix-moment"))?this.element.data("header-fix-moment"):5,this.elements=this.element.find(".u-header--hidden-element"),this.defaultState=!0,this},d.prototype.destroy=function(){return this.toDefaultState(),this},d.prototype.check=function(){if(!this.elements.length)return this;var e=n(window).scrollTop();return e>this.offset&&this.defaultState?this.changeState():e<=this.offset&&!this.defaultState&&this.toDefaultState(),this},d.prototype.changeState=function(){return this.config.animated?this.elements.stop().slideUp():this.elements.hide(),this.defaultState=!this.defaultState,this},d.prototype.toDefaultState=function(){return this.config.animated?this.elements.stop().slideDown():this.elements.show(),this.defaultState=!this.defaultState,this},m.prototype.init=function(){return this.offset=this.element.offset().top,this.sections=this.element.find(".u-header__section"),this.defaultState=!0,this},m.prototype.destroy=function(){return this.toDefaultState(),this},m.prototype.check=function(){var e=n(window).scrollTop();return e>this.offset&&this.defaultState?this.changeState():e<=this.offset&&!this.defaultState&&this.toDefaultState(),this},m.prototype.changeState=function(){return this.element.addClass("js-header-fix-moment").addClass(this.element.data("header-fix-moment-classes")).removeClass(this.element.data("header-fix-moment-exclude")),this.sections.length&&this.sections.each(function(e,t){var s=n(t);s.addClass(s.data("header-fix-moment-classes")).removeClass(s.data("header-fix-moment-exclude"))}),this.defaultState=!this.defaultState,this},m.prototype.toDefaultState=function(){return this.element.removeClass("js-header-fix-moment").removeClass(this.element.data("header-fix-moment-classes")).addClass(this.element.data("header-fix-moment-exclude")),this.sections.length&&this.sections.each(function(e,t){var s=n(t);s.removeClass(s.data("header-fix-moment-classes")).addClass(s.data("header-fix-moment-exclude"))}),this.defaultState=!this.defaultState,this},u.prototype.check=function(){return this},u.prototype.init=function(){return this},u.prototype.destroy=function(){return this},u.prototype.changeState=function(){return this},u.prototype.toDefaultState=function(){return this}}(jQuery),function(n){"use strict";n.HSCore.helpers.HSHamburgers={init:function(i){var a;i&&n(i).length&&n(i).each(function(e,t){var s=n(this);s.closest("button").length?s.closest("button").get(0).addEventListener("click",function(e){var t=n(this).find(i);a&&clearTimeout(a),a=setTimeout(function(){t.toggleClass("is-active")},10),e.preventDefault()},!1):s.get(0).addEventListener("click",function(e){var t=n(this);a&&clearTimeout(a),a=setTimeout(function(){t.toggleClass("is-active")},10),e.preventDefault()},!1)})}}}(jQuery),function(m){"use strict";m.HSCore.components.HSGoTo={_baseConfig:{},pageCollection:m(),init:function(e,t){if(this.collection=e&&m(e).length?m(e):m(),m(e).length)return this.config=t&&m.isPlainObject(t)?m.extend({},this._baseConfig,t):this._baseConfig,this.config.itemSelector=e,this.initGoTo(),this.pageCollection},initGoTo:function(){var d=this.pageCollection;this.collection.each(function(e,t){var s=m(t),i=s.data("target"),a=s.data("type"),n=s.data("show-effect"),h=s.data("hide-effect"),l=JSON.parse(t.getAttribute("data-position")),o=m(s.data("compensation")).outerHeight(),r=s.data("offset-top");"static"==a?s.css({display:"inline-block"}):s.addClass("animated").css({display:"inline-block",position:a,opacity:0}),"fixed"!=a&&"absolute"!=a||s.css(l),s.on("click",function(e){e.preventDefault(),m("html, body").stop().animate({scrollTop:o?i?m(i).offset().top-o:0:i?m(i).offset().top:0},800)}),s.data("offset-top")||s.hasClass("js-animation-was-fired")||"static"==a||s.offset().top<=m(window).height()&&(s.show(),setTimeout(function(){s.addClass("js-animation-was-fired "+n).css({opacity:""})})),"static"!=a&&(m(window).on("scroll",function(){if(s.data("offset-top"))m(window).scrollTop()>=r&&!s.hasClass("js-animation-was-fired")?(s.show(),setTimeout(function(){s.addClass("js-animation-was-fired "+n).css({opacity:""})})):m(window).scrollTop()<=r&&s.hasClass("js-animation-was-fired")&&(s.removeClass("js-animation-was-fired "+n),setTimeout(function(){s.addClass(h).css({opacity:0})},100),setTimeout(function(){s.removeClass(h).hide()},400));else{var e=s.offset().top;s.hasClass("js-animation-was-fired")||m(window).scrollTop()>=e-m(window).height()&&(s.show(),setTimeout(function(){s.addClass("js-animation-was-fired "+n).css({opacity:""})}))}}),m(window).trigger("scroll")),d=d.add(s)})}}}(jQuery);