(function(){window.WPD="undefined"!==typeof window.WPD?window.WPD:{};window.WPD.ajaxsearchlite=new function(){this.prevState=null;this.firstIteration=!0;this.helpers={};this.plugin={};this.addons={addons:[],add:function(d){-1==this.addons.indexOf(d)&&(d=this.addons.push(d),this.addons[d-1].init())},remove:function(d){this.addons.filter(function(b){return b.name==d?("undefined"!=typeof b.destroy&&b.destroy(),!1):!0})}}}})();(function(d){let b=window.WPD.ajaxsearchlite.helpers;d.fn.extend(window.WPD.ajaxsearchlite.plugin,{setFilterStateInput:function(a){let c=this;"undefined"==typeof a&&(a=65);let f=function(){JSON.stringify(c.originalFormData)!=JSON.stringify(b.formData(d("form",c.n("searchsettings"))))?c.n("searchsettings").find("input[name=filters_initial]").val(0):c.n("searchsettings").find("input[name=filters_initial]").val(1)};0==a?f():setTimeout(function(){f()},a)}})})(WPD.dom);(function(d){let b=window.WPD.ajaxsearchlite.helpers;d.fn.extend(window.WPD.ajaxsearchlite.plugin,{liveLoad:function(a,c,f,e){function l(h){h=b.Hooks.applyFilters("asl/live_load/raw_data",h,g);var n=new DOMParser;let p=n.parseFromString(h,"text/html"),q=d(p);g.o.statistics&&g.stat_addKeyword(g.o.id,g.n("text").val());""!=h&&0d(a).length&&(m.forEach(function(h){if(0d(a).length))return console.log("Ajax Search Lite: The live search selector does not exist on the page."),!1;a=b.Hooks.applyFilters("asl/live_load/selector",a,this);let k=d(a).first(),g=this;g.searchAbort();k.css("opacity",.4);b.Hooks.applyFilters("asl/live_load/start",c,g,a,k.get(0));e||1!=g.n("searchsettings").find("input[name=filters_initial]").val()||""!=g.n("text").val()?(g.searching=!0,g.post=d.fn.ajax({url:c,method:"GET",success:function(h){l(h)},dataType:"html",fail:function(h){k.css("opacity",1);h.aborted||(k.html("This request has failed. Please check your connection."),g.hideLoader(),g.searching=!1,g.n("proclose").css({display:"block"}))}})):window.WPD.intervalUntilExecute(function(){l(ASL.pageHTML)},function(){return""!=ASL.pageHTML})},getCurrentLiveURL:function(){var a="asl_ls="+b.nicePhrase(this.n("text").val());let c="&",f=window.location.href;f=-1a?0:a,behavior:"smooth"})}}})})(WPD.dom);(function(d){d.fn.extend(window.WPD.ajaxsearchlite.plugin,{createVerticalScroll:function(){}})})(WPD.dom);(function(d){let b=window.WPD.ajaxsearchlite.helpers;d.fn.extend(window.WPD.ajaxsearchlite.plugin,{searchAbort:function(){null!=this.post&&this.post.abort()},searchWithCheck:function(a){let c=this;"undefined"==typeof a&&(a=50);c.n("text").val().lengthThe request failed. Please check your connection! Status: '+e.status+""),a.nodes.items=d(".item",a.n("resultsDiv")),a.hideLoader(),a.showResults(),a.scrollToResults())}})}}})})(WPD.dom);(function(d){d.fn.extend(window.WPD.ajaxsearchlite.plugin,{searchFor:function(b){"undefined"!=typeof b&&this.n("text").val(b);this.n("textAutocomplete").val("");this.search(!1,!1,!1,!0)},toggleSettings:function(b){"undefined"!=typeof b?"show"==b?this.showSettings():this.hideSettings():1==this.n("prosettings").data("opened")?this.hideSettings():this.showSettings()},closeResults:function(b){"undefined"!=typeof b&&b&&(this.n("text").val(""),this.n("textAutocomplete").val(""));this.hideResults();this.n("proloading").css("display","none");this.hideLoader();this.searchAbort()},getStateURL:function(){let b=location.href,a;b=b.split("p_asid");b=b[0];b=b.replace("&asl_active=1","");b=b.replace("?asl_active=1","");b="?"==b.slice(-1)?b.slice(0,-1):b;b="&"==b.slice(-1)?b.slice(0,-1):b;a=1=b?"phone":1024>=b?"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 b=window.navigator.userAgent;let a=b.indexOf("MSIE ");b=b.indexOf("Trident/");return 0');e.attr("action",b);e.attr("method",a);d("body").append(e);"undefined"!==typeof c&&null!==c&&Object.keys(c).forEach(function(l){let m=c[l],k=d('');k.attr("name",l);k.attr("value",m);e.append(k)});"undefined"!=typeof f&&"new"==f&&e.attr("target","_blank");e.get(0).submit()},openInNewTab:function(b){Object.assign(document.createElement("a"),{target:"_blank",href:b}).click()},isScrolledToBottom:function(b,a){return b.scrollHeight-b.scrollTop-d(b).outerHeight()b?100:b},nicePhrase:function(b){return encodeURIComponent(b).replace(/%20/g,"+")},unqoutePhrase:function(b){return b.replace(/["']/g,"")},decodeHTMLEntities:function(b){let a=document.createElement("div");b&&"string"===typeof b&&(b=b.replace(/]*>([\S\s]*?)<\/script>/gmi,""),b=b.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gmi,""),a.innerHTML=b,b=a.textContent,a.textContent="");return b},isScrolledToRight:function(b){return b.scrollWidth-d(b).outerWidth()===b.scrollLeft},isScrolledToLeft:function(b){return 0===b.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(d){let b=window.WPD.ajaxsearchlite.helpers;d.fn.extend(window.WPD.ajaxsearchlite.plugin,{detectAndFixFixedPositioning:function(){let a=!1,c=this.n("search").get(0);for(;c;)if(c=c.parentElement,null!=c&&"fixed"==window.getComputedStyle(c).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","z-index":2147483647})):("fixed"==this.n("resultsDiv").css("position")&&this.n("resultsDiv").css("position","absolute"),this.o.blocking||this.n("searchsettings").css("position","absolute"))},fixResultsPosition:function(a){a="undefined"==typeof a?!1:a;var c=d("body");let f=0;var e=this.n("resultsDiv").css("position");if(0!=d._fn.bodyTransformY()||"static"!=c.css("position"))f=c.offset().top;0!=d._fn.bodyTransformY()&&"fixed"==e&&(e="absolute",this.n("resultsDiv").css("position","absolute"));"fixed"==e&&(f=0);if("fixed"==e||"absolute"==e)if(1==a||"visible"==this.n("resultsDiv").css("visibility")){a=this.n("search").offset();e=0;if(0!=d._fn.bodyTransformX()||"static"!=c.css("position"))e=c.offset().left;if("undefined"!=typeof a){let l=0;c="phone"==b.deviceType()?this.o.results.width_phone:"tablet"==b.deviceType()?this.o.results.width_tablet:this.o.results.width;"auto"==c&&(c=240>this.n("search").outerWidth()?240:this.n("search").outerWidth());this.n("resultsDiv").css("width",isNaN(c)?c:c+"px");"right"==this.o.resultsSnapTo?l=this.n("resultsDiv").outerWidth()-this.n("search").outerWidth():"center"==this.o.resultsSnapTo&&(l=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-l-e+"px"})}}},fixSettingsPosition:function(a){a="undefined"==typeof a?!1:a;var c=d("body"),f=0,e=this.n("searchsettings").css("position");if(0!=d._fn.bodyTransformY()||"static"!=c.css("position"))f=c.offset().top;0!=d._fn.bodyTransformY()&&"fixed"==e&&(e="absolute",this.n("searchsettings").css("position","absolute"));"fixed"==e&&(f=0);if(1==a||0!=this.n("prosettings").data("opened")){a=0;if(0!=d._fn.bodyTransformX()||"static"!=c.css("position"))a=c.offset().left;this.fixSettingsWidth();c="none"!=this.n("prosettings").css("display")?this.n("prosettings"):this.n("promagnifier");e=c.offset();f=e.top+c.height()-2-f+"px";c="left"==this.o.settingsimagepos?e.left:e.left+c.width()-this.n("searchsettings").width();c=c-a+"px";this.n("searchsettings").css({display:"block",top:f,left:c})}},fixSettingsWidth:function(){},hideOnInvisibleBox:function(){if(1==this.o.detectVisibility&&!this.n("search").hasClass("hiddend")&&(this.n("search").is(":hidden")||!this.n("search").is(":visible"))){let a;null==(a=this.hideSettings)||a.call(this);this.hideResults()}}})})(WPD.dom);(function(d){d.fn.extend(window.WPD.ajaxsearchlite.plugin,{initMagnifierEvents:function(){let b=this;b.n("promagnifier").on("click",function(a){b.keycode=a.keyCode||a.which;b.ktype=a.type;let c;null==(c=b.gaEvent)||c.call(b,"magnifier");if(b.n("text").val().length>=b.o.charcount&&1==b.o.redirectOnClick&&"first_result"!=b.o.trigger.click)return b.doRedirectToResults("click"),clearTimeout(void 0),!1;if("ajax_search"!=b.o.trigger.click&&"first_result"!=b.o.trigger.click)return!1;b.searchAbort();clearTimeout(b.timeouts.search);b.n("proloading").css("display","none");b.timeouts.search=setTimeout(function(){d("form",b.n("searchsettings")).serialize()+b.n("text").val().trim()!=b.lastSuccesfulSearch||!b.resultsOpened&&!b.usingLiveLoader?b.search():b.isRedirectToFirstResult()?b.doRedirectToFirstResult():b.n("proclose").css("display","block")},b.o.trigger.delay)})}})})(WPD.dom);(function(d){let b=window.WPD.ajaxsearchlite.helpers;d.fn.extend(window.WPD.ajaxsearchlite.plugin,{initInputEvents:function(){let a=this,c=!1,f=function(){a.n("text").off("mousedown touchstart keydown",f);if(!c){a._initFocusInput();a.o.trigger.type&&a._initSearchInput();a._initEnterEvent();a._initFormEvent();let e;null==(e=a.initAutocompleteEvent)||e.call(a);c=!0}};a.n("text").on("mousedown touchstart keydown",f,{passive:!0})},_initFocusInput:function(){let a=this;a.n("text").on("click",function(c){c.stopPropagation();c.stopImmediatePropagation();d(this).trigger("focus");let f;null==(f=a.gaEvent)||f.call(a,"focus");if(d("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(c){a.searching||(""!=d(this).val()?a.n("proclose").css("display","block"):a.n("proclose").css({display:"none"}))})},_initSearchInput:function(){let a=this,c=a.n("text").val();a.n("text").on("input",function(f){a.keycode=f.keyCode||f.which;a.ktype=f.type;if(b.detectIE()){if(c==a.n("text").val())return!1;c=a.n("text").val()}a.updateHref();if(a.n("text").val().length=a.o.charcount&&e&&13==a.keycode){let l;null==(l=a.gaEvent)||l.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&&(d("form",a.n("searchsettings")).serialize()+a.n("text").val().trim()!=a.lastSuccesfulSearch||!a.resultsOpened&&!a.usingLiveLoader)&&a.search();clearTimeout(a.timeouts.search)}})},_initFormEvent:function(){let a=this;d(a.n("text").closest("form").get(0)).on("submit",function(c,f){c.preventDefault();b.isMobile()?a.o.redirectOnEnter?(c=new Event("keyup"),c.keyCode=c.which=13,this.n("text").get(0).dispatchEvent(c)):(a.search(),document.activeElement.blur()):"undefined"!=typeof f&&"ajax"==f&&a.search()})}})})(WPD.dom);(function(d){d.fn.extend(window.WPD.ajaxsearchlite.plugin,{initNavigationEvents:function(){let b=this,a=function(c){let f=c.keyCode||c.which;if(0parseInt(a.n("text").css("font-size"))&&(a.n("text").data("fontSize",a.n("text").css("font-size")).css("font-size","16px"),a.n("textAutocomplete").css("font-size","16px"),d("body").append(""))},orientationChange:function(){this.detectAndFixFixedPositioning();this.fixSettingsPosition();this.fixResultsPosition();"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();"isotopic"==this.o.resultstype&&"visible"==this.n("resultsDiv").css("visibility")&&(this.calculateIsotopeRows(),this.showPagination(!0),this.removeAnimation())},scrolling:function(a){this.detectAndFixFixedPositioning();this.hideOnInvisibleBox();this.fixSettingsPosition(a);this.fixResultsPosition(a)},initTryThisEvents:function(){let a=this;0this.animOptions.items.indexOf("In")?"opacityOne":"opacityZero";this.o.redirectOnClick="ajax_search"!=this.o.trigger.click&&"nothing"!=this.o.trigger.click;this.o.redirectOnEnter="ajax_search"!=this.o.trigger.return&&"nothing"!=this.o.trigger.return;if(this.usingLiveLoader=this.o.resPage.useAjax&&0=this.n("resultsAppend").length?(this.nodes.resultsDiv=this.n("resultsDiv").clone(),d("body").append(this.n("resultsDiv"))):(this.o.resultsposition="block",this.n("resultsDiv").css({position:"static"}),0=b?9999:b;let h=a(".asl_group_header",this.n("resultsDiv"));if(0==this.o.itemscount||this.n("items").length<=this.o.itemscount)this.n("results").css({height:"auto"});else if(1>this.call_num&&this.n("results").css({height:"30px"}),1>this.call_num){let c=0,d=0,e=0,g=0;this.n("items").forEach(function(){d+=a(this).outerHeight(!0);a(this).outerHeight(!0)>g&&(g=a(this).outerHeight(!0));c++});e=g*b;e>d&&(e=d);c=1>c?1:c;d=d/c*b;0a?0:a,d("html").animate({scrollTop:a},500)))}),!1};window.ASL.initializeOtherEvents=function(){let b,a=this;d("body").on("click touchend","#menu-item-search, .fa-search, .fa, .fas, .fusion-flyout-menu-toggle, .fusion-main-menu-search-open, #search_button, .mini-search.popup-search, .icon-search, .menu-item-search-dropdown, .mobile-menu-button, .td-icon-search, .tdb-search-icon, .side_menu_button, .search_button, .raven-search-form-toggle, [data-elementor-open-lightbox], .elementor-button-link, .elementor-button, i[class*=-search], a[class*=-search]",function(){clearTimeout(b);b=setTimeout(function(){a.initializeSearchByID()},300)});if("undefined"!=typeof jQuery)jQuery(document).on("elementor/popup/show",function(){setTimeout(function(){a.initializeSearchByID()},10)})};window.ASL.initializeMutateDetector=function(){let b;"undefined"!=typeof ASL.detect_ajax&&1==ASL.detect_ajax&&(new MutationObserver(function(){clearTimeout(b);b=setTimeout(function(){ASL.initializeSearchByID()},500)})).observe(document.querySelector("body"),{subtree:!0,childList:!0})};window.ASL.ready=function(){if("complete"===document.readyState||"loaded"===document.readyState||"interactive"===document.readyState)this.initialize();else d(document).on("DOMContentLoaded",this.initialize)};window.ASL.loadScriptStack=function(b){let a;0