jQuery(function(e){"use strict";var t,n=e(window),i=e("body"),o=i.hasClass("rtl"),a=e(".nav"),s=a.find("ul"),r=e(".navigation-main"),l=e(".navigation-mobile-wrap"),c=e(".mobile-nav-trigger"),f=e(".navigation-mobile-dismiss");function u(){i.removeClass("mobile-nav-open"),c.focus()}function d(){if(a.is(":visible")){var t=n.width();s.each(function(){var n=e(this),i=n.parent();i.removeClass("nav-open-left"),n.offset().left+n.outerWidth()>t&&i.addClass("nav-open-left")})}}r.each(function(){e(this).clone().find("> li").removeAttr("id").appendTo(l.find(".navigation-mobile"))}),l.find("li").each(function(){var t=e(this);if(t.removeAttr("id"),t.find(".sub-menu").length>0){var n=e('");t.find("> a").after(n)}}),l.find(".menu-item-sub-menu-toggle").on("click",function(t){t.preventDefault(),e(this).parent().toggleClass("menu-item-expanded")}),l.find("li > a").on("click",function(t){var n=e(this),i=n.attr("href");"#"!==i&&i||(t.preventDefault(),n.parent().toggleClass("menu-item-expanded"))}),c.on("click",function(e){e.preventDefault(),i.addClass("mobile-nav-open"),f.focus()}),f.on("click",function(e){e.preventDefault(),u()}),d(),n.on("resize",function(){clearTimeout(t),t=setTimeout(function(){d()},350)}),function(){var t=r.find('a[href*="#"]'),i=l.find('a[href*="#"]'),o=t.add(i).filter(function(){var t=e(this).attr("href");return"#"!==t&&"http://#"!==t&&"https://#"!==t&&"#mobilemenu"!==t&&"#nav-dismiss"!==t});if(o.length&&r.hasClass("nav-smooth-scroll")){var a;o.on("click",function(t){var n=e(this.hash);0!==n.length&&(t.preventDefault(),u(),n.hasClass("elementor-menu-anchor")||e("html, body").animate({scrollTop:n.offset().top-85},500))}),n.on("scroll",function(){clearTimeout(a),a=setTimeout(function(){o.each(function(){var t=e(this),n=t.prop("hash"),i=e(n).get(0);if(i){var o=i.getBoundingClientRect().top;o>0&&o0&&(v.on("click",function(t){t.preventDefault(),e("html, body").animate({scrollTop:0},"fast")}),n.on("scroll",function(e){clearTimeout(m),m=setTimeout(function(){n.scrollTop()>400?v.addClass("btn-to-top-visible"):v.removeClass("btn-to-top-visible")},250)}));var h=e(".global-search-form-trigger"),g=e(".global-search-form-dismiss"),p=e(".global-search-form");function b(e){e&&e.preventDefault(),p.removeClass("global-search-form-expanded"),i.focus()}function C(){return p.hasClass("global-search-form-expanded")}h.on("click",function(e){e&&e.preventDefault(),p.addClass("global-search-form-expanded").find("input").focus()}),g.on("click",b),e(document).on("keydown",function(e){27===(e=e||window.e).keyCode&&C()&&b(e)}),i.on("click",function(e){C()&&b()}).find(".global-search-form, .global-search-form-trigger").on("click",function(e){e.stopPropagation()}),e(".ci-item-filters").each(function(){var t=e(this),n=t.find(".ci-item-filter"),i=t.next(".row-items"),o=i.find('[class*="col"]');n.on("click",function(t){t.preventDefault();var a=e(this);n.removeClass("filter-active"),a.addClass("filter-active");var s=a.data("filter"),r=i.find(s);"*"!==s?o.not(r).fadeOut(200).promise().done(function(){r.fadeIn(200)}):o.fadeIn(500)})});var w=e(".footer-widget-area"),k=w.find(".zoom-instagram-widget__items");if(k.length){var T=w.data("auto"),y=w.data("speed");k.slick({slidesToShow:8,slidesToScroll:3,arrows:!1,autoplay:1==T,speed:y,rtl:o,responsive:[{breakpoint:767,settings:{slidesToShow:4}}]})}}),/(trident|msie)/i.test(navigator.userAgent)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",function(){var e,t=location.hash.substring(1);/^[A-z0-9_-]+$/.test(t)&&(e=document.getElementById(t))&&(/^(?:a|select|input|button|textarea)$/i.test(e.tagName)||(e.tabIndex=-1),e.focus())},!1);