jQuery(function(n){var o="up",s="down",y="left",p="right",w="none",h=n(document),u="asp_touchswipe",t=null,c=null,l=null,i=null,r=null,f=50,a=200,b=300,e=null,v=null,k=function(t,i,r,f,e){var h={direction:t,distance:i,duration:r,deviation:f},o=n(e.srcElement),s=n.Event("asp_swipe."+t,h);o.hasClass(u)||(o=o.closest("."+u));o.length>0&&(o.trigger(s),s=n.Event("asp_swipe.all",h),o.trigger(s))},d=function(n){var r=n.originalEvent,i=r.changedTouches[0];t=w;c=i.pageX;l=i.pageY;v=(new Date).getTime()},g=function(n){var w=n.originalEvent,d=w.changedTouches[0];i=d.pageX-c;r=d.pageY-l;e=(new Date).getTime()-v;var u=Math.abs(i),h=Math.abs(r);if((i>0||r>0)&&(n.stopImmediatePropagation(),n.preventDefault()),e<=b){u>=f&&h<=a?t=i<0?y:p:h>=f&&u<=a&&(t=r<0?o:s);var g=t===o||t===s,nt=g?h:u,tt=g?i:r;nt>f&&k(t,nt,e,tt,w)}};h.on("touchstart","."+u,d);h.on("touchend","."+u,g)});
!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof exports?module.exports=n:n(jQuery)}(function(n){var u,t,e=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],i="onwheel"in window.document||9<=window.document.documentMode?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],h=Array.prototype.slice;if(n.event.fixHooks)for(var o=e.length;o;)n.event.fixHooks[e[--o]]=n.event.mouseHooks;var r=n.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=i.length;t;)this.addEventListener(i[--t],f,!1);else this.onmousewheel=f;n.data(this,"mousewheel-line-height",r.getLineHeight(this));n.data(this,"mousewheel-page-height",r.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=i.length;t;)this.removeEventListener(i[--t],f,!1);else this.onmousewheel=null;n.removeData(this,"mousewheel-line-height");n.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var r=n(t),i=r["offsetParent"in n.fn?"offsetParent":"parent"]();return i.length||(i=n("body")),parseInt(i.css("fontSize"),10)||parseInt(r.css("fontSize"),10)||16},getPageHeight:function(t){return n(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function f(i){var a,f=i||window.event,p=h.call(arguments,1),l=0,o=0,e=0;if((i=n.event.fix(f)).type="mousewheel","detail"in f&&(e=-1*f.detail),"wheelDelta"in f&&(e=f.wheelDelta),"wheelDeltaY"in f&&(e=f.wheelDeltaY),"wheelDeltaX"in f&&(o=-1*f.wheelDeltaX),"axis"in f&&f.axis===f.HORIZONTAL_AXIS&&(o=-1*e,e=0),l=0===e?o:e,"deltaY"in f&&(l=e=-1*f.deltaY),"deltaX"in f&&(o=f.deltaX,0===e&&(l=-1*o)),0!==e||0!==o){if(1===f.deltaMode){var v=n.data(this,"mousewheel-line-height");l*=v;e*=v;o*=v}else if(2===f.deltaMode){var y=n.data(this,"mousewheel-page-height");l*=y;e*=y;o*=y}if(a=Math.max(Math.abs(e),Math.abs(o)),(!t||a<t)&&s(f,t=a)&&(t/=40),s(f,a)&&(l/=40,o/=40,e/=40),l=Math[1<=l?"floor":"ceil"](l/t),o=Math[1<=o?"floor":"ceil"](o/t),e=Math[1<=e?"floor":"ceil"](e/t),r.settings.normalizeOffset&&this.getBoundingClientRect){var w=this.getBoundingClientRect();i.offsetX=i.clientX-w.left;i.offsetY=i.clientY-w.top}return i.deltaX=o,i.deltaY=e,i.deltaFactor=t,i.deltaMode=0,p.unshift(i,l,o,e),u&&window.clearTimeout(u),u=window.setTimeout(c,200),(n.event.dispatch||n.event.handle).apply(this,p)}}function c(){t=null}function s(n,t){return r.settings.adjustOldDeltas&&"mousewheel"===n.type&&t%120==0}n.fn.extend({mousewheel:function(n){return n?this.on("mousewheel",n):this.trigger("mousewheel")},unmousewheel:function(n){return this.off("mousewheel",n)}})}),function(n,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):(n=n||self,n.asp_SimpleBar=t())}(this,function(){"use strict";var f=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function ft(n,t){return t={exports:{}},n(t,t.exports),t.exports}var yt="object",pt=function(n){return n&&n.Math==Math&&n},t=pt(typeof globalThis==yt&&globalThis)||pt(typeof window==yt&&window)||pt(typeof self==yt&&self)||pt(typeof f==yt&&f)||Function("return this")(),u=function(n){try{return!!n()}catch(t){return!0}},a=!u(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}),uf={}.propertyIsEnumerable,ff=Object.getOwnPropertyDescriptor,ds=ff&&!uf.call({1:2},1),gs=ds?function(n){var t=ff(this,n);return!!t&&t.enumerable}:uf,ef={f:gs},er=function(n,t){return{enumerable:!(n&1),configurable:!(n&2),writable:!(n&4),value:t}},nh={}.toString,b=function(n){return nh.call(n).slice(8,-1)},th="".split,wt=u(function(){return!Object("z").propertyIsEnumerable(0)})?function(n){return b(n)=="String"?th.call(n,""):Object(n)}:Object,bt=function(n){if(n==undefined)throw TypeError("Can't call method on "+n);return n},kt=function(n){return wt(bt(n))},n=function(n){return typeof n=="object"?n!==null:typeof n=="function"},of=function(t,i){if(!n(t))return t;var r,u;if(i&&typeof(r=t.toString)=="function"&&!n(u=r.call(t))||typeof(r=t.valueOf)=="function"&&!n(u=r.call(t))||!i&&typeof(r=t.toString)=="function"&&!n(u=r.call(t)))return u;throw TypeError("Can't convert object to primitive value");},ih={}.hasOwnProperty,r=function(n,t){return ih.call(n,t)},or=t.document,rh=n(or)&&n(or.createElement),sf=function(n){return rh?or.createElement(n):{}},hf=!a&&!u(function(){return Object.defineProperty(sf("div"),"a",{get:function(){return 7}}).a!=7}),cf=Object.getOwnPropertyDescriptor,uh=a?cf:function(n,t){if(n=kt(n),t=of(t,!0),hf)try{return cf(n,t)}catch(i){}if(r(n,t))return er(!ef.f.call(n,t),n[t])},lf={f:uh},s=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t},af=Object.defineProperty,fh=a?af:function(n,t,i){if(s(n),t=of(t,!0),s(i),hf)try{return af(n,t,i)}catch(r){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(n[t]=i.value),n},k={f:fh},o=a?function(n,t,i){return k.f(n,t,er(1,i))}:function(n,t,i){return n[t]=i,n},sr=function(n,i){try{o(t,n,i)}catch(r){t[n]=i}return i},dt=ft(function(n){var i="__core-js_shared__",r=t[i]||sr(i,{});(n.exports=function(n,t){return r[n]||(r[n]=t!==undefined?t:{})})("versions",[]).push({version:"3.2.1",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),gt=dt("native-function-to-string",Function.toString),vf=t.WeakMap,yf=typeof vf=="function"&&/native code/.test(gt.call(vf)),eh=0,oh=Math.random(),hr=function(n){return"Symbol("+String(n===undefined?"":n)+")_"+(++eh+oh).toString(36)},pf=dt("keys"),cr=function(n){return pf[n]||(pf[n]=hr(n))},ni={},sh=t.WeakMap,ti,et,ii,hh=function(n){return ii(n)?et(n):ti(n,{})},ch=function(t){return function(i){var r;if(!n(i)||(r=et(i)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}};if(yf){var d=new sh,lh=d.get,ah=d.has,vh=d.set;ti=function(n,t){return vh.call(d,n,t),t};et=function(n){return lh.call(d,n)||{}};ii=function(n){return ah.call(d,n)}}else{var ot=cr("state");ni[ot]=!0;ti=function(n,t){return o(n,ot,t),t};et=function(n){return r(n,ot)?n[ot]:{}};ii=function(n){return r(n,ot)}}var h={set:ti,get:et,has:ii,enforce:hh,getterFor:ch},st=ft(function(n){var i=h.get,u=h.enforce,f=String(gt).split("toString");dt("inspectSource",function(n){return gt.call(n)});(n.exports=function(n,i,e,s){var c=s?!!s.unsafe:!1,h=s?!!s.enumerable:!1,l=s?!!s.noTargetGet:!1;if(typeof e=="function"&&(typeof i!="string"||r(e,"name")||o(e,"name",i),u(e).source=f.join(typeof i=="string"?i:"")),n===t){h?n[i]=e:sr(i,e);return}c?!l&&n[i]&&(h=!0):delete n[i];h?n[i]=e:o(n,i,e)})(Function.prototype,"toString",function(){return typeof this=="function"&&i(this).source||gt.call(this)})}),lr=t,wf=function(n){return typeof n=="function"?n:undefined},bf=function(n,i){return arguments.length<2?wf(lr[n])||wf(t[n]):lr[n]&&lr[n][i]||t[n]&&t[n][i]},yh=Math.ceil,ph=Math.floor,ar=function(n){return isNaN(n=+n)?0:(n>0?ph:yh)(n)},wh=Math.min,ri=function(n){return n>0?wh(ar(n),9007199254740991):0},bh=Math.max,kh=Math.min,dh=function(n,t){var i=ar(n);return i<0?bh(i+t,0):kh(i,t)},kf=function(n){return function(t,i,r){var f=kt(t),e=ri(f.length),u=dh(r,e),o;if(n&&i!=i){while(e>u)if(o=f[u++],o!=o)return!0}else for(;e>u;u++)if((n||u in f)&&f[u]===i)return n||u||0;return!n&&-1}},gh={includes:kf(!0),indexOf:kf(!1)},nc=gh.indexOf,df=function(n,t){var f=kt(n),e=0,u=[];for(var i in f)!r(ni,i)&&r(f,i)&&u.push(i);while(t.length>e)r(f,i=t[e++])&&(~nc(u,i)||u.push(i));return u},ui=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],tc=ui.concat("length","prototype"),ic=Object.getOwnPropertyNames||function(n){return df(n,tc)},rc={f:ic},uc=Object.getOwnPropertySymbols,gf={f:uc},fc=bf("Reflect","ownKeys")||function(n){var t=rc.f(s(n)),i=gf.f;return i?t.concat(i(n)):t},ec=function(n,t){for(var f=fc(t),e=k.f,o=lf.f,i=0;i<f.length;i++){var u=f[i];r(n,u)||e(n,u,o(t,u))}},oc=/#|\.prototype\./,ht=function(n,t){var i=hc[sc(n)];return i==lc?!0:i==cc?!1:typeof t=="function"?u(t):!!t},sc=ht.normalize=function(n){return String(n).replace(oc,".").toLowerCase()},hc=ht.data={},cc=ht.NATIVE="N",lc=ht.POLYFILL="P",vr=ht,ac=lf.f,l=function(n,i){var s=n.target,c=n.global,l=n.stat,a,f,r,u,e,h;if(f=c?t:l?t[s]||sr(s,{}):(t[s]||{}).prototype,f)for(r in i){if(e=i[r],n.noTargetGet?(h=ac(f,r),u=h&&h.value):u=f[r],a=vr(c?r:s+(l?".":"#")+r,n.forced),!a&&u!==undefined){if(typeof e==typeof u)continue;ec(e,u)}(n.sham||u&&u.sham)&&o(e,"sham",!0);st(f,r,e,n)}},ne=function(n){if(typeof n!="function")throw TypeError(String(n)+" is not a function");return n},te=function(n,t,i){if(ne(n),t===undefined)return n;switch(i){case 0:return function(){return n.call(t)};case 1:return function(i){return n.call(t,i)};case 2:return function(i,r){return n.call(t,i,r)};case 3:return function(i,r,u){return n.call(t,i,r,u)}}return function(){return n.apply(t,arguments)}},fi=function(n){return Object(bt(n))},ie=Array.isArray||function(n){return b(n)=="Array"},re=!!Object.getOwnPropertySymbols&&!u(function(){return!String(Symbol())}),ue=t.Symbol,fe=dt("wks"),e=function(n){return fe[n]||(fe[n]=re&&ue[n]||(re?ue:hr)("Symbol."+n))},vc=e("species"),yc=function(t,i){var r;return ie(t)&&(r=t.constructor,typeof r=="function"&&(r===Array||ie(r.prototype))?r=undefined:n(r)&&(r=r[vc],r===null&&(r=undefined))),new(r===undefined?Array:r)(i===0?0:i)},pc=[].push,v=function(n){var i=n==1,u=n==2,f=n==3,t=n==4,r=n==6,e=n==5||r;return function(o,s,h,c){for(var w=fi(o),v=wt(w),d=te(s,h,3),b=ri(v.length),l=0,k=c||yc,y=i?k(o,b):u?k(o,0):undefined,a,p;b>l;l++)if((e||l in v)&&(a=v[l],p=d(a,l,w),n))if(i)y[l]=p;else if(p)switch(n){case 3:return!0;case 5:return a;case 6:return l;case 2:pc.call(y,a)}else if(t)return!1;return r?-1:f||t?t:y}},ei={forEach:v(0),map:v(1),filter:v(2),some:v(3),every:v(4),find:v(5),findIndex:v(6)},ee=function(n,t){var i=[][n];return!i||!u(function(){i.call(null,t||function(){throw 1;},1)})},wc=ei.forEach,ct=ee("forEach")?function(n){return wc(this,n,arguments.length>1?arguments[1]:undefined)}:[].forEach;l({target:"Array",proto:!0,forced:[].forEach!=ct},{forEach:ct});var yr={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0};for(var bc in yr){var oe=t[bc],oi=oe&&oe.prototype;if(oi&&oi.forEach!==ct)try{o(oi,"forEach",ct)}catch(bb){oi.forEach=ct}}var kc=!!(typeof window!="undefined"&&window.document&&window.document.createElement),pr=kc,dc=e("species"),gc=function(n){return!u(function(){var t=[],i=t.constructor={};return i[dc]=function(){return{foo:1}},t[n](Boolean).foo!==1})},nl=ei.filter;l({target:"Array",proto:!0,forced:!gc("filter")},{filter:function(n){return nl(this,n,arguments.length>1?arguments[1]:undefined)}});var si=Object.keys||function(n){return df(n,ui)},tl=a?Object.defineProperties:function(n,t){s(n);for(var i=si(t),f=i.length,r=0,u;f>r;)k.f(n,u=i[r++],t[u]);return n},il=bf("document","documentElement"),se=cr("IE_PROTO"),wr="prototype",br=function(){},hi=function(){var t=sf("iframe"),r=ui.length,u="<",i="script",f=">",e="java"+i+":",n;for(t.style.display="none",il.appendChild(t),t.src=String(e),n=t.contentWindow.document,n.open(),n.write(u+i+f+"document.F=Object"+u+"/"+i+f),n.close(),hi=n.F;r--;)delete hi[wr][ui[r]];return hi()},he=Object.create||function(n,t){var i;return n!==null?(br[wr]=s(n),i=new br,br[wr]=null,i[se]=n):i=hi(),t===undefined?i:tl(i,t)};ni[se]=!0;var kr=e("unscopables"),dr=Array.prototype;dr[kr]==undefined&&o(dr,kr,he(null));var gr=function(n){dr[kr][n]=!0},g={},rl=!u(function(){function n(){}return n.prototype.constructor=null,Object.getPrototypeOf(new n)!==n.prototype}),ce=cr("IE_PROTO"),ul=Object.prototype,ci=rl?Object.getPrototypeOf:function(n){return(n=fi(n),r(n,ce))?n[ce]:typeof n.constructor=="function"&&n instanceof n.constructor?n.constructor.prototype:n instanceof Object?ul:null},le=e("iterator"),ae=!1,fl=function(){return this},nt,nu,tu;[].keys&&(tu=[].keys(),"next"in tu?(nu=ci(ci(tu)),nu!==Object.prototype&&(nt=nu)):ae=!0);nt==undefined&&(nt={});r(nt,le)||o(nt,le,fl);var iu={IteratorPrototype:nt,BUGGY_SAFARI_ITERATORS:ae},el=k.f,ve=e("toStringTag"),ru=function(n,t,i){n&&!r(n=i?n:n.prototype,ve)&&el(n,ve,{configurable:!0,value:t})},ol=iu.IteratorPrototype,sl=function(){return this},hl=function(n,t,i){var r=t+" Iterator";return n.prototype=he(ol,{next:er(1,i)}),ru(n,r,!1),g[r]=sl,n},cl=function(t){if(!n(t)&&t!==null)throw TypeError("Can't set "+String(t)+" as a prototype");return t},li=Object.setPrototypeOf||("__proto__"in{}?function(){var t=!1,i={},n;try{n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set;n.call(i,[]);t=i instanceof Array}catch(r){}return function(i,r){return s(i),cl(r),t?n.call(i,r):i.__proto__=r,i}}():undefined),uu=iu.IteratorPrototype,ai=iu.BUGGY_SAFARI_ITERATORS,lt=e("iterator"),ye="keys",vi="values",pe="entries",ll=function(){return this},we=function(n,t,i,r,u,f,e){hl(i,t,r);var y=function(n){if(n===u&&h)return h;if(!ai&&n in s)return s[n];switch(n){case ye:return function(){return new i(this,n)};case vi:return function(){return new i(this,n)};case pe:return function(){return new i(this,n)}}return function(){return new i(this)}},k=t+" Iterator",w=!1,s=n.prototype,a=s[lt]||s["@@iterator"]||u&&s[u],h=!ai&&a||y(u),b=t=="Array"?s.entries||a:a,c,v,p;if(b&&(c=ci(b.call(new n)),uu!==Object.prototype&&c.next&&(ci(c)!==uu&&(li?li(c,uu):typeof c[lt]!="function"&&o(c,lt,ll)),ru(c,k,!0))),u==vi&&a&&a.name!==vi&&(w=!0,h=function(){return a.call(this)}),s[lt]!==h&&o(s,lt,h),g[t]=h,u)if(v={values:y(vi),keys:f?h:y(ye),entries:y(pe)},e)for(p in v)!ai&&!w&&p in s||st(s,p,v[p]);else l({target:t,proto:!0,forced:ai||w},v);return v},be="Array Iterator",al=h.set,vl=h.getterFor(be),at=we(Array,"Array",function(n,t){al(this,{type:be,target:kt(n),index:0,kind:t})},function(){var t=vl(this),i=t.target,r=t.kind,n=t.index++;return!i||n>=i.length?(t.target=undefined,{value:undefined,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:i[n],done:!1}:{value:[n,i[n]],done:!1}},"values");g.Arguments=g.Array;gr("keys");gr("values");gr("entries");var yi=Object.assign,ke=!yi||u(function(){var n={},t={},i=Symbol(),r="abcdefghijklmnopqrst";return n[i]=7,r.split("").forEach(function(n){t[n]=n}),yi({},n)[i]!=7||si(yi({},t)).join("")!=r})?function(n){for(var r=fi(n),s=arguments.length,u=1,f=gf.f,h=ef.f;s>u;)for(var t=wt(arguments[u++]),e=f?si(t).concat(f(t)):si(t),c=e.length,o=0,i;c>o;)i=e[o++],(!a||h.call(t,i))&&(r[i]=t[i]);return r}:yi;l({target:"Object",stat:!0,forced:Object.assign!==ke},{assign:ke});var yl=e("toStringTag"),pl=b(function(){return arguments}())=="Arguments",wl=function(n,t){try{return n[t]}catch(i){}},de=function(n){var t,i,r;return n===undefined?"Undefined":n===null?"Null":typeof(i=wl(t=Object(n),yl))=="string"?i:pl?b(t):(r=b(t))=="Object"&&typeof t.callee=="function"?"Arguments":r},bl=e("toStringTag"),fu={};fu[bl]="z";var ge=String(fu)!=="[object z]"?function(){return"[object "+de(this)+"]"}:fu.toString,no=Object.prototype;ge!==no.toString&&st(no,"toString",ge,{unsafe:!0});var eu="\t\n\x0b\f\r                　\u2028\u2029",pi="["+eu+"]",kl=RegExp("^"+pi+pi+"*"),dl=RegExp(pi+pi+"*$"),ou=function(n){return function(t){var i=String(bt(t));return n&1&&(i=i.replace(kl,"")),n&2&&(i=i.replace(dl,"")),i}},gl={start:ou(1),end:ou(2),trim:ou(3)},na=gl.trim,wi=t.parseInt,ta=/^[+-]?0[Xx]/,ia=wi(eu+"08")!==8||wi(eu+"0x16")!==22,to=ia?function(n,t){var i=na(String(n));return wi(i,t>>>0||(ta.test(i)?16:10))}:wi;l({global:!0,forced:parseInt!=to},{parseInt:to});var io=function(n){return function(t,i){var u=String(bt(t)),r=ar(i),o=u.length,f,e;return r<0||r>=o?n?"":undefined:(f=u.charCodeAt(r),f<55296||f>56319||r+1===o||(e=u.charCodeAt(r+1))<56320||e>57343?n?u.charAt(r):f:n?u.slice(r,r+2):(f-55296<<10)+(e-56320)+65536)}},ro={codeAt:io(!1),charAt:io(!0)},ra=ro.charAt,uo="String Iterator",ua=h.set,fa=h.getterFor(uo);we(String,"String",function(n){ua(this,{type:uo,string:String(n),index:0})},function(){var n=fa(this),i=n.string,r=n.index,t;return r>=i.length?{value:undefined,done:!0}:(t=ra(i,r),n.index+=t.length,{value:t,done:!1})});var su=function(n,t,i){for(var r in t)st(n,r,t[r],i);return n},ea=!u(function(){return Object.isExtensible(Object.preventExtensions({}))}),y=ft(function(t){var e=k.f,i=hr("meta"),o=0,u=Object.isExtensible||function(){return!0},f=function(n){e(n,i,{value:{objectID:"O"+ ++o,weakData:{}}})},s=function(t,e){if(!n(t))return typeof t=="symbol"?t:(typeof t=="string"?"S":"P")+t;if(!r(t,i)){if(!u(t))return"F";if(!e)return"E";f(t)}return t[i].objectID},h=function(n,t){if(!r(n,i)){if(!u(n))return!0;if(!t)return!1;f(n)}return n[i].weakData},c=function(n){return ea&&l.REQUIRED&&u(n)&&!r(n,i)&&f(n),n},l=t.exports={REQUIRED:!1,fastKey:s,getWeakData:h,onFreeze:c};ni[i]=!0}),ik=y.REQUIRED,rk=y.fastKey,uk=y.getWeakData,fk=y.onFreeze,oa=e("iterator"),sa=Array.prototype,ha=function(n){return n!==undefined&&(g.Array===n||sa[oa]===n)},ca=e("iterator"),la=function(n){if(n!=undefined)return n[ca]||n["@@iterator"]||g[de(n)]},aa=function(n,t,i,r){try{return r?t(s(i)[0],i[1]):t(i)}catch(f){var u=n["return"];u!==undefined&&s(u.call(n));throw f;}},fo=ft(function(n){var t=function(n,t){this.stopped=n;this.result=t},i=n.exports=function(n,i,r,u,f){var a=te(i,r,u?2:1),h,c,o,v,e,l;if(f)h=n;else{if(c=la(n),typeof c!="function")throw TypeError("Target is not iterable");if(ha(c)){for(o=0,v=ri(n.length);v>o;o++)if(e=u?a(s(l=n[o])[0],l[1]):a(n[o]),e&&e instanceof t)return e;return new t(!1)}h=c.call(n)}while(!(l=h.next()).done)if(e=aa(h,a,l.value,u),e&&e instanceof t)return e;return new t(!1)};i.stop=function(n){return new t(!0,n)}}),eo=function(n,t,i){if(!(n instanceof t))throw TypeError("Incorrect "+(i?i+" ":"")+"invocation");return n},oo=e("iterator"),so=!1;try{var va=0,ho={next:function(){return{done:!!va++}},"return":function(){so=!0}};ho[oo]=function(){return this};Array.from(ho,function(){throw 2;})}catch(bb){}var ya=function(n,t){if(!t&&!so)return!1;var i=!1;try{var r={};r[oo]=function(){return{next:function(){return{done:i=!0}}}};n(r)}catch(u){}return i},pa=function(t,i,r){var u,f;return li&&typeof(u=i.constructor)=="function"&&u!==r&&n(f=u.prototype)&&f!==r.prototype&&li(t,f),t},wa=function(i,r,f,e,o){var h=t[i],c=h&&h.prototype,s=h,a=e?"set":"add",w={},v=function(t){var i=c[t];st(c,t,t=="add"?function(n){return i.call(this,n===0?0:n),this}:t=="delete"?function(t){return o&&!n(t)?!1:i.call(this,t===0?0:t)}:t=="get"?function(t){return o&&!n(t)?undefined:i.call(this,t===0?0:t)}:t=="has"?function(t){return o&&!n(t)?!1:i.call(this,t===0?0:t)}:function(n,t){return i.call(this,n===0?0:n,t),this})};if(vr(i,typeof h!="function"||!(o||c.forEach&&!u(function(){(new h).entries().next()}))))s=f.getConstructor(r,i,e,a),y.REQUIRED=!0;else if(vr(i,!0)){var p=new s,k=p[a](o?{}:-0,1)!=p,d=u(function(){p.has(1)}),g=ya(function(n){new h(n)}),b=!o&&u(function(){for(var t=new h,n=5;n--;)t[a](n,n);return!t.has(-0)});g||(s=r(function(n,t){eo(n,s,i);var r=pa(new h,n,s);return t!=undefined&&fo(t,r[a],r,e),r}),s.prototype=c,c.constructor=s);(d||b)&&(v("delete"),v("has"),e&&v("get"));(b||k)&&v(a);o&&c.clear&&delete c.clear}return w[i]=s,l({global:!0,forced:s!=h},w),ru(s,i),o||f.setStrong(s,i,e),s},bi=y.getWeakData,ba=h.set,ka=h.getterFor,da=ei.find,ga=ei.findIndex,nv=0,ki=function(n){return n.frozen||(n.frozen=new co)},co=function(){this.entries=[]},hu=function(n,t){return da(n.entries,function(n){return n[0]===t})};co.prototype={get:function(n){var t=hu(this,n);if(t)return t[1]},has:function(n){return!!hu(this,n)},set:function(n,t){var i=hu(this,n);i?i[1]=t:this.entries.push([n,t])},"delete":function(n){var t=ga(this.entries,function(t){return t[0]===n});return~t&&this.entries.splice(t,1),!!~t}};var lo={getConstructor:function(t,i,u,f){var e=t(function(n,t){eo(n,e,i);ba(n,{type:i,id:nv++,frozen:undefined});t!=undefined&&fo(t,n[f],n,u)}),o=ka(i),h=function(n,t,i){var r=o(n),u=bi(s(t),!0);return u===!0?ki(r).set(t,i):u[r.id]=i,n};return su(e.prototype,{"delete":function(t){var u=o(this);if(!n(t))return!1;var i=bi(t);return i===!0?ki(u)["delete"](t):i&&r(i,u.id)&&delete i[u.id]},has:function(t){var u=o(this);if(!n(t))return!1;var i=bi(t);return i===!0?ki(u).has(t):i&&r(i,u.id)}}),su(e.prototype,u?{get:function(t){var r=o(this);if(n(t)){var i=bi(t);return i===!0?ki(r).get(t):i?i[r.id]:undefined}},set:function(n,t){return h(this,n,t)}}:{add:function(n){return h(this,n,!0)}}),e}},ek=ft(function(i){var f=h.enforce,v=!t.ActiveXObject&&"ActiveXObject"in t,e=Object.isExtensible,r,s=function(n){return function(){return n(this,arguments.length?arguments[0]:undefined)}},p=i.exports=wa("WeakMap",s,lo,!0,!0);if(yf&&v){r=lo.getConstructor(s,"WeakMap",!0);y.REQUIRED=!0;var u=p.prototype,c=u["delete"],o=u.has,l=u.get,a=u.set;su(u,{"delete":function(t){if(n(t)&&!e(t)){var i=f(this);return i.frozen||(i.frozen=new r),c.call(this,t)||i.frozen["delete"](t)}return c.call(this,t)},has:function(t){if(n(t)&&!e(t)){var i=f(this);return i.frozen||(i.frozen=new r),o.call(this,t)||i.frozen.has(t)}return o.call(this,t)},get:function(t){if(n(t)&&!e(t)){var i=f(this);return i.frozen||(i.frozen=new r),o.call(this,t)?l.call(this,t):i.frozen.get(t)}return l.call(this,t)},set:function(t,i){if(n(t)&&!e(t)){var u=f(this);u.frozen||(u.frozen=new r);o.call(this,t)?a.call(this,t,i):u.frozen.set(t,i)}else a.call(this,t,i);return this}})}}),cu=e("iterator"),ao=e("toStringTag"),lu=at.values;for(var au in yr){var vo=t[au],c=vo&&vo.prototype;if(c){if(c[cu]!==lu)try{o(c,cu,lu)}catch(bb){c[cu]=lu}if(c[ao]||o(c,ao,au),yr[au])for(var tt in at)if(c[tt]!==at[tt])try{o(c,tt,at[tt])}catch(bb){c[tt]=at[tt]}}}var yo="Expected a function",po=0/0,tv="[object Symbol]",iv=/^\s+|\s+$/g,rv=/^[-+]0x[0-9a-f]+$/i,uv=/^0b[01]+$/i,fv=/^0o[0-7]+$/i,ev=parseInt,ov=typeof f=="object"&&f&&f.Object===Object&&f,sv=typeof self=="object"&&self&&self.Object===Object&&self,hv=ov||sv||Function("return this")(),cv=Object.prototype,lv=cv.toString,av=Math.max,vv=Math.min,vu=function(){return hv.Date.now()};function yv(n,t,i){var f,o,c,e,r,u,s=0,p=!1,h=!1,a=!0;if(typeof n!="function")throw new TypeError(yo);t=wo(t)||0;di(i)&&(p=!!i.leading,h="maxWait"in i,c=h?av(wo(i.maxWait)||0,t):c,a="trailing"in i?!!i.trailing:a);function v(t){var i=f,r=o;return f=o=undefined,s=t,e=n.apply(r,i)}function k(n){return s=n,r=setTimeout(l,t),p?v(n):e}function d(n){var r=n-u,f=n-s,i=t-r;return h?vv(i,c-f):i}function w(n){var i=n-u,r=n-s;return u===undefined||i>=t||i<0||h&&r>=c}function l(){var n=vu();if(w(n))return b(n);r=setTimeout(l,d(n))}function b(n){return(r=undefined,a&&f)?v(n):(f=o=undefined,e)}function g(){r!==undefined&&clearTimeout(r);s=0;f=u=o=r=undefined}function nt(){return r===undefined?e:b(vu())}function y(){var n=vu(),i=w(n);if(f=arguments,o=this,u=n,i){if(r===undefined)return k(u);if(h)return r=setTimeout(l,t),v(u)}return r===undefined&&(r=setTimeout(l,t)),e}return y.cancel=g,y.flush=nt,y}function pv(n,t,i){var r=!0,u=!0;if(typeof n!="function")throw new TypeError(yo);return di(i)&&(r="leading"in i?!!i.leading:r,u="trailing"in i?!!i.trailing:u),yv(n,t,{leading:r,maxWait:t,trailing:u})}function di(n){var t=typeof n;return!!n&&(t=="object"||t=="function")}function wv(n){return!!n&&typeof n=="object"}function bv(n){return typeof n=="symbol"||wv(n)&&lv.call(n)==tv}function wo(n){if(typeof n=="number")return n;if(bv(n))return po;if(di(n)){var t=typeof n.valueOf=="function"?n.valueOf():n;n=di(t)?t+"":t}if(typeof n!="string")return n===0?n:+n;n=n.replace(iv,"");var i=uv.test(n);return i||fv.test(n)?ev(n.slice(2),i?2:8):rv.test(n)?po:+n}var bo=pv,kv="Expected a function",ko=0/0,dv="[object Symbol]",gv=/^\s+|\s+$/g,ny=/^[-+]0x[0-9a-f]+$/i,ty=/^0b[01]+$/i,iy=/^0o[0-7]+$/i,ry=parseInt,uy=typeof f=="object"&&f&&f.Object===Object&&f,fy=typeof self=="object"&&self&&self.Object===Object&&self,ey=uy||fy||Function("return this")(),oy=Object.prototype,sy=oy.toString,hy=Math.max,cy=Math.min,yu=function(){return ey.Date.now()};function ly(n,t,i){var f,o,c,e,r,u,s=0,p=!1,h=!1,a=!0;if(typeof n!="function")throw new TypeError(kv);t=go(t)||0;pu(i)&&(p=!!i.leading,h="maxWait"in i,c=h?hy(go(i.maxWait)||0,t):c,a="trailing"in i?!!i.trailing:a);function v(t){var i=f,r=o;return f=o=undefined,s=t,e=n.apply(r,i)}function k(n){return s=n,r=setTimeout(l,t),p?v(n):e}function d(n){var r=n-u,f=n-s,i=t-r;return h?cy(i,c-f):i}function w(n){var i=n-u,r=n-s;return u===undefined||i>=t||i<0||h&&r>=c}function l(){var n=yu();if(w(n))return b(n);r=setTimeout(l,d(n))}function b(n){return(r=undefined,a&&f)?v(n):(f=o=undefined,e)}function g(){r!==undefined&&clearTimeout(r);s=0;f=u=o=r=undefined}function nt(){return r===undefined?e:b(yu())}function y(){var n=yu(),i=w(n);if(f=arguments,o=this,u=n,i){if(r===undefined)return k(u);if(h)return r=setTimeout(l,t),v(u)}return r===undefined&&(r=setTimeout(l,t)),e}return y.cancel=g,y.flush=nt,y}function pu(n){var t=typeof n;return!!n&&(t=="object"||t=="function")}function ay(n){return!!n&&typeof n=="object"}function vy(n){return typeof n=="symbol"||ay(n)&&sy.call(n)==dv}function go(n){if(typeof n=="number")return n;if(vy(n))return ko;if(pu(n)){var t=typeof n.valueOf=="function"?n.valueOf():n;n=pu(t)?t+"":t}if(typeof n!="string")return n===0?n:+n;n=n.replace(gv,"");var i=ty.test(n);return i||iy.test(n)?ry(n.slice(2),i?2:8):ny.test(n)?ko:+n}var ns=ly,yy="Expected a function",ts="__lodash_hash_undefined__",py="[object Function]",wy="[object GeneratorFunction]",by=/^\[object .+?Constructor\]$/,ky=typeof f=="object"&&f&&f.Object===Object&&f,dy=typeof self=="object"&&self&&self.Object===Object&&self,is=ky||dy||Function("return this")();function gy(n,t){return n==null?undefined:n[t]}function np(n){var t=!1;if(n!=null&&typeof n.toString!="function")try{t=!!(n+"")}catch(i){}return t}var tp=Array.prototype,ip=Function.prototype,rs=Object.prototype,wu=is["__core-js_shared__"],us=function(){var n=/[^.]+$/.exec(wu&&wu.keys&&wu.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),fs=ip.toString,bu=rs.hasOwnProperty,rp=rs.toString,up=RegExp("^"+fs.call(bu).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),fp=tp.splice,ep=es(is,"Map"),vt=es(Object,"create");function p(n){var t=-1,r=n?n.length:0;for(this.clear();++t<r;){var i=n[t];this.set(i[0],i[1])}}function op(){this.__data__=vt?vt(null):{}}function sp(n){return this.has(n)&&delete this.__data__[n]}function hp(n){var t=this.__data__;if(vt){var i=t[n];return i===ts?undefined:i}return bu.call(t,n)?t[n]:undefined}function cp(n){var t=this.__data__;return vt?t[n]!==undefined:bu.call(t,n)}function lp(n,t){var i=this.__data__;return i[n]=vt&&t===undefined?ts:t,this}p.prototype.clear=op;p.prototype["delete"]=sp;p.prototype.get=hp;p.prototype.has=cp;p.prototype.set=lp;function it(n){var t=-1,r=n?n.length:0;for(this.clear();++t<r;){var i=n[t];this.set(i[0],i[1])}}function ap(){this.__data__=[]}function vp(n){var t=this.__data__,i=gi(t,n);if(i<0)return!1;var r=t.length-1;return i==r?t.pop():fp.call(t,i,1),!0}function yp(n){var t=this.__data__,i=gi(t,n);return i<0?undefined:t[i][1]}function pp(n){return gi(this.__data__,n)>-1}function wp(n,t){var i=this.__data__,r=gi(i,n);return r<0?i.push([n,t]):i[r][1]=t,this}it.prototype.clear=ap;it.prototype["delete"]=vp;it.prototype.get=yp;it.prototype.has=pp;it.prototype.set=wp;function w(n){var t=-1,r=n?n.length:0;for(this.clear();++t<r;){var i=n[t];this.set(i[0],i[1])}}function bp(){this.__data__={hash:new p,map:new(ep||it),string:new p}}function kp(n){return nr(this,n)["delete"](n)}function dp(n){return nr(this,n).get(n)}function gp(n){return nr(this,n).has(n)}function nw(n,t){return nr(this,n).set(n,t),this}w.prototype.clear=bp;w.prototype["delete"]=kp;w.prototype.get=dp;w.prototype.has=gp;w.prototype.set=nw;function gi(n,t){for(var i=n.length;i--;)if(fw(n[i][0],t))return i;return-1}function tw(n){if(!os(n)||rw(n))return!1;var t=ew(n)||np(n)?up:by;return t.test(uw(n))}function nr(n,t){var i=n.__data__;return iw(t)?i[typeof t=="string"?"string":"hash"]:i.map}function es(n,t){var i=gy(n,t);return tw(i)?i:undefined}function iw(n){var t=typeof n;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?n!=="__proto__":n===null}function rw(n){return!!us&&us in n}function uw(n){if(n!=null){try{return fs.call(n)}catch(t){}try{return n+""}catch(t){}}return""}function ku(n,t){if(typeof n!="function"||t&&typeof t!="function")throw new TypeError(yy);var i=function(){var r=arguments,u=t?t.apply(this,r):r[0],f=i.cache;if(f.has(u))return f.get(u);var e=n.apply(this,r);return i.cache=f.set(u,e),e};return i.cache=new(ku.Cache||w),i}ku.Cache=w;function fw(n,t){return n===t||n!==n&&t!==t}function ew(n){var t=os(n)?rp.call(n):"";return t==py||t==wy}function os(n){var t=typeof n;return!!n&&(t=="object"||t=="function")}var ow=ku,ss=function(){function n(n,t){var i=-1;return n.some(function(n,r){return n[0]===t?(i=r,!0):!1}),i}return typeof Map!="undefined"?Map:function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var r=n(this.__entries__,t),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(t,i){var r=n(this.__entries__,t);~r?this.__entries__[r][1]=i:this.__entries__.push([t,i])},t.prototype.delete=function(t){var i=this.__entries__,r=n(i,t);~r&&i.splice(r,1)},t.prototype.has=function(t){return!!~n(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,t){t===void 0&&(t=null);for(var i=0,r=this.__entries__;i<r.length;i++){var u=r[i];n.call(t,u[1],u[0])}},t}()}(),du=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,tr=function(){return typeof global!="undefined"&&global.Math===Math?global:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),sw=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(tr):function(n){return setTimeout(function(){return n(Date.now())},1e3/60)}}(),hw=2;function cw(n,t){var i=!1,r=!1,u=0;function e(){i&&(i=!1,n());r&&f()}function o(){sw(e)}function f(){var n=Date.now();if(i){if(n-u<hw)return;r=!0}else i=!0,r=!1,setTimeout(o,t);u=n}return f}var lw=20,aw=["top","right","bottom","left","width","height","size","weight"],vw=typeof MutationObserver!="undefined",yw=function(){function n(){this.connected_=!1;this.mutationEventsAdded_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=cw(this.refresh.bind(this),lw)}return n.prototype.addObserver=function(n){~this.observers_.indexOf(n)||this.observers_.push(n);this.connected_||this.connect_()},n.prototype.removeObserver=function(n){var t=this.observers_,i=t.indexOf(n);~i&&t.splice(i,1);!t.length&&this.connected_&&this.disconnect_()},n.prototype.refresh=function(){var n=this.updateObservers_();n&&this.refresh()},n.prototype.updateObservers_=function(){var n=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return n.forEach(function(n){return n.broadcastActive()}),n.length>0},n.prototype.connect_=function(){du&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),vw?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},n.prototype.disconnect_=function(){du&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},n.prototype.onTransitionEnd_=function(n){var t=n.propertyName,i=t===void 0?"":t,r=aw.some(function(n){return!!~i.indexOf(n)});r&&this.refresh()},n.getInstance=function(){return this.instance_||(this.instance_=new n),this.instance_},n.instance_=null,n}(),hs=function(n,t){for(var i=0,r=Object.keys(t);i<r.length;i++){var u=r[i];Object.defineProperty(n,u,{value:t[u],enumerable:!1,writable:!1,configurable:!0})}return n},rt=function(n){var t=n&&n.ownerDocument&&n.ownerDocument.defaultView;return t||tr},cs=rr(0,0,0,0);function ir(n){return parseFloat(n)||0}function ls(n){for(var i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];return i.reduce(function(t,i){var r=n["border-"+i+"-width"];return t+ir(r)},0)}function pw(n){for(var i={},t=0,r=["top","right","bottom","left"];t<r.length;t++){var u=r[t],f=n["padding-"+u];i[u]=ir(f)}return i}function ww(n){var t=n.getBBox();return rr(0,0,t.width,t.height)}function bw(n){var f=n.clientWidth,e=n.clientHeight;if(!f&&!e)return cs;var t=rt(n).getComputedStyle(n),i=pw(t),o=i.left+i.right,s=i.top+i.bottom,r=ir(t.width),u=ir(t.height);if(t.boxSizing==="border-box"&&(Math.round(r+o)!==f&&(r-=ls(t,"left","right")+o),Math.round(u+s)!==e&&(u-=ls(t,"top","bottom")+s)),!dw(n)){var h=Math.round(r+o)-f,c=Math.round(u+s)-e;Math.abs(h)!==1&&(r-=h);Math.abs(c)!==1&&(u-=c)}return rr(i.left,i.top,r,u)}var kw=function(){return typeof SVGGraphicsElement!="undefined"?function(n){return n instanceof rt(n).SVGGraphicsElement}:function(n){return n instanceof rt(n).SVGElement&&typeof n.getBBox=="function"}}();function dw(n){return n===rt(n).document.documentElement}function gw(n){return du?kw(n)?ww(n):bw(n):cs}function nb(n){var t=n.x,i=n.y,r=n.width,u=n.height,e=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,f=Object.create(e.prototype);return hs(f,{x:t,y:i,width:r,height:u,top:i,right:t+r,bottom:u+i,left:t}),f}function rr(n,t,i,r){return{x:n,y:t,width:i,height:r}}var tb=function(){function n(n){this.broadcastWidth=0;this.broadcastHeight=0;this.contentRect_=rr(0,0,0,0);this.target=n}return n.prototype.isActive=function(){var n=gw(this.target);return this.contentRect_=n,n.width!==this.broadcastWidth||n.height!==this.broadcastHeight},n.prototype.broadcastRect=function(){var n=this.contentRect_;return this.broadcastWidth=n.width,this.broadcastHeight=n.height,n},n}(),ib=function(){function n(n,t){var i=nb(t);hs(this,{target:n,contentRect:i})}return n}(),rb=function(){function n(n,t,i){if(this.activeObservations_=[],this.observations_=new ss,typeof n!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=n;this.controller_=t;this.callbackCtx_=i}return n.prototype.observe=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(typeof Element!="undefined"&&Element instanceof Object){if(!(n instanceof rt(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(n)||(t.set(n,new tb(n)),this.controller_.addObserver(this),this.controller_.refresh())}},n.prototype.unobserve=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(typeof Element!="undefined"&&Element instanceof Object){if(!(n instanceof rt(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(n)&&(t.delete(n),t.size||this.controller_.removeObserver(this))}},n.prototype.disconnect=function(){this.clearActive();this.observations_.clear();this.controller_.removeObserver(this)},n.prototype.gatherActive=function(){var n=this;this.clearActive();this.observations_.forEach(function(t){t.isActive()&&n.activeObservations_.push(t)})},n.prototype.broadcastActive=function(){if(this.hasActive()){var n=this.callbackCtx_,t=this.activeObservations_.map(function(n){return new ib(n.target,n.broadcastRect())});this.callback_.call(n,t,n);this.clearActive()}},n.prototype.clearActive=function(){this.activeObservations_.splice(0)},n.prototype.hasActive=function(){return this.activeObservations_.length>0},n}(),as=typeof WeakMap!="undefined"?new WeakMap:new ss,vs=function(){function n(t){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=yw.getInstance(),r=new rb(t,i,this);as.set(this,r)}return n}();["observe","unobserve","disconnect"].forEach(function(n){vs.prototype[n]=function(){var t;return(t=as.get(this))[n].apply(t,arguments)}});var ub=function(){return typeof tr.ResizeObserver!="undefined"?tr.ResizeObserver:vs}(),ut=null,ys=null;pr&&window.addEventListener("resize",function(){ys!==window.devicePixelRatio&&(ys=window.devicePixelRatio,ut=null)});function ps(){if(ut===null){if(typeof document=="undefined")return ut=0;var t=document.body,n=document.createElement("div");n.classList.add("asp_simplebar-hide-scrollbar");t.appendChild(n);var i=n.getBoundingClientRect().right;t.removeChild(n);ut=i}return ut}var i=function(){function t(n,i){var r=this;(this.onScroll=function(){r.scrollXTicking||(window.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0);r.scrollYTicking||(window.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0)},this.scrollX=function(){r.axis.x.isOverflowing&&(r.showScrollbar("x"),r.positionScrollbar("x"));r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&(r.showScrollbar("y"),r.positionScrollbar("y"));r.scrollYTicking=!1},this.onMouseEnter=function(){r.showScrollbar("x");r.showScrollbar("y")},this.onMouseMove=function(n){if(r.mouseX=n.clientX,r.mouseY=n.clientY,r.axis.x.isOverflowing||r.axis.x.forceVisible)r.onMouseMoveForAxis("x");if(r.axis.y.isOverflowing||r.axis.y.forceVisible)r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){if(r.onMouseMove.cancel(),r.axis.x.isOverflowing||r.axis.x.forceVisible)r.onMouseLeaveForAxis("x");if(r.axis.y.isOverflowing||r.axis.y.forceVisible)r.onMouseLeaveForAxis("y");r.mouseX=-1;r.mouseY=-1},this.onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth();r.hideNativeScrollbar()},this.hideScrollbars=function(){r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect();r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect();r.isWithinBounds(r.axis.y.track.rect)||(r.axis.y.scrollbar.el.classList.remove(r.classNames.visible),r.axis.y.isVisible=!1);r.isWithinBounds(r.axis.x.track.rect)||(r.axis.x.scrollbar.el.classList.remove(r.classNames.visible),r.axis.x.isVisible=!1)},this.onPointerEvent=function(n){var t,i;if(r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(t=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(i=r.isWithinBounds(r.axis.y.track.rect)),(t||i)&&(n.preventDefault(),n.stopPropagation(),n.type==="mousedown")){if(t)if(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect))r.onDragStart(n,"x");else r.onTrackClick(n,"x");if(i)if(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect))r.onDragStart(n,"y");else r.onTrackClick(n,"y")}},this.drag=function(n){var u,f=r.axis[r.draggedAxis].track,e=f.rect[r.axis[r.draggedAxis].sizeAttr],o=r.axis[r.draggedAxis].scrollbar,s=r.contentWrapperEl[r.axis[r.draggedAxis].scrollSizeAttr],h=parseInt(r.elStyles[r.axis[r.draggedAxis].sizeAttr],10);n.preventDefault();n.stopPropagation();u=r.draggedAxis==="y"?n.pageY:n.pageX;var c=u-f.rect[r.axis[r.draggedAxis].offsetAttr]-r.axis[r.draggedAxis].dragOffset,l=c/(e-o.size),i=l*(s-h);r.draggedAxis==="x"&&(i=r.isRtl&&t.getRtlHelpers().isRtlScrollbarInverted?i-(e+o.size):i,i=r.isRtl&&t.getRtlHelpers().isRtlScrollingInverted?-i:i);r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=i},this.onEndDrag=function(n){n.preventDefault();n.stopPropagation();r.el.classList.remove(r.classNames.dragging);document.removeEventListener("mousemove",r.drag,!0);document.removeEventListener("mouseup",r.onEndDrag,!0);r.removePreventClickId=window.setTimeout(function(){document.removeEventListener("click",r.preventClick,!0);document.removeEventListener("dblclick",r.preventClick,!0);r.removePreventClickId=null})},this.preventClick=function(n){n.preventDefault();n.stopPropagation()},this.el=n,this.minScrollbarWidth=20,this.options=Object.assign({},t.defaultOptions,{},i),this.classNames=Object.assign({},t.defaultOptions.classNames,{},this.options.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}}},this.removePreventClickId=null,t.instances.has(this.el))||(this.recalculate=bo(this.recalculate.bind(this),64),this.onMouseMove=bo(this.onMouseMove.bind(this),64),this.hideScrollbars=ns(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=ns(this.onWindowResize.bind(this),64,{leading:!0}),t.getRtlHelpers=ow(t.getRtlHelpers),this.init())}t.getRtlHelpers=function(){var r=document.createElement("div");r.innerHTML='<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"><\/div><\/div>';var n=r.firstElementChild;document.body.appendChild(n);var u=n.firstElementChild;n.scrollLeft=0;var f=t.getOffset(n),i=t.getOffset(u);n.scrollLeft=999;var e=t.getOffset(u);return{isRtlScrollingInverted:f.left!==i.left&&i.left-e.left!=0,isRtlScrollbarInverted:f.left!==i.left}};t.getOffset=function(n){var t=n.getBoundingClientRect();return{top:t.top+(window.pageYOffset||document.documentElement.scrollTop),left:t.left+(window.pageXOffset||document.documentElement.scrollLeft)}};var n=t.prototype;return n.init=function(){t.instances.set(this.el,this);pr&&(this.initDOM(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},n.initDOM=function(){var i=this;if(Array.prototype.filter.call(this.el.children,function(n){return n.classList.contains(i.classNames.wrapper)}).length)this.wrapperEl=this.el.querySelector("."+this.classNames.wrapper),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector("."+this.classNames.contentWrapper),this.contentEl=this.options.contentNode||this.el.querySelector("."+this.classNames.contentEl),this.offsetEl=this.el.querySelector("."+this.classNames.offset),this.maskEl=this.el.querySelector("."+this.classNames.mask),this.placeholderEl=this.findChild(this.wrapperEl,"."+this.classNames.placeholder),this.heightAutoObserverWrapperEl=this.el.querySelector("."+this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl=this.el.querySelector("."+this.classNames.heightAutoObserverEl),this.axis.x.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.horizontal),this.axis.y.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.vertical);else{for(this.wrapperEl=document.createElement("div"),this.contentWrapperEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),this.wrapperEl.classList.add(this.classNames.wrapper),this.contentWrapperEl.classList.add(this.classNames.contentWrapper),this.offsetEl.classList.add(this.classNames.offset),this.maskEl.classList.add(this.classNames.mask),this.contentEl.classList.add(this.classNames.contentEl),this.placeholderEl.classList.add(this.classNames.placeholder),this.heightAutoObserverWrapperEl.classList.add(this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl.classList.add(this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.contentWrapperEl.appendChild(this.contentEl);this.offsetEl.appendChild(this.contentWrapperEl);this.maskEl.appendChild(this.offsetEl);this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl);this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl);this.wrapperEl.appendChild(this.maskEl);this.wrapperEl.appendChild(this.placeholderEl);this.el.appendChild(this.wrapperEl)}if(!this.axis.x.track.el||!this.axis.y.track.el){var n=document.createElement("div"),t=document.createElement("div");n.classList.add(this.classNames.track);t.classList.add(this.classNames.scrollbar);n.appendChild(t);this.axis.x.track.el=n.cloneNode(!0);this.axis.x.track.el.classList.add(this.classNames.horizontal);this.axis.y.track.el=n.cloneNode(!0);this.axis.y.track.el.classList.add(this.classNames.vertical);this.el.appendChild(this.axis.x.track.el);this.el.appendChild(this.axis.y.track.el)}this.axis.x.scrollbar.el=this.axis.x.track.el.querySelector("."+this.classNames.scrollbar);this.axis.y.scrollbar.el=this.axis.y.track.el.querySelector("."+this.classNames.scrollbar);this.options.autoHide||(this.axis.x.scrollbar.el.classList.add(this.classNames.visible),this.axis.y.scrollbar.el.classList.add(this.classNames.visible));this.el.setAttribute("data-asp_simplebar","init")},n.initListeners=function(){var n=this;this.options.autoHide&&this.el.addEventListener("mouseenter",this.onMouseEnter);["mousedown","click","dblclick"].forEach(function(t){n.el.addEventListener(t,n.onPointerEvent,!0)});["touchstart","touchend","touchmove"].forEach(function(t){n.el.addEventListener(t,n.onPointerEvent,{capture:!0,passive:!0})});this.el.addEventListener("mousemove",this.onMouseMove);this.el.addEventListener("mouseleave",this.onMouseLeave);this.contentWrapperEl.addEventListener("scroll",this.onScroll);window.addEventListener("resize",this.onWindowResize);var t=!1;this.resizeObserver=new ub(function(){t&&n.recalculate()});this.resizeObserver.observe(this.el);this.resizeObserver.observe(this.contentEl);window.requestAnimationFrame(function(){t=!0});this.mutationObserver=new MutationObserver(this.recalculate);this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})},n.recalculate=function(){this.elStyles=window.getComputedStyle(this.el);this.isRtl=this.elStyles.direction==="rtl";var u=this.heightAutoObserverEl.offsetHeight<=1,f=this.heightAutoObserverEl.offsetWidth<=1,t=this.contentEl.offsetWidth,e=this.contentWrapperEl.offsetWidth,o=this.elStyles.overflowX,s=this.elStyles.overflowY;this.contentEl.style.padding=this.elStyles.paddingTop+" "+this.elStyles.paddingRight+" "+this.elStyles.paddingBottom+" "+this.elStyles.paddingLeft;this.wrapperEl.style.margin="-"+this.elStyles.paddingTop+" -"+this.elStyles.paddingRight+" -"+this.elStyles.paddingBottom+" -"+this.elStyles.paddingLeft;var n=this.contentEl.scrollHeight,i=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=u?"auto":"100%";this.placeholderEl.style.width=f?t+"px":"auto";this.placeholderEl.style.height=n+"px";var r=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=i>t;this.axis.y.isOverflowing=n>r;this.axis.x.isOverflowing=o==="hidden"?!1:this.axis.x.isOverflowing;this.axis.y.isOverflowing=s==="hidden"?!1:this.axis.y.isOverflowing;this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0;this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0;this.hideNativeScrollbar();var h=this.axis.x.isOverflowing?this.scrollbarWidth:0,c=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&i>e-c;this.axis.y.isOverflowing=this.axis.y.isOverflowing&&n>r-h;this.axis.x.scrollbar.size=this.getScrollbarSize("x");this.axis.y.scrollbar.size=this.getScrollbarSize("y");this.axis.x.scrollbar.el.style.width=this.axis.x.scrollbar.size+"px";this.axis.y.scrollbar.el.style.height=this.axis.y.scrollbar.size+"px";this.positionScrollbar("x");this.positionScrollbar("y");this.toggleTrackVisibility("x");this.toggleTrackVisibility("y")},n.getScrollbarSize=function(n){if(n===void 0&&(n="y"),!this.axis[n].isOverflowing)return 0;var r=this.contentEl[this.axis[n].scrollSizeAttr],i=this.axis[n].track.el[this.axis[n].offsetSizeAttr],t,u=i/r;return t=Math.max(~~(u*i),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(t=Math.min(t,this.options.scrollbarMaxSize)),t},n.positionScrollbar=function(n){if(n===void 0&&(n="y"),this.axis[n].isOverflowing){var e=this.contentWrapperEl[this.axis[n].scrollSizeAttr],f=this.axis[n].track.el[this.axis[n].offsetSizeAttr],o=parseInt(this.elStyles[this.axis[n].sizeAttr],10),u=this.axis[n].scrollbar,r=this.contentWrapperEl[this.axis[n].scrollOffsetAttr];r=n==="x"&&this.isRtl&&t.getRtlHelpers().isRtlScrollingInverted?-r:r;var s=r/(e-o),i=~~((f-u.size)*s);i=n==="x"&&this.isRtl&&t.getRtlHelpers().isRtlScrollbarInverted?i+(f-u.size):i;u.el.style.transform=n==="x"?"translate3d("+i+"px, 0, 0)":"translate3d(0, "+i+"px, 0)"}},n.toggleTrackVisibility=function(n){n===void 0&&(n="y");var t=this.axis[n].track.el,i=this.axis[n].scrollbar.el;this.axis[n].isOverflowing||this.axis[n].forceVisible?(t.style.visibility="visible",this.contentWrapperEl.style[this.axis[n].overflowAttr]="scroll"):(t.style.visibility="hidden",this.contentWrapperEl.style[this.axis[n].overflowAttr]="hidden");i.style.display=this.axis[n].isOverflowing?"block":"none"},n.hideNativeScrollbar=function(){this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-"+this.scrollbarWidth+"px":0;this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-"+this.scrollbarWidth+"px":0},n.onMouseMoveForAxis=function(n){n===void 0&&(n="y");this.axis[n].track.rect=this.axis[n].track.el.getBoundingClientRect();this.axis[n].scrollbar.rect=this.axis[n].scrollbar.el.getBoundingClientRect();var t=this.isWithinBounds(this.axis[n].scrollbar.rect);t?this.axis[n].scrollbar.el.classList.add(this.classNames.hover):this.axis[n].scrollbar.el.classList.remove(this.classNames.hover);this.isWithinBounds(this.axis[n].track.rect)?(this.showScrollbar(n),this.axis[n].track.el.classList.add(this.classNames.hover)):this.axis[n].track.el.classList.remove(this.classNames.hover)},n.onMouseLeaveForAxis=function(n){n===void 0&&(n="y");this.axis[n].track.el.classList.remove(this.classNames.hover);this.axis[n].scrollbar.el.classList.remove(this.classNames.hover)},n.showScrollbar=function(n){n===void 0&&(n="y");var t=this.axis[n].scrollbar.el;this.axis[n].isVisible||(t.classList.add(this.classNames.visible),this.axis[n].isVisible=!0);this.options.autoHide&&this.hideScrollbars()},n.onDragStart=function(n,t){t===void 0&&(t="y");var i=this.axis[t].scrollbar,r=t==="y"?n.pageY:n.pageX;this.axis[t].dragOffset=r-i.rect[this.axis[t].offsetAttr];this.draggedAxis=t;this.el.classList.add(this.classNames.dragging);document.addEventListener("mousemove",this.drag,!0);document.addEventListener("mouseup",this.onEndDrag,!0);this.removePreventClickId===null?(document.addEventListener("click",this.preventClick,!0),document.addEventListener("dblclick",this.preventClick,!0)):(window.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},n.onTrackClick=function(n,t){var r=this;t===void 0&&(t="y");this.axis[t].scrollbar.rect=this.axis[t].scrollbar.el.getBoundingClientRect();var c=this.axis[t].scrollbar,f=c.rect[this.axis[t].offsetAttr],e=parseInt(this.elStyles[this.axis[t].sizeAttr],10),i=this.contentWrapperEl[this.axis[t].scrollOffsetAttr],l=t==="y"?this.mouseY-f:this.mouseX-f,o=l<0?-1:1,s=o===-1?i-e:i+e,h=40,u=function u(){if(o===-1){if(i>s){var n;i-=h;r.contentWrapperEl.scrollTo((n={},n[r.axis[t].offsetAttr]=i,n));window.requestAnimationFrame(u)}}else if(i<s){var f;i+=h;r.contentWrapperEl.scrollTo((f={},f[r.axis[t].offsetAttr]=i,f));window.requestAnimationFrame(u)}};u()},n.getContentElement=function(){return this.contentEl},n.getScrollElement=function(){return this.contentWrapperEl},n.getScrollbarWidth=function(){try{return getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style?0:ps()}catch(n){return ps()}},n.removeListeners=function(){var n=this;this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter);["mousedown","click","dblclick"].forEach(function(t){n.el.removeEventListener(t,n.onPointerEvent,!0)});["touchstart","touchend","touchmove"].forEach(function(t){n.el.removeEventListener(t,n.onPointerEvent,{capture:!0,passive:!0})});this.el.removeEventListener("mousemove",this.onMouseMove);this.el.removeEventListener("mouseleave",this.onMouseLeave);this.contentWrapperEl.removeEventListener("scroll",this.onScroll);window.removeEventListener("resize",this.onWindowResize);this.mutationObserver.disconnect();this.resizeObserver.disconnect();this.recalculate.cancel();this.onMouseMove.cancel();this.hideScrollbars.cancel();this.onWindowResize.cancel()},n.unMount=function(){this.removeListeners();t.instances.delete(this.el)},n.isWithinBounds=function(n){return this.mouseX>=n.left&&this.mouseX<=n.left+n.width&&this.mouseY>=n.top&&this.mouseY<=n.top+n.height},n.findChild=function(n,t){var i=n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector;return Array.prototype.filter.call(n.children,function(n){return i.call(n,t)})[0]},t}();i.defaultOptions={autoHide:!0,forceVisible:!1,classNames:{contentEl:"asp_simplebar-content",contentWrapper:"asp_simplebar-content-wrapper",offset:"asp_simplebar-offset",mask:"asp_simplebar-mask",wrapper:"asp_simplebar-wrapper",placeholder:"asp_simplebar-placeholder",scrollbar:"asp_simplebar-scrollbar",track:"asp_simplebar-track",heightAutoObserverWrapperEl:"asp_simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"asp_simplebar-height-auto-observer",visible:"asp_simplebar-visible",horizontal:"asp_simplebar-horizontal",vertical:"asp_simplebar-vertical",hover:"asp_simplebar-hover",dragging:"asp_simplebar-dragging"},scrollbarMinSize:25,scrollbarMaxSize:0,timeout:1e3};i.instances=new WeakMap;var ws=function(n){return function(t,i,r,u){ne(i);var o=fi(t),e=wt(o),s=ri(o.length),f=n?s-1:0,h=n?-1:1;if(r<2)while(!0){if(f in e){u=e[f];f+=h;break}if(f+=h,n?f<0:s<=f)throw TypeError("Reduce of empty array with no initial value");}for(;n?f>=0:s>f;f+=h)f in e&&(u=i(u,e[f],f,o));return u}},fb={left:ws(!1),right:ws(!0)},eb=fb.left;l({target:"Array",proto:!0,forced:ee("reduce")},{reduce:function(n){return eb(this,n,arguments.length,arguments.length>1?arguments[1]:undefined)}});var ob=k.f,gu=Function.prototype,sb=gu.toString,hb=/^\s*function ([^ (]*)/,bs="name";!a||bs in gu||ob(gu,bs,{configurable:!0,get:function(){try{return sb.call(this).match(hb)[1]}catch(n){return""}}});var cb=function(){var t=s(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n},ur=RegExp.prototype.exec,lb=String.prototype.replace,ks=ur,nf=function(){var n=/a/,t=/b*/g;return ur.call(n,"a"),ur.call(t,"a"),n.lastIndex!==0||t.lastIndex!==0}(),tf=/()??/.exec("")[1]!==undefined,ab=nf||tf;ab&&(ks=function(n){var i=this,u,f,t,r;return tf&&(f=new RegExp("^"+i.source+"$(?!\\s)",cb.call(i))),nf&&(u=i.lastIndex),t=ur.call(i,n),nf&&t&&(i.lastIndex=i.global?t.index+t[0].length:u),tf&&t&&t.length>1&&lb.call(t[0],f,function(){for(r=1;r<arguments.length-2;r++)arguments[r]===undefined&&(t[r]=undefined)}),t});var rf=ks;l({target:"RegExp",proto:!0,forced:/./.exec!==rf},{exec:rf});var hk=e("species"),ck=!u(function(){var n=/./;return n.exec=function(){var n=[];return n.groups={a:"7"},n},"".replace(n,"$<a>")!=="7"}),lk=!u(function(){var n=/(?:)/,i=n.exec;n.exec=function(){return i.apply(this,arguments)};var t="ab".split(n);return t.length!==2||t[0]!=="a"||t[1]!=="b"}),vb=ro.charAt,ak=function(n,t,i){return t+(i?vb(n,t).length:1)},vk=function(n,t){var i=n.exec;if(typeof i=="function"){var r=i.call(n,t);if(typeof r!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return r}if(b(n)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return rf.call(n,t)},yk=Math.max,pk=Math.min,wk=Math.floor,bk=function(n){return n===undefined?n:String(n)},fr=function(n){return Array.prototype.reduce.call(n,function(n,t){var r=t.name.match(/data-asp_simplebar-(.+)/);if(r){var i=r[1].replace(/\W+(.)/g,function(n,t){return t.toUpperCase()});switch(t.value){case"true":n[i]=!0;break;case"false":n[i]=!1;break;case undefined:n[i]=!0;break;default:n[i]=t.value}}return n},{})};return i.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements);window.removeEventListener("load",this.initDOMLoadedElements);Array.prototype.forEach.call(document.querySelectorAll('[data-asp_simplebar]:not([data-asp_simplebar="init"])'),function(n){i.instances.has(n)||new i(n,fr(n.attributes))})},i.removeObserver=function(){this.globalObserver.disconnect()},i.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this);typeof MutationObserver!="undefined"&&(this.globalObserver=new MutationObserver(i.handleMutations),this.globalObserver.observe(document,{childList:!0,subtree:!0}));document.readyState!=="complete"&&(document.readyState==="loading"||document.documentElement.doScroll)?(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements)):window.setTimeout(this.initDOMLoadedElements)},i.handleMutations=function(n){n.forEach(function(n){Array.prototype.forEach.call(n.addedNodes,function(n){n.nodeType===1&&(n.hasAttribute("data-asp_simplebar")?i.instances.has(n)||new i(n,fr(n.attributes)):Array.prototype.forEach.call(n.querySelectorAll('[data-asp_simplebar]:not([data-asp_simplebar="init"])'),function(n){i.instances.has(n)||new i(n,fr(n.attributes))}))});Array.prototype.forEach.call(n.removedNodes,function(n){n.nodeType===1&&(n.hasAttribute('[data-asp_simplebar="init"]')?i.instances.has(n)&&i.instances.get(n).unMount():Array.prototype.forEach.call(n.querySelectorAll('[data-asp_simplebar="init"]'),function(n){i.instances.has(n)&&i.instances.get(n).unMount()}))})})},i.getOptions=fr,pr&&i.initHtmlApi(),i});jQuery.extend({highlight:function(n,t,i,r,u){if(u=u==""?".exhghttt":u,n.nodeType===3){var h=n.data.normalize("NFD").replace(/[\u0300-\u036f]/g,""),f=h.match(t);if(f){var s=document.createElement(i||"span");if(s.className=r||"highlight",/\.|,|\s/.test(f[0].charAt(0)))var c=f.index+1;else var c=f.index;var e=n.splitText(c);e.splitText(f[1].length);var l=e.cloneNode(!0);return s.appendChild(l),e.parentNode.replaceChild(s,e),1}}else if(n.nodeType===1&&n.childNodes&&!/(script|style)/i.test(n.tagName)&&!jQuery(n).closest(u).length>0&&!(n.tagName===i.toUpperCase()&&n.className===r))for(var o=0;o<n.childNodes.length;o++)o+=jQuery.highlight(n.childNodes[o],t,i,r,u);return 0}});jQuery.fn.unhighlight=function(n){var t={className:"highlight",element:"span"};return jQuery.extend(t,n),this.find(t.element+"."+t.className).each(function(){var n=this.parentNode;n.replaceChild(this.firstChild,this);n.normalize()}).end()};jQuery.fn.highlight=function(n,t){var i={className:"highlight",element:"span",caseSensitive:!1,wordsOnly:!1,excludeParents:""};if(jQuery.extend(i,t),n.constructor===String&&(n=[n]),n=jQuery.grep(n,function(n){return n!=""}),n=jQuery.map(n,function(n){return n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&").normalize("NFD").replace(/[\u0300-\u036f]/g,"")}),n.length==0)return this;var u=i.caseSensitive?"":"i",r="("+n.join("|")+")";i.wordsOnly&&(r="(?:,|^|\\s)"+r+"(?:,|$|\\s)");var f=new RegExp(r,u);return this.each(function(){jQuery.highlight(this,f,i.element,i.className,i.excludeParents)})};
(function(n){"use strict";var t=typeof aspjQuery!="undefined"?aspjQuery:n.jQuery;t.extend(t.expr.pseudos||t.expr[":"],{"in-viewport":t.expr.createPseudo?t.expr.createPseudo(function(n){return function(t){return i(t,r(n))}}):function(n,t,u){return i(n,r(u[3]))}});t.fn.isInViewport=function(n){return this.filter(function(t,r){return i(r,n)})};t.fn.run=u;function u(n){var i=this;if(arguments.length===1&&typeof n=="function"&&(n=[n]),!(n instanceof Array))throw new SyntaxError("isInViewport: Argument(s) passed to .do/.run should be a function or an array of functions");return n.forEach(function(n){typeof n!="function"?(console.warn("isInViewport: Argument(s) passed to .do/.run should be a function or an array of functions"),console.warn("isInViewport: Ignoring non-function values in array and moving on")):[].slice.call(i).forEach(function(i){return n.call(t(i))})}),this}function f(n){var i=t("<div><\/div>").css({width:"100%"});n.append(i);var r=n.width()-i.width();return i.remove(),r}function i(r,u){var s=r.getBoundingClientRect(),h=s.top,c=s.bottom,a=s.left,v=s.right,e=t.extend({tolerance:0,viewport:n},u),o=e.viewport.jquery?e.viewport:t(e.viewport);o.length||(console.warn("isInViewport: The viewport selector you have provided matches no element on page."),console.warn("isInViewport: Defaulting to viewport as window"),o=t(n));var y=o.height(),p=o.width(),w=o[0].toString();if(o[0]!==n&&w!=="[object Window]"&&w!=="[object DOMWindow]"){var l=o[0].getBoundingClientRect();h=h-l.top;c=c-l.top;a=a-l.left;v=v-l.left;i.scrollBarWidth=i.scrollBarWidth||f(o);p-=i.scrollBarWidth}return(e.tolerance=~~Math.round(parseFloat(e.tolerance)),v<=0||a>=p)?!1:e.tolerance?h>=e.tolerance&&c<y-e.tolerance:c>0&&h<=y}function r(n){if(n){var i=n.split(",");return i.length===1&&isNaN(i[0])&&(i[1]=i[0],i[0]=void 0),{tolerance:i[0]?i[0].trim():void 0,viewport:i[1]?t(i[1].trim()):void 0}}return{}}})(window);
(function(n){var i={},r,w=!0,b={errors:{noui:{msg:"NOUI script is not loaded, try saving the search settings and clearing the cache",raised:!1,repeat:!1},isotope:{msg:"Isotope script is not loaded, try saving the search settings and clearing the cache",raised:!1,repeat:!1},polaroid:{msg:"Polaroid script is not loaded, try saving the search settings and clearing the cache",raised:!1,repeat:!1},datepicker:{msg:"Datepicker script is not loaded, try saving the search settings and clearing the cache",raised:!1,repeat:!1},select2:{msg:"Select2 script is not loaded, try saving the search settings and clearing the cache",raised:!1,repeat:!1},instance:{msg:"This search instance %s does not exist! %s asd %s ddd %s",raised:!1,repeat:!0},missing_response:{msg:"The response data is missing from the ajax request!\n"+"This could mean a server related issue.\n\n"+"Check your .htaccess configuration and try disabling all other plugins to see if the problem persists.",raised:!1,repeat:!0,force:!1}},raiseError:function(n){var t=this;if(!t.errors[n].raised||t.errors[n].repeat){var i="Ajax Search Pro Warning: "+t.errors[n].msg;if(arguments.length>1)for(var r=1;r<arguments.length;++r)i.replace("%s",arguments[r]);(ASP.debug||typeof t.errors[n].force!="undefined")&&alert(i);console.log(i);t.errors[n].raised=!0}},init:function(r,u){var e=this;this.elem=u;this.$elem=n(u);e.searching=!1;e.o=n.extend({},r);e.n={};e.n.container=n(this.elem);e.n.c=e.n.container;var o=e.n.container.attr("id").match(/^ajaxsearchpro(.*)_(.*)/);return e.o.rid=o[1]+"_"+o[2],e.o.iid=o[2],e.o.id=o[1],e.o.name=e.n.container.data("name"),i[e.o.rid]=this,ASP.instances=i,e.n.probox=n(".probox",e.n.container),e.n.proinput=n(".proinput",e.n.container),e.n.text=n(".proinput input.orig",e.n.container),e.n.textAutocomplete=n(".proinput input.autocomplete",e.n.container),e.n.loading=n(".proinput .loading",e.n.container),e.n.proloading=n(".proloading",e.n.container),e.n.proclose=n(".proclose",e.n.container),e.n.promagnifier=n(".promagnifier",e.n.container),e.n.prosettings=n(".prosettings",e.n.container),e.n.searchsettings=n("#ajaxsearchprosettings"+e.o.rid),e.n.trythis=n("#asp-try-"+e.o.rid),e.o.blocking=!1,e.resultsOpened=!1,e.n.searchsettings.length<=0&&(e.n.searchsettings=n("#ajaxsearchprobsettings"+e.o.rid),e.o.blocking=!0),e.n.resultsDiv=n("#ajaxsearchprores"+e.o.rid),e.n.hiddenContainer=n("#asp_hidden_data"),e.n.hiddenContainer2=n("#asp_hidden_data_"+e.o.rid),e.n.aspItemOverlay=n(".asp_item_overlay",e.n.hiddenContainer2),e.resizeTimeout=null,e.triggerPrevState=!1,e.isAutoP=!1,e.settingsChanged=!1,e.n.showmore=n(".showmore",e.n.resultsDiv),e.n.items=n(".item",e.n.resultsDiv).length>0?n(".item",e.n.resultsDiv):n(".photostack-flip",e.n.resultsDiv),e.n.results=n(".results",e.n.resultsDiv),e.n.resdrg=n(".resdrg",e.n.resultsDiv),e.o.resPage.useAjax=e.o.compact.enabled?0:e.o.resPage.useAjax,t()&&(e.o.trigger.type=e.o.mobile.trigger_on_type,e.o.trigger.click=e.o.mobile.click_action,e.o.trigger.click_location=e.o.mobile.click_action_location,e.o.trigger.return=e.o.mobile.return_action,e.o.trigger.return_location=e.o.mobile.return_action_location,e.o.trigger.redirect_url=e.o.mobile.redirect_url,e.o.trigger.elementor_url=e.o.mobile.elementor_url),e.o.redirectOnClick=e.o.trigger.click!="ajax_search"&&e.o.trigger.click!="nothing",e.o.redirectOnEnter=e.o.trigger.return!="ajax_search"&&e.o.trigger.return!="nothing",e.usingLiveLoader=e.o.resPage.useAjax&&n(e.o.resPage.selector).length>0||n(".asp_es_"+e.o.id).length>0,e.usingLiveLoader&&(e.o.trigger.type=e.o.resPage.trigger_type,e.o.trigger.facet=e.o.resPage.trigger_facet,e.o.resPage.trigger_magnifier&&(e.o.redirectOnClick=0,e.o.trigger.click="ajax_search"),e.o.resPage.trigger_return&&(e.o.redirectOnEnter=0,e.o.trigger.click="ajax_search")),e.clickTouchend="click touchend",e.mouseupTouchend="mouseup touchend",e.n.trythis.detach().insertAfter(e.n.container),e.il={columns:3,rows:e.o.isotopic.pagination?e.o.isotopic.rows:1e4,itemsPerPage:6,lastVisibleItem:-1},e.noUiSliders=[],e.timeouts={compactBeforeOpen:null,compactAfterOpen:null,searchWithCheck:null},e.post=null,e.postAuto=null,e.cleanUp(),e.n.textAutocomplete.val(""),e.scroll={},e.savedScrollTop=0,e.savedContainerTop=0,e.is_scroll=typeof asp_SimpleBar!="undefined",typeof ASP.scrollbar!="undefined"&&ASP.scrollbar==0&&(e.is_scroll=!1),e.o.resultstype=="horizontal"&&e.o.scrollBar.horizontal.enabled==0&&(e.is_scroll=!1),e.settScroll=null,e.n.resultsAppend=n("#wpdreams_asp_results_"+e.o.id),e.n.settingsAppend=n("#wpdreams_asp_settings_"+e.o.id),e.currentPage=1,e.isotopic=null,e.sIsotope=null,e.lastSuccesfulSearch="",e.lastSearchData={},e.supportTransform=rt(),e._no_animations=!1,e.resInfoBoxTxt=e.n.resultsDiv.find(".asp_results_top p.asp_rt_phrase").length>0?e.n.resultsDiv.find(".asp_results_top p.asp_rt_phrase").html():"",e.resInfoBoxTxtNoPhrase=e.n.resultsDiv.find(".asp_results_top p.asp_rt_nophrase").length>0?e.n.resultsDiv.find(".asp_results_top p.asp_rt_nophrase").html():"",e.call_num=0,e.results_num=0,e.animOptions=t()?e.o.animations.mob:e.o.animations.pc,e.asp_lazy=!1,e.o.trigger.redirect_url=p(e.o.trigger.redirect_url),e.o.trigger.elementor_url=p(e.o.trigger.elementor_url),e.animationOpacity=e.animOptions.items.indexOf("In")<0?"opacityOne":"opacityZero",e.filterFns={number:function(){for(var t=n(this).parent();!t.hasClass("isotopic");)t=t.parent();var i=n(this).attr("data-itemnum"),r=e.currentPage,u=e.il.itemsPerPage;return i%(e.il.columns*e.il.rows)<e.il.columns*(e.il.rows-1)?n(this).addClass("asp_gutter_bottom"):n(this).removeClass("asp_gutter_bottom"),parseInt(i,10)<u*r&&parseInt(i,10)>=u*(r-1)}},n.easing.aspEaseOutQuad=function(n){return 1-(1-n)*(1-n)},e.o.compact.overlay==1&&n("#asp_absolute_overlay").length<=0&&n("<div id='asp_absolute_overlay'><\/div>").appendTo("body"),e.disableMobileScroll=!1,e.originalFormData=f(n("form",e.n.searchsettings)),ASP.js_retain_popstate==1&&e.initPrevState(),e.initCompact(),e.initSettingsBox(),e.initResultsBox(),e.detectAndFixFixedPositioning(),e.monitorTouchMove(),it()&&e.n.container.addClass("asp_msie"),e.initSettingsAnimations(),e.initResultsAnimations(),e.initEvents(),e.initAutop(),e.initEtc(),e.initInfiniteScroll(),e.fixAccessibility(),e.hooks(),w=!1,e.n.c.trigger("asp_init_search_bar",[e.o.id,e.o.iid]),this},initPrevState:function(){var t=this;w&&r==null&&(r=localStorage.getItem("asp-"+u.encode(location.href)),r!=null&&(r=JSON.parse(r),r.settings=u.decode(r.settings)));r!=null&&typeof r.id!="undefined"&&r.id==t.o.id&&r.instance==t.o.iid&&(r.phrase!=""&&(t.triggerPrevState=!0,t.n.text.val(r.phrase)),f(n("form",t.n.searchsettings))!=r.settings&&(t.triggerPrevState=!0,f(n("form",t.n.searchsettings),r.settings)));localStorage.removeItem("asp-"+u.encode(location.href));t.n.resultsDiv.on("click",".results .item",function(){var i=t.n.text.val();if(i!=""||t.settingsChanged){var r={id:t.o.id,instance:t.o.iid,phrase:i,settings:u.encode(f(n("form",t.n.searchsettings)))};localStorage.setItem("asp-"+u.encode(location.href),JSON.stringify(r))}})},initCompact:function(){var t=this;if(t.o.compact.enabled==1&&t.o.compact.position!="fixed"&&(t.o.compact.overlay=0),t.o.compact.enabled==1&&t.n.trythis.css({display:"none"}),t.o.compact.enabled==1&&t.o.compact.position=="fixed")var i=setInterval(function(){t.n.container.css("position")=="fixed"&&(t.n.container.detach().appendTo("body"),t.n.trythis.detach().appendTo("body"),t.n.container.css({top:t.n.container.offset().top-n(document).scrollTop()+"px"}),clearInterval(i))},200)},initSettingsBox:function(){var n=this;if(t()&&n.o.mobile.force_sett_hover==1)return n.n.searchsettings.attr("id",n.n.searchsettings.attr("id").replace("probsettings","prosettings")),n.n.searchsettings.removeClass("asp_sb asp_sb_"+n.o.id+" asp_sb_"+n.o.rid),n.n.searchsettings.addClass("asp_s asp_s_"+n.o.id+" asp_s_"+n.o.rid),n.n.searchsettings.detach().appendTo("body"),n.n.searchsettings.css({position:"absolute"}),n.o.blocking=!1,n.detectAndFixFixedPositioning(),!0;n.n.settingsAppend.length>0?n.n.settingsAppend.find(".asp_w").length>0?n.n.searchsettings=n.n.settingsAppend.find(".asp_w"):(n.o.blocking==!1&&(n.n.searchsettings.attr("id",n.n.searchsettings.attr("id").replace("prosettings","probsettings")),n.o.blocking=!0),n.n.searchsettings.detach().appendTo(n.n.settingsAppend)):n.o.blocking==!1&&n.n.searchsettings.detach().appendTo("body")},initResultsBox:function(){var i=this;t()&&i.o.mobile.force_res_hover==1?(i.o.resultsposition="hover",i.n.resultsDiv.detach().appendTo("body"),i.n.resultsDiv.css({position:"absolute"}),i.detectAndFixFixedPositioning()):i.o.resultsposition=="hover"&&i.n.resultsAppend.length<=0?i.n.resultsDiv.detach().appendTo("body"):(i.o.resultsposition="block",i.n.resultsDiv.css({position:"static"}),i.n.resultsAppend.length>0?i.n.resultsAppend.find(".asp_w").length>0?(i.n.resultsDiv=i.n.resultsAppend.find(".asp_w"),i.n.showmore=n(".showmore",i.n.resultsDiv),i.n.items=n(".item",i.n.resultsDiv).length>0?n(".item",i.n.resultsDiv):n(".photostack-flip",i.n.resultsDiv),i.n.results=n(".results",i.n.resultsDiv),i.n.resdrg=n(".resdrg",i.n.resultsDiv)):i.n.resultsDiv.detach().appendTo(i.n.resultsAppend):i.n.resultsDiv.detach().insertAfter(i.n.container));i.o.resultstype=="polaroid"&&i.n.results.addClass("photostack")},initInfiniteScroll:function(){var t=this;if(t.o.show_more.infinite&&t.o.resultstype!="polaroid"){var i;n(window).add(t.n.results).on("scroll",function(){clearTimeout(i);i=setTimeout(function(){t.checkAndTriggerInfiniteScroll("window")},80)});var r;t.n.resultsDiv.on("nav_switch",function(){clearTimeout(r);r=setTimeout(function(){t.checkAndTriggerInfiniteScroll("isotopic")},800)})}},monitorTouchMove:function(){var t=this;t.dragging=!1;n("body").on("touchmove",function(){t.dragging=!0});n("body").on("touchstart",function(){t.dragging=!1})},duplicateCheck:function(){var i=this,t={};n("div[id*=ajaxsearchpro]").each(function(){t.hasOwnProperty(this.id)?n(this).remove():t[this.id]="true"})},gaPageview:function(n){var r=this,t=r.gaGetTrackingID();if(typeof ASP.analytics=="undefined"||ASP.analytics.method!="pageview")return!1;if(ASP.analytics.string!=""){var i=typeof __gaTracker=="function"?__gaTracker:typeof ga=="function"?ga:!1,u=typeof gtag=="function"?gtag:!1;window.location.origin||(window.location.origin=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""));var f=r.o.homeurl.replace(window.location.origin,"");u!==!1?t!==!1&&u("config",t,{page_path:f+ASP.analytics.string.replace("{asp_term}",n)}):i!==!1&&(t!==!1&&i("create",t,"auto"),i("send","pageview",{page:f+ASP.analytics.string.replace("{asp_term}",n),title:"Ajax Search"}))}},gaEvent:function(t,i){var u=this,f=u.gaGetTrackingID();if(typeof ASP.analytics=="undefined"||ASP.analytics.method!="event")return!1;var e=typeof gtag=="function"?gtag:!1,o=typeof __gaTracker=="function"?__gaTracker:typeof ga=="function"?ga:!1;if(e===!1&&o===!1)return!1;if(typeof ASP.analytics.event[t]!="undefined"&&ASP.analytics.event[t].active==1&&typeof"gtag"!="undefined"){var s={search_id:u.o.id,search_name:u.o.name,phrase:u.n.text.val(),option_name:"",option_value:"",result_title:"",result_url:"",results_count:""},r={event_category:ASP.analytics.event[t].category,event_label:ASP.analytics.event[t].label,value:ASP.analytics.event[t].value};i=n.extend(s,i);n.each(i,function(t,i){i=String(i).replace(/[\s\n\r]+/g," ").trim();n.each(r,function(n,u){var f=new RegExp("{"+t+"}","gmi");r[n]=u.replace(f,i)})});e===!1?(f!==!1&&o("create",f,"auto"),o("send","event",r.event_category,ASP.analytics.event[t].action,r.event_label,r.value)):(f!==!1&&(r.send_to=f),e("event",ASP.analytics.event[t].action,r))}},gaGetTrackingID:function(){var r=this,n=!1;if(typeof ASP.analytics=="undefined")return n;if(typeof ASP.analytics.tracking_id!="undefined"&&ASP.analytics.tracking_id!="")return ASP.analytics.tracking_id;var i=typeof gtag=="function"?gtag:!1;if(i!==!1&&typeof ga!="undefined"&&typeof ga.getAll!="undefined"){var t=!1;return ga.getAll().forEach(function(n){t=n.get("trackingId")}),t}return n},createResultsScroll:function(t){var i=this,u,r=i.n.results;t=typeof t=="undefined"?"vertical":t;i.is_scroll&&typeof i.scroll.recalculate=="undefined"&&(i.scroll=new asp_SimpleBar(i.n.results.get(0),{direction:n("body").hasClass("rtl")?"rtl":"ltr",autoHide:i.o.scrollBar.vertical.autoHide}),r=r.add(i.scroll.getScrollElement()));r.on("scroll",function(){typeof i.asp_lazy.update!="undefined"&&i.asp_lazy.update();i.o.show_more.infinite&&(clearTimeout(u),u=setTimeout(function(){i.checkAndTriggerInfiniteScroll(t)},60))})},createVerticalScroll:function(){var n=this;n.createResultsScroll("vertical")},createHorizontalScroll:function(){var n=this;n.createResultsScroll("horizontal")},checkAndTriggerInfiniteScroll:function(t){var i=this,r=n(".item",i.n.resultsDiv);if(t=typeof t=="undefined"?"window":t,i.n.showmore.length==0||i.n.showmore.css("display")=="none")return!1;if(t=="window"||t=="horizontal"){if(i.o.resultstype=="isotopic"&&n("nav.asp_navigation",i.n.resultsDiv).css("display")!="none")return!1;var u=r.last().is(":in-viewport(0, .asp_r_"+i.o.rid+")"),f=r.last().is(":in-viewport(0)");!i.searching&&r.length>0&&u&&f&&i.n.showmore.find("a.asp_showmore").trigger("click")}else if(t=="vertical"){var e=i.n.resultsDiv.find(".asp_simplebar-content-wrapper").length>0?i.n.resultsDiv.find(".asp_simplebar-content-wrapper"):i.n.results;k(e.get(0),20)&&i.n.showmore.find("a.asp_showmore").trigger("click")}else if(t=="isotopic"){var r=n(".item",i.n.resultsDiv);!i.searching&&r.length>0&&i.n.resultsDiv.find("nav.asp_navigation ul li").last().hasClass("asp_active")&&i.n.showmore.find("a.asp_showmore").trigger("click")}},initAutop:function(){var n=this;if(r!=null&&!n.o.compact.enabled&&n.triggerPrevState)return n.searchWithCheck(800),r=null,!1;if(n.o.autop.state=="disabled")return!1;var i=window.location.href,e=i.indexOf("asp_ls=")>-1||i.indexOf("asp_ls&")>-1;if(e)return!1;var t=n.o.show_more.enabled&&n.o.show_more.action=="ajax"?!1:n.o.autop.count,u=0,f=setInterval(function(){ASP.css_loaded==!0&&(n.isAutoP=!0,n.o.autop.state=="phrase"?(n.n.text.val(n.o.autop.phrase),n.search(t)):n.o.autop.state=="latest"?n.search(t,1):n.search(t,2),clearInterval(f));u++;u>6&&clearInterval(f)},500)},initEtc:function(){var t=this,i=null;t.n.trythis.css({visibility:"visible"});n("div.asp_option",t.n.searchsettings).on(t.mouseupTouchend,function(r){if(r.preventDefault(),r.stopImmediatePropagation(),t.dragging)return!1;n('input[type="checkbox"]',this).prop("checked",!n('input[type="checkbox"]',this).prop("checked"));clearTimeout(i);var u=this;i=setTimeout(function(){n('input[type="checkbox"]',u).trigger("asp_chbx_change")},50)});n("div.asp_option label",t.n.searchsettings).on("click",function(n){n.preventDefault()});n("fieldset.asp_checkboxes_filter_box",t.n.searchsettings).each(function(){var t=!0;n('.asp_option:not(.asp_option_selectall) input[type="checkbox"]',this).each(function(){if(n(this).prop("checked")==!0)return t=!1,!1});t&&n('.asp_option_selectall input[type="checkbox"]',this).prop("checked",!1).removeAttr("data-origvalue")});n("fieldset",t.n.searchsettings).each(function(){n(".asp_option:not(.hiddend)",this).last().addClass("asp-o-last")});n('.asp_option_cat input[type="checkbox"], .asp_option_cff input[type="checkbox"]',t.n.searchsettings).on("asp_chbx_change",function(){var i=n(this).data("targetclass");typeof i=="string"&&i!=""&&n("input."+i,t.n.searchsettings).prop("checked",n(this).prop("checked"))});t.n.resultsDiv.on("click",".results .item",function(){t.gaEvent("result_click",{result_title:n(this).find("a.asp_res_url").text(),result_url:n(this).find("a.asp_res_url").attr("href")});t.o.singleHighlight==1&&(localStorage.removeItem("asp_phrase_highlight"),a(t.n.text.val())!=""&&localStorage.setItem("asp_phrase_highlight",JSON.stringify({phrase:a(t.n.text.val()),id:t.o.id})))});t.fixElementorPostPagination(location.href)},initEvents:function(){var n=this;n.initInputEvents();n.initSettingsEvents();n.initResultsEvents();n.initOtherEvents();n.initTryThisEvents();n.initNavigationEvent();n.initMagnifierEvent();n.initAutocompleteEvent();n.initPagerEvent();n.initOverlayEvent();n.initNoUIEvents();n.initDatePicker();n.initCFDatePicker();n.initSelect2();n.initFacetEvents()},initInputEvents:function(){var i=this;i.n.text.on("click",function(){n(this).trigger("focus");i.gaEvent("focus")});i.n.text.on("focus input",function(){i.searching||(n(this).val()!=""?i.n.proclose.css("display","block"):i.n.proclose.css({display:"none"}))});n(i.n.text.closest("form")).on("submit",function(n,r){if(n.preventDefault(),t())if(i.o.redirectOnEnter){var u=jQuery.Event("keyup");u.keyCode=u.which=13;i.n.text.trigger(u)}else i.search(),document.activeElement.blur();else typeof r!="undefined"&&r=="ajax"&&i.search()})},initSettingsEvents:function(){var i=this;i.n.searchsettings.on("click",function(){i.settingsChanged=!0});i.n.searchsettings.on(i.clickTouchend,function(t){typeof t.target=="undefined"||n(t.target).hasClass("noUi-handle")?t.type=="click"&&t.stopImmediatePropagation():t.stopImmediatePropagation()});i.n.prosettings.on("click",function(){i.n.prosettings.data("opened")==0?i.showSettings():i.hideSettings()});t()?(i.o.mobile.force_sett_state=="open"||i.o.mobile.force_sett_state=="none"&&i.o.settingsVisible==1)&&i.n.prosettings.trigger("click"):i.o.settingsVisible==1&&i.n.prosettings.trigger("click");n('.asp_option_cat input[type="checkbox"]',i.n.searchsettings).on("asp_chbx_change",function(){i.settingsCheckboxToggle(n(this).closest(".asp_option_cat"))});n(".asp_option_cat",i.n.searchsettings).each(function(){i.settingsCheckboxToggle(n(this),!1)})},initResultsEvents:function(){var t=this;t.n.resultsDiv.css({opacity:"0"});n(document).on(t.clickTouchend,function(i){var u=i.keyCode||i.which,r=i.type;if(n(i.target).closest(".ui-datepicker").length==0&&n(i.target).closest(".noUi-handle").length==0&&n(i.target).closest(".asp_select2").length==0&&n(i.target).closest(".asp_select2-container").length==0&&t.o.blocking==!1&&t.hideSettings(),t.hideOnInvisibleBox(),t.hideArrowBox(),r!="click"||r!="touchend"||u!=3){if(t.o.compact.enabled){var f=t.n.container.attr("asp-compact")||"closed";t.o.compact.closeOnDocument!=1||f!="open"||t.resultsOpened||(t.closeCompact(),t.searchAbort(),t.hideLoader())}else if(t.resultsOpened==!1||t.o.closeOnDocClick!=1)return;t.dragging||(t.hideLoader(),t.searchAbort(),t.hideResults())}});if(t.o.resultstype=="isotopic"){t.n.resultsDiv.addClass("asp_touchswipe");t.n.resultsDiv.on("asp_swipe.left",function(){t.visiblePagination()&&n("a.asp_next",t.n.resultsDiv).trigger("click")});t.n.resultsDiv.on("asp_swipe.right",function(){t.visiblePagination()&&n("a.asp_prev",t.n.resultsDiv).trigger("click")})}t.n.resultsDiv.on(t.clickTouchend,function(n){t.dragging||n.stopImmediatePropagation()})},initOtherEvents:function(){var i=this;if(t()&&c())i.n.text.on("touchstart",function(){i.savedScrollTop=n(window).scrollTop();i.savedContainerTop=i.n.container.offset().top});i.n.proclose.on(i.clickTouchend,function(n){n.preventDefault();n.stopImmediatePropagation();i.n.text.val("");i.n.textAutocomplete.val("");i.hideResults();i.n.text.trigger("focus");i.n.proloading.css("display","none");i.hideLoader();i.searchAbort()});n(i.elem).on(i.clickTouchend,function(n){n.stopImmediatePropagation()});if(t())n(window).on("orientationchange",function(){i.orientationChange();setTimeout(function(){i.orientationChange()},600)});else{var r;n(window).on("resize",function(){clearTimeout(r);r=setTimeout(function(){i.resize()},100)})}var u;n(window).on("scroll",function(){clearTimeout(u);u=setTimeout(function(){i.scrolling(!1)},400)});if(t()&&i.o.mobile.menu_selector!="")n(i.o.mobile.menu_selector).on("touchend",function(){var t=this;setTimeout(function(){var r=n(t).find("input.orig");r=r.length==0?n(t).next().find("input.orig"):r;r=r.length==0?n(t).parent().find("input.orig"):r;r=r.length==0?i.n.text:r;i.n.container.is(":visible")&&r.get(0).focus()},300)});c()&&t()&&nt()&&parseInt(i.n.text.css("font-size"))<16&&(i.n.text.data("fontSize",i.n.text.css("font-size")).css("font-size","16px"),i.n.textAutocomplete.css("font-size","16px"),n("<style>#ajaxsearchpro"+i.o.rid+" input.orig::-webkit-input-placeholder{font-size: 16px !important;}<\/style>").appendTo("head"))},initTryThisEvents:function(){var t=this;t.n.trythis.find("a").on("click touchend",function(i){if(i.preventDefault(),i.stopImmediatePropagation(),t.o.compact.enabled){var r=t.n.container.attr("asp-compact")||"closed";r=="closed"&&t.n.promagnifier.trigger("click")}document.activeElement.blur();t.n.textAutocomplete.val("");t.n.text.val(n(this).html());t.gaEvent("try_this");setTimeout(function(){t.n.text.trigger("input")},50)})},detectAndFixFixedPositioning:function(){var t=this,i=t.n.container.parents().filter(function(){return n(this).css("position")=="fixed"});(i.length>0||t.n.container.css("position")=="fixed")&&(t.n.resultsDiv.css("position")=="absolute"&&t.n.resultsDiv.css("position","fixed"),t.o.blocking||t.n.searchsettings.css("position","fixed"))},initNavigationEvent:function(){var t=this;n(t.n.resultsDiv).on("mouseenter",".item",function(){n(".item",t.n.resultsDiv).removeClass("hovered");n(this).addClass("hovered")});n(t.n.resultsDiv).on("mouseleave",".item",function(){n(".item",t.n.resultsDiv).removeClass("hovered")});n(document).on("keydown",function(i){var r=i.keyCode||i.which;if(n(".item",t.n.resultsDiv).length>0&&t.n.resultsDiv.css("display")!="none"&&t.o.resultstype=="vertical"){if(r==40||r==38){r==40&&(t.n.text.trigger("blur"),n(".item.hovered",t.n.resultsDiv).length==0?n(".item",t.n.resultsDiv).first().addClass("hovered"):n(".item.hovered",t.n.resultsDiv).removeClass("hovered").next(".item").addClass("hovered"));r==38&&(t.n.text.trigger("blur"),n(".item.hovered",t.n.resultsDiv).length==0?n(".item",t.n.resultsDiv).last().addClass("hovered"):n(".item.hovered",t.n.resultsDiv).removeClass("hovered").prev(".item").addClass("hovered"));i.stopPropagation();i.preventDefault();var u=t.is_scroll?n(t.scroll.getScrollElement()):t.n.results,f=t.n.resultsDiv.find(".resdrg .item.hovered");f.length==0&&(f=t.n.resultsDiv.children().first());u.animate({scrollTop:f.offset().top-u.offset().top+u.scrollTop()},{duration:120})}r==13&&n(".item.hovered",t.n.resultsDiv).length>0&&(i.stopPropagation(),i.preventDefault(),n(".item.hovered a.asp_res_url",t.n.resultsDiv).get(0).click())}})},initMagnifierEvent:function(){var t=this;t.o.compact.enabled==1&&t.initCompactEvents();var i,u,r=!1;t.n.searchsettings.find("button.asp_s_btn").on("click",function(r){t.ktype="button";r.preventDefault();t.n.text.val().length>=t.o.charcount&&(t.o.sb.redirect_action!="ajax_search"?t.o.sb.redirect_action!="first_result"?t.doRedirectToResults("button"):t.search():n("form",t.n.searchsettings).serialize()+t.n.text.val().trim()==t.lastSuccesfulSearch&&t.resultsOpened||t.search(),clearTimeout(i))});t.n.searchsettings.find("button.asp_r_btn").on("click",function(n){n.preventDefault();t.resetSearchFilters()});t.n.text.on("keyup",function(f){if(t.keycode=f.keyCode||f.which,t.ktype=f.type,t.keycode==13){if(clearTimeout(u),u=setTimeout(function(){r=!1},300),r)return!1;r=!0}var e=n(this).hasClass("orig");t.n.text.val().length>=t.o.charcount&&e&&t.ktype=="keyup"&&t.keycode==13&&(t.gaEvent("return"),t.o.redirectOnEnter==1?t.o.trigger.return!="first_result"?t.doRedirectToResults(t.ktype):t.search():t.o.trigger.return=="ajax_search"&&(n("form",t.n.searchsettings).serialize()+t.n.text.val().trim()==t.lastSuccesfulSearch&&t.resultsOpened||t.search()),clearTimeout(i))});var f=t.n.text.val();t.n.promagnifier.add(t.n.text).on("click input",function(r){if(t.keycode=r.keyCode||r.which,t.ktype=r.type,t.ktype=="input"&&tt()){if(f==t.n.text.val())return!1;f=t.n.text.val()}var u=n(this).hasClass("orig");if(t.hideArrowBox(),u&&t.ktype=="click"&&n("form",t.n.searchsettings).serialize()+t.n.text.val().trim()==t.lastSuccesfulSearch){t.resultsOpened||t.usingLiveLoader||(t._no_animations=!0,t.showResults(),t._no_animations=!1);return}if((u||t.ktype!="click"||t.gaEvent("magnifier"),!u||t.ktype!="click")&&(t.ktype=="click"||t.ktype=="input")){var e=t.n.container.attr("asp-compact")||"closed";if((t.o.compact.enabled!=1||t.ktype!="click"&&t.ktype!="touchend"||t.o.compact.closeOnMagnifier!=1||e!="open")&&(t.o.compact.enabled!=1||t.ktype!="click"&&t.ktype!="touchend"||e!="closed")){if(t.n.text.val().length>=t.o.charcount&&!u&&t.o.redirectOnClick==1&&t.ktype=="click"&&t.o.trigger.click!="first_result"){t.doRedirectToResults(t.ktype);clearTimeout(i);return}if((t.ktype!="input"||t.o.trigger.type!=0)&&(t.ktype!="click"||t.o.trigger.click=="ajax_search"||t.o.trigger.click=="first_result")){if(t.n.text.val().length<t.o.charcount){t.n.proloading.css("display","none");t.o.blocking==!1&&t.hideSettings();t.hideResults(!1);t.searchAbort();clearTimeout(i);return}t.searchAbort();clearTimeout(i);t.n.proloading.css("display","none");i=setTimeout(function(){n("form",t.n.searchsettings).serialize()+t.n.text.val().trim()==t.lastSuccesfulSearch&&(t.resultsOpened||t.usingLiveLoader)?t.isRedirectToFirstResult()?t.doRedirectToFirstResult():t.n.proclose.css("display","block"):t.search()},t.o.trigger.delay)}}}})},isRedirectToFirstResult:function(){var t=this;return n(".asp_res_url",t.n.resultsDiv).length>0&&(t.o.redirectOnClick==1&&t.ktype=="click"&&t.o.trigger.click=="first_result"||t.o.redirectOnEnter==1&&(t.ktype=="input"||t.ktype=="keyup")&&t.keycode==13&&t.o.trigger.return=="first_result"||t.ktype=="button"&&t.o.sb.redirect_action=="first_result")?!0:!1},doRedirectToFirstResult:function(){var t=this,i;return i=t.ktype=="click"?t.o.trigger.click_location:t.ktype=="button"?t.o.sb.redirect_location:t.o.trigger.return_location,i=="same"?location.href=n(n(".asp_res_url",t.n.resultsDiv).get(0)).attr("href"):y(n(n(".asp_res_url",t.n.resultsDiv).get(0)).attr("href")),t.hideLoader(),t.hideResults(),!1},doRedirectToResults:function(t){var i=this,u;if(!i.reportSettingsValidity())return i.showNextInvalidFacetMessage(),!1;u=t=="click"?i.o.trigger.click_location:t=="button"?i.o.sb.redirect_location:i.o.trigger.return_location;var r=i.getRedirectURL(t);if(i.o.overridewpdefault){if(i.o.resPage.useAjax==1)return i.hideResults(),i.liveLoad(r,i.o.resPage.selector),i.showLoader(),i.o.blocking==!1&&i.hideSettings(),!1;i.o.override_method=="post"?o(r,"post",{asp_active:1,p_asid:i.o.id,p_asp_data:n("form",i.n.searchsettings).serialize()},u):u=="same"?location.href=r:y(r)}else o(r,"post",{np_asid:i.o.id,np_asp_data:n("form",i.n.searchsettings).serialize()},u);i.n.proloading.css("display","none");i.hideLoader();i.o.blocking==!1&&i.hideSettings();i.hideResults();i.searchAbort()},initCompactEvents:function(){var t=this,i=0;t.n.promagnifier.on("click",function(){var r=t.n.container.attr("asp-compact")||"closed";if(i=n(window).scrollTop(),t.hideSettings(),t.hideResults(),r=="closed")t.openCompact(),t.n.text.trigger("focus");else{if(t.o.compact.closeOnMagnifier!=1)return;t.closeCompact();t.searchAbort();t.n.proloading.css("display","none")}})},openCompact:function(){var t=this;t.n.container.is("[asp-compact-w]")||(t.n.probox.attr("asp-compact-w",t.n.probox.width()),t.n.container.attr("asp-compact-w",t.n.container.width()));t.o.compact.enabled==1&&t.o.compact.position!="static"&&t.n.trythis.css({top:t.n.container.position().top+t.n.container.outerHeight(!0)+"px",left:t.n.container.offset().left+"px"});t.n.container.css({width:t.n.container.width()+"px"});t.n.probox.css({width:"auto"});setTimeout(function(){n(">:not(.promagnifier)",t.n.probox).removeClass("hiddend")},80);clearTimeout(t.timeouts.compactBeforeOpen);t.timeouts.compactBeforeOpen=setTimeout(function(){var i;i=h()=="phone"?t.o.compact.width_phone:h()=="tablet"?t.o.compact.width_tablet:t.o.compact.width;i=l("asp_compact_width",i,t.o.id,t.o.iid);t.n.container.css({"max-width":i,width:i});t.o.compact.overlay==1&&(t.n.container.css("z-index",999999),t.n.searchsettings.css("z-index",999999),t.n.resultsDiv.css("z-index",999999),t.n.trythis.css("z-index",999998),n("#asp_absolute_overlay").css({opacity:1,width:"100%",height:"100%","z-index":999990}));t.n.container.attr("asp-compact","open")},50);clearTimeout(t.timeouts.compactAfterOpen);t.timeouts.compactAfterOpen=setTimeout(function(){t.resize();t.n.trythis.css({display:"block"});t.n.text.trigger("focus");t.scrolling()},500)},closeCompact:function(){var t=this;clearTimeout(t.timeouts.compactBeforeOpen);clearTimeout(t.timeouts.compactAfterOpen);t.timeouts.compactBeforeOpen=setTimeout(function(){t.n.container.attr("asp-compact","closed")},50);n(">:not(.promagnifier)",t.n.probox).addClass("hiddend");t.n.container.css({width:"auto"});t.n.probox.css({width:t.n.probox.attr("asp-compact-w")});t.n.trythis.css({left:t.n.container.position().left,display:"none"});t.o.compact.overlay==1&&(t.n.container.css("z-index",""),t.n.searchsettings.css("z-index",""),t.n.resultsDiv.css("z-index",""),t.n.trythis.css("z-index",""),n("#asp_absolute_overlay").css({opacity:0,width:0,height:0,"z-index":0}))},initAutocompleteEvent:function(){var i=this,r;if(i.o.autocomplete.enabled==1&&!t()||i.o.autocomplete.mobile==1&&t())i.n.text.on("keyup",function(t){i.keycode=t.keyCode||t.which;i.ktype=t.type;var u=39;n("body").hasClass("rtl")&&(u=37);i.keycode==u&&i.n.textAutocomplete.val()!=""?(t.preventDefault(),i.n.text.val(i.n.textAutocomplete.val()),i.o.trigger.type!=0&&(i.searchAbort(),i.search())):(clearTimeout(r),i.postAuto!=null&&i.postAuto.abort(),i.o.autocomplete.googleOnly==1?i.autocompleteGoogleOnly():r=setTimeout(function(){i.autocomplete();r=null},i.o.trigger.autocomplete_delay))})},initPagerEvent:function(){var i=this;i.n.resultsDiv.on(i.clickTouchend+" click_trigger","nav>a",function(r){r.preventDefault();r.stopImmediatePropagation();var u=this,e=r.type,f=1;i.n.text.is(":focus")&&t()&&(i.n.text.trigger("blur"),f=300);setTimeout(function(){i.currentPage=parseInt(n(u).closest("nav").find("li.asp_active span").html(),10);i.currentPage=n(u).hasClass("asp_prev")&&!n("body").hasClass("rtl")?i.currentPage==1?Math.ceil(i.n.items.length/i.il.itemsPerPage):--i.currentPage:i.currentPage==Math.ceil(i.n.items.length/i.il.itemsPerPage)?1:++i.currentPage;n("nav>ul li",i.n.resultsDiv).removeClass("asp_active");n("nav",i.n.resultsDiv).each(function(){n(n("ul li",this).get(i.currentPage-1)).addClass("asp_active")});e==="click_trigger"?i.isotopic.arrange({transitionDuration:0,filter:i.filterFns.number}):i.isotopic.arrange({transitionDuration:400,filter:i.filterFns.number});i.isotopicPagerScroll();i.removeAnimation();typeof n.fn.asp_lazy!="undefined"&&n(window).trigger("scroll");i.n.resultsDiv.trigger("nav_switch")},f)});i.n.resultsDiv.on(i.clickTouchend+" click_trigger","nav>ul li",function(r){r.preventDefault();r.stopImmediatePropagation();var f=r.type,e=this,u=1;i.n.text.is(":focus")&&t()&&(i.n.text.trigger("blur"),u=300);setTimeout(function(){i.currentPage=parseInt(n("span",e).html(),10);n("nav>ul li",i.n.resultsDiv).removeClass("asp_active");n("nav",i.n.resultsDiv).each(function(){n(n("ul li",this).get(i.currentPage-1)).addClass("asp_active")});f==="click_trigger"?i.isotopic.arrange({transitionDuration:0,filter:i.filterFns.number}):i.isotopic.arrange({transitionDuration:400,filter:i.filterFns.number});i.isotopicPagerScroll();i.removeAnimation();typeof n.fn.asp_lazy!="undefined"&&n(window).trigger("scroll");i.n.resultsDiv.trigger("nav_switch")},u)})},isotopicPagerScroll:function(){var t=this;if(n("nav>ul li.asp_active",t.n.resultsDiv).length<=0)return!1;var r=n("nav>ul li.asp_active",t.n.resultsDiv).offset().left,i=n("nav>ul li.asp_active",t.n.resultsDiv).outerWidth(!0),u=n("nav>a.asp_next",t.n.resultsDiv).offset().left,o=n("nav>a.asp_prev",t.n.resultsDiv).offset().left;if(!(i<=0)){var f=Math.ceil((o-r+2*i)/i);if(f>0){if(n("nav>ul li.asp_active",t.n.resultsDiv).prev().length==0){n("nav>ul",t.n.resultsDiv).css({left:i+"px"});return}n("nav>ul",t.n.resultsDiv).css({left:"+="+i*f+"px"})}else{if(n("nav>ul li.asp_active",t.n.resultsDiv).next().length==0)var e=Math.ceil((r-u+i)/i);else var e=Math.ceil((r-u+2*i)/i);e>0&&n("nav>ul",t.n.resultsDiv).css({left:"-="+i*e+"px"})}}},initOverlayEvent:function(){var t=this;if(t.o.resultstype=="isotopic"&&t.o.isotopic.showOverlay){if(!c()){t.n.resultsDiv.on("mouseenter","div.item",function(){n(".asp_item_overlay",this).stop().fadeIn();n(".asp_image",this).length>0&&(t.o.isotopic.blurOverlay&&n(".asp_item_overlay_img",this).stop().fadeIn(),t.o.isotopic.hideContent&&n(".asp_content",this).stop().slideUp(100))});t.n.resultsDiv.on("mouseleave","div.item",function(){n(".asp_item_overlay",this).stop().fadeOut();n(".asp_image",this).length>0&&(t.o.isotopic.blurOverlay&&n(".asp_item_overlay_img",this).stop().fadeOut(),t.o.isotopic.hideContent&&n(".asp_image",this).length>0&&n(".asp_content",this).stop().slideDown(100))});t.n.resultsDiv.on("mouseenter","div.asp_item_inner",function(){n(this).addClass("animated pulse")});t.n.resultsDiv.on("mouseleave","div.asp_item_inner",function(){n(this).removeClass("animated pulse")})}t.n.resultsDiv.on("touchend mouseup",".asp_isotopic_item",function(i){if(!t.dragging){var r=n(".asp_content h3 a",this).get(0);typeof r!="undefined"&&(i.which==2&&n(r).attr("target","_blank"),r.click())}})}},initNoUIEvents:function(){var t=this;n(".noui-slider-json"+t.o.rid).each(function(i){var o=n(this).attr("id").match(/^noui-slider-json(.*)/)[1],f=n(this).data("aspnoui");if(typeof f=="undefined"||(f=u.decode(f),typeof f=="undefined"||f==""))return!1;var r=JSON.parse(f);if(n(r.node).length>0)var e=n(r.node).get(0);if(typeof noUiSlider!="undefined")noUiSlider.create(e,r.main);else return t.raiseError("noui"),!1;t.noUiSliders[i]=e;e.noUiSlider.on("update",function(t,i){var u=t[i];i?r.links.forEach(function(t){var i=wNumb(t.wNumb);t.handle=="upper"&&(n(t.target).is("input")?n(t.target).val(u):n(t.target).html(i.to(parseFloat(u))));n(r.node).on("slide",function(n){n.preventDefault()})}):r.links.forEach(function(t){var i=wNumb(t.wNumb);t.handle=="lower"&&(n(t.target).is("input")?n(t.target).val(u):n(t.target).html(i.to(parseFloat(u))));n(r.node).on("slide",function(n){n.preventDefault()})})})})},initDatePicker:function(){var i=this,t=v();if(t(".asp_datepicker",i.n.searchsettings).length>0&&typeof t.fn.datepicker=="undefined")return i.raiseError("datepicker"),!1;function r(i,r,u,f){if(u!=null)var e=t(u);else var e=t("#"+r.id);var h=t(".asp_datepicker_hidden",t(e).parent()).val(),o="";if(e.datepicker("getDate")==null)t(".asp_datepicker_hidden",t(e).parent()).val("");else{var c=String(e.datepicker("getDate")),s=new Date(c.match(/(.*?)00\:/)[1].trim()),l=String(s.getFullYear()),a=("0"+(s.getMonth()+1)).slice(-2),v=("0"+String(s.getDate())).slice(-2);o=l+"-"+a+"-"+v;t(".asp_datepicker_hidden",t(e).parent()).val(o)}(typeof nochage=="undefined"||f==null)&&o!=h&&n(e).trigger("change")}t(".asp_datepicker",i.n.searchsettings).each(function(){var f=t(".asp_datepicker_format",t(this).parent()).val(),i=this,u=t(this).val();t(this).datepicker({changeMonth:!0,changeYear:!0,dateFormat:"yy-mm-dd",onSelect:r,beforeShow:function(){t("#ui-datepicker-div").addClass("asp-ui")}});u==""?t(this).datepicker("setDate",""):t(this).datepicker("setDate",u);t(this).datepicker("option","dateFormat",f);r(null,null,i,!0);n(this).on("selectnochange",function(){r(null,null,i,!0)});n(this).on("keyup",function(){n(i).datepicker("getDate")==null&&t(".asp_datepicker_hidden",n(i).parent()).val("");n(i).datepicker("hide")})})},initSelect2:function(){var t=this;if(n("select.asp_gochosen, select.asp_goselect2",t.n.searchsettings).length>0){if(typeof n.fn.asp_select2=="undefined")return t.raiseError("select2"),!1;n("select.asp_gochosen, select.asp_goselect2",t.n.searchsettings).each(function(){n(this).find('option[value=""]').val("____temp_empty____");n(this).asp_select2({width:"100%",theme:"flat",allowClear:n(this).find('option[value=""]').length>0,language:{noResults:function(){return t.o.select2.nores}}});n(this).find('option[value="____temp_empty____"]').val("")})}},initCFDatePicker:function(){var i=this,t=v();if(t(".asp_datepicker_field",i.n.searchsettings).length>0&&typeof t.fn.datepicker=="undefined")return i.raiseError("datepicker"),!1;function r(i,r,u,f){if(u!=null)var e=t(u);else var e=t("#"+r.id);var h=t(".asp_datepicker_hidden",t(e).parent()).val(),o="";if(e.datepicker("getDate")==null)t(".asp_datepicker_hidden",t(e).parent()).val("");else{var c=String(e.datepicker("getDate")),s=new Date(c.match(/(.*?)00\:/)[1].trim()),l=String(s.getFullYear()),a=("0"+(s.getMonth()+1)).slice(-2),v=("0"+String(s.getDate())).slice(-2);o=l+a+v;t(".asp_datepicker_hidden",t(e).parent()).val(o)}(typeof f=="undefined"||f==null)&&o!=h&&n(e).trigger("change")}t(".asp_datepicker_field",i.n.searchsettings).each(function(){var f=t(".asp_datepicker_format",t(this).parent()).val(),i=this,u=t(this).val();t(this).datepicker({changeMonth:!0,changeYear:!0,dateFormat:"dd/mm/yy",onSelect:r,beforeShow:function(){t("#ui-datepicker-div").addClass("asp-ui")}});u==""?t(this).datepicker("setDate",""):t(this).datepicker("setDate",u);t(this).datepicker("option","dateFormat",f);r(null,null,i,!0);n(this).on("selectnochange",function(){r(null,null,i,!0)});n(this).on("keyup",function(){n(i).datepicker("getDate")==null&&t(".asp_datepicker_hidden",n(i).parent()).val("");n(i).datepicker("hide")})})},initFacetEvents:function(){var t=this,i=null;n(".asp_custom_f input[type=text]:not(.asp_select2-search__field):not(.asp_datepicker_field):not(.asp_datepicker)",t.n.searchsettings).on("keydown",function(r){var f=r.keyCode||r.which,u=this;f==13&&(r.preventDefault(),r.stopImmediatePropagation());clearTimeout(i);i=setTimeout(function(){t.gaEvent("facet_change",{option_label:n(u).closest("fieldset").find("legend").text(),option_value:n(u).val()})},1400);t.n.searchsettings.find("input[name=filters_changed]").val(1);t.setFilterStateInput(65);t.o.trigger.facet!=0&&t.searchWithCheck(240)});if(t.o.trigger.facet!=0){n("select",t.n.searchsettings).on("change slidechange",function(){t.n.searchsettings.find("input[name=filters_changed]").val(1);t.gaEvent("facet_change",{option_label:n(this).closest("fieldset").find("legend").text(),option_value:n(this).find("option:selected").toArray().map(function(n){return n.text}).join()});t.setFilterStateInput(65);t.searchWithCheck(80);t.sIsotope!=null&&t.sIsotope.arrange()});n("input[type!=checkbox][type!=text][type!=radio]",t.n.searchsettings).on("change slidechange",function(){t.n.searchsettings.find("input[name=filters_changed]").val(1);t.gaEvent("facet_change",{option_label:n(this).closest("fieldset").find("legend").text(),option_value:n(this).val()});t.setFilterStateInput(65);t.searchWithCheck(80)});n("input[type=radio]",t.n.searchsettings).on("change slidechange",function(){t.n.searchsettings.find("input[name=filters_changed]").val(1);t.gaEvent("facet_change",{option_label:n(this).closest("fieldset").find("legend").text(),option_value:n(this).closest("label").text()});t.setFilterStateInput(65);t.searchWithCheck(80)});n("input[type=checkbox]",t.n.searchsettings).on("asp_chbx_change",function(){t.n.searchsettings.find("input[name=filters_changed]").val(1);t.gaEvent("facet_change",{option_label:n(this).closest("fieldset").find("legend").text(),option_value:n(this).closest(".asp_option").find(".asp_option_label").text()+(n(this).prop("checked")?"(checked)":"(unchecked)")});t.setFilterStateInput(65);t.searchWithCheck(80)});n("input.asp_datepicker, input.asp_datepicker_field",t.n.searchsettings).on("change",function(){t.n.searchsettings.find("input[name=filters_changed]").val(1);t.gaEvent("facet_change",{option_label:n(this).closest("fieldset").find("legend").text(),option_value:n(this).val()});t.setFilterStateInput(65);t.searchWithCheck(80)});n('div[id*="-handles"]',t.n.searchsettings).each(function(){if(typeof this.noUiSlider!="undefined")this.noUiSlider.on("change",function(i){var r=typeof this.target!="undefined"?this.target:this;t.gaEvent("facet_change",{option_label:n(r).closest("fieldset").find("legend").text(),option_value:i});t.n.searchsettings.find("input[name=filters_changed]").val(1);t.setFilterStateInput(65);t.searchWithCheck(80)})})}},reportSettingsValidity:function(){var t=this,i=!0;return t.n.searchsettings.css("visibility")=="hidden"?!0:(t.n.searchsettings.find("fieldset.asp_required").each(function(){var t=n(this),r=!0;t.find("input[type=text]:not(.asp_select2-search__field)").each(function(){n(this).val()==""&&(r=!1)});t.find("select").each(function(){(n(this).val()==null||n(this).val()==""||n(this).closest("fieldset").is(".asp_filter_tax, .asp_filter_content_type")&&n(this).val()=="-1")&&(r=!1)});t.find("input[type=checkbox]").length>0&&(t.find("input[type=checkbox]").is(":checked")?t.find("input[type=checkbox]:checked").length===1&&t.find("input[type=checkbox]:checked").val()===""&&(r=!1):r=!1);t.find("input[type=radio]").length>0&&(t.find("input[type=radio]").is(":checked")||(r=!1),r&&t.find("input[type=radio]").each(function(){n(this).is(":checked")&&(n(this).val()==""||n(this).closest("fieldset").is(".asp_filter_tax, .asp_filter_content_type")&&n(this).val()=="-1")&&(r=!1)}));r?t.removeClass("asp-invalid"):(t.addClass("asp-invalid"),i=!1)}),i||t.n.searchsettings.find("button.asp_s_btn").prop("disabled",!0),t.n.searchsettings.find("button.asp_s_btn").prop("disabled",!1),i)},showArrowBox:function(t,i){var e=this,u,f;if(n("body").find(".asp_arrow_box").length===0){n("body").append("<div class='asp_arrow_box'><\/div>");n("body").find(".asp_arrow_box").on("mouseout",function(){e.hideArrowBox()})}var r=n("body").find(".asp_arrow_box"),o=n(t).offset().top-n(window).scrollTop(),s=n(t).parents().filter(function(){return n(this).css("position")=="fixed"});s.length>0?(r.css("position","fixed"),u=0):(r.css("position","absolute"),u=n(window).scrollTop());r.html(i);f=t.getBoundingClientRect().left+n(t).outerWidth()/2-r.outerWidth()/2+"px";o>100?(r.removeClass("asp_arrow_box_bottom"),r.css({top:u+t.getBoundingClientRect().top-r.outerHeight()-4+"px",left:f})):(r.addClass("asp_arrow_box_bottom"),r.css({top:u+t.getBoundingClientRect().bottom+4+"px",left:f}));r.css("display","block")},hideArrowBox:function(){n("body").find(".asp_arrow_box").css("display","none")},showNextInvalidFacetMessage:function(){var n=this;n.n.searchsettings.find(".asp-invalid").length>0&&n.showArrowBox(n.n.searchsettings.find(".asp-invalid").first().get(0),n.n.searchsettings.find(".asp-invalid").first().data("asp_invalid_msg"))},scrollToNextInvalidFacetMessage:function(){var i=this;if(i.n.searchsettings.find(".asp-invalid").length>0){var r=i.n.searchsettings.find(".asp-invalid").first();if(!r.is(":in-viewport(0)")){var t=r.offset().top-20;n("#wpadminbar").length>0&&(t-=n("#wpadminbar").height());t=t<0?0:t;n("body, html").animate({scrollTop:t},{duration:300})}}},destroy:function(){return this.each(function(){var t=n.extend({},this,b);n(window).unbind(t)})},autocomplete:function(){var t=this,i=t.n.text.val();if(t.n.text.val()==""){t.n.textAutocomplete.val("");return}var r=t.n.textAutocomplete.val();if((r==""||r.indexOf(i)!=0)&&(t.n.textAutocomplete.val(""),t.n.text.val().length>=t.o.autocomplete.trigger_charcount)){var u={action:"ajaxsearchpro_autocomplete",asid:t.o.id,sauto:t.n.text.val(),asp_inst_id:t.o.rid,options:n("form",t.n.searchsettings).serialize()};t.postAuto=n.post(ASP.ajaxurl,u,function(r){if(r.length>0){r=n("<textarea />").html(r).text();r=r.replace(/^\s*[\r\n]/gm,"");var u=i,f=r.substr(i.length);r=u+f}t.n.textAutocomplete.val(r)})}},autocompleteGoogleOnly:function(){var t=this,i=t.n.text.val();if(t.n.text.val()==""){t.n.textAutocomplete.val("");return}var r=t.n.textAutocomplete.val();if(r==""||r.indexOf(i)!=0){t.n.textAutocomplete.val("");var u=t.o.autocomplete.lang;n.each(["wpml_lang","polylang_lang","qtranslate_lang"],function(i,r){if(n('input[name="'+r+'"]',t.n.searchsettings).length>0&&n('input[name="'+r+'"]',t.n.searchsettings).val().length>1)return u=n('input[name="'+r+'"]',t.n.searchsettings).val(),!1});t.n.text.val().length>=t.o.autocomplete.trigger_charcount&&n.ajax({url:"https://clients1.google.com/complete/search",dataType:"jsonp",data:{q:i,hl:u,nolabels:"t",client:"hp",ds:""},success:function(r){r[1].length>0&&(response=r[1][0][0].replace(/(<([^>]+)>)/ig,""),response=n("<textarea />").html(response).text(),response=response.substr(i.length),t.n.textAutocomplete.val(i+response))}})}},isDuplicateSearchTriggered:function(){for(var i=this,n=0;n<25;n++){var t=i.o.id+"_"+n;if(t!=i.o.rid&&typeof ASP.instances[t]!="undefined")return ASP.instances[t].searching}return!1},searchAbort:function(){var n=this;n.post!=null&&n.post.abort()},searchWithCheck:function(n){var t=this;(typeof n=="undefined"&&(n=50),t.n.text.val().length<t.o.charcount)||(t.searchAbort(),clearTimeout(t.timeouts.searchWithCheck),t.timeouts.searchWithCheck=setTimeout(function(){t.search()},n))},search:function(t,i,r,u,f){var s=this,c=!1;if(s.isDuplicateSearchTriggered())return!1;r=typeof r=="undefined"?!1:r;u=typeof u=="undefined"?!1:u;f=typeof f=="undefined"?!1:f;var h={action:"ajaxsearchpro_search",aspp:s.n.text.val(),asid:s.o.id,asp_inst_id:s.o.rid,options:n("form",s.n.searchsettings).serialize()};if(h=l("asp_search_data",h,s.o.id,s.o.iid),s.hideArrowBox(),s.isAutoP||s.reportSettingsValidity()||(f||(s.showNextInvalidFacetMessage(),s.scrollToNextInvalidFacetMessage()),c=!0),s.isAutoP&&(h.autop=1,s.isAutoP=!1),!r&&!u&&JSON.stringify(h)===JSON.stringify(s.lastSearchData)){if(s.resultsOpened||s.usingLiveLoader||s.showResults(),s.isRedirectToFirstResult())return s.doRedirectToFirstResult(),!1;c=!0}if(c)return s.hideLoader(),s.searchAbort(),!1;s.n.c.trigger("asp_search_start",[s.o.id,s.o.iid,s.n.text.val()]);s.searching=!0;s.n.proclose.css({display:"none"});s.showLoader(r);s.o.blocking==!1&&s.o.trigger.facet==0&&s.hideSettings();r?(s.call_num++,h.asp_call_num=s.call_num):s.call_num=0;n('form[name="asp_data"]').length>0&&(h.asp_preview_options=n('form[name="asp_data"]').serialize());typeof t!="undefined"&&t!==!1&&(h.options+="&force_count="+parseInt(t));typeof i!="undefined"&&i!==!1&&(h.options+="&force_order="+parseInt(i));s.gaEvent("search_start");n(".asp_es_"+s.o.id).length>0?s.liveLoad(".asp_es_"+s.o.id,s.getCurrentLiveURL(),!1):s.o.resPage.useAjax?s.liveLoad(s.o.resPage.selector,s.getRedirectURL()):s.post=n.post(ASP.ajaxurl,h,function(t){s.gaPageview(s.n.text.val());s.searching=!1;t=t.replace(/^\s*[\r\n]/gm,"");var i=t.match(/!!ASPSTART_HTML!!(.*[\s\S]*)!!ASPEND_HTML!!/),u=t.match(/!!ASPSTART_DATA!!(.*[\s\S]*)!!ASPEND_DATA!!/);if(i==null||typeof i!="object"||typeof i[1]=="undefined")return s.hideLoader(),s.raiseError("missing_response"),!1;i=i[1];i=l("asp_search_html",i,s.o.id,s.o.iid);u=JSON.parse(u[1]);s.n.c.trigger("asp_search_end",[s.o.id,s.o.iid,s.n.text.val(),u]);r?(s.updateResults(i),s.results_num+=u.results_count):(s.n.resdrg.html(""),s.n.resdrg.html(i),s.results_num=u.results_count,s.o.statistics&&s.stat_addKeyword(s.o.id,s.n.text.val()));n(".asp_keyword",s.n.resdrg).on("click",function(){s.n.text.val(p(n(this).text()));s.n.textAutocomplete.val("");(s.o.redirectOnClick==0||s.o.redirectOnEnter==0||s.o.trigger.type==1)&&s.search()});if(s.n.items=n(".item",s.n.resultsDiv).length>0?n(".item",s.n.resultsDiv):n(".photostack-flip",s.n.resultsDiv),s.gaEvent("search_end",{results_count:s.n.items.length}),s.isRedirectToFirstResult())return s.doRedirectToFirstResult(),!1;if(s.hideLoader(),s.showResults(),s.scrollToResults(),s.lastSuccesfulSearch=n("form",s.n.searchsettings).serialize()+s.n.text.val().trim(),s.lastSearchData=h,s.updateInfoHeader(u.full_results_count),s.n.showmore.length>0)if(n("span",s.n.showmore).length>0&&u.results_count>0&&u.full_results_count-s.results_num>0){s.n.showmore.css("display","block");n("span",s.n.showmore).html("("+(u.full_results_count-s.results_num)+")");n("a",s.n.showmore).attr("href","");n("a",s.n.showmore).off();n("a",s.n.showmore).on(s.clickTouchend,function(t){if(t.preventDefault(),t.stopImmediatePropagation(),s.o.show_more.action=="ajax"){if(s.searching)return!1;s.showMoreResLoader();s.search(!1,!1,!0)}else{if(n(this).off(),s.o.show_more.action=="results_page")var i="?s="+e(s.n.text.val());else if(s.o.show_more.action=="woo_results_page")var i="?post_type=product&s="+e(s.n.text.val());else{if(s.o.show_more.action=="elementor_page")var i=s.parseCustomRedirectURL(s.o.show_more.elementor_url,s.n.text.val());else var i=s.parseCustomRedirectURL(s.o.show_more.url,s.n.text.val());i=n("<textarea />").html(i).text()}s.o.show_more.action!="elementor_page"&&s.o.homeurl.indexOf("?")>1&&i.indexOf("?")==0&&(i=i.replace("?","&"));var r=s.o.show_more.action=="elementor_page"?i:s.o.homeurl+i;if(s.o.overridewpdefault)if(s.o.override_method=="post")o(r,"post",{asp_active:1,p_asid:s.o.id,p_asp_data:n("form",s.n.searchsettings).serialize()},s.o.show_more.location);else{var u=r+"&asp_active=1&p_asid="+s.o.id+"&p_asp_data=1&"+n("form",s.n.searchsettings).serialize();s.o.show_more.location=="same"?location.href=u:y(u)}else o(r,"post",{np_asid:s.o.id,np_asp_data:n("form",s.n.searchsettings).serialize()},s.o.show_more.location)}})}else s.n.showmore.css("display","none"),n("span",s.n.showmore).html("")},"text").fail(function(t,i){t.aborted||i=="abort"||(s.n.resdrg.html(""),s.n.resdrg.html('<div class="asp_nores">The request failed. Please check your connection! Status: '+t.status+"<\/div>"),s.n.items=n(".item",s.n.resultsDiv).length>0?n(".item",s.n.resultsDiv):n(".photostack-flip",s.n.resultsDiv),s.results_num=0,s.searching=!1,s.hideLoader(),s.showResults(),s.scrollToResults())})},updateResults:function(t){var i=this;if(t.replace(/^\s*[\r\n]/gm,"")===""||n(t).hasClass("asp_nores")||n(t).find(".asp_nores").length>0)i.n.showmore.css("display","none"),n("span",i.n.showmore).html("");else if(i.o.resultstype=="isotopic"&&i.call_num>0&&i.isotopic!=null&&typeof i.isotopic.appended!="undefined"&&i.n.items.length>0){var r=n(t),u=i.n.items.last(),f=parseInt(i.n.items.last().attr("data-itemnum"));n.each(r,function(t){n(r[t]).attr("data-itemnum",++f);n(r[t]).css({width:u.css("width"),height:u.css("height")})});i.n.resdrg.append(r);i.isotopic.appended(r);i.n.items=n(".item",i.n.resultsDiv).length>0?n(".item",i.n.resultsDiv):n(".photostack-flip",i.n.resultsDiv)}else i.call_num>0&&i.o.resultstype=="vertical"?i.n.resdrg.html(i.n.resdrg.html()+'<div class="asp_v_spacer"><\/div>'+t):i.n.resdrg.html(i.n.resdrg.html()+t)},showResults:function(){var i=this;i.o.resultstype=="horizontal"?i.createHorizontalScroll():i.o.resultstype=="vertical"&&i.createVerticalScroll();switch(i.o.resultstype){case"horizontal":i.showHorizontalResults();break;case"vertical":i.showVerticalResults();break;case"polaroid":i.showPolaroidResults();break;case"isotopic":i.showIsotopicResults();break;default:i.showHorizontalResults()}i.showAnimatedImages();i.hideLoader();i.n.proclose.css({display:"block"});t()&&i.o.mobile.hide_keyboard&&!i.resultsOpened&&document.activeElement.blur();i.o.settingsHideOnRes&&i.o.blocking==!1&&i.hideSettings();typeof n.fn.asp_lazy!="undefined"&&setTimeout(function(){i.asp_lazy=i.n.resultsDiv.find(".asp_lazy").asp_lazy({chainable:!1,visibleOnly:i.o.resultstype=="isotopic"})},100);i.is_scroll&&typeof i.scroll.recalculate!="undefined"&&setTimeout(function(){i.scroll.recalculate()},500);i.fixAccessibility();i.resultsOpened=!0},showAnimatedImages:function(){var t=this;t.n.items.each(function(){var r=n(this).find(".asp_image[data-src]"),i=r.data("src");if(typeof i!="undefined"&&i!==""&&i.indexOf(".gif")>-1&&r.find("canvas").length==0){n('<div class="asp_item_canvas"><canvas><\/canvas><\/div>').prependTo(r);var u=n(this).find("canvas").get(0),f=n(this).find(".asp_item_canvas"),e=u.getContext("2d"),t=new Image;t.crossOrigin="anonymous";t.onload=function(){n(u).attr({width:t.width,height:t.height});e.drawImage(t,0,0,t.width,t.height);f.css({"background-image":"url("+u.toDataURL()+")"})};t.src=i}})},updateInfoHeader:function(n){var i=this,t,r=i.n.resultsDiv.find(".asp_results_top"),u=i.n.text.val().trim();r.length>0&&(i.n.items.length<=0?r.css("display","none"):(u!==""&&i.resInfoBoxTxt!==""?t=i.resInfoBoxTxt:u===""&&i.resInfoBoxTxtNoPhrase!==""&&(t=i.resInfoBoxTxtNoPhrase),t!==""?(t=t.replace("{phrase}",i.n.text.val()),t=t.replace("{results_count}",i.n.items.length),t=t.replace("{results_count_total}",n),r.html(t),r.css("display","block")):r.css("display","none")))},hideResults:function(n){var i=this;if(n=typeof n=="undefined"?!0:n,!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"});t()&&n&&document.activeElement.blur();i.resultsOpened=!1;typeof i.ptstack!="undefined"&&delete i.ptstack;i.hideArrowBox();i.n.c.trigger("asp_results_hide",[i.o.id,i.o.iid])},showMoreResLoader:function(){var n=this;n.n.resultsDiv.addClass("asp_more_res_loading")},showLoader:function(t){var i=this;if(t=typeof t!="undefined"?t:!1,i.o.loaderLocation!="none"){if(i.n.container.hasClass("hiddend")||i.o.loaderLocation=="results"||i.n.proloading.css({display:"block"}),t!==!1)return!1;(i.n.container.hasClass("hiddend")&&i.o.loaderLocation!="search"||!i.n.container.hasClass("hiddend")&&(i.o.loaderLocation=="both"||i.o.loaderLocation=="results"))&&(i.usingLiveLoader||(i.n.resultsDiv.find(".asp_results_top").length>0&&i.n.resultsDiv.find(".asp_results_top").css("display","none"),i.showResultsBox(),n(".asp_res_loader",i.n.resultsDiv).removeClass("hiddend"),i.n.results.css("display","none"),i.n.showmore.css("display","none"),i.hidePagination()))}},hideLoader:function(){var t=this;t.n.proloading.css({display:"none"});n(".asp_res_loader",t.n.resultsDiv).addClass("hiddend");t.n.results.css("display","");t.n.resultsDiv.removeClass("asp_more_res_loading")},scrollToResults:function(){var t=this,r=Math.floor(n(window).height()*.1);if(t.resultsOpened&&t.o.scrollToResults.enabled==1&&!this.$elem.parent().hasClass("asp_preview_data")&&this.o.compact.enabled!=1&&!t.n.resultsDiv.is(":in-viewport("+r+")")){if(t.o.resultsposition=="hover")var i=t.n.probox.offset().top-20;else var i=t.n.resultsDiv.offset().top-20;i=i+t.o.scrollToResults.offset;n("#wpadminbar").length>0&&(i-=n("#wpadminbar").height());i=i<0?0:i;n("body, html").is(":animated")||n("body, html").animate({scrollTop:i},{duration:320})}},showVerticalResults:function(){var t=this;if(t.showResultsBox(),t.n.items.length>0){var i=t.n.items.length<t.o.itemscount?t.n.items.length:t.o.itemscount;i=i<=0?9999:i;var s=n(".asp_group_header",t.n.resultsDiv);if(t.n.items.length<=t.o.itemscount)t.n.results.css({height:"auto"});else if(t.call_num<1&&t.n.results.css({height:30}),t.call_num<1){var r=0,u=0,f=0,e=0;t.n.items.each(function(){u+=n(this).outerHeight(!0);n(this).outerHeight(!0)>e&&(e=n(this).outerHeight(!0));r++});f=e*i;f>u&&(f=u);r=r<1?1:r;u=u/r*i;s.length>0&&s.each(function(t){var r=n(this).index()-t-Math.floor(n(this).index()/3);r<i&&(f+=n(this).outerHeight(!0))});t.n.results.css({height:f})}if(t.n.items.last().addClass("asp_last_item"),t.n.results.find(".asp_group_header").prev(".item").addClass("asp_last_item"),t.o.highlight==1){var h=t.o.highlightWholewords==1?!0:!1;n("div.item",t.n.resultsDiv).highlight(t.n.text.val().split(" "),{element:"span",className:"highlighted",wordsOnly:h})}}if(t.resize(),t.n.items.length==0&&t.n.results.css({height:"auto"}),t.n.results.css({overflowY:"auto"}),t.call_num<1){var c=t.is_scroll?n(t.scroll.getScrollElement()):t.n.results;c.scrollTop(0)}if(t.o.preventBodyScroll){var o,l=n("body").css("overflow"),a=typeof n("body").attr("style")=="undefined";t.n.results.off("touchstart");t.n.results.off("touchend");t.n.results.on("touchstart",function(){clearTimeout(o);n("body").css("overflow","hidden")}).on("touchend",function(){clearTimeout(o);o=setTimeout(function(){a?n("body").removeAttr("style"):n("body").css("overflow",l)},300)})}t.addAnimation();t.fixResultsPosition(!0);t.searching=!1},showHorizontalResults:function(){var t=this;if(t.n.resultsDiv.css("display","block"),t.fixResultsPosition(!0),t.n.items.css("opacity",t.animationOpacity),t.o.resultsposition=="hover"&&t.n.resultsDiv.css("width",t.n.container.width()-(t.n.resultsDiv.outerWidth(!0)-t.n.resultsDiv.innerWidth())),t.n.items.length>0&&t.o.scrollBar.horizontal.enabled){var r=parseInt(t.n.items.css("marginLeft")),e=t.n.items.outerWidth()+r*2;t.n.results.css("overflowX","auto");t.n.resdrg.css("width",t.n.items.length*e+r*2+"px")}else t.n.results.css("overflowX","hidden"),t.n.resdrg.css("width","auto");if(t.o.highlight==1){var o=t.o.highlightWholewords==1?!0:!1;n("div.item",t.n.resultsDiv).highlight(t.n.text.val().split(" "),{element:"span",className:"highlighted",wordsOnly:o})}if(t.call_num<1){var i=t.is_scroll?n(t.scroll.getScrollElement()):t.n.results;if(i.scrollLeft(0),t.o.scrollBar.horizontal.enabled){var u=0,f=Date.now();i.off("mousewheel");i.on("mousewheel",function(t){var o=typeof t.deltaFactor!="undefined"?t.deltaFactor:65,r=Date.now()-f,e=r>100?1:3-2*r/100;u!=t.deltaY&&(e=1);n(this).stop(!0).animate({scrollLeft:"-="+t.deltaY*o*2*e+"px"},{duration:250,easing:"aspEaseOutQuad"});u=t.deltaY;f=Date.now();d(i.get(0))&&t.deltaY==-1||g(i.get(0))&&t.deltaY==1||t.preventDefault()})}}t.showResultsBox();t.addAnimation();t.searching=!1},showIsotopicResults:function(){var t=this;if(t._no_animations==!0)return t.showResultsBox(),t.addAnimation(),t.searching=!1,!0;if(t.preProcessIsotopicResults(),t.showResultsBox(),t.n.items.length>0&&(t.n.results.css({height:"auto"}),t.o.highlight==1)){var i=t.o.highlightWholewords==1;n("div.item",t.n.resultsDiv).highlight(t.n.text.val().split(" "),{element:"span",className:"highlighted",wordsOnly:i})}if(t.call_num==0&&t.calculateIsotopeRows(),t.showPagination(),t.isotopicPagerScroll(),t.n.items.length==0)t.n.results.css({height:11110}),t.n.results.css({height:"auto"}),t.n.resdrg.css({height:"auto"});else if(typeof rpp_isotope!="undefined")t.isotopic!=null&&typeof t.isotopic.destroy!="undefined"&&t.call_num==0&&t.isotopic.destroy(),(t.call_num==0||t.isotopic==null)&&(t.isotopic=new rpp_isotope("#ajaxsearchprores"+t.o.rid+" .resdrg",{isOriginLeft:!n("body").hasClass("rtl"),itemSelector:"div.item",layoutMode:"masonry",filter:t.filterFns.number,masonry:{gutter:t.o.isotopic.gutter}}));else return t.raiseError("isotope"),!1;t.addAnimation();t.searching=!1},preProcessIsotopicResults:function(){var i=this,r=0,u="";i.o.isotopic.showOverlay&&i.n.aspItemOverlay.length>0&&(u=i.n.aspItemOverlay[0].outerHTML);n.grep(i.n.items,function(f){var e="",h=n(".asp_image",f).length>0?!0:!1,c=n(".asp_image",f);if(h){var s=c.data("src"),o=i.o.isotopic.blurOverlay&&!t()?"aspblur":"no_aspblur";e=n("<div data-src='"+s+"' ><\/div>");typeof n.fn.asp_lazy=="undefined"&&e.css({"background-image":"url("+s+")"});e.css({filter:"url(#"+o+")","-webkit-filter":"url(#"+o+")","-moz-filter":"url(#"+o+")","-o-filter":"url(#"+o+")","-ms-filter":"url(#"+o+")"}).addClass("asp_item_overlay_img asp_lazy");e=e.get(0).outerHTML}n(e+u+"").prependTo(f);n(f).attr("data-itemnum",r);r++})},showPagination:function(t){var i=this;if(t=typeof t!="undefined"?t:!1,!i.o.isotopic.pagination)return i.isotopic!=null&&t&&i.isotopic.arrange({transitionDuration:0,filter:i.filterFns.number}),!1;if((i.call_num<1||t)&&n("nav.asp_navigation ul li",i.n.resultsDiv).remove(),n("nav.asp_navigation",i.n.resultsDiv).css("display","none"),i.n.items.length>0){var f=1;i.call_num>0&&!t&&(f=n("li",n("nav.asp_navigation ul",i.n.resultsDiv).get(0)).length+1);var e=Math.ceil(i.n.items.length/i.il.itemsPerPage);if(e>1){var u=t&&i.il.lastVisibleItem>0?Math.ceil(i.il.lastVisibleItem/i.il.itemsPerPage):1;u=u<=0?1:u;for(var r=f;r<=e;r++)r==u?n("nav.asp_navigation ul",i.n.resultsDiv).append("<li class='asp_active'><span>"+r+"<\/span><\/li>"):n("nav.asp_navigation ul",i.n.resultsDiv).append("<li><span>"+r+"<\/span><\/li>");n("nav.asp_navigation",i.n.resultsDiv).css("display","block");t?n("nav.asp_navigation ul li.asp_active",i.n.resultsDiv).trigger("click_trigger"):n("nav.asp_navigation ul li.asp_active",i.n.resultsDiv).trigger("click")}else i.isotopic!=null&&t&&i.isotopic.arrange({transitionDuration:0,filter:i.filterFns.number})}},hidePagination:function(){var t=this;n("nav.asp_navigation",t.n.resultsDiv).css("display","none")},visiblePagination:function(){var t=this;return n("nav.asp_navigation",t.n.resultsDiv).css("display")!="none"},calculateIsotopeRows:function(){var n=this,r,u,t=parseFloat(n.n.results.innerWidth());h()==="desktop"?(r=s(n.o.isotopic.itemWidth,t),u=s(n.o.isotopic.itemHeight,t)):h()==="tablet"?(r=s(n.o.isotopic.itemWidthTablet,t),u=s(n.o.isotopic.itemHeightTablet,t)):(r=s(n.o.isotopic.itemWidthPhone,t),u=s(n.o.isotopic.itemHeightPhone,t));var e=t/r,o=n.o.isotopic.gutter,i=Math.floor(e);i<=0&&(i=1);Math.abs(t/i-r)>Math.abs(t/(i+1)-r)&&i++;var f=t/i-(i-1)*o/i,c=f/r*u;n.il.columns=i;n.il.itemsPerPage=i*n.il.rows;n.il.lastVisibleItem=n.n.results.find(".asp_isotopic_item:visible").first().index()+1;n.n.resultsDiv.data({colums:n.il.columns,itemsperpage:n.il.itemsPerPage});n.currentPage=1;n.n.items.css({width:Math.floor(f),height:Math.floor(c)})},showPolaroidResults:function(){var t=this;n(".photostack>nav",t.n.resultsDiv).remove();var i=n("figure",t.n.resultsDiv);if(t.n.resultsDiv.css({display:"block",height:"auto"}),t.showResultsBox(),i.length>0){if(t.n.results.css({height:t.o.prescontainerheight}),t.o.highlight==1){var r=t.o.highlightWholewords==1?!0:!1;n("figcaption",t.n.resultsDiv).highlight(t.n.text.val().split(" "),{element:"span",className:"highlighted",wordsOnly:r})}if(typeof Photostack!="undefined")t.ptstack=new Photostack(t.n.results.get(0),{callback:function(){}});else return t.raiseError("polaroid"),!1}i.length==0&&(t.n.results.css({height:11110}),t.n.results.css({height:"auto"}));t.addAnimation();t.fixResultsPosition(!0);t.searching=!1;t.initPolaroidEvents(i)},initPolaroidEvents:function(t){var i=this,r=1;t.each(function(){r>1&&n(this).removeClass("photostack-current");n(this).attr("idx",r);r++});t.on("click",function(t){if(!n(this).hasClass("photostack-current")){t.preventDefault();var r=n(this).attr("idx");n(".photostack>nav span:nth-child("+r+")",i.n.resultsDiv).trigger("click")}});t.on("mousewheel",function(t,r){t.preventDefault();r>=1?n(".photostack>nav span.current",i.n.resultsDiv).next().length>0?n(".photostack>nav span.current",i.n.resultsDiv).next().trigger("click"):n(".photostack>nav span:nth-child(1)",i.n.resultsDiv).trigger("click"):n(".photostack>nav span.current",i.n.resultsDiv).prev().length>0?n(".photostack>nav span.current",i.n.resultsDiv).prev().trigger("click"):n(".photostack>nav span:nth-last-child(1)",i.n.resultsDiv).trigger("click")});i.n.resultsDiv.addClass("asp_touchswipe");i.n.resultsDiv.on("asp_swipe.left",function(){n(".photostack>nav span.current",i.n.resultsDiv).next().length>0?n(".photostack>nav span.current",i.n.resultsDiv).next().trigger("click"):n(".photostack>nav span:nth-child(1)",i.n.resultsDiv).trigger("click")});i.n.resultsDiv.on("asp_swipe.right",function(){n(".photostack>nav span.current",i.n.resultsDiv).prev().length>0?n(".photostack>nav span.current",i.n.resultsDiv).prev().trigger("click"):n(".photostack>nav span:nth-last-child(1)",i.n.resultsDiv).trigger("click")})},addAnimation:function(){var t=this,r=0,i=1,f=25,u=!0;if(t.call_num>0||t._no_animations)return t.n.results.find(".item, .asp_group_header").removeClass("opacityZero").removeClass("asp_an_"+t.animOptions.items),!1;t.n.results.find(".item, .asp_group_header").each(function(){var e=this;if(i===1&&(u=n(e).is(":in-viewport(0)")),i>1&&u&&!n(e).is(":in-viewport(0)")||i>80)return n(e).removeClass("opacityZero"),!0;if(t.o.resultstype=="isotopic"&&i>t.il.itemsPerPage){n(e).removeClass("opacityZero");return}setTimeout(function(){n(e).addClass("asp_an_"+t.animOptions.items);n(e).removeClass("opacityZero")},r+f);r=r+45;i++})},removeAnimation:function(){var t=this;t.n.items.each(function(){var i=this;n(i).removeClass("asp_an_"+t.animOptions.items)})},initSettingsAnimations:function(){var n=this;n.settAnim={showClass:"",showCSS:{visibility:"visible",display:"block",opacity:1,"animation-duration":n.animOptions.settings.dur+"ms"},hideClass:"",hideCSS:{visibility:"hidden",opacity:0,display:"none"},duration:n.animOptions.settings.dur+"ms"};n.animOptions.settings.anim=="fade"&&(n.settAnim.showClass="asp_an_fadeIn",n.settAnim.hideClass="asp_an_fadeOut");n.animOptions.settings.anim!="fadedrop"||n.o.blocking||n.supportTransform===!1?n.animOptions.settings.anim=="fadedrop"&&(n.settAnim.showClass="asp_an_fadeIn",n.settAnim.hideClass="asp_an_fadeOut"):(n.settAnim.showClass="asp_an_fadeInDrop",n.settAnim.hideClass="asp_an_fadeOutDrop");n.n.searchsettings.css({"-webkit-animation-duration":n.settAnim.duration+"ms","animation-duration":n.settAnim.duration+"ms"})},initResultsAnimations:function(){var n=this;n.resAnim={showClass:"",showCSS:{visibility:"visible",display:"block",opacity:1,"animation-duration":n.animOptions.results.dur+"ms"},hideClass:"",hideCSS:{visibility:"hidden",opacity:0,display:"none"},duration:n.animOptions.results.dur+"ms"};var t=n.n.resultsDiv.css("position"),i=t!="fixed"&&t!="absolute";n.animOptions.results.anim=="fade"&&(n.resAnim.showClass="asp_an_fadeIn",n.resAnim.hideClass="asp_an_fadeOut");n.animOptions.results.anim!="fadedrop"||i||n.supportTransform===!1?n.animOptions.results.anim=="fadedrop"&&(n.resAnim.showClass="asp_an_fadeIn",n.resAnim.hideClass="asp_an_fadeOut"):(n.resAnim.showClass="asp_an_fadeInDrop",n.resAnim.hideClass="asp_an_fadeOutDrop");n.n.resultsDiv.css({"-webkit-animation-duration":n.settAnim.duration+"ms","animation-duration":n.settAnim.duration+"ms"})},showSettings:function(){var t=this;if(t.n.c.trigger("asp_settings_show",[t.o.id,t.o.iid]),t.n.searchsettings.css(t.settAnim.showCSS),t.n.searchsettings.removeClass(t.settAnim.hideClass).addClass(t.settAnim.showClass),t.settScroll==null&&t.is_scroll&&(t.settScroll=[],n(".asp_sett_scroll",t.n.searchsettings).each(function(i){var r=this;setTimeout(function(){t.settScroll[i]=new asp_SimpleBar(n(r).get(0),{direction:n("body").hasClass("rtl")?"rtl":"ltr",autoHide:t.o.scrollBar.settings.autoHide})},15)})),t.o.fss_layout=="masonry"&&t.sIsotope==null)if(typeof rpp_isotope!="undefined")setTimeout(function(){var i=t.n.searchsettings.attr("id");t.n.searchsettings.css("width","100%");t.sIsotope=new rpp_isotope("#"+i+" form",{isOriginLeft:!n("body").hasClass("rtl"),itemSelector:"fieldset",layoutMode:"masonry",transitionDuration:0,masonry:{columnWidth:t.n.searchsettings.find("fieldset").outerWidth()}})},20);else return t.raiseError("isotope"),!1;t.n.searchsettings.find(".asp_gochosen,.asp_goselect2").trigger("change.asp_select2");t.n.prosettings.data("opened",1);t.fixSettingsPosition(!0);t.fixAccessibility()},showResultsBox:function(){var n=this;n.n.c.trigger("asp_results_show",[n.o.id,n.o.iid]);n.n.resultsDiv.css({display:"block",height:"auto"});n.n.results.find(".item, .asp_group_header").addClass(n.animationOpacity);n.fixResultsPosition(!0);n.n.resultsDiv.css(n.resAnim.showCSS);n.n.resultsDiv.removeClass(n.resAnim.hideClass).addClass(n.resAnim.showClass)},hideSettings:function(){var t=this;t.n.c.trigger("asp_settings_hide",[t.o.id,t.o.iid]);t.n.searchsettings.removeClass(t.settAnim.showClass).addClass(t.settAnim.hideClass);setTimeout(function(){t.n.searchsettings.css(t.settAnim.hideCSS)},t.settAnim.duration);t.n.prosettings.data("opened",0);t.sIsotope!=null&&setTimeout(function(){t.sIsotope.destroy();t.sIsotope=null},t.settAnim.duration);typeof n.fn.asp_select2!="undefined"&&t.n.searchsettings.find(".asp_gochosen,.asp_goselect2").asp_select2("close");t.hideArrowBox()},cleanUp:function(){var t=this;n(".searchsettings",t.n.container).length>0&&(n("body>#ajaxsearchprosettings"+t.o.rid).remove(),n("body>#ajaxsearchprores"+t.o.rid).remove())},orientationChange:function(){var n=this;n.fixSettingsPosition();n.fixResultsPosition();n.fixTryThisPosition();n.o.resultstype=="isotopic"&&n.n.resultsDiv.css("visibility")=="visible"&&(n.calculateIsotopeRows(),n.showPagination(!0),n.removeAnimation())},resize:function(){var n=this;n.fixSettingsPosition();n.fixResultsPosition();n.fixTryThisPosition();n.hideArrowBox();n.o.resultstype=="isotopic"&&n.n.resultsDiv.css("visibility")=="visible"&&(n.calculateIsotopeRows(),n.showPagination(!0),n.removeAnimation())},scrolling:function(n){var t=this;t.hideOnInvisibleBox();t.fixSettingsPosition(n);t.fixResultsPosition(n)},fixAccessibility:function(){var n=this;n.n.searchsettings.find("input.asp_select2-search__field").attr("aria-label","Select2 search")},fixTryThisPosition:function(){var n=this;n.n.trythis.css({left:n.n.container.position().left})},fixResultsPosition:function(i){i=typeof i=="undefined"?!1:i;var r=this,f=r.n.resultsDiv.css("position");if(f=="fixed"||f=="absolute"){var e=0;if(n("body").css("position")!="static"&&(e=n("body").offset().top),i==!0||r.n.resultsDiv.css("visibility")=="visible"){var o=0,l=0,u=r.n.container.offset();if(f=="fixed"&&(e=0,o=n(document).scrollTop(),l=n(document).scrollLeft(),t()&&c()&&r.n.text.is(":focus")&&(o=r.savedScrollTop,u.top=r.savedContainerTop)),typeof u!="undefined"){var v=r.n.container.outerWidth()<240?240:r.n.container.outerWidth(),a;a=h()=="phone"?r.o.results.width_phone:h()=="tablet"?r.o.results.width_tablet:r.o.results.width;a=="auto"&&r.n.resultsDiv.outerWidth(v);var s=0;r.o.resultsSnapTo=="right"?s=r.n.resultsDiv.outerWidth()-r.n.container.outerWidth():r.o.resultsSnapTo=="center"&&(s=parseInt((r.n.resultsDiv.outerWidth()-r.n.container.outerWidth())/2));r.n.resultsDiv.css({top:u.top+r.n.container.outerHeight(!0)-e-o,left:u.left-l-s})}}}},fixSettingsPosition:function(i){i=typeof i=="undefined"?!1:i;var r=this,o=0;if(n("body").css("position")!="static"&&(o=n("body").offset().top),(i==!0||r.n.prosettings.data("opened")!=0)&&r.o.blocking!=!0){if(r.fixSettingsWidth(),r.n.prosettings.css("display")!="none")var f=r.n.prosettings;else var f=r.n.promagnifier;var u=f.offset(),e=0,s=0;r.n.searchsettings.css("position")=="fixed"&&(e=n(window).scrollTop(),s=n(window).scrollLeft(),t()&&c()&&r.n.text.is(":focus")&&(u.top=r.savedContainerTop,e=r.savedScrollTop));r.o.settingsimagepos=="left"?r.n.searchsettings.css({display:"block",top:u.top+f.height()-2-o-e,left:u.left-s}):r.n.searchsettings.css({display:"block",top:u.top+f.height()-2-o-e,left:u.left+f.width()-r.n.searchsettings.width()-s})}},fixSettingsWidth:function(){var t=this;if(!t.o.blocking&&t.o.fss_layout!="masonry"&&(t.n.searchsettings.css({width:"100%"}),t.n.searchsettings.innerWidth()%n("fieldset",t.n.searchsettings).outerWidth(!0)>10)){var i=parseInt(t.n.searchsettings.innerWidth()/n("fieldset",t.n.searchsettings).outerWidth(!0));i=i<=0?1:i;t.n.searchsettings.css({width:i*n("fieldset",t.n.searchsettings).outerWidth(!0)+8})}},liveLoad:function(t,i,r){if(t=="body"||t=="html")return console.log("Ajax Search Pro: Do not use html or body as the live loader selector."),!1;r=typeof r=="undefined"?!0:r;var e=[".search-content","#content","#Content","div[role=main]","main[role=main]","div.theme-content","div.td-ss-main-content","main.l-content","#primary"];if(t!="#main"&&e.unshift("#main"),n(t).length<1&&(n.each(e,function(i,r){if(n(r).length>0)return t=r,!1}),n(t).length<1))return console.log("Ajax Search Pro: The live search selector does not exist on the page."),!1;t.indexOf("asp_es_")>-1&&(t+=" .elementor-widget-container");var f=n(t).first(),u=this;u.searchAbort();f.css("opacity",.4);u.post=n.ajax({url:i,success:function(e){if(u.o.statistics&&u.stat_addKeyword(u.o.id,u.n.text.val()),e!=""&&n(e).length>0&&n(e).find(t).length>0){if(e=e.replace(/&asp_force_reset_pagination=1/gmi,""),e=e.replace(/%26asp_force_reset_pagination%3D1/gmi,""),e=e.replace(/&#038;asp_force_reset_pagination=1/gmi,""),e=l("asp_live_load_html",e,u.o.id,u.o.iid),f.replaceWith(n(e).find(t).first()),f=n(t).first(),r&&(document.title=n(e).filter("title").text(),history.pushState({},null,i)),t.indexOf("asp_es_")!==!1&&typeof elementorFrontend!="undefined"&&typeof elementorFrontend.init!="undefined"){var o=f.parent().data("widget_type");o!=""&&elementorFrontend.hooks.doAction("frontend/element_ready/"+o,f.parent());u.fixElementorPostPagination(i);u.n.c.trigger("asp_elementor_results",[u.o.id,u.o.iid,f])}n(t).first().find(".woocommerce-ordering").on("change","select.orderby",function(){n(this).closest("form").trigger("submit")});if(u.o.singleHighlight==1)n(t).find("a").on("click",function(){localStorage.removeItem("asp_phrase_highlight");a(u.n.text.val())!=""&&localStorage.setItem("asp_phrase_highlight",JSON.stringify({phrase:a(u.n.text.val()),id:u.o.id}))});ASP.fixClones();ASP.initialize();u.lastSuccesfulSearch=n("form",u.n.searchsettings).serialize()+u.n.text.val().trim();u.lastSearchData=e}else n(e).find(t).length==0&&t.indexOf("asp_es_")!==!1&&(f.html(""),u.lastSuccesfulSearch=n("form",u.n.searchsettings).serialize()+u.n.text.val().trim(),u.lastSearchData=e,u.n.c.trigger("asp_elementor_results",[u.o.id,u.o.iid,f]));u.n.c.trigger("asp_search_end",[u.o.id,u.o.iid,u.n.text.val(),e]);u.gaEvent("search_end",{results_count:"unknown"});u.gaPageview(u.n.text.val());u.hideLoader();f.css("opacity",1);u.searching=!1;u.n.proclose.css({display:"block"})},dataType:"html"}).fail(function(n,t){(f.css("opacity",1),n.aborted||t=="abort")||(f.html("This request has failed. Please check your connection."),u.hideLoader(),u.searching=!1,u.n.proclose.css({display:"block"}))})},fixElementorPostPagination:function(t){var r=this;if(n(".asp_es_"+r.o.id).length>0){var u=t.indexOf("?");if(u>=0){var i=t.substring(u+1);i&&(i=i.replace(/&asp_force_reset_pagination=1/gmi,""),n(".asp_es_"+r.o.id).find(".elementor-pagination a").each(function(){var t=n(this).attr("href");t.indexOf("asp_ls=")<0&&t.indexOf("asp_ls&")<0&&(t.indexOf("?")<0?n(this).attr("href",t+"?"+i):n(this).attr("href",t+"&"+i))}))}}},getCurrentLiveURL:function(){var i=this,u="asp_ls="+e(i.n.text.val()),r="&",t=window.location.href;t=t.indexOf("asp_ls=")>-1?t.slice(0,t.indexOf("asp_ls=")):t;t=t.indexOf("asp_ls&")>-1?t.slice(0,t.indexOf("asp_ls&")):t;t=t.indexOf("p_asid=")>-1?t.slice(0,t.indexOf("p_asid=")):t;t=t.indexOf("asp_")>-1?t.slice(0,t.indexOf("asp_")):t;t.indexOf("?")===-1&&(r="?");var f=t+r+u+"&asp_active=1&asp_force_reset_pagination=1&p_asid="+i.o.id+"&p_asp_data=1&"+n("form",i.n.searchsettings).serialize();return f.replace("?&","?")},getRedirectURL:function(t){var i=this,r,f,u,o;if(t=typeof t!="undefined"?t:"enter",f=t=="click"?i.o.trigger.click:t=="button"?i.o.sb.redirect_action:i.o.trigger.return,f=="results_page"?r="?s="+e(i.n.text.val()):f=="woo_results_page"?r="?post_type=product&s="+e(i.n.text.val()):t=="button"?(o=f=="elementor_page"?i.o.sb.elementor_url:i.o.sb.redirect_url,r=i.parseCustomRedirectURL(o,i.n.text.val())):(o=f=="elementor_page"?i.o.trigger.elementor_url:i.o.trigger.redirect_url,r=i.parseCustomRedirectURL(o,i.n.text.val())),i.o.homeurl.indexOf("?")>1&&r.indexOf("?")===0&&(r=r.replace("?","&")),i.o.overridewpdefault&&i.o.override_method!="post"){var s="&";(i.o.homeurl.indexOf("?")===-1||f=="elementor_page")&&r.indexOf("?")===-1&&(s="?");var h=r+s+"asp_active=1&p_asid="+i.o.id+"&p_asp_data=1&"+n("form",i.n.searchsettings).serialize();u=f=="elementor_page"?h:i.o.homeurl+h}else u=f=="elementor_page"?r:i.o.homeurl+r;return u=u.replace("https://","https:///"),u=u.replace("http://","http:///"),u=u.replace(/\/\//g,"/"),l("asp_redirect_url",u,i.o.id,i.o.iid)},parseCustomRedirectURL:function(t,i){var r=this,u=t.replace(/\{phrase\}/g,e(i)),f=u.match(/\{(.*?)\}/g);return f!==null&&n.each(f,function(t,i){i=i.replace(/[{}]/g,"");var f=n('input[type=radio][name*="aspf['+i+'_"]:checked',r.n.searchsettings);if(f.length==0&&(f=n('input[type=text][name*="aspf['+i+'_"]',r.n.searchsettings)),f.length==0&&(f=n('input[type=hidden][name*="aspf['+i+'_"]',r.n.searchsettings)),f.length==0&&(f=n('select[name*="aspf['+i+'_"]:not([multiple])',r.n.searchsettings)),f.length==0&&(f=n('input[type=radio][name*="termset['+i+'"]:checked',r.n.searchsettings)),f.length==0&&(f=n('input[type=text][name*="termset['+i+'"]',r.n.searchsettings)),f.length==0&&(f=n('input[type=hidden][name*="termset['+i+'"]',r.n.searchsettings)),f.length==0&&(f=n('select[name*="termset['+i+'"]:not([multiple])',r.n.searchsettings)),f.length==0)return!0;var e=f.val();e=""+e;u=u.replace("{"+i+"}",e)}),u},setFilterStateInput:function(t){var i=this;typeof t=="undefined"&&(t=65);setTimeout(function(){JSON.stringify(i.originalFormData)!=JSON.stringify(f(n("form",i.n.searchsettings)))?i.n.searchsettings.find("input[name=filters_initial]").val(0):i.n.searchsettings.find("input[name=filters_initial]").val(1)},t)},resetSearchFilters:function(){var t=this,i=f(n("form",t.n.searchsettings));t.noUiSliders.length>0&&n.each(t.noUiSliders,function(n,t){typeof t.noUiSlider!="undefined"&&t.noUiSlider.reset()});t.n.searchsettings.find("fieldset").find("option, input").each(function(){var i=n(this).prop("tagName").toLowerCase();if(i=="option")n(this).prop("selected",!1);else if(i=="input"){var t=n(this).attr("type").toLowerCase();t=="radio"?n(this).prop("checked",!1):t=="checkbox"?n(this).prop("checked",!1):(t=="hidden"||t=="text")&&(n(this).is(".asp_slider_hidden, .asp_slider")||n(this).val(""))}});t.n.searchsettings.find("fieldset *[data-origvalue]").each(function(){var u=n(this).prop("tagName").toLowerCase();if(u=="option")n(this).prop("selected",!0);else if(u=="input"){var i=n(this).attr("type").toLowerCase();if(i=="radio")n(this).prop("checked",!0);else if(i=="checkbox")n(this).prop("checked",!0);else if((i=="hidden"||i=="text")&&(n(this).val(n(this).data("origvalue")),n(this).hasClass("asp_datepicker_field")||n(this).hasClass("asp_datepicker"))){var r=v(),f=r(n(this).get(0)).datepicker("option","dateFormat"),t=n(this).data("origvalue");r(n(this).get(0)).datepicker("option","dateFormat","yy-mm-dd");n(this).hasClass("asp_datepicker_field")&&(t=t=="0"?"":t==""?"+0":t);r(n(this).get(0)).datepicker("setDate",t);r(n(this).get(0)).datepicker("option","dateFormat",f)}}});t.n.searchsettings.find(".asp_gochosen,.asp_goselect2").trigger("change.asp_select2");var r=t.n.text.val();t.n.text.val("");t.n.proloading.css("display","none");t.hideLoader();t.searchAbort();t.o.rb.action=="live"&&(JSON.stringify(i)!=JSON.stringify(f(n("form",t.n.searchsettings)))||r!="")?t.search(!1,!1,!1,!0,!0):t.o.rb.action=="close"&&t.hideResults()},stat_addKeyword:function(t,i){var r={action:"ajaxsearchpro_addkeyword",id:t,keyword:i};n.post(ASP.ajaxurl,r,function(){})},hideOnInvisibleBox:function(){var n=this;n.o.detectVisibility!=1||n.o.compact.enabled!=0||n.n.container.hasClass("hiddend")||!n.n.container.is(":hidden")&&n.n.container.is(":visible")||(n.hideSettings(),n.hideResults())},settingsCheckboxToggle:function(n,t){var f=this;t=typeof t=="undefined"?!0:t;for(var i=n,r=n.find('input[type="checkbox"]'),e=parseInt(n.data("lvl"))+1,u=0;!0;){if(i=i.next(),i.length>0&&typeof i.data("lvl")!="undefined"&&parseInt(i.data("lvl"))>=e)t&&i.find('input[type="checkbox"]').prop("checked",r.prop("checked")),f.o.settings.hideChildren&&(r.prop("checked")?i.removeClass("hiddend"):i.addClass("hiddend"));else break;if(u++,u>400)break}},hooks:function(){var n=this;n.n.c.on("asp_elementor_results",function(t,i){n.o.id==i&&typeof jetpackLazyImagesModule!="undefined"&&setTimeout(function(){jetpackLazyImagesModule()},300)})},searchFor:function(t){var u=n(this).attr("id").match(/^ajaxsearchpro(.*)/)[1];if(t=typeof t!="undefined"?t:"",typeof i[u]!="undefined"){var r=i[u];return r.n.text.val(t),r.n.textAutocomplete.val(""),r.search(!1,!1,!1,!0),!0}return!1},searchRedirect:function(t){var f=n(this).attr("id").match(/^ajaxsearchpro(.*)/)[1];if(typeof i[f]!="undefined"){var r=i[f],u=r.parseCustomRedirectURL(r.o.trigger.redirect_url,t);r.o.homeurl.indexOf("?")>1&&u.indexOf("?")==0&&(u=u.replace("?","&"));r.o.overridewpdefault?r.o.override_method=="post"?o(r.o.homeurl+u,"post",{asp_active:1,p_asid:r.o.id,p_asp_data:n("form",r.n.searchsettings).serialize()}):location.href=r.o.homeurl+u+"&asp_active=1&p_asid="+r.o.id+"&p_asp_data=1&"+n("form",r.n.searchsettings).serialize():o(r.o.homeurl+u,"post",{np_asid:r.o.id,np_asp_data:n("form",r.n.searchsettings).serialize()})}},toggleSettings:function(t){var u=n(this).attr("id").match(/^ajaxsearchpro(.*)/)[1];if(typeof i[u]!="undefined"){var r=i[u];return typeof t!="undefined"?t=="show"?r.showSettings():r.hideSettings():r.n.prosettings.data("opened")?r.hideSettings():r.showSettings(),!0}return!1},closeResults:function(t){var u=n(this).attr("id").match(/^ajaxsearchpro(.*)/)[1];if(typeof i[u]!="undefined"){var r=i[u];return typeof t!="undefined"&&t&&(r.n.text.val(""),r.n.textAutocomplete.val("")),r.hideResults(),r.n.proloading.css("display","none"),r.hideLoader(),r.searchAbort(),!0}return!1},getStateURL:function(){var r=n(this).attr("id").match(/^ajaxsearchpro(.*)/)[1];if(typeof i[r]!="undefined"){var u=i[r],t=location.href;t=t.split("p_asid");t=t[0];t=t.replace("&asp_active=1","");t=t.replace("?asp_active=1","");t=t.slice(-1)=="?"?t.slice(0,-1):t;t=t.slice(-1)=="&"?t.slice(0,-1):t;var f=t.indexOf("?")>1?"&":"?";return t+f+"p_asid="+u.o.id+"&p_asp_data=1&"+n("form",u.n.searchsettings).serialize()}return!1},resetSearch:function(){var t=n(this).attr("id").match(/^ajaxsearchpro(.*)/)[1];if(typeof i[t]!="undefined"){var r=i[t];return r.resetSearchFilters(),!0}return!1},filtersInitial:function(){var t=n(this).attr("id").match(/^ajaxsearchpro(.*)/)[1];if(typeof i[t]!="undefined"){var r=i[t];return r.n.searchsettings.find("input[name=filters_initial]").val()==1}return!1},filtersChanged:function(){var t=n(this).attr("id").match(/^ajaxsearchpro(.*)/)[1];if(typeof i[t]!="undefined"){var r=i[t];return r.n.searchsettings.find("input[name=filters_changed]").val()==1}return!1}};function e(n){return encodeURIComponent(n).replace(/\%20/g,"+")}function a(n){return n.replace(/"|'/g,"")}function o(t,i,r,u){"use strict";var f;f=n("<form />",{action:t,method:i,style:"display: none;"});typeof r!="undefined"&&r!==null&&n.each(r,function(t,i){n("<input />",{type:"hidden",name:t,value:i}).appendTo(f)});typeof u!="undefined"&&u=="new"&&f.attr("target","_blank");f.appendTo("body").trigger("submit")}function y(t){n('<a href="'+t+'" target="_blank">').get(0).click()}function s(n,t){var i=0;return n=n+"",i=n.indexOf("px")>-1?parseInt(n,10):n.indexOf("%")>-1?typeof t!="undefined"&&t!=null?parseInt(parseInt(n,10)/100*t,10):parseInt(n,10):parseInt(n,10),i<100?100:i}function k(t,i){return t.scrollHeight-n(t).scrollTop()-n(t).outerHeight()<i}function d(t){return t.scrollWidth-n(t).outerWidth()===n(t).scrollLeft()?!0:!1}function g(t){return n(t).scrollLeft()===0?!0:!1}function nt(){return!("ontouchstart"in window)?0:1}function tt(){var n=window.navigator.userAgent,t=n.indexOf("MSIE "),i=n.indexOf("Trident/");return t>0||i>0?!0:!1}function c(){return typeof navigator!="undefined"&&typeof window.navigator.userAgent!="undefined"?window.navigator.userAgent.match(/(iPod|iPhone|iPad)/)!=null:!1}function it(){var n=window.navigator.userAgent,t=n.indexOf("MSIE ");return t>0?!0:!1}function rt(){for(var t="transform WebkitTransform MozTransform OTransform msTransform".split(" "),i=document.createElement("div"),n=0;n<t.length;n++)if(i&&i.style[t[n]]!==undefined)return t[n];return!1}function p(n){var t=document.createElement("div");return n&&typeof n=="string"&&(n=n.replace(/<script[^>]*>([\S\s]*?)<\/script>/gmi,""),n=n.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gmi,""),t.innerHTML=n,n=t.textContent,t.textContent=""),n}function l(){return typeof wp!="undefined"&&typeof wp.hooks!="undefined"&&typeof wp.hooks.applyFilters!="undefined"?wp.hooks.applyFilters.apply(null,arguments):typeof arguments[1]!="undefined"?arguments[1]:!1}function t(){try{return document.createEvent("TouchEvent"),!0}catch(n){return!1}}function h(){var t=n(window).width();return t<=640?"phone":t<=1024?"tablet":"desktop"}function v(){return typeof n.fn.datepicker!="undefined"?n:typeof jQuery!="undefined"?window.jQuery:n}function f(t,i){var r=t.find(":input").get();return arguments.length===1?(i={},n.each(r,function(){this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text/i.test(this.type)||n(this).hasClass("asp_datepicker_hidden")||n(this).hasClass("asp_slider_hidden"))&&(i[this.name]==undefined&&(i[this.name]=[]),i[this.name].push(n(this).val()))}),JSON.stringify(i)):(typeof i!="object"&&(i=JSON.parse(i)),n.each(r,function(){if(this.name)if(i[this.name]){var r=i[this.name],t=n(this);if(Object.prototype.toString.call(r)!=="[object Array]"&&(r=[r]),this.type=="checkbox"||this.type=="radio"){for(var o=t.val(),e=!1,f=0;f<r.length;f++)if(r[f]==o){e=!0;break}t.attr("checked",e)}else if(t.val(r[0]),(n(this).hasClass("asp_gochosen")||n(this).hasClass("asp_goselect2"))&&n(this).trigger("change.asp_select2"),(n(this).hasClass("asp_datepicker_field")||n(this).hasClass("asp_datepicker"))&&i[this.name.replace("_real","")]){var u=v(),s=i[this.name.replace("_real","")][0];setTimeout(function(){var n=u(t.get(0)).datepicker("option","dateFormat");u(t.get(0)).datepicker("option","dateFormat","yy-mm-dd");u(t.get(0)).datepicker("setDate",s);u(t.get(0)).datepicker("option","dateFormat",n);u(t.get(0)).trigger("selectnochange")},50)}}else(this.type=="checkbox"||this.type=="radio")&&n(this).attr("checked",!1)}),t)}typeof Object.create!="function"&&(Object.create=function(n){function t(){}return t.prototype=n,new t});n.plugin=function(t,i){n.fn[t]=function(r){return typeof r!="undefined"&&i[r]?i[r].apply(this,Array.prototype.slice.call(arguments,1)):this.each(function(){n.data(this,t)||n.data(this,t,Object.create(i).init(r,this))})}};n.plugin("ajaxsearchpro",b);var u={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(n){var e="",o,t,i,h,c,s,r,f=0;for(n=u._utf8_encode(n);f<n.length;)o=n.charCodeAt(f++),t=n.charCodeAt(f++),i=n.charCodeAt(f++),h=o>>2,c=(o&3)<<4|t>>4,s=(t&15)<<2|i>>6,r=i&63,isNaN(t)?s=r=64:isNaN(i)&&(r=64),e=e+this._keyStr.charAt(h)+this._keyStr.charAt(c)+this._keyStr.charAt(s)+this._keyStr.charAt(r);return e},decode:function(n){var t="",o,s,h,c,f,r,e,i=0;for(n=n.replace(/[^A-Za-z0-9\+\/\=]/g,"");i<n.length;)c=this._keyStr.indexOf(n.charAt(i++)),f=this._keyStr.indexOf(n.charAt(i++)),r=this._keyStr.indexOf(n.charAt(i++)),e=this._keyStr.indexOf(n.charAt(i++)),o=c<<2|f>>4,s=(f&15)<<4|r>>2,h=(r&3)<<6|e,t=t+String.fromCharCode(o),r!=64&&(t=t+String.fromCharCode(s)),e!=64&&(t=t+String.fromCharCode(h));return u._utf8_decode(t)},_utf8_encode:function(n){n=n.replace(/\r\n/g,"\n");for(var i="",r=0;r<n.length;r++){var t=n.charCodeAt(r);t<128?i+=String.fromCharCode(t):t>127&&t<2048?(i+=String.fromCharCode(t>>6|192),i+=String.fromCharCode(t&63|128)):(i+=String.fromCharCode(t>>12|224),i+=String.fromCharCode(t>>6&63|128),i+=String.fromCharCode(t&63|128))}return i},_utf8_decode:function(n){for(var r="",t=0,i=c1=c2=0;t<n.length;)i=n.charCodeAt(t),i<128?(r+=String.fromCharCode(i),t++):i>191&&i<224?(c2=n.charCodeAt(t+1),r+=String.fromCharCode((i&31)<<6|c2&63),t+=2):(c2=n.charCodeAt(t+1),c3=n.charCodeAt(t+2),r+=String.fromCharCode((i&15)<<12|(c2&63)<<6|c3&63),t+=3);return r}}})(jQuery);jQuery(function(n){n(".ajaxsearchprotop").each(function(){var t=n(this).data("aspdata"),i=t.id;if(t.action==0)n("a",this).on("click",function(n){n.preventDefault()});else if(t.action==2)n("a",this).on("click",function(t){t.preventDefault();ASP.api(i,"searchFor",n(this).html());n("html,body").animate({scrollTop:n("div[id*=ajaxsearchpro"+i+"_]").first().offset().top-40},"slow")});else if(t.action==1)n("a",this).on("click",function(t){if(ASP.api(i,"exists"))return t.preventDefault(),ASP.api(i,"searchRedirect",n(this).html())})})});window.ASP=window.ASP||{};window.ASP.getScope=function(){if(typeof jQuery!="undefined")if(typeof jQuery.fn.ajaxsearchpro=="undefined")for(var n=jQuery,t=jQuery,i=0;i<10;i++)if(typeof n.fn.ajaxsearchpro=="undefined")n=jQuery.noConflict(!0);else return n.fn.jquery!=t.fn.jquery&&(window.jQuery=window.$=t),n;else return jQuery;return typeof window[ASP.js_scope]!="undefined"?window[ASP.js_scope]:eval(ASP.js_scope)};window.ASP.initialized=!1;window.ASP.initialize=function(n){var r=this;if(typeof r.getScope=="undefined"||typeof r.version=="undefined")return!1;var t=r.getScope(),u=".asp_init_data",f=function(n){for(var r="",t=0,i=c1=c2=0;t<n.length;)i=n.charCodeAt(t),i<128?(r+=String.fromCharCode(i),t++):i>191&&i<224?(c2=n.charCodeAt(t+1),r+=String.fromCharCode((i&31)<<6|c2&63),t+=2):(c2=n.charCodeAt(t+1),c3=n.charCodeAt(t+2),r+=String.fromCharCode((i&15)<<12|(c2&63)<<6|c3&63),t+=3);return r},e=function(n){var t="",s,h,c,l,e,r,o,i=0,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";for(n=n.replace(/[^A-Za-z0-9\+\/\=]/g,"");i<n.length;)l=u.indexOf(n.charAt(i++)),e=u.indexOf(n.charAt(i++)),r=u.indexOf(n.charAt(i++)),o=u.indexOf(n.charAt(i++)),s=l<<2|e>>4,h=(e&15)<<4|r>>2,c=(r&3)<<6|o,t=t+String.fromCharCode(s),r!=64&&(t=t+String.fromCharCode(h)),o!=64&&(t=t+String.fromCharCode(c));return f(t)};if(typeof ASP_INSTANCES!="undefined"&&Object.keys(ASP_INSTANCES).length>0?t.each(ASP_INSTANCES,function(n,i){return typeof i=="undefined"?!1:t("#ajaxsearchpro"+n).hasClass("hasASP")?!1:(t("#ajaxsearchpro"+n).addClass("hasASP"),t("#ajaxsearchpro"+n).ajaxsearchpro(i))}):(typeof n!="undefined"&&(u="div[id*=asp_init_id_"+n+"]"),t(u).each(function(){var i=t(this).attr("id").match(/^asp_init_id_(.*)/)[1],n=t(this).data("aspdata");if(typeof n=="undefined"||(n=e(n),typeof n=="undefined"||n=="")||t("#ajaxsearchpro"+i).hasClass("hasASP"))return!0;t("#ajaxsearchpro"+i).addClass("hasASP");var r=JSON.parse(n);return t("#ajaxsearchpro"+i).ajaxsearchpro(r)})),r.highlight.enabled){var i=localStorage.getItem("asp_phrase_highlight");localStorage.removeItem("asp_phrase_highlight");i!=null&&(i=JSON.parse(i),t.each(r.highlight.data,function(n,r){if(r.id==i.id){var f=r.selector!=""&&t(r.selector).length>0?r.selector:"article";if(f=t(f).length>0?f:"body",t(f).highlight(i.phrase,{element:"span",className:"asp_single_highlighted_"+i.id,wordsOnly:r.whole,excludeParents:".asp_w, .asp-try"}),r.scroll&&t(".asp_single_highlighted_"+i.id).length>0){var u=t(".asp_single_highlighted_"+i.id).offset().top-120;t("#wpadminbar").length>0&&(u-=t("#wpadminbar").height());u=u+r.scroll_offset;u=u<0?0:u;t("html").animate({scrollTop:u},{duration:500})}return!1}}))}r.initialized=!0};window.ASP.fixClones=function(){var t=this;if((t.fix_duplicates=t.fix_duplicates||0,t.fix_duplicates==0)||typeof t.getScope=="undefined")return!1;var n=t.getScope(),i={};n(".asp_init_data").each(function(){var t=n(this).attr("id").match(/^asp_init_id_(.*)/)[1],r=t.match(/^(.*)_(.*)/);typeof i[t]=="undefined"?i[t]={rid:t,id:r[1],inst:r[2],count:1}:i[t].count++});n.each(i,function(i,r){r.count>1&&n(".asp_m_"+r.rid).each(function(i){if(i==0)return!0;for(var e=n(this).parent(),f=2,u=r.id+"_"+f;n("#ajaxsearchpro"+u).length!=0;)++f,u=r.id+"_"+f;n(this).attr("id","ajaxsearchpro"+u);n(this).attr("data-instance",f);n(this).removeClass("asp_m_"+r.rid).addClass("asp_m_"+u);n(this).removeClass("hasASP");n(".asp_r_"+r.rid,this).length==0&&n(".asp_r_"+r.rid).clone().appendTo(n(this));n(".asp_r_"+r.rid,this).attr("id","ajaxsearchprores"+u);n(".asp_r_"+r.rid,this).attr("data-instance",f);n(".asp_s_"+r.rid,this).length==0&&n(".asp_s_"+r.rid).length!=0&&n(".asp_s_"+r.rid).clone().appendTo(n(this));n(".asp_sb_"+r.rid,this).length==0&&n(".asp_sb_"+r.rid).length!=0&&n(".asp_sb_"+r.rid).clone().appendTo(n(this));n(".asp_s_"+r.rid,this).attr("id","ajaxsearchprosettings"+u);n(".asp_sb_"+r.rid,e).attr("id","ajaxsearchprobsettings"+u);n(".asp_s_"+r.rid,this).attr("data-instance",f);n(".asp_sb_"+r.rid,this).attr("data-instance",f);n(".asp_hidden_data",e).length>0&&n(".asp_hidden_data",e).attr("id","asp_hidden_data_"+u);n(".asp_init_data",e).length>0&&n(".asp_init_data",e).attr("id","asp_init_id_"+u);t.initialize(r.id,parseInt(r.inst)+i)})})};window.ASP.ready=function(){var t=this,i=t.getScope(),r=null,u=null,f=0;if(u=setInterval(function(){if(f++,t.css_loaded==1||f>80){i(function(){t.initialize();setTimeout(function(){t.fixClones()},2500)});i(document).on("load",function(){t.initialized||(t.initialize(),setTimeout(function(){t.fixClones()},2500),console.log("ASP initialized via window.load"))});clearInterval(u)}},50),typeof ASP.detect_ajax!="undefined"&&ASP.detect_ajax==1)i("body").on("DOMSubtreeModified",function(){clearTimeout(r);r=setTimeout(function(){t.initialize()},500)});var e;i(window).on("resize",function(){clearTimeout(e);e=setTimeout(function(){t.fixClones()},2e3)});var o,n="#menu-item-search, .fa-search, .fa, .fas";n=n+", .fusion-flyout-menu-toggle, .fusion-main-menu-search-open";n=n+", #search_button";n=n+", .mini-search.popup-search";n=n+", .icon-search";n=n+", .menu-item-search-dropdown";n=n+", .mobile-menu-button";n=n+", .td-icon-search, .tdb-search-icon";n=n+", .side_menu_button, .search_button";n=n+", .raven-search-form-toggle";n=n+", [data-elementor-open-lightbox], .elementor-button-link, .elementor-button";i(function(){i("body").on("click touchend",n,function(){clearTimeout(o);o=setTimeout(function(){t.initialize()},500)})})};window.ASP.eventsList=[{name:"asp_init_search_bar",args:"id, instance"},{name:"asp_search_start",args:"id, instance, phrase"},{name:"asp_search_end",args:"id, instance, phrase, results_info"},{name:"asp_results_show",args:"id, instance"},{name:"asp_results_hide",args:"id, instance"},{name:"asp_elementor_results",args:"id, instance, element"},{name:"asp_settings_show",args:"id, instance"},{name:"asp_settings_hide",args:"id, instance"}];window.ASP.printEventsList=function(){for(var t=window.ASP.eventsList,n=0;n<t.length;n++)typeof t[n].args!="undefined"?console.log(t[n].name+" | args: "+t[n].args):console.log(t[n].name)};window.ASP.functionsList=[{name:"exists",args:"id"},{name:"searchFor",args:"id, (optional) instance, 'phrase'"},{name:"searchRedirect",args:"id, (optional) instance, 'phrase'"},{name:"toggleSettings",args:"id, (optional) instance, (optional) 'show' | 'hide'"},{name:"closeResults",args:"id, (optional)instance"},{name:"getStateURL",args:"id, (optional)instance"},{name:"resetSearch",args:"id, (optional)instance"},{name:"filtersInitial",args:"id, (optional)instance"},{name:"filtersChanged",args:"id, (optional)instance"}];window.ASP.printFunctionsList=function(){for(var t=window.ASP.functionsList,n=0;n<t.length;n++)typeof t[n].args!="undefined"?console.log(t[n].name+" | args: "+t[n].args):console.log(t[n].name)};window.ASP.api=function(){var n=function(n,t,i,r){var f=this,u=f.getScope();if(u("#ajaxsearchpro"+n+"_"+t).length>0)return u("#ajaxsearchpro"+n+"_"+t).ajaxsearchpro(i,r)},t=function(n,t,i){var f=this,r=f.getScope(),u=!1;if(!isNaN(parseFloat(t))&&isFinite(t)){if(r("#ajaxsearchpro"+n+"_"+t).length>0)return r("#ajaxsearchpro"+n+"_"+t).ajaxsearchpro(i)}else n==0?r(".asp_main_container.hasASP").length>0&&r(".asp_main_container.hasASP").each(function(){u=r(this).ajaxsearchpro(t,i)}):r("div.asp_m_"+n).length>0&&r("div.asp_m_"+n).each(function(){u=r(this).ajaxsearchpro(t,i)});return u},i=function(n,t){var u=this,i=u.getScope(),r=!1;return t=="exists"?i("div.asp_m_"+n).length>0:(n==0?i(".asp_main_container.hasASP").length>0&&i(".asp_main_container.hasASP").each(function(){r=i(this).ajaxsearchpro(t)}):i("div.asp_m_"+n).length>0&&i("div.asp_m_"+n).each(function(){r=i(this).ajaxsearchpro(t)}),r)};return arguments.length==4?n.apply(this,arguments):arguments.length==3?t.apply(this,arguments):arguments.length==2?i.apply(this,arguments):arguments.length==0?(console.log("Usage: ASP.api(id, [optional]instance, function, [optional]args);"),console.log("---------------------------------"),console.log("functions list:"),window.ASP.printFunctionsList()):void 0};window._ASP=ASP;window._ASP.ready();