+function(t){"use strict";function e(s,o){var r,i=t.proxy(this.process,this);this.$element=t(t(s).is("body")?window:s),this.$body=t("body"),this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",i),this.options=t.extend({},e.DEFAULTS,o),this.selector=(this.options.target||(r=t(s).attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,"")||"")+" .x-nav li > a",this.offsets=t([]),this.targets=t([]),this.activeTarget=null,this.refresh(),this.process()}e.DEFAULTS={offset:10},e.prototype.refresh=function(){var e=this.$element[0]==window?"offset":"position";this.offsets=t([]),this.targets=t([]);var s=this;this.$body.find(this.selector).map(function(){var o=t(this),r=o.data("target")||o.attr("href"),i=/^#\w/.test(r)&&t(r);return i&&i.length&&[[i[e]().top+(!t.isWindow(s.$scrollElement.get(0))&&s.$scrollElement.scrollTop()),r]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){s.offsets.push(this[0]),s.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,s=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,o=s-this.$scrollElement.height(),r=this.offsets,i=this.targets,n=this.activeTarget;if(e>=o)return n!=(t=i.last()[0])&&this.activate(t);for(t=r.length;t--;)n!=i[t]&&e>=r[t]&&(!r[t+1]||e<=r[t+1])&&this.activate(i[t])},e.prototype.activate=function(e){this.activeTarget=e,t(this.selector).parents(".current-menu-item").removeClass("current-menu-item");var s=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',o=t(s).parents("li").addClass("current-menu-item");o.parent(".dropdown-menu").length&&(o=o.closest("li.dropdown").addClass("current-menu-item")),o.trigger("activate.bs.scrollspy")};var s=t.fn.scrollspy;t.fn.scrollspy=function(s){return this.each(function(){var o=t(this),r=o.data("bs.scrollspy"),i="object"==typeof s&&s;r||o.data("bs.scrollspy",r=new e(this,i)),"string"==typeof s&&r[s]()})},t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=s,this},t(window).on("load",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);e.scrollspy(e.data())})})}(jQuery),jQuery(document).ready(function(t){var e=t("body"),s=e.outerHeight(),o=t("#wpadminbar").outerHeight(),r=t(".x-navbar-fixed-top-active .x-navbar").outerHeight();if(e.hasClass("x-one-page-navigation-active")){e.scrollspy({target:".x-nav-wrap.desktop",offset:o+r}),t(window).resize(function(){e.scrollspy("refresh")});var i=0,n=setInterval(function(){i+=1;var t=e.outerHeight();t!==s&&e.scrollspy("refresh"),10===i&&clearInterval(n)},500)}}),jQuery(function(t){t(".x-slider-container.above .x-slider-scroll-bottom").on("touchstart click",function(e){e.preventDefault(),t("html, body").animate({scrollTop:t(".x-slider-container.above").outerHeight()},850,"easeInOutExpo")}),t(".x-slider-container.below .x-slider-scroll-bottom").on("touchstart click",function(e){e.preventDefault();var s=t(".masthead").outerHeight(),o=t(".x-navbar-fixed-top-active .x-navbar").outerHeight(),r=t(".x-slider-container.above").outerHeight(),i=t(".x-slider-container.below").outerHeight(),n=s+r+i-o;t("html, body").animate({scrollTop:n},850,"easeInOutExpo")})});