'use strict';var uber_supports=function(){var d=document.createElement("div"),e=["Khtml","Ms","O","Moz","Webkit"];return function(k){var l=e.length;if(k in d.style)return!0;for(k=k.replace(/^[a-z]/,function(d){return d.toUpperCase()});l--;)if(e[l]+k in d.style)return!0;return!1}}(); function uber_op(d,e,k){if(!ubermenu_data.hasOwnProperty(d))return k;d=ubermenu_data[d];if(e.hasOwnProperty("datatype"))switch(e.datatype){case "numeric":d=parseInt(d);break;case "boolean":d="on"==d||1==d||"1"==d?!0:!1}return d}(function(d,e){var k=function(d,e,k){var l;return function(){var n=this,h=arguments;l?clearTimeout(l):k&&d.apply(n,h);l=setTimeout(function(){k||d.apply(n,h);l=null},e||100)}};jQuery.fn[e]=function(d){return d?this.on("resize",k(d)):this.trigger(e)}})(jQuery,"ubersmartresize"); (function(d,e,k,l){function t(a,c){var b=this;this.element=a;this.$ubermenu=d(this.element);this.orientation=this.$ubermenu.hasClass("ubermenu-vertical")?"v":"h";this.mobileAccordion=this.$ubermenu.hasClass("ubermenu-mobile-accordion");this.modalMobile=this.$ubermenu.hasClass("ubermenu-mobile-modal");this.interactionMode=null;this.vstretch=this.$ubermenu.hasClass("ubermenu-items-vstretch");this.inverted=this.$ubermenu.hasClass("ubermenu-invert");this.settings=d.extend({},q,c);this._defaults=q;this._name= "ubermenu";this.settings.responsive=this.$ubermenu.hasClass("ubermenu-responsive")?!0:!1;this.settings.debug&&this.settings.debug_onscreen&&(d("body").append('
'),this.debug_target=d("#uber-onscreen-debug"),this.debug_target.on("click",function(){100>d(this).height()?d(this).height("50%"):d(this).height("50px")}));this.log("-- START UBERMENU DEBUG --"); this.suppress_clicks=this.events_disabled=!1;(this.touchenabled="ontouchstart"in e||0=b.settings.breakpoint&&(h.hide(),h[0].offsetHeight,h.css("display",""));b.last_width=g});this.settings.clicktest&&(this.touchEnd= "click");this.init()}var q={breakpoint:uber_op("responsive_breakpoint",{datatype:"numeric"},959),touchEvents:!0,mouseEvents:!0,retractors:!0,touchOffClose:uber_op("touch_off_close",{datatype:"boolean"},!0),submenuIndicatorCloseMobile:uber_op("submenu_indicator_close_mobile",{datatype:"boolean"},!0),moveThreshold:10,submenuAnimationDuration:500,ignoreDummies:!0,clicktest:!1,windowstest:!1,debug:!1,debug_onscreen:!1,remove_conflicts:uber_op("remove_conflicts",{datatype:"boolean"},!0),reposition_on_load:uber_op("reposition_on_load", {datatype:"boolean"},!1),accessible:uber_op("accessible",{datatype:"boolean"},!0),retractor_display_strategy:uber_op("retractor_display_strategy",{datatype:"string"},"responsive"),intent_delay:uber_op("intent_delay",{datatype:"numeric"},300),intent_interval:uber_op("intent_interval",{datatype:"numeric"},100),intent_threshold:uber_op("intent_threshold",{datatype:"numeric"},300),scrollto_offset:uber_op("scrollto_offset",{datatype:"numeric"},0),scrollto_duration:uber_op("scrollto_duration",{datatype:"numeric"}, 1E3),collapse_after_scroll:uber_op("collapse_after_scroll",{datatype:"boolean"},!0),aria_role_navigation:uber_op("aria_role_navigation",{datatype:"boolean"},!1),aria_nav_label:uber_op("aria_nav_label",{datatype:"boolean"},!1),aria_expanded:uber_op("aria_expanded",{datatype:"boolean"},!1),aria_hidden:uber_op("aria_hidden",{datatype:"boolean"},!1),aria_responsive_toggle:uber_op("aria_responsive_toggle",{datatype:"boolean"},!1),icon_tag:uber_op("icon_tag",{datatype:"string"},"i"),use_core_svgs:uber_op("use_core_svgs", {datatype:"boolean"},!1),esc_close_mobile:uber_op("esc_close_mobile",{datatype:"boolean"},!0)},p,n,h,r;t.prototype={init:function(){this.log("Initializing UberMenu");this.$ubermenu.removeClass("ubermenu-nojs");this.removeConflicts();this.initializeSubmenuToggleTouchEvents();this.initializeSubmenuToggleMouseEvents();this.initializeRetractors();this.initializeResponsiveToggle();this.initializeMobileViewClasses();this.initializeMobileModal();this.initializeTouchoffClose();this.initializeTabs();this.initializeSubmenuPositioning(); this.initializeSegmentCurrentStates();this.initializeAccessibilityOnTab();this.initializeAccessibilityStates();this.initializeImageLazyLoad()},removeConflicts:function(){this.settings.remove_conflicts&&this.$ubermenu.find(".ubermenu-item, .ubermenu-target, .ubermenu-submenu").add(this.$ubermenu).removeAttr("style").unbind().off()},initializeAccessibilityStates:function(){this.settings.aria_role_navigation&&this.$ubermenu.attr("role","navigation");this.settings.aria_nav_label&&this.$ubermenu.attr("aria-label", this.$ubermenu.find("> .ubermenu-nav").attr("data-title"));this.settings.aria_expanded&&this.$ubermenu.find(".ubermenu-item.ubermenu-has-submenu-drop > .ubermenu-target").attr("aria-expanded",!1);this.settings.aria_hidden&&this.$ubermenu.find(".ubermenu-submenu-drop").attr("aria-hidden",!0);var a=this.$ubermenu.find(".ubermenu-mobile-header, .ubermenu-mobile-footer");a.attr("aria-hidden",!this.isMobile());d(e).on("ubermenu-resize-mobile",function(){a.attr("aria-hidden",!1)});d(e).on("ubermenu-resize-desktop", function(){a.attr("aria-hidden",!0)})},initializeAccessibilityOnTab:function(){if(this.settings.accessible){var a=this;d("body").on("keydown.ubermenu",function(c){9==(c.keyCode||c.which)&&(d("body").off("keydown.ubermenu"),a.initializeAccessibility())});if(a.settings.esc_close_mobile)d(e).on("keyup",function(c){a.isMobile()&&!a.$ubermenu.hasClass("ubermenu-responsive-collapse")&&27===c.which&&a.toggleMenuCollapse()})}},initializeImageLazyLoad:function(){var a=this;d(".ubermenu-item-level-0").one("ubermenuopen", function(){d(this).find(".ubermenu-image-lazyload").each(function(){d(this).data("srcset")&&d(this).attr("srcset",d(this).data("srcset")).attr("sizes",d(this).data("sizes"));d(this).attr("src",d(this).data("src")).removeClass("ubermenu-image-lazyload")});setTimeout(function(){a.clearTabSizes();a.sizeTabs()},300)})},initializeAccessibility:function(){var a=this;a.$current_focus=!1;a.mousedown=!1;a.$ubermenu.addClass("ubermenu-accessible");a.$ubermenu.on("focus",".ubermenu-target, a, input, select, textarea", function(){if(!a.mousedown){var c=d(this);a.$current_focus=c;var b=c.parent(".ubermenu-item");b.length&&(b.is(".ubermenu-item-level-0")&&a.closeAllSubmenus(),b.is(".ubermenu-has-submenu-drop")&&setTimeout(function(){c.is(":focus")&&(b.siblings(".ubermenu-has-submenu-drop").each(function(){a.closeSubmenu(d(this),"umac",a)}),a.openSubmenu(b,"umac",a))},500),c.on("blur.ubermenu",".ubermenu-target, a, input, select, textarea",function(b){a.mousedown||(a.$current_focus=!1,d(this).off("blur.ubermenu"), setTimeout(function(){a.$current_focus||a.closeAllSubmenus()},500));a.mousedown=!1}))}a.mousedown=!1});a.$ubermenu.on("focusout",function(){setTimeout(function(){d(k.activeElement).closest(a.$ubermenu).length||a.closeAllSubmenus()},10)});a.$ubermenu.find(".ubermenu-item-level-0").on("keyup",function(c){switch(c.which){case 39:a.closeAllSubmenus();d(this).next().find(">.ubermenu-target").focus();break;case 37:a.closeAllSubmenus();jQuery(this).prev().find(">.ubermenu-target").focus();break;case 27:d(this).hasClass("ubermenu-active")&& c.stopPropagation(),a.closeAllSubmenus(),d(this).next().find(">.ubermenu-target").focus()}});a.$ubermenu.on("mousedown",function(c){a.mousedown=!0;setTimeout(function(){a.mousedown=!1},100)})},initializeSubmenuPositioning:function(){var a=this;a.positionSubmenus();d(e).ubersmartresize(function(){a.positionSubmenus()});if(this.settings.reposition_on_load)d(e).on("load",function(){a.positionSubmenus()});"ResizeObserver"in e&&(new ResizeObserver(function(){a.positionSubmenus()})).observe(a.$ubermenu[0])}, initializeSubmenuToggleTouchEvents:function(){if(this.settings.touchEvents){var a=this;this.$ubermenu.on(this.touchStart,".ubermenu-target:not(.shiftnav-toggle)",function(c){a.handleTouchInteraction(c,this,a)});this.$ubermenu.on("click",".ubermenu-has-submenu-drop > .ubermenu-target, .ubermenu-tab.ubermenu-item-has-children > .ubermenu-target",function(c){a.handleClicks(c,this,a)})}},initializeSubmenuToggleMouseEvents:function(a){a=a||this;if(a.settings.mouseEvents&&!a.settings.clicktest&&!a.settings.windowstest){a.log("initializeSubmenuToggleMouseEvents"); var c="hover";a.$ubermenu.hasClass("ubermenu-trigger-click")?c="click":a.$ubermenu.hasClass("ubermenu-trigger-hover_intent")&&(c="hover_intent");"click"==c?this.suppress_clicks||(this.$ubermenu.on("click.ubermenu-submenu-toggle",".ubermenu-item.ubermenu-has-submenu-drop:not([data-ubermenu-trigger]) > .ubermenu-target",function(b){a.handleMouseClick(b,this,a)}),this.$ubermenu.on("click.ubermenu-click-target",".ubermenu-item:not(.ubermenu-has-submenu-drop):not([data-ubermenu-trigger]) > .ubermenu-target", function(b){a.handleLink(b,this,a)})):"hover_intent"==c?(this.$ubermenu.on("mouseenter.mouse_intent",".ubermenu-item.ubermenu-has-submenu-drop:not([data-ubermenu-trigger])",function(b){a.handleMouseIntent(b,this,a)}),this.$ubermenu.on("click.ubermenu-click-target",".ubermenu-item:not([data-ubermenu-trigger]) > .ubermenu-target",function(b){a.handleLink(b,this,a)})):(this.$ubermenu.on("mouseenter.ubermenu-submenu-toggle",".ubermenu-item.ubermenu-has-submenu-drop:not([data-ubermenu-trigger]) > .ubermenu-target", function(b){a.handleMouseover(b,this,a)}),this.$ubermenu.on("click.ubermenu-click-target",".ubermenu-item:not([data-ubermenu-trigger]) > .ubermenu-target",function(b){a.handleLink(b,this,a)}));if(this.allow_trigger_overrides)a.$ubermenu.find(".ubermenu-item[data-ubermenu-trigger]").each(function(){var b=d(this);c=b.data("ubermenu-trigger");if("click"==c){if(!this.suppress_clicks)b.on("click.ubermenu-submenu-toggle","> .ubermenu-target",function(b){a.handleMouseClick(b,this,a)})}else if("hover_intent"== c)b.on("mouseenter.mouse_intent",function(b){a.handleMouseIntent(b,this,a)});else b.on("mouseenter.ubermenu-submenu-toggle","> .ubermenu-target",function(b){a.handleMouseover(b,this,a)})});else a.$ubermenu.find(".ubermenu-tab").on("click.ubermenu-submenu-toggle",".ubermenu-target",function(b){a.handleMouseClick(b,this,a)})}},disableSubmenuToggleMouseEvents:function(){this.log("disableSubmenuToggleMouseEvents");this.events_disabled=!0},reenableSubmenuToggleMouseEvents:function(a){a=a||this;a.log("reenableSubmenuToggleMouseEvents"); a.events_disabled=!1},initializeRetractors:function(){if(this.settings.retractors){var a=this;this.$ubermenu.on("click",".ubermenu-retractor",function(b){a.handleSubmenuRetractorEnd(b,this,a)});if(this.settings.touchEvents)this.$ubermenu.on(this.touchStart,".ubermenu-retractor",function(b){a.handleSubmenuRetractorStart(b,this,a)});this.touchenabled||"touch"!=a.settings.retractor_display_strategy||(this.$ubermenu.find(".ubermenu-retractor-mobile").remove(),this.$ubermenu.find(".ubermenu-submenu-retractor-top").removeClass("ubermenu-submenu-retractor-top").removeClass("ubermenu-submenu-retractor-top-2")); if(this.settings.submenuIndicatorCloseMobile){var c=a.settings.use_core_svgs?'':"<"+a.settings.icon_tag+' class="fas fa-times">",c=this.$ubermenu.find(".ubermenu-has-submenu-drop > .ubermenu-target").append(''+c+"").find(">.ubermenu-sub-indicator-close"); c.on("click",function(b){b.preventDefault();b.stopPropagation();a.closeSubmenuInstantly(d(this).closest(".ubermenu-item"),"toggleUberMenuSubmenuClosed",a);return!1});if(this.settings.touchEvents)c.on(this.touchStart,function(b){b.preventDefault();b.stopPropagation();a.closeSubmenuInstantly(d(this).closest(".ubermenu-item"),"toggleUberMenuSubmenuClosed",a);return!1})}}},initializeResponsiveToggle:function(){var a=this,c=".ubermenu-responsive-toggle[data-ubermenu-target="+a.$ubermenu.attr("id")+"], .ubermenu-responsive-toggle[data-ubermenu-target=_any_], #"+ a.$ubermenu.attr("id")+" .ubermenu-mobile-close-button",b=d(c);a.log("initializeResponsiveToggle "+this.toggleevent);if(a.settings.aria_responsive_toggle){b.attr("aria-hidden",e.innerWidth>a.settings.breakpoint);d(e).ubersmartresize(function(){b.attr("aria-hidden",e.innerWidth>a.settings.breakpoint)});var f=b.hasClass("ubermenu-responsive-toggle-open");b.attr("aria-expanded",f)}d(k).on(this.toggleevent,c,function(b){a.handleResponsiveToggle(b,this,a)});if(/Trident.*rv[ :]*11\./.test(navigator.userAgent))b.on("keypress", function(b){13!==b.keyCode&&32!==b.keyCode||a.handleResponsiveToggle(b,this,a)})},initializeMobileViewClasses:function(){var a=this;a.toggleMobileClass();d(e).on("ubermenu-resize-mobile",function(){a.toggleMobileClass(!0)});d(e).on("ubermenu-resize-desktop",function(){a.toggleMobileClass(!1)})},initializeMobileModal:function(){var a=this;a.modalMobile&&(e.innerWidth<=a.settings.breakpoint&&a.swapModal(!0),d(e).on("ubermenu-resize-mobile",function(){a.swapModal(!0)}),d(e).on("ubermenu-resize-desktop", function(){a.swapModal(!1)}))},swapModal:function(a){a?(this.$placeholder=d(''),this.$ubermenu.after(this.$placeholder),this.$ubermenu.appendTo("body")):this.$placeholder&&(this.$placeholder.replaceWith(this.$ubermenu),this.$placeholder=!1)},initializeTouchoffClose:function(){if(this.settings.touchOffClose){var a=this;d(k).on(this.touchStart+".ubermenu_touchoff",function(c){a.handleTouchoffCloseStart(c,this,a)});d(k).on(this.touchEnd+".ubermenu_touchoff",function(c){a.handleTouchoffClose(c, this,"touch",a)});if(!this.suppress_clicks)d(k).on("mouseup.ubermenu_clickoff",function(c){a.handleTouchoffClose(c,this,"click",a)})}},initializeTabs:function(){var a=this,c=a.settings.responsive&&e.innerWidth<=a.settings.breakpoint?!0:!1;a.$tab_blocks=a.$ubermenu.find(".ubermenu-tabs");a.$tab_blocks=d(a.$tab_blocks.get().reverse());d(e).on("load",function(){a.sizeTabs()});a.windowwidth=e.innerWidth;d(e).ubersmartresize(function(){a.oldwindowwidth=a.windowwidth;a.windowwidth=e.innerWidth;a.windowwidth!= a.oldwindowwidth&&(a.clearTabSizes(a),a.sizeTabs(),a.checkActiveTabs(a))});a.$ubermenu.find(".ubermenu-item-level-0.ubermenu-has-submenu-drop").on("ubermenuopen.sizetabs",function(){d(this).off("ubermenuopen.sizetabs");a.sizeTabs()});a.$ubermenu.find(".ubermenu-tabs.ubermenu-tabs-dynamic-sizing").on("ubermenuopen","> .ubermenu-tabs-group > .ubermenu-tab",function(){a.sizeTabsDynamic(d(this).closest(".ubermenu-tabs"))});c||a.initializeActiveTab(a)},checkActiveTabs:function(a){e.innerWidth<=a.settings.breakpoint? a.$tab_blocks.find(".ubermenu-tab.ubermenu-active").removeClass("ubermenu-active"):a.initializeActiveTab(a)},initializeActiveTab:function(a){a.$tab_blocks.each(function(){var c=d(this).hasClass("ubermenu-tabs-show-default"),b=d(this).hasClass("ubermenu-tabs-show-current"),f=d(this).find("> .ubermenu-tabs-group");if(!f.find("> .ubermenu-tab.ubermenu-active").length){var g=!1;b&&(f.find(".ubermenu-current-menu-item").parentsUntil(f,".ubermenu-tab:not( .ubermenu-nocurrent )").addClass("ubermenu-current-menu-ancestor"), b=f.find("> .ubermenu-tab.ubermenu-current-menu-ancestor, > .ubermenu-tab.ubermenu-current-menu-item"),b.length&&(a.openSubmenu(b.first(),"tab current",a),g=!0));c&&!g&&0===f.find("> .ubermenu-tab.ubermenu-active").length&&a.openSubmenu(f.find("> .ubermenu-tab").first(),"tab default",a)}})},clearTabSizes:function(a){(a||this).$ubermenu.find(".ubermenu-submenu , .ubermenu-tabs , .ubermenu-tab-content-panel , .ubermenu-tabs-group").css("min-height","")},sizeTabs:function(){var a=this,c=a.settings.responsive&& e.innerWidth<=a.settings.breakpoint?!0:!1;c||(a.initializeActiveTab(a),a.$tab_blocks.each(function(){var b=!1;!d(this).hasClass("ubermenu-tab-layout-top")&&!d(this).hasClass("ubermenu-tab-layout-bottom")||c||(b=!0);d(this).data("um-stacked",b);var f=0,b=c?d(this).parentsUntil(".ubermenu").add(d(this).parents(".ubermenu")):d(this).parentsUntil(".ubermenu-item-level-0");b.addClass("ubermenu-test-dimensions");var g;d(this).find(" > .ubermenu-tabs-group > .ubermenu-tab > .ubermenu-tab-content-panel").each(function(){d(this).addClass("ubermenu-test-dimensions"); g=d(this).outerHeight();g>f&&(f=g);d(this).data("um-oh",g);d(this).removeClass("ubermenu-test-dimensions")});d(this).data("um-max-panel-height",f);d(this).hasClass("ubermenu-tabs-dynamic-sizing")?a.sizeTabsDynamic(d(this),!1):a.sizeTabsMax(d(this));b.removeClass("ubermenu-test-dimensions")}))},sizeTabsMax:function(a){var c=a.data("um-max-panel-height"),b=a.data("um-stacked"),d=a.find("> .ubermenu-tabs-group");b?a.css("min-height",c+d.outerHeight()):(d.outerHeight()>c&&(c=a.outerHeight()),d.css("min-height", c));d.find("> .ubermenu-tab > .ubermenu-tab-content-panel").css("min-height",c)},sizeTabsDynamic:function(a,c){c===l&&(c=!0);c&&(c=a.hasClass("ubermenu-tabs-dynamic-sizing-animate"));if(!(this.settings.responsive&&e.innerWidth<=this.settings.breakpoint)){var b=a.data("um-stacked"),d=a.find("> .ubermenu-tabs-group"),g=d.outerHeight();d.css("min-height","0");var h=d.find("> .ubermenu-active > .ubermenu-tab-content-panel"),m=h.data("um-oh"),m=d.outerHeight()>m?a.outerHeight():m;b?c?a.stop().animate({"min-height":m+ d.outerHeight()},300,"swing",function(){h.css("overflow","auto")}):a.css("min-height",m+d.outerHeight()):c?(d.css("min-height",g),d.stop().animate({"min-height":m},300,"swing",function(){h.css("overflow","auto")})):d.css("min-height",m)}},initializeSegmentCurrentStates:function(){this.$ubermenu.find(".ubermenu-current-menu-item").first().parents(".ubermenu-item:not( .ubermenu-nocurrent )").addClass("ubermenu-current-menu-ancestor")},disableTransitions:function(){this.transitions=!1;this.$ubermenu.removeClass("ubermenu-transition-slide").removeClass("ubermenu-transition-fade").removeClass("ubermenu-transition-shift").addClass("ubermenu-no-transitions").addClass("ubermenu-transition-none")}, toggleMobileClass:function(a){a===l&&(a=this.isMobile());a?this.$ubermenu.removeClass("ubermenu-desktop-view").addClass("ubermenu-mobile-view"):this.$ubermenu.removeClass("ubermenu-mobile-view").addClass("ubermenu-desktop-view")},handleClicks:function(a,c,b){d(c).data("ubermenu-killClick")&&(a.preventDefault(),b.log("killed click after touchend ",a))},handleTouchInteraction:function(a,c,b){a.stopPropagation();0<=a.type.indexOf("pointer")&&b.disableTransitions();c=d(c);c.parent().off("mouseleave.mouse_intent_none"); b.log("touchstart "+a.type+" "+c.text(),a);c.on(b.touchEnd,function(a){b.handleTap(a,this,b)});c.on(b.touchMove,function(a){b.preventInteractionOnScroll(a,this,b)});a.originalEvent.touches?(c.data("ubermenu-startX",a.originalEvent.touches[0].clientX),c.data("ubermenu-startY",a.originalEvent.touches[0].clientY)):a.originalEvent.clientY&&(c.offset(),c.data("ubermenu-startX",a.originalEvent.clientX),c.data("ubermenu-startY",a.originalEvent.clientY))},preventInteractionOnScroll:function(a,c,b){b.log("touchmove interaction "+ a.type,a);c=d(c);if(a.originalEvent.touches)Math.abs(a.originalEvent.touches[0].clientX-c.data("ubermenu-startX"))>b.settings.moveThreshold||Math.abs(a.originalEvent.touches[0].clientY-c.data("ubermenu-startY"))>b.settings.moveThreshold?(b.log("Preventing interaction on scroll, reset handlers (standard)"),b.resetHandlers(c,"preventScroll touches",b)):b.log("diff = "+Math.abs(a.originalEvent.touches[0].clientY-c.data("ubermenu-startY")));else if(a.originalEvent.clientY){var f=c.data(f);Math.abs(a.originalEvent.clientX- c.data("ubermenu-startX"))>b.settings.moveThreshold||Math.abs(a.originalEvent.clientY-c.data("ubermenu-startY"))>b.settings.moveThreshold?(b.log("Preventing interaction on scroll, reset handlers (standard)"),b.resetHandlers(c,"preventScroll client",b)):b.log("diff = "+a.originalEvent.clientY+" - "+c.data("ubermenu-startY")+" = "+Math.abs(a.originalEvent.clientY-c.data("ubermenu-startY")))}else b.log("no touch points found!")},handleTap:function(a,c,b){a.preventDefault();a.stopPropagation();var f= d(c);b.setInteractionMode("press");if(f.data("ubermenu-killTouch"))b.log("kill tap"),a.preventDefault(),a.stopPropagation();else{var g=f.parent();b.log("handleTap ["+f.text()+"]",a.type);f.data("ubermenu-killClick",!0);f.data("ubermenu-killHover",!0);setTimeout(function(){f.data("ubermenu-killClick",!1).data("ubermenu-killHover",!1)},1E3);b.isAccordion()||b.closeSubmenuInstantly(g.siblings(".ubermenu-active"));g.hasClass("ubermenu-has-submenu-drop")?g.hasClass("ubermenu-active")?(g.hasClass("ubermenu-tab")&& !b.isMobile()||b.closeSubmenu(g,"toggleUberMenuActive",b),b.handleLink(a,c,b,!0)):b.openSubmenu(g,"toggle",b):b.handleLink(a,c,b,!0)}f.data("ubermenu-killTouch",!1);b.resetHandlers(f,"handleTap",b)},handleLink:function(a,c,b,f){f=f||!1;b.log("handleLink");var g=d(c);if(g.is("a")){var h=g.attr("href"),m=g.data("ubermenu-scrolltarget");if(m){c=d(m).first();if(0 .ubermenu-target").data("ubermenu-killHover")||b.closeSubmenu(c,"mouse_intent_leave",b)},delayMouseLeave:function(a,c,b,d){c.data("mouse_intent_timer", clearTimeout(c.data("mouse_intent_timer")));c.data("mouse_intent_state",0);return b.apply(c,[a,c,d])},trackMouse:function(a){p=a.pageX;n=a.pageY},compare:function(a,c,b,d){c.data("mouse_intent_timer",clearTimeout(c.data("mouse_intent_timer")));if(Math.abs(h-p)+Math.abs(r-n) .ubermenu-target").text());return!1},handleResponsiveToggle:function(a,c,b){b.log("handleResponsiveToggle "+a.type,a);a.preventDefault();a.stopPropagation();if("touchend"==a.type)b.$ubermenu.data("ubermenu-prevent-click",!0),setTimeout(function(){b.$ubermenu.data("ubermenu-prevent-click",!1)},500);else if("click"== a.type&&b.$ubermenu.data("ubermenu-prevent-click")){b.$ubermenu.data("ubermenu-prevent-click",!1);return}b.toggleMenuCollapse("toggle",c,b)},handleTouchoffCloseStart:function(a,c,b){b.touchoffclosestart=d(e).scrollTop()},handleTouchoffClose:function(a,c,b,f){d(a.target).closest(".ubermenu").length||"click"!=b&&f.touchoffclosestart!=d(e).scrollTop()||(f.log("touchoff close ",a),f.closeAllSubmenus()&&(f.disableSubmenuToggleMouseEvents(),e.setTimeout(function(){f.reenableSubmenuToggleMouseEvents(f)}, f.settings.submenuAnimationDuration)))},toggleMenuCollapse:function(a,c,b){b=b||this;c=c||".ubermenu-resposive-toggle";c="object"==typeof c?d(c):d(c+'[data-ubermenu-target="'+b.$ubermenu.attr("id")+'"]');a=a||"toggle";"toggle"==a&&(a=b.$ubermenu.hasClass("ubermenu-responsive-collapse")?"open":"close");var f=d(".ubermenu-responsive-toggle[data-ubermenu-target="+b.$ubermenu.attr("id")+"]");"open"==a?(b.$ubermenu.removeClass("ubermenu-responsive-collapse").trigger("ubermenutoggledopen"),f.trigger("ubermenutoggledopen"), f.toggleClass("ubermenu-responsive-toggle-open"),b.modalMobile&&b.trapModalFocus(c),b.settings.aria_responsive_toggle&&f.attr("aria-expanded",!0)):(b.$ubermenu.addClass("ubermenu-responsive-collapse").trigger("ubermenutoggledclose"),f.trigger("ubermenutoggledclose"),f.toggleClass("ubermenu-responsive-toggle-open"),b.settings.aria_responsive_toggle&&f.attr("aria-expanded",!1));b.transitions&&!b.$ubermenu.hasClass("ubermenu-responsive-nocollapse")&&(b.$ubermenu.addClass("ubermenu-in-transition"),b.$ubermenu.on(b.transitionend+ "_toggleubermenu",function(){b.$ubermenu.removeClass("ubermenu-in-transition");b.$ubermenu.off(b.transitionend+"_toggleubermenu")}))},trapModalFocus:function(a){var c=this,b=this.$ubermenu.find('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');this.firstFocus=b.first()[0];this.lastFocus=b.last()[0];var d=this.checkModalFocusTab.bind(this);k.addEventListener("keydown",d);setTimeout(function(){c.firstFocus.focus()},100);c.$ubermenu.on("ubermenutoggledclose",function(){k.removeEventListener("keydown", d);this.lastFocus=this.firstFocus=!1;a[0].focus()})},checkModalFocusTab:function(a){if("Tab"===a.key||9===a.keyCode)a.shiftKey?k.activeElement===this.firstFocus&&(this.lastFocus.focus(),console.log("focus force to last"),a.preventDefault()):k.activeElement===this.lastFocus&&(this.firstFocus.focus(),console.log("focus force to first"),a.preventDefault())},positionSubmenus:function(){var a=this;if("h"==a.orientation){if(a.vstretch)if("static"!==a.$ubermenu.css("position")||"static"!==a.$ubermenu.find("> .ubermenu-nav").css("position")|| a.isMobile())a.inverted?a.$ubermenu.find(".ubermenu-item-level-0 > .ubermenu-submenu-drop").css({transform:"",marginTop:"",bottom:""}):a.$ubermenu.find(".ubermenu-item-level-0 > .ubermenu-submenu-drop").css({marginTop:"",top:""});else{var c="0px"!==a.$ubermenu.css(a.inverted?"border-top-width":"border-bottom-width");a.$ubermenu.find(".ubermenu-item-level-0 > .ubermenu-submenu-drop").each(function(){if(a.inverted)d(this).css({transform:"translateY(-100%)",bottom:"auto",marginTop:c?"-1px":0});else{var b= d(this).parent().outerHeight();c&&b++;d(this).css({top:"auto",marginTop:b})}})}a.$ubermenu.find(".ubermenu-submenu-drop.ubermenu-submenu-align-center").each(function(){var b=d(this).parent(".ubermenu-item"),c=d(this);if(a.$ubermenu.hasClass("ubermenu-bound"))var g=b.closest(".ubermenu , .ubermenu-submenu");else if(a.$ubermenu.hasClass("ubermenu-bound-inner"))g=b.closest(".ubermenu-nav , .ubermenu-submenu");else{var e=b.closest(".ubermenu-submenu");0===e.length?(g=a.$ubermenu.offsetParent())||(g=d("body")): g=e}var e=c.outerWidth(),h=b.outerWidth(),k=b.offset().left,b=g.width();g=g.offset().left;h=k+h/2-(g+e/2);h=0b?h=(e-b)/-2:h+e>b&&(c.css({right:0,left:"auto"}),h=!1);!1!==h&&c.css("left",h)})}},openSubmenu:function(a,c,b){b=b||this;b.log("Open Submenu "+c);a.hasClass("ubermenu-active")||(a.addClass("ubermenu-active"),b.settings.aria_expanded&&a.find(">.ubermenu-target").attr("aria-expanded","true"),b.settings.aria_hidden&&a.find(">.ubermenu-submenu").attr("aria-hidden","false"),b.transitions&& (a.addClass("ubermenu-in-transition"),a.find("> .ubermenu-submenu").on(b.transitionend+"_opensubmenu",function(){b.log("finished submenu open transition");a.removeClass("ubermenu-in-transition");d(this).off(b.transitionend+"_opensubmenu")})),a.trigger("ubermenuopen"))},closeSubmenu:function(a,c,b){b=b||this;b.log("closeSubmenu "+a.find(">a").text()+" ["+c+"]");a.hasClass("ubermenu-item-has-children")&&a.hasClass("ubermenu-active")&&(b.transitions&&a.addClass("ubermenu-in-transition"),a.each(function(){var a= d(this),c=a.find("> .ubermenu-submenu");if(b.transitions)c.on(b.transitionend+"_closesubmenu",function(){b.log("finished submenu close transition");a.removeClass("ubermenu-in-transition");c.off(b.transitionend+"_closesubmenu")})}));a.removeClass("ubermenu-active");a.trigger("ubermenuclose");b.settings.aria_expanded&&a.find(">.ubermenu-target").attr("aria-expanded","false");b.settings.aria_hidden&&a.find(">.ubermenu-submenu").attr("aria-hidden","true")},closeSubmenuInstantly:function(a){0!==a.length&& (a.addClass("ubermenu-notransition"),a.removeClass("ubermenu-active").removeClass("ubermenu-in-transition"),a[0].offsetHeight,a.removeClass("ubermenu-notransition"),a.trigger("ubermenuclose"),this.settings.aria_expanded&&a.find(">.ubermenu-target,>.ubermenu-submenu").attr("aria-expanded","false"),this.settings.aria_hidden&&a.find(">.ubermenu-submenu").attr("aria-hidden","true"))},closeAllSubmenus:function(){var a=this.$ubermenu.find(".ubermenu-item-level-0.ubermenu-active");a.length&&this.closeSubmenuInstantly(a); return a.length},resetHandlers:function(a,c,b){b.log("ResetHandlers: "+c);a.off(this.touchEnd);a.off(this.touchMove);a=a.parent();a.off("mousemove.mouse_intent");a.off("mouseleave.mouse_intent_none");a.data("mouse_intent_timer",clearTimeout(a.data("mouse_intent_timer")));a.data("mouse_intent_state",0)},isMobile:function(){return e.innerWidth<=this.settings.breakpoint},isTablet:function(){return e.innerWidth<=this.settings.breakpoint&&480=e.innerWidth||this.isTablet()&&this.$ubermenu.hasClass("ubermenu-responsive-single-column"))},setInteractionMode:function(a){this.interactionMode!==a&&(this.$ubermenu.removeClass("ubermenu-interaction-"+this.interactionMode).addClass("ubermenu-interaction-"+a),this.interactionMode=a)},log:function(a,c,b){b=b||this;b.settings.debug&&(b.settings.debug_onscreen?this.debug_target.prepend('
'+a+"
"):console.log(a,c))}};d.fn.ubermenu=function(a){var c=arguments;if(a=== l||"object"===typeof a)return this.each(function(){d.data(this,"plugin_ubermenu")||d.data(this,"plugin_ubermenu",new t(this,a))});if("string"===typeof a&&"_"!==a[0]&&"init"!==a){var b;this.each(function(){var f=d.data(this,"plugin_ubermenu");f instanceof t&&"function"===typeof f[a]&&(b=f[a].apply(f,Array.prototype.slice.call(c,1)));"destroy"===a&&d.data(this,"plugin_ubermenu",null)});return b!==l?b:this}}})(jQuery,window,document); (function(d){function e(e){if(!k){k=!0;"."==window.location.hash.substring(1,2)?(e=d("body").find(window.location.hash.substring(1)),e.length&&(window.scrollTo(0,e.offset().top-ubermenu_data.scrollto_offset),d(".ubermenu").find('.ubermenu-target[data-ubermenu-scrolltarget="'+window.location.hash.substring(1)+'"]').parent().addClass("ubermenu-current-menu-item"))):window.location.hash.length&&setTimeout(function(){try{var e=d("body").find(window.location.hash);e.length&&(window.scrollTo(0,e.offset().top- ubermenu_data.scrollto_offset),d(".ubermenu").find('.ubermenu-target[data-ubermenu-scrolltarget="'+window.location.hash+'"]').parent().addClass("ubermenu-current-menu-item"))}catch(r){}},100);d(".ubermenu-item:empty").each(function(){var e=d(this).parent();d(this).remove();0==e.find(".ubermenu-item").length&&(e.parent().removeClass("ubermenu-has-submenu-drop").removeClass("ubermenu-has-submenu-flyout").off().find(".ubermenu-target > .ubermenu-sub-indicator").remove(),e.remove())});d(".ubermenu-submenu:empty").each(function(){var e= d(this).parent("li");e.removeClass("ubermenu-has-submenu-drop");e.find(".ubermenu-sub-indicator").remove()});d("#wp-admin-bar-ubermenu_loading").remove();d(".ubermenu").ubermenu({}).trigger("ubermenuinit");d(".ubermenu-submenu .ubermenu-search-input-autofocus").closest(".ubermenu-has-submenu-drop").on("ubermenuopen",function(){var e=d(this).find(".ubermenu-submenu .ubermenu-search-input");e.length&&setTimeout(function(){e[0].focus()},250)});var l,q=window.innerWidth,p=window.innerWidth,n=ubermenu_data.hasOwnProperty("responsive_breakpoint")? parseInt(ubermenu_data.responsive_breakpoint):959;window.addEventListener("resize",function(){document.body.classList.add("um-window-resizing");clearTimeout(l);l=setTimeout(function(){document.body.classList.remove("um-window-resizing")},400);p=window.innerWidth;q<=n&&p>n?d(window).trigger("ubermenu-resize-desktop"):q>n&&p<=n&&d(window).trigger("ubermenu-resize-mobile");q=p});"undefined"!==typeof google&&"undefined"!==typeof google.maps&&"undefined"!==typeof google.maps.LatLng&&d(".ubermenu-map-canvas").each(function(){var e= d(this),k=e.attr("data-zoom")?parseInt(e.attr("data-zoom")):8,a=e.attr("data-lat")?new google.maps.LatLng(e.attr("data-lat"),e.attr("data-lng")):new google.maps.LatLng(40.7143528,-74.0059731),c=new google.maps.Map(this,{zoom:k,mapTypeId:google.maps.MapTypeId.ROADMAP,center:a});e.attr("data-address")?(new google.maps.Geocoder).geocode({address:e.attr("data-address")},function(b,d){d==google.maps.GeocoderStatus.OK&&(c.setCenter(b[0].geometry.location),a=b[0].geometry.location,new google.maps.Marker({map:c, position:b[0].geometry.location,title:e.attr("data-mapTitle")}))}):new google.maps.Marker({map:c,position:a,title:e.attr("data-mapTitle")});var b=d(this).closest(".ubermenu-has-submenu-drop"),f=function(){google.maps.event.trigger(c,"resize");c.setCenter(a);c.setZoom(k);b.off("ubermenuopen",f)};b.on("ubermenuopen",f)})}}var k=!1;jQuery(function(d){e("document.ready")});d(window).on("load",function(){e("window.load")})})(jQuery); function uberMenu_openMega(d){jQuery(".ubermenu").ubermenu("openSubmenu",jQuery(d))}function uberMenu_openFlyout(d){jQuery(".ubermenu").ubermenu("openSubmenu",jQuery(d))}function uberMenu_close(d){jQuery(".ubermenu").ubermenu("closeSubmenu",jQuery(d))}function uberMenu_redrawSubmenus(){jQuery(".ubermenu").ubermenu("positionSubmenus")};