(e=>{function t(e,o){var u=e.find(".premium-button-style6-bg");0!==u.length&&e.hasClass("premium-mouse-detect-yes")&&e.on("mouseenter mouseleave",".premium-button-style6",function(e){var t=o(this).offset(),n=e.pageX-t.left;u.css({top:e.pageY-t.top,left:n})})}e(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-button.default",t)})})(jQuery);
function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ownKeys(t,e){var n,a=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),a.push.apply(a,n)),a}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(n),!0).forEach(function(e){_defineProperty(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function _defineProperty(e,t,n){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}function haObserveTarget(e,n){new IntersectionObserver(function(e,t){e.forEach(function(e){e.isIntersecting&&n(e)})},2<arguments.length&&void 0!==arguments[2]?arguments[2]:{}).observe(e)}(h=>{var u=h(window);function g(a,i,o){var r;return function(){var e=this,t=arguments,n=o&&!r;clearTimeout(r),r=setTimeout(function(){r=null,o||a.apply(e,t)},i),n&&a.apply(e,t)}}function f(e,t){var e=e.find(".hajs-filter"),n=e.data("default-filter");e.length&&(e.on("click.onFilterNav","button",function(e){e.stopPropagation();e=h(this);e.addClass("ha-filter__item--active").siblings().removeClass("ha-filter__item--active"),t(e.data("filter"))}),e.find('[data-filter="'+n+'"]').click())}function p(e){var t,n,a;e.$element.on("click",e.selector,function(e){e.preventDefault()}),h.fn.magnificPopup&&(e.isEnabled?(t=h(window).width(),n=elementorFrontendConfig.breakpoints.md,a=elementorFrontendConfig.breakpoints.lg,e.$element.find(e.selector).magnificPopup({key:e.key,type:"image",image:{titleSrc:function(e){return e.el.attr("title")?e.el.attr("title"):e.el.find("img").attr("alt")}},gallery:{enabled:!0,preload:[1,2]},zoom:{enabled:!0,duration:300,easing:"ease-in-out",opener:function(e){return e.is("img")?e:e.find("img")}},disableOn:function(){return!(e.disableOnMobile&&t<n||e.disableOnTablet&&n<=t&&t<a)}})):h.magnificPopup.close())}function m(e){var t=e.find(".hajs-image-comparison"),n=t.getHappySettings();n[{on_hover:"move_slider_on_hover",on_swipe:"move_with_handle_only",on_click:"click_to_move"}[n.move_handle||"on_swipe"]]=!0,delete n.move_handle,t.imagesLoaded().done(function(){t.twentytwenty(n);var e=setTimeout(function(){u.trigger("resize.twentytwenty"),clearTimeout(e)},400)})}function y(e){u.trigger("ha:nested:change",[e])}h.fn.getHappySettings=function(){return this.data("happy-settings")},h(document).on("click",".e-n-tab-title, .e-n-accordion-item-title",function(){y(this)}),u.on("elementor/frontend/init",function(){function e(e){e.hasClass("elementor-element-edit-mode")&&e.addClass("ha-has-bg-overlay")}t=new MutationObserver(function(e){e.forEach(function(e){"attributes"!==e.type||"class"!==e.attributeName&&"aria-expanded"!==e.attributeName||y(e.target)})}),document.querySelectorAll(".e-n-tabs, .e-n-accordion").forEach(function(e){t.observe(e,{attributes:!0,subtree:!0})});var t,n=elementorModules.frontend.handlers.Base,a=n.extend({bindEvents:function(){this.removeArrows(),this.run()},removeArrows:function(){var e=this;this.elements.$container.on("init",function(){e.elements.$container.siblings().hide()})},getDefaultSettings:function(){return{autoplay:!0,arrows:!1,checkVisible:!1,container:".hajs-slick",dots:!1,infinite:!0,rows:0,slidesToShow:1,prevArrow:h("<div />").append(this.findElement(".slick-prev").clone().show()).html(),nextArrow:h("<div />").append(this.findElement(".slick-next").clone().show()).html()}},getDefaultElements:function(){return{$container:this.findElement(this.getSettings("container"))}},onElementChange:g(function(){this.elements.$container.slick("unslick"),this.run()},200),getSlickSettings:function(){var e=1==h('html[dir="rtl"]').length||h("body").hasClass("rtl");"yes"==this.getElementSettings("vertical")&&(e=!1);var t={fade:this.$element.hasClass("ha-slider")?"fade"===this.getElementSettings("slides_transition"):"fade"===this.getElementSettings("slides_transition")&&1===parseInt(this.getElementSettings("slides_to_show")),infinite:!!this.getElementSettings("loop"),autoplay:!!this.getElementSettings("autoplay"),autoplaySpeed:this.getElementSettings("autoplay_speed"),speed:this.getElementSettings("animation_speed"),centerMode:!!this.getElementSettings("center"),vertical:!!this.getElementSettings("vertical"),rtl:e};switch(this.getElementSettings("navigation")){case"arrow":t.arrows=!0;break;case"dots":t.dots=!0;break;case"both":t.arrows=!0,t.dots=!0}e=!!this.getElementSettings("slides_to_scroll");return t.slidesToShow=parseInt(this.getElementSettings("slides_to_show"))||1,t.slidesToScroll=e&&parseInt(this.getElementSettings("slides_to_show"))||1,t.responsive=[{breakpoint:elementorFrontend.config.breakpoints.lg,settings:{slidesToShow:parseInt(this.getElementSettings("slides_to_show_tablet"))||t.slidesToShow,slidesToScroll:e?parseInt(this.getElementSettings("slides_to_show_tablet"))||t.slidesToShow:1}},{breakpoint:elementorFrontend.config.breakpoints.md,settings:{slidesToShow:parseInt(this.getElementSettings("slides_to_show_mobile"))||parseInt(this.getElementSettings("slides_to_show_tablet"))||t.slidesToShow,slidesToScroll:e?parseInt(this.getElementSettings("slides_to_show_mobile"))||parseInt(this.getElementSettings("slides_to_show_tablet"))||t.slidesToShow:1}}],h.extend({},this.getSettings(),t)},run:function(){this.elements.$container.slick(this.getSlickSettings())}}),i=n.extend({onInit:function(){n.prototype.onInit.apply(this,arguments),this.run(),this.runFilter(),u.on("resize",g(this.run.bind(this),100)),u.on("ha:nested:change",g(this.run.bind(this),100))},getLayoutMode:function(){var e=this.getElementSettings("layout");return"even"===e?"masonry":e},getDefaultSettings:function(){return{itemSelector:".ha-image-grid__item",percentPosition:!0,layoutMode:this.getLayoutMode()}},getDefaultElements:function(){return{$container:this.findElement(".hajs-isotope")}},getLightBoxSettings:function(){return{key:"imagegrid",$element:this.$element,selector:".ha-js-lightbox",isEnabled:!!this.getElementSettings("enable_popup"),disableOnTablet:!!this.getElementSettings("disable_lightbox_on_tablet"),disableOnMobile:!!this.getElementSettings("disable_lightbox_on_mobile")}},runFilter:function(){var t=this,n=this.getLightBoxSettings();f(this.$element,function(e){t.elements.$container.isotope({filter:e}),"*"!==e&&(n.selector=e),p(n)})},onElementChange:function(e){-1!==["layout","image_height","columns","image_margin","enable_popup"].indexOf(e)&&this.run()},run:function(){var e=this;e.elements.$container.isotope(e.getDefaultSettings()).imagesLoaded().progress(function(){e.elements.$container.isotope("layout")}),p(e.getLightBoxSettings())}}),o=n.extend({onInit:function(){n.prototype.onInit.apply(this,arguments),this.run(),this.runFilter(),u.on("resize",g(this.run.bind(this),100)),u.on("ha:nested:change",g(this.run.bind(this),100))},getDefaultSettings:function(){var e={rowHeight:+this.getElementSettings("row_height.size")||150,lastRow:this.getElementSettings("last_row"),margins:+this.getElementSettings("margins.size"),captions:!!this.getElementSettings("show_caption")},t={};return"yes"==this.getElementSettings("max_row_height")&&(t={maxRowHeight:+this.getElementSettings("row_height.size")||150}),h.extend(e,t)},getDefaultElements:function(){return{$container:this.findElement(".hajs-justified-grid")}},getLightBoxSettings:function(){return{key:"justifiedgallery",$element:this.$element,selector:".ha-js-lightbox",isEnabled:!!this.getElementSettings("enable_popup"),disableOnTablet:!!this.getElementSettings("disable_lightbox_on_tablet"),disableOnMobile:!!this.getElementSettings("disable_lightbox_on_mobile")}},runFilter:function(){var t=this,n=this.getLightBoxSettings(),a={lastRow:this.getElementSettings("last_row")};f(t.$element,function(e){"*"!==e&&(a.lastRow="nojustify",n.selector=e),a.filter=e,t.elements.$container.justifiedGallery(a),p(n)})},onElementChange:function(e){-1!==["row_height","max_row_height","last_row","margins","show_caption","enable_popup"].indexOf(e)&&this.run()},run:function(){this.elements.$container.justifiedGallery(this.getDefaultSettings()),p(this.getLightBoxSettings())}}),r=n.extend({onInit:function(){n.prototype.onInit.apply(this,arguments),this.wrapper=this.$element.find(".ha-news-ticker-wrapper"),this.run()},onElementChange:function(e){"item_space"!==e&&"title_typography_font_size"!==e||this.run()},run:function(){var e,t,n,a,i,o,r,s;0!=this.wrapper.length&&(a=this.wrapper.innerHeight(),s=this.wrapper.innerWidth(),t=(e=this.wrapper.find(".ha-news-ticker-container")).find(".ha-news-ticker-item"),a="scroll"+(n=this.wrapper.data("scroll-direction"))+parseInt(a)+parseInt(s),i=this.wrapper.data("duration"),o="normal",r=10,s={transform:"translateX(0"+s+"px)"},"right"===n&&(o="reverse"),t.each(function(){r+=h(this).outerWidth(!0)}),e.css({width:r,display:"flex"}),h.keyframe.define([{name:a,"0%":s,"100%":{transform:"translateX(-101%)"}}]),e.playKeyframe({name:a,duration:i.toString()+"ms",timingFunction:"linear",delay:"0s",iterationCount:"infinite",direction:o,fillMode:"none",complete:function(){}}))}}),s=n.extend({onInit:function(){n.prototype.onInit.apply(this,arguments),this.wrapper=this.$element.find(".ha-post-tab"),this.run()},run:function(){var r=this.wrapper.find(".ha-post-tab-filter").find("li"),e=this.wrapper.data("event"),s=this.wrapper.data("query-args");r.on(e,g(function(e){e.preventDefault();var e=h(this),n=e.data("term"),t=e.closest(".ha-post-tab").find(".ha-post-tab-content"),a=t.find(".ha-post-tab-loading"),i=t.find(".ha-post-tab-item-wrapper"),o=!1;0===a.length&&(r.removeClass("active"),i.removeClass("active"),e.addClass("active"),i.each(function(){var e=h(this),t=e.data("term");n===t&&(e.addClass("active"),o=!0)}),!1===o)&&h.ajax({url:HappyLocalize.ajax_url,type:"POST",data:{action:"ha_post_tab_action",security:HappyLocalize.nonce,post_tab_query:s,term_id:n},beforeSend:function(){t.append('<span class="ha-post-tab-loading"><i class="eicon-spinner eicon-animation-spin"></i></span>')},success:function(e){t.find(".ha-post-tab-loading").remove(),t.append(e)},error:function(e){}})},200))}}),i=(elementorFrontend.hooks.addAction("frontend/element_ready/ha-slider.default",function(e){elementorFrontend.elementsHandler.addHandler(a,{$element:e})}),elementorFrontend.hooks.addAction("frontend/element_ready/ha-carousel.default",function(e){elementorFrontend.elementsHandler.addHandler(a,{$element:e})}),elementorFrontend.hooks.addAction("frontend/element_ready/ha-horizontal-timeline.default",function(e){elementorFrontend.elementsHandler.addHandler(a,{$element:e,autoplay:!1,container:".ha-horizontal-timeline-wrapper",navigation:"arrow",arrows:!0});e=e.find(".ha-horizontal-timeline-image");void 0!==e.data("mfp-src")&&e.magnificPopup({type:"image",gallery:{enabled:!0}})}),h("body").on("click.onWrapperLink","[data-ha-element-link]",function(){var e,t,n=h(this),a=n.data("ha-element-link"),n=n.data("id"),i=document.createElement("a");i.id="happy-addons-wrapper-link-"+n,i.href=a.url,i.target=a.is_external?"_blank":"_self",i.rel=a.nofollow?"nofollow noreferer":"",i.style.display="none",document.body.appendChild(i),(e=document.getElementById(i.id)).click(),t=setTimeout(function(){document.body.removeChild(e),clearTimeout(t)})}),h.each({"ha-image-compare.default":m,"ha-number.default":function(t){haObserveTarget(t[0],function(){var e=t.find(".ha-number-text");e.numerator(e.data("animation"))})},"ha-skills.default":function(e){haObserveTarget(e[0],function(){e.find(".ha-skill-level").each(function(){var e=h(this),t=e.find(".ha-skill-level-text"),n=e.data("level");e.animate({width:n+"%"},500),t.numerator({toValue:n+"%",duration:1300,onStep:function(){t.append("%")}})})})},"ha-fun-factor.default":function(t){haObserveTarget(t[0],function(){var e=t.find(".ha-fun-factor__content-number");e.numerator(e.data("animation"))})},"ha-bar-chart.default":function(a){haObserveTarget(a[0],function(){var e=a.find(".ha-bar-chart-container"),t=a.find("#ha-bar-chart"),n=e.data("settings");e.length&&new Chart(t,n)})},"ha-twitter-feed.default":function(o){var e=o.find(".ha-twitter-load-more"),r=o.find(".ha-tweet-items");e.on("click",function(e){e.preventDefault();var t=h(this),e=t.data("settings"),n=o.data("id"),a=t.data("total"),i=o.find(".ha-tweet-item").length;h.ajax({url:HappyLocalize.ajax_url,type:"POST",data:{action:"ha_twitter_feed_action",security:HappyLocalize.nonce,query_settings:e,widget_id:n,loaded_item:i},success:function(e){i<a?h(e).appendTo(r):(t.text("All Loaded").addClass("loaded"),setTimeout(function(){t.css({display:"none"})},800))},error:function(e){}})})},"ha-threesixty-rotation.default":function(a){var e,i=a.find(".ha-threesixty-rotation-inner"),t=i.data("selector"),n=i.data("autoplay"),o=a.find(".ha-threesixty-rotation-magnify"),r=a.find(".ha-threesixty-rotation-360img"),s=o.data("zoom"),l=a.find(".ha-threesixty-rotation-play"),d=circlr(t,{play:!0});"on"===n?((e=a.find(".ha-threesixty-rotation-autoplay")).on("click",function(e){e.preventDefault(),d.play(),r.remove()}),setTimeout(function(){e.trigger("click"),e.remove()},1e3)):l.on("click",function(e){e.preventDefault();e=h(this).find("i");e.hasClass("hm-play-button")?(e.removeClass("hm-play-button"),e.addClass("hm-stop"),d.play()):(e.removeClass("hm-stop"),e.addClass("hm-play-button"),d.stop()),r.remove()}),o.on("click",function(e){a.find("img").each(function(){-1!==h(this).attr("style").indexOf("block")&&(HappySimplaMagnify(h(this)[0],s),o.css("display","none"),r.remove())})}),h(document).on("click",function(e){var e=h(e.target),t=a.find(".ha-img-magnifier-glass"),n=o.find("i");t.length&&e[0]!==n[0]&&(t.remove(),o.removeAttr("style")),e[0]===i[0]&&r.remove()}),i.on("mouseup mousedown touchstart touchend",function(e){r.remove()})},"ha-data-table.default":function(e){var n=e.find(".ha-table__head-column-cell"),r=e.find(".ha-table__body-row");r.each(function(o,e){h(e).find(".ha-table__body-row-cell").each(function(e,t){var t=h(t),n=parseInt(t.attr("rowspan"),10);if(1<n)for(var a=o+1;a<o+n&&a<r.length;a++){var i=h(r).eq(a).children().eq(e);h('<td class="ha-table__body-row-cell test">nullval</td>').insertBefore(i)}})}),r.each(function(e,t){h(t).find(".ha-table__body-row-cell").each(function(e,t){t=h(t);-1===t.html().indexOf("nullval")?(e=n.eq(e).html(),t.prepend('<div class="ha-table__head-column-cell">'+e+"</div>")):t.remove()})})},section:e,column:e,"ha-event-calendar.default":function(b){var e=b.find(".ha-ec"),S=b.find(".ha-ec-popup-wrapper"),t=b.find(".ha-ec-popup-close"),n=e.data("initialview"),a=e.data("firstday"),i=e.data("locale"),x=e.data("show-popup"),k=e.data("allday-text"),C=e.data("time-format"),o=window["HaECjson"+b.data("id")];void 0!==o&&(new FullCalendar.Calendar(e[0],{stickyHeaderDates:!1,locale:i,headerToolbar:{left:"prev,next today",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay,listMonth"},initialView:n,firstDay:a,eventTimeFormat:{hour:"numeric",minute:"2-digit",meridiem:"short"},events:o,height:"auto",eventClick:function(e){if("yes"==x){var t=function(e){return new Date(e)},n=function(e){var t,n,a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"g:i a";return t=(e=e).getHours(),n=e.getMinutes(),(e=new Date).setHours(t),e.setMinutes(n),t={},a.includes("H")?(t.hour="2-digit",t.hour12=!1):(t.hour="numeric",t.hour12=!0,(a.includes("a")||a.includes("A"))&&(t.hour="numeric")),t.minute="2-digit",n=new Intl.DateTimeFormat("en-US",t).format(e),n=a.includes("a")?n.toLowerCase():n},a=(e.jsEvent.preventDefault(),e.view.calendar.currentData.currentDate.toString(),e.event.allDay),i=e.event.title,o=e.event.startStr,r=e.event.endStr,s=e.event.extendedProps.guest,l=e.event.extendedProps.location,d=e.event.extendedProps.description,c=e.event.url,h=e.event.extendedProps.image,u=S.find(".ha-ec-event-title"),g=S.find(".ha-ec-event-time-wrap"),f=S.find(".ha-ec-event-guest-wrap"),p=S.find(".ha-ec-event-location-wrap"),m=S.find(".ha-ec-popup-desc"),y=S.find(".ha-ec-popup-readmore-link"),v=S.find(".ha-ec-popup-image");v.css("display","none"),u.css("display","none"),g.css("display","none"),f.css("display","none"),p.css("display","none"),m.css("display","none"),y.css("display","none"),S.addClass("ha-ec-popup-ready"),h&&(v.removeAttr("style"),v.find("img").attr("src",h),v.find("img").attr("alt",i)),i&&(u.removeAttr("style"),u.text(i)),s&&(f.removeAttr("style"),f.find("span.ha-ec-event-guest").text(s)),l&&(p.removeAttr("style"),p.find("span.ha-ec-event-location").text(l)),d&&(m.removeAttr("style"),m.html(d)),!0!==a?(g.removeAttr("style"),o=Date.parse(t(o)),r=Date.parse(t(r)),h=n(t(o),C),v="Invalid Data",o<r&&(v=n(t(r),C)),g.find("span.ha-ec-event-time").text(h+" - "+v)):(g.removeAttr("style"),g.find("span.ha-ec-event-time").text(k)),c&&(y.removeAttr("style"),y.attr("href",c),"on"===e.event.extendedProps.external&&y.attr("target","_blank"),"on"===e.event.extendedProps.nofollow)&&y.attr("rel","nofollow")}else{var _,w;if(e.event.url&&e.event.extendedProps.external)return e.jsEvent.preventDefault(),u=b.data("id"),(i=document.createElement("a")).id="happy-even-calender-link-"+u,i.href=e.event.url,i.target=e.event.extendedProps.external?"_blank":"_self",i.rel=e.event.extendedProps.nofollow?"nofollow noreferer":"",i.style.display="none",document.body.appendChild(i),(_=document.getElementById(i.id)).click(),w=setTimeout(function(){document.body.removeChild(_),clearTimeout(w)}),!1}},dateClick:function(e){itemDate=e.date.toUTCString()}}).render(),b.find(".ha-ec-popup-wrapper").on("click",function(e){e.stopPropagation(),e.target!==e.currentTarget&&e.target!=t[0]&&e.target!=t.find(".eicon-editor-close")[0]||S.addClass("ha-ec-popup-removing").removeClass("ha-ec-popup-ready")}))},"ha-mailchimp.default":function(e){var n=e.find(".ha-mailchimp-form"),a=e.find(".ha-mc-response-message"),i=n.data("success-message");n.on("submit",function(e){e.preventDefault();e={action:"ha_mailchimp_ajax",security:HappyLocalize.nonce,subscriber_info:n.serialize(),list_id:n.data("list-id"),post_id:n.parent().data("post-id"),widget_id:n.parent().data("widget-id")};h.ajax({type:"post",url:HappyLocalize.ajax_url,data:e,success:function(e){n.trigger("reset"),e.status?(a.removeClass("error"),a.addClass("success"),a.text(i)):(a.addClass("error"),a.removeClass("success"),a.text(e.msg));var t=setTimeout(function(){a.removeClass("error"),a.removeClass("success"),clearTimeout(t)},5e3)},error:function(e){}})})},"ha-image-accordion.default":function(e){var n;e.hasClass("ha-image-accordion-click")&&(n=e.find(".ha-ia-item")).each(function(e,t){h(this).on("click",function(e){h(this).hasClass("active")||(n.removeClass("active"),h(this).addClass("active"))})})},"ha-content-switcher.default":function(e){var n,a,t,i,o,r,s,l=e.find(".ha-content-switcher-wrapper");"button"==l.data("design-type")?(n=l.find(".ha-cs-button"),a=l.find(".ha-cs-content-section"),n.each(function(e,t){h(this).on("click",function(e){e.preventDefault(),h(this).hasClass("active")||(n.removeClass("active"),h(this).addClass("active"),a.removeClass("active"),e=h(this).data("content-id"),l.find("#"+e).addClass("active"))})})):(e=l.find(".ha-cs-switch.ha-input-label"),t=l.find("input.ha-cs-toggle-switch"),i=l.find(".ha-cs-switch.primary"),o=l.find(".ha-cs-switch.secondary"),r=l.find(".ha-cs-content-section.primary"),s=l.find(".ha-cs-content-section.secondary"),e.on("click",function(e){(t.is(":checked")?(i.removeClass("active"),r.removeClass("active"),o.addClass("active"),s):(o.removeClass("active"),s.removeClass("active"),i.addClass("active"),r)).addClass("active")}))},"ha-member.default":function(e){var t,n=e.find(".ha-btn"),a=e.find(".ha-member-lightbox");0<a.length&&(t=a.find(".ha-member-lightbox-close"),n.on("click",function(){a.addClass("ha-member-lightbox-show")}),a.on("click",function(e){!a.hasClass("ha-member-lightbox-show")||e.target!=a[0]&&e.target!=t[0]&&e.target!=t.find("i.eicon-editor-close")[0]||a.removeClass("ha-member-lightbox-show")}))},"ha-creative-button.default":function(e){var n=e.find(".ha-creative-btn-wrap"),t=n.data("magnetic"),a=n.find("a.ha-creative-btn"),t=("yes"==t&&(n.on("mousemove",function(e){var t=e.pageX-(n.offset().left+n.outerWidth()/2),e=e.pageY-(n.offset().top+n.outerHeight()/2);a.css("transform","translate("+.3*t+"px, "+.5*e+"px)")}),n.on("mouseout",function(e){a.css("transform","translate(0px, 0px)")})),e.find(".ha-eft--expandable")),i=t.find(".text");0<t.length&&0<i.length&&(i[0].addEventListener("transitionend",function(){i[0].style.width&&(i[0].style.width="auto")}),t[0].addEventListener("mouseenter",function(e){e.currentTarget.classList.add("hover"),i[0].style.width="auto";e=i[0].offsetWidth;i[0].style.width="0",window.getComputedStyle(i[0]).transform,i[0].style.width="".concat(e,"px")}),t[0].addEventListener("mouseleave",function(e){e.currentTarget.classList.remove("hover"),i[0].style.width="".concat(i[0].offsetWidth,"px"),window.getComputedStyle(i[0]).transform,i[0].style.width=""}))},"ha-pdf-view.default":function(e){var t=e.data("id"),e=e.find(".viewer-"+t).data("pdf-settings"),t={width:e.width,height:e.height,page:e.page_number};PDFObject.embed(e.pdf_url,"#"+e.unique_id,t)},"ha-comparison-table.default":function(e){var t=e.find(".ha-comparison-table-wrapper"),n=e.find(".ha-comparison-table__head"),a=n.data("sticky-header"),i=(e.height(),t.innerHeight()),o=t.offset().top;"yes"===a&&u.scroll(function(){var e=h(this).scrollTop();o<=e?n.addClass("table-sticky"):i<e&&n.removeClass("table-sticky")})}},function(e,t){elementorFrontend.hooks.addAction("frontend/element_ready/"+e,t)}),{"ha-image-grid.default":i,"ha-justified-gallery.default":o,"ha-news-ticker.default":r,"ha-post-tab.default":s}),l=(h.each(i,function(e,t){elementorFrontend.hooks.addAction("frontend/element_ready/"+e,function(e){elementorFrontend.elementsHandler.addHandler(t,{$element:e})})}),elementorFrontend.hooks.addAction("frontend/element_ready/ha-navigation-menu.default",function(e){var a=e.find(".ha-nav-menu");function t(){jQuery(window).width()<768?(a.removeClass("ha-navigation-menu-wrapper"),a.addClass("ha-navigation-burger-menu"),a.find(".ha-submenu-indicator-wrap").on("click",function(e){e.preventDefault();e=h(this).parent("li.menu-item-has-children");e&&e.children("ul.sub-menu").slideToggle()})):(a.addClass("ha-navigation-menu-wrapper"),a.removeClass("ha-navigation-burger-menu"),a.find("ul.menu").removeAttr("style"),a.find("ul.sub-menu").removeAttr("style"))}jQuery(window).width()<1025&&767<jQuery(window).width()&&a.find(".ha-submenu-indicator-wrap").on("click",function(e){e.preventDefault();e=h(this).parent("li.menu-item-has-children");e&&e.children("ul.sub-menu").slideToggle()}),a.find(".ha-menu-toggler").on("click",function(e){var t=h(this).data("humberger"),n=a.find("ul.menu");"open"==t?(h(".ha-menu-open-icon").addClass("hide-icon"),h(".ha-menu-close-icon").removeClass("hide-icon"),h(".ha-menu-close-icon").addClass("show-icon"),n.slideDown()):(h(".ha-menu-close-icon").addClass("hide-icon"),h(".ha-menu-open-icon").removeClass("hide-icon"),h(".ha-menu-open-icon").addClass("show-icon"),n.slideUp())}),t(),u.on("resize",g(t,100))}),elementorFrontend.hooks.addAction("frontend/element_ready/ha-age-gate.default",function(e,t){var n,a,i,o,r,s;elementorFrontend.isEditMode()?(localStorage.removeItem("ha-age-gate-expire-time"),e.find(".ha-age-gate-wrapper").length&&"no"==e.find(".ha-age-gate-wrapper").data("editor_mood")&&e.find(".ha-age-gate-wrapper").hide()):elementorFrontend.isEditMode()||(a=(n=e.find(".ha-age-gate-wrapper")).data("age_gate_cookies_time"),i=localStorage.getItem("ha-age-gate-expire-time"),n.closest("body").css("overflow","hidden"),o=new Date,(r=new Date).setDate(o.getDate()+a),t("body,html,document").scrollTop(e.offset().top),s=setTimeout(function(){t("body,html,document").scrollTop(t("body").offset().top),clearTimeout(s)},1e3),""!=i&&null!=i&&new Date(o)<=new Date(i)?(t(".ha-age-gate-wrapper").hide(),n.closest("body").css("overflow","")):(""!=i&&null!=i&&new Date(o)>new Date(i)&&localStorage.removeItem("ha-age-gate-expire-time"),t(".ha-age-gate-wrapper").show()),e.find(".ha-age-gate-wrapper.ha-age-gate-confirm-age").length&&t(".ha-age-gate-confirm-age-btn").on("click",function(){localStorage.setItem("ha-age-gate-expire-time",r),t(this).closest(".ha-age-gate-wrapper").hide(),t(this).closest("body").css("overflow","")}),e.find(".ha-age-gate-wrapper.ha-age-gate-confirm-dob").length&&t(".ha-age-gate-confirm-dob-btn").on("click",function(){var e=new Date(Date.parse(t(this).closest(".ha-age-gate-form-body").find(".ha-age-gate-date-input").val())).getFullYear();o.getFullYear()-e<t(this).closest(".ha-age-gate-wrapper").data("userbirth")?t(this).closest(".ha-age-gate-boxes").find(".ha-age-gate-warning-msg").show():(localStorage.setItem("ha-age-gate-expire-time",r),t(this).closest(".ha-age-gate-wrapper").hide(),t(this).closest("body").css("overflow",""))}),e.find(".ha-age-gate-wrapper.ha-age-gate-confirm-by-boolean").length&&(t(".ha-age-gate-wrapper .ha-age-gate-confirm-yes-btn").on("click",function(){localStorage.setItem("ha-age-gate-expire-time",r),t(this).closest(".ha-age-gate-wrapper").hide(),t(this).closest("body").css("overflow","")}),t(".ha-age-gate-wrapper .ha-age-gate-confirm-no-btn").on("click",function(){t(this).closest(".ha-age-gate-boxes").find(".ha-age-gate-warning-msg").show()})))}),n.extend({onInit:function(){n.prototype.onInit.apply(this,arguments),this.run()},onElementChange:g(function(e){-1!==["width","title_typography_typography","title_typography_font_size","title_typography_line_height","title_typography_font_weight","sub_title_typography_typography","sub_title_typography_font_size","sub_title_typography_line_height","sub_title_typography_font_weight"].indexOf(e)&&this.run()},300),run:function(){var a,e,t,n,i,o,r=this,s=JSON.parse(r.$element.find(".ha-lhi-image-area").attr("data-settings")),l=r.$element.find(".ha-lhi-image"),d=r.$element.find(".ha-lhi-title h2"),c=r.$element.find(".ha-lhi-title p"),h=r.$element.find("canvas"),u=s.hover_style,g=s.plugin_url+"liquid-hover-image/"+s.hover_effect;"custom"==s.hover_effect&&(g=s.custom_effect||""),h&&h.remove(),new hoverEffect({parent:l[0],intensity:s.intensity,image1:s.first_image,image2:s.second_image,displacementImage:g,imagesRatio:l.height()/l.width(),angle1:(s.angle-45)*(Math.PI/180)*-1,angle2:(s.angle-45)*(Math.PI/180)*-1,speedIn:s.speed,speedOut:s.speed});"style-1"==u&&(d.length||c.length)&&(a=s.style_1_direction,d.length&&(d[0].innerHTML=d[0].textContent.replace(/\S/g,"<span class='letter'>$&</span>")),c.length&&c.addClass("letter"),e=[0,0],t=[0,0],n=[0,0],i=[0,0],"left"==a?(e=[80,0],t=[0,-80]):"right"==a?(e=[0,80],t=[80,200]):"up"==a?(n=[80,0],i=[0,-80]):"down"==a&&(n=[-80,0],i=[0,80]),r.$element.hover(function(){anime.timeline({loop:!1}).add({targets:".elementor-element-"+r.getID()+" .ha-lhi-title .letter",translateX:e,translateY:n,translateZ:0,opacity:[0,1],easing:"easeOutExpo",duration:800,delay:function(e,t){return 40*t}})},function(){anime.timeline({loop:!1}).add({targets:".elementor-element-"+r.getID()+" .ha-lhi-title .letter",translateX:t,translateY:i,opacity:[1,0],duration:850,delay:function(e,t,n){return t=t,n=n,"right"==a?40*(n-t):40*t}})})),"style-2"==u&&(d.length||c.length)&&(d.length&&(o=d.find(".normal").outerHeight(),d.height(o)),c.length&&(o=c.find(".normal").outerHeight(),c.height(o)),r.$element.hover(function(){d.addClass("play"),c.addClass("play")},function(){d.removeClass("play"),c.removeClass("play")})),"style-5"==u&&(d.length||c.length)&&d.length&&(o=d.find(".normal").outerHeight(),d.attr("style","--ha-lhi-style-5-height:"+o+"px"))}})),d=(elementorFrontend.hooks.addAction("frontend/element_ready/ha-liquid-hover-image.default",function(e){elementorFrontend.elementsHandler.addHandler(l,{$element:e})}),n.extend({onInit:function(){n.prototype.onInit.apply(this,arguments),this.run()},onElementChange:g(function(e){-1!==["text_scroll_type"].indexOf(e)&&this.run()},300),getReadySettings:function(){var e={},t=this.getElementSettings("text_scroll_type");return t&&(e.scroll_type=t),h.extend({},this.getSettings(),e)},run:function(){var e=this.getReadySettings(),t=this.$element,n=t.find(".ha-split-lines")[0],a=[],i=e.scroll_type;"undefined"==typeof gsap||"undefined"==typeof ScrollTrigger||(gsap.registerPlugin(ScrollTrigger),n.length<=0)||("horizontal_line_mask"===i||"vertical_line_mask"===i?(h(n).each(function(e){var t=h(this);a[e]=new SplitType(t,{types:"lines, words"})}),h(n).find(".line").each(function(e){h(this).append("<div class='ha-line-mask'></div>")})):"horizontal_line_highlight"===i?h(n).each(function(e){var t=h(this);a[e]=new SplitType(t,{types:"words, chars"})}):new SplitType(n,{types:"lines, words"}),"horizontal_line_mask"===i||"vertical_line_mask"===i?t.find(".line").each(function(e,t){var n,a=h(t).find(".ha-line-mask");a.length<=0||(h(t).addClass("mask-active"),n="horizontal_line_mask"===i?{width:"0%"}:{height:"0%"},gsap.timeline({scrollTrigger:_objectSpread({trigger:t},{start:"horizontal_line_mask"===i?"bottom 50%":"bottom center",end:"bottom center",scrub:3})}).to(a,_objectSpread(_objectSpread({},n),{},{duration:1})))}):"horizontal_line_highlight"===i?(e=t.find(".word .char"),n=t.find(".ha-split-lines"),0<=e.length&&0<=n.length&&gsap.to(e,{scrollTrigger:{trigger:n,start:"top 40%",end:"bottom center",scrub:1},opacity:1,duration:2,stagger:1})):t.find(".line").each(function(){var e=this;gsap.to(this,{scrollTrigger:{trigger:this,start:"top 50%",end:"bottom 50%",onEnter:function(){h(e).addClass("highlight")},onLeaveBack:function(){h(e).removeClass("highlight")}}})}))}})),c=(elementorFrontend.hooks.addAction("frontend/element_ready/ha-text-scroll.default",function(e){elementorFrontend.elementsHandler.addHandler(d,{$element:e})}),n.extend({onInit:function(){n.prototype.onInit.apply(this,arguments),this.run()},bindEvents:function(){ScrollTrigger.config({limitCallbacks:!0,ignoreMobileResize:!0})},run:function(){gsap.registerPlugin(ScrollTrigger);var e,t,n,a,i,o,r,s,l,d,c=this.$element;c.find("title").remove(),c.hasClass("ha-svg-animated-yes")&&(e=c.data("id"),n=(t=this.getElementSettings()).scroll_action,o=null,a=parseFloat(t.repeat_delay)||.5,i=new TimelineMax({repeat:0,yoyo:!1,repeatDelay:.5}),"automatic"===n?(o="custom"!==t.animate_trigger?t.animate_trigger:t.animate_offset.size+"%",d=t.anim_rev?"pause play reverse":"none",i.repeat(t.loop?-1:0).yoyo(t.yoyo).repeatDelay(t.loop?a:0),ScrollTrigger.create({trigger:".elementor-element-"+e,toggleActions:"play "+d,start:"top "+o,animation:i})):(i.repeat("hover"===n&&t.loop?-1:0).yoyo("hover"===n&&t.yoyo).repeatDelay("hover"===n&&t.loop?a:0),"viewport"===n&&(o=t.animate_offset.size/100)),r=c.hasClass("ha-svg-animation-rev-yes")?"to":"from",d=c.find("path, circle, rect, square, ellipse, polyline, polygon, line"),s=0,l=("from"==r?t.animate_start_point:t.animate_end_point).size,d.each(function(e,t){t=h(t);t.attr("fill","transparent"),c.hasClass("ha-svg-sync-together-yes")&&(e=0),s=e,"from"==r?i.from(t,1,{PaSvgDrawer:(l||0)+"% 0"},e):i.to(t,1,{PaSvgDrawer:(l||0)+"% 0"},e)}),"yes"===t.svg_fill&&(0==s&&(s=1),i.to(d,1,{fill:t.svg_color,stroke:t.svg_stroke},s)),"viewport"===n?(d=new ScrollMagic.Controller,new ScrollMagic.Scene({triggerElement:".elementor-element-"+e,triggerHook:o,duration:t.draw_speed?1e3*t.draw_speed.size:"150%"}).setTween(i).addTo(d)):(t.frames&&(i.duration(t.frames),i.repeatDelay(a)),"hover"===n&&(i.pause(),c.find("svg").hover(function(){i.play()},function(){i.pause()}))))}}));elementorFrontend.hooks.addAction("frontend/element_ready/ha-svg-draw.default",function(e){elementorFrontend.elementsHandler.addHandler(c,{$element:e})})})})(jQuery);
!function(){class e{constructor(){this.initSettings(),this.initElements(),this.bindEvents()}initSettings(){this.settings={selectors:{menuToggle:".site-header .site-navigation-toggle",menuToggleHolder:".site-header .site-navigation-toggle-holder",dropdownMenu:".site-header .site-navigation-dropdown"}}}initElements(){this.elements={window:window,menuToggle:document.querySelector(this.settings.selectors.menuToggle),menuToggleHolder:document.querySelector(this.settings.selectors.menuToggleHolder),dropdownMenu:document.querySelector(this.settings.selectors.dropdownMenu)}}bindEvents(){this.elements.menuToggleHolder&&!this.elements.menuToggleHolder?.classList.contains("hide")&&(this.elements.menuToggle.addEventListener("click",()=>this.handleMenuToggle()),this.elements.dropdownMenu.querySelectorAll(".menu-item-has-children > a").forEach(e=>e.addEventListener("click",e=>this.handleMenuChildren(e))))}closeMenuItems(){this.elements.menuToggleHolder.classList.remove("elementor-active"),this.elements.window.removeEventListener("resize",()=>this.closeMenuItems())}handleMenuToggle(){const e=!this.elements.menuToggleHolder.classList.contains("elementor-active");this.elements.menuToggle.setAttribute("aria-expanded",e),this.elements.dropdownMenu.setAttribute("aria-hidden",!e),this.elements.dropdownMenu.inert=!e,this.elements.menuToggleHolder.classList.toggle("elementor-active",e),this.elements.dropdownMenu.querySelectorAll(".elementor-active").forEach(e=>e.classList.remove("elementor-active")),e?this.elements.window.addEventListener("resize",()=>this.closeMenuItems()):this.elements.window.removeEventListener("resize",()=>this.closeMenuItems())}handleMenuChildren(e){const t=e.currentTarget.parentElement;t?.classList&&t.classList.toggle("elementor-active")}}document.addEventListener("DOMContentLoaded",()=>{new e})}();
(function($){
var WidgethfeSearchButton=function($scope, $){
if('undefined'==typeof $scope)
return;
var $input=$scope.find("input.hfe-search-form__input");
var $clear=$scope.find("button#clear");
var $clear_with_button=$scope.find("button#clear-with-button");
var $search_button=$scope.find(".hfe-search-submit");
var $toggle_search=$scope.find(".hfe-search-icon-toggle input");
$scope.find('.hfe-search-icon-toggle').on('click', function(){
$scope.find(".hfe-search-form__input").trigger('focus');
});
$scope.find(".hfe-search-form__input").on('focus', function(){
$scope.find(".hfe-search-button-wrapper").addClass("hfe-input-focus");
});
$scope.find(".hfe-search-form__input").blur(function(){
$scope.find(".hfe-search-button-wrapper").removeClass("hfe-input-focus");
});
$search_button.on('touchstart click', function(){
$input.submit();
});
$toggle_search.css('padding-right', $toggle_search.next().outerWidth() + 'px');
$input.on('keyup', function(){
$clear.style=(this.value.length) ? $clear.css('visibility','visible'): $clear.css('visibility','hidden');
$clear_with_button.style=(this.value.length) ? $clear_with_button.css('visibility','visible'): $clear_with_button.css('visibility','hidden');
$clear_with_button.css('right', $search_button.outerWidth() + 'px');
});
$clear.on("click",function(){
this.style=$clear.css('visibility','hidden');
$input.value="";
});
$clear_with_button.on("click",function(){
this.style=$clear_with_button.css('visibility','hidden');
$input.value="";
});
};
var WidgethfeNavMenuHandler=function($scope, $){
if('undefined'==typeof $scope)
return;
var id=$scope.data('id');
var wrapper=$scope.find('.elementor-widget-hfe-nav-menu ');
var layout=$('.elementor-element-' + id + ' .hfe-nav-menu').data('layout');
var flyout_data=$('.elementor-element-' + id + ' .hfe-flyout-wrapper').data('flyout-class');
var last_item=$('.elementor-element-' + id + ' .hfe-nav-menu').data('last-item');
var last_item_flyout=$('.elementor-element-' + id + ' .hfe-flyout-wrapper').data('last-item');
var menu_items_links=$('.elementor-element-' + id + ' .hfe-nav-menu nav li a');
var menu_items_links_flyout=$('.elementor-element-' + id + ' .hfe-flyout-wrapper li a');
if(menu_items_links.length > 0){
_handle_current_menu_item_class(menu_items_links);
}
if(menu_items_links_flyout.length > 0){
_handle_current_menu_item_class(menu_items_links_flyout);
}
$('div.hfe-has-submenu-container').removeClass('sub-menu-active');
_toggleClick(id);
_handlePolylangSwitcher($scope);
_handleSinglePageMenu(id, layout);
if('horizontal'!==layout){
_eventClick(id);
}else if('horizontal'===layout&&window.matchMedia("(max-width: 767px)").matches){
_eventClick(id);
}else if('horizontal'===layout&&window.matchMedia("(max-width: 1024px)").matches){
_eventClick(id);
}
$('.elementor-element-' + id + ' .hfe-flyout-trigger .hfe-nav-menu-icon').off('click keyup').on('click keyup', function(){
_openMenu(id);
});
$('.elementor-element-' + id + ' .hfe-flyout-close').off('click keyup').on('click keyup', function(){
_closeMenu(id);
});
$('.elementor-element-' + id + ' .hfe-flyout-overlay').off('click').on('click', function(){
_closeMenu(id);
});
$scope.find('.sub-menu').each(function(){
var parent=$(this).closest('.menu-item');
$scope.find(parent).addClass('parent-has-child');
$scope.find(parent).removeClass('parent-has-no-child');
});
if(( 'cta'==last_item||'cta'==last_item_flyout)&&'expandible'!=layout){
$('.elementor-element-' + id + ' li.menu-item:last-child a.hfe-menu-item').parent().addClass('hfe-button-wrapper elementor-widget-button');
$('.elementor-element-' + id + ' li.menu-item:last-child a.hfe-menu-item').addClass('elementor-button');
}
_borderClass(id);
$(window).on('resize', function(){
if('horizontal'!==layout){
_eventClick(id);
}else if('horizontal'===layout&&window.matchMedia("(max-width: 767px)").matches){
_eventClick(id);
}else if('horizontal'===layout&&window.matchMedia("(max-width: 1024px)").matches){
_eventClick(id);
}
if('horizontal'==layout&&window.matchMedia("(min-width: 977px)").matches){
$('.elementor-element-' + id + ' div.hfe-has-submenu-container').next().css('position', 'absolute');
}
if('expandible'==layout||'flyout'==layout){
_toggleClick(id);
}else if('vertical'==layout||'horizontal'==layout){
if(window.matchMedia("(max-width: 767px)").matches&&($('.elementor-element-' + id).hasClass('hfe-nav-menu__breakpoint-tablet')||$('.elementor-element-' + id).hasClass('hfe-nav-menu__breakpoint-mobile'))){
_toggleClick(id);
}else if(window.matchMedia("(max-width: 1024px)").matches&&$('.elementor-element-' + id).hasClass('hfe-nav-menu__breakpoint-tablet')){
_toggleClick(id);
}else{
var $toggle=$('.elementor-element-' + id + ' .hfe-nav-menu__toggle');
var $nextElement=$toggle.next();
var width=$nextElement.parent().width();
if($nextElement.length){
$nextElement.css('width', width + 'px');
$nextElement.css('left', '0');
}}
}
_borderClass(id);
});
$scope.find('.parent-has-child .hfe-has-submenu-container a').attr('aria-haspopup', 'true');
$scope.find('.parent-has-child .hfe-has-submenu-container a').attr('aria-expanded', 'false');
var hef_navmenu_toggle=$scope.find('.hfe-nav-menu__toggle');
hef_navmenu_toggle.attr('aria-haspopup', 'true');
hef_navmenu_toggle.attr('aria-expanded', 'false');
if(window.matchMedia("(max-width: 1024px)").matches&&$('.elementor-element-' + id).hasClass('hfe-nav-menu__breakpoint-tablet')){
hef_navmenu_toggle.find('i').attr('aria-hidden', 'false');
}
if(window.matchMedia("(max-width: 768px)").matches&&$('.elementor-element-' + id).hasClass('hfe-nav-menu__breakpoint-mobile')){
hef_navmenu_toggle.find('i').attr('aria-hidden', 'false');
}
$(document).trigger('hfe_nav_menu_init', id);
if('expandible'===layout){
$('.elementor-element-' + id + ' nav').on('keydown', function(e){
var $currentElement=$(document.activeElement);
var $menuItems=$(this).find('li > a:visible');
var currentIndex=$menuItems.index($currentElement);
switch(e.key){
case 'Escape':
$('.elementor-element-' + id + ' .hfe-nav-menu__toggle').trigger('click');
$('.elementor-element-' + id + ' .hfe-nav-menu__toggle').focus();
e.preventDefault();
break;
case 'ArrowDown':
if(currentIndex < $menuItems.length - 1){
$menuItems.eq(currentIndex + 1).focus();
}
e.preventDefault();
break;
case 'ArrowUp':
if(currentIndex > 0){
$menuItems.eq(currentIndex - 1).focus();
}
e.preventDefault();
break;
case 'Tab':
if(e.shiftKey&&currentIndex===0){
setTimeout(function(){
if(!$('.elementor-element-' + id + ' nav').find(':focus').length){
$('.elementor-element-' + id + ' .hfe-nav-menu__toggle').trigger('click');
}}, 10);
}else if(!e.shiftKey&&currentIndex===$menuItems.length - 1){
setTimeout(function(){
if(!$('.elementor-element-' + id + ' nav').find(':focus').length){
$('.elementor-element-' + id + ' .hfe-nav-menu__toggle').trigger('click');
}}, 10);
}
break;
}});
}
$('.elementor-element-' + id + ' div.hfe-has-submenu-container').on('keyup', function(e){
var $this=$(this);
if(e.key==='Enter'||e.key==='Space'){
e.preventDefault();
e.stopPropagation();
}else{
return;
}
if($this.parent().hasClass('menu-active')){
$this.parent().removeClass('menu-active');
$this.attr('aria-expanded', 'false');
$this.parent().next().find('ul').css({ 'visibility': 'hidden', 'opacity': '0', 'height': '0' });
$this.parent().prev().find('ul').css({ 'visibility': 'hidden', 'opacity': '0', 'height': '0' });
$this.parent().next().find('div.hfe-has-submenu-container').removeClass('sub-menu-active');
$this.parent().prev().find('div.hfe-has-submenu-container').removeClass('sub-menu-active');
}else{
$this.parent().next().find('ul').css({ 'visibility': 'hidden', 'opacity': '0', 'height': '0' });
$this.parent().prev().find('ul').css({ 'visibility': 'hidden', 'opacity': '0', 'height': '0' });
$this.parent().next().find('div.hfe-has-submenu-container').removeClass('sub-menu-active');
$this.parent().prev().find('div.hfe-has-submenu-container').removeClass('sub-menu-active');
$this.parent().siblings().find('.hfe-has-submenu-container a').attr('aria-expanded', 'false');
$this.parent().next().removeClass('menu-active');
$this.parent().prev().removeClass('menu-active');
event.preventDefault();
$this.parent().addClass('menu-active');
if('horizontal'!==layout){
$this.addClass('sub-menu-active');
}
$this.find('a').attr('aria-expanded', 'true');
$this.attr('aria-expanded', 'true');
$this.next().css({ 'visibility': 'visible', 'opacity': '1', 'height': 'auto' });
if('horizontal'!==layout){
$this.next().css('position', 'relative');
}else if('horizontal'===layout&&window.matchMedia("(max-width: 767px)").matches&&($('.elementor-element-' + id).hasClass('hfe-nav-menu__breakpoint-tablet')||$('.elementor-element-' + id).hasClass('hfe-nav-menu__breakpoint-mobile'))){
$this.next().css('position', 'relative');
}else if('horizontal'===layout&&window.matchMedia("(max-width: 1024px)").matches){
if($('.elementor-element-' + id).hasClass('hfe-nav-menu__breakpoint-tablet')){
$this.next().css('position', 'relative');
}else if($('.elementor-element-' + id).hasClass('hfe-nav-menu__breakpoint-mobile')||$('.elementor-element-' + id).hasClass('hfe-nav-menu__breakpoint-none')){
$this.next().css('position', 'absolute');
}}
}});
$('.elementor-element-' + id + ' li.menu-item').on('keyup', function(e){
var $this=$(this);
$this.next().find('a').attr('aria-expanded', 'false');
$this.prev().find('a').attr('aria-expanded', 'false');
$this.next().find('ul').css({ 'visibility': 'hidden', 'opacity': '0', 'height': '0' });
$this.prev().find('ul').css({ 'visibility': 'hidden', 'opacity': '0', 'height': '0' });
$this.siblings().removeClass('menu-active');
$this.next().find('div.hfe-has-submenu-container').removeClass('sub-menu-active');
$this.prev().find('div.hfe-has-submenu-container').removeClass('sub-menu-active');
});
};
function _handle_current_menu_item_class(layout_links){
layout_links.each(function (){
var $this=$(this);
if($this.is('[href*="#"]')){
var menu_item_parent=$this.parent();
menu_item_parent.removeClass('current-menu-item current-menu-ancestor');
$this.click(function (){
var current_index=menu_item_parent.index(),
parent_element=$this.closest('ul');
parent_element.find('li').not(':eq(' + current_index + ')').removeClass('current-menu-item current-menu-ancestor');
menu_item_parent.addClass('current-menu-item current-menu-ancestor');
}
)
}}
);
}
function _openMenu(id){
var flyout_content=$('#hfe-flyout-content-id-' + id);
var layout=$('#hfe-flyout-content-id-' + id).data('layout');
var layout_type=$('#hfe-flyout-content-id-' + id).data('flyout-type');
var wrap_width=flyout_content.width() + 'px';
var container=$('.elementor-element-' + id + ' .hfe-flyout-container .hfe-side.hfe-flyout-' + layout);
$('.elementor-element-' + id + ' .hfe-flyout-overlay').fadeIn(100);
if('left'==layout){
$('body').css('margin-left' , '0');
container.css('left', '0');
if('push'==layout_type){
$('body').addClass('hfe-flyout-animating').css({
position: 'absolute',
width: '100%',
'margin-left':wrap_width,
'margin-right':'auto'
});
}
container.addClass('hfe-flyout-show');
}else{
$('body').css('margin-right', '0');
container.css('right', '0');
if('push'==layout_type){
$('body').addClass('hfe-flyout-animating').css({
position: 'absolute',
width: '100%',
'margin-left':'-' + wrap_width,
'margin-right':'auto',
});
}
container.addClass('hfe-flyout-show');
}}
function _closeMenu(id){
var flyout_content=$('#hfe-flyout-content-id-' + id);
var layout=$('#hfe-flyout-content-id-' + id).data('layout');
var wrap_width=flyout_content.width() + 'px';
var layout_type=$('#hfe-flyout-content-id-' + id).data('flyout-type');
var container=$('.elementor-element-' + id + ' .hfe-flyout-container .hfe-side.hfe-flyout-' + layout);
$('.elementor-element-' + id + ' .hfe-flyout-overlay').fadeOut(100);
if('left'==layout){
container.css('left', '-' + wrap_width);
if('push'==layout_type){
$('body').css({
position: '',
'margin-left':'',
'margin-right':'',
});
setTimeout(function(){
$('body').removeClass('hfe-flyout-animating').css({
width: '',
});
});
}
container.removeClass('hfe-flyout-show');
}else{
container.css('right', '-' + wrap_width);
if('push'==layout_type){
$('body').css({
position: '',
'margin-right':'',
'margin-left':'',
});
setTimeout(function(){
$('body').removeClass('hfe-flyout-animating').css({
width: '',
});
});
}
container.removeClass('hfe-flyout-show');
}}
function _eventClick(id){
var layout=$('.elementor-element-' + id + ' .hfe-nav-menu').data('layout');
$('.elementor-element-' + id + ' div.hfe-has-submenu-container').off('click').on('click', function(event){
var $this=$(this);
if($('.elementor-element-' + id).hasClass('hfe-link-redirect-child')){
if($this.hasClass('sub-menu-active')){
if(! $this.next().hasClass('sub-menu-open')){
$this.find('a').attr('aria-expanded', 'false');
if('horizontal'!==layout){
event.preventDefault();
$this.next().css('position', 'relative');
}else if('horizontal'===layout&&window.matchMedia("(max-width: 767px)").matches&&($('.elementor-element-' + id).hasClass('hfe-nav-menu__breakpoint-tablet')||$('.elementor-element-' + id).hasClass('hfe-nav-menu__breakpoint-mobile'))){
event.preventDefault();
$this.next().css('position', 'relative');
}else if('horizontal'===layout&&window.matchMedia("(max-width: 1024px)").matches&&($('.elementor-element-' + id).hasClass('hfe-nav-menu__breakpoint-tablet')||$('.elementor-element-' + id).hasClass('hfe-nav-menu__breakpoint-mobile'))){
event.preventDefault();
$this.next().css('position', 'relative');
}
$this.removeClass('sub-menu-active');
$this.nextAll('.sub-menu').removeClass('sub-menu-open');
$this.nextAll('.sub-menu').css({ 'visibility': 'hidden', 'opacity': '0', 'height': '0' });
$this.nextAll('.sub-menu').css({ 'transition': 'none'});
}else{
$this.find('a').attr('aria-expanded', 'false');
$this.removeClass('sub-menu-active');
$this.nextAll('.sub-menu').removeClass('sub-menu-open');
$this.nextAll('.sub-menu').css({ 'visibility': 'hidden', 'opacity': '0', 'height': '0' });
$this.nextAll('.sub-menu').css({ 'transition': 'none'});
if('horizontal'!==layout){
$this.next().css('position', 'relative');
}else if('horizontal'===layout&&window.matchMedia("(max-width: 767px)").matches&&($('.elementor-element-' + id).hasClass('hfe-nav-menu__breakpoint-tablet')||$('.elementor-element-' + id).hasClass('hfe-nav-menu__breakpoint-mobile'))){
$this.next().css('position', 'relative');
}else if('horizontal'===layout&&window.matchMedia("(max-width: 1024px)").matches&&($('.elementor-element-' + id).hasClass('hfe-nav-menu__breakpoint-tablet')||$('.elementor-element-' + id).hasClass('hfe-nav-menu__breakpoint-mobile'))){
$this.next().css('position', 'absolute');
}}
}else{
$this.find('a').attr('aria-expanded', 'true');
if('horizontal'!==layout){
event.preventDefault();
$this.next().css('position', 'relative');
}else if('horizontal'===layout&&window.matchMedia("(max-width: 767px)").matches&&($('.elementor-element-' + id).hasClass('hfe-nav-menu__breakpoint-tablet')||$('.elementor-element-' + id).hasClass('hfe-nav-menu__breakpoint-mobile'))){
event.preventDefault();
$this.next().css('position', 'relative');
}else if('horizontal'===layout&&window.matchMedia("(max-width: 1024px)").matches){
event.preventDefault();
if($('.elementor-element-' + id).hasClass('hfe-nav-menu__breakpoint-tablet')){
$this.next().css('position', 'relative');
}else if($('.elementor-element-' + id).hasClass('hfe-nav-menu__breakpoint-mobile')||$('.elementor-element-' + id).hasClass('hfe-nav-menu__breakpoint-none')){
$this.next().css('position', 'absolute');
}}
$this.addClass('sub-menu-active');
$this.nextAll('.sub-menu').addClass('sub-menu-open');
$this.nextAll('.sub-menu').css({ 'visibility': 'visible', 'opacity': '1', 'height': 'auto' });
$this.nextAll('.sub-menu').css({ 'transition': '0.3s ease'});
}}
});
$('.elementor-element-' + id + ' .hfe-menu-toggle').off('click keyup').on('click keyup',function(event){
var $this=$(this);
if($this.parent().parent().hasClass('menu-active')){
event.preventDefault();
$this.parent().parent().removeClass('menu-active');
$this.parent().parent().next().css({ 'visibility': 'hidden', 'opacity': '0', 'height': '0' });
if('horizontal'!==layout){
$this.parent().parent().next().css('position', 'relative');
}else if('horizontal'===layout&&window.matchMedia("(max-width: 767px)").matches&&($('.elementor-element-' + id).hasClass('hfe-nav-menu__breakpoint-tablet')||$('.elementor-element-' + id).hasClass('hfe-nav-menu__breakpoint-mobile'))){
$this.parent().parent().next().css('position', 'relative');
}else if('horizontal'===layout&&window.matchMedia("(max-width: 1024px)").matches){
if($('.elementor-element-' + id).hasClass('hfe-nav-menu__breakpoint-tablet')){
$this.parent().parent().next().css('position', 'relative');
}else if($('.elementor-element-' + id).hasClass('hfe-nav-menu__breakpoint-mobile')||$('.elementor-element-' + id).hasClass('hfe-nav-menu__breakpoint-none')){
$this.parent().parent().next().css('position', 'absolute');
}}
}else{
event.preventDefault();
$this.parent().parent().addClass('menu-active');
$this.parent().parent().next().css({ 'visibility': 'visible', 'opacity': '1', 'height': 'auto' });
if('horizontal'!==layout){
$this.parent().parent().next().css('position', 'relative');
}else if('horizontal'===layout&&window.matchMedia("(max-width: 767px)").matches&&($('.elementor-element-' + id).hasClass('hfe-nav-menu__breakpoint-tablet')||$('.elementor-element-' + id).hasClass('hfe-nav-menu__breakpoint-mobile'))){
$this.parent().parent().next().css('position', 'relative');
}else if('horizontal'===layout&&window.matchMedia("(max-width: 1024px)").matches){
if($('.elementor-element-' + id).hasClass('hfe-nav-menu__breakpoint-tablet')){
$this.parent().parent().next().css('position', 'relative');
}else if($('.elementor-element-' + id).hasClass('hfe-nav-menu__breakpoint-mobile')||$('.elementor-element-' + id).hasClass('hfe-nav-menu__breakpoint-none')){
$this.parent().parent().next().css('position', 'absolute');
}}
}});
}
function _borderClass(id){
var last_item=$('.elementor-element-' + id + ' .hfe-nav-menu').data('last-item');
var last_item_flyout=$('.elementor-element-' + id + ' .hfe-flyout-wrapper').data('last-item');
var layout=$('.elementor-element-' + id + ' .hfe-nav-menu').data('layout');
$('.elementor-element-' + id + ' nav').removeClass('hfe-dropdown');
if(window.matchMedia("(max-width: 767px)").matches){
if($('.elementor-element-' + id).hasClass('hfe-nav-menu__breakpoint-mobile')||$('.elementor-element-' + id).hasClass('hfe-nav-menu__breakpoint-tablet')){
$('.elementor-element-' + id + ' nav').addClass('hfe-dropdown');
if(( 'cta'==last_item||'cta'==last_item_flyout)&&'expandible'!=layout){
$('.elementor-element-' + id + ' li.menu-item:last-child a.hfe-menu-item').parent().removeClass('hfe-button-wrapper elementor-widget-button');
$('.elementor-element-' + id + ' li.menu-item:last-child a.hfe-menu-item').removeClass('elementor-button');
}}else{
$('.elementor-element-' + id + ' nav').removeClass('hfe-dropdown');
if(( 'cta'==last_item||'cta'==last_item_flyout)&&'expandible'!=layout){
$('.elementor-element-' + id + ' li.menu-item:last-child a.hfe-menu-item').parent().addClass('hfe-button-wrapper elementor-widget-button');
$('.elementor-element-' + id + ' li.menu-item:last-child a.hfe-menu-item').addClass('elementor-button');
}}
}else if(window.matchMedia("(max-width: 1024px)").matches){
if($('.elementor-element-' + id).hasClass('hfe-nav-menu__breakpoint-tablet')){
$('.elementor-element-' + id + ' nav').addClass('hfe-dropdown');
if(( 'cta'==last_item||'cta'==last_item_flyout)&&'expandible'!=layout){
$('.elementor-element-' + id + ' li.menu-item:last-child a.hfe-menu-item').parent().removeClass('hfe-button-wrapper elementor-widget-button');
$('.elementor-element-' + id + ' li.menu-item:last-child a.hfe-menu-item').removeClass('elementor-button');
}}else{
$('.elementor-element-' + id + ' nav').removeClass('hfe-dropdown');
if(( 'cta'==last_item||'cta'==last_item_flyout)&&'expandible'!=layout){
$('.elementor-element-' + id + ' li.menu-item:last-child a.hfe-menu-item').parent().addClass('hfe-button-wrapper elementor-widget-button');
$('.elementor-element-' + id + ' li.menu-item:last-child a.hfe-menu-item').addClass('elementor-button');
}}
}else{
var $parent_element=$('.elementor-element-' + id);
$parent_element.find('nav').removeClass('hfe-dropdown');
if(( 'cta'==last_item||'cta'==last_item_flyout)&&'expandible'!=layout){
$parent_element.find('li.menu-item:last-child a.hfe-menu-item').parent().addClass('hfe-button-wrapper elementor-widget-button');
$parent_element.find('li.menu-item:last-child a.hfe-menu-item').addClass('elementor-button');
}}
var layout=$('.elementor-element-' + id + ' .hfe-nav-menu').data('layout');
if('expandible'==layout){
if(( 'cta'==last_item||'cta'==last_item_flyout)&&'expandible'!=layout){
$('.elementor-element-' + id + ' li.menu-item:last-child a.hfe-menu-item').parent().removeClass('hfe-button-wrapper elementor-widget-button');
$('.elementor-element-' + id + ' li.menu-item:last-child a.hfe-menu-item').removeClass('elementor-button');
}}
}
function _toggleClick(id){
if($('.elementor-element-' + id + ' .hfe-nav-menu__toggle').hasClass('hfe-active-menu-full-width')){
var $toggle=$('.elementor-element-' + id + ' .hfe-nav-menu__toggle');
var $nextElement=$toggle.next();
if($nextElement.length){
$nextElement.css('left', '0');
var $section=$('.elementor-element-' + id).closest('.elementor-section, .e-con-boxed.e-parent, .e-con-full.e-parent');
if($section.length){
var width=$section.outerWidth();
var sec_pos=$section.offset().left - $toggle.next().offset().left;
$nextElement.css('width', width + 'px');
$nextElement.css('left', sec_pos + 'px');
}}
}
$('.elementor-element-' + id + ' .hfe-nav-menu__toggle').off('click keyup').on('click keyup', function(event){
if(event.type==='keyup'&&event.key!=='Enter'&&event.key!=='Space'){
return;
}
if(event.type==='keyup'){
event.preventDefault();
}
var $this=$(this);
var $selector=$this.next();
if($this.hasClass('hfe-active-menu')){
var layout=$('.elementor-element-' + id + ' .hfe-nav-menu').data('layout');
var full_width=$selector.data('full-width');
var toggle_icon=$('.elementor-element-' + id + ' nav').data('toggle-icon');
$('.elementor-element-' + id).find('.hfe-nav-menu-icon').html(toggle_icon);
$this.removeClass('hfe-active-menu');
$this.attr('aria-expanded', 'false');
if('yes'==full_width){
$this.removeClass('hfe-active-menu-full-width');
$selector.css('width', 'auto');
$selector.css('left', '0');
$selector.css('z-index', '0');
}}else{
var layout=$('.elementor-element-' + id + ' .hfe-nav-menu').data('layout');
var full_width=$selector.data('full-width');
var close_icon=$('.elementor-element-' + id + ' nav').data('close-icon');
$('.elementor-element-' + id).find('.hfe-nav-menu-icon').html(close_icon);
$this.addClass('hfe-active-menu');
$this.attr('aria-expanded', 'true');
if('yes'==full_width){
$this.addClass('hfe-active-menu-full-width');
var closestElement=$('.elementor-element-' + id).closest('.elementor-section, .e-con-boxed.e-parent, .e-con-full.e-parent');
var width=closestElement.outerWidth();
var sec_pos=closestElement.offset().left - $selector.offset().left;
$selector.css('width', width + 'px');
$selector.css('left', sec_pos + 'px');
$selector.css('z-index', '9999');
}}
if($('.elementor-element-' + id + ' nav').hasClass('menu-is-active')){
$('.elementor-element-' + id + ' nav').removeClass('menu-is-active');
}else{
$('.elementor-element-' + id + ' nav').addClass('menu-is-active');
if(event.type==='keyup'){
setTimeout(function(){
$selector.find('li:first-child > a').focus();
}, 100);
}}
});
}
function _handleSinglePageMenu(id, layout){
$('.elementor-element-' + id + ' ul.hfe-nav-menu li a').on('click',
function(event){
var $this=$(this);
var link=$this.attr('href');
var linkValue='';
if(link&&link.includes('#')){
if(link.charAt(0)==='#'){
event.preventDefault();
linkValue=link.slice(1);
}else{
var index=link.indexOf('#');
if(index!==-1){
linkValue=link.slice(index + 1);
}}
}
if(linkValue.length > 0){
var targetSection=$('#' + linkValue);
if(targetSection.length){
$('html, body').animate({
scrollTop: targetSection.offset().top
}, 800);
}
setTimeout(function(){
if('expandible'==layout){
var $toggle=$('.elementor-element-' + id + ' .hfe-nav-menu__toggle');
if($toggle.hasClass('hfe-active-menu')){
$toggle.trigger('click');
}}else if('flyout'==layout){
_closeMenu(id);
}else{
if(window.matchMedia('(max-width: 1024px)').matches){
if($('.elementor-element-' + id).hasClass('hfe-nav-menu__breakpoint-tablet') ||
$('.elementor-element-' + id).hasClass('hfe-nav-menu__breakpoint-mobile')){
var $toggle=$('.elementor-element-' + id + ' .hfe-nav-menu__toggle');
if($toggle.hasClass('hfe-active-menu')){
$toggle.trigger('click');
}}
}}
}, 100);
}}
);
}
function _handlePolylangSwitcher($scope){
var polylangSwitcher=$scope.find('.hfe-nav-menu nav .pll-parent-menu-item a.hfe-menu-item');
var hrefProperty=polylangSwitcher.prop('href');
if(undefined!==hrefProperty&&hrefProperty.includes('#')){
var index=hrefProperty.indexOf('#');
var value=hrefProperty.slice(index);
if(value==='#pll_switcher'){
polylangSwitcher.prop('href', '#');
}}
}
$(window).on('elementor/frontend/init', function (){
elementorFrontend.hooks.addAction('frontend/element_ready/navigation-menu.default', WidgethfeNavMenuHandler);
elementorFrontend.hooks.addAction('frontend/element_ready/hfe-search-button.default', WidgethfeSearchButton);
});
})(jQuery);
!function(t){var o=function(o,s){var i,e,n,r,a=!1,c=!1,f=!1,p={},l={to:"top",offset:0,effectsOffset:0,parent:!1,classes:{sticky:"sticky",stickyActive:"sticky-active",stickyEffects:"sticky-effects",spacer:"sticky-spacer"},isRTL:!1,handleScrollbarWidth:!1},d=function(t,o,s){var i={},e=t[0].style;s.forEach((function(t){i[t]=void 0!==e[t]?e[t]:""})),t.data("css-backup-"+o,i)},m=function(t,o){return t.data("css-backup-"+o)};const u=()=>{if(r=b(i,"width"),n=i.offset().left,e.isRTL){const t=e.handleScrollbarWidth?window.innerWidth:document.body.offsetWidth;n=Math.max(t-r-n,0)}};var h=function(){p.$spacer=i.clone().addClass(e.classes.spacer).css({visibility:"hidden",transition:"none",animation:"none"}),i.after(p.$spacer)},y=function(){p.$spacer.remove()},k=function(){d(i,"unsticky",["position","width","margin-top","margin-bottom","top","bottom","inset-inline-start"]);const t={position:"fixed",width:r,marginTop:0,marginBottom:0};t[e.to]=e.offset,t["top"===e.to?"bottom":"top"]="",n&&(t["inset-inline-start"]=n+"px"),i.css(t).addClass(e.classes.stickyActive)},v=function(){i.css(m(i,"unsticky")).removeClass(e.classes.stickyActive)},b=function(t,o,s){var i=getComputedStyle(t[0]),e=parseFloat(i[o]),n="height"===o?["top","bottom"]:["left","right"],r=[];return"border-box"!==i.boxSizing&&r.push("border","padding"),s&&r.push("margin"),r.forEach((function(t){n.forEach((function(o){e+=parseFloat(i[t+"-"+o])}))})),e},w=function(t){var o=p.$window.scrollTop(),s=b(t,"height"),i=innerHeight,e=t.offset().top-o,n=e-i;return{top:{fromTop:e,fromBottom:n},bottom:{fromTop:e+s,fromBottom:n+s}}},g=function(){v(),y(),a=!1,i.trigger("sticky:unstick")},$=function(){var t=w(i),o="top"===e.to;if(c){(o?t.top.fromTop>e.offset:t.bottom.fromBottom<-e.offset)&&(p.$parent.css(m(p.$parent,"childNotFollowing")),i.css(m(i,"notFollowing")),c=!1)}else{var s=w(p.$parent),a=getComputedStyle(p.$parent[0]),f=parseFloat(a[o?"borderBottomWidth":"borderTopWidth"]),l=o?s.bottom.fromTop-f:s.top.fromBottom+f;(o?l<=t.bottom.fromTop:l>=t.top.fromBottom)&&function(){d(p.$parent,"childNotFollowing",["position"]),p.$parent.css("position","relative"),d(i,"notFollowing",["position","inset-inline-start","top","bottom"]);const t={position:"absolute"};if(n=p.$spacer.position().left,e.isRTL){const t=i.parent().outerWidth(),o=p.$spacer.position().left;r=p.$spacer.outerWidth(),n=Math.max(t-r-o,0)}t["inset-inline-start"]=n+"px",t[e.to]="",t["top"===e.to?"bottom":"top"]=0,i.css(t),c=!0}()}},T=function(){var t,o=e.offset;if(a){var s=w(p.$spacer);t="top"===e.to?s.top.fromTop-o:-s.bottom.fromBottom-o,e.parent&&$(),t>0&&g()}else{var n=w(i);(t="top"===e.to?n.top.fromTop-o:-n.bottom.fromBottom-o)<=0&&(u(),h(),k(),a=!0,i.trigger("sticky:stick"),e.parent&&$())}!function(t){f&&-t<e.effectsOffset?(i.removeClass(e.classes.stickyEffects),f=!1):!f&&-t>=e.effectsOffset&&(i.addClass(e.classes.stickyEffects),f=!0)}(t)},B=function(){T()},C=function(){a&&(v(),y(),u(),h(),k(),e.parent&&(c=!1,$()))};this.destroy=function(){a&&g(),p.$window.off("scroll",B).off("resize",C),i.removeClass(e.classes.sticky)},e=jQuery.extend(!0,l,s),i=t(o).addClass(e.classes.sticky),p.$window=t(window),e.parent&&(p.$parent=i.parent(),"parent"!==e.parent&&(p.$parent=p.$parent.closest(e.parent))),p.$window.on({scroll:B,resize:C}),T()};t.fn.sticky=function(s){var i="string"==typeof s;return this.each((function(){var e=t(this);if(i){var n=e.data("sticky");if(!n)throw Error("Trying to perform the `"+s+"` method prior to initialization");if(!n[s])throw ReferenceError("Method `"+s+"` not found in sticky instance");n[s].apply(n,Array.prototype.slice.call(arguments,1)),"destroy"===s&&e.removeData("sticky")}else e.data("sticky",new o(this,s))})),this},window.Sticky=o}(jQuery);