(function(){window.WPD="undefined"!==typeof window.WPD?window.WPD:{};window.WPD.ajaxsearchpro=new function(){this.prevState=null;this.firstIteration=!0;this.helpers={};this.plugin={};this.addons={addons:[],add:function(c){-1==this.addons.indexOf(c)&&(c=this.addons.push(c),this.addons[c-1].init())},remove:function(c){this.addons.filter(function(d){return d.name==c?("undefined"!=typeof d.destroy&&d.destroy(),!1):!0})}}}})(); (function(c){c.fn.extend(window.WPD.ajaxsearchpro.plugin,{addAnimation:function(){let d=this,a=0,b=1,f=!0;if(0d.il.itemsPerPage?c(g).removeClass("opacityZero"): (setTimeout(function(){c(g).addClass("asp_an_"+d.animOptions.items);c(g).removeClass("opacityZero")},a+25),a+=45,b++)})},removeAnimation:function(){let d=this;this.n.items.each(function(){c(this).removeClass("asp_an_"+d.animOptions.items)})}})})(WPD.dom); (function(c){let d=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{setFilterStateInput:function(a){let b=this;"undefined"==typeof a&&(a=65);let f=function(){JSON.stringify(b.originalFormData)!=JSON.stringify(d.formData(c("form",b.n.searchsettings)))?b.n.searchsettings.find("input[name=filters_initial]").val(0):b.n.searchsettings.find("input[name=filters_initial]").val(1)};0==a?f():setTimeout(function(){f()},a)},resetSearchFilters:function(){d.formData(c("form",this.n.searchsettings), this.originalFormData);this.resetNoUISliderFilters();"undefined"!=typeof this.select2jQuery&&this.select2jQuery(this.n.searchsettings.get(0)).find(".asp_gochosen,.asp_goselect2").trigger("change.asp_select2");this.n.text.val("");this.n.proloading.css("display","none");this.hideLoader();this.searchAbort();this.setFilterStateInput(0)},resetNoUISliderFilters:function(){0d.n.searchsettings.get(0).referenced&&d.n.searchsettings.remove()):d.n.searchsettings.remove();"undefined"!==typeof d.n.resultsDiv.get(0).referenced?(--d.n.resultsDiv.get(0).referenced,0>d.n.resultsDiv.get(0).referenced&&d.n.resultsDiv.remove()):d.n.resultsDiv.remove(); d.n.trythis.remove();d.n.search.remove();d.n.container.remove();d.documentEventHandlers.forEach(function(a){c(a.node).off(a.event,a.handler)})}})})(WPD.dom); (function(c){let d=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{isRedirectToFirstResult:function(){return(0'+a):this.n.resdrg.html(this.n.resdrg.html()+a)},showResultsBox:function(){this.n.s.trigger("asp_results_show",[this.o.id,this.o.iid],!0,!0);this.n.resultsDiv.css({display:"block",height:"auto"});this.n.results.find(".item, .asp_group_header").addClass(this.animationOpacity);this.n.resultsDiv.css(this.resAnim.showCSS);this.n.resultsDiv.removeClass(this.resAnim.hideClass).addClass(this.resAnim.showClass); this.fixResultsPosition(!0)},scrollToResults:function(){var a=Math.floor(.1*window.innerHeight);if(!(!this.resultsOpened||0a?0:a,behavior:"smooth"})}}, showAnimatedImages:function(){this.n.items.each(function(){let a=c(this).find(".asp_image[data-src]"),b=a.data("src");if("undefined"!=typeof b&&null!=b&&""!==b&&-1').get(0));let f=c(this).find("canvas").get(0),g=c(this).find(".asp_item_canvas"),h=f.getContext("2d"),e=new Image;e.crossOrigin="anonymous";e.onload=function(){c(f).attr({width:e.width,height:e.height});h.drawImage(e,0,0,e.width, e.height);g.css({"background-image":"url("+f.toDataURL()+")"})};e.src=b}})},updateInfoHeader:function(a){let b,f=this.n.resultsDiv.find(".asp_results_top"),g=this.n.text.val().trim();0=this.n.items.length?f.css("display","none"):(""!==g&&""!==this.resInfoBoxTxt?b=this.resInfoBoxTxt:""===g&&""!==this.resInfoBoxTxtNoPhrase&&(b=this.resInfoBoxTxtNoPhrase),""!==b?(b=b.replace("{phrase}",this.n.text.val()),b=b.replace("{results_count}",this.n.items.length),b=b.replace("{results_count_total}", a),f.html(b),f.css("display","block")):f.css("display","none")))}})})(WPD.dom); (function(c){let d=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{createResultsScroll:function(a){let b=this,f,g=b.n.results;a="undefined"==typeof a?"vertical":a;0a;a++)if(this.o.id+"_"+a!=this.o.rid&&!1!==ASP.instances.get(this.o.id,a))return ASP.instances.get(this.o.id,a).searching;return!1},searchAbort:function(){null!=this.post&&this.post.abort()},searchWithCheck:function(a){let b=this;"undefined"==typeof a&&(a=50);b.n.text.val().length").html(l).text()),"elementor_page"!=e.o.show_more.action&&1The request failed. Please check your connection! Status: '+m.status+""),e.n.items=0=d?"phone":1024>=d?"tablet":"desktop"},detectIOS:function(){return"undefined"!=typeof window.navigator&&"undefined"!=typeof window.navigator.userAgent?null!=window.navigator.userAgent.match(/(iPod|iPhone|iPad)/):!1},detectIE:function(){var d=window.navigator.userAgent;let a=d.indexOf("MSIE ");d=d.indexOf("Trident/");return 0');g.attr("action",d);g.attr("method",a);c("body").append(g);"undefined"!==typeof b&&null!==b&&Object.keys(b).forEach(function(h){let e= b[h],n=c('');n.attr("name",h);n.attr("value",e);g.append(n)});"undefined"!=typeof f&&"new"==f&&g.attr("target","_blank");g.get(0).submit()},openInNewTab:function(d){Object.assign(document.createElement("a"),{target:"_blank",href:d}).click()},isScrolledToBottom:function(d,a){return d.scrollHeight-d.scrollTop-c(d).outerHeight()d?100:d},nicePhrase:function(d){return encodeURIComponent(d).replace(/%20/g,"+")},unqoutePhrase:function(d){return d.replace(/["']/g,"")},decodeHTMLEntities:function(d){let a=document.createElement("div");d&&"string"===typeof d&&(d=d.replace(/]*>([\S\s]*?)<\/script>/gmi,""),d=d.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gmi,""),a.innerHTML=d,d=a.textContent,a.textContent="");return d},isScrolledToRight:function(d){return d.scrollWidth- c(d).outerWidth()===d.scrollLeft},isScrolledToLeft:function(d){return 0===d.scrollLeft},wp_hooks_apply_filters:function(){return"undefined"!=typeof wp&&"undefined"!=typeof wp.hooks&&"undefined"!=typeof wp.hooks.applyFilters?wp.hooks.applyFilters.apply(null,arguments):"undefined"!=typeof arguments[1]?arguments[1]:!1}})})(WPD.dom); (function(c){let d=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{detectAndFixFixedPositioning:function(){let a=!1,b=this.n.search.get(0);for(;b;)if(b=b.parentElement,null!=b&&"fixed"==window.getComputedStyle(b).position){a=!0;break}a||"fixed"==this.n.search.css("position")?("absolute"==this.n.resultsDiv.css("position")&&this.n.resultsDiv.css({position:"fixed","z-index":2147483647}),this.o.blocking||this.n.searchsettings.css("position","fixed")):("fixed"==this.n.resultsDiv.css("position")&& this.n.resultsDiv.css("position","absolute"),this.o.blocking||this.n.searchsettings.css("position","absolute"))},fixAccessibility:function(){this.n.searchsettings.find("input.asp_select2-search__field").attr("aria-label","Select2 search")},fixTryThisPosition:function(){this.n.trythis.css({left:this.n.search.position().left})},fixResultsPosition:function(a){a="undefined"==typeof a?!1:a;var b=c("body");let f=0;var g=this.n.resultsDiv.css("position");if(0!=c._fn.bodyTransformY()||"static"!=b.css("position"))f= b.offset().top;0!=c._fn.bodyTransformY()&&"fixed"==g&&(g="absolute",this.n.resultsDiv.css("position","absolute"));"fixed"==g&&(f=0);if("fixed"==g||"absolute"==g)if(1==a||"visible"==this.n.resultsDiv.css("visibility"))if(a=this.n.search.offset(),g="fixed"!=g?c("body").offset().left:0,"undefined"!=typeof a){let h=0;b="phone"==d.deviceType()?this.o.results.width_phone:"tablet"==d.deviceType()?this.o.results.width_tablet:this.o.results.width;"auto"==b&&(b=240>this.n.search.outerWidth()?240:this.n.search.outerWidth()); this.n.resultsDiv.css("width",isNaN(b)?b:b+"px");"right"==this.o.resultsSnapTo?h=this.n.resultsDiv.outerWidth()-this.n.search.outerWidth():"center"==this.o.resultsSnapTo&&(h=Math.floor((this.n.resultsDiv.outerWidth()-parseInt(this.n.search.outerWidth()))/2));this.n.resultsDiv.css({top:a.top+this.n.search.outerHeight(!0)-f+"px",left:a.left-h-g+"px"})}},fixSettingsPosition:function(a){a="undefined"==typeof a?!1:a;var b=c("body"),f=0,g=this.n.searchsettings.css("position");if(0!=c._fn.bodyTransformY()|| "static"!=b.css("position"))f=b.offset().top;0!=c._fn.bodyTransformY()&&"fixed"==g&&(g="absolute",this.n.searchsettings.css("position","absolute"));"fixed"==g&&(f=0);1!=a&&0==this.n.prosettings.data("opened")||1==this.o.blocking||(a="fixed"!=g?c("body").offset().left:0,this.fixSettingsWidth(),"undefined"!==typeof WebKitCSSMatrix&&(b=window.getComputedStyle(document.body),"undefined"!=typeof b.transform&&"undefined"!=typeof b.transform.m42&&0!=(new WebKitCSSMatrix(b.transform)).m42&&(f=c("body").offset().top)), b="none"!=this.n.prosettings.css("display")?this.n.prosettings:this.n.promagnifier,g=b.offset(),f=g.top+b.height()-2-f+"px",b="left"==this.o.settingsimagepos?g.left:g.left+b.width()-this.n.searchsettings.width(),b=b-a+"px",this.n.searchsettings.css({display:"block",top:f,left:b}))},fixSettingsWidth:function(){if(!this.o.blocking&&"masonry"!=this.o.fss_layout&&(this.n.searchsettings.css({width:"100%"}),10=a?1:a;this.n.searchsettings.css({width:a*c("fieldset",this.n.searchsettings).outerWidth(!0)+8+"px"})}},hideOnInvisibleBox:function(){1!=this.o.detectVisibility||0!=this.o.compact.enabled||this.n.search.hasClass("hiddend")||this.n.search.isVisible()||(this.hideSettings(),this.hideResults())}})})(WPD.dom); (function(c){let d=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{initMagnifierEvents:function(){let a=this;a.n.promagnifier.on("click",function(b){let f=a.n.search.attr("asp-compact")||"closed";a.keycode=b.keyCode||b.which;a.ktype=b.type;if(1==a.o.compact.enabled&&("closed"==f||1==a.o.compact.closeOnMagnifier&&"open"==f))return!1;let g;null==(g=a.gaEvent)||g.call(a,"magnifier");if(a.n.text.val().length>=a.o.charcount&&1==a.o.redirectOnClick&&"first_result"!=a.o.trigger.click)return a.doRedirectToResults("click"), clearTimeout(void 0),!1;if("ajax_search"!=a.o.trigger.click&&"first_result"!=a.o.trigger.click)return!1;a.searchAbort();clearTimeout(a.timeouts.search);a.n.proloading.css("display","none");a.n.text.val().length>=a.o.charcount&&(a.timeouts.search=setTimeout(function(){c("form",a.n.searchsettings).serialize()+a.n.text.val().trim()!=a.lastSuccesfulSearch||!a.resultsOpened&&!a.usingLiveLoader?a.search():a.isRedirectToFirstResult()?a.doRedirectToFirstResult():a.n.proclose.css("display","block")},a.o.trigger.delay))})}, initButtonEvents:function(){let a=this;a.n.searchsettings.find("button.asp_s_btn").on("click",function(b){a.ktype="button";b.preventDefault();if(a.n.text.val().length>=a.o.charcount){if("ajax_search"!=a.o.sb.redirect_action)if("first_result"!=a.o.sb.redirect_action)a.doRedirectToResults("button");else{if(a.isRedirectToFirstResult())return a.doRedirectToFirstResult(),!1;a.search()}else c("form",a.n.searchsettings).serialize()+a.n.text.val().trim()==a.lastSuccesfulSearch&&a.resultsOpened||a.search(); clearTimeout(a.timeouts.search)}});a.n.searchsettings.find("button.asp_r_btn").on("click",function(b){let f=d.formData(c("form",a.n.searchsettings)),g=a.n.text.val();b.preventDefault();a.resetSearchFilters();"live"!=a.o.rb.action||JSON.stringify(f)==JSON.stringify(d.formData(c("form",a.n.searchsettings)))&&""==g?"close"==a.o.rb.action&&a.hideResults():a.search(!1,!1,!1,!0,!0)})}})})(WPD.dom); (function(c){let d=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{initInputEvents:function(){this._initFocusInput();this._initSearchInput();this._initEnterEvent();this._initFormEvent()},_initFocusInput:function(){let a=this;a.n.text.on("click",function(b){b.stopPropagation();b.stopImmediatePropagation();c(this).trigger("focus");let f;null==(f=a.gaEvent)||f.call(a,"focus");if(c("form",a.n.searchsettings).serialize()+a.n.text.val().trim()==a.lastSuccesfulSearch)return a.resultsOpened|| a.usingLiveLoader||(a._no_animations=!0,a.showResults(),a._no_animations=!1),!1});a.n.text.on("focus input",function(){a.searching||(""!=c(this).val()?a.n.proclose.css("display","block"):a.n.proclose.css({display:"none"}))})},_initSearchInput:function(){let a=this,b=a.n.text.val();a.n.text.on("input",function(f){a.keycode=f.keyCode||f.which;a.ktype=f.type;if(d.detectIE()){if(b==a.n.text.val())return!1;b=a.n.text.val()}a.updateHref();if(!a.o.trigger.type)return a.searchAbort(),clearTimeout(a.timeouts.search), a.hideLoader(),!1;a.hideArrowBox();if(a.n.text.val().length=a.o.charcount&&g&&13==a.keycode){let h;null==(h=a.gaEvent)||h.call(a,"return");1==a.o.redirectOnEnter?"first_result"!=a.o.trigger.return?a.doRedirectToResults(a.ktype): a.search():"ajax_search"==a.o.trigger.return&&(c("form",a.n.searchsettings).serialize()+a.n.text.val().trim()==a.lastSuccesfulSearch&&a.resultsOpened||a.search());clearTimeout(a.timeouts.search)}})},_initFormEvent:function(){let a=this;c(a.n.text.closest("form").get(0)).on("submit",function(b,f){b.preventDefault();d.isMobile()?a.o.redirectOnEnter?(b=new Event("keyup"),b.keyCode=b.which=13,this.n.text.get(0).dispatchEvent(b)):(a.search(),document.activeElement.blur()):"undefined"!=typeof f&&"ajax"== f&&a.search()})}})})(WPD.dom); (function(c){let d=window.WPD.ajaxsearchpro,a=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{initOtherEvents:function(){let b=this;if(a.isMobile()&&a.detectIOS())b.n.text.on("touchstart",function(){b.savedScrollTop=window.scrollY;b.savedContainerTop=b.n.search.offset().top});if(b.o.focusOnPageload)c(window).on("load",function(){b.n.text.get(0).focus()},{options:{once:!0}});b.n.proclose.on(b.clickTouchend,function(g){g.preventDefault();g.stopImmediatePropagation();b.n.text.val(""); b.n.textAutocomplete.val("");b.hideResults();b.n.text.trigger("focus");b.n.proloading.css("display","none");b.hideLoader();b.searchAbort();0parseInt(b.n.text.css("font-size"))&&(b.n.text.data("fontSize",b.n.text.css("font-size")).css("font-size","16px"),b.n.textAutocomplete.css("font-size","16px"),c("body").append(""))}, orientationChange:function(){this.detectAndFixFixedPositioning();this.fixSettingsPosition();this.fixResultsPosition();this.fixTryThisPosition();"isotopic"==this.o.resultstype&&"visible"==this.n.resultsDiv.css("visibility")&&(this.calculateIsotopeRows(),this.showPagination(!0),this.removeAnimation())},resize:function(){this.detectAndFixFixedPositioning();this.fixSettingsPosition();this.fixResultsPosition();this.fixTryThisPosition();this.hideArrowBox();"isotopic"==this.o.resultstype&&"visible"==this.n.resultsDiv.css("visibility")&& (this.calculateIsotopeRows(),this.showPagination(!0),this.removeAnimation())},scrolling:function(b){this.detectAndFixFixedPositioning();this.hideOnInvisibleBox();this.fixSettingsPosition(b);this.fixResultsPosition(b)},initTryThisEvents:function(){let b=this;b.n.trythis.find("a").on("click touchend",function(f){f.preventDefault();f.stopImmediatePropagation();b.o.compact.enabled&&"closed"==(b.n.search.attr("asp-compact")||"closed")&&b.n.promagnifier.trigger("click");document.activeElement.blur();b.n.textAutocomplete.val(""); b.n.text.val(c(this).html());let g;null==(g=b.gaEvent)||g.call(b,"try_this");setTimeout(function(){b.n.text.trigger("input")},50)})},initPrevState:function(){let b=this;d.firstIteration&&null==d.prevState&&(d.prevState=localStorage.getItem("asp-"+WPD.Base64.encode(location.href)),null!=d.prevState&&(d.prevState=JSON.parse(d.prevState),d.prevState.settings=WPD.Base64.decode(d.prevState.settings)));if(null!=d.prevState&&"undefined"!=typeof d.prevState.id&&(d.prevState.trigger&&d.prevState.id==b.o.id&& d.prevState.instance==b.o.iid&&(""!=d.prevState.phrase&&(b.triggerPrevState=!0,b.n.text.val(d.prevState.phrase)),a.formData(c("form",b.n.searchsettings))!=d.prevState.settings&&(b.triggerPrevState=!0,b.settingsChanged=!0,a.formData(c("form",b.n.searchsettings),d.prevState.settings)),null!==d.prevState.settingsOriginal&&(b.originalFormData=WPD.Base64.decode(d.prevState.settingsOriginal),b.setFilterStateInput(0))),"block"==b.o.resultsposition)){let g=!0;b.n.search.on("asp_results_show",function(){g&& (g=!1,setTimeout(function(){let h=0=e*(h-1)}};d.Hooks.addFilter("asp/init/etc",a)},initInfiniteScroll:function(){let a=this;if(a.o.show_more.infinite&&"polaroid"!=a.o.resultstype){let b,f;f=function(){clearTimeout(b);b=setTimeout(function(){a.checkAndTriggerInfiniteScroll("window")},80)};a.documentEventHandlers.push({node:window,event:"scroll",handler:f});c(window).on("scroll",f);a.n.results.on("scroll", f);let g;a.n.resultsDiv.on("nav_switch",function(){clearTimeout(g);g=setTimeout(function(){a.checkAndTriggerInfiniteScroll("isotopic")},800)})}},hooks:function(){let a=this;a.n.s.on("asp_elementor_results",function(b,f){a.o.id==f&&"function"==typeof jetpackLazyImagesModule&&setTimeout(function(){jetpackLazyImagesModule()},300)})}})})(WPD.dom); (function(c){let d=window.WPD.ajaxsearchpro,a=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{init:function(b,f){this.autopStartedTheSearch=this.isAutoP=this.triggerPrevState=this.searching=!1;this.autopData={};this.resultsOpened=this.settingsChanged=!1;this.postAuto=this.post=null;this.scroll={};this.savedContainerTop=this.savedScrollTop=0;this.is_scroll="undefined"!=typeof asp_SimpleBar;this.disableMobileScroll=!1;this.clickTouchend="click touchend";this.mouseupTouchend= "mouseup touchend";this.noUiSliders=[];this.timeouts={compactBeforeOpen:null,compactAfterOpen:null,search:null,searchWithCheck:null};this.eh={};this.documentEventHandlers=[];this.settScroll=null;this.currentPage=1;this.sIsotope=this.isotopic=null;this.lastSuccesfulSearch="";this.lastSearchData={};this._no_animations=!1;this.results_num=this.call_num=0;this.o=c.fn.extend({},b);this.n={};this.n.search=c(f);this.initNodeVariables();"undefined"!=typeof ASP.scrollbar&&0==ASP.scrollbar&&(this.is_scroll= !1);"horizontal"==this.o.resultstype&&0==this.o.scrollBar.horizontal.enabled&&(this.is_scroll=!1);a.isMobile()?this.animOptions=this.o.animations.mob:this.animOptions=this.o.animations.pc;this.animationOpacity=0>this.animOptions.items.indexOf("In")?"opacityOne":"opacityZero";this.resInfoBoxTxt=0");1==ASP.js_retain_popstate&&this.initPrevState();if(this.usingLiveLoader){let g; null==(g=this.initLiveLoaderPopState)||g.call(this)}"undefined"!==typeof this.initCompact&&this.initCompact();this.detectAndFixFixedPositioning();this.monitorTouchMove();"undefined"!==typeof this.initSettingsAnimations&&this.initSettingsAnimations();this.initResultsAnimations();this.initEvents();this.initAutop();this.initEtc();this.initInfiniteScroll();this.fixAccessibility();this.hooks();d.firstIteration=!1;"undefined"===typeof this.originalFormData&&(this.originalFormData=a.formData(c("form",this.n.searchsettings))); this.n.s.trigger("asp_init_search_bar",[this.o.id,this.o.iid],!0,!0);return this},initNodeVariables:function(){this.n.s=this.n.search;this.n.container=this.n.search.closest(".asp_w_container");this.o.id=this.n.search.data("id");this.o.iid=this.n.search.data("instance");this.o.rid=this.o.id+"_"+this.o.iid;this.o.name=this.n.search.data("name");this.n.searchsettings=c(".asp_ss",this.n.container);this.n.resultsDiv=c(".asp_r",this.n.container);this.n.probox=c(".probox",this.n.search);this.n.proinput= c(".proinput",this.n.search);this.n.text=c(".proinput input.orig",this.n.search);this.n.textAutocomplete=c(".proinput input.autocomplete",this.n.search);this.n.loading=c(".proinput .loading",this.n.search);this.n.proloading=c(".proloading",this.n.search);this.n.proclose=c(".proclose",this.n.search);this.n.promagnifier=c(".promagnifier",this.n.search);this.n.prosettings=c(".prosettings",this.n.search);this.fixClonedSelf();this.n.settingsAppend=c("#wpdreams_asp_settings_"+this.o.id);this.o.blocking= this.n.searchsettings.hasClass("asp_sb");"undefined"!==typeof this.initSettingsBox&&this.initSettingsBox();this.n.trythis=c("#asp-try-"+this.o.rid);this.n.resultsAppend=c("#wpdreams_asp_results_"+this.o.id);this.initResultsBox();this.n.hiddenContainer=c(".asp_hidden_data",this.n.container);this.n.aspItemOverlay=c(".asp_item_overlay",this.n.hiddenContainer);this.n.showmore=c(".showmore",this.n.resultsDiv);this.n.items=0=this.n.resultsAppend.length?(this.n.resultsDiv=this.n.resultsDiv.clone(),c("body").append(this.n.resultsDiv)): (this.o.resultsposition="block",this.n.resultsDiv.css({position:"static"}),0