!function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},s=i[t]=i[t]||[];return s.includes(e)||s.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let s=i.indexOf(e);return-1!=s&&i.splice(s,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let s=this._onceEvents&&this._onceEvents[t];for(let n of i){s&&s[n]&&(this.off(t,n),delete s[n]),n.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t})),
function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){let i=t.jQuery,s=t.console;function n(t,e,o){if(!(this instanceof n))return new n(t,e,o);let r=t;var h;("string"==typeof t&&(r=document.querySelectorAll(t)),r)?(this.elements=(h=r,Array.isArray(h)?h:"object"==typeof h&&"number"==typeof h.length?[...h]:[h]),this.options={},"function"==typeof e?o=e:Object.assign(this.options,e),o&&this.on("always",o),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):s.error(`Bad element for imagesLoaded ${r||t}`)}n.prototype=Object.create(e.prototype),n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const o=[1,9,11];n.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let{nodeType:e}=t;if(!e||!o.includes(e))return;let i=t.querySelectorAll("img");for(let t of i)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t)}};const r=/url\((['"])?(.*?)\1\)/gi;function h(t){this.img=t}function d(t,e){this.url=t,this.element=e,this.img=new Image}return n.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let i=r.exec(e.backgroundImage);for(;null!==i;){let s=i&&i[2];s&&this.addBackground(s,t),i=r.exec(e.backgroundImage)}},n.prototype.addImage=function(t){let e=new h(t);this.images.push(e)},n.prototype.addBackground=function(t,e){let i=new d(t,e);this.images.push(i)},n.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,i)=>{setTimeout((()=>{this.progress(t,e,i)}))};this.images.forEach((function(e){e.once("progress",t),e.check()}))},n.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&s&&s.log(`progress: ${i}`,t,e)},n.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},h.prototype=Object.create(e.prototype),h.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},h.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:i}=this.img,s="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,s,e])},h.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype=Object.create(h.prototype),d.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},d.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},n.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(i=e,i.fn.imagesLoaded=function(t,e){return new n(this,t,e).jqDeferred.promise(i(this))})},n.makeJQueryPlugin(),n}));
(()=>{"use strict";var e={};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();const t="email",n="phone",r="name",l={[t]:["email","e-mail","mail","email address"],[n]:["phone","tel","mobile","cell","telephone","phone number"],[r]:["name","full-name","full name","full_name","fullname","first-name","first name","first_name","firstname","last-name","last name","last_name","lastname","given-name","given name","given_name","givenname","family-name","family name","family_name","familyname","fname","lname","first","last","your-name","your name"]};function a(e){return e&&"string"==typeof e?e.trim().toLowerCase():""}function i(e){const t=a(e),n=t.lastIndexOf("@");if(-1===n)return t;const r=t.slice(n+1);return["gmail.com","googlemail.com"].includes(r)?`${t.slice(0,n).replace(/\./g,"")}@${r}`:t}function u(e){const t=a(e),n=t.replace(/\D/g,"");return t.startsWith("+")?`+${n}`:n}function s(e){const t=e.filter(e=>{let{type:t}=e;return t===r}).map(e=>{let{value:t}=e;return a(t)}).filter(Boolean);if(!t.length)return;const[n,...l]=1===t.length?t[0].split(" "):t;return{first_name:n,...l?.length>0?{last_name:l.join(" ")}:{}}}function o(e){return e.find(e=>{let{type:n}=e;return n===t})?.value}function c(e){return e.find(e=>{let{type:t}=e;return t===n})?.value}e.g.document.addEventListener("wpcf7mailsent",m=>{const f=e.g._googlesitekit?.gtagUserData,g=f?function(e){if(!(e&&e instanceof HTMLFormElement))return;const m=new FormData(e);return function(e){const t=[["address",s(e)],["email",o(e)],["phone_number",c(e)]].filter(e=>{let[,t]=e;return t});if(0!==t.length)return Object.fromEntries(t)}(Array.from(m.entries()).map(s=>{let[o,c]=s;const m=e.querySelector(`[name='${o}']`),f=m?.type;return"hidden"===f||"submit"===f?null:function(e){let{type:s,name:o,value:c,label:m}=e||{};switch(s=a(s),o=a(o),c=a(c),m=function(e){return e&&"string"==typeof e?e.trim().toLowerCase().replace(/\s*\*+\s*$/,"").replace(/\s*\(required\)\s*$/i,"").replace(/\s*:\s*$/,"").trim():""}(m),s){case"email":return{type:t,value:i(c)};case"tel":return{type:n,value:u(c)}}return function(e){if(!e)return!1;const t=i(e);return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)}(c)||l[t].includes(o)||l[t].includes(m)?{type:t,value:i(c)}:l[n].includes(o)||l[n].includes(m)?{type:n,value:u(c)}:l[r].includes(o)||l[r].includes(m)?{type:r,value:a(c)}:function(e){if(!e)return!1;if(!function(e){const t=e.replace(/\D/g,"");return!(t.length<7||t.length<e.length/2)&&/^[\s\-()+.\d]*$/.test(e)}(e))return!1;const t=u(e);if(!/^\+?\d{7,}$/.test(t))return!1;const n=/[\s\-()+.]/.test(e),r=e.trim().startsWith("+");return!(!n&&!r)}(c)?{type:n,value:u(c)}:null}({type:f,label:m?.id?e.querySelector(`label[for='${m?.id}']`)?.textContent:void 0,name:o,value:c})}).filter(Boolean))}(m.target):null;e.g._googlesitekit?.gtagEvent?.("contact",{event_category:m.detail.contactFormId,event_label:m.detail.unitTag,...g?{user_data:g}:{}})})})();
(function($){
"use strict";
jQuery(window).on('elementor/frontend/init', function (){
if(window.elementorFrontend.isEditMode()){
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-blog.default',
function($scope){
zikzag_parallax_video();
zikzag_blog_masonry_init();
zikzag_carousel_slick();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-blog-hero.default',
function($scope){
zikzag_parallax_video();
zikzag_blog_masonry_init();
zikzag_carousel_slick();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-carousel.default',
function($scope){
zikzag_carousel_slick();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-portfolio.default',
function($scope){
zikzag_isotope();
zikzag_carousel_slick();
zikzag_scroll_animation();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-events.default',
function($scope){
zikzag_isotope();
zikzag_carousel_slick();
zikzag_scroll_animation();
zikzag_events_masonry_init();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-pie-chart.default',
function($scope){
zikzag_pie_chart_init();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-progress-bar.default',
function($scope){
zikzag_progress_bars_init();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-testimonials.default',
function($scope){
zikzag_carousel_slick();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-toggle-accordion.default',
function($scope){
zikzag_accordion_init();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-team.default',
function($scope){
zikzag_isotope();
zikzag_carousel_slick();
zikzag_scroll_animation();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-tabs.default',
function($scope){
zikzag_tabs_init();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-clients.default',
function($scope){
zikzag_carousel_slick();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-image-layers.default',
function($scope){
zikzag_img_layers();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-video-popup.default',
function($scope){
zikzag_videobox_init();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-countdown.default',
function($scope){
zikzag_countdown_init();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-time-line-vertical.default',
function($scope){
zikzag_init_timeline_appear();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-striped-services.default',
function($scope){
zikzag_striped_services_init();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-image-comparison.default',
function($scope){
zikzag_image_comparison();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-counter.default',
function($scope){
zikzag_counter_init();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-header-menu.default',
function($scope){
zikzag_menu_lavalamp();
zikzag_ajax_mega_menu();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-header-search.default',
function($scope){
zikzag_search_init();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/wgl-header-side_panel.default',
function($scope){
zikzag_side_panel_init();
}
);
}});
})(jQuery);
window.searchAndFilter||(window.searchAndFilter={}),window.searchAndFilter.frontend||(window.searchAndFilter.frontend={packages:{core:{hooks:{}},utils:{},components:{},fields:{},registry:{},hooks:{},extensions:{},storybook:{}}}),function(){var e={395:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=s(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=s(t,n));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){"use strict";var e={};n.r(e),n.d(e,{get:function(){return h},register:function(){return p}});var t={};n.r(t),n.d(t,{useCallback:function(){return Pe},useContext:function(){return ke},useDebugValue:function(){return Ie},useEffect:function(){return xe},useErrorBoundary:function(){return Te},useId:function(){return De},useImperativeHandle:function(){return Le},useLayoutEffect:function(){return Ne},useMemo:function(){return Ae},useReducer:function(){return Se},useRef:function(){return Ee},useState:function(){return Ce}});var r={};n.r(r),n.d(r,{assignObject:function(){return st},classNames:function(){return tt()},cloneArray:function(){return it},cloneObject:function(){return at},debounce:function(){return dt},forEach:function(){return lt},getNumericString:function(){return ft},getRealInputType:function(){return vt},getUid:function(){return _t},log:function(){return yt},mergeObjects:function(){return ut},mergeRefs:function(){return ct},onDocumentInteractive:function(){return gt},onInitDocument:function(){return pt}});var o={};n.r(o),n.d(o,{Button:function(){return ot},ButtonGroup:function(){return At},CheckableButton:function(){return Nt},CheckableOptions:function(){return Tt},CheckableSkeleton:function(){return It},Description:function(){return Ze},FocusProvider:function(){return Ge},Icon:function(){return nt},InputGroup:function(){return Dt},Label:function(){return Je},Popover:function(){return bn},RadioControl:function(){return Sn},TextControl:function(){return An},TextControlContainer:function(){return Nn},TextInput:function(){return Pn},checkableGetNextState:function(){return kt},useFocusContext:function(){return ze},useFocusDispatch:function(){return Qe},useFocusEvent:function(){return Ye},usePopover:function(){return yn}});var i={};n.r(i),n.d(i,{AutocompleteControl:function(){return Dn},Label:function(){return Rn}});var s={};n.r(s),n.d(s,{Component:function(){return R},Fragment:function(){return $},cloneElement:function(){return se},createContext:function(){return le},createElement:function(){return O},createPortal:function(){return tn},createRef:function(){return q},h:function(){return O},hooks:function(){return t},hydrate:function(){return ie},isValidElement:function(){return v},options:function(){return m},render:function(){return oe},toChildArray:function(){return K}});var l={};n.r(l),n.d(l,{Button:function(){return _r},Checkbox:function(){return er},DatePicker:function(){return mr},PerPage:function(){return Sr},Radio:function(){return Qn},Reset:function(){return yr},Select:function(){return zn},Sort:function(){return Cr},Submit:function(){return vr},Text:function(){return hr},__getInputClassName:function(){return Hn}});var a={};n.r(a),n.d(a,{Autocomplete:function(){return Er},DatePicker:function(){return Rr},LoadMore:function(){return $r},RangeNumber:function(){return Dr},RangeRadio:function(){return Tr},RangeSelect:function(){return Ir},RangeSlider:function(){return kr},Selection:function(){return Fr}});var u={};n.r(u),n.d(u,{generateInputId:function(){return xt},getInstanceId:function(){return St},useDebounce:function(){return gn},useInstanceId:function(){return Ct}});var c={};n.r(c),n.d(c,{getScreenDimensions:function(){return Mr},useScreenDimensions:function(){return Hr},useSyncExternalStore:function(){return Vr}});var d={};n.r(d),n.d(d,{add:function(){return Br},applyFilters:function(){return zr},doActions:function(){return Gr},fields:function(){return jr},get:function(){return Kr},queries:function(){return Wr}});const f="searchAndFilter",p=(e,t,n,r=!1)=>{let o=window;e.unshift("frontend"),e.unshift(f);for(const t of e)o[t]||(o[t]={}),o=o[t];if(r&&"object"==typeof o[t])for(const e in n)o[t][e]=n[e];else o[t]=n},h=(e,t)=>{let n=window;e.unshift("frontend"),e.unshift(f);for(const t of e){if(!n[t])return;n=n[t]}return n[t]};var _,m,g,v,b,y,w,C,S,x,N,E,L,A={},P=[],k=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,I=Array.isArray;function T(e,t){for(var n in t)e[n]=t[n];return e}function D(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function O(e,t,n){var r,o,i,s={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?_.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)null==s[i]&&(s[i]=e.defaultProps[i]);return F(e,s,r,o,null)}function F(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++g:o,__i:-1,__u:0};return null==o&&null!=m.vnode&&m.vnode(i),i}function q(){return{current:null}}function $(e){return e.children}function R(e,t){this.props=e,this.context=t}function U(e,t){if(null==t)return e.__?U(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?U(e):null}function V(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return V(e)}}function M(e){(!e.__d&&(e.__d=!0)&&b.push(e)&&!H.__r++||y!=m.debounceRendering)&&((y=m.debounceRendering)||w)(H)}function H(){for(var e,t,n,r,o,i,s,l=1;b.length;)b.length>l&&b.sort(C),e=b.shift(),l=b.length,e.__d&&(n=void 0,o=(r=(t=e).__v).__e,i=[],s=[],t.__P&&((n=T({},r)).__v=r.__v+1,m.vnode&&m.vnode(n),X(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[o]:null,i,null==o?U(r):o,!!(32&r.__u),s),n.__v=r.__v,n.__.__k[n.__i]=n,J(i,n,s),n.__e!=o&&V(n)));H.__r=0}function B(e,t,n,r,o,i,s,l,a,u,c){var d,f,p,h,_,m,g=r&&r.__k||P,v=t.length;for(a=j(n,t,g,a,v),d=0;d<v;d++)null!=(p=n.__k[d])&&(f=-1==p.__i?A:g[p.__i]||A,p.__i=d,m=X(e,p,f,o,i,s,l,a,u,c),h=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&te(f.ref,null,p),c.push(p.ref,p.__c||h,p)),null==_&&null!=h&&(_=h),4&p.__u||f.__k===p.__k?a=W(p,a,e):"function"==typeof p.type&&void 0!==m?a=m:h&&(a=h.nextSibling),p.__u&=-7);return n.__e=_,a}function j(e,t,n,r,o){var i,s,l,a,u,c=n.length,d=c,f=0;for(e.__k=new Array(o),i=0;i<o;i++)null!=(s=t[i])&&"boolean"!=typeof s&&"function"!=typeof s?(a=i+f,(s=e.__k[i]="string"==typeof s||"number"==typeof s||"bigint"==typeof s||s.constructor==String?F(null,s,null,null,null):I(s)?F($,{children:s},null,null,null):null==s.constructor&&s.__b>0?F(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,l=null,-1!=(u=s.__i=G(s,n,a,d))&&(d--,(l=n[u])&&(l.__u|=2)),null==l||null==l.__v?(-1==u&&(o>c?f--:o<c&&f++),"function"!=typeof s.type&&(s.__u|=4)):u!=a&&(u==a-1?f--:u==a+1?f++:(u>a?f--:f++,s.__u|=4))):e.__k[i]=null;if(d)for(i=0;i<c;i++)null!=(l=n[i])&&!(2&l.__u)&&(l.__e==r&&(r=U(l)),ne(l,l));return r}function W(e,t,n){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=W(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=U(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function K(e,t){return t=t||[],null==e||"boolean"==typeof e||(I(e)?e.some((function(e){K(e,t)})):t.push(e)),t}function G(e,t,n,r){var o,i,s=e.key,l=e.type,a=t[n];if(null===a&&null==e.key||a&&s==a.key&&l==a.type&&!(2&a.__u))return n;if(r>(null==a||2&a.__u?0:1))for(o=n-1,i=n+1;o>=0||i<t.length;){if(o>=0){if((a=t[o])&&!(2&a.__u)&&s==a.key&&l==a.type)return o;o--}if(i<t.length){if((a=t[i])&&!(2&a.__u)&&s==a.key&&l==a.type)return i;i++}}return-1}function z(e,t,n){"-"==t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||k.test(t)?n:n+"px"}function Q(e,t,n,r,o){var i;e:if("style"==t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||z(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||z(e.style,t,n[t])}else if("o"==t[0]&&"n"==t[1])i=t!=(t=t.replace(S,"$1")),t=t.toLowerCase()in e||"onFocusOut"==t||"onFocusIn"==t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=x,e.addEventListener(t,i?E:N,i)):e.removeEventListener(t,i?E:N,i);else{if("http://www.w3.org/2000/svg"==o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function Y(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=x++;else if(t.t<n.u)return;return n(m.event?m.event(t):t)}}}function X(e,t,n,r,o,i,s,l,a,u){var c,d,f,p,h,_,g,v,b,y,w,C,S,x,N,E,L,A=t.type;if(null!=t.constructor)return null;128&n.__u&&(a=!!(32&n.__u),i=[l=t.__e=n.__e]),(c=m.__b)&&c(t);e:if("function"==typeof A)try{if(v=t.props,b="prototype"in A&&A.prototype.render,y=(c=A.contextType)&&r[c.__c],w=c?y?y.props.value:c.__:r,n.__c?g=(d=t.__c=n.__c).__=d.__E:(b?t.__c=d=new A(v,w):(t.__c=d=new R(v,w),d.constructor=A,d.render=re),y&&y.sub(d),d.props=v,d.state||(d.state={}),d.context=w,d.__n=r,f=d.__d=!0,d.__h=[],d._sb=[]),b&&null==d.__s&&(d.__s=d.state),b&&null!=A.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=T({},d.__s)),T(d.__s,A.getDerivedStateFromProps(v,d.__s))),p=d.props,h=d.state,d.__v=t,f)b&&null==A.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),b&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(b&&null==A.getDerivedStateFromProps&&v!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(v,w),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(v,d.__s,w)||t.__v==n.__v){for(t.__v!=n.__v&&(d.props=v,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some((function(e){e&&(e.__=t)})),C=0;C<d._sb.length;C++)d.__h.push(d._sb[C]);d._sb=[],d.__h.length&&s.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(v,d.__s,w),b&&null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(p,h,_)}))}if(d.context=w,d.props=v,d.__P=e,d.__e=!1,S=m.__r,x=0,b){for(d.state=d.__s,d.__d=!1,S&&S(t),c=d.render(d.props,d.state,d.context),N=0;N<d._sb.length;N++)d.__h.push(d._sb[N]);d._sb=[]}else do{d.__d=!1,S&&S(t),c=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++x<25);d.state=d.__s,null!=d.getChildContext&&(r=T(T({},r),d.getChildContext())),b&&!f&&null!=d.getSnapshotBeforeUpdate&&(_=d.getSnapshotBeforeUpdate(p,h)),E=c,null!=c&&c.type===$&&null==c.key&&(E=Z(c.props.children)),l=B(e,I(E)?E:[E],t,n,r,o,i,s,l,a,u),d.base=t.__e,t.__u&=-161,d.__h.length&&s.push(d),g&&(d.__E=d.__=null)}catch(e){if(t.__v=null,a||null!=i)if(e.then){for(t.__u|=a?160:128;l&&8==l.nodeType&&l.nextSibling;)l=l.nextSibling;i[i.indexOf(l)]=null,t.__e=l}else for(L=i.length;L--;)D(i[L]);else t.__e=n.__e,t.__k=n.__k;m.__e(e,t,n)}else null==i&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):l=t.__e=ee(n.__e,t,n,r,o,i,s,a,u);return(c=m.diffed)&&c(t),128&t.__u?void 0:l}function J(e,t,n){for(var r=0;r<n.length;r++)te(n[r],n[++r],n[++r]);m.__c&&m.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){m.__e(e,t.__v)}}))}function Z(e){return"object"!=typeof e||null==e||e.__b&&e.__b>0?e:I(e)?e.map(Z):T({},e)}function ee(e,t,n,r,o,i,s,l,a){var u,c,d,f,p,h,g,v=n.props,b=t.props,y=t.type;if("svg"==y?o="http://www.w3.org/2000/svg":"math"==y?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=i)for(u=0;u<i.length;u++)if((p=i[u])&&"setAttribute"in p==!!y&&(y?p.localName==y:3==p.nodeType)){e=p,i[u]=null;break}if(null==e){if(null==y)return document.createTextNode(b);e=document.createElementNS(o,y,b.is&&b),l&&(m.__m&&m.__m(t,i),l=!1),i=null}if(null==y)v===b||l&&e.data==b||(e.data=b);else{if(i=i&&_.call(e.childNodes),v=n.props||A,!l&&null!=i)for(v={},u=0;u<e.attributes.length;u++)v[(p=e.attributes[u]).name]=p.value;for(u in v)if(p=v[u],"children"==u);else if("dangerouslySetInnerHTML"==u)d=p;else if(!(u in b)){if("value"==u&&"defaultValue"in b||"checked"==u&&"defaultChecked"in b)continue;Q(e,u,null,p,o)}for(u in b)p=b[u],"children"==u?f=p:"dangerouslySetInnerHTML"==u?c=p:"value"==u?h=p:"checked"==u?g=p:l&&"function"!=typeof p||v[u]===p||Q(e,u,p,v[u],o);if(c)l||d&&(c.__html==d.__html||c.__html==e.innerHTML)||(e.innerHTML=c.__html),t.__k=[];else if(d&&(e.innerHTML=""),B("template"==t.type?e.content:e,I(f)?f:[f],t,n,r,"foreignObject"==y?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:n.__k&&U(n,0),l,a),null!=i)for(u=i.length;u--;)D(i[u]);l||(u="value","progress"==y&&null==h?e.removeAttribute("value"):null!=h&&(h!==e[u]||"progress"==y&&!h||"option"==y&&h!=v[u])&&Q(e,u,h,v[u],o),u="checked",null!=g&&g!=e[u]&&Q(e,u,g,v[u],o))}return e}function te(e,t,n){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(e){m.__e(e,n)}}function ne(e,t,n){var r,o;if(m.unmount&&m.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||te(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){m.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&ne(r[o],t,n||"function"!=typeof e.type);n||D(e.__e),e.__c=e.__=e.__e=void 0}function re(e,t,n){return this.constructor(e,n)}function oe(e,t,n){var r,o,i,s;t==document&&(t=document.documentElement),m.__&&m.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],s=[],X(t,e=(!r&&n||t).__k=O($,null,[e]),o||A,A,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?_.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,s),J(i,e,s)}function ie(e,t){oe(e,t,ie)}function se(e,t,n){var r,o,i,s,l=T({},e.props);for(i in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)"key"==i?r=t[i]:"ref"==i?o=t[i]:l[i]=null==t[i]&&null!=s?s[i]:t[i];return arguments.length>2&&(l.children=arguments.length>3?_.call(arguments,2):n),F(e.type,l,r||e.key,o||e.ref,null)}function le(e){function t(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&n.forEach((function(e){e.__e=!0,M(e)}))},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}return t.__c="__cC"+L++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}_=P.slice,m={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(t){e=t}throw e}},g=0,v=function(e){return null!=e&&null==e.constructor},R.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=T({},this.state),"function"==typeof e&&(e=e(T({},n),this.props)),e&&T(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),M(this))},R.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),M(this))},R.prototype.render=$,b=[],w="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,C=function(e,t){return e.__v.__b-t.__v.__b},H.__r=0,S=/(PointerCapture)$|Capture$/i,x=0,N=Y(!1),E=Y(!0),L=0;var ae,ue,ce,de,fe=0,pe=[],he=m,_e=he.__b,me=he.__r,ge=he.diffed,ve=he.__c,be=he.unmount,ye=he.__;function we(e,t){he.__h&&he.__h(ue,e,fe||t),fe=0;var n=ue.__H||(ue.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Ce(e){return fe=1,Se(Ve,e)}function Se(e,t,n){var r=we(ae++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Ve(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=ue,!ue.__f)){var o=function(e,t,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(e){return!!e.__c}));if(o.every((function(e){return!e.__N})))return!i||i.call(this,e,t,n);var s=r.__c.props!==e;return o.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(s=!0)}})),i&&i.call(this,e,t,n)||s};ue.__f=!0;var i=ue.shouldComponentUpdate,s=ue.componentWillUpdate;ue.componentWillUpdate=function(e,t,n){if(this.__e){var r=i;i=void 0,o(e,t,n),i=r}s&&s.call(this,e,t,n)},ue.shouldComponentUpdate=o}return r.__N||r.__}function xe(e,t){var n=we(ae++,3);!he.__s&&Ue(n.__H,t)&&(n.__=e,n.u=t,ue.__H.__h.push(n))}function Ne(e,t){var n=we(ae++,4);!he.__s&&Ue(n.__H,t)&&(n.__=e,n.u=t,ue.__h.push(n))}function Ee(e){return fe=5,Ae((function(){return{current:e}}),[])}function Le(e,t,n){fe=6,Ne((function(){if("function"==typeof e){var n=e(t());return function(){e(null),n&&"function"==typeof n&&n()}}if(e)return e.current=t(),function(){return e.current=null}}),null==n?n:n.concat(e))}function Ae(e,t){var n=we(ae++,7);return Ue(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Pe(e,t){return fe=8,Ae((function(){return e}),t)}function ke(e){var t=ue.context[e.__c],n=we(ae++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(ue)),t.props.value):e.__}function Ie(e,t){he.useDebugValue&&he.useDebugValue(t?t(e):e)}function Te(e){var t=we(ae++,10),n=Ce();return t.__=e,ue.componentDidCatch||(ue.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function De(){var e=we(ae++,11);if(!e.__){for(var t=ue.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Oe(){for(var e;e=pe.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach($e),e.__H.__h.forEach(Re),e.__H.__h=[]}catch(t){e.__H.__h=[],he.__e(t,e.__v)}}he.__b=function(e){ue=null,_e&&_e(e)},he.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ye&&ye(e,t)},he.__r=function(e){me&&me(e),ae=0;var t=(ue=e.__c).__H;t&&(ce===ue?(t.__h=[],ue.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0}))):(t.__h.forEach($e),t.__h.forEach(Re),t.__h=[],ae=0)),ce=ue},he.diffed=function(e){ge&&ge(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==pe.push(t)&&de===he.requestAnimationFrame||((de=he.requestAnimationFrame)||qe)(Oe)),t.__H.__.forEach((function(e){e.u&&(e.__H=e.u),e.u=void 0}))),ce=ue=null},he.__c=function(e,t){t.some((function(e){try{e.__h.forEach($e),e.__h=e.__h.filter((function(e){return!e.__||Re(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],he.__e(n,e.__v)}})),ve&&ve(e,t)},he.unmount=function(e){be&&be(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{$e(e)}catch(e){t=e}})),n.__H=void 0,t&&he.__e(t,n.__v))};var Fe="function"==typeof requestAnimationFrame;function qe(e){var t,n=function(){clearTimeout(r),Fe&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Fe&&(t=requestAnimationFrame(n))}function $e(e){var t=ue,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),ue=t}function Re(e){var t=ue;e.__c=e.__(),ue=t}function Ue(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Ve(e,t){return"function"==typeof t?t(e):t}var Me=0;function He(e,t,n,r,o,i){t||(t={});var s,l,a=t;if("ref"in a)for(l in a={},t)"ref"==l?s=t[l]:a[l]=t[l];var u={type:e,props:a,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Me,__i:-1,__u:0,__source:o,__self:i};if("function"==typeof e&&(s=e.defaultProps))for(l in s)void 0===a[l]&&(a[l]=s[l]);return m.vnode&&m.vnode(u),u}Array.isArray;const Be=le(),je=le(),We={id:null},Ke=(e,t)=>{switch(t.type){case"SET":return{id:t.id};case"RESET":return{id:null};default:return e}},Ge=({children:e})=>{const[t,n]=Se(Ke,We);return He(Be.Provider,{value:t,children:He(je.Provider,{value:n,children:e})})},ze=()=>ke(Be);ze.displayName="useFocusContext";const Qe=()=>ke(je);Qe.displayName="useFocusDispatch";const Ye=(e,t)=>{const{id:n}=ze(),r=Qe();n===t&&(e.current.focus(),r({type:"RESET"}))};Ye.displayName="useFocusEvent";const Xe=()=>{},Je=({showLabel:e,label:t,id:n,forId:r,onClick:o=Xe,isInteractive:i=!0,as:s="div",...l})=>{const a=Qe();return"yes"!==e?null:He(s,{className:"search-filter-label",onClick:()=>{i&&(o&&o(),a({type:"SET",id:r}))},id:n,...l,children:t})};Je.templateVars=["label",["showLabel",{type:"control"}]];const Ze=({showDescription:e,description:t,id:n})=>He($,{children:"yes"===e&&He("div",{id:n,className:"search-filter-description",children:t})});Ze.templateVars=["description",["showDescription",{type:"control"}]];var et=n(395),tt=n.n(et);const nt=({icon:e,className:t,isInteractive:n,isDestructive:r,label:o,onClick:i,...s})=>{const l=["search-filter-icon"];n&&l.push("search-filter-icon--interactive"),r&&l.push("search-filter-icon--destructive"),t&&l.push(t);let a=null;return n&&(a=e=>{"Enter"!==e.code&&"Space"!==e.code||(e.preventDefault(),i(e))}),He("div",{className:tt()(l),onClick:i,role:n?"button":null,tabIndex:n?"0":null,"aria-label":n?o:null,onKeyDown:a,...s,children:He("svg",{className:"search-filter-icon__svg",children:He("use",{xlinkHref:"#sf-svg-"+e})})})},rt=()=>{},ot=({icon:e,className:t,iconPosition:n="left",iconProps:r,disabled:o,label:i,isPressed:s,children:l,isInteractive:a=!0,onClick:u=rt,isSelected:c,value:d,...f})=>He("button",{className:tt()(["search-filter-input-button",t,c?"search-filter-input-button--is-selected":""]),onClick:a?u:null,"aria-pressed":s,disabled:o,"data-option-value":d,...f,children:["left"===n&&e&&He(nt,{icon:e,...r}),l??i,"right"===n&&e&&He(nt,{icon:e,...r})]});ot.templateVars=["label",["isPressed",{type:"control"}]];const it=e=>{const t=[];for(let n=0;n<e.length;n++)t[n]=e[n];return t},st=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");const t=Object(e);for(let e=1;e<arguments.length;e++){const n=arguments[e];if(null!=n)for(const e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}return t},lt=(e,t)=>{for(let n=0;n<e.length;n++)t(e[n],n)},at=e=>st({},e),ut=function(e){const t=[{}].concat(it(arguments));return st.apply(null,t)},ct=e=>t=>{e.forEach((e=>{"function"==typeof e?e(t):null!==e&&(e.current=t)}))},dt=(e,t)=>{let n=null;return function(){clearTimeout(n);const r=arguments,o=this;n=setTimeout((function(){e.apply(o,r)}),t)}};function ft(e,t,n){return(1===n?e:t).replace(/%d/g,n)}const pt=(e,t="interactive")=>{document.readyState===t?e():document.addEventListener("readystatechange",(()=>{document.readyState===t&&e()}))};let ht=0;const _t=()=>(ht++,ht),mt=new WeakMap,gt=e=>{if(!mt.has(e))if("loading"!==document.readyState)e(),mt.set(e,!0);else{const t=n=>{"loading"!==document.readyState&&(mt.has(e)||(e(),mt.set(e,!0)),document.removeEventListener("readystatechange",t))};document.addEventListener("readystatechange",t)}};function vt(e){return"control"===e.type?e.controlType:e.inputType}const bt=[];window.searchAndFilter.logs=bt;const yt=(e,t="info")=>{bt.push({message:e,type:t}),"error"===t?console.error("Search & Filter: "+e):"warning"===t?console.warn("Search & Filter: "+e):"notice"===t?console.log("Search & Filter: "+e):console.warn("Search & Filter: unknown log type: "+t+" - "+e),window.dispatchEvent(new CustomEvent("search-filter/log",{detail:{message:e,type:t}}))},wt=new WeakMap;function Ct(e,t,n=""){return Ae((()=>St(e,t,n)),[e])}function St(e,t,n=""){if(n)return n;const r=function(e){const t=wt.get(e)||0;return wt.set(e,t+1),t}(e);return t?`${t}-${r}`:r}function xt(e,t,n){return`search-filter-input-${vt(e)}-${t}-${n}`}Ct.displayName="useInstanceId";const Nt=({type:e,value:t,groupId:n,checked:r,onChange:o,isInteractive:i=!0,icon:s,iconPosition:l="left",iconProps:a,countLabel:u,children:c,className:d})=>{const f=`search-filter-checkable-button-${n}-${Ct(Nt)}`;return He("div",{className:"search-filter-checkable-button","data-option-value":t,children:[He("input",{type:e,id:f,name:`search-filter-input-group-${n}`,value:t,checked:r,onChange:e=>{i&&o(e)},readOnly:!i,tabIndex:i?void 0:-1,className:"search-filter-checkable-button__input"}),He("label",{htmlFor:f,className:tt()("search-filter-input-button","search-filter-checkable-button__label",d,r&&"search-filter-input-button--is-selected"),children:["left"===l&&s&&He(nt,{icon:s,...a}),c,u&&He("span",{className:"search-filter-input-button__count",children:u}),"right"===l&&s&&He(nt,{icon:s,...a})]})]})};var Et=window.searchAndFilter.frontend.packages.components;const Lt=()=>{},At=({value:e=[],options:t,onChange:n=Lt,multiple:r=!1,showLabel:o,isInteractive:i=!0,label:s,description:l,showDescription:a,inputClassName:u,labelProps:c,icon:d,iconPosition:f,iconProps:p,checkable:h=!1})=>{const _="search-filter-label-"+Ct(Et.Label),m=h?Nt:ot,g=Ct(At),v="search-filter-input-button-group-"+g,b=(t,o)=>{if(!i)return;let s=it(e);if(r)if(o)s.includes(t)||s.push(t);else{const e=s.indexOf(t);-1!==e&&s.splice(e,1)}else s=[t];n(s)},y={id:v,className:tt()("search-filter-input-button-group",u),role:r?"group":"radiogroup","aria-labelledby":_},w=`${v}-description`;return l&&"yes"===a&&(y["aria-describedby"]=w),He($,{children:[He(Et.Label,{showLabel:o,label:s,id:_,forId:v,isInteractive:i,as:"legend",...c}),He(Ze,{id:w,description:l,showDescription:a}),He("fieldset",{...y,children:t.map(((t,o)=>{const{label:s,value:l,countLabel:a,className:u}=t;let c=!1;c=0===e.length&&""===l||e.includes(l);let _={};return h?(_.type=r?"checkbox":"radio",_.onChange=e=>{b(l,e.target.checked)}):_.onClick=()=>{n([l])},He(m,{value:l,groupId:g,checked:c,onChange:e=>b(l,e.target.checked),isInteractive:i,icon:d,iconPosition:f,iconProps:p,countLabel:a,className:u,..._,children:s},o)}))})]})};At.templateVars=["labelUid",["options",{type:"list"}]];const Pt=le({});function kt(e,t){const n=function(e,t){const n=e.indexOf(t);return n===e.length-1?0:n+1}(e,t);return e[n]}const It=({options:e,showLabel:t,label:n,isInteractive:r=!0,type:o,checkableState:i,onUpdateOption:s,CheckableOptionComponent:l,description:a,showDescription:u,inputClassName:c,labelProps:d,showCount:f})=>{const p=Ct(Et.Label),h="search-filter-label-"+p,_="search-filter-input-"+o+"-"+Ct(It),m=`${_}-description`,g={id:_,className:c,role:"checkbox"===o?"group":"radiogroup","aria-labelledby":h};return a&&"yes"===u&&(g["aria-describedby"]=m),He(Pt.Provider,{value:{checkableState:i,onUpdateOption:s,groupId:p,CheckableOptionComponent:l},children:[He(Et.Label,{showLabel:t,label:n,id:h,forId:_,isInteractive:r,as:"legend",...d}),He(Et.Description,{description:a,showDescription:u,id:m}),He(Tt,{id:_,label:n,type:o,options:e,isInteractive:r,className:c,showCount:f,...g})]})};It.templateVars=["labelUid"];const Tt=({id:e,type:t,options:n,isInteractive:r,className:o,showCount:i,...s})=>{const{checkableState:l,onUpdateOption:a,groupId:u,CheckableOptionComponent:c}=ke(Pt);return He("fieldset",{id:e,className:tt()("search-filter-input-group",o),...s,children:n.map(((e,n)=>{let o="false";""===e.value&&0===Object.keys(l).length?o="true":l[e.value]&&(o=l[e.value]);const s={groupId:u,key:e.value,option:e,type:t,onUpdate:a,checkedState:o,isInteractive:r,countLabel:i?e.countLabel:null};return He(c,{...s,showCount:i},e.value)}))})};Tt.templateVars=["labelUid",["options",{type:"list",depth:10,child:{type:"object",props:["value","label",{name:"options",type:"list"}]}}]];const Dt=({children:e})=>He("div",{className:"search-filter-input-group",children:e}),Ot={},Ft={isVisible:!1,position:""},qt=(e,t)=>{switch(t.type){case"TOGGLE":{const n=t.name??"popover";let r={...Ft};e[n]&&(r=e[n]);const o=t?.show??!r.isVisible,i=ut(r,{isVisible:o});return ut(e,{[n]:i})}case"SET_POSITION":{const n=t.name??"popover";let r={...Ft};e[n]&&(r=e[n]);const o=ut(r,{position:t.position});return ut(e,{[n]:o})}default:return e}},$t=le(),Rt=le(),Ut=({children:e})=>{const[t,n]=Se(qt,Ot),r=Pe((e=>t[e]?t[e]:{...Ft}),[t]);return He($t.Provider,{value:{get:r},children:He(Rt.Provider,{value:n,children:e})})},Vt=()=>ke($t),Mt=()=>ke(Rt);function Ht(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function Bt(e,t){this.props=e,this.context=t}(Bt.prototype=new R).isPureReactComponent=!0,Bt.prototype.shouldComponentUpdate=function(e,t){return Ht(this.props,e)||Ht(this.state,t)};var jt=m.__b;m.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),jt&&jt(e)},"undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref");var Wt=m.__e;m.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);Wt(e,t,n,r)};var Kt=m.unmount;function Gt(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=function(e,t){for(var n in t)e[n]=t[n];return e}({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Gt(e,t,n)}))),e}function zt(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return zt(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Qt(){this.__u=0,this.o=null,this.__b=null}function Yt(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Xt(){this.i=null,this.l=null}m.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Kt&&Kt(e)},(Qt.prototype=new R).__c=function(e,t){var n=t.__c,r=this;null==r.o&&(r.o=[]),r.o.push(n);var o=Yt(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(l):l())};n.__R=s;var l=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=zt(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.o.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},Qt.prototype.componentWillUnmount=function(){this.o=[]},Qt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Gt(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&O($,null,e.fallback);return o&&(o.__u&=-33),[O($,null,t.__a?null:e.children),o]};var Jt=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function Zt(e){return this.getChildContext=function(){return e.context},e.children}function en(e){var t=this,n=e.h;t.componentWillUnmount=function(){oe(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),t.v||(t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(e){this.childNodes.push(e),t.h.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.h.insertBefore(e,n)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.h.removeChild(e)}}),oe(O(Zt,{context:t.context},e.__v),t.v)}function tn(e,t){var n=O(en,{__v:e,h:t});return n.containerInfo=t,n}(Xt.prototype=new R).__a=function(e){var t=this,n=Yt(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Jt(t,e,r)):o()};n?n(i):i()}},Xt.prototype.render=function(e){this.i=null,this.l=new Map;var t=K(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},Xt.prototype.componentDidUpdate=Xt.prototype.componentDidMount=function(){var e=this;this.l.forEach((function(t,n){Jt(e,n,t)}))};var nn="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,rn=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,on=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,sn=/[A-Z0-9]/g,ln="undefined"!=typeof document,an=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};R.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(R.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var un=m.event;function cn(){}function dn(){return this.cancelBubble}function fn(){return this.defaultPrevented}m.event=function(e){return un&&(e=un(e)),e.persist=cn,e.isPropagationStopped=dn,e.isDefaultPrevented=fn,e.nativeEvent=e};var pn={enumerable:!1,configurable:!0,get:function(){return this.class}},hn=m.vnode;m.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={},o=-1===n.indexOf("-");for(var i in t){var s=t[i];if(!("value"===i&&"defaultValue"in t&&null==s||ln&&"children"===i&&"noscript"===n||"class"===i||"className"===i)){var l=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===s?s="":"translate"===l&&"no"===s?s=!1:"o"===l[0]&&"n"===l[1]?"ondoubleclick"===l?i="ondblclick":"onchange"!==l||"input"!==n&&"textarea"!==n||an(t.type)?"onfocus"===l?i="onfocusin":"onblur"===l?i="onfocusout":on.test(i)&&(i=l):l=i="oninput":o&&rn.test(i)?i=i.replace(sn,"-$&").toLowerCase():null===s&&(s=void 0),"oninput"===l&&r[i=l]&&(i="oninputCapture"),r[i]=s}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=K(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=K(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",pn)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=nn,hn&&hn(e)};var _n=m.__r;m.__r=function(e){_n&&_n(e),e.__c};var mn=m.diffed;m.diffed=function(e){mn&&mn(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value)};const gn=(e,t=1e3)=>{const n=Ee();return xe((()=>{n.current=e}),[e]),Ae((()=>dt((()=>{n.current?.()}),t)),[])},vn=()=>{},bn=({name:e="popup",htmlElement:t="div",closeOnScroll:n=!1,closeOnClickOutside:r=!0,updateOnScroll:o=!0,matchWidth:i=!1,onClickOutside:s=vn,onShow:l=vn,onHide:a=vn,node:u="inline",className:c,elementProps:d,children:f,containerRef:p,sourceRef:h,id:_,isAriaModal:m,ariaLabel:g,role:v,dialogMessage:b,showDialogMessage:y,overidePopoverPositions:w})=>{const{isVisible:C,position:S}=Vt().get(e),x=Mt();let N=u;window.searchAndFilter?.admin?.popoverNode&&(N=window.searchAndFilter.admin.popoverNode),window.searchAndFilter?.admin?.blockEditor?.popoverNode&&(N=window.searchAndFilter.admin.popoverNode),window.searchAndFilterData?.popoverNode&&(N=window.searchAndFilterData.popoverNode);const E=h.current?.ownerDocument||document,L=Pe((t=>{x({type:"SET_POSITION",name:e,position:t})}),[e,x]),A="search-filter-component-popover",[P,k]=Ce({}),[I,T]=Ce(!1);let D=Ee(null);p&&(D=p);const O=Pe((()=>{x({type:"TOGGLE",name:e,show:!1}),a()}),[e,x,a]),F=Ee(null),q=Ee(null),$=Pe(((e="auto")=>{if(!D.current||!h.current)return;let t=e,n=null;if("function"==typeof w){const{position:e,style:r}=w(h.current,i,N,E);t=e,n=r}null===n&&("auto"===e&&(t=((e,t,n="auto",r=document)=>{const o=t.getBoundingClientRect(),i=e.getBoundingClientRect();let s="bottom";if("auto"===n){const t=window.getComputedStyle(e).marginTop,n=parseFloat(t);let l=0;l="px"===t.replace(n,"")?n:0;const a=o.top+o.height+i.height+l,u=o.top-i.height+l;a>(window.innerHeight||r.documentElement.clientHeight)&&(s="top",u<0&&(s="bottom"))}else s=n;return s})(D.current,h.current,e,E)),n=((e,t,n,r=!1,o=document,i="inline")=>{const s=t.getBoundingClientRect(),l=e.getBoundingClientRect(),a={};if("inline"===i){const i=((e,t)=>{let n=0,r=0,o=e;for(;o&&o!==t;)n+=o.offsetTop||0,r+=o.offsetLeft||0,o=o.offsetParent;return{top:n,left:r}})(t,e.offsetParent||o.body);a.position="absolute",a.left=i.left+"px",a.top="top"===n?i.top-l.height+"px":i.top+s.height+"px",r&&(a.width=s.width+"px");const u=wn(t);return a.zIndex=u,a}let u=t,c=[];const d=o.documentElement,f=o.body,p=window.getComputedStyle(d),h=window.getComputedStyle(f),_="static"!==p.position&&parseFloat(p.marginTop)||0,m="static"!==p.position&&parseFloat(p.marginLeft)||0,g=_+("static"!==h.position&&parseFloat(h.marginTop)||0),v=m+("static"!==h.position&&parseFloat(h.marginLeft)||0);for(;u&&u!==o.body;)"visible"!==getComputedStyle(u).overflow&&c.push(u),u=u.parentElement;let b=s;c.forEach((e=>{const t=e.getBoundingClientRect();b={top:Math.max(s.top,t.top),left:Math.max(s.left,t.left),bottom:Math.min(s.bottom,t.bottom),right:Math.min(s.right,t.right)}}));const y=window.scrollX||window.pageXOffset,w=window.scrollY||window.pageYOffset,C=b.left+y-v,S=b.top+w-g;b.right,b.bottom,"body"===i&&("top"===n?(a.left=C+"px",a.top=S-l.height+"px",a.position="absolute"):(a.left=s.left+y-v+"px",a.top=s.top+s.height+w-g+"px",a.position="absolute")),r&&(a.width=s.width+"px");const x=wn(t);return a.zIndex=x,a})(D.current,h.current,t,i,E,N)),F.current=t,L(t),T(!0),k(n)}),[i,L,T,k,w,D,h,E]),R=Pe((e=>{if(C&&h.current&&e.target.contains(h.current))if(n)O();else if(!n&&D.current&&h.current){let e="auto";!1===o&&(e=F.current),$(e)}}),[C,n,o,$,h,O]);gn((()=>{$("auto")}),1),Ne((()=>{if(!D.current||!h.current)return;const e=new ResizeObserver((e=>{window.requestAnimationFrame((()=>{$("auto")}))}));if(D.current,h.current){e.observe(h.current);let t=h.current?.parentNode;const n=[window.Node.DOCUMENT_NODE,window.Node.DOCUMENT_TYPE_NODE,window.Node.DOCUMENT_FRAGMENT_NODE];for(;t&&!n.includes(t.nodeType);){if(t&&t.nodeType===window.Node.ELEMENT_NODE)try{e.observe(t)}catch(e){}t=t.parentNode}}return()=>{if(D.current,h.current){e.unobserve(h.current);let t=h.current?.parentNode;for(;t&&t!==E.body;)t.nodeType===window.Node.ELEMENT_NODE&&e.unobserve(t),t=t.parentNode}}}),[D,h.current]);const U=Ee(null);Ne((()=>{U.current=window.innerWidth}),[]),xe((()=>(q.current=C,C?window.addEventListener("scroll",R,!0):window.removeEventListener("scroll",R,!0),()=>{window.removeEventListener("scroll",R,!0)})),[C,R]),xe((()=>{const e=e=>{q.current&&U.current!==window.innerWidth&&(U.current=window.innerWidth,O())};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[O]),xe((()=>{const e=e=>{h.current&&e.detail===h.current&&$("auto")};return window.addEventListener("searchFilterComponentDomUpdate",e),()=>{window.removeEventListener("searchFilterComponentDomUpdate",e)}}),[$]),Ne((()=>{$("auto"),C&&l(h)}),[C,$,l]),Ne((()=>{if(!r)return;const e=e=>{const t=e.target.closest(`.${A}`);!h.current||h.current.contains(e.target)||t||(s(),O())};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[h,O,r,s]);const V=["search-filter-base",A,`${A}--position-${S}`,(!C||!I)&&`${A}--hidden`,c],M=He(t,{style:P,id:_,className:tt()(V),ref:D,"aria-modal":m?"true":void 0,role:v,"aria-label":g||void 0,...d,children:[f,b&&He("div",{"aria-live":"polite",className:"search-filter-component-popup__dialog-message"+(y?"":" search-filter-component-popup__dialog-message-hidden"),children:b})]});return"inline"===N?M:tn(M,E.body)},yn=(e="popover")=>{const t=Vt().get(e),n=Mt();return{isVisible:t.isVisible,toggle:t=>{const r={type:"TOGGLE",name:e};void 0!==t&&(r.show=t),n(r)},position:t.position}},wn=e=>{let t=1e3;for(;e;){const n=window.getComputedStyle(e),r=parseInt(n.zIndex,10);if(r&&0!==r&&r>=t){t=r+1;break}e=e.parentElement}return t},Cn=["false","true"],Sn=({type:e,options:t,value:n,onChange:r,showLabel:o,label:i,isInteractive:s,...l})=>{const[a,u]=function(e,t){const[n,r]=Ce({});return Ne((()=>{e&&e.length>0?r({[e[0]]:"true"}):r({})}),[e]),[n,e=>{const r=n[e]??"false",o=kt(Cn,r);t("true"===o?[e]:[])}]}(n,r);return He(It,{type:"radio",options:t,value:n,onChange:r,checkableState:a,onUpdateOption:u,CheckableOptionComponent:xn,showLabel:o,label:i,isInteractive:s,...l})},xn=({option:e,type:t,onUpdate:n,isInteractive:r=!0,checkedState:o="false",groupId:i,countLabel:s,showCount:l})=>{const{label:a,value:u,options:c,id:d}=e,f=Ct(xn),p=xt(t,i,d??f),h="true"===o,_="search-filter-input-"+t,m=h?" "+_+"--is-active":"",g=c?.length>0;let v="";"true"===o&&(v="-checked");const b=`#sf-svg-${t}${v}`;return He("div",{className:_+m,"data-option-value":u,children:[He("input",{id:p,type:t,readOnly:!r,tabIndex:r?null:-1,className:"search-filter-input-"+t+"__input",onChange:e=>{e.preventDefault(),n(u)},checked:h,name:`search-filter-input-group-${i}`,"aria-checked":o,value:u}),He("label",{htmlFor:p,className:"search-filter-input-"+t+"__container",onClick:e=>{r||e.preventDefault()},children:[He("span",{className:"search-filter-input-"+t+"__control","aria-hidden":"true",children:He("svg",{children:He("use",{xlinkHref:b})})}),He("span",{className:"search-filter-input-"+t+"__label",children:[a,s?He("span",{className:"search-filter-input-"+t+"__count",children:s}):null]})]}),g&&He(Tt,{type:t,options:c,isInteractive:r,showCount:l})]})};xn.templateVars=["value","label","uid",["hasChildren",{type:"control"}],"checkedState","activeClass","svgLink",["options",{type:"list",depth:10,child:{type:"object",props:["value","label",{name:"options",type:"list"}]}}]];const Nn=({className:e,isFocused:t,onClick:n,cRef:r,children:o})=>He($,{children:He("div",{className:tt()({"search-filter-input-text":!0,"search-filter-input-text--focused":t,[e]:!!e}),onClick:n,ref:r,children:o})}),En=()=>{},Ln={},An=({className:e,value:t="",icon:n,iconPosition:r="left",hasClear:o=!1,placeholder:i,labelProps:s,showLabel:l,label:a,id:u,isInteractive:c=!0,focusStyles:d=!0,children:f,onChange:p=En,onFocus:h=En,onBlur:_=En,onClick:m=En,onClear:g=En,onEnter:v=En,inputRef:b,controlRef:y,describedBy:w,onClickIcon:C,inputProps:S=Ln,inputClassName:x,iconProps:N=Ln,description:E,showDescription:L})=>{const A=Ee(null),P=b||A,[k,I]=Ce(!1),T=Ct(An),D=u??"search-filter-input-text-"+T,O="search-filter-label-"+Ct(Et.Label),F=""!==t;Ye(P,D);const q=Qe(),R=()=>{q({type:"SET",id:D}),d&&I(!0)},U=n?He(nt,{className:"search-filter-input-text__icon",icon:n,onClick:e=>{c&&(C?C(e):(R(),m(e)))},isInteractive:c&&C,"aria-controls":S.name?S.name:void 0,"aria-hidden":!S.name||void 0,...N}):null;return He($,{children:[He(Et.Label,{showLabel:l,label:a,id:O,forId:D,isInteractive:c,...s}),He(Ze,{description:E,showDescription:L}),He(Nn,{isFocused:k,className:tt()("search-filter-input-text",e),cRef:y,onClick:()=>{c&&R()},children:[U&&"left"===r?U:null,He(Pn,{id:D,"aria-labelledby":"yes"===l?O:null,"aria-label":"yes"===l?null:a,className:tt()("search-filter-input-text__input",x),autoComplete:"off",value:t,onInput:e=>{p(c?e.target.value:"")},onKeyDown:e=>{c&&"Enter"===e.key&&v(e)},readOnly:!c,tabIndex:c?null:-1,onFocus:()=>{c&&(d&&I(!0),h())},onBlur:()=>{c&&(d&&I(!1),_())},inputRef:P,onClick:e=>{c&&m(e)},placeholder:i,"aria-describedby":w?w.id:void 0,...S}),w&&He("span",{className:"search-filter-input-text__description",id:w.id,children:w.content}),f,o&&F&&He(nt,{className:"search-filter-input-text__clear-button",icon:"clear",onClick:function(){c&&(R(),g!==En?g():p(""))},isInteractive:!0,isDestructive:!0,label:"Clear input"}),U&&"right"===r?U:null]})]})};An.templateVars=["placeholder","uid","labelUid"];const Pn=e=>{const t=at(e),n=e.value,r=e.inputRef;return delete t.value,delete t.inputRef,He("input",{type:"text",value:n,ref:r,...t})};Pn.templateVars=["value"];var kn=window.searchAndFilter.frontend.packages.hooks,In=window.searchAndFilter.frontend.packages.utils;const Tn=e=>{const{id:t,icon:n,inputRef:r,controlRef:o,label:i,showLabel:s,hasClear:l,onChange:a,value:u,placeholder:c,readOnly:d,onEnter:f,onClick:p,isInteractive:h,inputProps:_,controlProps:m,isLoading:g,popupVisible:v,inputClassName:b,...y}=e,{className:w,...C}=m,S=Ae((()=>({..._,...C})),[_,C]);return He(Et.TextControl,{id:t,icon:n,inputRef:r,controlRef:o,label:i,showLabel:s,hasClear:(!v||!g)&&l,onChange:a,className:tt()("search-filter-component-autocomplete-control",w,b),value:u,placeholder:c,readOnly:d,onEnter:f,onClick:p,focusStyles:!1,isInteractive:h,inputProps:S,...y,children:g&&v?He(Et.Icon,{icon:"spinner-circle",className:"search-filter-component-autocomplete-control__loading-icon"}):null})},Dn=e=>e.apiUrl?He(Fn,{...e}):He(On,{...e}),On=e=>{const{isLoading:t}=e,n="search-filter-component-combobox-base",r=He("div",{"aria-live":"polite",role:"status",className:tt()(`${n}__listbox-option`,`${n}__listbox-option--disabled`),children:e.loadingText??"Looking for suggestions…"});return He(Et.ComboboxBase,{InputComponent:Tn,hideSuggestionsOnEmpty:!0,listboxContent:t?r:null,...e})};Dn.templateVars=["placeholder","uid","labelUid"];const Fn=e=>{const{apiUrl:t,apiArgs:n,useCache:r}=e,{suggestions:o,isLoading:i}=qn(t,e.value??"",n,r);return He(On,{...e,options:o,isLoading:i})},qn=(e,t,n,r=!0)=>{const[o,i]=Ce([]),[s,l]=Ce(!1),a=(0,kn.useDebounce)((()=>{(()=>{const{fieldId:r,attributes:o}=n,s={method:"GET",headers:{"Content-Type":"application/json"}};let a=e,u={};window.searchAndFilterData?.suggestionsNonce&&(u={nonce:window.searchAndFilterData.suggestionsNonce}),(e=>e&&0!==e&&""!==e)(r)?a=((e,t)=>{const n=new URL(e),r=new URLSearchParams(n.search);return Object.keys(t).forEach((e=>{r.append(e,t[e])})),n.search=r,n.toString()})(e,{search:t,fieldId:r,...u}):(s.method="POST",s.body=JSON.stringify({search:t,attributes:o,...u}),window.searchAndFilter?.admin?.restNonce&&(s.headers["X-WP-Nonce"]=window.searchAndFilter.admin.restNonce)),fetch(a,s).then((e=>e.json())).then((e=>(((e,t)=>{i((n=>({...n,[e]:t})))})(t,e),l(!1),e))).catch((e=>{l(!1),"AbortError"!==e.name&&(0,In.log)("Unable to fetch suggestions, message: "+e.message,"error")}))})()}),400);return Ne((()=>{if(""===t)return;if(o[t]&&r)return;const e=new AbortController;return l(!0),a(),()=>{e.abort()}}),[t]),""===t?{suggestions:[],isLoading:!1}:{suggestions:o[t],isLoading:s}},$n=()=>{},Rn=({showLabel:e,label:t,id:n,forId:r,isInteractive:o=!0,isToggle:i=!1,fieldIsOpen:s=!0,onClick:l=$n,as:a="div"})=>{const u=(0,Et.useFocusDispatch)();if("yes"!==e)return null;const c=i&&o;return He(a,{className:"search-filter-label",onClick:()=>{o&&(l(),i||u({type:"SET",id:r}))},id:n,tabIndex:c?"0":null,role:i?"button":null,"aria-expanded":i?s:null,"aria-controls":i?r:null,onKeyDown:c?e=>{"Enter"===e.key?l():" "===e.key&&(e.preventDefault(),l())}:null,children:[t,i?He(Et.Icon,{icon:"arrow-down",className:tt()(["search-filter-label__toggle-icon",s?"search-filter-label__toggle-icon--up":"search-filter-label__toggle-icon--down"])}):null]})};Rn.templateVars=["label",["showLabel",{type:"control"}]];var Un=le({});const Vn=(e,t)=>e[t]??null,Mn=e=>({storeKey:t,...n})=>{const r=ke(Un),[o,i]=Ce(Vn(r.getState(),t)),s=()=>{const e=Vn(r.getState(),t);e!==o&&i(e)};xe((()=>(r.subscribe(s),s(),()=>{r.unsubscribe(s)})),[]);const l=Vn(r.getState(),t);return He(e,{...l,...n})};Mn.displayName="withStoreKey";const Hn=e=>tt()("search-filter-field__input",e),Bn=()=>window.innerWidth<768||window.innerHeight<768,jn=()=>window.searchAndFilterData?.urlPrefix??"_",Wn=[],Kn=(e,t,n)=>Ae((()=>{if("yes"!==t)return e??Wn;let r=Array.isArray(e)?[...e]:Wn;return r.unshift({label:n,value:""}),r}),[e,t,n]),Gn={},zn=Mn((e=>{const{values:t,attributes:n,options:r,onChange:o,onClear:i,listboxClassName:s,listboxProps:l,isInteractive:a,id:u,closeListboxOnScroll:c=!1,moveListboxOnScroll:d=!1,extensions:f=Gn}=e,p=Kn(r,n?.inputOptionsAddDefault,n?.inputOptionsDefaultLabel),{multiple:h,inputScale:_,placeholder:m,label:g,showLabel:v,showCount:b,inputNoResultsText:y,inputEnableSearch:w,description:C,showDescription:S,stylesId:x,type:N,inputType:E,dropdownAttachment:L,inputBorderDivider:A="yes"}=n;return He(Et.ComboboxControl,{value:t,multiple:"yes"===h,scale:_,options:p,pageAmount:5,onChange:o,onClear:i,closeListboxOnScroll:c,moveListboxOnScroll:d,placeholder:m,label:g,showLabel:v,showCount:b,noResultsText:y,listboxClassName:tt()([s,"search-filter-field__popup",`search-filter-field__popup--id-${u}`,`search-filter-style--id-${x}`,`search-filter-style--${N}-${E}`]),listboxAttachment:L,isInteractive:a,description:C,showDescription:S,showDivider:"yes"===A,listboxProps:l,...f,inputClassName:Hn(f.inputClassName),enableSearch:"no"!==w&&!Bn()})})),Qn=Mn((e=>{const{values:t,attributes:n,options:r,onChange:o,isInteractive:i,extensions:s={}}=e,l=Kn(r,n?.inputOptionsAddDefault,n?.inputOptionsDefaultLabel);return He(Sn,{value:t,options:l,onChange:o,type:n.inputType,label:n.label,showLabel:n.showLabel,isInteractive:i,description:n.description,showDescription:n.showDescription,showCount:n.showCount,...s,inputClassName:Hn(s.inputClassName)})})),Yn=["false","true"],Xn=({type:e,options:t,value:n,onChange:r,showLabel:o,label:i,isInteractive:s,...l})=>{const[a,u]=function(e,t){const[n,r]=Ce({});return Ne((()=>{if(e&&e.length>0){const t={};e.forEach((e=>{t[e]="true"})),console.log("NEW STATE",t),r(t)}else r({})}),[e]),[n,r=>{const o=n[r]??"false",i=kt(Yn,o),s=[...e||[]];if("true"===i)-1===s.indexOf(r)&&s.push(r);else{const e=s.indexOf(r);-1!==e&&s.splice(e,1)}t(s)}]}(n,r);return He(It,{type:"checkbox",options:t,value:n,onChange:r,checkableState:a,onUpdateOption:u,CheckableOptionComponent:Jn,showLabel:o,label:i,isInteractive:s,...l})},Jn=({option:e,type:t,onUpdate:n,isInteractive:r=!0,checkedState:o="false",groupId:i,countLabel:s,showCount:l})=>{const{label:a,value:u,options:c,id:d}=e,f=Ct(Jn),p=xt(t,i,d??f),h="true"===o,_="search-filter-input-"+t,m=h?" "+_+"--is-active":"",g=c?.length>0;let v="";"true"===o&&(v="-checked");const b=`#sf-svg-${t}${v}`;return He("div",{className:_+m,"data-option-value":u,children:[He("input",{id:p,type:t,readOnly:!r,tabIndex:r?null:-1,className:"search-filter-input-"+t+"__input",onChange:e=>{e.preventDefault(),n(u)},checked:h,name:`search-filter-input-group-${i}`,"aria-checked":o,value:u}),He("label",{htmlFor:p,className:"search-filter-input-"+t+"__container",onClick:e=>{r||e.preventDefault()},children:[He("span",{className:"search-filter-input-"+t+"__control","aria-hidden":"true",children:He("svg",{children:He("use",{xlinkHref:b})})}),He("span",{className:"search-filter-input-"+t+"__label",children:[a,s?He("span",{className:"search-filter-input-"+t+"__count",children:s}):null]})]}),g&&He(Tt,{type:t,options:c,isInteractive:r,showCount:l})]})};Jn.templateVars=["value","label","uid",["hasChildren",{type:"control"}],"checkedState","activeClass","svgLink",["options",{type:"list",depth:10,child:{type:"object",props:["value","label",{name:"options",type:"list"}]}}]];const Zn={},er=Mn((e=>{const{values:t,attributes:n,options:r,onChange:o,isInteractive:i,extensions:s=Zn}=e,{inputCheckboxTristate:l}=n;let a=Et.CheckboxControl;return"no"===l&&(a=Xn),He(a,{value:t,options:r,onChange:o,type:n.inputType,label:n.label,showLabel:n.showLabel,isInteractive:i,hierarchical:n.taxonomyHierarchical,description:n.description,showDescription:n.showDescription,showCount:n.showCount,...s,inputClassName:Hn(s.inputClassName)})}));function tr(e,t){for(var n in t)e[n]=t[n];return e}function nr(e){var t=[];function n(e){for(var n=[],r=0;r<t.length;r++)t[r]===e?e=null:n.push(t[r]);t=n}function r(n,r,o){e=r?n:tr(tr({},e),n);for(var i=t,s=0;s<i.length;s++)i[s](e,o)}return e=e||{},{action:function(t){function n(e){r(e,!1,t)}return function(){for(var r=arguments,o=[e],i=0;i<arguments.length;i++)o.push(r[i]);var s=t.apply(this,o);if(null!=s)return s.then?s.then(n):n(s)}},setState:r,subscribe:function(e){return t.push(e),function(){n(e)}},unsubscribe:n,getState:function(){return e}}}var rr=le({});const or={setAttributes(e,t,n){if(void 0===e[t])return e;const r=at(e),o=at(e[t]);return o.attributes=ut(o.attributes,n),r[t]=o,r},setProps(e,t,n){if(void 0===e[t])return e;const r=at(e),o=ut(e[t],n);return r[t]=o,r},setProp(e,t,n,r){if(void 0===e[t])return e;const o=at(e),i=ut(e[t],{[n]:r});return o[t]=i,o},setQuery(e,t,n){const r=at(e);return r[t]=at(n),r},removeQuery(e,t){const n=at(e);return n[t]&&delete n[t],n}},ir=nr({}),sr=(((e,t)=>{"function"==typeof e&&(e=e(t));const n={};for(const r in e)n[r]=t.action(e[r])})(or,ir),new WeakMap);sr.set(ir,or);const lr=function(e,t,n){const r=it(arguments);r.splice(0,2),r.unshift(t.getState());const o=sr.get(t)[e].apply(null,r);t.setState(o,!0)},ar=function(e){const t=it(arguments);t.splice(1,0,ir),lr.apply(null,t)},ur={},cr=(e,t)=>e[t]??ur,dr=(e,t)=>{const n=ke(rr),r=cr(n.getState(),e),[o,i]=Ce(r[t]),s=()=>{const r=cr(n.getState(),e);r[t]!==o&&i(r[t])};return Ne((()=>(n.subscribe(s),()=>{n.unsubscribe(s)})),[]),cr(n.getState(),e)[t]??ur},fr=e=>dr(e,"actions"),pr=()=>{},hr=Mn((e=>{const{values:t,attributes:n,onChange:r,onClear:o,isInteractive:i,queryStoreKey:s,extensions:l={},icon:a="search"}=e,{submit:u=pr}=fr(s),c=t?t[0]:"";return He(An,{value:c,onChange:e=>{r([e])},onClear:o,icon:"yes"===n.inputShowIcon?a:null,iconPosition:n.inputIconPosition,hasClear:!0,placeholder:n.placeholder,label:n.label,showLabel:n.showLabel,isInteractive:i,onEnter:()=>{u()},description:n.description,showDescription:n.showDescription,...l,className:Hn(l.inputClassName)})})),_r=Mn((e=>{const{values:t,options:n,onChange:r,isInteractive:o,type:i,attributes:s={},extensions:l={}}=e,{inputOptionsAddDefault:a,inputOptionsDefaultLabel:u,label:c,showLabel:d,multiple:f,description:p,showDescription:h}=s,_=Kn(n,a,u);return He(At,{value:t,options:_,onChange:r,type:i,label:c,showLabel:d,multiple:"yes"===f,isInteractive:o,description:p,showDescription:h,...l,inputClassName:Hn(l.inputClassName),checkable:!0})})),mr=Mn((e=>{const{values:t,attributes:n,onChange:r,onClear:o,calendarClassName:i,isInteractive:s,id:l,extensions:a={},icon:u="event",hasClear:c=!0,flatpickrOptions:d}=e,f=t[0]?t[0]:"";return He(Et.DatePickerControl,{value:f,onChange:e=>{r([e])},onClear:o,icon:"yes"===n.inputShowIcon?u:null,hasClear:c,placeholder:n.placeholder,label:n.label,showLabel:n.showLabel,dateFormat:"custom"===n.dateDisplayFormat?n.dateDisplayFormatCustom:n.dateDisplayFormat,calendarClassName:tt()(["search-filter-base",i,"search-filter-field__popup",`search-filter-field__popup--id-${l}`,`search-filter-style--id-${n.stylesId}`,`search-filter-style--${n.type}-${n.inputType}`]),isInteractive:s,description:n.description,showDescription:n.showDescription,flatpickrOptions:d,...a,inputClassName:Hn(a.inputClassName)})})),gr=()=>{},vr=Mn((e=>{const{attributes:t,queryStoreKey:n,icon:r,isInteractive:o}=e,{submit:i=gr}=fr(n);return He(ot,{onClick:i,icon:r,label:t.label,showLabel:t.showLabel,isInteractive:o,className:"search-filter-field__input"})})),br=()=>{},yr=Mn((e=>{const{attributes:t,queryStoreKey:n,icon:r,isInteractive:o}=e,{reset:i=br}=fr(n);return He(ot,{onClick:i,icon:r,label:t.label,showLabel:t.showLabel,isInteractive:o,className:"search-filter-field__input"})})),wr={},Cr=Mn((e=>{const{values:t,attributes:n,onChange:r,listboxClassName:o,isInteractive:i,id:s,closeListboxOnScroll:l=!1,moveListboxOnScroll:a=!1,listboxProps:u=wr,extensions:c={},options:d=[]}=e;return He(Et.ComboboxControl,{value:t,multiple:"yes"===n.multiple,scale:n.inputScale,options:d,pageAmount:5,onChange:r,closeListboxOnScroll:l,moveListboxOnScroll:a,placeholder:n.placeholder,label:n.label,showLabel:n.showLabel,showCount:n.showCount,listboxClassName:tt()([o,"search-filter-field__popup",`search-filter-field__popup--id-${s}`,`search-filter-style--id-${n.stylesId}`,`search-filter-style--${n.type}-${n.controlType}`]),listboxProps:u,isInteractive:i,description:n.description,showDescription:n.showDescription,...c,inputClassName:Hn(c.inputClassName),enableSearch:!Bn()})})),Sr=Mn((e=>{const{values:t,attributes:n,onChange:r,setValuesAndLabels:o,listboxClassName:i,isInteractive:s,id:l,closeListboxOnScroll:a=!1,moveListboxOnScroll:u=!1,extensions:c={},options:d}=e;return He(Et.ComboboxControl,{value:t,multiple:"yes"===n.multiple,scale:n.inputScale,options:d,pageAmount:5,onChange:r,closeListboxOnScroll:a,moveListboxOnScroll:u,placeholder:n.placeholder,label:n.label,showLabel:n.showLabel,showCount:n.showCount,listboxClassName:tt()([i,"search-filter-field__popup",`search-filter-field__popup--id-${l}`,`search-filter-style--id-${n.stylesId}`,`search-filter-style--${n.type}-${n.controlType}`]),isInteractive:s,description:n.description,showDescription:n.showDescription,...c,inputClassName:Hn(c.inputClassName),enableSearch:!Bn()})}));var xr=window.searchAndFilter.frontend.packages.fields;const Nr=()=>{},Er=Mn((e=>{const{values:t,attributes:n,options:r,onChange:o,onClear:i,closeListboxOnScroll:s=!1,moveListboxOnScroll:l=!1,listboxClassName:a,isInteractive:u=!0,connectedData:c,autocompleteUseCache:d,queryStoreKey:f,id:p,icon:h="search",extensions:_={}}=e,m=t?t[0]:"",{submit:g=Nr}=fr(f);let v="";c&&(v=c.autocompletApiUrl);const b=Ee(null),{autoSubmit:y,autoSubmitDelay:w,autoSubmitOnType:C,description:S,showDescription:x,inputLoadingText:N,inputNoResultsText:E,inputSingularResultsCountText:L,inputPluralResultsCountText:A}=n,P=()=>{b.current&&clearTimeout(b.current),g()},k=p&&0!==p&&""!==p;return He(Et.AutocompleteControl,{value:m,multiple:"yes"===n.multiple,scale:n.scale,options:r,pageAmount:5,onChange:e=>{o([e]),"yes"===y&&"yes"===C&&(b.current&&clearTimeout(b.current),b.current=setTimeout((()=>{g()}),w))},onClear:()=>{i&&i(),"yes"===y&&P()},onSelectOption:e=>{o([e.value]),"yes"===y&&P()},closeListboxOnScroll:s,moveListboxOnScroll:l,placeholder:n.placeholder,label:n.label,showLabel:n.showLabel,listboxClassName:tt()([a,"search-filter-field__popup",`search-filter-field__popup--id-${p}`,`search-filter-style--id-${n.stylesId}`,`search-filter-style--${n.type}-${n.inputType}`]),isInteractive:u,apiUrl:v,apiArgs:k?{fieldId:p}:{attributes:n},icon:"yes"===n.inputShowIcon?h:null,onEnter:()=>{g()},useCache:d,description:S,showDescription:x,loadingText:N,noResultsText:E,singularResultsCountText:L,pluralResultsCountText:A,..._,inputClassName:(0,xr.__getInputClassName)(_.inputClassName)})})),Lr=[],Ar=(e,t)=>e[jn()+t]??Lr,Pr=e=>{const{rangeValuePrefix:t,rangeValueSuffix:n,rangeDecimalPlaces:r,rangeThousandCharacter:o,rangeDecimalCharacter:i,rangeMin:s,rangeMax:l,rangeStep:a}=e;return{rangeValuePrefix:t,rangeValueSuffix:n,rangeDecimalPlaces:r,rangeThousandCharacter:o,rangeDecimalCharacter:i,rangeMin:s,rangeMax:l,rangeStep:a}},kr=Mn((e=>{const{values:t,attributes:n,onChange:r,urlName:o,isInteractive:i,extensions:s={},queryStoreKey:l}=e,a=dr(l,"currentValues"),u=Ar(a,o);return He(Et.RangeSliderControl,{values:t,appliedValues:u,onChange:r,label:n.label,showLabel:n.showLabel,isInteractive:i,description:n.description,showDescription:n.showDescription,...s,...Pr(n),inputClassName:(0,xr.__getInputClassName)(s.inputClassName),separator:n.rangeSeparator,textPosition:n.rangeSliderTextPosition,showReset:n.rangeSliderShowReset,resetPosition:n.rangeSliderResetPosition})})),Ir=Mn((e=>{const{values:t,attributes:n,onChange:r,isInteractive:o,listboxClassName:i,listboxProps:s,id:l,extensions:a={},queryStoreKey:u,urlName:c}=e,d=dr(u,"currentValues"),f=Ar(d,c);return He(Et.RangeSelectControl,{values:t,appliedValues:f,onChange:r,label:n.label,showLabel:n.showLabel,isInteractive:o,description:n.description,showDescription:n.showDescription,separator:n.rangeSeparator,listboxClassName:tt()([i,"search-filter-field__popup",`search-filter-field__popup--id-${l}`,`search-filter-style--id-${n.stylesId}`,`search-filter-style--${n.type}-${n.inputType}`]),listboxProps:s,...a,...Pr(n),inputClassName:(0,xr.__getInputClassName)(a.inputClassName)})})),Tr=Mn((e=>{const{values:t,attributes:n,onChange:r,isInteractive:o,extensions:i={},queryStoreKey:s,urlName:l}=e,a=dr(s,"currentValues"),u=Ar(a,l);return He(Et.RangeRadioControl,{values:t,appliedValues:u,onChange:r,label:n.label,showLabel:n.showLabel,isInteractive:o,description:n.description,showDescription:n.showDescription,separator:n.rangeSeparator,...i,...Pr(n),inputClassName:(0,xr.__getInputClassName)(i.inputClassName)})})),Dr=Mn((e=>{const{values:t,attributes:n,onChange:r,isInteractive:o,extensions:i={},queryStoreKey:s,urlName:l}=e,a=dr(s,"currentValues"),u=Ar(a,l);return He(Et.RangeNumberControl,{values:t,appliedValues:u,onChange:r,label:n.label,showLabel:n.showLabel,isInteractive:o,description:n.description,showDescription:n.showDescription,...i,...Pr(n),inputClassName:(0,xr.__getInputClassName)(i.inputClassName)})})),Or=()=>{},Fr=Mn((e=>{const{values:t,attributes:n,isInteractive:r,queryStoreKey:o,type:i,extensions:s={},options:l,availableOptions:a=null,_setProp:u}=e,c=Ae((()=>{if(null===a)return l;const e=[];for(const t of l)a.includes(t.value)&&e.push(t);return e}),[a,l]),{submit:d=Or}=fr(o),f=dr(o,"activeFields");return He(Et.ButtonGroup,{value:t,options:c,onChange:e=>{const t=e[0],[n,r]=t.split("/"),o=`field-${n}`;if(!f[o])return;const i=f[o].getValues(),s=r.split(",").map((e=>e.replace(/\x1F/g,","))),l=i.filter((e=>!s.includes(e)));f[o].setValues(l);const c=a.filter((e=>e!==t));u("availableOptions",c),d()},type:i,label:n.label,showLabel:n.showLabel,multiple:"yes"===n.multiple,isInteractive:r,description:n.description,showDescription:n.showDescription,...s,inputClassName:(0,xr.__getInputClassName)(s.inputClassName),icon:"clear",iconPosition:"right",iconProps:{isDestructive:!0}})})),qr=()=>{},$r=Mn((e=>{const{attributes:t,queryStoreKey:n,isInteractive:r,icon:o="spinner-circle"}=e,[i,s]=Ce(!1),{loadMore:l=qr}=fr(n),{currentPage:a=1,maxPages:u=2}=dr(n,"settings"),c=parseInt(a)>=parseInt(u),d=()=>{s(!1)};return He(Et.Button,{disabled:i,onClick:()=>{i||c||(l(d),s(!0))},icon:i?o:null,label:t.label,showLabel:t.showLabel,isInteractive:r,className:tt()("search-filter-field__input",c?"search-filter-input-button--hidden":""),"aria-hidden":c})})),Rr=Mn((e=>{const{values:t,attributes:n={},onChange:r,isInteractive:o,id:i,extensions:s={},queryStoreKey:l,calendarClassName:a,urlName:u}=e,c=(dr(l,"currentValues"),2!==t.length?["",""]:t),{stylesId:d,type:f,inputType:p,placeholder:h,label:_,showLabel:m,icon:g}=n;return He(Et.RangeDatePickerControl,{values:c,onChange:r,isInteractive:o,calendarClassName:tt()(["search-filter-base",a,"search-filter-field__popup",`search-filter-field__popup--id-${i}`,`search-filter-style--id-${d}`,`search-filter-style--${f}-${p}`]),...s,inputClassName:(0,xr.__getInputClassName)(s.inputClassName),inline:!1,locale:"en-GB",icon:"yes"===n.inputShowIcon?g:null,placeholder:h,label:_,escClears:!1,showLabel:m,dateFormat:"custom"===n.dateDisplayFormat?n.dateDisplayFormatCustom:n.dateDisplayFormat,description:n.description,showDescription:n.showDescription})}));function Ur(e){const t=e._getSnapshot,n=e._value;try{return!function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}(n,t())}catch(e){return!0}}function Vr(e,t){const n=t(),[{_instance:r},o]=Ce({_instance:{_value:n,_getSnapshot:t}});return Ne((()=>{r._value=n,r._getSnapshot=t,Ur(r)&&o({_instance:r})}),[e,n,t]),xe((()=>(Ur(r)&&o({_instance:r}),e((()=>{Ur(r)&&o({_instance:r})})))),[e]),n}const Mr=()=>{const{innerWidth:e,innerHeight:t}=window;return{screenWidth:e,screenHeight:t}},Hr=()=>{const[e,t]=Ce(Mr());return xe((()=>{function e(){t(Mr())}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),e},Br=(e,t)=>{Kr(e).push(t)},jr=[],Wr=[],Kr=e=>"fields"===e?jr:"queries"===e?Wr:void 0,Gr=(e,t,n)=>{Array.isArray(e)&&e.forEach((e=>{e[t]&&e[t](...n)}))},zr=(e,t,n,r)=>{if(!Array.isArray(t))return r[0];let o=e;return t.forEach((e=>{e[n]&&(o=e[n](o,...r))})),o};p(["packages"],"registry",e);const Qr={...o,...i};p(["packages"],"components",Qr,!0);const{hooks:Yr,...Xr}=s;p(["packages"],"core",Xr,!0),p(["packages","core"],"hooks",Yr,!0);const Jr={...l,...a};p(["packages"],"fields",Jr,!0),p(["packages"],"utils",r,!0);const Zr={...u,...c};p(["packages"],"hooks",Zr,!0),p(["packages"],"extensions",d,!0),new MutationObserver((function(e){document.documentElement.className.match("translated")&&eo()})).observe(document.documentElement,{attributes:!0,attributeFilter:["class"],childList:!1,characterData:!1});const eo=()=>{const e=Element.prototype.insertBefore;Element.prototype.insertBefore=function(t,n){if(!n||"font"!==n.localName)return e.apply(this,arguments);t.innerText=n.innerText};const t=Element.prototype.replaceChild;Element.prototype.replaceChild=function(e,n){if(!n||"font"!==n.localName)return t.apply(this,arguments);e.innerText=n.innerText};const n=m.diffed;m.diffed=e=>{if(null===e.type&&e.__e&&e.__e.previousSibling&&e.__e.previousSibling.childNodes){const t=e.__e.previousSibling.childNodes[0];t&&"FONT"===t.nodeName&&(e.__e.data=t.innerText,t.remove())}n&&n(e)}},to={search:{text:hr},choice:{select:zn,radio:Qn,checkbox:er,button:_r},range:{},advanced:{date_picker:mr},control:{submit:vr,reset:yr,sort:Cr,per_page:Sr}};function no(e,t,n){to[e]||(to[e]={}),to[e][t]=n}const ro=()=>{const e={};return{triggerEvent:function(t,n=[]){e[t]&&e[t].forEach((e=>{e(...n)}))},addEventListener:function(t,n){e[t]||(e[t]=[]),e[t].push(n)},removeEventListener:function(t,n){if(!e[t])return;const r=e[t].indexOf(n);-1!==r&&e[t].splice(r,1)}}};var oo=le({});const io={setValues(e,t,n){if(void 0===e[t])return e;const r=at(e),o=at(e[t]);return o.values=n,r[t]=o,r},setValueLabels(e,t,n){if(void 0===e[t])return e;const r=at(e),o=at(e[t]);return o.valueLabels=n,r[t]=o,r},setAttributes(e,t,n){if(void 0===e[t])return e;const r=at(e),o=at(e[t]);return o.attributes=ut(o.attributes,n),r[t]=o,r},setProps(e,t,n){if(void 0===e[t])return e;const r=at(e),o=ut(e[t],n);return r[t]=o,r},setProp(e,t,n,r){if(void 0===e[t])return e;const o=at(e),i=ut(e[t],{[n]:r});return o[t]=i,o},setField(e,t,n){const r=at(e);return r[t]=at(n),r},removeField(e,t){const n=at(e);return n[t]&&delete n[t],n}},so={setValues(e,t,n){const r=at(e),o=it(n);return r[t]=o,r}},lo=nr({}),ao=nr({}),uo=new WeakMap;uo.set(lo,io),uo.set(ao,so);const co=function(e,t,n){const r=it(arguments);r.splice(0,2),r.unshift(t.getState());const o=uo.get(t)[e].apply(null,r);t.setState(o,!0)},fo=function(e){const t=it(arguments);t.splice(1,0,lo),co.apply(null,t)},po=function(e){const t=it(arguments);t.splice(1,0,ao),co.apply(null,t)},ho=({children:e,queryStore:t})=>He(Un.Provider,{value:lo,children:He(oo.Provider,{value:ao,children:He(rr.Provider,{value:t,children:e})})});let _o=0;const mo=(e,t)=>{const n=(_o++,_o),r=`field_${n}`;let o={},i=[],s="",l={},a=!1;const u=Kr("fields"),c=h([],"queries"),d={},f={},p=ro();let _=null;const m=e=>{o.values!==e&&(C(e),Gr(u,"onUpdateValues",[T,e,o]),p.triggerEvent("onUpdateValues",[T,e]))},g=()=>{C([]),Gr(u,"onClearValues",[T,o])};function v(){return void 0!==o.el?o.el:e}function b(){return r}function y(e){const t=e[r];if(t&&o!==t){if(void 0!==o.classList&&o.classList!==t.classList){const e=v();e&&(e.className="",t.classList.forEach((function(t){e.classList.add(t)})))}o=t,Gr(u,"onUpdate",[T,o])}}function w(e){const t=e[s];t&&(i=t)}function C(e){o.isInteractive&&(fo("setValues",b(),e),po("setValues",s,e))}function S(){return o.values}function x(){return o.inputType}function N(e,t,n){var r=e.lastIndexOf(t);return r>=0?e.substring(0,r)+n+e.substring(r+t.length):e}function E(e){const t=e?.attributes??{},r=t.type,i=vt(t);s=e.urlName;let p=at(e);p.isInteractive=e?.isInteractive??!0,p.classList=e?.classList??[],l=e.connectedData;const h=e.urlTemplate;_=c.get(parseInt(t.queryId));let y=null;_&&(y=_.getStoreKey()),h&&l&&l.termIdentifiers&&l.termIdentifiers.forEach((e=>{d[e.slug]=e.id,f[e.id]=e.slug}));const w=[];let C=p.classList?[...p.classList]:[];const x=v();x&&(x.classList.forEach((function(e){w.push(e),C=C.filter((t=>t!==e))})),C.forEach((function(e){x.classList.add(e),w.push(e)}))),p={...p,inputType:i,type:r,queryStoreKey:y,classList:w,uid:n,el:v(),onChange:m,onClear:g,_setProp:I},o._instance&&(p._instance=o._instance),p=zr(p,u,"config",[T]),fo("setField",b(),p),po("setValues",s,S()),Gr(u,"init",[T,p]),a=!0}function L(e){if(!e)return;const t=(n=o.type,i=x(),to[n]&&to[n][i]?to[n][i]:null);var n,i;null!==t&&oe(He(Ge,{children:He(Ut,{children:He(ho,{queryStore:ir,children:He(t,{storeKey:r})})})}),e)}function A(){v()&&(oe(null,v()),I("el",null))}function P(e){return o.attributes&&o.attributes[e]?o.attributes[e]:null}function k(e,t=!1){!1===t&&(e=zr(e,u,"setProps",[T])),fo("setProps",b(),e),Gr(u,"onUpdateProps",[T,e,o])}function I(e,t,n=!1){k({[e]:t},n)}const T={initField:function(e){const t=function(e){return vt(e.attributes)!==vt(o.attributes)||e.type!==o.type}(e);E(e),t&&L(v())},setOptions:function(e){I("options",e),Gr(u,"onUpdateOptions",[T,e])},setAttributes:function(e){fo("setAttributes",b(),e)},getAttributes:function(){return o.attributes},getAttribute:P,setValues:C,setProps:k,setProp:I,getProp:function(e){return o[e]},getUid:function(){return n},getId:function(){return o.id},getState:function(){return o},getName:function(){return o.name},getElement:v,getQueryData:function(){return{queryId:o.attributes.queryId}},getStoreKey:b,getValues:S,getUrlName:function(){return s},getUrlValues:function(e){return i},getConnectedData:function(){return l},setConnectedData:function(e){l=e},getUrl:function(){if(!o?.urlTemplate)return null;if(!function(){const e=x();return"checkbox"!==e&&("select"!==e&&"button"!==e||"yes"!==P("multiple"))}())return null;if(!l.taxonomyParents)return null;const e=S(),t=e.length>0?e[0]:"",n=d[t],r=f[n];let i=o.urlTemplate;if(!Array.isArray(i))return null;if(0===i.length)return null;let s=0;l.taxonomyParents[n]&&l.taxonomyParents[n].forEach((e=>{s++}));let a=i[s];return a?(a=N(a,"[id]",n),a=N(a,"[slug]",r),l.taxonomyParents[n]&&l.taxonomyParents[n].forEach((e=>{a=N(a,"[slug]",e.slug)})),a):null},remove:function(){A(),lo.unsubscribe(y),ao.unsubscribe(w),fo("removeField",b()),_&&_.removeField(T)},unmount:A,mount:function(e){e?(I("el",e),L(e)):L(v())},enable:function(){},disable:function(){},focus:function(){},blur:function(){},queryActions:function(){return _?_.getActions():{}},getQuery:function(){return _},on:p.addEventListener,off:p.removeEventListener};return lo.subscribe(y),ao.subscribe(w),E(t),e&&L(e),I("_instance",T),_&&_.addField(T),T};var go=window.searchAndFilter.frontend.packages.registry,vo=window.searchAndFilter.frontend.packages.extensions;const bo=(e,t)=>{window.location.href=((e,t)=>{const n=new URLSearchParams(t).toString();let r=e;if(""===e&&(r="?"),""!==n){const e=r.indexOf("?")>-1;r+=(e?"&":"?")+n}return r})(e,t)},yo=()=>window.searchAndFilter.admin;let wo=null;const Co=e=>{if(e.getAttribute("href")){const t=qo(e.getAttribute("href")).trim();t!==e.getAttribute("href")&&e.setAttribute("href",t)}else if(e.innerHTML){const t=qo(e.innerHTML).trim();t!==e.innerHTML.trim()&&(e.innerHTML=t)}else if(e.textContent){const t=qo(e.textContent).trim();t!==e.textContent.trim()&&(e.textContent=t)}},So=e=>{const t=[];let n=null,r=null;if(e.head){let r=!1;for(const o of e.head.childNodes)if(o.nodeType===Node.ELEMENT_NODE&&"META"===o.tagName&&"search-filter-head-assets-start"===o.getAttribute("name")&&(r=!0,n=o),r&&o!==n&&o.nodeType===Node.ELEMENT_NODE){if("META"===o.tagName&&"search-filter-head-assets-end"===o.getAttribute("name"))break;(Eo(o)||No(o))&&(Co(o),t.push({element:o,location:"head"}))}}if(e.body){const n='body > style, body > link[rel="stylesheet"], body > #search-filter-svg-template',o=e.body.querySelectorAll(n);for(const e of o)Co(e),t.push({element:e,location:"body"});r=e.body.firstChild}return{elementsList:t,headMarker:n,bodyMarker:r}},xo=(e,t,n)=>new Promise(((r,o)=>{const i=e.cloneNode(!0),s=i.getAttribute("media")||"all";let l,a;const{element:u,action:c}=t;i.setAttribute("media","print");const d=()=>{i.onload=null,i.onerror=null,n&&n.removeEventListener("abort",p),i.setAttribute("media",s)},f=()=>{clearTimeout(l),cancelAnimationFrame(a),"replace"===c&&u.remove()},p=()=>{d(),f()};i.onload=()=>{d();const e=()=>{l=setTimeout((()=>{a=requestAnimationFrame((()=>{(e=>{for(const t of document.styleSheets)if(t.href===e)return t;return null})(i.href)||n&&n.aborted?(f(),r(i)):e()}))}),20)};e()},i.onerror=()=>{p()},u.after(i),n.addEventListener("abort",p,{once:!0}),n.aborted&&p()})),No=e=>!!e&&"LINK"===e.tagName&&"stylesheet"===e.getAttribute("rel")&&e.getAttribute("href"),Eo=e=>!!e&&"STYLE"===e.tagName;let Lo=null,Ao=null;const Po=(e,t,n=null,r=null)=>{if(yo())return Promise.resolve();if(!t)return Promise.resolve();const o=t.head&&t.head.querySelector('meta[name="search-filter-head-assets-start"]')&&t.head.querySelector('meta[name="search-filter-head-assets-end"]'),i=t.querySelector("#search-filter-data-js");if(!o&&!i)throw new Error("Failed to update assets: Page does not contain expected Search & Filter markers. The response may be an error page.");return Ao&&Ao.url===e?(Lo=null,Promise.resolve()):(Ao&&Ao.abortController&&Ao.abortController.abort(),Lo={url:e,doc:t,updateTreeSelectors:r,abortController:n||new AbortController},Ao?Promise.resolve():Io())},ko=e=>{const t=new Map;for(const n of e){const e=n.element;if(e.nodeType===Node.ELEMENT_NODE)if(e.id)t.set(e.id,e);else if(e.getAttribute("href")){const n=e.getAttribute("href");t.set(n,e)}else t.set(e.textContent,e)}return{getEquivelant:function(e){if(e.id)return t.get(e.id);if(e.getAttribute("href")){const n=e.getAttribute("href");return t.get(n)}return t.get(e.textContent)},elements:t}},Io=()=>{Ao=Lo,Lo=null;const e=Ao.abortController;return new Promise(((t,n)=>{if(e.signal.aborted)return void n(new DOMException("Request superseded by new request","AbortError"));const r=Ao.doc,{added:o,removed:i,changed:s}=(()=>{if(wo)return wo;if(!window.searchAndFilterPage||!window.searchAndFilterPage.head||!window.searchAndFilterPage.body)return wo={added:[],removed:[],changed:[]},wo;const e=new DOMParser,t="<html>"+window.searchAndFilterPage.head+window.searchAndFilterPage.body+"</html>",n=e.parseFromString(t,"text/html"),{elementsList:r}=So(n),{elementsList:o}=So(document),{added:i,removed:s,changed:l}=((e,t)=>{const n=ko(e),r=ko(t),o=[],i=[],s=[];for(const e of t){const t=e.element,r=n.getEquivelant(t);r?Eo(t)?t.textContent!==r.textContent&&s.push(e):No(t)&&t.getAttribute("href")!==r.getAttribute("href")&&s.push(e):o.push(e)}for(const t of e){const e=t.element;r.getEquivelant(e)||i.push(t)}return{added:o,removed:i,changed:s}})(r,o);return wo={added:i,removed:s,changed:l},wo})(),l=ko(o),a=ko(i),{elementsList:u,headMarker:c,bodyMarker:d}=So(document),{elementsList:f}=So(r);if(!c)return void t();const p=ko(u),h=ko(f),_=[];let m=c,g=d;const v=new WeakMap,b=new Set;for(const t of f){const n=t.element;if(a.getEquivelant(n))continue;const r=p.getEquivelant(n),o="head"===t.location;if(r?(o?m=r:g=r,v.set(n,{action:"replace",element:o?m:g})):v.set(n,{action:"after",element:o?m:g}),Eo(n)){if(r&&r.textContent===n.textContent)continue;b.add(n)}else if(No(n)){if(r&&n.getAttribute("href")===r.getAttribute("href"))continue;_.push(xo(n,v.get(n),e.signal))}else{if(r&&r.textContent===n.textContent)continue;b.add(n)}}const y=new Set;for(const e of u){const t=e.element;l.getEquivelant(t)||(h.getEquivelant(t)||y.add(t))}const w=()=>{for(const n of b){const o=v.get(n),{action:i,element:s}=o;"replace"===i?s.replaceWith(n.cloneNode(!0)):s.after(n.cloneNode(!0))}for(const l of y)l.remove();document.title!==r.title&&(document.title=r.title),document.body.className!==r.body.className&&(document.body.className=r.body.className);const e=Ao.updateTreeSelectors;if(e)for(const a of e){const u=document.querySelector(a),c=r.querySelector(a);function d(e,t){return!(!e||!t)&&"BODY"!==e.tagName&&"BODY"!==t.tagName&&e&&t&&e.nodeType===Node.ELEMENT_NODE&&t.nodeType===Node.ELEMENT_NODE}if(d(u,c)){let f=u.parentElement,p=c.parentElement;for(;d(f,p);)f.className=p.className,f.style.cssText=p.style.cssText,f=f.parentElement,p=p.parentElement}}t()};Promise.all(_).then(w).catch((e=>{if("AbortError"!==e.name)throw e;w(),w()})).finally((()=>{Ao=null,Lo&&Io()}))}))},To=(e,t,n=!1)=>{let r=e;const o=[];for(const e in t)!t[e]&&n?o.push(`${e}`):o.push(`${e}=${t[e]}`);const i=r.split("#");r=i[0];const s=i[1];return 0===o.length?e:(-1!==r.indexOf("?")?r+="&":r+="?",r+=o.join("&"),s&&(r+=`#${s}`),r)},Do=(e,t)=>{let n=e;const r={};for(const e in t)if(Array.isArray(t[e])){const n=[];t[e].forEach((e=>{if(e){const t=e.replace(/,/g,"");n.push(encodeURIComponent(t))}else n.push(e)})),r[e]=n.join(",")}else r[e]=encodeURIComponent(t[e]);return n=To(n,r),n},Oo=e=>(new DOMParser).parseFromString(e,"text/html");let Fo=null;function qo(e){let t=e;const n=window.searchAndFilterData.homeUrl,r=$o();return n&&r&&(t=e.replaceAll(r.url,n)),t}const $o=()=>{if(!window.searchAndFilterApiUrl)return null;if(null!==Fo)return Fo;Fo={auth:null,url:null};const e=new URL(window.searchAndFilterApiUrl);return e.username&&e.password&&(Fo.auth="Basic "+btoa(`${e.username}:${e.password}`)),Fo.url=`${e.origin}${e.pathname}${e.search}`,Fo.url.endsWith("/")&&(Fo.url=Fo.url.slice(0,-1)),Fo},Ro=(()=>{const e={},t={},n=[];function r(e){if(t[e]){const n=t[e];t[e]=null;try{n.abort(new DOMException("Request superseded by new request","AbortError"))}catch(e){if("AbortError"===e.name)return}}}yo()||window.addEventListener("popstate",(t=>{(async(t,r)=>{const i=r&&Object.keys(r).length>0;if(!e[t]&&i&&(e[t]={dom:Oo(r),raw:r}),e[t])try{await Po(t,e[t].dom,null,o())}catch(e){if("AbortError"!==e.name)throw e}for(const r of n)r.popState&&r.popState(t,e[t])})(window.location.href,t.state)}));const o=()=>{let e=[];for(const t of n)t.treeSelector&&e.push(t.treeSelector);return e};return(0,In.onInitDocument)((()=>{if(!window.searchAndFilterPage||!window.searchAndFilterPage.head||!window.searchAndFilterPage.body)return;const t="<html>"+window.searchAndFilterPage.head+window.searchAndFilterPage.body+"</html>",n=Oo(t);e[window.location.href]={dom:n,raw:t}}),"complete"),{newRequest:async function(n,i,s,l=!0,a=!1){const u=a?o():[];if(e[n]){r(s);const o=new AbortController;return t[s]=o,new Promise(((t,r)=>{setTimeout((async()=>{try{l&&await Po(n,e[n].dom,o,u),t(i(e[n]))}catch(e){r(e)}}),100)}))}return new Promise(((o,a)=>{r(s);const c=new AbortController;t[s]=c;const d=function(e){let t=e;const n=window.searchAndFilterData.homeUrl,r=$o();return n&&r&&(t=e.replaceAll(n,r.url)),t}(n),f=$o(),p={"search-filter-api":"frontend"};f&&(p["search-filter-api"]="frontend/external");const h=Do(d,p),_={"Content-Type":"text/html"};f&&f.auth&&(_.Authorization=f.auth),fetch(h,{method:"GET",headers:_,signal:c.signal}).then((e=>{if(t[s]!==c)throw new DOMException("Aborted","AbortError");if(!e.ok)throw new Error(`Failed to load page: HTTP ${e.status} ${e.statusText} for URL: ${h}`);return e.text()})).then((async r=>{if(t[s]!==c)throw new DOMException("Aborted","AbortError");return e[n]={dom:Oo(r),raw:r},l&&await Po(n,e[n].dom,c,u),Promise.resolve(i(e[n]))})).then((()=>{o()})).catch((e=>{"AbortError"!==e.name?a(e):o()})).finally((()=>{t[s]===c&&(t[s]=null)}))}))},registerHandler:e=>{n.push(e)},abortRequest:e=>{r(e)}}})(),Uo=Ro.registerHandler,Vo=Ro.newRequest,Mo=Ro.abortRequest,Ho=window.getComputedStyle;function Bo(e,...t){let n=0;return e.replace(/%(\d+\$)?([ds])/g,((e,r,o)=>{const i=r?parseInt(r)-1:n++,s=t[i];return"d"===o?parseInt(s,10):String(s)}))}function jo(e,t){e&&(e.textContent="",requestAnimationFrame((()=>{e.textContent=t})))}function Wo(e,t,n,r){const{noResultsText:o="No results found",singleResultText:i="%d result found",multipleResultsText:s="%d results found",pageText:l="Page %1$d of %2$d"}=r||{};let a="";return a=0===e?o:Bo(1===e?i:s,e),n>1&&(a+=". "+Bo(l,t,n)),a}let Ko=0;function Go(e){if(Array.isArray(e)){if(0===e.length)return!0;if(1===e.length&&""===e[0])return!0}return!1}const zo={},Qo=e=>{let t=0;const n=(Ko++,Ko),r=`query_${n}`;let o={},i="",s={},l=null,a=null,u=null,c=!1;const d=jn();let f=window.location.href;const p={},h=(0,vo.get)("queries"),_=ro();function m(){return t}function g(){return n}function v(){return r}function b(e){const t=e[r];t&&o!==t&&(o=e[r])}function y(e){return o.settings?o.settings[e]:null}function w(e){ar("setProp",v(),"activeFields",e)}function C(){return o.fields?o.fields:[]}function S(e){ar("setProp",v(),"fields",e)}function x(e,t=!1){if(function(){const e=C();for(const t in e){const n=e[t];if(n.getAttribute("defaultValueType")&&"none"!==n.getAttribute("defaultValueType"))return!0}return!1}()){const t=N();e=To(e,{[t]:null},!0)}return e}function N(){return"~"+m()}function E(){const e={fieldValues:{},urlValues:{},url:i},t=y("currentTaxonomyArchive"),n=y("currentTaxonomyTermArchive");let r=!1,s=!1;for(const n in o.fields){const l=o.fields[n],a=o.fields[n].getUrlValues(),u=l.getProp("connectedData")?.navigatesTaxonomyArchive;u&&u===t&&Go(a)&&(s=!0,r=!0,e.url=i)}for(const i in o.fields){const l=o.fields[i],a=d+o.fields[i].getUrlName(),u=o.fields[i].getUrlValues();Go(u)||(e.urlValues[a]=u,e.fieldValues[i]=u);const c=l.getProp("connectedData")?.navigatesTaxonomyArchive;c&&(c===t?Go(u)||(n!==u[0]&&(r=!0,e.url=l.getUrl()),e.urlValues[a]&&delete e.urlValues[a]):t&&!s||!c||Go(u)||(r=!0,e.url=l.getUrl(),e.urlValues[a]&&delete e.urlValues[a]))}if(r)return e;const l=y("taxonomyArchiveUrl");return l?(e.url=l,e):e}function L(e){s=(0,In.cloneObject)(e),i=s.url,t=s.id,ar("setQuery",v(),s),c||(function(){if(u)return;const e=A("queryContainer");if(!e)return;const t=document.querySelectorAll(e);if(0===t.length)return void(function(){const e=new URL(E().url),t=new URL(window.location.href);return e.pathname===t.pathname}()&&(0,In.log)(`Query container not found for query ${m()}. Selector: ${e}`,"error"));if(t.length>1)return void(0,In.log)(`Multiple query containers found for query ${m()}. Selector: ${e}`,"error");u=t[0],u.classList.add("search-filter-query");const n=A("a11yQueryContainerLabel")||"Search Results";if(P("containerId",function(e,t,n){let r=e.id;var o;return r||(r=`search-filter-query-instance-${t}`,e.id=r),(o=e).tabIndex>=0||o.hasAttribute("tabindex")||e.setAttribute("tabindex","-1"),e.hasAttribute("aria-label")||e.hasAttribute("aria-labelledby")||e.setAttribute("aria-label",n),function(e){if(["MAIN","NAV","ASIDE","HEADER","FOOTER","SECTION","FORM"].includes(e.tagName))return!0;const t=e.getAttribute("role");return!(!t||!["main","navigation","complementary","banner","contentinfo","region","form","search"].includes(t))}(e)||e.setAttribute("role","region"),r}(u,g(),n)),I()){const e=function(e){const t=`search-filter-query-announcer-${e}`;let n=document.getElementById(t);return n||(n=document.createElement("div"),n.id=t,n.className="search-filter-screen-reader-text",n.setAttribute("role","status"),n.setAttribute("aria-live","polite"),n.setAttribute("aria-atomic","true"),n)}(m());u.parentNode.insertBefore(e,u),P("announcer",e)}}(),function(){if(!l&&I()&&u&&"yes"===A("resultsShowSpinner")){const e="search-filter-query--loading";l=function(e,t,n=null){let r=!1,o=!1;const i="search-filter-query__spinner--show",s=document.createElement("div");s.classList.add("search-filter-base"),s.classList.add("search-filter-query__spinner"),s.classList.add("search-filter-query--id-"+t);const l=document.createElement("div");l.classList.add("search-filter-query__spinner-icon");const a=document.createElementNS("http://www.w3.org/2000/svg","svg"),u=document.createElementNS("http://www.w3.org/2000/svg","use");function c(){const t=e.offsetParent,n=function(e,t=!0){let n=Ho(e);const r="absolute"===n.position,o=t?/(auto|scroll|hidden)/:/(auto|scroll)/;if("fixed"===n.position)return document.body;for(let t=e;t=t.parentElement;)if(n=Ho(t),(!r||"static"!==n.position)&&o.test(n.overflow+n.overflowY+n.overflowX))return t;return document.body}(e);if(!n||!n.tagName)return;t&&"body"!==n.tagName.toLowerCase()&&!n.contains(t)&&"static"===Ho(n).position&&(n.style.position="relative");let r="0px",o="0px";if(t&&"body"===t.tagName.toLowerCase()&&"static"===Ho(t).position){const e=Ho(document.documentElement);"relative"!==e.position&&(r=e.marginTop,o=e.marginLeft)}const i=e.getBoundingClientRect();s.style.width=i.width+"px",s.style.height=i.height+"px",s.style.top=`calc(${e.offsetTop}px + ${r})`,s.style.left=`calc(${e.offsetLeft}px + ${o})`}let d;function f(){d&&window.cancelAnimationFrame(d),d=window.requestAnimationFrame((function(){c()}))}u.setAttributeNS("http://www.w3.org/1999/xlink","href","#sf-svg-spinner-circle"),a.appendChild(u),l.appendChild(a),s.appendChild(l),window.addEventListener("scroll",f,!0),window.addEventListener("resize",f,!0);const p=()=>{s.style.visibility="hidden",r=!1,o=!1,n&&n()};return s.addEventListener("transitionstart",(function(e){o=!0})),s.addEventListener("transitionend",(function(e){r&&p()})),s.addEventListener("transitioncancel",(function(e){r&&p()})),e.after(s),c(),{container:s,setLoaderPosition:c,remove:function(){s.remove()},show:function(){s.style.visibility="visible",c(),s.classList.add(i)},hide:function(){c(),r=!0,o||p(),s.classList.remove(i)}}}(u,m(),(()=>{u.classList.remove(e)}))}}(),D(),O(),c=!0)}function A(e){return o.attributes&&o.attributes[e]?o.attributes[e]:null}function P(e,t){ar("setProp",v(),e,t)}function k(e){return ir.getState()[v()][e]}function I(){return"yes"===A("resultsDynamicUpdate")}function T(e){e.preventDefault(),k("preventPaginationPropagation")&&e.stopPropagation();const t=function(e){const t=new URL(document.baseURI).origin;return 0!==e.indexOf(t)}(n=e.currentTarget.getAttribute("href"))?new URL(n,document.baseURI).href:n;var n;t&&Q(t,!0)}function D(){const e=A("queryPaginationSelector");if(!e)return;const t=document.querySelectorAll(e);t&&t.forEach((e=>{e.removeEventListener("click",T),e.addEventListener("click",T)}))}function O(){if("infinite_scroll"!==A("resultsPaginationType"))return;const e=A("queryPostsContainer");if(!e)return void(0,In.log)(`Posts container selector not configured for infinite scroll on query ${m()}.`,"error");const t=document.querySelector(e);if(!t)return void(0,In.log)(`Posts container not found for infinite scroll on query ${m()}. Selector: ${e}`,"error");a&&a.remove();const n=A("infiniteScrollOffset")||"-100px";a=function(e,t,n={}){const{rootMargin:r="-100px",onTrigger:o=()=>{},onEnd:i=()=>{}}=n;let s=null,l=!1,a=!1,u=!1,c=!0;const d="search-filter-query__infinite-scroll-loader--show",f=document.createElement("div");f.classList.add("search-filter-base"),f.classList.add("search-filter-query__infinite-scroll-trigger"),f.classList.add("search-filter-query--id-"+t);const p=document.createElement("div");p.classList.add("search-filter-query__infinite-scroll-loader");const h=document.createElement("div");h.classList.add("search-filter-query__infinite-scroll-loader-icon");const _=document.createElementNS("http://www.w3.org/2000/svg","svg"),m=document.createElementNS("http://www.w3.org/2000/svg","use");function g(){s&&s.disconnect();const e=r.includes(" ")?r:`0px 0px ${r} 0px`;s=new IntersectionObserver((e=>{e.forEach((e=>{!e.isIntersecting||l||a||u||v()}))}),{root:null,rootMargin:e,threshold:0}),s.observe(f)}function v(){l=!0,y(),o(b)}function b(){l=!1,w(),g()}function y(){p.classList.add(d)}function w(){p.classList.remove(d)}return m.setAttributeNS("http://www.w3.org/1999/xlink","href","#sf-svg-spinner-circle"),_.appendChild(m),h.appendChild(_),p.appendChild(h),f.appendChild(p),e.after(f),g(),{container:f,show:y,hide:w,remove:function(){s&&(s.disconnect(),s=null),f.remove()},pause:function(){a=!0},resume:function(){a=!1},updateEndState:function(e,t){parseInt(e)>=parseInt(t)?(u=!0,w(),i()):(u=!1,c&&(c=!1,requestAnimationFrame((()=>{!function(){if(l||a||u)return;const e=f.getBoundingClientRect(),t=parseInt(r)||0;e.top<window.innerHeight+t&&v()}()}))))}}}(t,m(),{rootMargin:n,onTrigger:e=>{z(e)},onEnd:()=>{(0,In.log)(`Infinite scroll reached end for query ${m()}.`)}}),a.updateEndState(y("currentPage"),y("maxPages"))}function F(){a&&(a.remove(),a=null)}function q(){const e={};let t=!1;for(const n in o.fields)Go(o.fields[n].getUrlValues())||(e[`field-${o.fields[n].getId()}`]=o.fields[n],t=!0);return t?e:zo}function $(e=null){const t=E();w(q());const n=e??t.url,r=Object.keys(t.urlValues).length>0;let o=null;return n&&(o=x(Do(n,t.urlValues),r)),{values:t.urlValues,url:o}}function R(){const{values:e,url:t}=$();t?Q(t,!0):(0,In.log)(`No URL set for query ID: ${m()}.`,"error"),(0,vo.doActions)(h,"onSubmit",[e])}ir.subscribe(b),L(e);const U=(e=!0)=>{const t=C();for(const n in t)t[n].setProp("isBusy",e)},V=()=>{const e="yes"===A("resultsFadeResults"),t="yes"===A("resultsShowSpinner");e&&u&&u.classList.add("search-filter-query--fade-out"),t&&l&&l.show(),u&&u.classList.add("search-filter-query--loading"),U(!0);const n=k("announcer");n&&jo(n,A("a11yLoadingText")||"Loading results...")},M=()=>{const e="yes"===A("resultsFadeResults"),t="yes"===A("resultsShowSpinner");e&&u&&u.classList.remove("search-filter-query--fade-out"),t&&l&&l.hide(),u&&u.classList.remove("search-filter-query--loading"),U(!1)},H=(e="search")=>{const t=k("announcer");if(!t)return;const n=y("foundPosts"),r=y("currentPage"),o=y("maxPages");let i="";i="load-more"===e?((e,...t)=>{let n=0;return e.replace(/%(\d+\$)?([ds])/g,((e,r,o)=>{const i=r?parseInt(r)-1:n++,s=t[i];return"d"===o?parseInt(s,10):String(s)}))})(A("a11yLoadedMoreText")||"Loaded more results. Page %1$d of %2$d",r,o):Wo(n,r,o,{noResultsText:A("a11yNoResultsText"),singleResultText:A("a11ySingleResultText"),multipleResultsText:A("a11yMultipleResultsText"),pageText:A("a11yPageText")}),jo(t,i)},B=()=>{for(const e in o.fields)o.fields[e].setValues([]);w(q());const e=E().url;e&&Q(x(e),!0),(0,vo.doActions)(h,"onReset",[])},j=e=>{P("currentValues",e)},W=e=>{if(!e)return;const t=(0,go.get)([],"queries");Object.keys(e).forEach((n=>{const r={...e[n]},o=t.get(r.id);o?o.setSettings(r.settings):Qo(r)}))},K=e=>{if(!e)return;const t=(0,go.get)([],"fields");Object.keys(e).forEach((n=>{const r={...e[n]},o=t.get(r.id);if(o)r.values=o.getValues(),o.initField(r);else{const e=document.querySelector(`.search-filter-field[data-field-id="${r.id}"]`);e&&mo(e,r)}}))},G=e=>{if(!e)return;const t=(0,go.get)([],"fields");for(const n in e){const r={...e[n]},o=t.get(r.id);o&&o.setValues(r.values)}w(q())};function z(e){if(!I())return void(0,In.log)(`Live search is not enabled for query ${m()}.`,"error");const t=A("queryPostsContainer"),n=document.querySelectorAll(t);if(0===n.length)return void(0,In.log)(`Posts container not found for query ${m()}. Selector: ${t}`,"error");if(n.length>1)return void(0,In.log)(`Multiple posts containers found for query ${m()}. Selector: ${t}`,"error");const r=n[0],o=parseInt(y("currentPage"))+1,i=E(),s=y("paginationKey");s?i.urlValues[s]=o:i.urlValues.paged=o;const l=Object.keys(i.urlValues).length>0,c=x(Do(i.url,i.urlValues),l);_.triggerEvent("get-results/start",[oe,{action:"load-more"}]),U(!0);const d=k("announcer");d&&jo(d,A("a11yLoadingMoreText")||"Loading more results..."),Vo(c,(t=>{const n=t.dom,o=Y(n),i=A("queryContainer"),s=n.querySelector(i);if(!s)return void(0,In.log)(`Destination query container not found for query ${m()}. Selector: ${i}`,"error");X(o,s);const l=A("queryPostsContainer"),c=n.querySelector(l);c?(Array.from(c.childNodes).forEach((e=>{r.appendChild(e.cloneNode(!0)),ee(u,o.fields)})),a&&a.updateEndState(y("currentPage"),y("maxPages")),H("load-more"),e&&e()):(0,In.log)(`Destination posts container not found for query ${m()}. Selector: ${l}`,"error")})).catch((e=>{if("AbortError"===e.name)return;(0,In.log)(`Failed to load more for query ${m()}: ${e.message}`,"error");const t=k("announcer");t&&jo(t,A("a11yErrorText")||"Error loading results")})).finally((()=>{U(!1),_.triggerEvent("get-results/finish",[oe,{action:"load-more"}])}))}async function Q(e,t=!0){if(!u)return void(t&&bo(e));if(!I()||!u)return void(t&&bo(e));_.triggerEvent("get-results/start",[oe]),V();const n=A("queryContainer");await Vo(e,(async n=>{await async function(e,t,n=!0){j({...te(e)}),J(t),H("search"),"yes"===A("resultsUpdateUrl")&&n&&(((e,t)=>{e!==window.location.href&&window.history.pushState(t,"",e)})(e,t.raw),f=e);const r=A("resultsScrollToSelector");if(r&&""!==r){const e=document.querySelector(r);e?e.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"}):(0,In.log)(`Scroll to selector element not found for query ${m()}. Selector: ${r}`,"error")}}(e,n,t)}),`results-${m()}`,!0,n).catch((e=>{if("AbortError"===e.name)return;(0,In.log)(`Failed to fetch results for query ${m()}: ${e.message}`,"error");const t=k("announcer");t&&jo(t,A("a11yErrorText")||"Error loading results")})).finally((()=>{M(),_.triggerEvent("get-results/finish",[oe])}))}function Y(e){const t=e.querySelector("#search-filter-data-js");if(!t)throw new Error("Failed to parse page data: #search-filter-data-js script tag not found. The page may have returned an error or invalid response.");const n=t.getAttribute("data-search-filter-data");if(!n)throw new Error("Failed to parse page data: data-search-filter-data attribute is missing.");const r=JSON.parse(n);if(!r.fields||!r.queries)throw new Error("Failed to parse page data: fields or queries data is missing from response.");return r}function X(e,t,n=!1){if(W(e.queries),K(e.fields),n&&G(e.fields),u&&"yes"===A("resultsUpdatePage"))for(const e of t.attributes)u.setAttribute(e.name,e.value)}function J(e,t=!1){const n=e.dom,r=Y(n),o=A("queryContainer"),i=n.querySelector(o);if(!i)return void(0,In.log)(`Destination query container not found for query ${m()}. Selector: ${o}`,"error");F(),Z(u,i,r.fields),X(r,i,t);const s=A("dynamicSections");if(s===o)return void(0,In.log)(`Dynamic section value is the same as the query container for query ${m()}.`,"error");const l=[],a=A("additionalDynamicSections");s&&l.push(s),a&&l.push(a);const c=l.join(", ");""!==c&&c.split(",").forEach((e=>{const t=e.trim(),o=document.querySelectorAll(t),i=n.querySelectorAll(t);o.length!==i.length&&(0,In.log)(`Dynamic area count mismatch for query ${m()}. Selector: ${t}`,"error"),o.forEach(((e,t)=>{e.innerHTML=i[t].innerHTML,Z(e,i[t],r.fields)}))})),D(),O()}function Z(e,t,n){e&&t&&(function(e){if(!e)return;const t=(0,go.get)([],"fields");e.querySelectorAll(".search-filter-field[data-search-filter-id]").forEach((e=>{const n=e.getAttribute("data-search-filter-id"),r=t.get(parseInt(n));r&&r.unmount()}))}(e),e.innerHTML=t.innerHTML,ee(e,n))}function ee(e,t){if(!e)return;const n=(0,go.get)([],"fields");e.querySelectorAll(".search-filter-field[data-search-filter-id]").forEach((e=>{const r=e.getAttribute("data-search-filter-id");let o=n.get(parseInt(r));const i={...t["field_"+r]};o?(i&&o.setOptions(i.options),o.mount(e)):o=mo(e,i)}))}function te(e){const t=new URL(e),n=new URLSearchParams(t.search),r={};return n.forEach(((e,t)=>{r[t]=e.split(",").map((e=>e.replace(/\x1F/g,",")))})),r}if(!yo()&&I()){let e=null;"yes"===A("resultsUpdatePage")&&(e=A("queryContainer")),Uo({popState:async function(e,t){if(I()){if(t)return _.triggerEvent("get-results/start",[oe]),j({...te(e)}),J(t,!0),_.triggerEvent("get-results/finish",[oe]),void(f=e);f.split("#")[0]!==e.split("#")[0]&&await Q(e,!1),f=e}},treeSelector:e})}function ne(){Mo(`results-${m()}`),Mo(`fields-${m()}`)}var re;re={submit:R,reset:B,loadMore:z,getFields:C,refreshFields:async function(){const{url:e}=$(window.location.href);e&&(_.triggerEvent("get-results/start",[oe]),U(!0),await Vo(e,(e=>{!function(e){(e=>{if(!e)return;const t=(0,go.get)([],"fields");Object.keys(e).forEach((n=>{const r=e[n],o=t.get(r.id);o&&o.setOptions(r.options)}))})(Y(e.dom).fields)}(e)}),`fields-${m()}`,!1).catch((e=>{"AbortError"!==e.name&&(0,In.log)(`Failed to refresh fields for query ${m()}: ${e.message}`,"error")})).finally((()=>{U(!1),_.triggerEvent("get-results/finish",[oe])})))},signalUpdate:ne},ar("setProp",v(),"actions",re);const oe={setQuery:function(e,t){L(e)},setAttributes:function(e){ar("setAttributes",v(),e)},setProps:function(e){ar("setProps",v(),e)},setProp:P,getProp:k,setSettings:function(e){ar("setProp",v(),"settings",e)},getSetting:y,initConfig:L,getUid:g,getId:m,getValues:function(){return E().fieldValues},getStoreKey:v,getUrl:function(){return E().url},getName:function(){return s.name},getAttribute:A,getAttributes:function(){return o.attributes},getActions:function(){return o.actions??{}},submit:R,reset:B,remove:function(){l&&l.remove(),F(),ir.unsubscribe(b),ar("removeQuery",v())},loadMore:z,addField:e=>{S({...o.fields,[e.getStoreKey()]:e}),w(q()),p[e.getUrlName()]||(p[e.getUrlName()]=[]),p[e.getUrlName()].push(e);const t=o.activeValues??{};e.getValues().length>0&&(t[d+e.getUrlName()]=e.getValues()),j({...t}),e.on("onUpdateValues",ne)},removeField:e=>{const t={...o.fields};t[e.getStoreKey()]&&delete t[e.getStoreKey()],S(t),w(q()),e.off("onUpdateValues",ne)},getFields:C,isActive:function(){return o.isActive},getActiveUrlArg:N,getQueryContainer:function(){return u},on:_.addEventListener,off:_.removeEventListener};return ar("setProp",r,"_instance",oe),oe};function Yo(e){const t=e.getFields();for(const e in t){const n=t[e].getUrlValues();if(n&&n.length>0&&""!==n[0])return!0}return!1}function Xo(){if("loading"===document.readyState)return!1;if(window?.searchAndFilterData?.shouldMount){const e=h([],"mount");if(e){e();const t=h([],"queries");return t&&function(e){e&&Array.isArray(e)&&e.forEach((e=>{(function(e){if(!function(e){return Yo(e)}(e))return null;const t=e.getProp("containerId");if(!t)return null;const n=e.getAttribute("a11ySkipLinkLabel")||"Skip to search results",r=e.getAttribute("a11ySkipLinkClass")||"search-filter-screen-reader-text",o=document.createElement("a");o.href=`#${t}`,o.className=`skip-link ${r}`,o.textContent=n,o.setAttribute("data-search-filter-skip-link",e.getId()),o.addEventListener("click",(()=>{const e=document.getElementById(t);e&&e.focus()})),document.body.insertBefore(o,document.body.firstChild)})(e),function(e){if(!Yo(e))return;const t=e.getSetting("foundPosts"),n=e.getSetting("currentPage"),r=e.getSetting("maxPages");if(void 0===t)return;const o=Wo(t,n,r,{noResultsText:e.getAttribute("a11yNoResultsText"),singleResultText:e.getAttribute("a11ySingleResultText"),multipleResultsText:e.getAttribute("a11yMultipleResultsText"),pageText:e.getAttribute("a11yPageText")}),i=function(e){const t=`search-filter-query-alert-${e}`;let n=document.getElementById(t);return n||(n=document.createElement("div"),n.id=t,n.className="search-filter-screen-reader-text",n.setAttribute("role","alert"),n.setAttribute("aria-atomic","true"),n)}(e.getId());document.body.appendChild(i),jo(i,o)}(e)}))}(t.getAll()),!0}}return!1}let Jo,Zo=!1;const ei={},ti=(e,t)=>(!t.supports||!t.supports.includes("autoSubmit"))&&"yes"===t.attributes.autoSubmit,ni=(e,t)=>{const n=e.getQuery();if(!n)return;if("yes"!==n.getAttribute("useIndexer"))return;const r=e.queryActions(),{refreshFields:o}=r;if(!o)return;if(ti(0,t))return;let i=100;const s=t.attributes.autoSubmitDelay;s&&""!==s&&(i=parseInt(s)),clearTimeout(Jo),Jo=setTimeout((()=>{o()}),i)},ri=(e,t)=>{const n=e.getElement();e.setProp("isFieldVisible",!1),e.setProp("isInteractive",!1),t.includes("search-filter-field--hidden")||(t.push("search-filter-field--hidden"),e.blur(),e.setProp("classList",t),n.setAttribute("aria-hidden","true"))},oi=e=>{if("yes"!==e.getAttribute("hideFieldWhenEmpty"))return;if(!e.getElement())return;if(0!==e.getValues().length)return;const t=[...e.getProp("classList")],n=e.getAttribute("type");if("choice"===n){if(0===e.getProp("options").length)return void ri(e,t)}else if("range"===n){if(null===e.getAttribute("rangeMin")&&null===e.getAttribute("rangeMax"))return void ri(e,t)}else{if("control"!==n)return;{if("selection"!==e.getAttribute("controlType"))return;const n=e.getProp("availableOptions");if(n&&0===n.length)return void ri(e,t)}}e.getProp("isFieldVisible")||((e,t)=>{const n=e.getElement();e.setProp("isFieldVisible",!0),e.setProp("isInteractive",!0),n.setAttribute("aria-hidden","false"),t.includes("search-filter-field--hidden")&&(t.splice(t.indexOf("search-filter-field--hidden"),1),e.setProp("classList",t))})(e,t)};var ii={fields:{init:(e,t)=>{(e=>{ei[e.getStoreKey()]||(ei[e.getStoreKey()]=e)})(e),oi(e)},onUpdateOptions:(e,t)=>{oi(e)},onUpdateProps:(e,t)=>{t.availableOptions&&oi(e)},onUpdateValues:(e,t,n)=>{((e,t)=>{const n=e.queryActions(),{submit:r}=n;if(!r)return;if(!ti(0,t))return;let o=100;const i=t.attributes.autoSubmitDelay;i&&""!==i&&(o=parseInt(i)),clearTimeout(Jo),Jo=setTimeout((()=>{r()}),o)})(e,n),ni(e,n)},onClearValues:(e,t)=>{((e,t)=>{const n=e.queryActions(),{submit:r}=n;r&&ti(0,t)&&r()})(e,t),ni(e,t)},config:(e,t)=>{let n={...e};return n=((e,t)=>{const{attributes:n}=e,{showLabel:r,labelToggleVisibility:o=!1,labelInitialVisibility:i="visible"}=n;if("yes"!==r)return e;if("yes"!==o)return e;const s={...e},l=t.getProp("isFieldOpen");let a=void 0!==l?l:"visible"===i;return yo()&&(a=!0),s.extensions={labelProps:{fieldIsOpen:a,onClick:()=>{const e=!t.getProp("isFieldOpen");t.setProp("isFieldOpen",e);const n={...t.getProp("extensions")};n.inputClassName=e?null:"search-filter-field__input--hidden",n.labelProps={...n.labelProps,fieldIsOpen:e},t.setProp("extensions",n)},isToggle:!0},inputClassName:a?null:"search-filter-field__input--hidden"},s.isFieldOpen=a,s})(n,t),n=(e=>{if(!e.defaultValues)return e;if(!e.attributes.defaultValueType)return e;const t=e.attributes.defaultValueType;if(!t||"none"===t)return e;const n=e.defaultValues,r={...e},o=Number(e.attributes.queryId),i=searchAndFilter.frontend.queries.get(o);return i?window.location.href.includes(i.getActiveUrlArg())?e:(i.isActive()||(r.values=n),0===r.values.length&&(r.values=n),r):e})(n),n},setProps:(e,t)=>{if(e.isBusy){const n=[...t.getProp("classList")];n.includes("search-filter-field--is-busy")||(n.push("search-filter-field--is-busy"),e.classList=n)}else if(!1===e.isBusy){const n=[...t.getProp("classList")];n.includes("search-filter-field--is-busy")&&(n.splice(n.indexOf("search-filter-field--is-busy"),1),e.classList=n)}return e}},queries:{onSubmit:e=>{clearTimeout(Jo)},onReset:e=>{clearTimeout(Jo)}}};Br("fields",ii.fields),Br("queries",ii.queries),no("search","autocomplete",Er),no("range","number",Dr),no("range","select",Ir),no("range","slider",kr),no("range","radio",Tr),no("control","load_more",$r),no("control","selection",Fr);const si=(e=>{const t=ro();return{create:function(...n){const r=e(...n);return t.triggerEvent("create",[r]),r},getByUid:function(e){const t=[],n=lo.getState();for(const r in n)n[r].uid===e&&t.push(n[r]._instance);return t.length>0?t[0]:null},get:function(e){const t=[],n=lo.getState();for(const r in n)n[r].id===e&&t.push(n[r]._instance);return t.length>0?t[0]:null},getAll:function(e){const t=[],n=lo.getState();for(const r in n)e?n[r].id===e&&t.push(n[r]._instance):t.push(n[r]._instance);return t},enable:function(){const e=lo.getState();for(const t in e)e[t]._instance.enable()},disable:function(){const e=lo.getState();for(const t in e)e[t]._instance.disable()},unload:function(){const e=lo.getState(),t=[];for(const n in e)t.push(e[n].id),e[n]._instance.remove();return t},store:lo,on:t.addEventListener,off:t.removeEventListener}})(mo);p([],"fields",si);const li=(e=>{const t=ro();return{create:function(n){const r=e(n);return t.triggerEvent("create",[r]),r},getByStoreKey:function(e){const t=ir.getState();return t[e]?t[e]._instance:null},get:function(e){if("number"!=typeof e)return yt("Query ID is not a number","error"),null;const t=[],n=ir.getState();for(const r in n)n[r].id===e&&t.push(n[r]._instance);return t.length>0?t[0]:null},getAll:function(){const e=[],t=ir.getState();for(const n in t)e.push(t[n]._instance);return e},enable:function(){const e=ir.getState();for(const t in e)e[t]._instance.enable()},disable:function(){const e=ir.getState();for(const t in e)e[t]._instance.disable()},unload:function(){const e=ir.getState(),t=[];for(const n in e)t.push(e[n].id),e[n]._instance.remove();return t},store:ir,on:t.addEventListener,off:t.removeEventListener}})(Qo);p([],"queries",li),p([],"mount",(function(){const e=window?.searchAndFilterData?.queries,t=(e=>{const t=[];for(const[n,r]of Object.entries(e)){const e=r;if(void 0===e)return void(0,In.log)("Query config not set.","error");let n=li.get(e.id);n||(n=li.create(e)),t.push(n)}return t})(e??{}),n=window?.searchAndFilterData?.fields,r=(e=>{const t=[];for(const[n,r]of Object.entries(e)){const e=r;if(void 0===e)return void(0,In.log)("Field config not set.","error");let n=si.get(e.id);if(!n){const r=document.querySelectorAll(`[data-search-filter-id="${e.id}"]`);if(0===r.length)n=si.create(null,e),t.push(n);else for(const o of r)n=si.create(o,e),t.push(n)}}return t})(n);document.dispatchEvent(new CustomEvent("search-filter/mount",{detail:{queries:t,fields:r}}))})),p([],"unmount",(function(){const e=si.unload(),t=li.unload();document.dispatchEvent(new CustomEvent("search-filter/unmount",{detail:{fieldIds:e,queryIds:t}}))})),document.dispatchEvent(new CustomEvent("search-filter/interactive")),Xo()||document.addEventListener("readystatechange",(e=>{Zo||(Zo=Xo())}))}()}();
!function(){"use strict";var e=window.window.searchAndFilter.frontend.packages.core,t=window.window.searchAndFilter.frontend.packages.core.hooks,l=window.searchAndFilter.frontend.packages.utils,n=window.searchAndFilter.frontend.packages.hooks,o=window.searchAndFilter.frontend.packages.components;function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)({}).hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},s.apply(null,arguments)}const a=()=>{},i=()=>!0,c=()=>!1,r=({value:n,baseClass:o,label:s,index:a,listboxId:i,activeOptionIndex:c,onSelect:r,updateSelected:u,isActive:p=!1,depth:d=-1,focusInput:h,countLabel:b})=>{const f=(0,t.useRef)(null),g=c===a;return(0,e.h)(e.Fragment,null,(0,e.h)("li",{tabIndex:"-1","aria-selected":g,role:"option","data-option-value":n,className:(0,l.classNames)({[o+"__listbox-option"]:!0,[o+"__listbox-option--selected"]:g,[o+"__listbox-option--active"]:p,[o+"__listbox-option--depth-"+d]:-1!==d}),id:i+"-option--"+n,ref:f,onClick:()=>{r(a)},onMouseMove:()=>{a!==c&&u(a)},onMouseUp:e=>{h()}},s,b?(0,e.h)("span",{className:o+"__listbox-option-count"},b):null))};var u=({listboxRef:n,sourceRef:u,id:p,baseClass:d,className:h,options:b,onClickOutside:f=a,activeOptionIndex:g,onSelectOption:v,onOptionChange:m,shouldRenderOption:x=i,isOptionActive:C=c,focusInput:_,contentOverride:O,showCount:k,noResultsText:w="No results",attachment:y="attached",...I})=>{let N=(0,t.useRef)(null);n&&(N=n);const[S,F]=(0,t.useState)(!0),L=e=>{F(!1),m(e)};(0,t.useEffect)((()=>{if(S){if(N.current){const e=(e=>{if(N.current){const t=N.current.querySelector(`li:nth-child(${e+1})`);if(t)return t}return null})(g);e&&((e,t)=>{parseFloat(t.offsetTop)-parseFloat(e.scrollTop)<0&&(e.scrollTop=t.offsetTop);const l=parseFloat(e.scrollTop)+parseFloat(e.clientHeight);parseFloat(t.offsetTop)+parseFloat(t.clientHeight)>l&&(e.scrollTop=parseFloat(t.offsetTop)-(parseFloat(e.clientHeight)-parseFloat(t.clientHeight)))})(N.current,e)}}else F(!0)}),[g,N]);const R={[d+"__listbox"]:d,[d+"__listbox--"+y]:!0};h&&(R[h]=!0);const A=[];return O||b.forEach(((t,l)=>{x(t)&&A.push((0,e.h)(r,{key:t.value,index:l,value:t.value,label:t.label,activeOptionIndex:g,depth:t.depth,listboxId:p,onSelect:v,updateSelected:L,baseClass:d,isActive:C(t),focusInput:_,countLabel:k?t.countLabel:null}))})),(0,e.h)(o.Popover,s({name:p,id:p,className:(0,l.classNames)(R),sourceRef:u,matchWidth:!0,onClickOutside:f},I),(0,e.h)("ul",{className:d+"__listbox-list",role:"listbox",ref:N},O||A,O||0!==b.length?null:(0,e.h)("li",{className:(0,l.classNames)(d+"__listbox-option",d+"__listbox-option--disabled")},w)))};function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)({}).hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},p.apply(null,arguments)}const d=()=>{},h={},b=({value:s="",icon:a,placeholder:i,showLabel:c,hasClear:r=!0,label:f,isInteractive:g=!0,options:v=[],onChange:m=d,onEnter:x=d,listboxProps:C=h,InputComponent:_,clickAction:O="open",onSelectOption:k,shouldRenderOption:w,isOptionActive:y,onKeyDownCallback:I=d,onKeyUpCallback:N=d,onControlEscape:S=d,closeListboxOnScroll:F=!0,updateListboxOnScroll:L=!1,onLoseFocus:R=d,onShowListbox:A,listboxClassName:E,listboxContent:T,listboxAttachment:P="attached",hideSuggestionsOnEmpty:D=!1,onClear:$=d,inputClassName:V,showCount:j=!1,inputProps:M,enableSearch:H=!0,noResultsText:K="No results",singularResultsCountText:U="%d result available",pluralResultsCountText:B="%d results available",disabled:q=!1,...z})=>{const W="search-filter-component-combobox-base",G=(0,t.useRef)(null),J=(0,t.useRef)(null),Q=(0,t.useRef)(null),X=s,Y=m,Z=(0,n.useInstanceId)(b),ee="search-filter-input-combobox-"+Z,te="search-filter-input-combobox-listbox-"+Z,{isVisible:le,toggle:ne,position:oe}=(0,o.usePopover)(te),se=(0,o.useFocusDispatch)(),[ae,ie]=(0,t.useState)("text"),ce=(0,t.useMemo)((()=>Array.isArray(v)?v.map((e=>"string"==typeof e?{label:e,value:e}:e)):[]),[v]),[re,ue]=(0,t.useState)(0),pe=(0,t.useMemo)((()=>ce.filter((e=>(""!==e.value||""===s)&&!!e.label&&String(e.label).toLowerCase().includes(String(s).toLowerCase())))),[s,ce]);(0,t.useLayoutEffect)((()=>{he()}),[pe]);const de=e=>!D||""!==e;(0,t.useLayoutEffect)((()=>{de(X)||ve(!1)}),[X]);const he=()=>{ue((e=>pe.length>0?0:e))},be=()=>{ue((e=>pe.length>0?pe.length-1:e))},fe=e=>{g&&!q&&(xe(!0),ge(),de(s)&&("open"===O?ve(!0):"toggle"===O&&ve()))},ge=()=>{g&&!q&&se({type:"SET",id:ee})},ve=e=>{if(!g||q)return;let t=e;void 0===e&&(t=!le),ne(t),t?A?A({setActiveOption:ue,setFirstOption:he,filteredOptions:pe}):he():ue(-1)},[me,xe]=(0,t.useState)(!1),Ce=(0,t.useCallback)((e=>{xe(!1),ve(!1)}),[]),_e=(0,t.useCallback)((e=>{const t=pe[e];k?k(t):Y(t.label),ve(!1),ge()}),[pe,k]),Oe=(0,t.useCallback)((e=>{ue(e)}),[]),[ke,we]=(0,t.useState)(-1),ye=()=>{if(H&&G.current){const e=G.current,t=e.selectionStart;t===e.selectionEnd&&we(t)}},Ie=e=>{H&&e.target?.activeElement&&e.target.activeElement.id===ee&&ye()};if((0,t.useEffect)((()=>(document.addEventListener("selectionchange",Ie),()=>{document.removeEventListener("selectionchange",Ie)})),[]),!_)return null;const Ne=pe.length;let Se;return Se=0===Ne?K:(0,l.getNumericString)(U,B,Ne),(0,e.h)(e.Fragment,null,(0,e.h)(_,p({id:ee,icon:a,inputRef:G,controlRef:J,label:f,showLabel:c,hasClear:r,onChange:e=>{Y(e),de(e)&&(ve(!0),he(),ye())},onClear:$,value:X,placeholder:i,readOnly:!g,onEnter:x,onClick:fe,isInteractive:g,disabled:q,focusInput:ge,onSelectOption:k,popupVisible:le,inputClassName:V,inputProps:{maxlength:"2048",autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",role:"combobox","aria-autocomplete":"list","aria-controls":te,"aria-haspopup":"listbox","aria-expanded":le,"aria-activedescendant":le&&-1!==re&&pe.length>0?te+"-option--"+pe[re].value:null,readOnly:!g,tabIndex:g?null:-1,onKeyDown:e=>{let t="text";const l=0===ke,n=ke===e.target?.value?.length;switch(e.keyCode){case 9:ve(!1),xe(!1);break;case 40:!le&&de(X)?ve(!0):le&&ue((e=>e<pe.length-1?e+1:e)),t="listbox",e.preventDefault();break;case 38:le&&ue((e=>e>0?e-1:e)),t="listbox",e.preventDefault();break;case 13:if(le&&v[re])return void _e(re);x(),e.preventDefault();break;case 32:break;case 36:if(!le)break;0===re?l&&(t="listbox"):("listbox"===ae||l)&&(t="listbox",(e=>{he(),e.preventDefault()})(e));break;case 35:if(!le)break;re===pe.length-1?n&&(t="listbox"):("listbox"===ae||n)&&(t="listbox",(e=>{be(),e.preventDefault()})(e));break;case 33:t="listbox",(e=>{const t=re-5;t>=0?ue(t):he(),e.preventDefault()})(e);break;case 34:t="listbox",(e=>{const t=re+5;t<=pe.length-1?ue(t):be(),e.preventDefault()})(e)}ie(t),I(e.keyCode,l,n)},onKeyUp:e=>{switch(e.keyCode){case 27:(e=>{H&&(le?ve(!1):S(e))})(e);break;case 46:case 8:ye()}N(e.keyCode)},onFocus:()=>{g&&!q&&xe(!0)},onBlur:e=>{g&&!q&&(e.relatedTarget&&Q.current.contains(e.relatedTarget)||R(e))},...M},controlProps:{onClick:fe,tabIndex:g?null:-1,className:(0,l.classNames)(W,{[`${W}--listbox-visible`]:le,[`${W}--listbox-position-${oe}`]:le&&oe?oe:null,[`${W}--focused`]:me,[`${W}--disabled`]:q,[`${W}--listbox-${P}`]:!0})},showCount:j,options:v,enableSearch:!q&&H,listboxId:te},z)),(0,e.h)("div",{"aria-live":"polite",role:"status",className:W+"__screen-reader-text"},Se),g?(0,e.h)(u,p({className:E,attachment:P,listboxRef:Q,baseClass:W,sourceRef:J,id:te,options:pe,activeOptionIndex:re,onSelectOption:_e,onOptionChange:Oe,onClickOutside:Ce,shouldRenderOption:w,isOptionActive:y,closeOnScroll:F,updateOnScroll:L,focusInput:ge,contentOverride:T,showCount:j,noResultsText:K},C)):null)};function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)({}).hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},f.apply(null,arguments)}const g=({inputId:n,inputRef:s,inputProps:a,baseClass:i,listboxId:c,labelId:r,showLabel:u,label:p,enableSearch:d,multiple:h,placeholder:b,interactive:g,selection:v,searchValue:m,setSearchValue:x,toggleOption:C,focusInput:_,showCount:O})=>{const{toggle:k,isVisible:w}=(0,o.usePopover)(c),[y,I]=(0,t.useState)(!1),[N,S]=(0,t.useState)(-1);let F={className:i+"__selection"};d||(F.role="combobox",F.tabindex="0",F["aria-expanded"]="false",F["aria-controls"]=c,F["aria-haspopup"]="listbox",F["aria-labelledby"]="yes"===u?r:null,F["aria-label"]="yes"===u?null:p);let L={};if(d)if(L={type:"text",value:m,"aria-labelledby":"yes"===u?r:null,"aria-label":"yes"===u?null:p,id:n,className:i+"__actions-input",onInput:e=>{const t=e.target.value;x(t),g&&k(true)},tabIndex:g?null:-1,readOnly:!g,placeholder:0===v.length?b:"",...a},h){let e=m?.length>0?m.length:1;0===v.length&&b?.length&&b.length>e&&(e=b.length),L.style={width:`calc(${e}ch + 6px)`}}else 0===v.length&&(L.placeholder=b);const R={onClick:e=>{d&&"function"==typeof e.currentTarget.select&&e.currentTarget.select(),I(!1)},ref:s};d?L=(0,l.mergeObjects)(L,R):F=(0,l.mergeObjects)(F,R);const A=v.length>0;let E=A?v[0].label:"";const T=0===v.length?b:"";return d||h||0!==v.length||(F.className+=` ${i}__selection-placeholder`,E=b),(0,e.h)(e.Fragment,null,h&&(0,e.h)("div",F,v.map(((t,l)=>{let n="";return y&&l===v.length-1&&(n=" "+i+"__selection-item--active"),(0,e.h)("div",{key:l,className:i+"__selection-item"+n},(0,e.h)("div",{className:i+"__selection-label"},t.label,O&&(0,e.h)("span",{className:i+"__selection-count"},t.countLabel)),(0,e.h)(o.Icon,{icon:"clear",className:i+"__selection-remove",onClick:e=>{C(t),_(),e.stopPropagation(),e.preventDefault()}}))})),d&&(0,e.h)("input",f({},L,{placeholder:T})),!d&&0===v.length&&(0,e.h)("div",{className:i+"__selection-placeholder"},T)),!h&&(0,e.h)(e.Fragment,null,""===m&&(0,e.h)("div",F,E,O&&A?(0,e.h)("span",{className:i+"__selection-count"},v[0].countLabel):null),d&&(0,e.h)("input",L)))};g.templateVars=["selectionLabel","placeholderText",["multiple",{type:"control"}],["selection",{type:"list",child:{type:"object",props:["label"]}}]];var v=g,m=({baseClass:t,show:n,onClick:s=()=>{}})=>(0,e.h)("div",{className:(0,l.classNames)({[t+"__clear-selection"]:!0,[t+"--hidden"]:!n})},(0,e.h)(o.Icon,{icon:"clear",onClick:s,isInteractive:!0,isDestructive:!0,label:"Clear selection",className:t+"__clear-button"}));function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)({}).hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},x.apply(null,arguments)}const C=s=>{const a="search-filter-component-combobox",{id:i,icon:c,inputRef:r,controlRef:u,label:p,showLabel:d,hasClear:h=!0,onChange:b,value:f,placeholder:g,labelProps:_,isInteractive:O,inputProps:k,controlProps:w,options:y,fieldValue:I,setFieldValue:N,onSelectOption:S,onClear:F,multiple:L,enableSearch:R=!0,scale:A=4,escClears:E,focusInput:T,description:P,showDescription:D,inputClassName:$,showCount:V,showDivider:j=!0,listboxId:M}=s,H=(0,n.useInstanceId)(C),K=i??"search-filter-input-combobox-"+H;(0,o.useFocusEvent)(r,K);const U="search-filter-label-"+(0,n.useInstanceId)(o.Label);let B={};R?B=w:(B.className=w.className,B.onClick=w.onClick);const q=[a+"__actions"];!1===L&&0===I.length&&q.push(a+"__actions--empty");const[z,W]=(0,t.useState)([]);(0,t.useEffect)((()=>{if(!y)return;const e=[];I.forEach((t=>{const l=y.findIndex((e=>e.value===t));-1!==l&&e.push(y[l])})),W(e)}),[y,I]);const G=z.length>0;return(0,e.h)(e.Fragment,null,(0,e.h)(o.Label,x({showLabel:d,label:p,id:U,forId:K,isInteractive:O},_)),(0,e.h)(o.Description,{description:P,showDescription:D}),(0,e.h)("div",x({},B,{"aria-labelledby":"yes"===d?U:null,"aria-label":"yes"===d?null:p,ref:u,className:(0,l.classNames)(w.className,a,$,`${a}--mode-${L?"multiple":"single"}`,`${a}--search-${R?"enabled":"disabled"}`,{[`${a}--has-icon`]:c})}),(0,e.h)("div",{className:a+"__header"},c&&(0,e.h)(o.Icon,{icon:c,className:a+"__icon"}),(0,e.h)("div",{className:(0,l.classNames)(q)},(0,e.h)(v,{baseClass:a,listboxId:M,inputId:K,labelId:U,showLabel:d,label:p,inputRef:r,inputProps:k,multiple:L,enableSearch:R,interactive:O,selection:z,fieldValue:I,searchValue:f,setFieldValue:N,setSearchValue:b,escClears:E,placeholder:g,toggleOption:S,focusInput:T,showCount:"yes"===V,onClear:F,onChange:b,hasClear:h})),(0,e.h)(m,{baseClass:a,show:h&&G,onClick:e=>{"click"===e.type&&e.stopPropagation(),N([]),F?F():b(""),T()}}),j?(0,e.h)("div",{className:a+"__input-divider"}):null,(0,e.h)("div",{className:a+"__listbox-toggle"},(0,e.h)(o.Icon,{icon:"arrow-down"})))))};var _=window.searchAndFilter.frontend.packages.registry;(0,_.register)(["packages","components"],"ComboboxControl",(l=>{const n=l.value,o=l.onChange,[s,a]=(0,t.useState)(""),i=(0,t.useCallback)((e=>!(l.multiple&&(!l.multiple||l.hideSelectedOptions))&&n.includes(e.value)),[n]),c=(0,t.useCallback)((e=>!l.multiple||!l.hideSelectedOptions||!n.includes(e.value)),[n]);return(0,e.h)(b,x({InputComponent:C},l,{clickAction:"toggle",fieldValue:n,setFieldValue:o,value:s,onChange:a,onSelectOption:e=>{a(""),(e=>{l.enableSearch&&a("");let t=[...n];if(l.multiple){const l=n.findIndex((t=>t===e.value));-1!==l?(t.splice(l,1),o(t)):t.push(e.value)}else t=[e.value];o(t)})(e)},isOptionActive:i,shouldRenderOption:c,onLoseFocus:e=>{a("")},onControlEscape:l.escClears?()=>{s.length>0?a(""):!l.multiple&&n.length>0&&o([])}:void 0,onShowListbox:({setActiveOption:e,setFirstOption:t,filteredOptions:o})=>{if(l.multiple)return void t();if(0===n.length)return void t();const s=n[0],a=o.findIndex((e=>e.value===s));-1!==a?e(a):t()}}))})),(0,_.register)(["packages","components"],"ComboboxBase",b)}();
!function(){var e={129:function(e,a){var r,n;void 0===(n="function"==typeof(r=function(){"use strict";var e=["decimals","thousand","mark","prefix","suffix","encoder","decoder","negativeBefore","negative","edit","undo"];function a(e){return e.split("").reverse().join("")}function r(e,a){return e.substring(0,a.length)===a}function n(e,a,r){if((e[a]||e[r])&&e[a]===e[r])throw new Error(a)}function t(e){return"number"==typeof e&&isFinite(e)}function i(e,r,n,i,s,l,o,c,u,p,g,d){var f,h,m,x,b,v=d,F="",C="";return l&&(d=l(d)),!!t(d)&&(!1!==e&&0===parseFloat(d.toFixed(e))&&(d=0),d<0&&(f=!0,d=Math.abs(d)),!1!==e&&(b=e,x=(x=d).toString().split("e"),d=(+((x=(x=Math.round(+(x[0]+"e"+(x[1]?+x[1]+b:b)))).toString().split("e"))[0]+"e"+(x[1]?+x[1]-b:-b))).toFixed(b)),-1!==(d=d.toString()).indexOf(".")?(m=(h=d.split("."))[0],n&&(F=n+h[1])):m=d,r&&(m=a(m).match(/.{1,3}/g),m=a(m.join(a(r)))),f&&c&&(C+=c),i&&(C+=i),f&&u&&(C+=u),C+=m,C+=F,s&&(C+=s),p&&(C=p(C,v)),C)}function s(e,a,n,i,s,l,o,c,u,p,g,d){var f,h="";return g&&(d=g(d)),!(!d||"string"!=typeof d)&&(c&&r(d,c)&&(d=d.replace(c,""),f=!0),i&&r(d,i)&&(d=d.replace(i,"")),u&&r(d,u)&&(d=d.replace(u,""),f=!0),s&&function(e,a){return e.slice(-1*a.length)===a}(d,s)&&(d=d.slice(0,-1*s.length)),a&&(d=d.split(a).join("")),n&&(d=d.replace(n,".")),f&&(h+="-"),""!==(h=(h+=d).replace(/[^0-9\.\-.]/g,""))&&(h=Number(h),o&&(h=o(h)),!!t(h)&&h))}function l(a,r,n){var t,i=[];for(t=0;t<e.length;t+=1)i.push(a[e[t]]);return i.push(n),r.apply("",i)}return function a(r){if(!(this instanceof a))return new a(r);"object"==typeof r&&(r=function(a){var r,t,i,s={};for(void 0===a.suffix&&(a.suffix=a.postfix),r=0;r<e.length;r+=1)if(void 0===(i=a[t=e[r]]))"negative"!==t||s.negativeBefore?"mark"===t&&"."!==s.thousand?s[t]=".":s[t]=!1:s[t]="-";else if("decimals"===t){if(!(i>=0&&i<8))throw new Error(t);s[t]=i}else if("encoder"===t||"decoder"===t||"edit"===t||"undo"===t){if("function"!=typeof i)throw new Error(t);s[t]=i}else{if("string"!=typeof i)throw new Error(t);s[t]=i}return n(s,"mark","thousand"),n(s,"prefix","negative"),n(s,"prefix","negativeBefore"),s}(r),this.to=function(e){return l(r,i,e)},this.from=function(e){return l(r,s,e)})}})?r.apply(a,[]):r)||(e.exports=n)}},a={};function r(n){var t=a[n];if(void 0!==t)return t.exports;var i=a[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(a,{a:a}),a},r.d=function(e,a){for(var n in a)r.o(a,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:a[n]})},r.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},function(){"use strict";var e=window.window.searchAndFilter.frontend.packages.core,a=window.window.searchAndFilter.frontend.packages.core.hooks,n=window.searchAndFilter.frontend.packages.hooks,t=window.searchAndFilter.frontend.packages.components,i=window.searchAndFilter.frontend.packages.utils,s=r(129),l=r.n(s);const o=(e,a)=>Math.round(e*10**a)/10**a,c={},u=e=>{const{rangeValuePrefix:a,rangeValueSuffix:r,rangeDecimalPlaces:n,rangeThousandCharacter:t=",",rangeDecimalCharacter:i=".",rangeMin:s,rangeMax:l,rangeStep:u}=e,p=Number(n||0);let g=null;null!==s&&(g=void 0!==s&&""!==s?parseFloat(s):0,g=o(g,p));let d=null;null!==l&&(d=void 0!==l&&""!==l?parseFloat(l):100,d=o(d,p));let f=null;return null!==u&&(f=u&&""!==u?parseFloat(u):1),f=o(f,p),f<=0&&(f=1),{min:g??0,max:d??0,step:f??1,formatOptions:{prefix:a,suffix:r,decimals:p,thousand:t,mark:i}??c}},p=e=>void 0!==e&&""!==e&&e,g=(e,a)=>{if(a){const r=(e=>{const a={...e};return e.decimals||(a.decimals=0),0===a.decimals&&(a.mark=""),a.decimals>0&&a.mark===e.thousand&&(a.thousand=""),e.decimals>=7&&(a.decimals=6),a})(a);return l()(r).to(e)}return e},d=(e,r,n,t,s,l)=>{const c=l.decimals??0;if(!b(e,r)&&n&&t)return{min:[{value:n,label:g(parseFloat(n),l)}],max:[{value:t,label:g(parseFloat(t),l)}]};const u=o(e,c)??0,p=o(r,c)??0,d=(0,a.useMemo)((()=>{const e=[];let a=u,r=!1;for(;!r;){if(a>p||e.length>=200){r=!0;break}e.push(a),a=o(a+s,c)}return e.length>=200&&(0,i.log)("Maximum number of options reached for range field.","warning"),e}),[u,p,s]).map((e=>[{value:String(e.toFixed(c)),label:String(g(e,l))}])).flat();return{min:d,max:d}},f=(e,a,r,n)=>{if(e&&parseFloat(a)===parseFloat(e))return e;if(!(parseFloat(a)>parseFloat(n))){if(parseFloat(a)<parseFloat(r))return r;if(parseFloat(a)!==parseFloat(n))return a}},h=(e,a,r,n)=>{if(e&&parseFloat(a)===parseFloat(e))return e;if(!(parseFloat(a)<parseFloat(r))){if(parseFloat(a)>parseFloat(n))return n;if(parseFloat(a)!==parseFloat(r))return a}},m=(e,a,r,n,t,i)=>{const s=parseFloat(r??0).toFixed(i),l=parseFloat(n??0).toFixed(i),o=(e,a)=>{if(void 0===e&&void 0===a)t([]);else{let r=e?String(e):void 0,n=a?String(a):void 0;void 0===r&&(r=s),void 0===n&&(n=l),t([r,n])}};return{updateMinValue:function(a,r){const n=h(e,a,s,l);let t=r;n&&parseFloat(n)>parseFloat(r)&&(t=n),o(n,f(void 0,t,s,l))},updateMaxValue:function(e,r){const n=f(a,r,s,l);let t=e;n&&parseFloat(n)<parseFloat(e)&&(t=n),o(h(void 0,t,s,l),n)}}},x=(e,a,r,n,t=0)=>((e,a,r,n,t=0)=>{if(null===r&&null===n)return c=parseFloat(e??0).toFixed(t),u=parseFloat(a??0).toFixed(t),null===e&&(c=r),null===a&&(u=n),{visibleMinValue:c,visibleMaxValue:u};const i=parseFloat(e),s=parseFloat(a),l=parseFloat(r),o=parseFloat(n);let c=p(e)?i.toFixed(t):l.toFixed(t),u=p(a)?s.toFixed(t):o.toFixed(t);return p(e)&&i<l&&(c=l.toFixed(t)),p(a)&&s>o&&(u=o.toFixed(t)),{visibleMinValue:c,visibleMaxValue:u}})(e,a,r,n,t),b=(e,a)=>null!==e&&null!==a;function v(){return v=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var r=arguments[a];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},v.apply(null,arguments)}const F=()=>{},C=({values:r,appliedValues:s,label:l,separator:o,showLabel:c,isInteractive:p=!0,onChange:g=F,description:f,showDescription:h,inputClassName:w,labelProps:M,rangeValuePrefix:V,rangeValueSuffix:_,rangeDecimalPlaces:N,rangeThousandCharacter:P,rangeDecimalCharacter:I,rangeMin:S,rangeMax:D,rangeStep:y})=>{const{min:k,max:O,step:L,formatOptions:j}=u({rangeValuePrefix:V,rangeValueSuffix:_,rangeDecimalPlaces:N,rangeThousandCharacter:P,rangeDecimalCharacter:I,rangeMin:S,rangeMax:D,rangeStep:y}),[T,R]=r,[A,E]=s,B=b(k,O),$=j.decimals??0,{updateMinValue:U,updateMaxValue:W}=m(A,E,k,O,g,$),{visibleMinValue:X,visibleMaxValue:q}=x(T,R,k,O,$),{min:z,max:G}=d(k,O,X,q,L,j),[H,J]=(0,a.useMemo)((()=>[[X],[q]]),[X,q]),K="search-filter-label-"+(0,n.useInstanceId)(t.Label),Q="search-filter-component-range-radio-"+(0,n.useInstanceId)(C);return(0,e.h)(e.Fragment,null,(0,e.h)(t.Label,v({label:l,id:K,showLabel:c},M)),(0,e.h)(t.Description,{description:f,showDescription:h}),(0,e.h)("div",{id:Q,role:"group",className:(0,i.classNames)("search-filter-select-range",w)},(0,e.h)(t.RadioControl,{isInteractive:p,value:H,onChange:e=>{B&&p&&U(e[0],R)},options:z}),o&&(0,e.h)("span",{className:"search-filter-input-range__separator"},o),(0,e.h)(t.RadioControl,{isInteractive:p,value:J,onChange:e=>{B&&p&&W(T,e[0])},options:G})))};function w(){return w=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var r=arguments[a];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},w.apply(null,arguments)}const M=()=>{},V=({values:a,appliedValues:r,onChange:s=M,separator:l,label:o,showLabel:c,isInteractive:p=!0,description:g,showDescription:d,inputClassName:f,labelProps:h,rangeValuePrefix:v,rangeValueSuffix:F,rangeDecimalPlaces:C,rangeThousandCharacter:_,rangeDecimalCharacter:N,rangeMin:P,rangeMax:I,rangeStep:S})=>{const{min:D,max:y,step:k,formatOptions:O}=u({rangeValuePrefix:v,rangeValueSuffix:F,rangeDecimalPlaces:C,rangeThousandCharacter:_,rangeDecimalCharacter:N,rangeMin:P,rangeMax:I,rangeStep:S}),[L,j]=a,[T,R]=r,A=b(D,y),E=O.decimals??0,{updateMinValue:B,updateMaxValue:$}=m(T,R,D,y,s,E),{visibleMinValue:U,visibleMaxValue:W}=x(L,j,D,y,E),X="search-filter-label-"+(0,n.useInstanceId)(t.Label),q="search-filter-component-range-number-"+(0,n.useInstanceId)(V),z={type:"number",min:D??0,max:y??0,step:k};return(0,e.h)(e.Fragment,null,(0,e.h)(t.Label,w({label:o,id:X,showLabel:c},h)),(0,e.h)(t.Description,{description:g,showDescription:d}),(0,e.h)("div",{id:q,role:"group",className:(0,i.classNames)("search-filter-select-range",f)},(0,e.h)(t.TextControl,{value:U,onChange:e=>{A&&p&&B(e,j)},inputProps:z}),l&&(0,e.h)("span",{className:"search-filter-select-range__separator"},l),(0,e.h)(t.TextControl,{value:W,onChange:e=>{A&&p&&$(L,e)},inputProps:z})))};function _(){return _=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var r=arguments[a];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_.apply(null,arguments)}const N=()=>{},P=({values:r,appliedValues:s,separator:l,label:o,showLabel:c,isInteractive:p=!0,description:g,showDescription:f,listboxClassName:h,listboxProps:v,inputClassName:F,onChange:C=N,labelProps:w,rangeValuePrefix:M,rangeValueSuffix:V,rangeDecimalPlaces:I,rangeThousandCharacter:S,rangeDecimalCharacter:D,rangeMin:y,rangeMax:k,rangeStep:O})=>{const{min:L,max:j,step:T,formatOptions:R}=u({rangeValuePrefix:M,rangeValueSuffix:V,rangeDecimalPlaces:I,rangeThousandCharacter:S,rangeDecimalCharacter:D,rangeMin:y,rangeMax:k,rangeStep:O}),[A,E]=r,[B,$]=s,U=b(L,j),W=R.decimals??0,{updateMinValue:X,updateMaxValue:q}=m(B,$,L,j,C,W),{visibleMinValue:z,visibleMaxValue:G}=x(A,E,L,j,W),{min:H,max:J}=d(L,j,z,G,T,R),[K,Q]=(0,a.useMemo)((()=>[[z],[G]]),[z,G]),Y="search-filter-label-"+(0,n.useInstanceId)(t.Label),Z="search-filter-component-range-select-"+(0,n.useInstanceId)(P);return(0,e.h)(e.Fragment,null,(0,e.h)(t.Label,_({label:o,id:Y,forId:Z,showLabel:c},w)),(0,e.h)(t.Description,{description:g,showDescription:f}),(0,e.h)("div",{id:Z,role:"group",className:(0,i.classNames)("search-filter-select-range",F)},(0,e.h)(t.ComboboxControl,{options:H,value:K,onChange:e=>{U&&p&&X(e[0],E)},disabled:!U,listboxClassName:h,hasClear:!1,isInteractive:p,listboxProps:v}),l&&(0,e.h)("span",{className:"search-filter-select-range__separator"},l),(0,e.h)(t.ComboboxControl,{options:J,value:Q,onChange:e=>{U&&p&&q(A,e[0])},disabled:!U,listboxClassName:h,hasClear:!1,isInteractive:p,listboxProps:v})))};function I(){return I=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var r=arguments[a];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},I.apply(null,arguments)}const S=({label:r,showLabel:s,description:l,showDescription:o,values:c,appliedValues:p,onChange:d,labelProps:f,inputClassName:h,showInputFields:v=!1,showFilterButton:F=!1,inlineInput:C=!0,isLoading:w=!1,isUpdating:M=!1,separator:V,textPosition:_="above",showReset:N,resetPosition:P,isEditor:D=!1,isInteractive:y=!0,onSubmit:k=()=>{},rangeValuePrefix:O,rangeValueSuffix:L,rangeDecimalPlaces:j,rangeThousandCharacter:T,rangeDecimalCharacter:R,rangeMin:A,rangeMax:E,rangeStep:B})=>{const{min:$,max:U,step:W,formatOptions:X}=u({rangeValuePrefix:O,rangeValueSuffix:L,rangeDecimalPlaces:j,rangeThousandCharacter:T,rangeDecimalCharacter:R,rangeMin:A,rangeMax:E,rangeStep:B}),q="search-filter-label-"+(0,n.useInstanceId)(t.Label),z="search-filter-component-range-slider-"+(0,n.useInstanceId)(S),G=(0,a.useRef)(null),H=(0,a.useRef)(null),[J,K]=c,[Q,Y]=p,Z=b($,U),ee=X.decimals??0,{updateMinValue:ae,updateMaxValue:re}=m(Q,Y,$,U,d,ee),{visibleMinValue:ne,visibleMaxValue:te}=x(J,K,$,U,ee),ie=(0,a.useRef)(null),[se,le]=(0,a.useState)(0);(0,a.useLayoutEffect)((()=>{C&&ie.current&&le(ie.current?.offsetWidth)}),[C,le]);const oe=(0,a.useMemo)((()=>Z?{"--search-filter-range-slider-progress-low":(ne-$)/(U-$)*100+"%","--search-filter-range-slider-progress-high":(te-$)/(U-$)*100+"%"}:{"--search-filter-range-slider-progress-low":"0%","--search-filter-range-slider-progress-high":"0%"}),[Z,ne,te,$,U]),ce=(0,a.useCallback)((e=>{Z&&y&&ae(e.target.value,K)}),[d,K,Z,y,ae]),ue=(0,a.useCallback)((e=>{Z&&y&&re(J,e.target.value)}),[d,J,Z,y,re]),pe=w||!Z||!y,ge="search-filter-component-range-slider",de=(0,i.classNames)(ge,v&&`${ge}--has-input-fields`,F&&`${ge}--has-filter-button`,!Z&&`${ge}--is-disabled`,(C||se<=300)&&`${ge}--is-input-inline`,h),fe=String(ne),he=String(te),me=(0,a.useCallback)((e=>{if("INPUT"===e.target.tagName)return;if(w||!Z||!y)return;const a=e.currentTarget.getBoundingClientRect(),r=e.clientX-a.left,n=a.width,t=$+(U-$)*r/n,i=Math.round((t-$)/W),s=parseFloat(($+i*W).toFixed(X.decimals));Math.abs(s-parseFloat(ne))<=Math.abs(s-parseFloat(te))?ae(s,K):re(J,s)}),[w,Z,y,$,U,ne,te,W,X.decimals,ae,re,J,K]),xe=(0,e.h)("div",{className:(0,i.classNames)("search-filter-component-range-slider__range-input-wrapper"),onClick:me},(0,e.h)("div",{id:z,className:(0,i.classNames)("search-filter-component-range-slider__range-input-bar",{[`${ge}--is-loading`]:w&&M}),role:"group"},(0,e.h)("div",{className:"search-filter-component-range-slider__range-input-progress",style:oe}),(0,e.h)("input",{type:"range",className:"search-filter-component-range-slider__range-input search-filter-component-range-slider__range-input--min","aria-label":"Filter products by minimum price","aria-valuetext":fe,value:ne,onChange:ce,step:W,min:$,max:U,ref:G,disabled:pe,tabIndex:v?-1:0}),(0,e.h)("input",{type:"range",className:"search-filter-component-range-slider__range-input search-filter-component-range-slider__range-input--max","aria-label":"Filter products by maximum price","aria-valuetext":he,value:te,onChange:ue,step:W,min:$,max:U,ref:H,disabled:pe,tabIndex:v?-1:0}))),be=Z||ne!==te?(0,e.h)("div",{className:"search-filter-component-range-slider__range-text search-filter-component-range-slider__range-text"},(0,e.h)("div",{className:"search-filter-component-range-slider__range-text-min"},g(parseFloat(ne),X)),V&&(0,e.h)("div",{className:"search-filter-component-range-slider__range-text-seperator"},V),(0,e.h)("div",{className:"search-filter-component-range-slider__range-text-max"},g(parseFloat(te),X))):(0,e.h)("div",{className:"search-filter-component-range-slider__range-text search-filter-component-range-slider__range-text"},(0,e.h)("div",{className:"search-filter-component-range-slider__range-text-min"},g(parseFloat(ne),X)));return(0,e.h)(e.Fragment,null,(0,e.h)(t.Label,I({label:r,id:q,showLabel:s,forId:z},f)),(0,e.h)(t.Description,{description:l,showDescription:o}),(0,e.h)("div",{className:de,ref:ie},!v&&"above"===_&&be,xe,!v&&"below"===_&&be,(0,e.h)("div",{className:"search-filter-component-range-slider__actions"})))};var D=window.searchAndFilter.frontend.packages.registry;(0,D.register)(["packages","components"],"RangeRadioControl",C),(0,D.register)(["packages","components"],"RangeNumberControl",V),(0,D.register)(["packages","components"],"RangeSelectControl",P),(0,D.register)(["packages","components"],"RangeSliderControl",S)}()}();
!function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(e){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?t(Object(o),!0).forEach((function(t){n(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function n(e,t,r){return(t=i(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(t){var r=function(t){if("object"!=e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==e(r)?r:r+""}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function a(e){if(window.elementorFrontend&&window.elementorFrontend.elementsHandler&&window.elementorFrontend.elementsHandler.runReadyTrigger){var t=window.elementorFrontend.elementsHandler.runReadyTrigger;e&&(t(e),e.querySelectorAll(".elementor-widget").forEach((function(e){t(e)})))}}var f={};window.addEventListener("elementor/frontend/init",(function(){var t=new WeakMap,n=function(){function n(){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var o=arguments.length,i=new Array(o),u=0;u<o;u++)i[u]=arguments[u];return function(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}(r=function(t,r,n){return r=l(r),function(t,r){if(r&&("object"==e(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}(t,c()?Reflect.construct(r,n||[],l(t).constructor):r.apply(t,n))}(this,n,[].concat(i)),t,null),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(n,elementorModules.frontend.handlers.Base),i=n,(s=[{key:"getDefaultSettings",value:function(){return{selectors:{field:".search-filter-field"}}}},{key:"initEditorField",value:function(e,t,n){var o=JSON.parse(e.getAttribute("data-search-filter-settings")),i=o.elementorId,c=function(e,t){var r,n=0;if(f[e])n=f[e];else{var o=(r=t.id,window.searchAndFilter.frontend.fields.get(parseInt(r))||null);o&&!o.getElement()&&(n=o.getUid())}return n}(i,o),l={};if(!this.isEdit){var u=function(e){return window.searchAndFilter.frontend.fields.getByUid(parseInt(e))||null}(c);u&&(l={attributes:u.getAttributes(),values:u.getValues(),options:u.getProp("options")},u.remove())}if(e.getAttribute("data-search-filter-settings")){var s=r(r({},o),l);(function(e){var t=function(e){return window.searchAndFilter.frontend.queries.get(parseInt(e))||null}(e);if(!t){var r=window.searchAndFilterData.queries[parseInt(e)];r&&(t=function(e){return(0,window.searchAndFilter.frontend.queries.create)(e)}(r))}return!!t&&(t.getProp("elementorListeners")||function(e){"yes"===e.getAttribute("resultsDynamicUpdate")&&["elementor/widget"].includes(e.getAttribute("queryIntegration"))&&(e.setProp("elementorListeners",!0),e.on("get-results/finish",(function(e,t){var r=e.getQueryContainer();!function(e,t){"load-more"===(null==t?void 0:t.action)&&e.classList.contains("elementor-widget-portfolio")&&e.querySelectorAll(".elementor-portfolio-ghost-item").forEach((function(e){e.remove()}))}(r,t),a(r);var n=e.getAttribute("dynamicSections");n&&document.querySelectorAll(n).forEach((function(e){a(e)}))})))}(t),!0)})(s.attributes.queryId)||console.warn("Search & Filter: Unable to init query '".concat(s.attributes.queryId,"' for field '").concat(t,"'")),this.fieldReference=function(e,t){return(0,window.searchAndFilter.frontend.fields.create)(e,t)}(e,s),this.isEdit||function(e,t){f[e]=t}(i,this.fieldReference.getUid())}else console.warn("Search & Filter: Unable to find config for field widget: ".concat(t," | ").concat(n))}},{key:"bindEvents",value:function(){var e=this.elements.field;if(e){var t=parseInt(this.getElementSettings("search_filter_field").replace("field_","")),r=e.getAttribute("data-search-filter-uid");this.initEditorField(e,t,r)}}},{key:"onDestroy",value:function(){this.fieldReference&&this.fieldReference.remove()}},{key:"getDefaultElements",value:function(){var e=this.getSettings("selectors");return{field:this.$element.find(e.field)[0]}}}])&&o(i.prototype,s),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,s}();elementorFrontend.elementsHandler.attachHandler("search-filter-field",n)}))}();
(()=>{"use strict";var e,r,a,n={},b={};function __webpack_require__(e){var r=b[e];if(void 0!==r)return r.exports;var a=b[e]={exports:{}};return n[e](a,a.exports,__webpack_require__),a.exports}__webpack_require__.m=n,e=[],__webpack_require__.O=(r,a,n,b)=>{if(!a){var i=1/0;for(o=0;o<e.length;o++){for(var[a,n,b]=e[o],c=!0,t=0;t<a.length;t++)(!1&b||i>=b)&&Object.keys(__webpack_require__.O).every((e=>__webpack_require__.O[e](a[t])))?a.splice(t--,1):(c=!1,b<i&&(i=b));if(c){e.splice(o--,1);var _=n();void 0!==_&&(r=_)}}return r}b=b||0;for(var o=e.length;o>0&&e[o-1][2]>b;o--)e[o]=e[o-1];e[o]=[a,n,b]},__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce(((r,a)=>(__webpack_require__.f[a](e,r),r)),[])),__webpack_require__.u=e=>635===e?"code-highlight.b9addbc842a50347c9ab.bundle.min.js":519===e?"video-playlist.909c41acbc73cb741e9d.bundle.min.js":375===e?"paypal-button.f4f64e46173f50701949.bundle.min.js":786===e?"0726b2d81686a5392236.bundle.min.js":857===e?"stripe-button.49130d6eecb5ebc8afbd.bundle.min.js":581===e?"progress-tracker.8cccdda9737c272489fc.bundle.min.js":961===e?"animated-headline.c009d6fa482515df23f8.bundle.min.js":692===e?"media-carousel.8d26e5df1a1527329fde.bundle.min.js":897===e?"carousel.3620fca501cb18163600.bundle.min.js":416===e?"countdown.0e9e688751d29d07a8d3.bundle.min.js":292===e?"hotspot.5033ed75928eff79cb95.bundle.min.js":325===e?"form.71055747203b48a65a24.bundle.min.js":543===e?"gallery.06be1c07b9901f53d709.bundle.min.js":970===e?"lottie.a287ccfe024bea61e651.bundle.min.js":334===e?"nav-menu.8521a0597c50611efdc6.bundle.min.js":887===e?"popup.f7b15b2ca565b152bf98.bundle.min.js":535===e?"load-more.8b46f464e573feab5dd7.bundle.min.js":396===e?"posts.aec59265318492b89cb5.bundle.min.js":726===e?"portfolio.4cd5da34009c30cb5d70.bundle.min.js":316===e?"share-buttons.63d984f8c96d1e053bc0.bundle.min.js":829===e?"slides.c0029640cbdb48199471.bundle.min.js":158===e?"social.d71d263bd937f0906192.bundle.min.js":404===e?"table-of-contents.3be1ab725f562d10dd86.bundle.min.js":345===e?"archive-posts.16a93245d08246e5e540.bundle.min.js":798===e?"search-form.b7065999d77832a1b764.bundle.min.js":6===e?"woocommerce-menu-cart.54f2e75f6769dce707e2.bundle.min.js":80===e?"woocommerce-purchase-summary.88a2d8ca449739e34f9f.bundle.min.js":354===e?"woocommerce-checkout-page.6ba1f1f2aa99210fa1cf.bundle.min.js":4===e?"woocommerce-cart.480d117b95956d1f28a5.bundle.min.js":662===e?"woocommerce-my-account.d54826f355f9822b0ec0.bundle.min.js":621===e?"woocommerce-notices.00f9132bbbd683277a27.bundle.min.js":787===e?"product-add-to-cart.c32f5d5e404511d68720.bundle.min.js":993===e?"loop.89cc81d2188312a17a17.bundle.min.js":932===e?"loop-carousel.cd9a95b2e4dd2a239b81.bundle.min.js":550===e?"ajax-pagination.2090b5f4906bcda1dcc2.bundle.min.js":727===e?"mega-menu.82093824ddb3f5531ab4.bundle.min.js":87===e?"mega-menu-stretch-content.480e081cebe071d683e8.bundle.min.js":912===e?"menu-title-keyboard-handler.f0362773c21105d2c65c.bundle.min.js":33===e?"nested-carousel.db797a097fdc5532ef4a.bundle.min.js":225===e?"taxonomy-filter.a32526f3e4a201b5fce1.bundle.min.js":579===e?"off-canvas.137463f629e2b7cbaf02.bundle.min.js":1===e?"contact-buttons.99a987d66bcc2ade0ee6.bundle.min.js":61===e?"contact-buttons-var-10.16cf733dc3d3b250fef4.bundle.min.js":249===e?"floating-bars-var-2.75c36e8b0bacbac6105e.bundle.min.js":440===e?"floating-bars-var-3.cdf99fd0b063a0032d53.bundle.min.js":187===e?"search.5d88e65c03029f91931d.bundle.min.js":void 0,__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r={},a="elementor-pro:",__webpack_require__.l=(e,n,b,i)=>{if(r[e])r[e].push(n);else{var c,t;if(void 0!==b)for(var _=document.getElementsByTagName("script"),o=0;o<_.length;o++){var d=_[o];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==a+b){c=d;break}}c||(t=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,__webpack_require__.nc&&c.setAttribute("nonce",__webpack_require__.nc),c.setAttribute("data-webpack",a+b),c.src=e),r[e]=[n];var onScriptComplete=(a,n)=>{c.onerror=c.onload=null,clearTimeout(u);var b=r[e];if(delete r[e],c.parentNode&&c.parentNode.removeChild(c),b&&b.forEach((e=>e(n))),a)return a(n)},u=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=onScriptComplete.bind(null,c.onerror),c.onload=onScriptComplete.bind(null,c.onload),t&&document.head.appendChild(c)}},(()=>{var e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var r=__webpack_require__.g.document;if(!e&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var a=r.getElementsByTagName("script");if(a.length)for(var n=a.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=a[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e})(),(()=>{var e={978:0};__webpack_require__.f.j=(r,a)=>{var n=__webpack_require__.o(e,r)?e[r]:void 0;if(0!==n)if(n)a.push(n[2]);else if(978!=r){var b=new Promise(((a,b)=>n=e[r]=[a,b]));a.push(n[2]=b);var i=__webpack_require__.p+__webpack_require__.u(r),c=new Error;__webpack_require__.l(i,(a=>{if(__webpack_require__.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var b=a&&("load"===a.type?"missing":a.type),i=a&&a.target&&a.target.src;c.message="Loading chunk "+r+" failed.\n("+b+": "+i+")",c.name="ChunkLoadError",c.type=b,c.request=i,n[1](c)}}),"chunk-"+r,r)}else e[r]=0},__webpack_require__.O.j=r=>0===e[r];var webpackJsonpCallback=(r,a)=>{var n,b,[i,c,t]=a,_=0;if(i.some((r=>0!==e[r]))){for(n in c)__webpack_require__.o(c,n)&&(__webpack_require__.m[n]=c[n]);if(t)var o=t(__webpack_require__)}for(r&&r(a);_<i.length;_++)b=i[_],__webpack_require__.o(e,b)&&e[b]&&e[b][0](),e[b]=0;return __webpack_require__.O(o)},r=self.webpackChunkelementor_pro=self.webpackChunkelementor_pro||[];r.forEach(webpackJsonpCallback.bind(null,0)),r.push=webpackJsonpCallback.bind(null,r.push.bind(r))})()})();
(self.webpackChunkelementor_pro=self.webpackChunkelementor_pro||[]).push([[313],{3e3:(e,t,n)=>{"use strict";var s=n(6784);n(2258);var i=s(n(4906)),o=s(n(2450)),r=s(n(4409)),a=s(n(7937)),l=s(n(8098)),c=s(n(6275)),d=s(n(3268)),u=s(n(4992));class ElementorProFrontend extends elementorModules.ViewModule{onInit(){super.onInit(),this.config=ElementorProFrontendConfig,this.modules={},this.initOnReadyComponents()}bindEvents(){jQuery(window).on("elementor/frontend/init",this.onElementorFrontendInit.bind(this))}initModules(){let e={motionFX:i.default,sticky:o.default,codeHighlight:r.default,videoPlaylist:a.default,payments:l.default,progressTracker:c.default};elementorProFrontend.trigger("elementor-pro/modules/init/before"),e=elementorFrontend.hooks.applyFilters("elementor-pro/frontend/handlers",e),jQuery.each(e,((e,t)=>{this.modules[e]=new t})),this.modules.linkActions={addAction:(...e)=>{elementorFrontend.utils.urlActions.addAction(...e)}}}onElementorFrontendInit(){this.initModules()}initOnReadyComponents(){this.utils={controls:new d.default,DropdownMenuHeightController:u.default}}}window.elementorProFrontend=new ElementorProFrontend},3268:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=class Controls{getControlValue(e,t,n){let s;return s="object"==typeof e[t]&&n?e[t][n]:e[t],s}getResponsiveControlValue(e,t,n=""){const s=elementorFrontend.getCurrentDeviceMode(),i=this.getControlValue(e,t,n);if("widescreen"===s){const s=this.getControlValue(e,`${t}_widescreen`,n);return s||0===s?s:i}const o=elementorFrontend.breakpoints.getActiveBreakpointsList({withDesktop:!0});let r=s,a=o.indexOf(s),l="";for(;a<=o.length;){if("desktop"===r){l=i;break}const s=`${t}_${r}`,c=this.getControlValue(e,s,n);if(c||0===c){l=c;break}a++,r=o[a]}return l}}},4992:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=class DropdownMenuHeightController{constructor(e){this.widgetConfig=e}calculateStickyMenuNavHeight(){this.widgetConfig.elements.$dropdownMenuContainer.css(this.widgetConfig.settings.menuHeightCssVarName,"");const e=this.widgetConfig.elements.$dropdownMenuContainer.offset().top-jQuery(window).scrollTop();return elementorFrontend.elements.$window.height()-e}calculateMenuTabContentHeight(e){return elementorFrontend.elements.$window.height()-e[0].getBoundingClientRect().top}isElementSticky(){return this.widgetConfig.elements.$element.hasClass("elementor-sticky")||this.widgetConfig.elements.$element.parents(".elementor-sticky").length}getMenuHeight(){return this.isElementSticky()?this.calculateStickyMenuNavHeight()+"px":this.widgetConfig.settings.dropdownMenuContainerMaxHeight}setMenuHeight(e){this.widgetConfig.elements.$dropdownMenuContainer.css(this.widgetConfig.settings.menuHeightCssVarName,e)}reassignMobileMenuHeight(){const e=this.isToggleActive()?this.getMenuHeight():0;return this.setMenuHeight(e)}reassignMenuHeight(e){if(!this.isElementSticky()||0===e.length)return;const t=elementorFrontend.elements.$window.height()-e[0].getBoundingClientRect().top;e.height()>t&&(e.css("height",this.calculateMenuTabContentHeight(e)+"px"),e.css("overflow-y","scroll"))}resetMenuHeight(e){this.isElementSticky()&&(e.css("height","initial"),e.css("overflow-y","visible"))}isToggleActive(){const e=this.widgetConfig.elements.$menuToggle;return this.widgetConfig.attributes?.menuToggleState?"true"===e.attr(this.widgetConfig.attributes.menuToggleState):e.hasClass(this.widgetConfig.classes.menuToggleActiveClass)}}},2258:(e,t,n)=>{"use strict";n.p=ElementorProFrontendConfig.urls.assets+"js/"},4409:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class _default extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("code-highlight",(()=>n.e(635).then(n.bind(n,7193))))}}t.default=_default},4906:(e,t,n)=>{"use strict";var s=n(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(820));class _default extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("global",i.default,null)}}t.default=_default},820:(e,t,n)=>{"use strict";var s=n(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(739));class _default extends elementorModules.frontend.handlers.Base{__construct(...e){super.__construct(...e),this.toggle=elementorFrontend.debounce(this.toggle,200)}getDefaultSettings(){return{selectors:{container:".elementor-widget-container"}}}getDefaultElements(){const e=this.getSettings("selectors");let t=this.$element.find(e.container);return 0===t.length&&(t=this.$element),{$container:t}}bindEvents(){elementorFrontend.elements.$window.on("resize",this.toggle)}unbindEvents(){elementorFrontend.elements.$window.off("resize",this.toggle)}addCSSTransformEvents(){this.getElementSettings("motion_fx_motion_fx_scrolling")&&!this.isTransitionEventAdded&&(this.isTransitionEventAdded=!0,this.elements.$container.on("mouseenter",(()=>{this.elements.$container.css("--e-transform-transition-duration","")})))}initEffects(){this.effects={translateY:{interaction:"scroll",actions:["translateY"]},translateX:{interaction:"scroll",actions:["translateX"]},rotateZ:{interaction:"scroll",actions:["rotateZ"]},scale:{interaction:"scroll",actions:["scale"]},opacity:{interaction:"scroll",actions:["opacity"]},blur:{interaction:"scroll",actions:["blur"]},mouseTrack:{interaction:"mouseMove",actions:["translateXY"]},tilt:{interaction:"mouseMove",actions:["tilt"]}}}prepareOptions(e){const t=this.getElementSettings(),n="motion_fx"===e?"element":"background",s={};jQuery.each(t,((n,i)=>{const o=new RegExp("^"+e+"_(.+?)_effect"),r=n.match(o);if(!r||!i)return;const a={},l=r[1];jQuery.each(t,((t,n)=>{const s=new RegExp(e+"_"+l+"_(.+)"),i=t.match(s);if(!i)return;"effect"!==i[1]&&("object"==typeof n&&(n=Object.keys(n.sizes).length?n.sizes:n.size),a[i[1]]=n)}));const c=this.effects[l],d=c.interaction;s[d]||(s[d]={}),c.actions.forEach((e=>s[d][e]=a))}));let i,o,r=this.$element;const a=this.getElementType();if("element"===n&&!["section","container"].includes(a)){let e;i=r,e="column"===a?".elementor-widget-wrap":".elementor-widget-container",o=r.find("> "+e),r=0===o.length?this.$element:o}const l={type:n,interactions:s,elementSettings:t,$element:r,$dimensionsElement:i,refreshDimensions:this.isEdit,range:t[e+"_range"],classes:{element:"elementor-motion-effects-element",parent:"elementor-motion-effects-parent",backgroundType:"elementor-motion-effects-element-type-background",container:"elementor-motion-effects-container",layer:"elementor-motion-effects-layer",perspective:"elementor-motion-effects-perspective"}};return l.range||"fixed"!==this.getCurrentDeviceSetting("_position")||(l.range="page"),"fixed"===this.getCurrentDeviceSetting("_position")&&(l.isFixedPosition=!0),"background"===n&&"column"===this.getElementType()&&(l.addBackgroundLayerTo=" > .elementor-element-populated"),l}activate(e){const t=this.prepareOptions(e);jQuery.isEmptyObject(t.interactions)||(this[e]=new i.default(t))}deactivate(e){this[e]&&(this[e].destroy(),delete this[e])}toggle(){const e=elementorFrontend.getCurrentDeviceMode(),t=this.getElementSettings();["motion_fx","background_motion_fx"].forEach((n=>{const s=t[n+"_devices"];(!s||-1!==s.indexOf(e))&&(t[n+"_motion_fx_scrolling"]||t[n+"_motion_fx_mouse"])?this[n]?this.refreshInstance(n):this.activate(n):this.deactivate(n)}))}refreshInstance(e){const t=this[e];if(!t)return;const n=this.prepareOptions(e);t.setSettings(n),t.refresh()}onInit(){super.onInit();const e=window.matchMedia("(prefers-reduced-motion: reduce)");e&&e.matches||(this.initEffects(),this.addCSSTransformEvents(),this.toggle())}onElementChange(e){if(/motion_fx_((scrolling)|(mouse)|(devices))$/.test(e))return"motion_fx_motion_fx_scrolling"===e&&this.addCSSTransformEvents(),void this.toggle();const t=e.match(".*?(motion_fx|_transform)");if(t){const e=t[0].match("(_transform)")?"motion_fx":t[0];this.refreshInstance(e),this[e]||this.activate(e)}/^_position/.test(e)&&["motion_fx","background_motion_fx"].forEach((e=>{this.refreshInstance(e)}))}onDestroy(){super.onDestroy(),["motion_fx","background_motion_fx"].forEach((e=>{this.deactivate(e)}))}}t.default=_default},3039:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class _default extends elementorModules.Module{getMovePointFromPassedPercents(e,t){return+(t/e*100).toFixed(2)}getEffectValueFromMovePoint(e,t){return e*t/100}getStep(e,t){return"element"===this.getSettings("type")?this.getElementStep(e,t):this.getBackgroundStep(e,t)}getElementStep(e,t){return-(e-50)*t.speed}getBackgroundStep(e,t){const n=this.getSettings("dimensions.movable"+t.axis.toUpperCase());return-this.getEffectValueFromMovePoint(n,e)}getDirectionMovePoint(e,t,n){let s;return e<n.start?"out-in"===t?s=0:"in-out"===t?s=100:(s=this.getMovePointFromPassedPercents(n.start,e),"in-out-in"===t&&(s=100-s)):e<n.end?"in-out-in"===t?s=0:"out-in-out"===t?s=100:(s=this.getMovePointFromPassedPercents(n.end-n.start,e-n.start),"in-out"===t&&(s=100-s)):"in-out"===t?s=0:"out-in"===t?s=100:(s=this.getMovePointFromPassedPercents(100-n.end,100-e),"in-out-in"===t&&(s=100-s)),s}translateX(e,t){e.axis="x",e.unit="px",this.transform("translateX",t,e)}translateY(e,t){e.axis="y",e.unit="px",this.transform("translateY",t,e)}translateXY(e,t,n){this.translateX(e,t),this.translateY(e,n)}tilt(e,t,n){const s={speed:e.speed/10,direction:e.direction};this.rotateX(s,n),this.rotateY(s,100-t)}rotateX(e,t){e.axis="x",e.unit="deg",this.transform("rotateX",t,e)}rotateY(e,t){e.axis="y",e.unit="deg",this.transform("rotateY",t,e)}rotateZ(e,t){e.unit="deg",this.transform("rotateZ",t,e)}scale(e,t){const n=this.getDirectionMovePoint(t,e.direction,e.range);this.updateRulePart("transform","scale",1+e.speed*n/1e3)}transform(e,t,n){n.direction&&(t=100-t),this.updateRulePart("transform",e,this.getStep(t,n)+n.unit)}setCSSTransformVariables(e){this.CSSTransformVariables=[],jQuery.each(e,((e,t)=>{const n=e.match(/_transform_(.+?)_effect/m);if(n&&t){if("perspective"===n[1])return void this.CSSTransformVariables.unshift(n[1]);if(this.CSSTransformVariables.includes(n[1]))return;this.CSSTransformVariables.push(n[1])}}))}opacity(e,t){const n=this.getDirectionMovePoint(t,e.direction,e.range),s=e.level/10,i=1-s+this.getEffectValueFromMovePoint(s,n);this.$element.css({opacity:i,"will-change":"opacity"})}blur(e,t){const n=this.getDirectionMovePoint(t,e.direction,e.range),s=e.level-this.getEffectValueFromMovePoint(e.level,n);this.updateRulePart("filter","blur",s+"px")}updateRulePart(e,t,n){this.rulesVariables[e]||(this.rulesVariables[e]={}),this.rulesVariables[e][t]||(this.rulesVariables[e][t]=!0,this.updateRule(e));const s=`--${t}`;this.$element[0].style.setProperty(s,n)}updateRule(e){let t="";t+=this.concatTransformCSSProperties(e),t+=this.concatTransformMotionEffectCSSProperties(e),this.$element.css(e,t)}concatTransformCSSProperties(e){let t="";return"transform"===e&&jQuery.each(this.CSSTransformVariables,((e,n)=>{const s=n;n.startsWith("flip")&&(n=n.replace("flip","scale"));const i=n.startsWith("rotate")||n.startsWith("skew")?"deg":"px",o=n.startsWith("scale")?1:0+i;t+=`${n}(var(--e-transform-${s}, ${o}))`})),t}concatTransformMotionEffectCSSProperties(e){let t="";return jQuery.each(this.rulesVariables[e],(e=>{t+=`${e}(var(--${e}))`})),t}runAction(e,t,n,...s){t.affectedRange&&(t.affectedRange.start>n&&(n=t.affectedRange.start),t.affectedRange.end<n&&(n=t.affectedRange.end)),this[e](t,n,...s)}refresh(){this.rulesVariables={},this.CSSTransformVariables=[],this.$element.css({transform:"",filter:"",opacity:"","will-change":""})}onInit(){this.$element=this.getSettings("$targetElement"),this.refresh()}}t.default=_default},3323:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class _default extends elementorModules.ViewModule{__construct(e){this.motionFX=e.motionFX,this.intersectionObservers||this.setElementInViewportObserver()}setElementInViewportObserver(){this.intersectionObserver=elementorModules.utils.Scroll.scrollObserver({callback:e=>{e.isInViewport?this.onInsideViewport():this.removeAnimationFrameRequest()}});const e="page"===this.motionFX.getSettings("range")?elementorFrontend.elements.$body[0]:this.motionFX.elements.$parent[0];this.intersectionObserver.observe(e)}onInsideViewport=()=>{this.run(),this.animationFrameRequest=requestAnimationFrame(this.onInsideViewport)};runCallback(...e){this.getSettings("callback")(...e)}removeIntersectionObserver(){this.intersectionObserver&&this.intersectionObserver.unobserve(this.motionFX.elements.$parent[0])}removeAnimationFrameRequest(){this.animationFrameRequest&&cancelAnimationFrame(this.animationFrameRequest)}destroy(){this.removeAnimationFrameRequest(),this.removeIntersectionObserver()}onInit(){super.onInit()}}t.default=_default},5481:(e,t,n)=>{"use strict";var s=n(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(3323));class MouseMoveInteraction extends i.default{bindEvents(){MouseMoveInteraction.mouseTracked||(elementorFrontend.elements.$window.on("mousemove",MouseMoveInteraction.updateMousePosition),MouseMoveInteraction.mouseTracked=!0)}run(){const e=MouseMoveInteraction.mousePosition,t=this.oldMousePosition;if(t.x===e.x&&t.y===e.y)return;this.oldMousePosition={x:e.x,y:e.y};const n=100/innerWidth*e.x,s=100/innerHeight*e.y;this.runCallback(n,s)}onInit(){this.oldMousePosition={},super.onInit()}}t.default=MouseMoveInteraction,MouseMoveInteraction.mousePosition={},MouseMoveInteraction.updateMousePosition=e=>{MouseMoveInteraction.mousePosition={x:e.clientX,y:e.clientY}}},2647:(e,t,n)=>{"use strict";var s=n(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(3323));class _default extends i.default{run(){if(pageYOffset===this.windowScrollTop)return!1;this.onScrollMovement(),this.windowScrollTop=pageYOffset}onScrollMovement(){this.updateMotionFxDimensions(),this.updateAnimation(),this.resetTransitionVariable()}resetTransitionVariable(){this.motionFX.$element.css("--e-transform-transition-duration","100ms")}updateMotionFxDimensions(){this.motionFX.getSettings().refreshDimensions&&this.motionFX.defineDimensions()}updateAnimation(){let e;e="page"===this.motionFX.getSettings("range")?elementorModules.utils.Scroll.getPageScrollPercentage():this.motionFX.getSettings("isFixedPosition")?elementorModules.utils.Scroll.getPageScrollPercentage({},window.innerHeight):elementorModules.utils.Scroll.getElementViewportPercentage(this.motionFX.elements.$parent),this.runCallback(e)}}t.default=_default},739:(e,t,n)=>{"use strict";var s=n(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(2647)),o=s(n(5481)),r=s(n(3039));class _default extends elementorModules.ViewModule{getDefaultSettings(){return{type:"element",$element:null,$dimensionsElement:null,addBackgroundLayerTo:null,interactions:{},refreshDimensions:!1,range:"viewport",classes:{element:"motion-fx-element",parent:"motion-fx-parent",backgroundType:"motion-fx-element-type-background",container:"motion-fx-container",layer:"motion-fx-layer",perspective:"motion-fx-perspective"}}}bindEvents(){this.defineDimensions=this.defineDimensions.bind(this),elementorFrontend.elements.$window.on("resize elementor-pro/motion-fx/recalc",this.defineDimensions)}unbindEvents(){elementorFrontend.elements.$window.off("resize elementor-pro/motion-fx/recalc",this.defineDimensions)}addBackgroundLayer(){const e=this.getSettings();this.elements.$motionFXContainer=jQuery("<div>",{class:e.classes.container}),this.elements.$motionFXLayer=jQuery("<div>",{class:e.classes.layer}),this.updateBackgroundLayerSize(),this.elements.$motionFXContainer.prepend(this.elements.$motionFXLayer);(e.addBackgroundLayerTo?this.$element.find(e.addBackgroundLayerTo):this.$element).prepend(this.elements.$motionFXContainer)}removeBackgroundLayer(){this.elements.$motionFXContainer.remove()}updateBackgroundLayerSize(){const e=this.getSettings(),t={x:0,y:0},n=e.interactions.mouseMove,s=e.interactions.scroll;n&&n.translateXY&&(t.x=10*n.translateXY.speed,t.y=10*n.translateXY.speed),s&&(s.translateX&&(t.x=10*s.translateX.speed),s.translateY&&(t.y=10*s.translateY.speed)),this.elements.$motionFXLayer.css({width:100+t.x+"%",height:100+t.y+"%"})}defineDimensions(){const e=this.getSettings("$dimensionsElement")||this.$element,t=e.offset(),n={elementHeight:e.outerHeight(),elementWidth:e.outerWidth(),elementTop:t.top,elementLeft:t.left};n.elementRange=n.elementHeight+innerHeight,this.setSettings("dimensions",n),"background"===this.getSettings("type")&&this.defineBackgroundLayerDimensions()}defineBackgroundLayerDimensions(){const e=this.getSettings("dimensions");e.layerHeight=this.elements.$motionFXLayer.height(),e.layerWidth=this.elements.$motionFXLayer.width(),e.movableX=e.layerWidth-e.elementWidth,e.movableY=e.layerHeight-e.elementHeight,this.setSettings("dimensions",e)}initInteractionsTypes(){this.interactionsTypes={scroll:i.default,mouseMove:o.default}}prepareSpecialActions(){const e=this.getSettings(),t=!(!e.interactions.mouseMove||!e.interactions.mouseMove.tilt);this.elements.$parent.toggleClass(e.classes.perspective,t)}cleanSpecialActions(){const e=this.getSettings();this.elements.$parent.removeClass(e.classes.perspective)}runInteractions(){const e=this.getSettings();this.actions.setCSSTransformVariables(e.elementSettings),this.prepareSpecialActions(),jQuery.each(e.interactions,((e,t)=>{this.interactions[e]=new this.interactionsTypes[e]({motionFX:this,callback:(...e)=>{jQuery.each(t,((t,n)=>this.actions.runAction(t,n,...e)))}}),this.interactions[e].run()}))}destroyInteractions(){this.cleanSpecialActions(),jQuery.each(this.interactions,((e,t)=>t.destroy())),this.interactions={}}refresh(){this.actions.setSettings(this.getSettings()),"background"===this.getSettings("type")&&(this.updateBackgroundLayerSize(),this.defineBackgroundLayerDimensions()),this.actions.refresh(),this.destroyInteractions(),this.runInteractions()}destroy(){this.destroyInteractions(),this.actions.refresh();const e=this.getSettings();this.$element.removeClass(e.classes.element),this.elements.$parent.removeClass(e.classes.parent),"background"===e.type&&(this.$element.removeClass(e.classes.backgroundType),this.removeBackgroundLayer())}onInit(){super.onInit();const e=this.getSettings();this.$element=e.$element,this.elements.$parent=this.$element.parent(),this.$element.addClass(e.classes.element),this.elements.$parent=this.$element.parent(),this.elements.$parent.addClass(e.classes.parent),"background"===e.type&&(this.$element.addClass(e.classes.backgroundType),this.addBackgroundLayer()),this.defineDimensions(),e.$targetElement="element"===e.type?this.$element:this.elements.$motionFXLayer,this.interactions={},this.actions=new r.default(e),this.initInteractionsTypes(),this.runInteractions()}}t.default=_default},8098:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class _default extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("paypal-button",(()=>n.e(375).then(n.bind(n,466)))),elementorFrontend.elementsHandler.attachHandler("stripe-button",(()=>Promise.all([n.e(786),n.e(857)]).then(n.bind(n,9036))))}}t.default=_default},6275:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class _default extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("progress-tracker",(()=>n.e(581).then(n.bind(n,287))))}}t.default=_default},2450:(e,t,n)=>{"use strict";var s=n(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(2121));class _default extends elementorModules.Module{constructor(){super(),elementorFrontend.elementsHandler.attachHandler("section",i.default,null),elementorFrontend.elementsHandler.attachHandler("container",i.default,null),elementorFrontend.elementsHandler.attachHandler("widget",i.default,null)}}t.default=_default},2121:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=n(6550);t.default=elementorModules.frontend.handlers.Base.extend({currentConfig:{},debouncedReactivate:null,bindEvents(){elementorFrontend.addListenerOnce(this.getUniqueHandlerID()+"sticky","resize",this.reactivateOnResize)},unbindEvents(){elementorFrontend.removeListeners(this.getUniqueHandlerID()+"sticky","resize",this.reactivateOnResize)},isStickyInstanceActive(){return void 0!==this.$element.data("sticky")},getResponsiveSetting(e){const t=this.getElementSettings();return elementorFrontend.getCurrentDeviceSetting(t,e)},getResponsiveSettingList:e=>["",...Object.keys(elementorFrontend.config.responsive.activeBreakpoints)].map((t=>t?`${e}_${t}`:e)),getConfig(){const e=this.getElementSettings(),t={to:e.sticky,offset:this.getResponsiveSetting("sticky_offset"),effectsOffset:this.getResponsiveSetting("sticky_effects_offset"),classes:{sticky:"elementor-sticky",stickyActive:"elementor-sticky--active elementor-section--handles-inside",stickyEffects:"elementor-sticky--effects",spacer:"elementor-sticky__spacer"},isRTL:elementorFrontend.config.is_rtl,isScrollSnapActive:(0,s.isScrollSnapActive)(),handleScrollbarWidth:elementorFrontend.isEditMode()},n=elementorFrontend.elements.$wpAdminBar,i=this.isContainerElement(this.$element[0])&&!this.isContainerElement(this.$element[0].parentElement);return n.length&&"top"===e.sticky&&"fixed"===n.css("position")&&(t.offset+=n.height()),e.sticky_parent&&!i&&(t.parent=".e-con, .e-con-inner, .elementor-widget-wrap"),t},activate(){this.currentConfig=this.getConfig(),this.$element.sticky(this.currentConfig)},deactivate(){this.isStickyInstanceActive()&&this.$element.sticky("destroy")},run(e){if(this.getElementSettings("sticky")){var t=elementorFrontend.getCurrentDeviceMode();-1!==this.getElementSettings("sticky_on").indexOf(t)?!0===e?this.reactivate():this.isStickyInstanceActive()||this.activate():this.deactivate()}else this.deactivate()},reactivateOnResize(){clearTimeout(this.debouncedReactivate),this.debouncedReactivate=setTimeout((()=>{const e=this.getConfig();JSON.stringify(e)!==JSON.stringify(this.currentConfig)&&this.run(!0)}),300)},reactivate(){this.deactivate(),this.activate()},onElementChange(e){-1!==["sticky","sticky_on"].indexOf(e)&&this.run(!0);-1!==[...this.getResponsiveSettingList("sticky_offset"),...this.getResponsiveSettingList("sticky_effects_offset"),"sticky_parent"].indexOf(e)&&this.reactivate()},onDeviceModeChange(){setTimeout((()=>this.run(!0)))},onInit(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),elementorFrontend.isEditMode()&&elementor.listenTo(elementor.channels.deviceMode,"change",(()=>this.onDeviceModeChange())),this.run()},onDestroy(){elementorModules.frontend.handlers.Base.prototype.onDestroy.apply(this,arguments),this.deactivate()},isContainerElement:e=>["e-con","e-con-inner"].some((t=>e?.classList.contains(t)))})},7937:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class _default extends elementorModules.Module{constructor(){super(),elementorFrontend.hooks.addAction("frontend/element_ready/video-playlist.default",(e=>{n.e(519).then(n.bind(n,4161)).then((({default:t})=>{elementorFrontend.elementsHandler.addHandler(t,{$element:e,toggleSelf:!1})}))}))}}t.default=_default},6550:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isScrollSnapActive=t.escapeHTML=void 0;t.escapeHTML=e=>{const t={"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"};return e.replace(/[&<>'"]/g,(e=>t[e]||e))};t.isScrollSnapActive=()=>"yes"===(elementorFrontend.isEditMode()?elementor.settings.page.model.attributes?.scroll_snap:elementorFrontend.config.settings.page?.scroll_snap)},6784:e=>{e.exports=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}},e=>{var t;t=3e3,e(e.s=t)}]);