(function(){var H={91:function(k,c,b){"use strict";b.r(c),b.d(c,{Hooks:function(){return C}});const C={filters:{},addFilter:function(h,r,w=10,v=null){this.filters[h]=this.filters[h]||[],this.filters[h].push({priority:w,scope:v,callback:r})},removeFilter:function(h,r){if(typeof this.filters[h]<"u")if(typeof r>"u")this.filters[h]=[];else{const w=this;this.filters[h].forEach(function(v,t){v.callback===r&&w.filters[h].splice(t,1)})}},applyFilters:function(h){let r=[],w=Array.prototype.slice.call(arguments),v=arguments[1];return typeof this.filters[h]<"u"&&this.filters[h].length>0&&(this.filters[h].forEach(function(t){r[t.priority]=r[t.priority]||[],r[t.priority].push({scope:t.scope,callback:t.callback})}),w.splice(0,2),r.forEach(function(t){t.forEach(function(n){v=n.callback.apply(n.scope,[v].concat(w))})})),v}}},271:function(k,c,b){var C={"./base64.ts":806,"./browser.ts":665,"./device.ts":451,"./hooks-filters.ts":91,"./index.ts":685,"./interval-until-execute.ts":919,"./other.ts":627};function h(w){var v=r(w);return b(v)}function r(w){if(!b.o(C,w)){var v=new Error("Cannot find module '"+w+"'");throw v.code="MODULE_NOT_FOUND",v}return C[w]}h.keys=function(){return Object.keys(C)},h.resolve=r,k.exports=h,h.id=271},451:function(k,c,b){"use strict";b.r(c),b.d(c,{detectIOS:function(){return h},deviceType:function(){return C},isMobile:function(){return r},isTouchDevice:function(){return w}});const C=()=>{let v=window.innerWidth;return v<=640?"phone":v<=1024?"tablet":"desktop"},h=()=>typeof window.navigator<"u"&&typeof window.navigator.userAgent<"u"?window.navigator.userAgent.match(/(iPod|iPhone|iPad)/)!=null:!1,r=()=>{try{return document.createEvent("TouchEvent"),!0}catch{return!1}},w=()=>"ontouchstart"in window},627:function(k,c,b){"use strict";b.r(c),b.d(c,{isNumeric:function(){return h},nicePhrase:function(){return C}});const C=function(r){return encodeURIComponent(r).replace(/\%20/g,"+")};function h(r){if(typeof r=="number"&&!isNaN(r))return!0;if(typeof r=="string"){const w=r.trim();if(w==="")return!1;const v=Number(w);return!isNaN(v)&&w===String(v).trim()}return!1}},665:function(k,c,b){"use strict";b.r(c),b.d(c,{formData:function(){return t},isSafari:function(){return w},openInNewTab:function(){return o},submitToUrl:function(){return n},whichjQuery:function(){return v}});var C=b(993),h=b.n(C),r=b(919);const w=()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent),v=a=>{let u=!1;return typeof window.$<"u"&&(typeof a>"u"||typeof window.$.fn[a]<"u")&&(u=window.$),u===!1&&typeof window.jQuery<"u"&&(u=window.jQuery,(typeof a>"u"||typeof window.jQuery.fn[a]<"u")&&(u=window.jQuery)),u},t=function(a,u){let m=a.find("input,textarea,select,button").get();if(arguments.length===1){const _={};return m.forEach(function(p){p.name&&!p.disabled&&(p.checked||/select|textarea/i.test(p.nodeName)||/text/i.test(p.type)||h()(p).hasClass("hasDatepicker")||h()(p).hasClass("asp_slider_hidden"))&&(_[p.name]===void 0&&(_[p.name]=[]),h()(p).hasClass("hasDatepicker")?_[p.name].push(h()(p).parent().find(".asp_datepicker_hidden").val()):_[p.name].push(h()(p).val()))}),JSON.stringify(_)}else if(u!==void 0){const _=typeof u!="object"?JSON.parse(u):u;return m.forEach(function(p){if(p.name)if(_[p.name]){let x=_[p.name],E=h()(p);if(Object.prototype.toString.call(x)!=="[object Array]"&&(x=[x]),p.type==="checkbox"||p.type==="radio"){let A=E.val(),T=!1;for(let S=0;S'),p.attr("action",a),p.attr("method",u),h()("body").append(p),typeof m<"u"&&m!==null&&Object.keys(m).forEach(function(x){let E=m[x],A=h()('');A.attr("name",x),A.attr("value",E),p.append(A)}),_=="new"&&p.attr("target","_blank"),p.get(0).submit()},o=function(a){Object.assign(document.createElement("a"),{target:"_blank",href:a}).click()}},685:function(k,c,b){"use strict";const C={},h=b(271);h.keys().forEach(r=>{if(r==="./index.ts")return;const w=h(r);Object.keys(w).forEach(v=>{C[v]=w[v]})}),window.WPD.utils=C},806:function(k,c,b){"use strict";b.r(c),b.d(c,{Base64:function(){return C}});const C={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(h){return btoa(this._utf8_encode(h))},decode:function(h){return this._utf8_decode(atob(h.replace(/[^A-Za-z0-9\+\/\=]/g,"")))},_utf8_encode:function(h){h=h.replace(/\r\n/g,` `);let r="";for(let w=0;w127&&v<2048?(r+=String.fromCharCode(v>>6|192),r+=String.fromCharCode(v&63|128)):(r+=String.fromCharCode(v>>12|224),r+=String.fromCharCode(v>>6&63|128),r+=String.fromCharCode(v&63|128))}return r},_utf8_decode:function(h){let r="",w=0,v=0,t,n;for(;w191&&v<224?(t=h.charCodeAt(w+1),r+=String.fromCharCode((v&31)<<6|t&63),w+=2):(t=h.charCodeAt(w+1),n=h.charCodeAt(w+2),r+=String.fromCharCode((v&15)<<12|(t&63)<<6|n&63),w+=3);return r}}},919:function(k,c,b){"use strict";b.r(c),b.d(c,{intervalUntilExecute:function(){return C}});function C(h,r,w=100,v=50){let t,n=0,o=typeof r=="function"?r():r;if(o===!1)t=setInterval(function(){if(o=typeof r=="function"?r():r,n++,n>v)return clearInterval(t),!1;if(o!==!1)return clearInterval(t),h(o)},w);else return h(o)}},993:function(k,c){(function(b,C){typeof c=="object"&&typeof k=="object"?k.exports=C():typeof define=="function"&&define.amd?define("DoMini",[],C):typeof c=="object"?c.DoMini=C():b.DoMini=C()})(window,()=>(()=>{"use strict";var b={d:(t,n)=>{for(var o in n)b.o(n,o)&&!b.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(t,n)=>Object.prototype.hasOwnProperty.call(t,n)},C={};let h;b.d(C,{default:()=>v}),window.DoMini===void 0?(h=function(t,n){return arguments[2]!==void 0?this.constructor.call(this,t,n):arguments.length!==1||typeof arguments[0]!="function"?new h(t,n,!0):void(document.readyState==="complete"||document.readyState==="loaded"||document.readyState==="interactive"?arguments[0].apply(this,[h]):window.addEventListener("DOMContentLoaded",()=>{arguments[0].apply(this,[h])}))},h.prototype=h.fn={constructor:function(t,n){if(this.length=0,n!==void 0){if(n instanceof h)return n.find(t);if(this.isValidNode(n)||typeof n=="string")return h(n).find(t)}else if(typeof t=="string"&&t!=="")this.push(...this._(t));else{if(t instanceof h)return t;this.isValidNode(t)&&this.push(t)}return this},_:function(t){return t.charAt(0)==="<"?h._fn.createElementsFromHTML(t):[...document.querySelectorAll(t)]},isValidNode:t=>t instanceof Element||t instanceof Document||t instanceof Window,push:Array.prototype.push,pop:Array.prototype.pop,sort:Array.prototype.sort,splice:Array.prototype.splice},h.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],h._fn={},h.version="0.2.8"):h=window.DoMini;const r=h;r.fn.get=function(t){return t===void 0?Array.from(this):this[t]},r.fn.extend=function(){for(let t=1;t0&&this.forEach(function(o){o.classList.add.apply(o.classList,n)}),this},r.fn.removeClass=function(t){if(t!==void 0){let n=t;typeof t=="string"&&(n=t.split(" ")),n=n.filter(function(o){return o.trim()!==""}),n.length>0&&this.forEach(function(o){o.classList.remove.apply(o.classList,n)})}else this.forEach(function(n){n.classList.length>0&&n.classList.remove.apply(n.classList,n.classList)});return this},r.fn.isVisible=function(){let t,n=this.get(0),o=!0;for(;n!==null;){if(t=window.getComputedStyle(n),t.display==="none"||t.visibility==="hidden"||parseInt(t.opacity)===0){o=!1;break}n=n.parentElement}return o},r.fn.val=function(t){let n;if(arguments.length===1){for(const o of this)if(o.type==="select-multiple"){t=typeof t=="string"?t.split(","):t;for(let a,u=0,m=o.options.length;u0?t?parseInt(this.css("height"))+parseInt(this.css("marginTop"))+parseInt(this.css("marginBottom")):parseInt(this.css("height")):0},r.fn.noPaddingWidth=function(t){return t=t||!1,this.length>0?t?parseInt(this.css("width"))+parseInt(this.css("marginLeft"))+parseInt(this.css("marginRight")):parseInt(this.css("width")):0},r.fn.innerWidth=function(){let t=this.get(0);if(t!=null){let n=window.getComputedStyle(t);return this.outerWidth()-parseFloat(n.borderLeftWidth)-parseFloat(n.borderRightWidth)}return 0},r.fn.innerHeight=function(){let t=this.get(0);if(t!=null){let n=window.getComputedStyle(t);return this.outerHeight()-parseFloat(n.borderTopWidth)-parseFloat(n.borderBottomtWidth)}return 0},r.fn.width=function(){return this.outerWidth()},r.fn.height=function(){return this.outerHeight()},r.fn.on=function(){let t=arguments,n=function(a,u){let m;if(u.type==="mouseenter"||u.type==="mouseleave"||u.type==="mouseover"){let _=document.elementFromPoint(u.clientX,u.clientY);if(!_.matches(a[1]))for(;(_=_.parentElement)&&!_.matches(a[1]););_!=null&&(m=r(_))}else m=r(u.target).closest(a[1]);if(m!=null&&m.closest(this).length>0){let _=[];if(_.push(u),a[4]!==void 0)for(let p=4;p0)if(t===void 0){let a;for(;a=o._domini_events.pop();)o.removeEventListener(a.type,a.func,a.args);o._domini_events=[]}else t.split(" ").forEach(function(a){let u,m=[];for(;u=o._domini_events.pop();)u.type!==a||n!==void 0&&u.trigger!==n?m.push(u):o.removeEventListener(a,u.func,u.args);o._domini_events=m})}),this},r.fn.offForced=function(){let t=this;return this.forEach(function(n,o){let a=n.cloneNode(!0);n.parentNode.replaceChild(a,n),t[o]=a}),this},r.fn.trigger=function(t,n,o,a){return o=o||!1,a=a||!1,this.forEach(function(u){let m=!1;if(a&&typeof jQuery<"u"&&jQuery._data!==void 0&&jQuery._data(u,"events")!==void 0&&jQuery._data(u,"events")[t]!==void 0&&(jQuery(u).trigger(t,n),m=!0),!m&&o){let _=new Event(t);_.detail=n,u.dispatchEvent(_)}if(u._domini_events!==void 0)u._domini_events.forEach(function(_){if(_.type===t){let p=new Event(t);_.trigger.apply(u,[p].concat(n))}});else{let _=!1,p=u;for(;p=p.parentElement,p!=null&&(p._domini_events!==void 0&&p._domini_events.forEach(function(x){if(x.selector!==void 0){let E=r(p).find(x.selector);if(E.length>0&&E.get().indexOf(u)>=0&&x.type===t){let A=new Event(t);x.trigger.apply(u,[A].concat(n)),_=!0}}}),!_););}}),this},r.fn.clear=function(){for(const t of this)delete t._domini_events;return this},r.fn.clone=function(){let t=[];for(const n of this)t.push(n.cloneNode(!0));return r().add(t)},r.fn.detach=function(t){let n=this,o=[];t!==void 0&&(n=this.find(t));for(const a of n)a.parentElement!=null&&o.push(a.parentElement.removeChild(a));return r().add(o)},r.fn.remove=function(t){return this.detach(t).off().clear()},r.fn.prepend=function(t){if((t=r._fn.elementArrayFromAny(t)).length>0)for(const n of this)for(const o of t)n.insertBefore(o,n.children[0]);return this},r.fn.append=function(t){if((t=r._fn.elementArrayFromAny(t)).length>0)for(const n of this)for(const o of t)n.appendChild(o);return this},r.fn.is=function(t){let n=!1;for(const o of this)if(o.matches(t)){n=!0;break}return n},r.fn.parent=function(t){let n=[];for(const o of this){let a=o.parentElement;typeof t=="string"&&(a==null||a.matches(t)||(a=null)),n.push(a)}return r().add(n)},r.fn.copy=function(t,n){let o,a,u;if(typeof t!="object"||t===null)return o=t,o;for(a in o=new t.constructor,t)t.hasOwnProperty(a)&&(u=typeof t[a],n&&u==="object"&&t[a]!==null?o[a]=this.copy(t[a]):o[a]=t[a]);return o},r.fn.first=function(){return r(this[0])},r.fn.last=function(){return r(this[this.length-1])},r.fn.prev=function(t){let n=[];for(const o of this){let a;if(typeof t=="string")for(a=o.previousElementSibling;a!=null;){if(a.matches(t)){n.push(a);break}a=a.previousElementSibling}else n.push(o.previousElementSibling)}return r(null).add(n)},r.fn.next=function(t){let n=[];for(const o of this){let a;if(typeof t=="string")for(a=o.nextElementSibling;a!=null;){if(a.matches(t)){n.includes(a)||n.push(a);break}a=a.nextElementSibling}else n.push(o.nextElementSibling)}return r(null).add(n)},r.fn.closest=function(t){let n=[];for(let o of this)if(typeof t=="string"&&t!==""){for(;!o.matches(t)&&(o=o.parentElement););n.includes(o)||n.push(o)}else{if((t=t instanceof r?t.get(0):t)instanceof Element)for(;o!==t&&(o=o.parentElement););else o=null;n.includes(o)||n.push(o)}return r().add(n)},r.fn.add=function(t){let n=r._fn.elementArrayFromAny(t);for(const o of n)Array.from(this).includes(o)||this.push(o);return this},r.fn.find=function(t){const n=new r;if(typeof t=="string"){let o=[];this.get().forEach(function(a){const u=a.querySelectorAll?.(t)??[];o=o.concat(Array.from(u))}),o.length>0&&n.add(o)}return n},r._fn.bodyTransform=function(){let t=0,n=0;if(typeof WebKitCSSMatrix<"u"){let o=window.getComputedStyle(document.body);if(o.transform!==void 0){let a=new WebKitCSSMatrix(o.transform);a.m41!=="undefined"&&(t=a.m41),a.m42!=="undefined"&&(n=a.m42)}}return{x:t,y:n}},r._fn.bodyTransformY=function(){return this.bodyTransform().y},r._fn.bodyTransformX=function(){return this.bodyTransform().x},r._fn.hasFixedParent=function(t){if(r._fn.bodyTransformY()!=0)return!1;do if(window.getComputedStyle(t).position=="fixed")return!0;while(t=t.parentElement);return!1},r._fn.hasEventListener=function(t,n,o){if(t._domini_events===void 0)return!1;for(let a=0;an instanceof Element)}return t},r._fn.ElementArrayFromAny=r._fn.elementArrayFromAny,r._fn.absolutePosition=function(t){if(!t.getClientRects().length)return{top:0,left:0};let n=t.getBoundingClientRect(),o=t.ownerDocument.defaultView;return{top:n.top+o.pageYOffset,left:n.left+o.pageXOffset}},r._fn.plugin=function(t,n){r.fn[t]=function(o){return o!==void 0&&n[o]?n[o].apply(this,Array.prototype.slice.call(arguments,1)):this.forEach(function(a){a["domini_"+t]=Object.create(n).init(o,a)})}},document.dispatchEvent(new Event("domini-dom-core-loaded"));const w=r;r.fn.animate=function(t,n,o){n=n||200,o=o||"easeInOutQuad";for(const a of this){let u,m,_,p,x,E=0,A=60,T={},S={};if(_=this.prop("_domini_animations"),_=_??[],t===!1)_.forEach(function(R){clearInterval(R)});else{let R=function(){E++,E>u?clearInterval(p):(m=x(E/u),Object.keys(S).forEach(function(L){L.indexOf("scroll")>-1?a[L]=T[L]+S[L]*m:a.style[L]=T[L]+S[L]*m+"px"}))};x=r.fn.animate.easing[o]??r.fn.animate.easing.easeInOutQuad,Object.keys(t).forEach(function(L){L.indexOf("scroll")>-1?(T[L]=a[L],S[L]=t[L]-T[L]):(T[L]=parseInt(window.getComputedStyle(a)[L]),S[L]=t[L]-T[L])}),u=n/1e3*A,p=setInterval(R,1e3/A),_.push(p),this.prop("_domini_animations",_)}}return this},r.fn.animate.easing={linear:function(t){return t},easeInOutQuad:function(t){return t<.5?2*t*t:1-Math.pow(-2*t+2,2)/2},easeOutQuad:function(t){return 1-(1-t)*(1-t)}},r.fn.unhighlight=function(t){let n={className:"highlight",element:"span"};return r.fn.extend(n,t),this.find(n.element+"."+n.className).forEach(function(){let o=this.parentNode;o.replaceChild(this.firstChild,this),o.normalize()})},r.fn.highlight=function(t,n){this.defaults={className:"highlight",element:"span",caseSensitive:!1,wordsOnly:!1,excludeParents:".excludeFromHighlight"};const o=r,a={...this.defaults,...n};if(t.constructor===String&&(t=[t]),(t=t.filter(function(x){return x!==""})).forEach(function(x,E,A){A[E]=x.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&").normalize("NFD").replace(/[\u0300-\u036f]/g,"")}),t.length===0)return this;let u=a.caseSensitive?"":"i",m="("+t.join("|")+")";a.wordsOnly&&(m="(?:,|^|\\s)"+m+"(?:,|$|\\s)");let _=new RegExp(m,u);function p(x,E,A,T,S){if(S=S===""?o.fn.highlight.defaults:S,x.nodeType===3){if(!o(x.parentNode).is(S)){let R=x.data.normalize("NFD").replace(/[\u0300-\u036f]/g,"").match(E);if(R){let L,F=document.createElement(A||"span");F.className=T||"highlight",L=/\.|,|\s/.test(R[0].charAt(0))?R.index+1:R.index;let I=x.splitText(L);I.splitText(R[1].length);let M=I.cloneNode(!0);return F.appendChild(M),I.parentNode.replaceChild(F,I),1}}}else if(x.nodeType===1&&x.childNodes&&!/(script|style)/i.test(x.tagName)&&!o(x).closest(S).length>0&&(x.tagName!==A.toUpperCase()||x.className!==T))for(let R=0;R=0;n-=1)if(t.elements[n].name!=="")switch(t.elements[n].nodeName){case"INPUT":switch(t.elements[n].type){case"checkbox":case"radio":t.elements[n].checked&&a.push(t.elements[n].name+"="+encodeURIComponent(t.elements[n].value));break;case"file":break;default:a.push(t.elements[n].name+"="+encodeURIComponent(t.elements[n].value))}break;case"TEXTAREA":a.push(t.elements[n].name+"="+encodeURIComponent(t.elements[n].value));break;case"SELECT":switch(t.elements[n].type){case"select-one":a.push(t.elements[n].name+"="+encodeURIComponent(t.elements[n].value));break;case"select-multiple":for(o=t.elements[n].options.length-1;o>=0;o-=1)t.elements[n].options[o].selected&&a.push(t.elements[n].name+"="+encodeURIComponent(t.elements[n].options[o].value))}break;case"BUTTON":switch(t.elements[n].type){case"reset":case"submit":case"button":a.push(t.elements[n].name+"="+encodeURIComponent(t.elements[n].value))}}return a.join("&")},r.fn.serializeObject=function(t,n){let o,a=[];for(o in t)if(t.hasOwnProperty(o)){let u=n?n+"["+o+"]":o,m=t[o];a.push(m!==null&&typeof m=="object"?r.fn.serializeObject(m,u):encodeURIComponent(u)+"="+encodeURIComponent(m))}return a.join("&")},r.fn.inViewPort=function(t,n){let o,a,u=this.get(0);if(u==null)return!1;t=t===void 0?0:t,n=n===void 0?window:typeof n=="string"?document.querySelector(n):n;let m=u.getBoundingClientRect(),_=m.top,p=m.bottom,x=m.left,E=m.right,A=!1;if(n==null&&(n=window),n===window)o=window.innerWidth||0,a=window.innerHeight||0;else{o=n.clientWidth,a=n.clientHeight;let T=n.getBoundingClientRect();_-=T.top,p-=T.top,x-=T.left,E-=T.left}return t=~~Math.round(parseFloat(t)),E<=0||x>=o||(A=t>0?_>=t&&p0&&_<=a-t)|(_<=0&&p>t)),A},r.fn.ajax=function(t){if((t=this.extend({url:"",method:"GET",cors:"cors",data:{},success:null,fail:null,accept:"text/html",contentType:"application/x-www-form-urlencoded; charset=UTF-8"},t)).cors==="cors"){let n=new XMLHttpRequest;return n.onreadystatechange=function(){t.success!=null&&this.readyState===4&&this.status>=200&&this.status<400&&t.success(this.responseText),t.fail!=null&&this.readyState===4&&this.status>=400&&t.fail(this)},n.open(t.method.toUpperCase(),t.url,!0),n.setRequestHeader("Content-type",t.contentType),n.setRequestHeader("Accept",t.accept),n.send(this.serializeObject(t.data)),n}{let n="ajax_cb_"+"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){let u=16*Math.random()|0;return(a==="x"?u:3&u|8).toString(16)}).replaceAll("-","");r.fn[n]=function(){t.success.apply(this,arguments),delete r.fn[t.data.fn]},t.data.callback="DoMini.fn."+n,t.data.fn=n;let o=document.createElement("script");o.type="text/javascript",o.src=t.url+"?"+this.serializeObject(t.data),o.onload=function(){this.remove()},document.body.appendChild(o)}};const v=w;return C.default})())}},$={};function P(k){var c=$[k];if(c!==void 0)return c.exports;var b=$[k]={exports:{}};return H[k].call(b.exports,b,b.exports,P),b.exports}(function(){P.n=function(k){var c=k&&k.__esModule?function(){return k.default}:function(){return k};return P.d(c,{a:c}),c}})(),function(){P.d=function(k,c){for(var b in c)P.o(c,b)&&!P.o(k,b)&&Object.defineProperty(k,b,{enumerable:!0,get:c[b]})}}(),function(){P.o=function(k,c){return Object.prototype.hasOwnProperty.call(k,c)}}(),function(){P.r=function(k){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(k,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(k,"__esModule",{value:!0})}}();var W={};(function(){"use strict";var k=P(993),c=P.n(k);window.WPD=window.WPD||{},window.WPD.global={utils:{}},window.WPD.dom=c(),window.DoMini=c(),window.WPD.domini=window.WPD.dom,window.WPD.DoMini=window.WPD.dom;var b=P(685),C=P(806);window._asl_instances_storage=window._asl_instances_storage||[];var r={instances:window._asl_instances_storage,get:function(e,i){if(this.clean(),typeof e>"u"||e===0)return this.instances;if(typeof i>"u"){let s=[];for(let d=0;d0?s:!1}else for(let s=0;s"u")return!0;if(this.instances[s].o.iid===i)return!0}return!1},clean:function(){let e=[],i=this;this.instances.forEach(function(s,d){c()(".asl_m_"+s.o.rid).length===0&&e.push(d)}),e.forEach(function(s){typeof i.instances[s]<"u"&&(i.instances[s].destroy(),i.instances.splice(s,1))})},destroy:function(e,i){let s=this.get(e,i);if(s!==!1)if(Array.isArray(s))s.forEach(function(d){d.destroy()}),this.instances=[];else{let d=0;this.instances.forEach(function(l,f){l.o.id===e&&l.o.iid===i&&(d=f)}),s.destroy(),this.instances.splice(d,1)}}};function w(){"use strict";const e=function(d,l,f,g){let y=r.get(d,l);if(y!==!1&&!Array.isArray(y)){const D=y[f];typeof D=="function"&&D.bind(y).apply(y,[g])}},i=function(d,l,f){let g;if(typeof l=="number"&&isFinite(l)){if(g=r.get(d,l),g!==!1&&!Array.isArray(g)){const y=g[f];if(typeof y=="function")return y.bind(g).apply(f)}}else if(typeof l=="string")return g=r.get(d),g!==!1&&Array.isArray(g)&&g.forEach(function(y){const D=y[l];typeof D=="function"&&D.bind(g).apply(y,[f])})},s=function(d,l){let f;return l==="exists"?r.exist(d):(f=r.get(d),f!==!1&&Array.isArray(f)&&f.forEach(function(g){const y=g[l];typeof y=="function"&&y.bind(g).apply(g)}))};if(arguments.length===4)return e.apply(this,arguments);if(arguments.length===3)return i.apply(this,arguments);if(arguments.length===2)return s.apply(this,arguments);arguments.length===0&&(console.log("Usage: ASL.api(id, [optional]instance, function, [optional]args);"),console.log("For more info: https://knowledgebase.ajaxsearchpro.com/other/javascript-api"))}var t=e=>{let i=!1;const s=()=>document.readyState==="complete"||document.readyState==="interactive"||document.readyState==="loaded",d=()=>{window.removeEventListener("DOMContentLoaded",f),document.removeEventListener("readystatechange",g)},l=()=>{i||(i=!0,e(),d())},f=()=>{l()},g=()=>{s()&&l()};s()?l():(window.addEventListener("DOMContentLoaded",f),document.addEventListener("readystatechange",g))};window.ASL={...window.ASL,instances:r,instance_args:[],api:w,initialized:!1,initializeAllSearches:function(){this.getInstances().forEach(function(i,s){c().fn._(".asl_m_"+s).forEach(function(d){return typeof d.hasAsp<"u"?!0:(d.hasAsp=!0,c()(d).ajaxsearchlite(i))})})},initializeSearchByID:function(e,i=0){const s=this.getInstance(e),d=i===0?".asl_m_"+e:".asl_m_"+e+"_"+i;c().fn._(d).forEach(function(l){return typeof l.hasAsp<"u"?!0:(l.hasAsp=!0,c()(l).ajaxsearchlite(s))})},getInstances:function(){return c().fn._(".asl_init_data").forEach(e=>{const i=parseInt(e.dataset.aslId||"");let s;if(typeof e.dataset.asldata<"u"&&(s=C.Base64.decode(e.dataset.asldata)),typeof s>"u"||s==="")return!0;this.instance_args[i]=JSON.parse(s)}),this.instance_args},getInstance:function(e){return typeof this.instance_args[e]<"u"?this.instance_args[e]:this.getInstances()[e]},initialize:function(e){if(typeof window.ASL.version>"u")return!1;if(window.ASL.script_async_load||window.ASL.init_only_in_viewport){const i=document.querySelectorAll(".asl_w_container");if(i.length){const s=new IntersectionObserver(d=>{d.forEach(l=>{if(l.isIntersecting){const f=parseInt(l.target.dataset.id??"0"),g=parseInt(l.target.dataset.instance??"0");this.initializeSearchByID(f,g),s.unobserve(l.target)}})});i.forEach(function(d){const l=d;typeof l._is_observed<"u"||(l._is_observed=!0,s.observe(l))})}}else typeof e>"u"?this.initializeAllSearches():this.initializeSearchByID(e);return this.initializeMutateDetector(),this.initializeHighlight(),this.initializeOtherEvents(),this.initialized=!0,!0},initializeHighlight:function(){if(window.ASL.highlight.enabled)for(const e of window.ASL.highlight.data){let i=e.selector!==""&&c()(e.selector).length>0?e.selector:"article",s,d;i=c()(i).length>0?i:"body";const l=new URLSearchParams(location.search);if(d=l.get("s")??l.get("asl_highlight")??l.get("asl_s")??l.get("asl_ls")??"",c()(i).unhighlight({className:"asl_single_highlighted"}),d===null||(d=d.trim(),d===""))return;const f=d.trim().split(" ");if(c()(i).highlight([d.trim()],{element:"span",className:"asl_single_highlighted asl_single_highlighted_exact",wordsOnly:e.whole,excludeParents:".asl_w, .asl-try"}),f.length>0&&c()(i).highlight(f,{element:"span",className:"asl_single_highlighted",wordsOnly:e.whole,excludeParents:".asl_w, .asl-try, .asl_single_highlighted"}),s=c()(".asl_single_highlighted_exact"),s.length===0&&(s=c()(".asl_single_highlighted")),s.length>0&&e.scroll){let g=s.offset().top-120;const y=c()("#wpadminbar");y.length>0&&(g-=y.height()),g=g+e.scroll_offset,g=g<0?0:g,c()("html").animate({scrollTop:g},500)}}},initializeOtherEvents:function(){let e,i;const s=c()("body");i="#menu-item-search, .fa-search, .fa, .fas",i=i+", .fusion-flyout-menu-toggle, .fusion-main-menu-search-open",i=i+", #search_button",i=i+", .mini-search.popup-search",i=i+", .icon-search",i=i+", .menu-item-search-dropdown",i=i+", .mobile-menu-button",i=i+", .td-icon-search, .tdb-search-icon",i=i+", .side_menu_button, .search_button",i=i+", .raven-search-form-toggle",i=i+", [data-elementor-open-lightbox], .elementor-button-link, .elementor-button",i=i+", i[class*=-search], a[class*=-search]",s.on("click touchend",i,()=>{clearTimeout(e),e=setTimeout(()=>{this.initializeAllSearches()},300)}),typeof window.jQuery<"u"&&window.jQuery(document).on("elementor/popup/show",()=>{setTimeout(()=>{this.initializeAllSearches()},10)})},initializeMutateDetector:function(){let e;if(typeof window.ASL.detect_ajax<"u"&&window.ASL.detect_ajax){const i=new MutationObserver(()=>{clearTimeout(e),e=setTimeout(()=>{this.initializeAllSearches()},500)}),s=document.querySelector("body");if(s==null)return;i.observe(s,{subtree:!0,childList:!0})}},loadScriptStack:function(e){let i;if(e.length>0){const s=e.shift();if(s===void 0)return;i=document.createElement("script"),i.src=s.src,i.onload=()=>{e.length>0?this.loadScriptStack(e):this.ready()},document.body.appendChild(i)}},ready:function(){const e=this;t(()=>{e.initialize()})},init:function(){window.ASL.script_async_load?this.loadScriptStack(window.ASL.additional_scripts):typeof window.WPD.AjaxSearchLite<"u"&&this.ready()}};class n{call_num=0;settingsInitialized=!1;resultsInitialized=!1;searching=!1;post=void 0;postAuto=void 0;lastSuccesfulSearch="";lastSearchData={};ktype="";keycode=0;usingLiveLoader=!1;nodes={};documentEventHandlers=[];resultsOpened=!1;savedScrollTop=0;savedContainerTop=0;clickTouchend="click touchend";mouseupTouchend="mouseup touchend";dragging=!1;settingsChanged=!1;isAutoP=!1;resAnim={showClass:"asl_an_fadeInDrop",showCSS:{visibility:"visible",display:"block",opacity:1,"animation-duration":"300ms"},hideClass:"asl_an_fadeOutDrop",hideCSS:{visibility:"hidden",opacity:0,display:"none"},duration:300};settAnim={showClass:"asl_an_fadeInDrop",showCSS:{visibility:"visible",display:"block",opacity:1,"animation-duration":"300ms"},hideClass:"asl_an_fadeOutDrop",hideCSS:{visibility:"hidden",opacity:0,display:"none"},duration:300};timeouts={searchWithCheck:void 0,search:void 0};o={id:1,iid:1,rid:"1_1",name:"Search name",homeurl:"",resultstype:"vertical",resultsposition:"hover",itemscount:10,charcount:0,highlight:1,blocking:!1,detectVisibility:!1,redirectOnClick:!0,redirectOnEnter:!0,highlightWholewords:1,singleHighlight:0,settingsVisible:0,scrollToResults:{enabled:1,offset:0},resultareaclickable:0,autocomplete:{enabled:1,lang:"en",trigger_charcount:0},mobile:{menu_selector:"#mobile-menu",force_res_hover:0},trigger:{click:"ajax_search",click_location:"same",update_href:0,return:"ajax_search",return_location:"same",facet:1,type:1,redirect_url:"/search",delay:300},animations:{pc:{settings:{anim:"fadedrop",dur:300},results:{anim:"fadedrop",dur:300},items:"voidanim"},mob:{settings:{anim:"fadedrop",dur:300},results:{anim:"fadedrop",dur:300},items:"voidanim"}},autop:{state:"disabled",phrase:"",count:10},resPage:{useAjax:0,selector:".search-results",trigger_type:1,trigger_facet:1,trigger_magnifier:1,trigger_return:1},resultsSnapTo:"left",results:{width:"auto",width_tablet:"auto",width_phone:"auto"},settingsimagepos:"left",closeOnDocClick:1,overridewpdefault:0,override_method:"get"}}window.WPD.global.AslPlugin=n;var o=P(665);n.prototype.setFilterStateInput=function(e){let i=this;typeof e>"u"&&(e=65);let s=function(){JSON.stringify(i.originalFormData)!=JSON.stringify((0,o.formData)(i.n("searchsettings").find("form")))?i.n("searchsettings").find("input[name=filters_initial]").val(0):i.n("searchsettings").find("input[name=filters_initial]").val(1)};e==0?s():setTimeout(function(){s()},e)};var a=null;const u=window.ASL;n.prototype.gaPageview=function(e){let i=this,s=i.gaGetTrackingID();if(typeof u.analytics>"u"||u.analytics.method!="pageview")return!1;if(u.analytics.string!=""){let d=typeof window.__gaTracker=="function"?window.__gaTracker:typeof window.ga=="function"?window.ga:!1,l=typeof window.gtag=="function"?window.gtag:!1,f=i.o.homeurl.replace(window.location.origin,"");if(l!==!1)s!==!1&&s.forEach(function(g){l("config",g,{page_path:f+u.analytics.string.replace("{asl_term}",e)})});else if(d!==!1){let g={page:f+u.analytics.string.replace("{asl_term}",e),title:"Ajax Search"};s!==!1?s.forEach(function(y){d("create",y,"auto"),d("send","pageview",g)}):d("send","pageview",g)}}},n.prototype.gaEvent=function(e,i){let s=this,d=s.gaGetTrackingID();if(typeof u.analytics>"u"||u.analytics.method!="event")return!1;let l=typeof window.gtag=="function"?window.gtag:!1,f=typeof window.__gaTracker=="function"?window.__gaTracker:typeof window.ga=="function"?window.ga:!1;if(l===!1&&f===!1&&typeof window.dataLayer>"u")return!1;if(typeof u.analytics.event[e]<"u"&&u.analytics.event[e].active){let g={search_id:s.o.id,search_name:s.o.name,phrase:s.n("text").val(),option_name:"",option_value:"",result_title:"",result_url:"",results_count:""},y={event_category:u.analytics.event[e].category,event_label:u.analytics.event[e].label,value:u.analytics.event[e].value,send_to:""};const D={...g,...i};Object.keys(D).forEach(function(O){let j=D[O];j=String(j).replace(/[\s\n\r]+/g," ").trim(),Object.keys(y).forEach(function(z){let V=new RegExp("{"+O+"}","gmi");y[z]=y[z].replace(V,j)})}),f!==!1?d!==!1?d.forEach(function(O){f("create",O,"auto"),f("send","event",y.event_category,u.analytics.event[e].action,y.event_label,y.value)}):f("send","event",y.event_category,u.analytics.event[e].action,y.event_label,y.value):l!==!1?d!==!1?d.forEach(function(O){y.send_to=O,l("event",u.analytics.event[e].action,y)}):l("event",u.analytics.event[e].action,y):window?.dataLayer?.push!==void 0&&window.dataLayer.push({event:"gaEvent",eventCategory:y.event_category,eventAction:u.analytics.event[e].action,eventLabel:y.event_label})}},n.prototype.gaGetTrackingID=function(){let e=!1;if(typeof u.analytics>"u")return e;if(typeof u.analytics.tracking_id<"u"&&u.analytics.tracking_id!="")return[u.analytics.tracking_id];if((typeof window.gtag=="function"?window.gtag:!1)===!1&&typeof window.ga<"u"&&typeof window.ga.getAll<"u"){let s=[];return window.ga.getAll().forEach(function(d){s.push(d.get("trackingId"))}),s.length>0?s:!1}return e};var m=null;n.prototype.showLoader=function(){this.n("proloading").css({display:"block"})},n.prototype.hideLoader=function(){let e=this;e.n("proloading").css({display:"none"}),e.n("results").css("display","")};var _=null;const p=window.ASL;n.prototype.loadASLFonts=function(){p.font_url!==!1&&(new FontFace("aslsicons2","url("+p.font_url+")",{style:"normal",weight:"normal",display:"swap"}).load().then(function(i){document.fonts.add(i)}).catch(function(i){}),p.font_url=!1)},n.prototype.updateHref=function(){if(this.o.trigger.update_href&&!this.usingLiveLoader){let e=this.getStateURL()+(this.resultsOpened?"&asl_s=":"&asl_ls=")+this.n("text").val();history.replaceState("","",e.replace(location.origin,""))}},n.prototype.fixClonedSelf=function(){let e=this,i=e.o.iid,s=e.o.rid;for(;!p.instances.set(e)&&(++e.o.iid,!(e.o.iid>50)););if(i!=e.o.iid){e.o.rid=e.o.id+"_"+e.o.iid;const d=e.n("search").get(0);d!==void 0&&(d.id="ajaxsearchlite"+e.o.rid,e.n("search").removeClass("asl_m_"+s).addClass("asl_m_"+e.o.rid).data("instance",e.o.iid));const l=e.n("searchsettings").get(0);l!==void 0&&(l.id=l.id.replace("settings"+s,"settings"+e.o.rid)),e.n("searchsettings").hasClass("asl_s_"+s)?e.n("searchsettings").removeClass("asl_s_"+s).addClass("asl_s_"+e.o.rid).data("instance",e.o.iid):e.n("searchsettings").removeClass("asl_sb_"+s).addClass("asl_sb_"+e.o.rid).data("instance",e.o.iid);const f=e.n("resultsDiv").get(0);f!==void 0&&(f.id=f.id.replace("prores"+s,"prores"+e.o.rid),e.n("resultsDiv").removeClass("asl_r_"+s).addClass("asl_r_"+e.o.rid).data("instance",e.o.iid));const g=e.n("container").find(".asl_init_data").get(0);g!==void 0&&(e.n("container").find(".asl_init_data").data("instance",e.o.iid),g.id=g.id.replace("asl_init_id_"+s,"asl_init_id_"+e.o.rid)),e.n("prosettings").data("opened",0)}},n.prototype.destroy=function(){let e=this;Object.keys(e.nodes).forEach(function(i){e.nodes[i].off?.()}),e.n("searchsettings").remove?.(),e.n("resultsDiv").remove?.(),e.n("search").remove?.(),e.n("container").remove?.(),e.documentEventHandlers.forEach(function(i){c()(i.node).off(i.event,i.handler)})};var x=null,E=P(627),A=P(91);n.prototype.isRedirectToFirstResult=function(){return!!((this.n("resultsDiv").find(".asl_res_url").length>0||c()(".asl_es_"+this.o.id+" a").length>0||this.o.resPage.useAjax&&c()(this.o.resPage.selector+"a").length>0)&&(this.o.redirectOnClick&&this.ktype=="click"&&this.o.trigger.click=="first_result"||this.o.redirectOnEnter&&(this.ktype=="input"||this.ktype=="keyup")&&this.keycode==13&&this.o.trigger.return=="first_result"))},n.prototype.doRedirectToFirstResult=function(){let e,i="";return this.ktype=="click"?e=this.o.trigger.click_location:e=this.o.trigger.return_location,this.n("resultsDiv").find(".asl_res_url").length>0?i=c()(this.n("resultsDiv").find(".asl_res_url").get(0)).attr("href"):c()(".asl_es_"+this.o.id+" a").length>0?i=c()(c()(".asl_es_"+this.o.id+" a").get(0)).attr("href"):this.o.resPage.useAjax&&c()(this.o.resPage.selector+"a").length>0&&(i=c()(c()(this.o.resPage.selector+"a").get(0)).attr("href")),i!==""&&(e=="same"?window.location.href=i:(0,o.openInNewTab)(i),this.hideLoader(),this.hideResults()),!1},n.prototype.doRedirectToResults=function(e){let i;e=="click"?i=this.o.trigger.click_location:i=this.o.trigger.return_location;let s=this.getRedirectURL(e);if(this.o.overridewpdefault){if(this.o.resPage.useAjax==1)return this.hideResults(),this.liveLoad(this.o.resPage.selector,s),this.showLoader(),!1;this.o.override_method=="post"?(0,o.submitToUrl)(s,"post",{asl_active:1,p_asl_data:this.n("searchsettings").find("form").serialize()},i):i=="same"?location.href=s:(0,o.openInNewTab)(s)}else(0,o.submitToUrl)(s,"post",{np_asl_data:this.n("searchsettings").find("form").serialize()},i);this.n("proloading").css("display","none"),this.hideLoader(),this.hideResults(),this.searchAbort()},n.prototype.getRedirectURL=function(e="enter"){let i,s,d,l;if(e=="click"?s=this.o.trigger.click:s=this.o.trigger.return,s=="results_page"||s=="ajax_search"?i="?s="+(0,E.nicePhrase)(this.n("text").val()):s=="woo_results_page"?i="?post_type=product&s="+(0,E.nicePhrase)(this.n("text").val()):(l=this.o.trigger.redirect_url,i=l.replace(/{phrase}/g,(0,E.nicePhrase)(this.n("text").val()))),this.o.homeurl.indexOf("?")>1&&i.indexOf("?")===0&&(i=i.replace("?","&")),this.o.overridewpdefault&&this.o.override_method!="post"){let f="&";this.o.homeurl.indexOf("?")===-1&&i.indexOf("?")===-1&&(f="?");let g=i+f+"asl_active=1&p_asl_data=1&"+this.n("searchsettings").find("form").serialize();d=this.o.homeurl+g}else d=this.o.homeurl+i;return d=d.replace("https://","https:///"),d=d.replace("http://","http:///"),d=d.replace(/\/\//g,"/"),d=A.Hooks.applyFilters("asl/redirect/url",d,this.o.id,this.o.iid),d};var T=null,S=P(451);n.prototype.showResults=function(){let e=this;e.initResults(),e.showVerticalResults(),e.hideLoader(),e.n("proclose").css({display:"block"}),e.n("showmore")!=null&&(e.n("items").length>0?e.n("showmore").css({display:"block"}):e.n("showmore").css({display:"none"})),e.resultsOpened=!0},n.prototype.hideResults=function(e=!0){let i=this;if(!i.resultsOpened)return!1;i.n("resultsDiv").removeClass(i.resAnim.showClass).addClass(i.resAnim.hideClass),setTimeout(function(){i.n("resultsDiv").css(i.resAnim.hideCSS)},i.resAnim.duration),i.n("proclose").css({display:"none"}),(0,S.isMobile)()&&e&&document.activeElement?.blur(),i.resultsOpened=!1,i.n("s").trigger("asl_results_hide",[i.o.id,i.o.iid],!0,!0)},n.prototype.showResultsBox=function(){let e=this;e.n("s").trigger("asl_results_show",[e.o.id,e.o.iid],!0,!0),e.n("resultsDiv").css({display:"block",height:"auto"}),e.n("resultsDiv").css(e.resAnim.showCSS),e.n("resultsDiv").removeClass(e.resAnim.hideClass).addClass(e.resAnim.showClass),e.fixResultsPosition(!0)},n.prototype.addHighlightString=function(e){let i=this,s=i.n("text").val().replace(/["']/g,"");e=typeof e>"u"?i.n("items").find("a.asl_res_url"):e,i.o.singleHighlight==1&&s!=""&&e.length>0&&e.forEach(function(d){try{const l=new URL(c()(d).attr("href"));l.searchParams.set("asl_highlight",s),l.searchParams.set("p_asid",String(i.o.id)),c()(d).attr("href",l.href)}catch{}})},n.prototype.scrollToResults=function(){let e=this,i=Math.floor(window.innerHeight*.1),s;if(!e.resultsOpened||e.o.scrollToResults.enabled!=1||e.n("resultsDiv").inViewPort(i))return;e.o.resultsposition=="hover"?s=e.n("probox").offset().top-20:s=e.n("resultsDiv").offset().top-20,s=s+e.o.scrollToResults.offset;let d=c()("#wpadminbar");d.length>0&&(s-=d.height()),s=s<0?0:s,window.scrollTo({top:s,behavior:"smooth"})};var R=null;const L=window.ASL;n.prototype.searchAbort=function(){let e=this;e.post!=null&&e.post.abort()},n.prototype.searchWithCheck=function(e=50){let i=this;i.n("text").val().length0?e.liveLoad(".asl_es_"+e.o.id,e.getCurrentLiveURL(),!1):e.o.resPage.useAjax?e.liveLoad(e.o.resPage.selector,e.getRedirectURL()):e.post=c().fn.ajax({url:L.ajaxurl,method:"POST",data:i,success:function(s){let d=s.replace(/^\s*[\r\n]/gm,"");const l=d.match(/___ASLSTART___(.*[\s\S]*)___ASLEND___/);if(l===null){e.hideLoader(),console.warn("The response inner data is missing!");return}if(d=l[1],d=A.Hooks.applyFilters("asl/search/html",d),e.n("resdrg").html(""),e.n("resdrg").html(d),e.n("resdrg").find(".asl_keyword").on("click",function(){e.n("text").val(c()(this).html()),e.n("container").find("input.orig").val(c()(this).html()).trigger("keydown"),e.n("container").find("form").trigger("submit",["ajax"]),e.search()}),e.nodes.items=e.n("resultsDiv").find(".item"),e.addHighlightString(),e.gaEvent?.("search_end",{results_count:e.n("items").length}),e.gaPageview?.(e.n("text").val()),e.isRedirectToFirstResult())return e.doRedirectToFirstResult(),!1;e.hideLoader(),e.showResults(),e.scrollToResults(),e.lastSuccesfulSearch=e.n("searchsettings").find("form").serialize()+e.n("text").val().trim(),e.lastSearchData=i,e.updateHref(),e.n("items").length==0?e.n("showmore")!=null&&e.n("showmore").css("display","none"):e.n("showmore")!=null&&(e.n("showmore").css("display","block"),e.n("showmore").find("span").off(),e.n("showmore").find("span").on("click",function(){let f=e.o.trigger.click,g;f=="results_page"?g="?s="+(0,E.nicePhrase)(e.n("text").val()):f=="woo_results_page"?g="?post_type=product&s="+(0,E.nicePhrase)(e.n("text").val()):g=e.o.trigger.redirect_url.replace("{phrase}",(0,E.nicePhrase)(e.n("text").val())),e.o.overridewpdefault?e.o.override_method=="post"?(0,o.submitToUrl)(e.o.homeurl+g,"post",{asl_active:1,p_asl_data:e.n("searchsettings").find("form").serialize()}):location.href=e.o.homeurl+g+"&asl_active=1&p_asid="+e.o.id+"&p_asl_data=1&"+e.n("searchsettings").find("form").serialize():(0,o.submitToUrl)(e.o.homeurl+g,"post",{np_asl_data:e.n("searchsettings").find("form").serialize()})})),A.Hooks.applyFilters("asl/search/end",e,i)},fail:function(s){e.n("resdrg").html(""),e.n("resdrg").html('
The request failed. Please check your connection! Status: '+s.status+"
"),e.nodes.items=e.n("resultsDiv").find(".item"),e.hideLoader(),e.showResults(),e.scrollToResults()}})};var F=null;n.prototype.searchFor=function(e){typeof e<"u"&&this.n("text").val(e),this.n("textAutocomplete").val(""),this.search()},n.prototype.toggleSettings=function(e){typeof e<"u"?e=="show"?this.showSettings():this.hideSettings():parseInt(this.n("prosettings").data("opened"))===1?this.hideSettings():this.showSettings()},n.prototype.closeResults=function(e){typeof e<"u"&&e&&(this.n("text").val(""),this.n("textAutocomplete").val("")),this.hideResults(),this.n("proloading").css("display","none"),this.hideLoader(),this.searchAbort()},n.prototype.getStateURL=function(){let e,i;return e=location.href.split("p_asid")[0],e=e.replace("&asl_active=1",""),e=e.replace("?asl_active=1",""),e=e.slice(-1)=="?"?e.slice(0,-1):e,e=e.slice(-1)=="&"?e.slice(0,-1):e,i=e.indexOf("?")>1?"&":"?",e+i+"p_asid="+this.o.id+"&p_asl_data=1&"+this.n("searchsettings").find("form").serialize()},n.prototype.filtersInitial=function(){return this.n("searchsettings").find("input[name=filters_initial]").val()==1},n.prototype.filtersChanged=function(){return this.n("searchsettings").find("input[name=filters_changed]").val()==1};var I=null;n.prototype.detectAndFixFixedPositioning=function(){let e=this,i=!1,s=e.n("search").get(0);for(;s;)if(s=s.parentElement,s!=null&&window.getComputedStyle(s).position==="fixed"){i=!0;break}i||e.n("search").css("position")=="fixed"?(e.n("resultsDiv").css("position")=="absolute"&&e.n("resultsDiv").css({position:"fixed","z-index":2147483647}),e.o.blocking||e.n("searchsettings").css({position:"fixed","z-index":2147483647})):(e.n("resultsDiv").css("position")=="fixed"&&e.n("resultsDiv").css("position","absolute"),e.o.blocking||e.n("searchsettings").css("position","absolute"))},n.prototype.fixResultsPosition=function(e=!1){let i=this,s=c()("body"),d=0,l=i.n("resultsDiv").css("position");if((c()._fn.bodyTransformY()!=0||s.css("position")!="static")&&(d=s.offset().top),c()._fn.bodyTransformY()!=0&&l=="fixed"&&(l="absolute",i.n("resultsDiv").css("position","absolute")),l=="fixed"&&(d=0),!(l!="fixed"&&l!="absolute")&&(e||i.n("resultsDiv").css("visibility")=="visible")){let f=i.n("search").offset(),g=0;if((c()._fn.bodyTransformX()!=0||s.css("position")!="static")&&(g=s.offset().left),typeof f<"u"){let y,D=0;(0,S.deviceType)()==="phone"?y=i.o.results.width_phone:(0,S.deviceType)()=="tablet"?y=i.o.results.width_tablet:y=i.o.results.width,y=="auto"&&(y=i.n("search").outerWidth()<240?240:i.n("search").outerWidth()),i.n("resultsDiv").css("width",(0,E.isNumeric)(y)?y+"px":y),i.o.resultsSnapTo=="right"?D=i.n("resultsDiv").outerWidth()-i.n("search").outerWidth():i.o.resultsSnapTo=="center"&&(D=Math.floor((i.n("resultsDiv").outerWidth()-parseInt(String(i.n("search").outerWidth())))/2)),i.n("resultsDiv").css({top:f.top+i.n("search").outerHeight(!0)-d+"px",left:f.left-D-g+"px"})}}},n.prototype.fixSettingsPosition=function(e=!1){let i=this,s=c()("body"),d=0,l=i.n("searchsettings").css("position");if((c()._fn.bodyTransformY()!=0||s.css("position")!="static")&&(d=s.offset().top),c()._fn.bodyTransformY()!=0&&l=="fixed"&&(l="absolute",i.n("searchsettings").css("position","absolute")),l=="fixed"&&(d=0),e||i.n("prosettings").data("opened")!=="0"){let f,g,y,D,O=0;(c()._fn.bodyTransformX()!=0||s.css("position")!="static")&&(O=s.offset().left),i.fixSettingsWidth(),i.n("prosettings").css("display")!="none"?f=i.n("prosettings"):f=i.n("promagnifier"),g=f.offset(),y=g.top+f.height()-2-d+"px",D=i.o.settingsimagepos=="left"?g.left:g.left+f.width()-i.n("searchsettings").width(),D=D-O+"px",i.n("searchsettings").css({display:"block",top:y,left:D})}},n.prototype.fixSettingsWidth=function(){},n.prototype.hideOnInvisibleBox=function(){let e=this;e.o.detectVisibility&&!e.n("search").hasClass("hiddend")&&(e.n("search").is(":hidden")||!e.n("search").is(":visible"))&&(e.hideSettings?.(),e.hideResults())};var M=null;n.prototype.initMagnifierEvents=function(){let e=this,i;e.n("promagnifier").on("click",function(s){if(e.keycode=s.keyCode||s.which,e.ktype=s.type,e.gaEvent?.("magnifier"),e.n("text").val().length>=e.o.charcount&&e.o.redirectOnClick&&e.o.trigger.click!=="first_result")return e.doRedirectToResults("click"),clearTimeout(i),!1;if(!(e.o.trigger.click=="ajax_search"||e.o.trigger.click=="first_result"))return!1;e.searchAbort(),clearTimeout(e.timeouts.search),e.n("proloading").css("display","none"),e.timeouts.search=setTimeout(function(){e.n("searchsettings").find("form").serialize()+e.n("text").val().trim()!=e.lastSuccesfulSearch||!e.resultsOpened&&!e.usingLiveLoader?e.search():e.isRedirectToFirstResult()?e.doRedirectToFirstResult():e.n("proclose").css("display","block")},e.o.trigger.delay)})};var Y=null;n.prototype.initInputEvents=function(){let e=this,i=!1,s=function(){e.n("text").off("mousedown touchstart keydown",s),i||(e._initFocusInput(),e.o.trigger.type&&e._initSearchInput(),e._initEnterEvent(),e._initFormEvent(),e.initAutocompleteEvent?.(),i=!0)};e.n("text").on("mousedown touchstart keydown",s,{passive:!0})},n.prototype._initFocusInput=function(){let e=this;e.n("text").on("click",function(i){if(i.stopPropagation(),i.stopImmediatePropagation(),c()(this).trigger("focus",[]),e.gaEvent?.("focus"),e.n("searchsettings").find("form").serialize()+e.n("text").val().trim()==e.lastSuccesfulSearch)return!e.resultsOpened&&!e.usingLiveLoader&&e.showResults(),!1}),e.n("text").on("focus input",function(i){e.searching||(c()(this).val()!=""?e.n("proclose").css("display","block"):e.n("proclose").css({display:"none"}))})},n.prototype._initSearchInput=function(){let e=this;e.n("text").on("input",function(i){if(e.keycode=i.keyCode||i.which,e.ktype=i.type,e.updateHref(),e.n("text").val().length=e.o.charcount&&l&&e.keycode==13&&(e.gaEvent?.("return"),e.o.redirectOnEnter?e.o.trigger.return!="first_result"?e.doRedirectToResults(e.ktype):e.search():e.o.trigger.return=="ajax_search"&&(e.n("searchsettings").find("form").serialize()+e.n("text").val().trim()!=e.lastSuccesfulSearch||!e.resultsOpened&&!e.usingLiveLoader)&&e.search(),clearTimeout(e.timeouts.search))})},n.prototype._initFormEvent=function(){let e=this;c()(e.n("text").closest("form").get(0)).on("submit",function(i,s){if(i.preventDefault(),(0,S.isMobile)())if(e.o.redirectOnEnter){let d=new Event("keyup");d.keyCode=d.which=13,e.n("text").get(0).dispatchEvent(d)}else e.search(),document?.activeElement?.blur();else typeof s<"u"&&s=="ajax"&&e.search()})},n.prototype.initNavigationEvents=function(){let e=this,i=function(s){let d=s.keyCode||s.which;if(c()(".item",e.n("resultsDiv")).length>0&&e.n("resultsDiv").css("display")!="none"&&e.o.resultstype=="vertical"){if(d==40||d==38){let l=e.n("resultsDiv").find(".item.hovered");if(e.n("text").trigger("blur",[]),l.length==0?e.n("resultsDiv").find(".item").first().addClass("hovered"):(d==40&&(l.next(".item").length==0?e.n("resultsDiv").find(".item").removeClass("hovered").first().addClass("hovered"):l.removeClass("hovered").next(".item").addClass("hovered")),d==38&&(l.prev(".item").length==0?e.n("resultsDiv").find(".item").removeClass("hovered").last().addClass("hovered"):l.removeClass("hovered").prev(".item").addClass("hovered"))),s.stopPropagation(),s.preventDefault(),!e.n("resultsDiv").find(".resdrg .item.hovered").inViewPort(50,e.n("resultsDiv").get(0))){let f=e.n("resultsDiv").find(".resdrg .item.hovered").get(0);f!=null&&typeof f.scrollIntoView<"u"&&f.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}}d==13&&e.n("resultsDiv").find(".item.hovered").length>0&&(s.stopPropagation(),s.preventDefault(),e.n("resultsDiv").find(".item.hovered a.asl_res_url").get(0).click())}};e.documentEventHandlers.push({node:document,event:"keydown",handler:i}),c()(document).on("keydown",i)},n.prototype.initOtherEvents=function(){let e=this,i,s;(0,S.isMobile)()&&(0,S.detectIOS)()&&e.n("text").on("touchstart",function(){e.savedScrollTop=window.scrollY,e.savedContainerTop=e.n("search").offset().top}),e.n("proclose").on(e.clickTouchend,function(d){d.preventDefault(),d.stopImmediatePropagation(),e.n("text").val(""),e.n("textAutocomplete").val(""),e.hideResults(),e.n("text").trigger("focus",[]),e.n("proloading").css("display","none"),e.hideLoader(),e.searchAbort(),c()(".asl_es_"+e.o.id).length>0?(e.showLoader(),e.liveLoad(".asl_es_"+e.o.id,e.getCurrentLiveURL(),!1)):e.o.resPage.useAjax&&(e.showLoader(),e.liveLoad(e.o.resPage.selector,e.getRedirectURL())),e.n("text").get(0).focus()}),(0,S.isMobile)()?(i=function(){e.orientationChange(),setTimeout(function(){e.orientationChange()},600)},e.documentEventHandlers.push({node:window,event:"orientationchange",handler:i}),c()(window).on("orientationchange",i)):(i=function(){e.resize()},e.documentEventHandlers.push({node:window,event:"resize",handler:i}),c()(window).on("resize",i,{passive:!0})),s=function(){e.scrolling(!1)},e.documentEventHandlers.push({node:window,event:"scroll",handler:s}),c()(window).on("scroll",s,{passive:!0}),(0,S.isMobile)()&&e.o.mobile.menu_selector!=""&&c()(e.o.mobile.menu_selector).on("touchend",function(){let d=this;setTimeout(function(){let l=c()(d).find("input.orig");l=l.length==0?c()(d).next().find("input.orig"):l,l=l.length==0?c()(d).parent().find("input.orig"):l,l=l.length==0?e.n("text"):l,e.n("search").inViewPort()&&l.get(0).focus()},300)}),(0,S.detectIOS)()&&(0,S.isMobile)()&&(0,S.isTouchDevice)()&&parseInt(e.n("text").css("font-size"))<16&&(e.n("text").data("fontSize",e.n("text").css("font-size")).css("font-size","16px"),e.n("textAutocomplete").css("font-size","16px"),c()("body").append(""))},n.prototype.orientationChange=function(){let e=this;e.detectAndFixFixedPositioning(),e.fixSettingsPosition(),e.fixResultsPosition()},n.prototype.resize=function(){let e=this;e.detectAndFixFixedPositioning(),e.fixSettingsPosition(),e.fixResultsPosition()},n.prototype.scrolling=function(e){let i=this;i.detectAndFixFixedPositioning(),i.hideOnInvisibleBox(),i.fixSettingsPosition(e),i.fixResultsPosition(e)},n.prototype.initResultsEvents=function(){let e=this;e.n("resultsDiv").css({opacity:"0"});let i=function(s){let d=s.keyCode||s.which,l=s.type;if(c()(s.target).closest(".asl_w").length==0&&(e.hideOnInvisibleBox(),l!="click"||l!="touchend"||d!=3)){if(!e.resultsOpened||e.o.closeOnDocClick!=1)return;e.dragging||(e.hideLoader(),e.searchAbort(),e.hideResults())}};e.documentEventHandlers.push({node:document,event:e.clickTouchend,handler:i}),c()(document).on(e.clickTouchend,i),e.n("resultsDiv").on("click",".results .item",function(){e.gaEvent?.("result_click",{result_title:c()(this).find("a.asl_res_url").text(),result_url:c()(this).find("a.asl_res_url").attr("href")})})};var J=null;n.prototype.monitorTouchMove=function(){let e=this;e.dragging=!1,c()("body").on("touchmove",function(){e.dragging=!0}).on("touchstart",function(){e.dragging=!1})};var X=null;n.prototype.init=function(e,i){return this.o={...this.o,...e},this.nodes={},this.nodes.search=c()(i),this.initNodeVariables(),this.o.redirectOnClick=this.o.trigger.click!="ajax_search"&&this.o.trigger.click!="nothing",this.o.redirectOnEnter=this.o.trigger.return!="ajax_search"&&this.o.trigger.return!="nothing",this.usingLiveLoader=this.o.resPage.useAjax&&c()(this.o.resPage.selector).length>0||c()(".asl_es_"+this.o.id).length>0,this.usingLiveLoader&&(this.o.trigger.type=this.o.resPage.trigger_type,this.o.trigger.facet=this.o.resPage.trigger_facet,this.o.resPage.trigger_magnifier&&(this.o.redirectOnClick=!1,this.o.trigger.click="ajax_search"),this.o.resPage.trigger_return&&(this.o.redirectOnEnter=!1,this.o.trigger.return="ajax_search")),this.monitorTouchMove(),this.initEvents(),this.n("s").trigger("asl_init_search_bar",[this.o.id,this.o.iid],!0,!0),this},n.prototype.n=function(e){if(typeof this.nodes[e]<"u")return this.nodes[e];switch(e){case"s":this.nodes[e]=this.nodes.search;break;case"container":this.nodes[e]=this.nodes.search.closest(".asl_w_container");break;case"searchsettings":this.nodes[e]=this.n("container").find(".asl_s");break;case"resultsDiv":this.nodes[e]=this.n("container").find(".asl_r");break;case"probox":this.nodes[e]=this.nodes.search.find(".probox");break;case"proinput":this.nodes[e]=this.nodes.search.find(".proinput");break;case"text":this.nodes[e]=this.nodes.search.find(".proinput input.orig");break;case"textAutocomplete":this.nodes[e]=this.nodes.search.find(".proinput input.autocomplete");break;case"proloading":this.nodes[e]=this.nodes.search.find(".proloading");break;case"proclose":this.nodes[e]=this.nodes.search.find(".proclose");break;case"promagnifier":this.nodes[e]=this.nodes.search.find(".promagnifier");break;case"prosettings":this.nodes[e]=this.nodes.search.find(".prosettings");break;case"settingsAppend":this.nodes[e]=c()("#wpdreams_asl_settings_"+this.o.id);break;case"resultsAppend":this.nodes[e]=c()("#wpdreams_asl_results_"+this.o.id);break;case"trythis":this.nodes[e]=c()("#asp-try-"+this.o.rid);break;case"hiddenContainer":this.nodes[e]=this.n("container").find(".asl_hidden_data");break;case"aspItemOverlay":this.nodes[e]=this.n("hiddenContainer").find(".asl_item_overlay");break;case"showmore":this.nodes[e]=this.n("resultsDiv").find(".showmore");break;case"items":this.nodes[e]=this.n("resultsDiv").find(".item").length>0?this.n("resultsDiv").find(".item"):this.n("resultsDiv").find(".photostack-flip");break;case"results":this.nodes[e]=this.n("resultsDiv").find(".results");break;case"resdrg":this.nodes[e]=this.n("resultsDiv").find(".resdrg");break}return this.nodes[e]},n.prototype.initNodeVariables=function(){let e=this;e.o.id=parseInt(e.nodes.search.data("id")),e.o.iid=parseInt(e.nodes.search.data("instance")),e.o.rid=e.o.id+"_"+e.o.iid,e.fixClonedSelf()},n.prototype.initEvents=function(){this.initSettingsSwitchEvents?.(),this.initOtherEvents(),this.initMagnifierEvents(),this.initInputEvents()};var G=null;n.prototype.initResults=function(){this.resultsInitialized||(this.initResultsBox(),this.initResultsEvents(),this.initNavigationEvents?.())},n.prototype.initResultsBox=function(){let e=this;e.initResultsAnimations(),(0,S.isMobile)()&&e.o.mobile.force_res_hover==1?(e.o.resultsposition="hover",e.nodes.resultsDiv=e.n("resultsDiv").clone(),c()("body").append(e.nodes.resultsDiv),e.nodes.resultsDiv.css({position:"absolute"}),e.detectAndFixFixedPositioning()):e.o.resultsposition=="hover"&&e.n("resultsAppend").length<=0?(e.nodes.resultsDiv=e.n("resultsDiv").clone(),c()("body").append(e.n("resultsDiv"))):(e.o.resultsposition="block",e.n("resultsDiv").css({position:"static"}),e.n("resultsAppend").length>0&&(e.n("resultsAppend").find(".asl_w").length>0?e.nodes.resultsDiv=e.n("resultsAppend").find(".asl_w"):(e.nodes.resultsDiv=e.n("resultsDiv").clone(),e.nodes.resultsAppend.append(e.n("resultsDiv"))))),e.nodes.showmore=e.n("resultsDiv").find(".showmore"),e.nodes.items=e.n("resultsDiv").find(".item").length>0?e.n("resultsDiv").find(".item"):e.n("resultsDiv").find(".photostack-flip"),e.nodes.results=e.n("resultsDiv").find(".results"),e.nodes.resdrg=e.n("resultsDiv").find(".resdrg"),e.n("resultsDiv").get(0).id=e.n("resultsDiv").get(0).id.replace("__original__",""),e.detectAndFixFixedPositioning(),e.resultsInitialized=!0},n.prototype.initResultsAnimations=function(){this.n("resultsDiv").css({"-webkit-animation-duration":this.resAnim.duration+"ms","animation-duration":this.resAnim.duration+"ms"})};var K=null;n.prototype.autocompleteGoogleOnly=function(){const e=this,i=String(e.n("text").val());if(e.n("text").val()==""){e.n("textAutocomplete").val("");return}let s=String(e.n("textAutocomplete").val());if(s!=""&&s.indexOf(i)==0)return;e.n("textAutocomplete").val("");let d=e.o.autocomplete.lang;["wpml_lang","polylang_lang","qtranslate_lang"].forEach(function(l){e.n("searchsettings").find('input[name="'+l+'"]').length>0&&String(e.n("searchsettings").find('input[name="'+l+'"]').val()).length>1&&(d=String(e.n("searchsettings").find('input[name="'+l+'"]').val()))}),String(e.n("text").val()).length>=e.o.autocomplete.trigger_charcount&&c().fn.ajax({url:"https://clients1.google.com/complete/search",cors:"no-cors",data:{q:i,hl:d,nolabels:"t",client:"hp",ds:""},success:function(l){if(l[1].length>0){let f=l[1][0][0].replace(/(<([^>]+)>)/ig,"");f=c()("