XylotrechusZ
!function(e){"use strict";var t={global:{},utils:{},component:{},core:{}};window.LaStudio=t,void 0===window.LA_No_LoadLazyScripts&&(window.LA_No_LoadLazyScripts=!1),e.exists=function(e){return e.length>0},e.getCachedScript=function(t){return e.ajax({dataType:"script",cache:!0,url:t})},t.global.log=function(...e){console.log(e)},t.utils.ajax_xhr=null,t.utils.localCache={timeout:void 0!==la_theme_config.cache_ttl&&parseInt(la_theme_config.cache_ttl)>0?parseInt(la_theme_config.cache_ttl):300,timeout2:600,data:{},remove:function(e){delete t.utils.localCache.data[e]},exist:function(e,a){return a?!!t.utils.localCache.data[e]:!!t.utils.localCache.data[e]&&(Date.now()-t.utils.localCache.data[e]._)/1e3<t.utils.localCache.timeout2},get:function(e){return t.global.log("Get cache for "+e),t.utils.localCache.data[e].data},set:function(e,a,i){t.utils.localCache.remove(e),t.utils.localCache.data[e]={_:Date.now(),data:a},"function"==typeof i&&"number"!=typeof i.nodeType&&i(a)},addedStyles:{},addedScripts:{},addedAssetsPromises:[],ajaxPromises:{}},t.utils.hashCode=function(e){var t=0;if(0==e.length)return t;for(var a=0;a<e.length;a++)t=(t<<5)-t+e.charCodeAt(a),t&=t;return Math.abs(t)},t.utils.debounce=function(e,t){let a;return function i(...o){a&&clearTimeout(a),a=setTimeout(()=>{e(...o),a=null},t)}},t.global.isPageSpeed=function(){return"undefined"!=typeof navigator&&/(lighthouse|gtmetrix)/i.test(navigator.userAgent.toLocaleLowerCase())},t.global.calculateAspectRatioFit=function(e,t,a,i){var o=Math.min(a/Math.max(e,a),i/Math.max(t,i));return{width:e*o,height:t*o}},t.global.hasClass=function(e,t){return(" "+e.className+" ").indexOf(" "+t+" ")>-1},t.global.isRTL=function(){return document.body.classList?document.body.classList.contains("rtl"):/\brtl\b/g.test(document.body.className)},t.global.sanitizeSlug=function(e){return e.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},t.global.isCookieEnable=function(){if(navigator.cookieEnabled)return!0;document.cookie="cookietest=1";var e=-1!=document.cookie.indexOf("cookietest=");return document.cookie="cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",e},t.global.parseVideo=function(e){var a=t.global.getUrlParameter("playlist",e);if(e.match(/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),RegExp.$3.indexOf("youtu")>-1)return a?"https://www.youtube.com/embed/"+RegExp.$6+"?autoplay=1&playlist="+a+"&loop=1&rel=0&iv_load_policy3":"https://www.youtube.com/embed/"+RegExp.$6+"?autoplay=1&loop=1&rel=0&iv_load_policy3";if(RegExp.$3.indexOf("vimeo")>-1){var i="";RegExp.$2.indexOf("player")>-1?i="https://player.vimeo.com/video/"+RegExp.$6+"?autoplay=1&loop=1&title=0&byline=0&portrait=0":(e.match(/^.*(vimeo\.com\/)((channels\/[A-z]+\/)|(groups\/[A-z]+\/videos\/)|(showcase\/[0-9]+\/video\/))?([0-9]+)(\/[A-z0-9]+)?/),i="https://player.vimeo.com/video/"+RegExp.$6+"?autoplay=1&loop=1&title=0&byline=0&portrait=0",RegExp.$7&&(i=t.global.addQueryArg(i,"h",RegExp.$7.replace("/",""))));var o=t.global.getUrlParameter("h",i);o&&(i=t.global.addQueryArg(i,"h",o)),window.innerWidth<1200&&(i=t.global.addQueryArg(i,"muted","1")),e=i}return e},t.global.getBrowseInformation=function(){var e,t,a,i,o,n,l,s=navigator.userAgent.toLowerCase(),r=navigator.platform.toLowerCase(),c=s.match(/(opera|ie|firefox|chrome|version)[\s\/:]([\w\d\.]+)?.*?(safari|version[\s\/:]([\w\d\.]+)|$)/)||[null,"unknown","0"];return -1!=(i=(l=-1,"Microsoft Internet Explorer"==navigator.appName?(o=navigator.userAgent,null!=(n=RegExp("MSIE ([0-9]{1,}[.0-9]{0,})")).exec(o)&&(l=parseFloat(RegExp.$1))):"Netscape"==navigator.appName&&(o=navigator.userAgent,null!=(n=RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})")).exec(o)&&(l=parseFloat(RegExp.$1))),l))?(e="ie",t=i):(e="version"==c[1]?c[3]:c[1],t=c[2].split(".")[0]),{name:e,version:t,platform:a=s.match(/ip(?:ad|od|hone)/)?"ios":(s.match(/(?:webos|android)/)||r.match(/mac|win|linux/)||["other"])[0]}},t.global.setBrowserInformation=function(){var a=t.global.getBrowseInformation();function i(){var e=window.innerWidth-document.documentElement.clientWidth;document.documentElement.style.setProperty("--scrollbar-width-o",e+"px"),0==e&&("mac"==a.platform?e=15:"ios"==a.platform&&(e=10)),document.documentElement.style.setProperty("--scrollbar-width",e+"px")}"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?document.documentElement.classList.add("touchevents"):document.documentElement.classList.add("no-touchevents"),document.documentElement.classList.add(a.name),document.documentElement.classList.add(a.name+a.version),document.documentElement.classList.add("platform-"+a.platform),i(),e(window).on("resize",i)},t.global.isIELower16=function(){var e=t.global.getBrowseInformation();return"ie"==e.name&&16>parseInt(e.version)},t.global.getRandomID=function(){var e,t="",a="abcdefghijklmnopqrstuvwxyz",i="0123456789";for(e=0;e<5;e++)t+=a.charAt(Math.floor(Math.random()*a.length));for(e=0;e<5;e++)t+=i.charAt(Math.floor(Math.random()*i.length));return t},t.global.getAdminBarHeight=function(){return document.getElementById("wpadminbar")&&window.innerWidth>600?32:0},t.global.addQueryArg=function(e,t,a){var i=RegExp("([?&])"+t+"=.*?(&|$)","i"),o=-1!==e.indexOf("?")?"&":"?";return e.match(i)?e.replace(i,"$1"+t+"="+a+"$2"):e+o+t+"="+a},t.global.getUrlParameter=function(e,t){t||(t=window.location.href);var a=RegExp("[?&]"+(e=e.replace(/[\[\]]/g,"\\$&"))+"(=([^&#]*)|&|#|$)").exec(t);return a?a[2]?decodeURIComponent(a[2].replace(/\+/g," ")):"":null},t.global.removeURLParameter=function(e,t){var a=e.split("?");if(!(a.length>=2))return e;for(var i=encodeURIComponent(t)+"=",o=a[1].split(/[&;]/g),n=o.length;n-- >0;)-1!==o[n].lastIndexOf(i,0)&&o.splice(n,1);return e=a[0]+(o.length>0?"?"+o.join("&"):"")},t.global.parseQueryString=function(e){var t=e.split("?"),a={};if(t.length>=2)for(var i=t[1].split("&"),o=0;o<i.length;o++){var n=i[o].split("="),l=decodeURIComponent(n[0]),s=decodeURIComponent(n[1]);if(void 0===a[l])a[l]=decodeURIComponent(s);else if("string"==typeof a[l]){var r=[a[l],decodeURIComponent(s)];a[l]=r}else a[l].push(decodeURIComponent(s))}return a},t.global.AjaxHandler=function(t){let a=this,i={handlerId:"",action:"",cache:!1,processData:!0,url:"",async:!1,beforeSendCallback:function(){},errorCallback:function(){},successCallback:function(){},completeCallback:function(){},handlerSettings:{}};t&&e.extend(i,t),a.handlerSettings=i.handlerSettings,a.ajaxRequest=null,a.ajaxProcessing=!1,a.data={action:i.action||"lastudio_theme_ajax",_nonce:a.handlerSettings.nonce,actions:{}},""===i.url&&(i.url=a.handlerSettings.ajax_url),a.send=function(){a.ajaxProcessing=!0,a.ajaxRequest=e.ajax({type:a.handlerSettings.type,url:i.url,data:a.data,cache:i.cache,dataType:a.handlerSettings.data_type,processData:i.processData,beforeSend:function(e,t){null===a.ajaxRequest||i.async||a.ajaxRequest.abort(),i.beforeSendCallback&&"function"==typeof i.beforeSendCallback&&i.beforeSendCallback(e,t)}}).done(function(t,o,n){a.ajaxProcessing=!1,e(document).trigger({type:"LaStudioTheme:AjaxHandler:success",response:t,jqXHR:n,textStatus:o}),i.successCallback&&"function"==typeof i.successCallback&&i.successCallback(t,o,n)}).fail(function(t,a,o){e(document).trigger({type:"LaStudioTheme:AjaxHandler:error",jqXHR:t,textStatus:a,errorThrown:o}),i.errorCallback&&"function"==typeof i.errorCallback&&i.errorCallback(t,a,o)}).always(function(t,a,o){e(document).trigger({type:"LaStudioTheme:AjaxHandler:complete",jqXHR:t,textStatus:a,errorThrown:o}),i.completeCallback&&"function"==typeof i.completeCallback&&i.completeCallback(t,a,o)})},a.sendData=function(e){let t=i.handlerId;a.data.actions=JSON.stringify({[t]:{action:i.handlerId,data:e||{}}}),a.send()}}}(jQuery),function(e){var t=[],a={};e("body").on("lastudio-prepare-object-fit",function(t,a){LaStudio.global.log("run fix object-fit"),e(".figure__object_fit:not(.custom-object-fit) img",a).each(function(){var t=e(this).closest(".figure__object_fit"),a=e(this).prop("src");a&&t.css("backgroundImage","url("+a+")").addClass("custom-object-fit")})}),LaStudio.global.isIELower16()&&(e('<div class="unsupported-browser"><div><h3>'+la_theme_config.i18n.unsupported_browser.title+"</h3><p>"+la_theme_config.i18n.unsupported_browser.desc+"</p></div></div>").prependTo(e("body")),e("body").on("lastudio-object-fit",function(t){LaStudio.global.log("run fix object-fit"),e(".figure__object_fit:not(.custom-object-fit) img").each(function(){var t=e(this).closest(".figure__object_fit"),a=e(this).prop("src");a&&t.css("backgroundImage","url("+a+")").addClass("custom-object-fit")})})),LaStudio.core.initAll=function(t){var a=t.find(".js-el").filter("[data-la_component]"),i=null;if(t.find(".variations_form").length&&e(document).trigger("reinit_la_swatches"),!(a.length<=0)){var o=function(t,a){var o=e(a);o.data("init-"+t)||("function"!=typeof LaStudio.component[t]?LaStudio.global.log("[LaStudio Component "+t+"] ---- init error"):((i=new LaStudio.component[t](a)).init(),o.data("init-"+t,!0),LaStudio.global.log("[LaStudio Component "+t+"] ---- init success",o),LaStudio.global.eventManager.publish("LaStudio:component_inited",[t,a])))};LaStudio.global.isPageSpeed()?LaStudio.global.LazyLoad(a,{rootMargin:"200px",load:function(t){var a=e(t).data("la_component");"string"==typeof a?o(a,t):a.forEach(function(e){o(e,t)})}}).observe():a.each(function(){var t=this,a=e(this).data("la_component");"string"==typeof a?o(a,t):a.forEach(function(e){o(e,t)})}),e("body").trigger("lastudio-fix-ios-limit-image-resource").trigger("lastudio-lazy-images-load").trigger("jetpack-lazy-images-load").trigger("lastudio-object-fit")}},LaStudio.global.loadScriptAsync=function(e,t,a,i){return LaStudio.utils.localCache.addedScripts.hasOwnProperty(e)?e:(LaStudio.utils.localCache.addedScripts[e]=t,new Promise(function(o,n){var l=document.createElement("script");l.src=t,l.async=i,l.onload=function(){o(e),"function"==typeof a&&"number"!=typeof a.nodeType&&a()},l.onerror=function(){n(`Can not load javascript file "${t}"`),"function"==typeof a&&"number"!=typeof a.nodeType&&a()},document.head.appendChild(l)}))},LaStudio.global.loadScriptAsyncSequence=function(e,t){e.forEach(function(a,i){LaStudio.global.loadScriptAsync(a[0],a[1],i+1==e.length?t:"",a[2])})},LaStudio.global.loadDependencies=function(i,o){var n=o||function(){};if(!i){n();return}var l=i.map(function(e){return -1===t.indexOf(e)&&(void 0===a[e]?e:(a[e].push(n),!0))});if(!0!==l[0]){if(!1===l[0]){n();return}var s=l.map(function(t){return a[t]=[n],e.getCachedScript(t)}),r=function e(){var i=0;l.map(function(e){i++,a[e].forEach(function(t){i==l.length&&(LaStudio.global.log("loaded js: "+e),t())}),delete a[e],t.push(e)})};e.when.apply(null,s).done(r)}},LaStudio.global.loadJsFile=function(e){return la_theme_config.js_path+e+(la_theme_config.js_min?".min.js":".js")},LaStudio.global.ShowMessageBox=function(t,a,i,o){void 0===LaStudio.utils.timeOutMessageBox&&(LaStudio.utils.timeOutMessageBox=null);var n=e('<div class="la-global-message"></div>').html(t),l=function(){void 0!==e.featherlight.close()&&e.featherlight.close(),e.featherlight(n,{persist:"shared",type:"jquery",background:'<div class="featherlight featherlight-loading"><div class="featherlight-outer"><button class="featherlight-close-icon featherlight-close" aria-label="Close"><i class="lastudioicon-e-remove"></i></button><div class="featherlight-content"><div class="featherlight-inner"><div class="la-loader spinner3"><div class="dot1"></div><div class="dot2"></div><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div><div class="cube1"></div><div class="cube2"></div><div class="cube3"></div><div class="cube4"></div></div></div></div></div><div class="custom-featherlight-overlay"></div></div>',beforeOpen:function(t){e("body").addClass(a),i&&clearTimeout(LaStudio.utils.timeOutMessageBox)},afterOpen:function(t){i&&(LaStudio.utils.timeOutMessageBox=setTimeout(function(){e.featherlight.close()},2e4)),"function"==typeof o&&o()},afterClose:function(t){e("body").removeClass(a),i&&clearTimeout(LaStudio.utils.timeOutMessageBox)}})};e.isFunction(e.fn.featherlight)?l():LaStudio.global.loadDependencies([LaStudio.global.loadJsFile("featherlight")],l)}}(jQuery),function(e){"use strict";LaStudio.global.eventManager={},LaStudio.global.eventManager.subscribe=function(t,a){e(this).on(t,a)},LaStudio.global.eventManager.unsubscribe=function(t,a){e(this).off(t,a)},LaStudio.global.eventManager.publish=function(t,a){e(this).trigger(t,a)}}(jQuery),function(e){"use strict";var t={rootMargin:"50px",threshold:0,load:function t(a){var i=a.getAttribute("data-src")||a.getAttribute("data-lazy")||a.getAttribute("data-lazy-src")||a.getAttribute("data-lazy-original"),o=a.getAttribute("data-src")||a.getAttribute("data-lazy-srcset"),n=a.getAttribute("data-sizes")||a.getAttribute("data-lazy-sizes");i&&(a.src=i),o&&(a.srcset=o),n&&(a.sizes=n),a.getAttribute("data-background-image")&&(a.style.backgroundImage='url("'+a.getAttribute("data-background-image")+'")'),a.setAttribute("data-element-loaded",!0),e(a).hasClass("jetpack-lazy-image")&&e(a).addClass("jetpack-lazy-image--handled")},complete:function(e){}};function a(e){e.setAttribute("data-element-loaded",!0)}var i=function e(t){return"true"===t.getAttribute("data-element-loaded")};LaStudio.global.LazyLoad=function(){var o,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=e.extend({},t,l),r=s.rootMargin,c=s.threshold,d=s.load,u=s.complete,f=void 0;return"IntersectionObserver"in window&&(f=new IntersectionObserver((o=d,function(e,t){e.forEach(function(e){e.intersectionRatio>0&&(t.unobserve(e.target),i(e.target)||(o(e.target),a(e.target)))})}),{rootMargin:r,threshold:c})),{observe:function t(){if(e.exists(n)){for(var o=0;o<n.length;o++)if(!i(n[o])){if(f){f.observe(n[o]);continue}d(n[o]),a(n[o])}u(n)}}}},LaStudio.global.makeImageAsLoaded=function(o){i(o)||(t.load(o),a(o),e(o).removeClass("lazyload"))},e("body").on("lastudio-lazy-images-load",function(){var t,a=e('.la-lazyload-image:not([data-element-loaded="true"]), img[data-lazy-src]:not([data-element-loaded="true"]), img[data-lazy-original]:not([data-element-loaded="true"])');LaStudio.global.LazyLoad(a,{rootMargin:"50px"}).observe();try{t=new Event("jetpack-lazy-images-load",{bubbles:!0,cancelable:!0})}catch(i){(t=document.createEvent("Event")).initEvent("jetpack-lazy-images-load",!0,!0)}e("body").get(0).dispatchEvent(t)})}(jQuery),function(e){"use strict";var t=e(window),a=e(document),i=e("html,body"),o=e("body");LaStudio.component.SVGAnimation=function(t){var a,i=e(t),o=i.data(),n={type:o.type?o.type:"delayed",duration:o.duration?o.duration:100},l=i.find("svg"),s=function(){var t=new Vivus(l[0],n);o.hover&&(o.hoveron?e(o.hoveron).on("mouseenter",function(){t.stop().reset().play(2)}).on("mouseleave",function(){t.finish()}):i.on("mouseenter",function(){t.stop().reset().play(2)}).on("mouseleave",function(){t.finish()}))};return{init:function(){"undefined"==typeof Vivus?LaStudio.global.loadDependencies([LaStudio.global.loadJsFile("vivus")],s):s()}}},LaStudio.component.CountDownTimer=function(t){var a,i=e(t).find("[data-due-date]"),o=new Date(1e3*i.data("due-date")),n={days:i.find('[data-value="days"]'),hours:i.find('[data-value="hours"]'),minutes:i.find('[data-value="minutes"]'),seconds:i.find('[data-value="seconds"]')};return LaStudio.component.CountDownTimer.updateClock=function(){var t=LaStudio.component.CountDownTimer.getTimeRemaining(o);e.each(t.parts,function(e){var t=n[e];t.length&&t.html(this)}),t.total<=0&&clearInterval(a)},LaStudio.component.CountDownTimer.initClock=function(){LaStudio.component.CountDownTimer.updateClock(),a=setInterval(LaStudio.component.CountDownTimer.updateClock,1e3)},LaStudio.component.CountDownTimer.splitNum=function(t){var t=t.toString(),a=[],i="";return 1===t.length&&(t=0+t),a=t.match(/\d{1}/g),e.each(a,function(e,t){i+='<span class="lastudio-countdown-timer__digit">'+t+"</span>"}),i},LaStudio.component.CountDownTimer.getTimeRemaining=function(e){var t=e-new Date,a=Math.floor(t/1e3%60),i=Math.floor(t/1e3/60%60),o=Math.floor(t/36e5%24),n=Math.floor(t/864e5);return(n<0||o<0||i<0)&&(a=i=o=n=0),{total:t,parts:{days:LaStudio.component.CountDownTimer.splitNum(n),hours:LaStudio.component.CountDownTimer.splitNum(o),minutes:LaStudio.component.CountDownTimer.splitNum(i),seconds:LaStudio.component.CountDownTimer.splitNum(a)}}},LaStudio.component.CountDownTimer.initClock(),{init:function(){LaStudio.component.CountDownTimer.initClock()}}},LaStudio.core.InstanceSearch=function(t){if(!t.hasClass("has-init")){t.addClass("has-init");var a,i,o,n=function(){return'<div class="search-results"><div class="lakit-css-loader"></div><div class="results-container"></div><div class="view-more-results text-center"><a href="#" class="button search-results-button">'+la_theme_config.i18n.global.search_view_more+"</a></div></div>"},l=null,s="",r={},c=t.find("form.lakit-search__form"),d=c.find("input.lakit-search__field"),u=c.find("input[name=post_type]").val(),f="minimal";e('<button type="reset" class="lakit-search__submit search-reset"><span class="lakit-search__submit-icon lakit-blocks-icon"><i class="lastudioicon-e-remove"></i></span></button>').insertAfter(c.find(".lakit-search__submit")),t.find(".lakit-search__popup--full-screen").length?(f="normal",t.find(".lakit-search__popup--full-screen").append(n())):t.find(".lakit-search__popup-content").length?t.find(".lakit-search__popup-content").append(n()):t.find(".lakit-search").append(n()),i=t.find(".search-results"),a=t.find(".search-results-button");var h=(o=0,function(e,t){clearTimeout(o),o=setTimeout(e,t)});t.on("keyup",".lakit-search__field",function(e){var t=!1;void 0===e.which?t=!0:"number"==typeof e.which&&e.which>0&&(t=!e.ctrlKey&&!e.metaKey&&!e.altKey),t&&(l&&l.abort(),h(function(){m(!0)},400))}).on("change",".product-cats input",function(){l&&l.abort(),m(!1)}).on("change","select",function(){l&&l.abort(),m(!1)}).on("click",".search-reset",function(){l&&l.abort(),s="",t.addClass("reset"),i.find(".results-container, .view-more-results").slideUp(function(){t.removeClass("searching searched found-products found-no-product invalid-length reset")})}).on("focusout",".lakit-search__field",function(){e(this).val().length<2&&i.find(".results-container, .view-more-results").slideUp(function(){t.removeClass("searching searched found-products found-no-product invalid-length")})}).on("focus",".lakit-search__field",function(){t.hasClass("found-products")&&i.find(".results-container,.view-more-results").slideDown(200)})}function g(t,a){var i="";return t.each(function(){var t,o,n,l={image:"",desc:"",title:"",price:""};if("product"==a){if(l.price=e(this).find(".price").html()||"",l.desc=e(this).find(".item--excerpt").html()||"",e(this).find(".product_item--title").length)l.image=e(this).find(".product_item--thumbnail-holder").html()||"",l.title=e(this).find(".product_item--title").html()||"";else{var s=e(this).find(".woocommerce-loop-product__link").attr("href");l.image='<a href="'+s+'">'+e(this).find("figure").html()+"</a>",l.title='<a href="'+s+'">'+e(this).find(".woocommerce-loop-product__title").html()+"</a>"}}else l.image=e(this).find(".post-thumbnail, .post_item-thumbnail").html()||"",l.title=e(this).find(".lakit-posts__title,.entry-title").html()||"",l.desc=e(this).find(".item--excerpt,.entry-excerpt").html()||"";i+=(o=""!=(t=l).price?`<div class="search_result__item-price">${t.price}</div>`:"",`<div class="search_result__item">${""!=t.image?`<div class="search_result__item-image">${t.image}</div>`:""}<div class="search_result__item-content"><div class="search_result__item-title">${t.title}</div>${o}${n=""!=t.desc?`<div class="search_result__item-desc">${t.desc}</div>`:""}</div></div>`)}),i}function m(o){var n=d.val(),f=c.find(".product-cats input:checked"),h=n+"["+(f.length?f.val():c.find("select").length?c.find("select").val():"")+"]";if(s!==n||!o){if(s=n,n.length<2){t.removeClass("searching found-products found-no-product").addClass("invalid-length");return}var m=c.attr("action")+"?"+c.serialize()+"&la_doing_ajax=true";a.removeClass("fadeInUp"),e(".view-more-results",i).slideUp(10),t.removeClass("found-products found-no-product").addClass("searching"),h in r?p(r[h]):l=e.get(m,function(a){var i=e(".site-main .site-content--default, .elementor.elementor-location-archive",a);if("product"===u){var o=e(".lakit-products[data-widget_current_query] ul.products",i);if(o.length){var n=o;n.length?r[h]={found:!0,items:g(n.children("li"),"product"),url:LaStudio.global.removeURLParameter(m,"la_doing_ajax")}:r[h]={found:!1,text:e(".woocommerce-info",i).length?e(".woocommerce-info",i).text():la_theme_config.i18n.global.search_not_found}}else r[h]={found:!1,text:la_theme_config.i18n.global.search_not_found}}else{var o=e('div[data-widget_current_query="yes"]',i);if(o.length){var s=e(o.find(o.data("item_selector")));s.length?r[h]={found:!0,items:g(s,"post"),url:LaStudio.global.removeURLParameter(m,"la_doing_ajax")}:r[h]={found:!1,text:la_theme_config.i18n.global.search_not_found}}else r[h]={found:!1,text:la_theme_config.i18n.global.search_not_found}}p(r[h]),t.addClass("searched"),l=null},"html")}}function p(o){var n="product"===u?"woocommerce":"la-post-grid";if(t.removeClass("searching"),o.found){t.addClass("found-products");var l=e('<div class="search_result_grid"></div>');"minimal"==f&&(i.addClass("is-minimal-result"),l.addClass("is-minimal-result")),l.append(o.items),i.find(".results-container").addClass(n).html(l.get(0).outerHTML),e("body").trigger("lastudio-fix-ios-limit-image-resource").trigger("lastudio-lazy-images-load").trigger("jetpack-lazy-images-load").trigger("lastudio-object-fit"),LaStudio.core.initAll(i),e(".search_result__item",i).each(function(t){e(this).css("animation-delay",100*t+"ms"),e(this).addClass("fadeInUp animated")}),a.attr("href",o.url).css("animation-delay",100*e(".search_result__item",i).length+"ms").addClass("fadeInUp animated"),i.find(".results-container, .view-more-results").slideDown(300,function(){t.removeClass("invalid-length")})}else t.addClass("found-no-product"),i.find(".results-container").removeClass(n).html(e('<div class="not-found text-center" />').text(o.text)),a.attr("href","#"),i.find(".view-more-results").slideUp(300),i.find(".results-container").slideDown(300,function(){t.removeClass("invalid-length")});t.addClass("searched")}},LaStudio.core.ElementClickEvent=function(){a.on("click",function(t){!e(t.target).closest(".lakit-ajax-searchform").length&&(e(".lakit-ajax-searchform .results-container").hide(),e(".lakit-ajax-searchform .view-more-results").hide())}).on("LaStudio:Component:Popup:Close",function(t){t.preventDefault();try{e.featherlight.close()}catch(a){}}).on("click",".la-popup:not(.elementor-widget):not([data-gallery-id]), .la-popup.elementor-widget a, a[lapopup], div[lapopup] a, a[data-lapopup], div[data-lapopup] a",function(t){t.preventDefault();var i=e(this),n=LaStudio.global.parseVideo(i.attr("href")),l={image:/\.(png|jp?g|gif|tiff?|bmp|svg|webp)(\?\S*)?$/i,inline:/^[#.]\w/,html:/^\s*<[\w!][^<]*>/,elementor_image:/\.(png|jpe?g|gif|svg|webp)(\?\S*)?$/i},s="iframe";s=n.match(l.image)?"image":n.match(l.inline)?"jquery":n.match(l.html)?"html":"iframe";var r=i.data("component_name")||"";if(r+=" featherlight--inline",!(n.match(l.elementor_image)&&"undefined"!=typeof elementorFrontend&&elementorFrontend.getKitSettings("global_image_lightbox"))){var c=function(){if(i.data("isOpen")){e.featherlight.close();return}e.featherlight.close(),e.featherlight(n,{type:s,persist:"shared",background:'<div class="featherlight featherlight-loading"><div class="featherlight-outer"><button class="featherlight-close-icon featherlight-close" aria-label="Close"><i class="lastudioicon-e-remove"></i></button><div class="featherlight-content"><div class="featherlight-inner"><div class="la-loader spinner3"><div class="dot1"></div><div class="dot2"></div><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div><div class="cube1"></div><div class="cube2"></div><div class="cube3"></div><div class="cube4"></div></div></div></div></div><div class="custom-featherlight-overlay"></div></div>',beforeClose:function(t){if(i.data("isOpen",!1),a.trigger("LaStudio:Component:Popup:beforeClose",[this,i]),o.removeClass(r),"jquery"==s&&e(n).length>0){var l=n.replace("#","#__tmp__");e(n).insertBefore(e(l)),e(l).remove()}},beforeOpen:function(t){if(i.data("isOpen",!0),a.trigger("LaStudio:Component:Popup:beforeOpen",[this,i]),o.addClass(r),"jquery"==s&&e(n).length>0){let l=n.replace("#","__tmp__");e('<div id="'+l+'" class="featherlight__placeholder"></div>').insertBefore(e(n));let c=e(n).closest(".elementor[data-elementor-id]");c.length&&(e(this.target).removeClass("elementor-element"),this.$instance.addClass(c.get(0).className))}},afterOpen:function(){if(a.trigger("LaStudio:Component:Popup:afterOpen",[this,i]),"jquery"==s&&e(n).length>0){let t=e(n.replace("#","#__tmp__")).closest(".elementor[data-elementor-id]");t.length&&e(this.target).addClass("elementor-element")}},iframeAllow:"autoplay",iframeAllowfullscreen:"1"})};e.isFunction(e.fn.featherlight)?c():LaStudio.global.loadDependencies([LaStudio.global.loadJsFile("featherlight")],c)}}).on("click",".la-inline-popup",function(t){t.preventDefault();var a=e(this),i=e(a.data("href")||a.attr("href")),n=a.data("component_name")||"";n+=" featherlight--inline";var l=function(){e.featherlight.close(),e.featherlight(i,{background:'<div class="featherlight featherlight-loading"><div class="featherlight-outer"><button class="featherlight-close-icon featherlight-close" aria-label="Close"><i class="lastudioicon-e-remove"></i></button><div class="featherlight-content"><div class="featherlight-inner"><div class="la-loader spinner3"><div class="dot1"></div><div class="dot2"></div><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div><div class="cube1"></div><div class="cube2"></div><div class="cube3"></div><div class="cube4"></div></div></div></div></div><div class="custom-featherlight-overlay"></div></div>',beforeOpen:function(e){o.addClass(n)},afterClose:function(e){o.removeClass(n)}})};e.isFunction(e.fn.featherlight)?l():LaStudio.global.loadDependencies([LaStudio.global.loadJsFile("featherlight")],l)}).on("click",".custom-lighcase-btn-close, .popup-button-continue, .custom-lightcase-overlay, .custom-featherlight-close, .btn-close-newsletter-popup, .lakit-popup--close",function(e){e.preventDefault(),a.trigger("LaStudio:Component:Popup:Close")}).on("click",".elementor-lakit-portfolio.enable-pf-lightbox .lakit-posts__inner-box",function(t){var a=e(this),i="",o={};if(!(e(".post-thumbnail",a).length>0))return!0;t.preventDefault(),i+='<div class="lakit-ppc--img">'+e(".post-thumbnail",a).html()+"</div>",i+='<div class="lakit-ppc--content">'+e(".lakit-posts__inner-content-inner",a).html()+"</div>",o=LaStudio.global.calculateAspectRatioFit(e(".post-thumbnail img",a).attr("width"),e(".post-thumbnail img",a).attr("height"),.8*window.innerWidth,.8*window.innerHeight);var n=e('<div class="lakit-ppc"></div>').html(i),l=function(){void 0!==e.featherlight.close()&&e.featherlight.close(),e.featherlight(n,{persist:"shared",type:"jquery",background:'<div class="featherlight featherlight-loading"><div class="featherlight-outer"><button class="featherlight-close-icon featherlight-close" aria-label="Close"><i class="lastudioicon-e-remove"></i></button><div class="featherlight-content"><div class="featherlight-inner"><div class="la-loader spinner3"><div class="dot1"></div><div class="dot2"></div><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div><div class="cube1"></div><div class="cube2"></div><div class="cube3"></div><div class="cube4"></div></div></div></div></div><div class="custom-featherlight-overlay"></div></div>',beforeOpen:function(t){e("body").addClass("body-pf-gallery")},afterOpen:function(t){e(".lakit-ppc").css({width:o.width,"--imageRatio":o.width/o.height})},afterClose:function(t){e("body").removeClass("body-pf-gallery")}})};e.isFunction(e.fn.featherlight)?l():LaStudio.global.loadDependencies([LaStudio.global.loadJsFile("featherlight")],l)})},LaStudio.core.Blog=function(t){!(t=t||e(".widget-area")).hasClass("--inited")&&(t.hasClass("elementor-widget")&&t.addClass("--lakit-wp--widget"),t.addClass("--inited"),e(".widget_block > .widget-title:only-child",t).each(function(){var t=e(this),a=t.closest(".widget_block"),i=a.next(".widget_block");i.length&&0==i.find(".widget-title").length&&t.prependTo(i),a.remove()}),e(".menu li a:empty",t).each(function(){e(this).closest("li").remove()}),e(".widget_pages > ul, .widget_archive > ul, .widget_categories > ul, .widget_product_categories > ul, .widget_meta > ul",t).addClass("menu").closest(".widget").addClass("accordion-menu"),e(".wc-block-product-categories.is-list > ul",t).addClass("menu").closest(".widget").addClass("accordion-menu"),e(".widget_nav_menu",t).closest(".widget").addClass("accordion-menu"),e(".widget_categories > ul li.cat-parent,.widget_product_categories li.cat-parent",t).addClass("mm-item-has-sub"),e(".menu li > ul",t).each(function(){var t=e(this);0==t.siblings(".narrow").length&&t.before('<span class="narrow"><i></i></span>')}),e(".accordion-menu li.menu-item-has-children > a,.menu li.mm-item-has-sub > a,.menu li > .narrow",t).off("click"),e(".accordion-menu li.menu-item-has-children > a,.menu li.mm-item-has-sub > a,.menu li > .narrow",t).on("click",function(t){t.preventDefault();var a=e(this).parent();a.hasClass("open")?(a.removeClass("open"),a.find(">ul").stop().slideUp()):(a.addClass("open"),a.find(">ul").stop().slideDown(),a.siblings().removeClass("open").find(">ul").stop().slideUp())}),e("li.current-cat, li.current-cat-parent",t).each(function(){e(this).addClass("open"),e(">ul",e(this)).css("display","block")}))},LaStudio.core.SitePreload=function(){var n=document.getElementById("wpadminbar");n&&n.classList.add("wpbar"),t.on("load scroll",function(){t.scrollTop()>t.height()+100?(e(".backtotop-container").addClass("show"),e("[data-backtotop]").addClass("show")):(e(".backtotop-container").removeClass("show"),e("[data-backtotop]").removeClass("show"))}),t.on("load resize",function(){650>t.height()?e(".lakit-cart .lakit-cart__list .product_list_widget").first().find("li").length>3&&o.addClass("l650"):o.removeClass("l650")}),a.on("click",".btn-backtotop, [data-backtotop] .elementor-button",function(e){e.preventDefault(),i.animate({scrollTop:0},800)}),o.on("lastudio-fix-ios-limit-image-resource",function(){"matchMedia"in window&&window.matchMedia("(max-width: 1024px)").matches&&e("li.product_item.thumb-has-effect").each(function(){e(this).removeClass("thumb-has-effect"),e(this).find(".p_img-second").remove()})}).trigger("lastudio-fix-ios-limit-image-resource"),o.removeClass("site-loading"),t.on("beforeunload",function(e){"safari"!=LaStudio.global.getBrowseInformation().name&&window.self===window.top&&(void 0===window.hack_beforeunload_time||void 0!==window.hack_beforeunload_time&&e.timeStamp-window.hack_beforeunload_time>1e3)&&o.addClass("site-loading")}),a.on("click",'a[href^="tel:"], a[href^="mailto:"], a[href^="callto"], a[href^="skype"], a[href^="whatsapp"], a.mail-link, a.noloading',function(e){window.hack_beforeunload_time=parseInt(e.timeStamp)}),t.on("pageshow",function(e){e.originalEvent.persisted&&o.removeClass("site-loading body-loading")}),LaStudio.global.eventManager.subscribe("LaStudio:Component:LazyLoadImage",function(e,t){t.find('.la-lazyload-image:not([data-element-loaded="true"]), img[data-lazy-src]:not([data-element-loaded="true"]), img[data-lazy-original]:not([data-element-loaded="true"])').each(function(e,t){LaStudio.global.makeImageAsLoaded(t)})}),e("body").trigger("lastudio-fix-ios-limit-image-resource").trigger("lastudio-lazy-images-load").trigger("jetpack-lazy-images-load").trigger("lastudio-object-fit")},LaStudio.core.OnLoadEvent=function(){o.removeClass("site-loading body-loading").addClass("body-loaded");try{Pace.stop()}catch(t){}e(".force-active-object-fit").each(function(){o.trigger("lastudio-prepare-object-fit",[e(this)])})},LaStudio.core.CustomFunction=function(){e(document).on("click","button.site-nav-toggleicon",function(t){t.preventDefault(),e("html").toggleClass("open-site-nav-default")}),e('.div.gallery[class*="galleryid-"], .wp-block-gallery').each(function(){var t=LaStudio.global.getRandomID();e(this).find("a").addClass("la-popup").attr("data-elementor-lightbox-slideshow",t)}),e(document).on("wc_variation_form",".variations_form",function(t){e(this).addClass("variation-form--initialized")}),e(document).on("reinit_la_swatches",function(){e(".product_item .product_item--info").each(function(){e(this).closest(".product_item").css("--item_info",e(this).innerHeight()+"px")}),!o.hasClass("elementor-editor-active")&&setTimeout(function(){var t=e(".variations_form:not(.variation-form--initialized)");if(t.length&&"1"==la_theme_config.has_wc){var a=function(){t.each(function(){e(this).wc_variation_form(),e(this).closest(".product_item")&&e(this).closest(".product_item").css("--variations_form",e(this).innerHeight()+"px")})};e.fn.wc_variation_form?a():("undefined"==typeof _wpUtilSettings&&(window._wpUtilSettings={ajax:{url:la_theme_config.ajax_url}}),"undefined"==typeof wc_add_to_cart_variation_params&&(window.wc_add_to_cart_variation_params=la_theme_config.i18n.variation),LaStudio.global.loadScriptAsyncSequence([["underscore-js",la_theme_config.wc_variation.underscore,!0],["wp-util-js",la_theme_config.wc_variation.wp_util,!1],["wc-add-to-cart-variation-js",la_theme_config.wc_variation.base,!1]],a))}},200)}),e(document).on("click mouseenter","[data-swiper_cdots]",function(t){var a,i,o;if(t.preventDefault(),o=e(this).attr("data-swiper_id"),"undefined"!==(a=e(o).hasClass("swiper-container")?e(o).data("swiper"):e(o).find(".swiper-container").first().data("swiper"))){i=parseInt(e(this).attr("slide_idx")||0),e('[data-swiper_cdots][data-swiper_id="'+o+'"]').removeClass("active-swiper-cdots"),e(this).addClass("active-swiper-cdots");try{a.slideTo(i)}catch(n){}}});let t={wishlist:0,compare:0};try{if("undefined"!==Cookies.get("marja_wishlist")){let a=JSON.parse(Cookies.get("marja_wishlist"));t.wishlist=a[0].posts.length}if("undefined"!==Cookies.get("marja_compare")){let i=JSON.parse(Cookies.get("marja_compare"));t.compare=i[0].posts.length}}catch(n){}e('.elementor-element.lakit-wishlist-trigger .elementor-icon, a[data-action="lakit_wishlist"]').each(function(){0==e(this).find(".la-wishlist-count").length?e(this).append('<span class="la-wishlist-count">'+t.wishlist+"</span>"):e(this).find(".la-wishlist-count").html(t.wishlist)}),e('.elementor-element.lakit-compare-trigger .elementor-icon, a[data-action="lakit_compare"]').each(function(){0==e(this).find(".la-compare-count").length?e(this).append('<span class="la-compare-count">'+t.compare+"</span>"):e(this).find(".la-compare-count").html(t.compare)}),e(document).on("click",".lakit-cart-trigger a.menu-item-link",function(t){t.preventDefault(),e(".lakit-cart").addClass("lakit-cart-open")})},LaStudio.core.elementorFrontendInit=function(t,a){a&&e(window).trigger("elementor/frontend/init"),t.removeClass("need-reinit-js"),t.find("[data-element_type]").each(function(){var t=e(this),a=t.data("element_type");if(a)try{"widget"===a&&(a=t.data("widget_type"),window.elementorFrontend.hooks.doAction("frontend/element_ready/widget",t,e)),window.elementorFrontend.hooks.doAction("frontend/element_ready/global",t,e),window.elementorFrontend.hooks.doAction("frontend/element_ready/"+a,t,e)}catch(i){return console.log(i),t.remove(),!1}})},LaStudio.core.DomLoadEvent=function(){t.on("elementor/frontend/init",function(){"undefined"!=typeof elementorFrontend&&void 0!==elementorFrontend.hooks&&(elementorFrontend.hooks.addAction("frontend/element_ready/toggle.default",function(e){e.hasClass("toggle__active-first")&&e.find(".elementor-toggle-item:first-child .elementor-tab-title").trigger("click")},20),elementorFrontend.hooks.addAction("frontend/element_ready/widget",function(t){t.is('[class*="elementor-widget-wp-widget"]')&&(e("body").hasClass("elementor-editor-active")&&t.removeClass("--lakit-wp--widget --inited"),LaStudio.core.Blog(t))}))}),document.addEventListener("DOMContentLoaded",function(){LaStudio.global.isPageSpeed()||e("body").addClass("dom-completely-loaded body-completely-loaded"),la_theme_config.has_wc&&"undefined"==typeof LaStudioWooCommerce&&LaStudio.global.loadDependencies([LaStudio.global.loadJsFile("woocommerce")],function(){LaStudioWooCommerce.AutoInit()}),la_theme_config.has_wc&&"undefined"!=typeof LaStudioWooCommerce&&LaStudioWooCommerce.AutoInit()})},LaStudio.core.OpenNewsletterPopup=function(t,a){var i="open-newsletter-popup",n=function(){e.featherlight(t,{persist:"shared",type:"jquery",background:'<div class="featherlight featherlight-loading"><div class="featherlight-outer"><button class="featherlight-close-icon featherlight-close" aria-label="Close"><i class="lastudioicon-e-remove"></i></button><div class="featherlight-content"><div class="featherlight-inner"><div class="la-loader spinner3"><div class="dot1"></div><div class="dot2"></div><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div><div class="cube1"></div><div class="cube2"></div><div class="cube3"></div><div class="cube4"></div></div></div></div></div><div class="custom-featherlight-overlay"></div></div>',beforeClose:function(a){var i="#__tmp__"+t.attr("id");t.insertBefore(e(i)),e(i).remove()},beforeOpen:function(){e('<div id="__tmp__'+t.attr("id")+'" class="featherlight__placeholder"></div>').insertBefore(t),o.addClass(i)},afterOpen:function(t){LaStudio.core.initAll(e(".featherlight-content"))},afterClose:function(e){"function"==typeof a&&a(),o.removeClass(i)}})};e.isFunction(e.fn.featherlight)?n():LaStudio.global.loadDependencies([LaStudio.global.loadJsFile("featherlight")],n)},LaStudio.component.NewsletterPopup=function(t){var a=e(t),i=parseInt(a.attr("data-show-mobile")||0),o=parseInt(a.attr("data-delay")||2e3),n=parseInt(a.attr("data-back-time")||1),l=parseInt(a.attr("data-waitfortrigger")||0);return 1==l&&e(document).on("click touchend",".elm-trigger-open-newsletter",function(e){e.preventDefault(),LaStudio.core.OpenNewsletterPopup(a)}),{init:function(){if(1!=l&&(!(767>e(window).width())||!i)){try{if("yes"==Cookies.get("marja_dont_display_popup"))return}catch(t){LaStudio.global.log(t)}e(window).load(function(){setTimeout(function(){LaStudio.core.OpenNewsletterPopup(a,function(){if(e(".cbo-dont-show-popup",a).length&&e(".cbo-dont-show-popup",a).is(":checked"))try{Cookies.set("marja_dont_display_popup","yes",{expires:n,path:"/"})}catch(t){}})},o)})}}}}}(jQuery),function(e){"use strict";LaStudio.global.setBrowserInformation(),e(function(){e(document).trigger("LaStudio:Document:BeforeRunScript"),LaStudio.core.SitePreload(),e(".lakit-ajax-searchform").each(function(){LaStudio.core.InstanceSearch(e(this))}),LaStudio.core.initAll(e(document)),LaStudio.core.ElementClickEvent(),LaStudio.core.CustomFunction(),e(document).trigger("LaStudio:Document:AfterRunScript"),e(document).on("lastudio-kit/carousel/init_success",function(e,t){LaStudio.core.initAll(t.swiperContainer)})}),document.addEventListener("DOMContentLoaded",function(){LaStudio.core.Blog(),e(".site-header--default").length&&LaStudio.core.Blog(e(".site-header--default"))}),window.addEventListener("load",LaStudio.core.OnLoadEvent),LaStudio.core.DomLoadEvent(),e(document).trigger("LaStudio:Document:AfterInitAllScript")}(jQuery),function(e){"use strict";e(function(){e(document).on("LaStudio:Component:Popup:beforeOpen",function(t,a){if("iframe"===a.type&&a.target.match(/\.(mp4|m4p|m4v|mov|webm|ogg)(\?\S*)?$/i)){var i=e("<video></video>");i.attr("src",a.target);var o=i[0];o.addEventListener("loadedmetadata",function(e){var t=LaStudio.global.calculateAspectRatioFit(o.videoWidth,o.videoHeight,.9*window.innerWidth,.9*window.innerHeight);a.$instance.addClass("featherlight--cvideo").css({"--video-ratio":o.videoHeight/o.videoWidth,"--video-naturalWidth":t.width+"px","--video-naturalHeight":t.height+"px"})})}}),e(document).on("LaStudio:Component:Popup:afterOpen",function(e,t){if("iframe"===t.type&&t.target.match(/\.(mp4|m4p|m4v|mov|webm|ogg)(\?\S*)?$/i))try{(t.$content.get(0).contentDocument||t.$content.get(0).contentWindow.document).querySelector("video").setAttribute("style","width: 100%"),t.$instance.addClass("featherlight--cvideo-internal")}catch(a){t.$instance.addClass("featherlight--cvideo-external")}})})}(jQuery),function(e){"use strict";e(function(){e(document).on("click",".elementor-widget[data-send2frm] .elementor-widget-container",function(t){t.preventDefault();var a=e(this).closest(".elementor-widget"),i=a.attr("data-field"),o=a.attr("data-value");e('.elementor-widget[data-field="'+i+'"]').removeClass("selected"),a.addClass("selected"),e('[name="'+i+'"]').val(o)}),e(document).on("lastudio-kit/carousel/init_success",function(e,t){LaStudio.core.initAll(t.swiperContainer)}),e(document).on("click",".custom-featherlight-overlay",function(t){try{e.featherlight.close()}catch(a){}})})}(jQuery);