=")||[],1)[0],l=D(s.getNumericRefinement(w,"<=")||[],1)[0],d=void 0===n||""===n,h=void 0===r||""===r,f=Cr({min:d?void 0:parseFloat(n),max:h?void 0:parseFloat(r),precision:N}),m=f.min,p=f.max;i=ct(_)||o!==m?ct(_)&&d?_:m:void 0,a=ct(P)||c!==p?ct(P)&&h?P:p:void 0;var g=void 0===i,v=ct(o)&&o<=i,y=g||ct(i)&&(!ct(o)||v),b=void 0===a,S=ct(a)&&a<=c,R=b||ct(a)&&(!ct(c)||S);return(u!==i||l!==a)&&y&&R?(s=s.removeNumericRefinement(w),ct(i)&&(s=s.addNumericRefinement(w,">=",i)),ct(a)&&(s=s.addNumericRefinement(w,"<=",a)),s.resetPage()):null}(i,a,t,n);r&&i.setState(r).search()}}return{$$type:"ais.range",init:function(e){r(W(W({},this.getWidgetRenderState(e)),{},{instantSearchInstance:e.instantSearchInstance}),!0)},render:function(e){r(W(W({},this.getWidgetRenderState(e)),{},{instantSearchInstance:e.instantSearchInstance}),!1)},getRenderState:function(e,t){return W(W({},e),{},{range:W(W({},e.range),{},j({},w,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(e){var t=e.results,n=e.helper,r=e.instantSearchInstance,i=ze(t&&t.disjunctiveFacets||[],function(e){return e.name===w}),a=function(e){return Cr({min:ct(_)?_:ct(e.min)?e.min:0,max:ct(P)?P:ct(e.max)?e.max:0,precision:N})}(i&&i.stats||{min:void 0,max:void 0}),s=function(e){var t=D(e.getNumericRefinement(w,">=")||[],1)[0],n=D(e.getNumericRefinement(w,"<=")||[],1)[0];return[ct(t)?t:-1/0,ct(n)?n:1/0]}(n);return{refine:u(n,t?a:{min:void 0,max:void 0}),canRefine:a.min!==a.max,format:c,range:a,sendEvent:function(e){return function(){1!==arguments.length||e.sendEventToInsights(arguments.length<=0?void 0:arguments[0])}}(r),widgetParams:W(W({},o),{},{precision:N}),start:s}},dispose:function(e){var t=e.state;return i(),t.removeDisjunctiveFacet(w).removeNumericRefinement(w)},getWidgetUiState:function(e,t){var n=t.searchParameters.getNumericRefinements(w),r=n[">="],i=void 0===r?[]:r,a=n["<="],s=void 0===a?[]:a;return 0===i.length&&0===s.length?e:W(W({},e),{},{range:W(W({},e.range),{},j({},w,"".concat(i,":").concat(s)))})},getWidgetSearchParameters:function(e,t){var n=t.uiState,r=e.addDisjunctiveFacet(w).setQueryParameters({numericRefinements:W(W({},e.numericRefinements),{},j({},w,{}))});ct(_)&&(r=r.addNumericRefinement(w,">=",_)),ct(P)&&(r=r.addNumericRefinement(w,"<=",P));var i=n.range&&n.range[w];if(!i||-1===i.indexOf(":"))return r;var a=D(i.split(":").map(parseFloat),2),s=a[0],o=a[1];return ct(s)&&(!ct(_)||_=")).addNumericRefinement(w,">=",s)),ct(o)&&(!ct(P)||op||g&&!P;return{createURL:function(e){return r(n.resetPage().toggleFacetRefinement(m,e))},items:s,refine:R,searchForItems:d,isFromSearch:!1,canRefine:0="])&&void 0!==t&&t.length)return n[">="][0]}function r(e,t){var n=y(e)===Number(t),r=e.resetPage().removeNumericRefinement(g);return n?r:r.addNumericRefinement(g,"<=",v).addNumericRefinement(g,">=",Number(t))}var b=function(e){return function(e,t){p("click",t),e.setState(r(e.state,t)).search()}.bind(null,e)},S=function(e){var t=e.state,n=e.createURL;return function(e){return n(r(t,e))}};return{$$type:Vr,init:function(e){var t=e.instantSearchInstance;n(W(W({},this.getWidgetRenderState(e)),{},{instantSearchInstance:t}),!0)},render:function(e){var t=e.instantSearchInstance;n(W(W({},this.getWidgetRenderState(e)),{},{instantSearchInstance:t}),!1)},getRenderState:function(e,t){return W(W({},e),{},{ratingMenu:W(W({},e.ratingMenu),{},j({},g,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(e){var t=e.helper,n=e.results,r=e.state,i=e.instantSearchInstance,a=e.createURL,s=[];p=p||function(e){var o=e.instantSearchInstance,c=e.helper,u=e.getRefinedStar,l=e.attribute;return function(){for(var e=arguments.length,t=new Array(e),n=0;n=").concat(i)]},attribute:l})}else o.sendEventToInsights(t[0])}}({instantSearchInstance:i,helper:t,getRefinedStar:function(){return y(t.state)},attribute:g});var o=!1,c=0,u=null==n?void 0:n.getFacetValues(g,{});if(n&&u){u.length,function(e){var r=0;e.forEach(function(e){var t=D(e.name.split("."),2)[1],n=void 0===t?"":t;r=Math.max(r,n.length)})}(u);for(var l=y(r),d=function(n){var e=l===n;o=o||e;var t=u.filter(function(e){return Number(e.name)>=n&&Number(e.name)<=v}).map(function(e){return e.count}).reduce(function(e,t){return e+t},0);if(c+=t,l&&!e&&0===t)return"continue";var r=P(new Array(Math.floor(v/1))).map(function(e,t){return 1*t=",r):i.setQueryParameters({numericRefinements:W(W({},i.numericRefinements),{},j({},g,{}))})}}}}function Or(n,e){var t=1 ":n,i=e.rootPath,a=void 0===i?null:i,o=e.transformItems,c=void 0===o?function(e){return e}:o;if(!t||!Array.isArray(t)||0===t.length)throw new Error(Jr("The `attributes` option expects an array of strings."));var u=D(t,1)[0];function l(e,t){if(t)return e.resetPage().toggleFacetRefinement(u,t);var n=e.getHierarchicalFacetBreadcrumb(u);return 0===n.length?e:e.resetPage().toggleFacetRefinement(u,n[0])}return{$$type:"ais.breadcrumb",init:function(e){d(W(W({},this.getWidgetRenderState(e)),{},{instantSearchInstance:e.instantSearchInstance}),!0)},render:function(e){d(W(W({},this.getWidgetRenderState(e)),{},{instantSearchInstance:e.instantSearchInstance}),!1)},dispose:function(){h()},getRenderState:function(e,t){return W(W({},e),{},{breadcrumb:W(W({},e.breadcrumb),{},j({},u,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(e){var t=e.helper,n=e.createURL,r=e.results,i=e.state;var a=function(){if(!r||0===i.hierarchicalFacets.length)return[];var e=D(i.hierarchicalFacets,1)[0].name,t=r.getFacetValues(e,{}),n=Array.isArray(t.data)?t.data:[];return c(function(n){return n.map(function(e,t){return{label:e.label,value:t+1===n.length?null:n[t+1].value}})}(function n(e){return e.reduce(function(e,t){return t.isRefined&&(e.push({label:t.name,value:t.escapedValue}),Array.isArray(t.data)&&(e=e.concat(n(t.data)))),e},[])}(n)),{results:r})}();return f.createURL||(f.createURL=function(e){return n(l(t.state,e))}),f.refine||(f.refine=function(e){t.setState(l(t.state,e)).search()}),{canRefine:0")}function ci(c,u){return function(e){var t=e||{},a=t.hit,s=t.matchingPatterns,n=t.transformSearchParameters,r=void 0===n?function(e){return e}:n;if(!a)throw new Error(si("The `hit` option is required."));if(!s)throw new Error(si("The `matchingPatterns` option is required."));var i=Object.keys(s).reduce(function(e,t){var n=s[t],r=et(a,t),i=n.score;return Array.isArray(r)?[].concat(P(e),[r.map(function(e){return oi({attributeName:t,attributeValue:e,attributeScore:i})})]):"string"==typeof r?[].concat(P(e),[oi({attributeName:t,attributeValue:r,attributeScore:i})]):e},[]),o=W({},r(new pe.SearchParameters({sumOrFiltersScores:!0,facetFilters:["objectID:-".concat(a.objectID)],optionalFilters:i})));return W(W({},ai(c,u)({searchParameters:o})),{},{$$type:"ais.configureRelatedItems"})}}var ui=$e({name:"autocomplete",connector:!0}),li=$e({name:"query-rules",connector:!0});function di(e){var t=this.helper,n=this.initialRuleContexts,r=this.trackedFilters,i=this.transformRuleContexts,a=e.state,s=a.ruleContexts||[],o=function(e){var i=e.helper,a=e.sharedHelperState,s=e.trackedFilters;return Object.keys(s).reduce(function(e,t){var n=nt(i.lastResults||{},a,!0).filter(function(e){return e.attribute===t}).map(function(e){return e.numericValue||e.name}),r=(0,s[t])(n);return[].concat(P(e),P(n.filter(function(e){return r.includes(e)}).map(function(e){return function(e){return e.replace(/[^a-z0-9-_]+/gi,"_")}("ais-".concat(t,"-").concat(e))})))},[])}({helper:t,sharedHelperState:a,trackedFilters:r}),c=i([].concat(P(n),P(o))).slice(0,10);ot(s,c)||t.overrideStateWithoutTriggeringChangeEvent(W(W({},a),{},{ruleContexts:c}))}function hi(d,e){var h=1= 4.8.0 required."));m=qe(n.findAnswers,u),b(W(W({},this.getWidgetRenderState(e)),{},{instantSearchInstance:e.instantSearchInstance}),!0)},render:function(n){var r=this,e=n.state.query;if(!e)return v=!(g=[]),void b(W(W({},this.getWidgetRenderState(n)),{},{instantSearchInstance:n.instantSearchInstance}),!1);g=[],v=!0,b(W(W({},this.getWidgetRenderState(n)),{},{instantSearchInstance:n.instantSearchInstance}),!1),p(m(e,i,W(W({},f),{},{nbHits:s,attributesForPrediction:a}))).then(function(e){if(e){d&&0":7,"=":8,_v:9,"{":10,"&":11,_t:12},S.scan=function(e,t){var n,r,i,a,s,o=e.length,c=0,u=null,l=null,d="",h=[],f=!1,m=0,p=0,g="{{",v="}}";function y(){0"==n.tag&&(n.indent=h[r].text.toString()),h.splice(r,1));else t||h.push({tag:"\n"});f=!1,p=h.length}for(t&&(t=t.split(" "),g=t[0],v=t[1]),m=0;m":m,"<":function(e,t){var n={partials:{},code:"",subs:{},inPartial:!0};S.walk(e.nodes,n);var r=t.partials[m(e,t)];r.subs=n.subs,r.partials=n.partials},$:function(e,t){var n={subs:{},code:"",partials:t.partials,prefix:e.n};S.walk(e.nodes,n),t.subs[e.n]=n.code,t.inPartial||(t.code+='t.sub("'+h(e.n)+'",c,p,i);')},"\n":function(e,t){t.code+=p('"\\n"'+(e.last?"":" + i"))},_v:function(e,t){t.code+="t.b(t.v(t."+f(e.n)+'("'+h(e.n)+'",c,p,0)));'},_t:function(e,t){t.code+=p('"'+h(e.text)+'"')},"{":e,"&":e},S.walk=function(e,t){for(var n,r=0,i=e.length;r/g,i=/\'/g,a=/\"/g,s=/[&<>\"\']/;function o(e){return String(null==e?"":e)}var d=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}(t)});Ii.Template=Fi.Template,Ii.template=Ii.Template;var Ti=Ii,Ci=function(e,t,n,r){var i;t[0]=0;for(var a=1;a"===t?(r=1,""):t+i[0]:a?t===a?a="":i+=t:'"'===t||"'"===t?a=t:">"===t?(o(),r=1):r&&("="===t?(r=5,n=i,i=""):"/"===t&&(r<5||">"===e[c][u+1])?(o(),3===r&&(s=s[0]),(s=(r=s)[0]).push(2,0,r),r=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(o(),r=2):i+=t),3===r&&"!--"===i&&(r=4,s=s[0])}return o(),s}(e)),t),arguments,[])).length?t:t[0]}.bind(Un);function ji(){for(var e=arguments.length,t=new Array(e),n=0;n"}},aa=$e({name:"breadcrumb"}),sa=_t("Breadcrumb"),oa={resetLabel:function(){return"Clear refinements"}},ca=$e({name:"clear-refinements"}),ua=_t("ClearRefinements"),la=$e({name:"current-refinements"}),da=_t("CurrentRefinements"),ha={header:function(){return""},loader:function(){return""},item:function(e){return JSON.stringify(e)}},fa=$e({name:"answers"}),ma=_t("Answers"),pa=$e({name:"dynamic-widgets"}),ga=_t("DynamicWidgets");function va(e){var t=document.createElement("div");return t.className=ga({descendantName:"widget"}),e.appendChild(t),t}function ya(e){var t=e||{},n=t.container,r=t.widgets,i=t.fallbackWidget,a=M(t,["container","widgets","fallbackWidget"]);if(!n)throw new Error(pa("The `container` option is required."));if(!(r&&Array.isArray(r)&&r.every(function(e){return"function"==typeof e})))throw new Error(pa("The `widgets` option expects an array of callbacks."));var s=Xe(n),o=document.createElement("div");o.className=ga();var c=new Map,u=[],l=yi(function(e,t){var n=e.attributesToRender;t&&s.appendChild(o),n.forEach(function(e){if(c.has(e)){var t=c.get(e);o.appendChild(t)}})},function(){s.removeChild(o)})(W(W({},a),{},{widgets:u,fallbackWidget:"function"==typeof i?function(e){var t=e.attribute,n=va(o);return c.set(t,n),i({attribute:t,container:n})}:void 0}));return W(W({},l),{},{init:function(i){r.forEach(function(e){var t=va(o),n=e(t),r=rt(n,i);c.set(r,t),u.push(n)}),l.init(i)},$$widgetType:"ais.dynamicWidgets"})}function ba(e){var t=e.className,n=e.disabled,r=void 0!==n&&n;return Un("button",{className:t,onClick:e.onClick,disabled:r},e.children)}function Sa(e){var t=e.classNameLabel,n=e.classNameInput,r=e.checked,i=e.onToggle,a=e.children;return Un("label",{className:t},Un("input",{className:n,type:"checkbox",checked:r,onChange:i}),a)}function Ra(e){var t=e.cssClasses,n=e.enableRefine,r=e.enableRefineControl,i=e.enableClearMapRefinement,a=e.isRefineOnMapMove,s=e.isRefinedWithMap,o=e.hasMapMoveSinceLastRefine,c=e.onRefineToggle,u=e.onRefineClick,l=e.onClearClick,d=e.templateProps;return Un(Qn,null,n&&Un("div",null,r&&Un("div",{className:t.control},a||!o?Un(Sa,{classNameLabel:Ni(t.label,j({},t.selectedLabel,a)),classNameInput:t.input,checked:a,onToggle:c},Un(Gi,h({},d,{templateKey:"toggle",rootTagName:"span"}))):Un(ba,{className:t.redo,disabled:!o,onClick:u},Un(Gi,h({},d,{templateKey:"redo",rootTagName:"span"})))),!r&&!a&&Un("div",{className:t.control},Un(ba,{className:Ni(t.redo,j({},t.disabledRedo,!o)),disabled:!o,onClick:u},Un(Gi,h({},d,{templateKey:"redo",rootTagName:"span"})))),i&&s&&Un(ba,{className:t.reset,onClick:l},Un(Gi,h({},d,{templateKey:"reset",rootTagName:"span"})))))}function wa(e){var t=e.refine,n=e.mapInstance;return t({northEast:n.getBounds().getNorthEast().toJSON(),southWest:n.getBounds().getSouthWest().toJSON()})}function _a(e,t){e.isUserInteraction=!1,t(),e.isUserInteraction=!0}function Pa(e,t){var n=e.items,r=e.position,i=e.currentRefinement,a=e.refine,s=e.clearMapRefinement,o=e.toggleRefineOnMapMove,c=e.isRefineOnMapMove,u=e.setMapMoveSinceLastRefine,l=e.hasMapMoveSinceLastRefine,d=e.isRefinedWithMap,h=e.widgetParams,f=e.instantSearchInstance,m=h.container,p=h.googleReference,g=h.cssClasses,v=h.templates,y=h.initialZoom,b=h.initialPosition,S=h.enableRefine,R=h.enableClearMapRefinement,w=h.enableRefineControl,_=h.mapOptions,P=h.createMarker,N=h.markerOptions,x=h.renderState;if(t){x.isUserInteraction=!0,x.isPendingRefine=!1,x.markers=[];var I=document.createElement("div");I.className=g.root,m.appendChild(I);var F=document.createElement("div");F.className=g.map,I.appendChild(F);var T=document.createElement("div");T.className=g.tree,I.appendChild(T),x.mapInstance=new p.maps.Map(F,W({mapTypeControl:!1,fullscreenControl:!1,streetViewControl:!1,clickableIcons:!1,zoomControlOptions:{position:p.maps.ControlPosition.LEFT_TOP}},_));return p.maps.event.addListenerOnce(x.mapInstance,"idle",function(){function e(){x.isUserInteraction&&S&&(u(),c()&&(x.isPendingRefine=!0))}x.mapInstance.addListener("center_changed",e),x.mapInstance.addListener("zoom_changed",e),x.mapInstance.addListener("dragstart",e),x.mapInstance.addListener("idle",function(){x.isUserInteraction&&x.isPendingRefine&&(x.isPendingRefine=!1,wa({mapInstance:x.mapInstance,refine:a}))})}),void(x.templateProps=xi({templatesConfig:f.templatesConfig,templates:v}))}var C=n.map(function(e){return e.objectID}),E=D(function(e,a){return e.reduce(function(e,t){var n=D(e,2),r=n[0],i=n[1];return a.includes(t.__id)?[r.concat(t),i]:[r,i.concat(t)]},[[],[]])}(x.markers,C),2),k=E[0],j=E[1],L=k.map(function(e){return e.__id}),M=n.filter(function(e){return!L.includes(e.objectID)});j.forEach(function(e){return e.setMap(null)}),x.markers=k.concat(M.map(function(n){var r=P({map:x.mapInstance,item:n});return Object.keys(N.events).forEach(function(t){r.addListener(t,function(e){N.events[t]({map:x.mapInstance,event:e,item:n,marker:r})})}),r}));var H=!l(),O=i?0:null,A=!i&&Boolean(x.markers.length)?function(e,t){var n=t.reduce(function(e,t){return e.extend(t.getPosition())},new e.maps.LatLngBounds);return{northEast:n.getNorthEast().toJSON(),southWest:n.getSouthWest().toJSON()}}(p,x.markers):i;A&&H?_a(x,function(){x.mapInstance.fitBounds(new p.maps.LatLngBounds(A.southWest,A.northEast),O)}):H&&_a(x,function(){x.mapInstance.setCenter(r||b),x.mapInstance.setZoom(y)}),cr(Un(Ra,{cssClasses:g,enableRefine:S,enableRefineControl:w,enableClearMapRefinement:R,isRefineOnMapMove:c(),isRefinedWithMap:d(),hasMapMoveSinceLastRefine:l(),onRefineToggle:o,onRefineClick:function(){return wa({mapInstance:x.mapInstance,refine:a})},onClearClick:s,templateProps:x.templateProps}),m.querySelector(".".concat(g.tree)))}var Na=Un("p",null,"Your custom HTML Marker"),xa={HTMLMarker:function(){return Na},reset:function(){return"Clear the map refinement"},toggle:function(){return"Search as I move the map"},redo:function(){return"Redo search here"}},Ia=$e({name:"geo-search"}),Fa=_t("GeoSearch");function Ta(e){var t=e.className,n=e.handleClick,r=e.facetValueToRefine,i=e.isRefined,a=e.templateProps,s=e.templateKey,o=e.templateData,c=e.subItems;return Un("li",{className:t,onClick:function(e){n({facetValueToRefine:r,isRefined:i,originalEvent:e})}},Un(Gi,h({},a,{templateKey:s,data:o})),c)}var Ca={query:"",showSubmit:!0,showReset:!0,showLoadingIndicator:!0,autofocus:!1,searchAsYouType:!0,isSearchStalled:!1,disabled:!1,onChange:ge,onSubmit:ge,onReset:ge,refine:ge},Ea=function(){L(i,Vn);var r=O(i);function i(){var s;E(this,i);for(var e=arguments.length,t=new Array(e),n=0;n=n.__.length&&n.__.push({__V:ps}),n.__[e]}function ws(e){return fs=1,function(e,t,n){var i=Rs(ss++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):Ts(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],!(i.__c=os).u)){os.u=!0;var a=os.shouldComponentUpdate;os.shouldComponentUpdate=function(e,t,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter(function(e){return e.__c});return r.every(function(e){return!e.__N})?!a||a.call(this,e,t,n):!r.every(function(e){if(!e.__N)return!0;var t=e.__[0];return e.__=e.__N,e.__N=void 0,t===e.__[0]})&&(!a||a.call(this,e,t,n))}}return i.__N||i.__}(Ts,e)}function _s(e){return fs=5,function(e,t){var n=Rs(ss++,7);return Fs(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}(function(){return{current:e}},[])}function Ps(){for(var t;t=ms.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(xs),t.__H.__h.forEach(Is),t.__H.__h=[]}catch(e){t.__H.__h=[],jn.__e(e,t.__v)}}jn.__b=function(e){os=null,gs&&gs(e)},jn.__r=function(e){vs&&vs(e),ss=0;var t=(os=e.__c).__H;t&&(cs===os?(t.__h=[],os.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=ps,e.__N=e.i=void 0})):(t.__h.forEach(xs),t.__h.forEach(Is),t.__h=[])),cs=os},jn.diffed=function(e){ys&&ys(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==ms.push(t)&&us===jn.requestAnimationFrame||((us=jn.requestAnimationFrame)||function(e){function t(){clearTimeout(r),Ns&&cancelAnimationFrame(n),setTimeout(e)}var n,r=setTimeout(t,100);Ns&&(n=requestAnimationFrame(t))})(Ps)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==ps&&(e.__=e.__V),e.i=void 0,e.__V=ps})),cs=os=null},jn.__c=function(e,n){n.some(function(t){try{t.__h.forEach(xs),t.__h=t.__h.filter(function(e){return!e.__||Is(e)})}catch(e){n.some(function(e){e.__h&&(e.__h=[])}),n=[],jn.__e(e,t.__v)}}),bs&&bs(e,n)},jn.unmount=function(e){Ss&&Ss(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{xs(e)}catch(e){t=e}}),t&&jn.__e(t,n.__v))};var Ns="function"==typeof requestAnimationFrame;function xs(e){var t=os,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),os=t}function Is(e){var t=os;e.__c=e.__(),os=t}function Fs(n,e){return!n||n.length!==e.length||e.some(function(e,t){return e!==n[t]})}function Ts(e,t){return"function"==typeof t?t(e):t}function Cs(t){var e,n=D(ws(t.isCollapsed),2),r=n[0],i=n[1],a=D(ws(!1),2),s=a[0],o=a[1],c=_s(null);return function(e,t){var n=Rs(ss++,3);!jn.__s&&Fs(n.__H,t)&&(n.__=e,n.i=t,os.__H.__h.push(n))}(function(){var e=c.current;if(e)return e.appendChild(t.bodyElement),function(){e.removeChild(t.bodyElement)}},[c,t.bodyElement]),s||t.isCollapsed===r||i(t.isCollapsed),Un("div",{className:Ni(t.cssClasses.root,(e={},j(e,t.cssClasses.noRefinementRoot,t.hidden),j(e,t.cssClasses.collapsibleRoot,t.collapsible),j(e,t.cssClasses.collapsedRoot,r),e)),hidden:t.hidden},t.templates.header&&Un("div",{className:t.cssClasses.header},Un(Gi,{templates:t.templates,templateKey:"header",rootTagName:"span",data:t.data}),t.collapsible&&Un("button",{className:t.cssClasses.collapseButton,"aria-expanded":!r,onClick:function(e){e.preventDefault(),o(!0),i(function(e){return!e})}},Un(Gi,{templates:t.templates,templateKey:"collapseButtonText",rootTagName:"span",data:{collapsed:r}}))),Un("div",{className:t.cssClasses.body,ref:c}),t.templates.footer&&Un(Gi,{templates:t.templates,templateKey:"footer",rootProps:{className:t.cssClasses.footer},data:t.data}))}function Es(e){var t=e.url,n=e.theme,r=e.cssClasses;return Un("div",{className:r.root},Un("a",{href:t,target:"_blank",className:r.link,"aria-label":"Search by Algolia",rel:"noopener noreferrer"},Un("svg",{height:"1.2em",className:r.logo,viewBox:"0 0 168 24",style:{width:"auto"}},Un("path",{fill:"dark"===n?"#FFF":"#5D6494",d:"M6.97 6.68V8.3a4.47 4.47 0 00-2.42-.67 2.2 2.2 0 00-1.38.4c-.34.26-.5.6-.5 1.02 0 .43.16.77.49 1.03.33.25.83.53 1.51.83a7.04 7.04 0 011.9 1.08c.34.24.58.54.73.89.15.34.23.74.23 1.18 0 .95-.33 1.7-1 2.24a4 4 0 01-2.6.81 5.71 5.71 0 01-2.94-.68v-1.71c.84.63 1.81.94 2.92.94.58 0 1.05-.14 1.39-.4.34-.28.5-.65.5-1.13 0-.29-.1-.55-.3-.8a2.2 2.2 0 00-.65-.53 23.03 23.03 0 00-1.64-.78 13.67 13.67 0 01-1.11-.64c-.12-.1-.28-.22-.46-.4a1.72 1.72 0 01-.39-.5 4.46 4.46 0 01-.22-.6c-.07-.23-.1-.48-.1-.75 0-.91.33-1.63 1-2.17a4 4 0 012.57-.8c.97 0 1.8.18 2.47.52zm7.47 5.7v-.3a2.26 2.26 0 00-.5-1.44c-.3-.35-.74-.53-1.32-.53-.53 0-.99.2-1.37.58a2.9 2.9 0 00-.72 1.68h3.91zm1 2.79v1.4c-.6.34-1.38.51-2.36.51a4.02 4.02 0 01-3-1.13 4.04 4.04 0 01-1.11-2.97c0-1.3.34-2.32 1.02-3.06a3.38 3.38 0 012.6-1.1c1.03 0 1.85.32 2.46.96.6.64.9 1.57.9 2.78 0 .33-.03.68-.09 1.04h-5.31c.1.7.4 1.24.89 1.61.49.38 1.1.56 1.85.56.86 0 1.58-.2 2.15-.6zm6.61-1.78h-1.21c-.6 0-1.05.12-1.35.36-.3.23-.46.53-.46.89 0 .37.12.66.36.88.23.2.57.32 1.02.32.5 0 .9-.15 1.2-.43.3-.28.44-.65.44-1.1v-.92zm-4.07-2.55V9.33a4.96 4.96 0 012.5-.55c2.1 0 3.17 1.03 3.17 3.08V17H22.1v-.96c-.42.68-1.15 1.02-2.19 1.02-.76 0-1.38-.22-1.84-.66-.46-.44-.7-1-.7-1.68 0-.78.3-1.38.88-1.81.59-.43 1.4-.65 2.46-.65h1.34v-.46c0-.55-.13-.97-.4-1.25-.26-.29-.7-.43-1.32-.43-.86 0-1.65.24-2.35.72zm9.34-1.93v1.42c.39-1 1.1-1.5 2.12-1.5.15 0 .31.02.5.05v1.53c-.23-.1-.48-.14-.76-.14-.54 0-.99.24-1.34.71a2.8 2.8 0 00-.52 1.71V17h-1.57V8.91h1.57zm5 4.09a3 3 0 00.76 2.01c.47.53 1.14.8 2 .8.64 0 1.24-.18 1.8-.53v1.4c-.53.32-1.2.48-2 .48a3.98 3.98 0 01-4.17-4.18c0-1.16.38-2.15 1.14-2.98a4 4 0 013.1-1.23c.7 0 1.34.15 1.92.44v1.44a3.24 3.24 0 00-1.77-.5A2.65 2.65 0 0032.33 13zm7.92-7.28v4.58c.46-1 1.3-1.5 2.5-1.5.8 0 1.42.24 1.9.73.48.5.72 1.17.72 2.05V17H43.8v-5.1c0-.56-.14-.99-.43-1.29-.28-.3-.65-.45-1.1-.45-.54 0-1 .2-1.42.6-.4.4-.61 1.02-.61 1.85V17h-1.56V5.72h1.56zM55.2 15.74c.6 0 1.1-.25 1.5-.76.4-.5.6-1.16.6-1.95 0-.92-.2-1.62-.6-2.12-.4-.5-.92-.74-1.55-.74-.56 0-1.05.22-1.5.67-.44.45-.66 1.13-.66 2.06 0 .96.22 1.67.64 2.14.43.47.95.7 1.57.7zM53 5.72v4.42a2.74 2.74 0 012.43-1.34c1.03 0 1.86.38 2.51 1.15.65.76.97 1.78.97 3.05 0 1.13-.3 2.1-.92 2.9-.62.81-1.47 1.21-2.54 1.21s-1.9-.45-2.46-1.34V17h-1.58V5.72H53zm9.9 11.1l-3.22-7.9h1.74l1 2.62 1.26 3.42c.1-.32.48-1.46 1.15-3.42l.91-2.63h1.66l-2.92 7.87c-.78 2.07-1.96 3.1-3.56 3.1-.28 0-.53-.02-.73-.07v-1.34c.17.04.35.06.54.06 1.03 0 1.76-.57 2.17-1.7z"}),Ms,Hs,Un("path",{fill:"dark"===n?"#FFF":"#5468FF",d:"M120.92 18.8c-4.38.02-4.38-3.54-4.38-4.1V1.36l2.67-.42v13.25c0 .32 0 2.36 1.71 2.37v2.24zm-10.84-2.18c.82 0 1.43-.04 1.85-.12v-2.72a5.48 5.48 0 00-1.57-.2c-.3 0-.6.02-.9.07-.3.04-.57.12-.81.24-.24.11-.44.28-.58.49a.93.93 0 00-.22.65c0 .63.22 1 .61 1.23.4.24.94.36 1.62.36zm-.23-9.7c.88 0 1.62.11 2.23.33.6.22 1.09.53 1.44.92.36.4.61.92.76 1.48.16.56.23 1.17.23 1.85v6.87a21.69 21.69 0 01-4.68.5c-.69 0-1.32-.07-1.9-.2a4 4 0 01-1.46-.63 3.3 3.3 0 01-.96-1.13 4.3 4.3 0 01-.34-1.8 3.13 3.13 0 011.43-2.63c.45-.3.95-.5 1.54-.62a8.8 8.8 0 013.79.05v-.44c0-.3-.04-.6-.11-.87a1.78 1.78 0 00-1.1-1.22 3.2 3.2 0 00-1.15-.2 9.75 9.75 0 00-2.95.46l-.33-2.19a11.43 11.43 0 013.56-.53zm52.84 9.63c.82 0 1.43-.05 1.85-.13V13.7a5.42 5.42 0 00-1.57-.2c-.3 0-.6.02-.9.07-.3.04-.57.12-.81.24-.24.12-.44.28-.58.5a.93.93 0 00-.22.65c0 .63.22.99.61 1.23.4.24.94.36 1.62.36zm-.23-9.7c.88 0 1.63.11 2.23.33.6.22 1.1.53 1.45.92.35.39.6.92.76 1.48.15.56.23 1.18.23 1.85v6.88c-.41.08-1.03.19-1.87.31-.83.12-1.77.18-2.81.18-.7 0-1.33-.06-1.9-.2a4 4 0 01-1.47-.63c-.4-.3-.72-.67-.95-1.13a4.3 4.3 0 01-.34-1.8c0-.66.13-1.08.38-1.53.26-.45.61-.82 1.05-1.1.44-.3.95-.5 1.53-.62a8.8 8.8 0 013.8.05v-.43c0-.31-.04-.6-.12-.88-.07-.28-.2-.52-.38-.73a1.78 1.78 0 00-.73-.5c-.3-.1-.68-.2-1.14-.2a9.85 9.85 0 00-2.95.47l-.32-2.19a11.63 11.63 0 013.55-.53zm-8.03-1.27a1.62 1.62 0 000-3.24 1.62 1.62 0 100 3.24zm1.35 13.22h-2.7V7.27l2.7-.42V18.8zm-4.72 0c-4.38.02-4.38-3.54-4.38-4.1l-.01-13.34 2.67-.42v13.25c0 .32 0 2.36 1.72 2.37v2.24zm-8.7-5.9a4.7 4.7 0 00-.74-2.79 2.4 2.4 0 00-2.07-1 2.4 2.4 0 00-2.06 1 4.7 4.7 0 00-.74 2.8c0 1.16.25 1.94.74 2.62a2.4 2.4 0 002.07 1.02c.88 0 1.57-.34 2.07-1.02a4.2 4.2 0 00.73-2.63zm2.74 0a6.46 6.46 0 01-1.52 4.23c-.49.53-1.07.94-1.76 1.22-.68.29-1.73.45-2.26.45a6.6 6.6 0 01-2.25-.45 5.1 5.1 0 01-2.88-3.13 7.3 7.3 0 01-.01-4.84 5.13 5.13 0 012.9-3.1 5.67 5.67 0 012.22-.42c.81 0 1.56.14 2.24.42.69.29 1.28.69 1.75 1.22.49.52.87 1.15 1.14 1.89a7 7 0 01.43 2.5zm-20.14 0c0 1.11.25 2.36.74 2.88.5.52 1.13.78 1.91.78a4.07 4.07 0 002.12-.6V9.33c-.19-.04-.99-.2-1.76-.23a2.67 2.67 0 00-2.23 1 4.73 4.73 0 00-.78 2.8zm7.44 5.27c0 1.82-.46 3.16-1.4 4-.94.85-2.37 1.27-4.3 1.27-.7 0-2.17-.13-3.34-.4l.43-2.11c.98.2 2.27.26 2.95.26 1.08 0 1.84-.22 2.3-.66.46-.43.68-1.08.68-1.94v-.44a5.2 5.2 0 01-2.54.6 5.6 5.6 0 01-2.01-.36 4.2 4.2 0 01-2.58-2.71 9.88 9.88 0 01.02-5.35 4.92 4.92 0 012.93-2.96 6.6 6.6 0 012.43-.46 19.64 19.64 0 014.43.66v10.6z"}))))}function ks(e){var t=e.cssClasses,n=e.templates,r=e.items;return Un(Gi,{templateKey:"default",templates:n,rootProps:{className:t.root},data:{items:r}})}var js=$e({name:"panel"}),Ls=_t("Panel"),Ms=Un("path",{fill:"#5468FF",d:"M78.99.94h16.6a2.97 2.97 0 012.96 2.96v16.6a2.97 2.97 0 01-2.97 2.96h-16.6a2.97 2.97 0 01-2.96-2.96V3.9A2.96 2.96 0 0179 .94"}),Hs=Un("path",{fill:"#FFF",d:"M89.63 5.97v-.78a.98.98 0 00-.98-.97h-2.28a.98.98 0 00-.97.97V6c0 .09.08.15.17.13a7.13 7.13 0 013.9-.02c.08.02.16-.04.16-.13m-6.25 1L83 6.6a.98.98 0 00-1.38 0l-.46.46a.97.97 0 000 1.38l.38.39c.06.06.15.04.2-.02a7.49 7.49 0 011.63-1.62c.07-.04.08-.14.02-.2m4.16 2.45v3.34c0 .1.1.17.2.12l2.97-1.54c.06-.03.08-.12.05-.18a3.7 3.7 0 00-3.08-1.87c-.07 0-.14.06-.14.13m0 8.05a4.49 4.49 0 110-8.98 4.49 4.49 0 010 8.98m0-10.85a6.37 6.37 0 100 12.74 6.37 6.37 0 000-12.74"}),Os=_t("PoweredBy"),As=$e({name:"powered-by"}),Ws=$e({name:"query-rule-context"}),Ds={default:function(e){var t=e.items;return JSON.stringify(t,null,2)}},Bs=$e({name:"query-rule-custom-data"}),Us=_t("QueryRuleCustomData"),qs=function(){L(a,Vn);var i=O(a);function a(){var r;E(this,a);for(var e=arguments.length,t=new Array(e),n=0;n=this.props.max}},{key:"computeDefaultPitPoints",value:function(e){var t=e.min,n=e.max,r=(n-t)/34;return[t].concat(P(ft({end:33}).map(function(e){return t+r*(e+1)})),[n])}},{key:"computeSnapPoints",value:function(e){var t=e.min,n=e.max,r=e.step;if(r)return[].concat(P(ft({start:t,end:n,step:r})),[n])}},{key:"render",value:function(){var e=this.props,t=e.tooltips,n=e.step,r=e.pips,i=e.values,a=e.cssClasses,s=this.isDisabled?{min:this.props.min,max:this.props.max+.001}:this.props,o=s.min,c=s.max,u=this.computeSnapPoints({min:o,max:c,step:n}),l=!1===r?[]:this.computeDefaultPitPoints({min:o,max:c});return Un("div",{className:Ni(a.root,j({},a.disabledRoot,this.isDisabled))},Un(uo,{handle:this.createHandleComponent(t),onChange:this.handleChange,min:o,max:c,pitComponent:lo,pitPoints:l,snap:!0,snapPoints:u,values:this.isDisabled?[o,c]:i,disabled:this.isDisabled}))}}]),a}(),fo=$e({name:"range-slider"}),mo=_t("RangeSlider");function po(e){var t=e.children,n=e.count,r=e.value,i=e.url,a=e.cssClasses;return n?Un("a",{className:Ue(a.link),"aria-label":"".concat(r," & up"),href:i},t):Un("div",{className:Ue(a.link),"aria-label":"".concat(r," & up"),disabled:!0},t)}function go(e){var t=e.cssClasses,n=e.templates,r=e.isRelevantSorted,i=e.isVirtualReplica,a=e.refine;return i?Un("div",{className:t.root},Un(Gi,{templateKey:"text",templates:n,rootProps:{className:t.text},data:{isRelevantSorted:r}}),Un("button",{type:"button",className:t.button,onClick:function(){a(r?0:void 0)}},Un(Gi,{rootTagName:"span",templateKey:"button",templates:n,data:{isRelevantSorted:r}}))):null}function vo(e){var t=e.nbHits,n=e.nbSortedHits,r=e.cssClasses,i=e.templateProps,a=M(e,["nbHits","nbSortedHits","cssClasses","templateProps"]);return Un("div",{className:Ni(r.root)},Un(Gi,h({},i,{templateKey:"text",rootTagName:"span",rootProps:{className:r.text},data:W({hasManySortedResults:n&&1=")&&r.hasOwnProperty("<="))r[">="]&&r[">="][0]===r["<="]&&r["<="][0]?t.push("".concat(n,"=").concat(n,"_").concat(r[">="])):t.push("".concat(n,"=").concat(n,"_").concat(r[">="],"to").concat(r["<="]));else if(r.hasOwnProperty(">="))t.push("".concat(n,"=").concat(n,"_from").concat(r[">="]));else if(r.hasOwnProperty("<="))t.push("".concat(n,"=").concat(n,"_to").concat(r["<="]));else if(r.hasOwnProperty("=")){var i=[];for(var a in r["="])r["="].hasOwnProperty(a)&&i.push(r["="][a]);t.push("".concat(n,"=").concat(n,"_").concat(i.join("-")))}}return t.join("&")}(e.state.numericRefinements);""!==n&&t.push(n),""!==r&&t.push(r);var i=t.join("&"),a="Query: ".concat(e.state.query||"",", ").concat(i);!0===l&&(a+=", Page: ".concat(e.state.page||0)),m!==a&&(s(i,e.state,e.results),m=a)}}var h,f=null,m="",p=!0;!0===c&&(p=!1);function g(){d(f)}function v(){d(f)}return{$$type:"ais.analytics",$$widgetType:"ais.analytics",init:function(){!0===a&&(document.addEventListener("click",g),window.addEventListener("beforeunload",v))},render:function(e){var t=e.results,n=e.state;!0!==p?(f={results:t,state:n},h&&clearTimeout(h),h=window.setTimeout(function(){return d(f)},r)):p=!1},dispose:function(){!0===a&&(document.removeEventListener("click",g),window.removeEventListener("beforeunload",v))},getRenderState:function(e,t){return W(W({},e),{},{analytics:this.getWidgetRenderState(t)})},getWidgetRenderState:function(){return{widgetParams:e}}}},breadcrumb:function(e){var t=e||{},n=t.container,r=t.attributes,i=t.separator,a=t.rootPath,s=t.transformItems,o=t.templates,c=void 0===o?{}:o,u=t.cssClasses,l=void 0===u?{}:u;if(!n)throw new Error(aa("The `container` option is required."));var d=Xe(n),h={root:Ni(sa(),l.root),noRefinementRoot:Ni(sa({modifierName:"noRefinement"}),l.noRefinementRoot),list:Ni(sa({descendantName:"list"}),l.list),item:Ni(sa({descendantName:"item"}),l.item),selectedItem:Ni(sa({descendantName:"item",modifierName:"selected"}),l.selectedItem),separator:Ni(sa({descendantName:"separator"}),l.separator),link:Ni(sa({descendantName:"link"}),l.link)},f=function(e){var o=e.containerNode,c=e.cssClasses,u=e.renderState,l=e.templates;return function(e,t){var n=e.canRefine,r=e.createURL,i=e.instantSearchInstance,a=e.items,s=e.refine;t?u.templateProps=xi({defaultTemplates:ia,templatesConfig:i.templatesConfig,templates:l}):cr(Un(Zi,{canRefine:n,cssClasses:c,createURL:r,items:a,refine:s,templateProps:u.templateProps}),o)}}({containerNode:d,cssClasses:h,renderState:{},templates:c});return W(W({},Wr(f,function(){return cr(null,d)})({attributes:r,separator:i,rootPath:a,transformItems:s})),{},{$$widgetType:"ais.breadcrumb"})},clearRefinements:function(e){var t=e||{},n=t.container,r=t.templates,i=void 0===r?{}:r,a=t.includedAttributes,s=t.excludedAttributes,o=t.transformItems,c=t.cssClasses,u=void 0===c?{}:c;if(!n)throw new Error(ca("The `container` option is required."));var l=Xe(n),d={root:Ni(ua(),u.root),button:Ni(ua({descendantName:"button"}),u.button),disabledButton:Ni(ua({descendantName:"button",modifierName:"disabled"}),u.disabledButton)},h=function(e){var a=e.containerNode,s=e.cssClasses,o=e.renderState,c=e.templates;return function(e,t){var n=e.refine,r=e.canRefine,i=e.instantSearchInstance;t?o.templateProps=xi({defaultTemplates:oa,templatesConfig:i.templatesConfig,templates:c}):cr(Un(ea,{refine:n,cssClasses:s,hasRefinements:r,templateProps:o.templateProps}),a)}}({containerNode:l,cssClasses:d,renderState:{},templates:i});return W(W({},gn(h,function(){return cr(null,l)})({includedAttributes:a,excludedAttributes:s,transformItems:o})),{},{$$widgetType:"ais.clearRefinements"})},configure:function(e){return W(W({},ai(ge)({searchParameters:e})),{},{$$widgetType:"ais.configure"})},currentRefinements:function(e){var t=e||{},n=t.container,r=t.includedAttributes,i=t.excludedAttributes,a=t.cssClasses,s=void 0===a?{}:a,o=t.transformItems;if(!n)throw new Error(la("The `container` option is required."));var c=Xe(n),u={root:Ni(da(),s.root),list:Ni(da({descendantName:"list"}),s.list),item:Ni(da({descendantName:"item"}),s.item),label:Ni(da({descendantName:"label"}),s.label),category:Ni(da({descendantName:"category"}),s.category),categoryLabel:Ni(da({descendantName:"categoryLabel"}),s.categoryLabel),delete:Ni(da({descendantName:"delete"}),s.delete)};return W(W({},bn(na,function(){return cr(null,c)})({container:c,cssClasses:u,includedAttributes:r,excludedAttributes:i,transformItems:o})),{},{$$widgetType:"ais.currentRefinements"})},EXPERIMENTAL_answers:function(e){var t=e||{},n=t.container,r=t.attributesForPrediction,i=t.queryLanguages,a=t.nbHits,s=t.searchDebounceTime,o=t.renderDebounceTime,c=t.escapeHTML,u=t.extraParameters,l=t.templates,d=void 0===l?{}:l,h=t.cssClasses,f=void 0===h?{}:h;if(!n)throw new Error(fa("The `container` option is required."));var m=Xe(n),p={root:Ni(ma(),f.root),emptyRoot:Ni(ma({modifierName:"empty"}),f.emptyRoot),header:Ni(ma({descendantName:"header"}),f.header),loader:Ni(ma({descendantName:"loader"}),f.loader),list:Ni(ma({descendantName:"list"}),f.list),item:Ni(ma({descendantName:"item"}),f.item)},g=function(e){var a=e.containerNode,s=e.cssClasses,o=e.renderState,c=e.templates;return function(e,t){var n=e.hits,r=e.isLoading,i=e.instantSearchInstance;t?o.templateProps=xi({defaultTemplates:ha,templatesConfig:i.templatesConfig,templates:c}):cr(Un(ra,{cssClasses:s,hits:n,isLoading:r,templateProps:o.templateProps}),a)}}({containerNode:m,cssClasses:p,templates:d,renderState:{}});return W(W({},gi(g,function(){return cr(null,m)})({attributesForPrediction:r,queryLanguages:i,nbHits:a,searchDebounceTime:s,renderDebounceTime:o,escapeHTML:c,extraParameters:u})),{},{$$widgetType:"ais.answers"})},EXPERIMENTAL_configureRelatedItems:function(e){return W(W({},ci(ge)(e)),{},{$$widgetType:"ais.configureRelatedItems"})},geoSearch:function(e){var t=e||{},n=t.initialZoom,r=void 0===n?1:n,i=t.initialPosition,a=void 0===i?{lat:0,lng:0}:i,s=t.templates,o=void 0===s?{}:s,c=t.cssClasses,u=void 0===c?{}:c,l=t.builtInMarker,d=void 0===l?{}:l,h=t.customHTMLMarker,f=t.enableRefine,m=void 0===f||f,p=t.enableClearMapRefinement,g=void 0===p||p,v=t.enableRefineControl,y=void 0===v||v,b=t.container,S=t.googleReference,R=M(t,["initialZoom","initialPosition","templates","cssClasses","builtInMarker","customHTMLMarker","enableRefine","enableClearMapRefinement","enableRefineControl","container","googleReference"]);if(!b)throw new Error(Ia("The `container` option is required."));if(!S)throw new Error(Ia("The `googleReference` option is required."));var w=Xe(b),_={root:Ni(Fa(),u.root),tree:Fa({descendantName:"tree"}),map:Ni(Fa({descendantName:"map"}),u.map),control:Ni(Fa({descendantName:"control"}),u.control),label:Ni(Fa({descendantName:"label"}),u.label),selectedLabel:Ni(Fa({descendantName:"label",modifierName:"selected"}),u.selectedLabel),input:Ni(Fa({descendantName:"input"}),u.input),redo:Ni(Fa({descendantName:"redo"}),u.redo),disabledRedo:Ni(Fa({descendantName:"redo",modifierName:"disabled"}),u.disabledRedo),reset:Ni(Fa({descendantName:"reset"}),u.reset)},P=W(W({},xa),o),N=W(W({},{createOptions:function(){return{}},events:{}}),d),x=(Boolean(h)||Boolean(o.HTMLMarker))&&W(W({},{createOptions:function(){return{}},events:{}}),h),I=function(d){return function(){L(l,d.maps.OverlayView);var u=O(l);function l(e){var t,n=e.__id,r=e.position,i=e.map,a=e.template,s=e.className,o=e.anchor,c=void 0===o?{x:0,y:0}:o;return E(this,l),j(H(t=u.call(this)),"__id",void 0),j(H(t),"anchor",void 0),j(H(t),"offset",void 0),j(H(t),"listeners",void 0),j(H(t),"latLng",void 0),j(H(t),"element",void 0),t.__id=n,t.anchor=c,t.listeners={},t.latLng=new d.maps.LatLng(r),t.element=document.createElement("div"),t.element.className=s,t.element.style.position="absolute","object"===C(a)?cr(a,t.element):t.element.innerHTML=a,t.setMap(i),t}return k(l,[{key:"onAdd",value:function(){this.getPanes().overlayMouseTarget.appendChild(this.element);var e=this.element.getBoundingClientRect();this.offset={x:this.anchor.x+e.width/2,y:this.anchor.y+e.height},this.element.style.width="".concat(e.width,"px")}},{key:"draw",value:function(){var e=this.getProjection().fromLatLngToDivPixel(this.latLng);this.element.style.left="".concat(Math.round(e.x-this.offset.x),"px"),this.element.style.top="".concat(Math.round(e.y-this.offset.y),"px"),this.element.style.zIndex=String(parseInt(this.element.style.top,10))}},{key:"onRemove",value:function(){var t=this;this.element&&(this.element.parentNode.removeChild(this.element),Object.keys(this.listeners).forEach(function(e){t.element.removeEventListener(e,t.listeners[e])}),delete this.element,delete this.listeners)}},{key:"addListener",value:function(e,t){this.listeners[e]=t;var n=this.element;return n.addEventListener(e,t),{remove:function(){return n.removeEventListener(e,t)}}}},{key:"getPosition",value:function(){return this.latLng}}]),l}()}(S),F=x?function(e){var t=e.item,n=M(e,["item"]);return new I(W(W(W({},x.createOptions(t)),n),{},{__id:t.objectID,position:t._geoloc,className:Ni(Fa({descendantName:"marker"})),template:Xi({templateKey:"HTMLMarker",templates:P,data:t})}))}:function(e){var t=e.item,n=M(e,["item"]);return new S.maps.Marker(W(W(W({},N.createOptions(t)),n),{},{__id:t.objectID,position:t._geoloc}))},T=x||N;return W(W({},Zr(Pa,function(){return cr(null,w)})(W(W({},R),{},{renderState:{},container:w,googleReference:S,initialZoom:r,initialPosition:a,templates:P,cssClasses:_,createMarker:F,markerOptions:T,enableRefine:m,enableClearMapRefinement:g,enableRefineControl:y}))),{},{$$widgetType:"ais.geoSearch"})},hierarchicalMenu:function(e){var t=e||{},n=t.container,r=t.attributes,i=t.separator,a=t.rootPath,s=t.showParentLevel,o=t.limit,c=t.showMore,u=void 0!==c&&c,l=t.showMoreLimit,d=t.sortBy,h=t.transformItems,f=t.templates,m=void 0===f?{}:f,p=t.cssClasses,g=void 0===p?{}:p;if(!n)throw new Error(Ma("The `container` option is required."));var v=Xe(n),y=function(e){var u=e.cssClasses,l=e.containerNode,d=e.showMore,h=e.templates,f=e.renderState;return function(e,t){var n=e.createURL,r=e.items,i=e.refine,a=e.instantSearchInstance,s=e.isShowingMore,o=e.toggleShowMore,c=e.canToggleShowMore;t?f.templateProps=xi({defaultTemplates:La,templatesConfig:a.templatesConfig,templates:h}):cr(Un(ja,{createURL:n,cssClasses:u,facetValues:r,templateProps:f.templateProps,toggleRefinement:i,showMore:d,toggleShowMore:o,isShowingMore:s,canToggleShowMore:c}),l)}}({cssClasses:{root:Ni(Ha(),g.root),noRefinementRoot:Ni(Ha({modifierName:"noRefinement"}),g.noRefinementRoot),list:Ni(Ha({descendantName:"list"}),g.list),childList:Ni(Ha({descendantName:"list",modifierName:"child"}),g.childList),item:Ni(Ha({descendantName:"item"}),g.item),selectedItem:Ni(Ha({descendantName:"item",modifierName:"selected"}),g.selectedItem),parentItem:Ni(Ha({descendantName:"item",modifierName:"parent"}),g.parentItem),link:Ni(Ha({descendantName:"link"}),g.link),label:Ni(Ha({descendantName:"label"}),g.label),count:Ni(Ha({descendantName:"count"}),g.count),showMore:Ni(Ha({descendantName:"showMore"}),g.showMore),disabledShowMore:Ni(Ha({descendantName:"showMore",modifierName:"disabled"}),g.disabledShowMore)},containerNode:v,templates:m,showMore:u,renderState:{}});return W(W({},Nn(y,function(){return cr(null,v)})({attributes:r,separator:i,rootPath:a,showParentLevel:s,limit:o,showMore:u,showMoreLimit:l,sortBy:d,transformItems:h})),{},{$$widgetType:"ais.hierarchicalMenu"})},hits:function(e){var t=e||{},n=t.container,r=t.escapeHTML,i=t.transformItems,a=t.templates,s=void 0===a?{}:a,o=t.cssClasses,c=void 0===o?{}:o;if(!n)throw new Error(Aa("The `container` option is required."));var u=Xe(n),l={root:Ni(Wa(),c.root),emptyRoot:Ni(Wa({modifierName:"empty"}),c.emptyRoot),list:Ni(Wa({descendantName:"list"}),c.list),item:Ni(Wa({descendantName:"item"}),c.item)},d=function(e){var o=e.renderState,c=e.cssClasses,u=e.containerNode,l=e.templates;return function(e,t){var n=e.hits,r=e.results,i=e.instantSearchInstance,a=e.insights,s=e.bindEvent;t?o.templateProps=xi({defaultTemplates:Oa,templatesConfig:i.templatesConfig,templates:l}):cr(Un(Da,{cssClasses:c,hits:n,results:r,templateProps:o.templateProps,insights:a,sendEvent:function(e){i.sendEventToInsights(e)},bindEvent:s}),u)}}({containerNode:u,cssClasses:l,renderState:{},templates:s});return W(W({},En(xn)(d,function(){return cr(null,u)})({escapeHTML:r,transformItems:i})),{},{$$widgetType:"ais.hits"})},hitsPerPage:function(e){var t=e||{},n=t.container,r=t.items,i=t.cssClasses,a=void 0===i?{}:i,s=t.transformItems;if(!n)throw new Error(Ua("The `container` option is required."));var o=Xe(n),c={root:Ni(qa(),a.root),select:Ni(qa({descendantName:"select"}),a.select),option:Ni(qa({descendantName:"option"}),a.option)},u=function(e){var a=e.containerNode,s=e.cssClasses;return function(e,t){var n=e.items,r=e.refine;if(!t){var i=(ze(n,function(e){return e.isRefined})||{}).value;cr(Un("div",{className:s.root},Un(Ba,{cssClasses:s,currentValue:i,options:n,setValue:r})),a)}}}({containerNode:o,cssClasses:c});return W(W({},dr(u,function(){return cr(null,o)})({items:r,transformItems:s})),{},{$$widgetType:"ais.hitsPerPage"})},index:Rt,infiniteHits:function(e){var t=e||{},n=t.container,r=t.escapeHTML,i=t.transformItems,a=t.templates,s=void 0===a?{}:a,o=t.cssClasses,c=void 0===o?{}:o,u=t.showPrevious,l=t.cache;if(!n)throw new Error(Va("The `container` option is required."));var d=Xe(n),h={root:Ni($a(),c.root),emptyRoot:Ni($a({modifierName:"empty"}),c.emptyRoot),item:Ni($a({descendantName:"item"}),c.item),list:Ni($a({descendantName:"list"}),c.list),loadPrevious:Ni($a({descendantName:"loadPrevious"}),c.loadPrevious),disabledLoadPrevious:Ni($a({descendantName:"loadPrevious",modifierName:"disabled"}),c.disabledLoadPrevious),loadMore:Ni($a({descendantName:"loadMore"}),c.loadMore),disabledLoadMore:Ni($a({descendantName:"loadMore",modifierName:"disabled"}),c.disabledLoadMore)},f=function(e){var d=e.containerNode,h=e.cssClasses,f=e.renderState,m=e.templates,p=e.showPrevious;return function(e,t){var n=e.hits,r=e.results,i=e.showMore,a=e.showPrevious,s=e.isFirstPage,o=e.isLastPage,c=e.instantSearchInstance,u=e.insights,l=e.bindEvent;t?f.templateProps=xi({defaultTemplates:Qa,templatesConfig:c.templatesConfig,templates:m}):cr(Un(Ka,{cssClasses:h,hits:n,results:r,hasShowPrevious:p,showPrevious:a,showMore:i,templateProps:f.templateProps,isFirstPage:s,isLastPage:o,insights:u,sendEvent:function(e){c.sendEventToInsights(e)},bindEvent:l}),d)}}({containerNode:d,cssClasses:h,templates:s,showPrevious:u,renderState:{}});return W(W({},En(gr)(f,function(){return cr(null,d)})({escapeHTML:r,transformItems:i,showPrevious:u,cache:l})),{},{$$widgetType:"ais.infiniteHits"})},menu:function(e){var t=e||{},n=t.container,r=t.attribute,i=t.sortBy,a=t.limit,s=t.showMore,o=t.showMoreLimit,c=t.cssClasses,u=void 0===c?{}:c,l=t.templates,d=void 0===l?{}:l,h=t.transformItems;if(!n)throw new Error(Ja("The `container` option is required."));var f=Xe(n),m={root:Ni(Ya(),u.root),noRefinementRoot:Ni(Ya({modifierName:"noRefinement"}),u.noRefinementRoot),list:Ni(Ya({descendantName:"list"}),u.list),item:Ni(Ya({descendantName:"item"}),u.item),selectedItem:Ni(Ya({descendantName:"item",modifierName:"selected"}),u.selectedItem),link:Ni(Ya({descendantName:"link"}),u.link),label:Ni(Ya({descendantName:"label"}),u.label),count:Ni(Ya({descendantName:"count"}),u.count),showMore:Ni(Ya({descendantName:"showMore"}),u.showMore),disabledShowMore:Ni(Ya({descendantName:"showMore",modifierName:"disabled"}),u.disabledShowMore)},p=function(e){var l=e.containerNode,d=e.cssClasses,h=e.renderState,f=e.templates,m=e.showMore;return function(e,t){var n=e.refine,r=e.items,i=e.createURL,a=e.instantSearchInstance,s=e.isShowingMore,o=e.toggleShowMore,c=e.canToggleShowMore;if(t)h.templateProps=xi({defaultTemplates:za,templatesConfig:a.templatesConfig,templates:f});else{var u=r.map(function(e){return W(W({},e),{},{url:i(e.value)})});cr(Un(ja,{createURL:i,cssClasses:d,facetValues:u,showMore:m,templateProps:h.templateProps,toggleRefinement:n,toggleShowMore:o,isShowingMore:s,canToggleShowMore:c}),l)}}}({containerNode:f,cssClasses:m,renderState:{},templates:d,showMore:s});return W(W({},vr(p,function(){return cr(null,f)})({attribute:r,limit:a,showMore:s,showMoreLimit:o,sortBy:i,transformItems:h})),{},{$$widgetType:"ais.menu"})},menuSelect:function(e){var t=e||{},n=t.container,r=t.attribute,i=t.sortBy,a=void 0===i?["name:asc"]:i,s=t.limit,o=void 0===s?10:s,c=t.cssClasses,u=void 0===c?{}:c,l=t.templates,d=void 0===l?{}:l,h=t.transformItems;if(!n)throw new Error(Za("The `container` option is required."));var f=Xe(n),m={root:Ni(es(),u.root),noRefinementRoot:Ni(es({modifierName:"noRefinement"}),u.noRefinementRoot),select:Ni(es({descendantName:"select"}),u.select),option:Ni(es({descendantName:"option"}),u.option)},p=function(e){var a=e.containerNode,s=e.cssClasses,o=e.renderState,c=e.templates;return function(e,t){var n=e.refine,r=e.items,i=e.instantSearchInstance;t?o.templateProps=xi({defaultTemplates:Ga,templatesConfig:i.templatesConfig,templates:c}):cr(Un(Xa,{cssClasses:s,items:r,refine:n,templateProps:o.templateProps}),a)}}({containerNode:f,cssClasses:m,renderState:{},templates:d});return W(W({},vr(p,function(){return cr(null,f)})({attribute:r,limit:o,sortBy:a,transformItems:h})),{},{$$widgetType:"ais.menuSelect"})},numericMenu:function(e){var t=e||{},n=t.container,r=t.attribute,i=t.items,a=t.cssClasses,s=void 0===a?{}:a,o=t.templates,c=void 0===o?{}:o,u=t.transformItems;if(!n)throw new Error(ns("The `container` option is required."));var l=Xe(n),d={root:Ni(rs(),s.root),noRefinementRoot:Ni(rs({modifierName:"noRefinement"}),s.noRefinementRoot),list:Ni(rs({descendantName:"list"}),s.list),item:Ni(rs({descendantName:"item"}),s.item),selectedItem:Ni(rs({descendantName:"item",modifierName:"selected"}),s.selectedItem),label:Ni(rs({descendantName:"label"}),s.label),radio:Ni(rs({descendantName:"radio"}),s.radio),labelText:Ni(rs({descendantName:"labelText"}),s.labelText)},h=function(e){var s=e.containerNode,o=e.attribute,c=e.cssClasses,u=e.renderState,l=e.templates;return function(e,t){var n=e.createURL,r=e.instantSearchInstance,i=e.refine,a=e.items;t?u.templateProps=xi({defaultTemplates:ts,templatesConfig:r.templatesConfig,templates:l}):cr(Un(ja,{createURL:n,cssClasses:c,facetValues:a,templateProps:u.templateProps,toggleRefinement:i,attribute:o}),s)}}({containerNode:l,attribute:r,cssClasses:d,renderState:{},templates:c});return W(W({},yr(h,function(){return cr(null,l)})({attribute:r,items:i,transformItems:u})),{},{$$widgetType:"ais.numericMenu"})},pagination:function(e){var t=e||{},n=t.container,r=t.templates,i=void 0===r?{}:r,a=t.cssClasses,s=void 0===a?{}:a,o=t.totalPages,c=t.padding,u=t.showFirst,l=void 0===u||u,d=t.showLast,h=void 0===d||d,f=t.showPrevious,m=void 0===f||f,p=t.showNext,g=void 0===p||p,v=t.scrollTo,y=void 0===v?"body":v;if(!n)throw new Error(ds("The `container` option is required."));var b=Xe(n),S=!0===y?"body":y,R=!1!==S&&Xe(S),w={root:Ni(ls(),s.root),noRefinementRoot:Ni(ls({modifierName:"noRefinement"}),s.noRefinementRoot),list:Ni(ls({descendantName:"list"}),s.list),item:Ni(ls({descendantName:"item"}),s.item),firstPageItem:Ni(ls({descendantName:"item",modifierName:"firstPage"}),s.firstPageItem),lastPageItem:Ni(ls({descendantName:"item",modifierName:"lastPage"}),s.lastPageItem),previousPageItem:Ni(ls({descendantName:"item",modifierName:"previousPage"}),s.previousPageItem),nextPageItem:Ni(ls({descendantName:"item",modifierName:"nextPage"}),s.nextPageItem),pageItem:Ni(ls({descendantName:"item",modifierName:"page"}),s.pageItem),selectedItem:Ni(ls({descendantName:"item",modifierName:"selected"}),s.selectedItem),disabledItem:Ni(ls({descendantName:"item",modifierName:"disabled"}),s.disabledItem),link:Ni(ls({descendantName:"link"}),s.link)},_=W(W({},hs),i),P=function(e){var u=e.containerNode,l=e.cssClasses,d=e.templates,h=e.showFirst,f=e.showLast,m=e.showPrevious,p=e.showNext,g=e.scrollToNode;return function(e,t){var n=e.createURL,r=e.currentRefinement,i=e.nbPages,a=e.pages,s=e.isFirstPage,o=e.isLastPage,c=e.refine;if(!t){cr(Un(is,{createURL:n,cssClasses:l,currentPage:r,templates:d,nbPages:i,pages:a,isFirstPage:s,isLastPage:o,setCurrentPage:function(e){c(e),!1!==g&&g.scrollIntoView()},showFirst:h,showLast:f,showPrevious:m,showNext:p}),u)}}}({containerNode:b,cssClasses:w,templates:_,showFirst:l,showLast:h,showPrevious:m,showNext:g,scrollToNode:R});return W(W({},xr(P,function(){return cr(null,b)})({totalPages:o,padding:c})),{},{$$widgetType:"ais.pagination"})},panel:function(e){var t=e||{},n=t.templates,r=void 0===n?{}:n,i=t.hidden,c=void 0===i?function(){return!1}:i,a=t.collapsed,s=t.cssClasses,o=void 0===s?{}:s,u=document.createElement("div"),l=Boolean(a),d="function"==typeof a?a:function(){return!1},h={root:Ni(Ls(),o.root),noRefinementRoot:Ni(Ls({modifierName:"noRefinement"}),o.noRefinementRoot),collapsibleRoot:Ni(Ls({modifierName:"collapsible"}),o.collapsibleRoot),collapsedRoot:Ni(Ls({modifierName:"collapsed"}),o.collapsedRoot),collapseButton:Ni(Ls({descendantName:"collapseButton"}),o.collapseButton),collapseIcon:Ni(Ls({descendantName:"collapseIcon"}),o.collapseIcon),body:Ni(Ls({descendantName:"body"}),o.body),header:Ni(Ls({descendantName:"header"}),o.header),footer:Ni(Ls({descendantName:"footer"}),o.footer)};return function(t){return function(e){if(!e||!e.container)throw new Error(js("The `container` option is required in the widget within the panel."));var i=Xe(e.container),s=function(e){var a=e.containerNode,s=e.bodyContainerNode,o=e.cssClasses,c=e.templates;return function(e){var t=e.options,n=e.hidden,r=e.collapsible,i=e.collapsed;cr(Un(Cs,{cssClasses:o,hidden:n,collapsible:r,isCollapsed:i,templates:c,data:t,bodyElement:s}),a)}}({containerNode:i,bodyContainerNode:u,cssClasses:h,templates:W(W({},{header:"",footer:"",collapseButtonText:function(e){var t=e.collapsed;return'')}}),r)}),o=t(W(W({},e),{},{container:u}));return W(W({},o),{},{init:function(){for(var e=arguments.length,t=new Array(e),n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return"boolean"!=typeof e.showParentLevel||e.showParentLevel},getHierarchicalFacetByName:function(t){return g(this.hierarchicalFacets,function(e){return e.name===t})},getHierarchicalFacetBreadcrumb:function(e){if(!this.isHierarchicalFacet(e))return[];var t=this.getHierarchicalRefinement(e)[0];if(!t)return[];var n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e));return t.split(n).map(function(e){return e.trim()})},toString:function(){return JSON.stringify(this,null,2)}};var w=S;function _(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=void 0!==t,a=null===t;if(!a&&t=i.length?r:"desc"===i[n]?-r:r}return e.index-t.index}),t.map(function(e){return e.value})};var e=function(e){return"string"!=typeof e?e:String(e).replace(/^-/,"\\-")},T=function(e){return"string"!=typeof e?e:e.replace(/^\\-/,"-")},A=function(d){return function(e,t){var n=d.hierarchicalFacets[t],r=d.hierarchicalFacetsRefinements[n.name]&&d.hierarchicalFacetsRefinements[n.name][0]||"",i=d._getHierarchicalFacetSeparator(n),a=d._getHierarchicalRootPath(n),s=d._getHierarchicalShowParentLevel(n),o=I(d._getHierarchicalFacetSortBy(n)),c=e.every(function(e){return e.exhaustive}),u=function(o,c,u,l,d){return function(e,n,t){var r=e;if(0n&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},X.prototype.once=function(e,t){if(!Z(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},X.prototype.removeListener=function(e,t){var n,r,i,a;if(!Z(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=(n=this._events[e]).length,r=-1,n===t||Z(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(ee(n)){for(a=i;0":">",'"':""","'":"'"},Se=/[&<>"']/g,we=RegExp(Se.source);var _e={"&":"&","<":"<",">":">",""":'"',"'":"'"},Pe=/&(amp|quot|lt|gt|#39);/g,Ne=RegExp(Pe.source);function xe(e){return e&&Ne.test(e)?e.replace(Pe,function(e){return _e[e]}):e}function Ie(e){if(!function(e){return"object"===C(e)&&null!==e}(e)||"[object Object]"!==function(e){return null===e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}(e))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}var Fe={highlightPreTag:"__ais-highlight__",highlightPostTag:"__/ais-highlight__"},Te={highlightPreTag:"",highlightPostTag:""};function Ce(e){return function(e){return e&&we.test(e)?e.replace(Se,function(e){return Re[e]}):e}(e).replace(new RegExp(Fe.highlightPreTag,"g"),Te.highlightPreTag).replace(new RegExp(Fe.highlightPostTag,"g"),Te.highlightPostTag)}function Ee(n){return Ie(n)&&"string"!=typeof n.value?Object.keys(n).reduce(function(e,t){return W(W({},e),{},j({},t,Ee(n[t])))},{}):Array.isArray(n)?n.map(Ee):W(W({},n),{},{value:Ce(n.value)})}function ke(e){return void 0===e.__escaped&&((e=e.map(function(e){var t=h({},e);return t._highlightResult&&(t._highlightResult=Ee(t._highlightResult)),t._snippetResult&&(t._snippetResult=Ee(t._snippetResult)),t})).__escaped=!0),e}function je(e){var t=Te.highlightPreTag,n=Te.highlightPostTag;return e.map(function(e){return e.isHighlighted?t+e.value+n:e.value}).join("")}function Le(e){var o=e.instantSearchInstance,c=e.helper,u=e.attribute,l=e.widgetType;return function(){for(var e=arguments.length,t=new Array(e),n=0;n')).replace(new RegExp(Te.highlightPostTag,"g"),"".concat(r,">"))}var xt=_t("ReverseHighlight");function It(e){var t=e.attribute,n=e.highlightedTagName,r=void 0===n?"mark":n,i=e.hit,a=e.cssClasses,s=void 0===a?{}:a,o=(et(i._highlightResult,t)||{}).value,c=void 0===o?"":o,u=xt({descendantName:"highlighted"})+(s.highlighted?" ".concat(s.highlighted):"");return je(mt(Ge(c))).replace(new RegExp(Te.highlightPreTag,"g"),"<".concat(r,' class="').concat(u,'">')).replace(new RegExp(Te.highlightPostTag,"g"),"".concat(r,">"))}var Ft=_t("Snippet");function Tt(e){var t=e.attribute,n=e.highlightedTagName,r=void 0===n?"mark":n,i=e.hit,a=e.cssClasses,s=void 0===a?{}:a,o=(et(i._snippetResult,t)||{}).value,c=void 0===o?"":o,u=Ft({descendantName:"highlighted"})+(s.highlighted?" ".concat(s.highlighted):"");return c.replace(new RegExp(Te.highlightPreTag,"g"),"<".concat(r,' class="').concat(u,'">')).replace(new RegExp(Te.highlightPostTag,"g"),"".concat(r,">"))}var Ct=_t("ReverseSnippet");function Et(e){var t=e.attribute,n=e.highlightedTagName,r=void 0===n?"mark":n,i=e.hit,a=e.cssClasses,s=void 0===a?{}:a,o=(et(i._snippetResult,t)||{}).value,c=void 0===o?"":o,u=Ct({descendantName:"highlighted"})+(s.highlighted?" ".concat(s.highlighted):"");return je(mt(Ge(c))).replace(new RegExp(Te.highlightPreTag,"g"),"<".concat(r,' class="').concat(u,'">')).replace(new RegExp(Te.highlightPostTag,"g"),"".concat(r,">"))}function kt(e,t){return function(e){var t,n=e.method,r=e.payload;if("object"!==C(r))throw new Error("The insights helper expects the payload to be an object.");try{t=Me(r)}catch(e){throw new Error("Could not JSON serialize the payload object.")}return'data-insights-method="'.concat(n,'" data-insights-payload="').concat(t,'"')}({method:e,payload:t})}function jt(){return function(e){for(var t="".concat(e,"="),n=document.cookie.split(";"),r=0;r>6]+Jt[128|63&c]:c<55296||57344<=c?s+=Jt[224|c>>12]+Jt[128|c>>6&63]+Jt[128|63&c]:(o+=1,c=65536+((1023&c)<<10|1023&a.charCodeAt(o)),s+=Jt[240|c>>18]+Jt[128|c>>12&63]+Jt[128|c>>6&63]+Jt[128|63&c])}return s},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(zt(e)){for(var n=[],r=0;r=":return"≥";case"<=":return"≤";default:return e}}(e.operator)," ").concat(e.name):e.name,r={attribute:e.attribute,type:e.type,value:t,label:n};return void 0!==e.operator&&(r.operator=e.operator),void 0!==e.count&&(r.count=e.count),void 0!==e.exhaustive&&(r.exhaustive=e.exhaustive),r}function Nn(x,e){var I=1 ":t,n=e.rootPath,l=void 0===n?null:n,r=e.showParentLevel,h=void 0===r||r,i=e.limit,f=void 0===i?10:i,a=e.showMore,m=void 0!==a&&a,s=e.showMoreLimit,p=void 0===s?20:s,o=e.sortBy,g=void 0===o?Tn:o,v=e.transformItems,y=void 0===v?function(e){return e}:v;if(!c||!Array.isArray(c)||0===c.length)throw new Error(Fn("The `attributes` option expects an array of strings."));if(!0===m&&p<=f)throw new Error(Fn("The `showMoreLimit` option must be greater than `limit`."));var b,R,S=D(c,1)[0],w=function(){};function _(){w()}var P=!1;function N(){return P?p:f}return{$$type:"ais.hierarchicalMenu",init:function(e){var t=e.instantSearchInstance;x(W(W({},this.getWidgetRenderState(e)),{},{instantSearchInstance:t}),!0)},render:function(e){var t=e.instantSearchInstance;w=function(e,t){return function(){P=!P,t.render(e)}}(e,this),x(W(W({},this.getWidgetRenderState(e)),{},{instantSearchInstance:t}),!1)},dispose:function(e){var t=e.state;return I(),t.removeHierarchicalFacet(S).setQueryParameter("maxValuesPerFacet",void 0)},getRenderState:function(e,t){return W(W({},e),{},{hierarchicalMenu:W(W({},e.hierarchicalMenu),{},j({},S,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(e){var t=e.results,n=e.state,r=e.createURL,i=e.instantSearchInstance,a=e.helper,s=[],o=!1;if(b=b||Le({instantSearchInstance:i,helper:a,attribute:S,widgetType:this.$$type}),R=R||function(e){b("click",e),a.toggleFacetRefinement(S,e).search()},t){var c=t.getFacetValues(S,{sortBy:g,facetOrdering:g===Tn}),u=c&&!Array.isArray(c)&&c.data?c.data:[],l=(n.maxValuesPerFacet||0)>N()?u.length<=N():u.lengthS()),a=v(c.slice(0,S()).map(function(e){var t=e.name,n=e.escapedValue;e.path;return W(W({},M(e,["name","escapedValue","path"])),{},{label:t,value:n})}),{results:t})}return{items:a,createURL:d,refine:h,sendEvent:l,canRefine:0="]&&n[">="][0]||"",a=n["<="]&&n["<="][0]||"";return""===i&&""===a?e:W(W({},e),{},{numericMenu:W(W({},e.numericMenu),{},j({},f,"".concat(i,":").concat(a)))})},getWidgetSearchParameters:function(e,t){var n=t.uiState,r=n.numericMenu&&n.numericMenu[f],i=e.clearRefinements(f);if(!r)return i.setQueryParameters({numericRefinements:W(W({},i.numericRefinements),{},j({},f,{}))});if(-1===r.indexOf(":"))return i.addNumericRefinement(f,"=",Number(r));var a=D(r.split(":").map(parseFloat),2),s=a[0],o=a[1],c=ct(s)?i.addNumericRefinement(f,">=",s):i;return ct(o)?c.addNumericRefinement(f,"<=",o):c},getRenderState:function(e,t){return W(W({},e),{},{numericMenu:W(W({},e.numericMenu),{},j({},f,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(e){var t=e.results,n=e.state,r=e.instantSearchInstance,i=e.helper,a=e.createURL;g.refine||(g.refine=function(e){var t=Pr(i.state,f,e);g.sendEvent("click",e),i.setState(t).search()}),g.createURL||(g.createURL=function(t){return function(e){return a(Pr(t,f,e))}}),g.sendEvent||(g.sendEvent=function(e){var t=e.instantSearchInstance;return function(){1!==arguments.length||t.sendEventToInsights(arguments.length<=0?void 0:arguments[0])}}({instantSearchInstance:r}));var s,o=!t||0===t.nbHits,c=function(i){return m.map(function(e){var t=e.start,n=e.end,r=e.label;return{label:r,value:encodeURI(JSON.stringify({start:t,end:n})),isRefined:_r(i,f,{start:t,end:n,label:r})}})}(n),u=!0,l=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=v(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){o=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}(c);try{for(l.s();!(s=l.n()).done;){var d=s.value;if(d.isRefined&&"{}"!==decodeURI(d.value)){u=!1;break}}}catch(e){l.e(e)}finally{l.f()}return{createURL:g.createURL(n),items:p(c,{results:t}),hasNoResults:o,canRefine:!(o&&u),refine:g.refine,sendEvent:g.sendEvent,widgetParams:h}}}}}var br=En(gr),Rr=$e({name:"menu",connector:!0}),Sr=["isRefined","name:asc"],wr=$e({name:"numeric-menu",connector:!0});function _r(e,t,n){var r=e.getNumericRefinements(t);return void 0!==n.start&&void 0!==n.end?n.start===n.end?Nr(r,"=",n.start):Nr(r,">=",n.start)&&Nr(r,"<=",n.end):void 0!==n.start?Nr(r,">=",n.start):void 0!==n.end?Nr(r,"<=",n.end):void 0===n.start&&void 0===n.end&&Object.keys(r).every(function(e){return 0===(r[e]||[]).length})}function Pr(e,t,n){var r=e,i=JSON.parse(decodeURI(n)),a=r.getNumericRefinements(t);if(void 0===i.start&&void 0===i.end)return r.removeNumericRefinement(t);if(_r(r,t,i)||(r=r.removeNumericRefinement(t)),void 0!==i.start&&void 0!==i.end){if(i.start>i.end)throw new Error("option.start should be > to option.end");if(i.start===i.end)return r=Nr(a,"=",i.start)?r.removeNumericRefinement(t,"=",i.start):r.addNumericRefinement(t,"=",i.start)}return void 0!==i.start&&(Nr(a,">=",i.start)&&(r=r.removeNumericRefinement(t,">=",i.start)),r=r.addNumericRefinement(t,">=",i.start)),void 0!==i.end&&(Nr(a,"<=",i.end)&&(r=r.removeNumericRefinement(t,"<=",i.end)),r=r.addNumericRefinement(t,"<=",i.end)),"number"==typeof r.page&&(r.page=0),r}function Nr(e,t,n){return void 0!==e[t]&&e[t].includes(n)}function xr(n,e){var r=1=")||[],1)[0],l=D(s.getNumericRefinement(w,"<=")||[],1)[0],d=void 0===n||""===n,h=void 0===r||""===r,f=Cr({min:d?void 0:parseFloat(n),max:h?void 0:parseFloat(r),precision:N}),m=f.min,p=f.max;i=ct(_)||o!==m?ct(_)&&d?_:m:void 0,a=ct(P)||c!==p?ct(P)&&h?P:p:void 0;var g=void 0===i,v=ct(o)&&o<=i,y=g||ct(i)&&(!ct(o)||v),b=void 0===a,R=ct(a)&&a<=c,S=b||ct(a)&&(!ct(c)||R);return(u!==i||l!==a)&&y&&S?(s=s.removeNumericRefinement(w),ct(i)&&(s=s.addNumericRefinement(w,">=",i)),ct(a)&&(s=s.addNumericRefinement(w,"<=",a)),s.resetPage()):null}(i,a,t,n);r&&i.setState(r).search()}}return{$$type:"ais.range",init:function(e){r(W(W({},this.getWidgetRenderState(e)),{},{instantSearchInstance:e.instantSearchInstance}),!0)},render:function(e){r(W(W({},this.getWidgetRenderState(e)),{},{instantSearchInstance:e.instantSearchInstance}),!1)},getRenderState:function(e,t){return W(W({},e),{},{range:W(W({},e.range),{},j({},w,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(e){var t=e.results,n=e.helper,r=e.instantSearchInstance,i=ze(t&&t.disjunctiveFacets||[],function(e){return e.name===w}),a=function(e){return Cr({min:ct(_)?_:ct(e.min)?e.min:0,max:ct(P)?P:ct(e.max)?e.max:0,precision:N})}(i&&i.stats||{min:void 0,max:void 0}),s=function(e){var t=D(e.getNumericRefinement(w,">=")||[],1)[0],n=D(e.getNumericRefinement(w,"<=")||[],1)[0];return[ct(t)?t:-1/0,ct(n)?n:1/0]}(n);return{refine:u(n,t?a:{min:void 0,max:void 0}),canRefine:a.min!==a.max,format:c,range:a,sendEvent:function(e){return function(){1!==arguments.length||e.sendEventToInsights(arguments.length<=0?void 0:arguments[0])}}(r),widgetParams:W(W({},o),{},{precision:N}),start:s}},dispose:function(e){var t=e.state;return i(),t.removeDisjunctiveFacet(w).removeNumericRefinement(w)},getWidgetUiState:function(e,t){var n=t.searchParameters.getNumericRefinements(w),r=n[">="],i=void 0===r?[]:r,a=n["<="],s=void 0===a?[]:a;return 0===i.length&&0===s.length?e:W(W({},e),{},{range:W(W({},e.range),{},j({},w,"".concat(i,":").concat(s)))})},getWidgetSearchParameters:function(e,t){var n=t.uiState,r=e.addDisjunctiveFacet(w).setQueryParameters({numericRefinements:W(W({},e.numericRefinements),{},j({},w,{}))});ct(_)&&(r=r.addNumericRefinement(w,">=",_)),ct(P)&&(r=r.addNumericRefinement(w,"<=",P));var i=n.range&&n.range[w];if(!i||-1===i.indexOf(":"))return r;var a=D(i.split(":").map(parseFloat),2),s=a[0],o=a[1];return ct(s)&&(!ct(_)||_=")).addNumericRefinement(w,">=",s)),ct(o)&&(!ct(P)||op||g&&!P;return{createURL:function(e){return r(n.resetPage().toggleFacetRefinement(m,e))},items:s,refine:S,searchForItems:d,isFromSearch:!1,canRefine:0="])&&void 0!==t&&t.length)return n[">="][0]}function r(e,t){var n=y(e)===Number(t),r=e.resetPage().removeNumericRefinement(g);return n?r:r.addNumericRefinement(g,"<=",v).addNumericRefinement(g,">=",Number(t))}var b=function(e){return function(e,t){p("click",t),e.setState(r(e.state,t)).search()}.bind(null,e)},R=function(e){var t=e.state,n=e.createURL;return function(e){return n(r(t,e))}};return{$$type:Vr,init:function(e){var t=e.instantSearchInstance;n(W(W({},this.getWidgetRenderState(e)),{},{instantSearchInstance:t}),!0)},render:function(e){var t=e.instantSearchInstance;n(W(W({},this.getWidgetRenderState(e)),{},{instantSearchInstance:t}),!1)},getRenderState:function(e,t){return W(W({},e),{},{ratingMenu:W(W({},e.ratingMenu),{},j({},g,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(e){var t=e.helper,n=e.results,r=e.state,i=e.instantSearchInstance,a=e.createURL,s=[];p=p||function(e){var o=e.instantSearchInstance,c=e.helper,u=e.getRefinedStar,l=e.attribute;return function(){for(var e=arguments.length,t=new Array(e),n=0;n=").concat(i)]},attribute:l})}else o.sendEventToInsights(t[0])}}({instantSearchInstance:i,helper:t,getRefinedStar:function(){return y(t.state)},attribute:g});var o=!1,c=0,u=null==n?void 0:n.getFacetValues(g,{});if(n&&u){u.length,function(e){var r=0;e.forEach(function(e){var t=D(e.name.split("."),2)[1],n=void 0===t?"":t;r=Math.max(r,n.length)})}(u);for(var l=y(r),d=function(n){var e=l===n;o=o||e;var t=u.filter(function(e){return Number(e.name)>=n&&Number(e.name)<=v}).map(function(e){return e.count}).reduce(function(e,t){return e+t},0);if(c+=t,l&&!e&&0===t)return"continue";var r=P(new Array(Math.floor(v/1))).map(function(e,t){return 1*t=",r):i.setQueryParameters({numericRefinements:W(W({},i.numericRefinements),{},j({},g,{}))})}}}}function Or(n,e){var t=1 ":n,i=e.rootPath,a=void 0===i?null:i,o=e.transformItems,c=void 0===o?function(e){return e}:o;if(!t||!Array.isArray(t)||0===t.length)throw new Error(Jr("The `attributes` option expects an array of strings."));var u=D(t,1)[0];function l(e,t){if(t)return e.resetPage().toggleFacetRefinement(u,t);var n=e.getHierarchicalFacetBreadcrumb(u);return 0===n.length?e:e.resetPage().toggleFacetRefinement(u,n[0])}return{$$type:"ais.breadcrumb",init:function(e){d(W(W({},this.getWidgetRenderState(e)),{},{instantSearchInstance:e.instantSearchInstance}),!0)},render:function(e){d(W(W({},this.getWidgetRenderState(e)),{},{instantSearchInstance:e.instantSearchInstance}),!1)},dispose:function(){h()},getRenderState:function(e,t){return W(W({},e),{},{breadcrumb:W(W({},e.breadcrumb),{},j({},u,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(e){var t=e.helper,n=e.createURL,r=e.results,i=e.state;var a=function(){if(!r||0===i.hierarchicalFacets.length)return[];var e=D(i.hierarchicalFacets,1)[0].name,t=r.getFacetValues(e,{}),n=Array.isArray(t.data)?t.data:[];return c(function(n){return n.map(function(e,t){return{label:e.label,value:t+1===n.length?null:n[t+1].value}})}(function n(e){return e.reduce(function(e,t){return t.isRefined&&(e.push({label:t.name,value:t.escapedValue}),Array.isArray(t.data)&&(e=e.concat(n(t.data)))),e},[])}(n)),{results:r})}();return f.createURL||(f.createURL=function(e){return n(l(t.state,e))}),f.refine||(f.refine=function(e){t.setState(l(t.state,e)).search()}),{canRefine:0")}function ci(c,u){return function(e){var t=e||{},a=t.hit,s=t.matchingPatterns,n=t.transformSearchParameters,r=void 0===n?function(e){return e}:n;if(!a)throw new Error(si("The `hit` option is required."));if(!s)throw new Error(si("The `matchingPatterns` option is required."));var i=Object.keys(s).reduce(function(e,t){var n=s[t],r=et(a,t),i=n.score;return Array.isArray(r)?[].concat(P(e),[r.map(function(e){return oi({attributeName:t,attributeValue:e,attributeScore:i})})]):"string"==typeof r?[].concat(P(e),[oi({attributeName:t,attributeValue:r,attributeScore:i})]):e},[]),o=W({},r(new pe.SearchParameters({sumOrFiltersScores:!0,facetFilters:["objectID:-".concat(a.objectID)],optionalFilters:i})));return W(W({},ai(c,u)({searchParameters:o})),{},{$$type:"ais.configureRelatedItems"})}}var ui=$e({name:"autocomplete",connector:!0}),li=$e({name:"query-rules",connector:!0});function di(e){var t=this.helper,n=this.initialRuleContexts,r=this.trackedFilters,i=this.transformRuleContexts,a=e.state,s=a.ruleContexts||[],o=function(e){var i=e.helper,a=e.sharedHelperState,s=e.trackedFilters;return Object.keys(s).reduce(function(e,t){var n=nt(i.lastResults||{},a,!0).filter(function(e){return e.attribute===t}).map(function(e){return e.numericValue||e.name}),r=(0,s[t])(n);return[].concat(P(e),P(n.filter(function(e){return r.includes(e)}).map(function(e){return function(e){return e.replace(/[^a-z0-9-_]+/gi,"_")}("ais-".concat(t,"-").concat(e))})))},[])}({helper:t,sharedHelperState:a,trackedFilters:r}),c=i([].concat(P(n),P(o))).slice(0,10);ot(s,c)||t.overrideStateWithoutTriggeringChangeEvent(W(W({},a),{},{ruleContexts:c}))}function hi(d,e){var h=1= 4.8.0 required."));m=qe(n.findAnswers,u),b(W(W({},this.getWidgetRenderState(e)),{},{instantSearchInstance:e.instantSearchInstance}),!0)},render:function(n){var r=this,e=n.state.query;if(!e)return v=!(g=[]),void b(W(W({},this.getWidgetRenderState(n)),{},{instantSearchInstance:n.instantSearchInstance}),!1);g=[],v=!0,b(W(W({},this.getWidgetRenderState(n)),{},{instantSearchInstance:n.instantSearchInstance}),!1),p(m(e,i,W(W({},f),{},{nbHits:s,attributesForPrediction:a}))).then(function(e){if(e){d&&0":7,"=":8,_v:9,"{":10,"&":11,_t:12},R.scan=function(e,t){var n,r,i,a,s,o=e.length,c=0,u=null,l=null,d="",h=[],f=!1,m=0,p=0,g="{{",v="}}";function y(){0"==n.tag&&(n.indent=h[r].text.toString()),h.splice(r,1));else t||h.push({tag:"\n"});f=!1,p=h.length}for(t&&(t=t.split(" "),g=t[0],v=t[1]),m=0;m":m,"<":function(e,t){var n={partials:{},code:"",subs:{},inPartial:!0};R.walk(e.nodes,n);var r=t.partials[m(e,t)];r.subs=n.subs,r.partials=n.partials},$:function(e,t){var n={subs:{},code:"",partials:t.partials,prefix:e.n};R.walk(e.nodes,n),t.subs[e.n]=n.code,t.inPartial||(t.code+='t.sub("'+h(e.n)+'",c,p,i);')},"\n":function(e,t){t.code+=p('"\\n"'+(e.last?"":" + i"))},_v:function(e,t){t.code+="t.b(t.v(t."+f(e.n)+'("'+h(e.n)+'",c,p,0)));'},_t:function(e,t){t.code+=p('"'+h(e.text)+'"')},"{":e,"&":e},R.walk=function(e,t){for(var n,r=0,i=e.length;r/g,i=/\'/g,a=/\"/g,s=/[&<>\"\']/;function o(e){return String(null==e?"":e)}var d=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}(t)});Ii.Template=Fi.Template,Ii.template=Ii.Template;var Ti=Ii,Ci=function(e,t,n,r){var i;t[0]=0;for(var a=1;a"===t?(r=1,""):t+i[0]:a?t===a?a="":i+=t:'"'===t||"'"===t?a=t:">"===t?(o(),r=1):r&&("="===t?(r=5,n=i,i=""):"/"===t&&(r<5||">"===e[c][u+1])?(o(),3===r&&(s=s[0]),(s=(r=s)[0]).push(2,0,r),r=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(o(),r=2):i+=t),3===r&&"!--"===i&&(r=4,s=s[0])}return o(),s}(e)),t),arguments,[])).length?t:t[0]}.bind(Un);function ji(){for(var e=arguments.length,t=new Array(e),n=0;n"}},aa=$e({name:"breadcrumb"}),sa=_t("Breadcrumb"),oa={resetLabel:function(){return"Clear refinements"}},ca=$e({name:"clear-refinements"}),ua=_t("ClearRefinements"),la=$e({name:"current-refinements"}),da=_t("CurrentRefinements"),ha={header:function(){return""},loader:function(){return""},item:function(e){return JSON.stringify(e)}},fa=$e({name:"answers"}),ma=_t("Answers"),pa=$e({name:"dynamic-widgets"}),ga=_t("DynamicWidgets");function va(e){var t=document.createElement("div");return t.className=ga({descendantName:"widget"}),e.appendChild(t),t}function ya(e){var t=e||{},n=t.container,r=t.widgets,i=t.fallbackWidget,a=M(t,["container","widgets","fallbackWidget"]);if(!n)throw new Error(pa("The `container` option is required."));if(!(r&&Array.isArray(r)&&r.every(function(e){return"function"==typeof e})))throw new Error(pa("The `widgets` option expects an array of callbacks."));var s=Xe(n),o=document.createElement("div");o.className=ga();var c=new Map,u=[],l=yi(function(e,t){var n=e.attributesToRender;t&&s.appendChild(o),n.forEach(function(e){if(c.has(e)){var t=c.get(e);o.appendChild(t)}})},function(){s.removeChild(o)})(W(W({},a),{},{widgets:u,fallbackWidget:"function"==typeof i?function(e){var t=e.attribute,n=va(o);return c.set(t,n),i({attribute:t,container:n})}:void 0}));return W(W({},l),{},{init:function(i){r.forEach(function(e){var t=va(o),n=e(t),r=rt(n,i);c.set(r,t),u.push(n)}),l.init(i)},$$widgetType:"ais.dynamicWidgets"})}function ba(e){var t=e.className,n=e.disabled,r=void 0!==n&&n;return Un("button",{className:t,onClick:e.onClick,disabled:r},e.children)}function Ra(e){var t=e.classNameLabel,n=e.classNameInput,r=e.checked,i=e.onToggle,a=e.children;return Un("label",{className:t},Un("input",{className:n,type:"checkbox",checked:r,onChange:i}),a)}function Sa(e){var t=e.cssClasses,n=e.enableRefine,r=e.enableRefineControl,i=e.enableClearMapRefinement,a=e.isRefineOnMapMove,s=e.isRefinedWithMap,o=e.hasMapMoveSinceLastRefine,c=e.onRefineToggle,u=e.onRefineClick,l=e.onClearClick,d=e.templateProps;return Un(Qn,null,n&&Un("div",null,r&&Un("div",{className:t.control},a||!o?Un(Ra,{classNameLabel:Ni(t.label,j({},t.selectedLabel,a)),classNameInput:t.input,checked:a,onToggle:c},Un(Gi,h({},d,{templateKey:"toggle",rootTagName:"span"}))):Un(ba,{className:t.redo,disabled:!o,onClick:u},Un(Gi,h({},d,{templateKey:"redo",rootTagName:"span"})))),!r&&!a&&Un("div",{className:t.control},Un(ba,{className:Ni(t.redo,j({},t.disabledRedo,!o)),disabled:!o,onClick:u},Un(Gi,h({},d,{templateKey:"redo",rootTagName:"span"})))),i&&s&&Un(ba,{className:t.reset,onClick:l},Un(Gi,h({},d,{templateKey:"reset",rootTagName:"span"})))))}function wa(e){var t=e.refine,n=e.mapInstance;return t({northEast:n.getBounds().getNorthEast().toJSON(),southWest:n.getBounds().getSouthWest().toJSON()})}function _a(e,t){e.isUserInteraction=!1,t(),e.isUserInteraction=!0}function Pa(e,t){var n=e.items,r=e.position,i=e.currentRefinement,a=e.refine,s=e.clearMapRefinement,o=e.toggleRefineOnMapMove,c=e.isRefineOnMapMove,u=e.setMapMoveSinceLastRefine,l=e.hasMapMoveSinceLastRefine,d=e.isRefinedWithMap,h=e.widgetParams,f=e.instantSearchInstance,m=h.container,p=h.googleReference,g=h.cssClasses,v=h.templates,y=h.initialZoom,b=h.initialPosition,R=h.enableRefine,S=h.enableClearMapRefinement,w=h.enableRefineControl,_=h.mapOptions,P=h.createMarker,N=h.markerOptions,x=h.renderState;if(t){x.isUserInteraction=!0,x.isPendingRefine=!1,x.markers=[];var I=document.createElement("div");I.className=g.root,m.appendChild(I);var F=document.createElement("div");F.className=g.map,I.appendChild(F);var T=document.createElement("div");T.className=g.tree,I.appendChild(T),x.mapInstance=new p.maps.Map(F,W({mapTypeControl:!1,fullscreenControl:!1,streetViewControl:!1,clickableIcons:!1,zoomControlOptions:{position:p.maps.ControlPosition.LEFT_TOP}},_));return p.maps.event.addListenerOnce(x.mapInstance,"idle",function(){function e(){x.isUserInteraction&&R&&(u(),c()&&(x.isPendingRefine=!0))}x.mapInstance.addListener("center_changed",e),x.mapInstance.addListener("zoom_changed",e),x.mapInstance.addListener("dragstart",e),x.mapInstance.addListener("idle",function(){x.isUserInteraction&&x.isPendingRefine&&(x.isPendingRefine=!1,wa({mapInstance:x.mapInstance,refine:a}))})}),void(x.templateProps=xi({templatesConfig:f.templatesConfig,templates:v}))}var C=n.map(function(e){return e.objectID}),E=D(function(e,a){return e.reduce(function(e,t){var n=D(e,2),r=n[0],i=n[1];return a.includes(t.__id)?[r.concat(t),i]:[r,i.concat(t)]},[[],[]])}(x.markers,C),2),k=E[0],j=E[1],L=k.map(function(e){return e.__id}),M=n.filter(function(e){return!L.includes(e.objectID)});j.forEach(function(e){return e.setMap(null)}),x.markers=k.concat(M.map(function(n){var r=P({map:x.mapInstance,item:n});return Object.keys(N.events).forEach(function(t){r.addListener(t,function(e){N.events[t]({map:x.mapInstance,event:e,item:n,marker:r})})}),r}));var H=!l(),O=i?0:null,A=!i&&Boolean(x.markers.length)?function(e,t){var n=t.reduce(function(e,t){return e.extend(t.getPosition())},new e.maps.LatLngBounds);return{northEast:n.getNorthEast().toJSON(),southWest:n.getSouthWest().toJSON()}}(p,x.markers):i;A&&H?_a(x,function(){x.mapInstance.fitBounds(new p.maps.LatLngBounds(A.southWest,A.northEast),O)}):H&&_a(x,function(){x.mapInstance.setCenter(r||b),x.mapInstance.setZoom(y)}),cr(Un(Sa,{cssClasses:g,enableRefine:R,enableRefineControl:w,enableClearMapRefinement:S,isRefineOnMapMove:c(),isRefinedWithMap:d(),hasMapMoveSinceLastRefine:l(),onRefineToggle:o,onRefineClick:function(){return wa({mapInstance:x.mapInstance,refine:a})},onClearClick:s,templateProps:x.templateProps}),m.querySelector(".".concat(g.tree)))}var Na=Un("p",null,"Your custom HTML Marker"),xa={HTMLMarker:function(){return Na},reset:function(){return"Clear the map refinement"},toggle:function(){return"Search as I move the map"},redo:function(){return"Redo search here"}},Ia=$e({name:"geo-search"}),Fa=_t("GeoSearch");function Ta(e){var t=e.className,n=e.handleClick,r=e.facetValueToRefine,i=e.isRefined,a=e.templateProps,s=e.templateKey,o=e.templateData,c=e.subItems;return Un("li",{className:t,onClick:function(e){n({facetValueToRefine:r,isRefined:i,originalEvent:e})}},Un(Gi,h({},a,{templateKey:s,data:o})),c)}var Ca={query:"",showSubmit:!0,showReset:!0,showLoadingIndicator:!0,autofocus:!1,searchAsYouType:!0,isSearchStalled:!1,disabled:!1,onChange:ge,onSubmit:ge,onReset:ge,refine:ge},Ea=function(){L(i,Vn);var r=O(i);function i(){var s;E(this,i);for(var e=arguments.length,t=new Array(e),n=0;n=n.__.length&&n.__.push({__V:ps}),n.__[e]}function ws(e){return fs=1,function(e,t,n){var i=Ss(ss++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):Ts(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],!(i.__c=os).u)){os.u=!0;var a=os.shouldComponentUpdate;os.shouldComponentUpdate=function(e,t,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter(function(e){return e.__c});return r.every(function(e){return!e.__N})?!a||a.call(this,e,t,n):!r.every(function(e){if(!e.__N)return!0;var t=e.__[0];return e.__=e.__N,e.__N=void 0,t===e.__[0]})&&(!a||a.call(this,e,t,n))}}return i.__N||i.__}(Ts,e)}function _s(e){return fs=5,function(e,t){var n=Ss(ss++,7);return Fs(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}(function(){return{current:e}},[])}function Ps(){for(var t;t=ms.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(xs),t.__H.__h.forEach(Is),t.__H.__h=[]}catch(e){t.__H.__h=[],jn.__e(e,t.__v)}}jn.__b=function(e){os=null,gs&&gs(e)},jn.__r=function(e){vs&&vs(e),ss=0;var t=(os=e.__c).__H;t&&(cs===os?(t.__h=[],os.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=ps,e.__N=e.i=void 0})):(t.__h.forEach(xs),t.__h.forEach(Is),t.__h=[])),cs=os},jn.diffed=function(e){ys&&ys(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==ms.push(t)&&us===jn.requestAnimationFrame||((us=jn.requestAnimationFrame)||function(e){function t(){clearTimeout(r),Ns&&cancelAnimationFrame(n),setTimeout(e)}var n,r=setTimeout(t,100);Ns&&(n=requestAnimationFrame(t))})(Ps)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==ps&&(e.__=e.__V),e.i=void 0,e.__V=ps})),cs=os=null},jn.__c=function(e,n){n.some(function(t){try{t.__h.forEach(xs),t.__h=t.__h.filter(function(e){return!e.__||Is(e)})}catch(e){n.some(function(e){e.__h&&(e.__h=[])}),n=[],jn.__e(e,t.__v)}}),bs&&bs(e,n)},jn.unmount=function(e){Rs&&Rs(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{xs(e)}catch(e){t=e}}),t&&jn.__e(t,n.__v))};var Ns="function"==typeof requestAnimationFrame;function xs(e){var t=os,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),os=t}function Is(e){var t=os;e.__c=e.__(),os=t}function Fs(n,e){return!n||n.length!==e.length||e.some(function(e,t){return e!==n[t]})}function Ts(e,t){return"function"==typeof t?t(e):t}function Cs(t){var e,n=D(ws(t.isCollapsed),2),r=n[0],i=n[1],a=D(ws(!1),2),s=a[0],o=a[1],c=_s(null);return function(e,t){var n=Ss(ss++,3);!jn.__s&&Fs(n.__H,t)&&(n.__=e,n.i=t,os.__H.__h.push(n))}(function(){var e=c.current;if(e)return e.appendChild(t.bodyElement),function(){e.removeChild(t.bodyElement)}},[c,t.bodyElement]),s||t.isCollapsed===r||i(t.isCollapsed),Un("div",{className:Ni(t.cssClasses.root,(e={},j(e,t.cssClasses.noRefinementRoot,t.hidden),j(e,t.cssClasses.collapsibleRoot,t.collapsible),j(e,t.cssClasses.collapsedRoot,r),e)),hidden:t.hidden},t.templates.header&&Un("div",{className:t.cssClasses.header},Un(Gi,{templates:t.templates,templateKey:"header",rootTagName:"span",data:t.data}),t.collapsible&&Un("button",{className:t.cssClasses.collapseButton,"aria-expanded":!r,onClick:function(e){e.preventDefault(),o(!0),i(function(e){return!e})}},Un(Gi,{templates:t.templates,templateKey:"collapseButtonText",rootTagName:"span",data:{collapsed:r}}))),Un("div",{className:t.cssClasses.body,ref:c}),t.templates.footer&&Un(Gi,{templates:t.templates,templateKey:"footer",rootProps:{className:t.cssClasses.footer},data:t.data}))}function Es(e){var t=e.url,n=e.theme,r=e.cssClasses;return Un("div",{className:r.root},Un("a",{href:t,target:"_blank",className:r.link,"aria-label":"Search by Algolia",rel:"noopener noreferrer"},Un("svg",{height:"1.2em",className:r.logo,viewBox:"0 0 168 24",style:{width:"auto"}},Un("path",{fill:"dark"===n?"#FFF":"#5D6494",d:"M6.97 6.68V8.3a4.47 4.47 0 00-2.42-.67 2.2 2.2 0 00-1.38.4c-.34.26-.5.6-.5 1.02 0 .43.16.77.49 1.03.33.25.83.53 1.51.83a7.04 7.04 0 011.9 1.08c.34.24.58.54.73.89.15.34.23.74.23 1.18 0 .95-.33 1.7-1 2.24a4 4 0 01-2.6.81 5.71 5.71 0 01-2.94-.68v-1.71c.84.63 1.81.94 2.92.94.58 0 1.05-.14 1.39-.4.34-.28.5-.65.5-1.13 0-.29-.1-.55-.3-.8a2.2 2.2 0 00-.65-.53 23.03 23.03 0 00-1.64-.78 13.67 13.67 0 01-1.11-.64c-.12-.1-.28-.22-.46-.4a1.72 1.72 0 01-.39-.5 4.46 4.46 0 01-.22-.6c-.07-.23-.1-.48-.1-.75 0-.91.33-1.63 1-2.17a4 4 0 012.57-.8c.97 0 1.8.18 2.47.52zm7.47 5.7v-.3a2.26 2.26 0 00-.5-1.44c-.3-.35-.74-.53-1.32-.53-.53 0-.99.2-1.37.58a2.9 2.9 0 00-.72 1.68h3.91zm1 2.79v1.4c-.6.34-1.38.51-2.36.51a4.02 4.02 0 01-3-1.13 4.04 4.04 0 01-1.11-2.97c0-1.3.34-2.32 1.02-3.06a3.38 3.38 0 012.6-1.1c1.03 0 1.85.32 2.46.96.6.64.9 1.57.9 2.78 0 .33-.03.68-.09 1.04h-5.31c.1.7.4 1.24.89 1.61.49.38 1.1.56 1.85.56.86 0 1.58-.2 2.15-.6zm6.61-1.78h-1.21c-.6 0-1.05.12-1.35.36-.3.23-.46.53-.46.89 0 .37.12.66.36.88.23.2.57.32 1.02.32.5 0 .9-.15 1.2-.43.3-.28.44-.65.44-1.1v-.92zm-4.07-2.55V9.33a4.96 4.96 0 012.5-.55c2.1 0 3.17 1.03 3.17 3.08V17H22.1v-.96c-.42.68-1.15 1.02-2.19 1.02-.76 0-1.38-.22-1.84-.66-.46-.44-.7-1-.7-1.68 0-.78.3-1.38.88-1.81.59-.43 1.4-.65 2.46-.65h1.34v-.46c0-.55-.13-.97-.4-1.25-.26-.29-.7-.43-1.32-.43-.86 0-1.65.24-2.35.72zm9.34-1.93v1.42c.39-1 1.1-1.5 2.12-1.5.15 0 .31.02.5.05v1.53c-.23-.1-.48-.14-.76-.14-.54 0-.99.24-1.34.71a2.8 2.8 0 00-.52 1.71V17h-1.57V8.91h1.57zm5 4.09a3 3 0 00.76 2.01c.47.53 1.14.8 2 .8.64 0 1.24-.18 1.8-.53v1.4c-.53.32-1.2.48-2 .48a3.98 3.98 0 01-4.17-4.18c0-1.16.38-2.15 1.14-2.98a4 4 0 013.1-1.23c.7 0 1.34.15 1.92.44v1.44a3.24 3.24 0 00-1.77-.5A2.65 2.65 0 0032.33 13zm7.92-7.28v4.58c.46-1 1.3-1.5 2.5-1.5.8 0 1.42.24 1.9.73.48.5.72 1.17.72 2.05V17H43.8v-5.1c0-.56-.14-.99-.43-1.29-.28-.3-.65-.45-1.1-.45-.54 0-1 .2-1.42.6-.4.4-.61 1.02-.61 1.85V17h-1.56V5.72h1.56zM55.2 15.74c.6 0 1.1-.25 1.5-.76.4-.5.6-1.16.6-1.95 0-.92-.2-1.62-.6-2.12-.4-.5-.92-.74-1.55-.74-.56 0-1.05.22-1.5.67-.44.45-.66 1.13-.66 2.06 0 .96.22 1.67.64 2.14.43.47.95.7 1.57.7zM53 5.72v4.42a2.74 2.74 0 012.43-1.34c1.03 0 1.86.38 2.51 1.15.65.76.97 1.78.97 3.05 0 1.13-.3 2.1-.92 2.9-.62.81-1.47 1.21-2.54 1.21s-1.9-.45-2.46-1.34V17h-1.58V5.72H53zm9.9 11.1l-3.22-7.9h1.74l1 2.62 1.26 3.42c.1-.32.48-1.46 1.15-3.42l.91-2.63h1.66l-2.92 7.87c-.78 2.07-1.96 3.1-3.56 3.1-.28 0-.53-.02-.73-.07v-1.34c.17.04.35.06.54.06 1.03 0 1.76-.57 2.17-1.7z"}),Ms,Hs,Un("path",{fill:"dark"===n?"#FFF":"#5468FF",d:"M120.92 18.8c-4.38.02-4.38-3.54-4.38-4.1V1.36l2.67-.42v13.25c0 .32 0 2.36 1.71 2.37v2.24zm-10.84-2.18c.82 0 1.43-.04 1.85-.12v-2.72a5.48 5.48 0 00-1.57-.2c-.3 0-.6.02-.9.07-.3.04-.57.12-.81.24-.24.11-.44.28-.58.49a.93.93 0 00-.22.65c0 .63.22 1 .61 1.23.4.24.94.36 1.62.36zm-.23-9.7c.88 0 1.62.11 2.23.33.6.22 1.09.53 1.44.92.36.4.61.92.76 1.48.16.56.23 1.17.23 1.85v6.87a21.69 21.69 0 01-4.68.5c-.69 0-1.32-.07-1.9-.2a4 4 0 01-1.46-.63 3.3 3.3 0 01-.96-1.13 4.3 4.3 0 01-.34-1.8 3.13 3.13 0 011.43-2.63c.45-.3.95-.5 1.54-.62a8.8 8.8 0 013.79.05v-.44c0-.3-.04-.6-.11-.87a1.78 1.78 0 00-1.1-1.22 3.2 3.2 0 00-1.15-.2 9.75 9.75 0 00-2.95.46l-.33-2.19a11.43 11.43 0 013.56-.53zm52.84 9.63c.82 0 1.43-.05 1.85-.13V13.7a5.42 5.42 0 00-1.57-.2c-.3 0-.6.02-.9.07-.3.04-.57.12-.81.24-.24.12-.44.28-.58.5a.93.93 0 00-.22.65c0 .63.22.99.61 1.23.4.24.94.36 1.62.36zm-.23-9.7c.88 0 1.63.11 2.23.33.6.22 1.1.53 1.45.92.35.39.6.92.76 1.48.15.56.23 1.18.23 1.85v6.88c-.41.08-1.03.19-1.87.31-.83.12-1.77.18-2.81.18-.7 0-1.33-.06-1.9-.2a4 4 0 01-1.47-.63c-.4-.3-.72-.67-.95-1.13a4.3 4.3 0 01-.34-1.8c0-.66.13-1.08.38-1.53.26-.45.61-.82 1.05-1.1.44-.3.95-.5 1.53-.62a8.8 8.8 0 013.8.05v-.43c0-.31-.04-.6-.12-.88-.07-.28-.2-.52-.38-.73a1.78 1.78 0 00-.73-.5c-.3-.1-.68-.2-1.14-.2a9.85 9.85 0 00-2.95.47l-.32-2.19a11.63 11.63 0 013.55-.53zm-8.03-1.27a1.62 1.62 0 000-3.24 1.62 1.62 0 100 3.24zm1.35 13.22h-2.7V7.27l2.7-.42V18.8zm-4.72 0c-4.38.02-4.38-3.54-4.38-4.1l-.01-13.34 2.67-.42v13.25c0 .32 0 2.36 1.72 2.37v2.24zm-8.7-5.9a4.7 4.7 0 00-.74-2.79 2.4 2.4 0 00-2.07-1 2.4 2.4 0 00-2.06 1 4.7 4.7 0 00-.74 2.8c0 1.16.25 1.94.74 2.62a2.4 2.4 0 002.07 1.02c.88 0 1.57-.34 2.07-1.02a4.2 4.2 0 00.73-2.63zm2.74 0a6.46 6.46 0 01-1.52 4.23c-.49.53-1.07.94-1.76 1.22-.68.29-1.73.45-2.26.45a6.6 6.6 0 01-2.25-.45 5.1 5.1 0 01-2.88-3.13 7.3 7.3 0 01-.01-4.84 5.13 5.13 0 012.9-3.1 5.67 5.67 0 012.22-.42c.81 0 1.56.14 2.24.42.69.29 1.28.69 1.75 1.22.49.52.87 1.15 1.14 1.89a7 7 0 01.43 2.5zm-20.14 0c0 1.11.25 2.36.74 2.88.5.52 1.13.78 1.91.78a4.07 4.07 0 002.12-.6V9.33c-.19-.04-.99-.2-1.76-.23a2.67 2.67 0 00-2.23 1 4.73 4.73 0 00-.78 2.8zm7.44 5.27c0 1.82-.46 3.16-1.4 4-.94.85-2.37 1.27-4.3 1.27-.7 0-2.17-.13-3.34-.4l.43-2.11c.98.2 2.27.26 2.95.26 1.08 0 1.84-.22 2.3-.66.46-.43.68-1.08.68-1.94v-.44a5.2 5.2 0 01-2.54.6 5.6 5.6 0 01-2.01-.36 4.2 4.2 0 01-2.58-2.71 9.88 9.88 0 01.02-5.35 4.92 4.92 0 012.93-2.96 6.6 6.6 0 012.43-.46 19.64 19.64 0 014.43.66v10.6z"}))))}function ks(e){var t=e.cssClasses,n=e.templates,r=e.items;return Un(Gi,{templateKey:"default",templates:n,rootProps:{className:t.root},data:{items:r}})}var js=$e({name:"panel"}),Ls=_t("Panel"),Ms=Un("path",{fill:"#5468FF",d:"M78.99.94h16.6a2.97 2.97 0 012.96 2.96v16.6a2.97 2.97 0 01-2.97 2.96h-16.6a2.97 2.97 0 01-2.96-2.96V3.9A2.96 2.96 0 0179 .94"}),Hs=Un("path",{fill:"#FFF",d:"M89.63 5.97v-.78a.98.98 0 00-.98-.97h-2.28a.98.98 0 00-.97.97V6c0 .09.08.15.17.13a7.13 7.13 0 013.9-.02c.08.02.16-.04.16-.13m-6.25 1L83 6.6a.98.98 0 00-1.38 0l-.46.46a.97.97 0 000 1.38l.38.39c.06.06.15.04.2-.02a7.49 7.49 0 011.63-1.62c.07-.04.08-.14.02-.2m4.16 2.45v3.34c0 .1.1.17.2.12l2.97-1.54c.06-.03.08-.12.05-.18a3.7 3.7 0 00-3.08-1.87c-.07 0-.14.06-.14.13m0 8.05a4.49 4.49 0 110-8.98 4.49 4.49 0 010 8.98m0-10.85a6.37 6.37 0 100 12.74 6.37 6.37 0 000-12.74"}),Os=_t("PoweredBy"),As=$e({name:"powered-by"}),Ws=$e({name:"query-rule-context"}),Ds={default:function(e){var t=e.items;return JSON.stringify(t,null,2)}},Bs=$e({name:"query-rule-custom-data"}),Us=_t("QueryRuleCustomData"),qs=function(){L(a,Vn);var i=O(a);function a(){var r;E(this,a);for(var e=arguments.length,t=new Array(e),n=0;n=this.props.max}},{key:"computeDefaultPitPoints",value:function(e){var t=e.min,n=e.max,r=(n-t)/34;return[t].concat(P(ft({end:33}).map(function(e){return t+r*(e+1)})),[n])}},{key:"computeSnapPoints",value:function(e){var t=e.min,n=e.max,r=e.step;if(r)return[].concat(P(ft({start:t,end:n,step:r})),[n])}},{key:"render",value:function(){var e=this.props,t=e.tooltips,n=e.step,r=e.pips,i=e.values,a=e.cssClasses,s=this.isDisabled?{min:this.props.min,max:this.props.max+.001}:this.props,o=s.min,c=s.max,u=this.computeSnapPoints({min:o,max:c,step:n}),l=!1===r?[]:this.computeDefaultPitPoints({min:o,max:c});return Un("div",{className:Ni(a.root,j({},a.disabledRoot,this.isDisabled))},Un(uo,{handle:this.createHandleComponent(t),onChange:this.handleChange,min:o,max:c,pitComponent:lo,pitPoints:l,snap:!0,snapPoints:u,values:this.isDisabled?[o,c]:i,disabled:this.isDisabled}))}}]),a}(),fo=$e({name:"range-slider"}),mo=_t("RangeSlider");function po(e){var t=e.children,n=e.count,r=e.value,i=e.url,a=e.cssClasses;return n?Un("a",{className:Ue(a.link),"aria-label":"".concat(r," & up"),href:i},t):Un("div",{className:Ue(a.link),"aria-label":"".concat(r," & up"),disabled:!0},t)}function go(e){var t=e.cssClasses,n=e.templates,r=e.isRelevantSorted,i=e.isVirtualReplica,a=e.refine;return i?Un("div",{className:t.root},Un(Gi,{templateKey:"text",templates:n,rootProps:{className:t.text},data:{isRelevantSorted:r}}),Un("button",{type:"button",className:t.button,onClick:function(){a(r?0:void 0)}},Un(Gi,{rootTagName:"span",templateKey:"button",templates:n,data:{isRelevantSorted:r}}))):null}function vo(e){var t=e.nbHits,n=e.nbSortedHits,r=e.cssClasses,i=e.templateProps,a=M(e,["nbHits","nbSortedHits","cssClasses","templateProps"]);return Un("div",{className:Ni(r.root)},Un(Gi,h({},i,{templateKey:"text",rootTagName:"span",rootProps:{className:r.text},data:W({hasManySortedResults:n&&1=")&&r.hasOwnProperty("<="))r[">="]&&r[">="][0]===r["<="]&&r["<="][0]?t.push("".concat(n,"=").concat(n,"_").concat(r[">="])):t.push("".concat(n,"=").concat(n,"_").concat(r[">="],"to").concat(r["<="]));else if(r.hasOwnProperty(">="))t.push("".concat(n,"=").concat(n,"_from").concat(r[">="]));else if(r.hasOwnProperty("<="))t.push("".concat(n,"=").concat(n,"_to").concat(r["<="]));else if(r.hasOwnProperty("=")){var i=[];for(var a in r["="])r["="].hasOwnProperty(a)&&i.push(r["="][a]);t.push("".concat(n,"=").concat(n,"_").concat(i.join("-")))}}return t.join("&")}(e.state.numericRefinements);""!==n&&t.push(n),""!==r&&t.push(r);var i=t.join("&"),a="Query: ".concat(e.state.query||"",", ").concat(i);!0===l&&(a+=", Page: ".concat(e.state.page||0)),m!==a&&(s(i,e.state,e.results),m=a)}}var h,f=null,m="",p=!0;!0===c&&(p=!1);function g(){d(f)}function v(){d(f)}return{$$type:"ais.analytics",$$widgetType:"ais.analytics",init:function(){!0===a&&(document.addEventListener("click",g),window.addEventListener("beforeunload",v))},render:function(e){var t=e.results,n=e.state;!0!==p?(f={results:t,state:n},h&&clearTimeout(h),h=window.setTimeout(function(){return d(f)},r)):p=!1},dispose:function(){!0===a&&(document.removeEventListener("click",g),window.removeEventListener("beforeunload",v))},getRenderState:function(e,t){return W(W({},e),{},{analytics:this.getWidgetRenderState(t)})},getWidgetRenderState:function(){return{widgetParams:e}}}},breadcrumb:function(e){var t=e||{},n=t.container,r=t.attributes,i=t.separator,a=t.rootPath,s=t.transformItems,o=t.templates,c=void 0===o?{}:o,u=t.cssClasses,l=void 0===u?{}:u;if(!n)throw new Error(aa("The `container` option is required."));var d=Xe(n),h={root:Ni(sa(),l.root),noRefinementRoot:Ni(sa({modifierName:"noRefinement"}),l.noRefinementRoot),list:Ni(sa({descendantName:"list"}),l.list),item:Ni(sa({descendantName:"item"}),l.item),selectedItem:Ni(sa({descendantName:"item",modifierName:"selected"}),l.selectedItem),separator:Ni(sa({descendantName:"separator"}),l.separator),link:Ni(sa({descendantName:"link"}),l.link)},f=function(e){var o=e.containerNode,c=e.cssClasses,u=e.renderState,l=e.templates;return function(e,t){var n=e.canRefine,r=e.createURL,i=e.instantSearchInstance,a=e.items,s=e.refine;t?u.templateProps=xi({defaultTemplates:ia,templatesConfig:i.templatesConfig,templates:l}):cr(Un(Zi,{canRefine:n,cssClasses:c,createURL:r,items:a,refine:s,templateProps:u.templateProps}),o)}}({containerNode:d,cssClasses:h,renderState:{},templates:c});return W(W({},Wr(f,function(){return cr(null,d)})({attributes:r,separator:i,rootPath:a,transformItems:s})),{},{$$widgetType:"ais.breadcrumb"})},clearRefinements:function(e){var t=e||{},n=t.container,r=t.templates,i=void 0===r?{}:r,a=t.includedAttributes,s=t.excludedAttributes,o=t.transformItems,c=t.cssClasses,u=void 0===c?{}:c;if(!n)throw new Error(ca("The `container` option is required."));var l=Xe(n),d={root:Ni(ua(),u.root),button:Ni(ua({descendantName:"button"}),u.button),disabledButton:Ni(ua({descendantName:"button",modifierName:"disabled"}),u.disabledButton)},h=function(e){var a=e.containerNode,s=e.cssClasses,o=e.renderState,c=e.templates;return function(e,t){var n=e.refine,r=e.canRefine,i=e.instantSearchInstance;t?o.templateProps=xi({defaultTemplates:oa,templatesConfig:i.templatesConfig,templates:c}):cr(Un(ea,{refine:n,cssClasses:s,hasRefinements:r,templateProps:o.templateProps}),a)}}({containerNode:l,cssClasses:d,renderState:{},templates:i});return W(W({},gn(h,function(){return cr(null,l)})({includedAttributes:a,excludedAttributes:s,transformItems:o})),{},{$$widgetType:"ais.clearRefinements"})},configure:function(e){return W(W({},ai(ge)({searchParameters:e})),{},{$$widgetType:"ais.configure"})},currentRefinements:function(e){var t=e||{},n=t.container,r=t.includedAttributes,i=t.excludedAttributes,a=t.cssClasses,s=void 0===a?{}:a,o=t.transformItems;if(!n)throw new Error(la("The `container` option is required."));var c=Xe(n),u={root:Ni(da(),s.root),noRefinementRoot:Ni(da({modifierName:"noRefinement"}),s.noRefinementRoot),list:Ni(da({descendantName:"list"}),s.list),item:Ni(da({descendantName:"item"}),s.item),label:Ni(da({descendantName:"label"}),s.label),category:Ni(da({descendantName:"category"}),s.category),categoryLabel:Ni(da({descendantName:"categoryLabel"}),s.categoryLabel),delete:Ni(da({descendantName:"delete"}),s.delete)};return W(W({},bn(na,function(){return cr(null,c)})({container:c,cssClasses:u,includedAttributes:r,excludedAttributes:i,transformItems:o})),{},{$$widgetType:"ais.currentRefinements"})},EXPERIMENTAL_answers:function(e){var t=e||{},n=t.container,r=t.attributesForPrediction,i=t.queryLanguages,a=t.nbHits,s=t.searchDebounceTime,o=t.renderDebounceTime,c=t.escapeHTML,u=t.extraParameters,l=t.templates,d=void 0===l?{}:l,h=t.cssClasses,f=void 0===h?{}:h;if(!n)throw new Error(fa("The `container` option is required."));var m=Xe(n),p={root:Ni(ma(),f.root),emptyRoot:Ni(ma({modifierName:"empty"}),f.emptyRoot),header:Ni(ma({descendantName:"header"}),f.header),loader:Ni(ma({descendantName:"loader"}),f.loader),list:Ni(ma({descendantName:"list"}),f.list),item:Ni(ma({descendantName:"item"}),f.item)},g=function(e){var a=e.containerNode,s=e.cssClasses,o=e.renderState,c=e.templates;return function(e,t){var n=e.hits,r=e.isLoading,i=e.instantSearchInstance;t?o.templateProps=xi({defaultTemplates:ha,templatesConfig:i.templatesConfig,templates:c}):cr(Un(ra,{cssClasses:s,hits:n,isLoading:r,templateProps:o.templateProps}),a)}}({containerNode:m,cssClasses:p,templates:d,renderState:{}});return W(W({},gi(g,function(){return cr(null,m)})({attributesForPrediction:r,queryLanguages:i,nbHits:a,searchDebounceTime:s,renderDebounceTime:o,escapeHTML:c,extraParameters:u})),{},{$$widgetType:"ais.answers"})},EXPERIMENTAL_configureRelatedItems:function(e){return W(W({},ci(ge)(e)),{},{$$widgetType:"ais.configureRelatedItems"})},geoSearch:function(e){var t=e||{},n=t.initialZoom,r=void 0===n?1:n,i=t.initialPosition,a=void 0===i?{lat:0,lng:0}:i,s=t.templates,o=void 0===s?{}:s,c=t.cssClasses,u=void 0===c?{}:c,l=t.builtInMarker,d=void 0===l?{}:l,h=t.customHTMLMarker,f=t.enableRefine,m=void 0===f||f,p=t.enableClearMapRefinement,g=void 0===p||p,v=t.enableRefineControl,y=void 0===v||v,b=t.container,R=t.googleReference,S=M(t,["initialZoom","initialPosition","templates","cssClasses","builtInMarker","customHTMLMarker","enableRefine","enableClearMapRefinement","enableRefineControl","container","googleReference"]);if(!b)throw new Error(Ia("The `container` option is required."));if(!R)throw new Error(Ia("The `googleReference` option is required."));var w=Xe(b),_={root:Ni(Fa(),u.root),tree:Fa({descendantName:"tree"}),map:Ni(Fa({descendantName:"map"}),u.map),control:Ni(Fa({descendantName:"control"}),u.control),label:Ni(Fa({descendantName:"label"}),u.label),selectedLabel:Ni(Fa({descendantName:"label",modifierName:"selected"}),u.selectedLabel),input:Ni(Fa({descendantName:"input"}),u.input),redo:Ni(Fa({descendantName:"redo"}),u.redo),disabledRedo:Ni(Fa({descendantName:"redo",modifierName:"disabled"}),u.disabledRedo),reset:Ni(Fa({descendantName:"reset"}),u.reset)},P=W(W({},xa),o),N=W(W({},{createOptions:function(){return{}},events:{}}),d),x=(Boolean(h)||Boolean(o.HTMLMarker))&&W(W({},{createOptions:function(){return{}},events:{}}),h),I=function(d){return function(){L(l,d.maps.OverlayView);var u=O(l);function l(e){var t,n=e.__id,r=e.position,i=e.map,a=e.template,s=e.className,o=e.anchor,c=void 0===o?{x:0,y:0}:o;return E(this,l),j(H(t=u.call(this)),"__id",void 0),j(H(t),"anchor",void 0),j(H(t),"offset",void 0),j(H(t),"listeners",void 0),j(H(t),"latLng",void 0),j(H(t),"element",void 0),t.__id=n,t.anchor=c,t.listeners={},t.latLng=new d.maps.LatLng(r),t.element=document.createElement("div"),t.element.className=s,t.element.style.position="absolute","object"===C(a)?cr(a,t.element):t.element.innerHTML=a,t.setMap(i),t}return k(l,[{key:"onAdd",value:function(){this.getPanes().overlayMouseTarget.appendChild(this.element);var e=this.element.getBoundingClientRect();this.offset={x:this.anchor.x+e.width/2,y:this.anchor.y+e.height},this.element.style.width="".concat(e.width,"px")}},{key:"draw",value:function(){var e=this.getProjection().fromLatLngToDivPixel(this.latLng);this.element.style.left="".concat(Math.round(e.x-this.offset.x),"px"),this.element.style.top="".concat(Math.round(e.y-this.offset.y),"px"),this.element.style.zIndex=String(parseInt(this.element.style.top,10))}},{key:"onRemove",value:function(){var t=this;this.element&&(this.element.parentNode.removeChild(this.element),Object.keys(this.listeners).forEach(function(e){t.element.removeEventListener(e,t.listeners[e])}),delete this.element,delete this.listeners)}},{key:"addListener",value:function(e,t){this.listeners[e]=t;var n=this.element;return n.addEventListener(e,t),{remove:function(){return n.removeEventListener(e,t)}}}},{key:"getPosition",value:function(){return this.latLng}}]),l}()}(R),F=x?function(e){var t=e.item,n=M(e,["item"]);return new I(W(W(W({},x.createOptions(t)),n),{},{__id:t.objectID,position:t._geoloc,className:Ni(Fa({descendantName:"marker"})),template:Xi({templateKey:"HTMLMarker",templates:P,data:t})}))}:function(e){var t=e.item,n=M(e,["item"]);return new R.maps.Marker(W(W(W({},N.createOptions(t)),n),{},{__id:t.objectID,position:t._geoloc}))},T=x||N;return W(W({},Zr(Pa,function(){return cr(null,w)})(W(W({},S),{},{renderState:{},container:w,googleReference:R,initialZoom:r,initialPosition:a,templates:P,cssClasses:_,createMarker:F,markerOptions:T,enableRefine:m,enableClearMapRefinement:g,enableRefineControl:y}))),{},{$$widgetType:"ais.geoSearch"})},hierarchicalMenu:function(e){var t=e||{},n=t.container,r=t.attributes,i=t.separator,a=t.rootPath,s=t.showParentLevel,o=t.limit,c=t.showMore,u=void 0!==c&&c,l=t.showMoreLimit,d=t.sortBy,h=t.transformItems,f=t.templates,m=void 0===f?{}:f,p=t.cssClasses,g=void 0===p?{}:p;if(!n)throw new Error(Ma("The `container` option is required."));var v=Xe(n),y=function(e){var u=e.cssClasses,l=e.containerNode,d=e.showMore,h=e.templates,f=e.renderState;return function(e,t){var n=e.createURL,r=e.items,i=e.refine,a=e.instantSearchInstance,s=e.isShowingMore,o=e.toggleShowMore,c=e.canToggleShowMore;t?f.templateProps=xi({defaultTemplates:La,templatesConfig:a.templatesConfig,templates:h}):cr(Un(ja,{createURL:n,cssClasses:u,facetValues:r,templateProps:f.templateProps,toggleRefinement:i,showMore:d,toggleShowMore:o,isShowingMore:s,canToggleShowMore:c}),l)}}({cssClasses:{root:Ni(Ha(),g.root),noRefinementRoot:Ni(Ha({modifierName:"noRefinement"}),g.noRefinementRoot),list:Ni(Ha({descendantName:"list"}),g.list),childList:Ni(Ha({descendantName:"list",modifierName:"child"}),g.childList),item:Ni(Ha({descendantName:"item"}),g.item),selectedItem:Ni(Ha({descendantName:"item",modifierName:"selected"}),g.selectedItem),parentItem:Ni(Ha({descendantName:"item",modifierName:"parent"}),g.parentItem),link:Ni(Ha({descendantName:"link"}),g.link),label:Ni(Ha({descendantName:"label"}),g.label),count:Ni(Ha({descendantName:"count"}),g.count),showMore:Ni(Ha({descendantName:"showMore"}),g.showMore),disabledShowMore:Ni(Ha({descendantName:"showMore",modifierName:"disabled"}),g.disabledShowMore)},containerNode:v,templates:m,showMore:u,renderState:{}});return W(W({},Nn(y,function(){return cr(null,v)})({attributes:r,separator:i,rootPath:a,showParentLevel:s,limit:o,showMore:u,showMoreLimit:l,sortBy:d,transformItems:h})),{},{$$widgetType:"ais.hierarchicalMenu"})},hits:function(e){var t=e||{},n=t.container,r=t.escapeHTML,i=t.transformItems,a=t.templates,s=void 0===a?{}:a,o=t.cssClasses,c=void 0===o?{}:o;if(!n)throw new Error(Aa("The `container` option is required."));var u=Xe(n),l={root:Ni(Wa(),c.root),emptyRoot:Ni(Wa({modifierName:"empty"}),c.emptyRoot),list:Ni(Wa({descendantName:"list"}),c.list),item:Ni(Wa({descendantName:"item"}),c.item)},d=function(e){var o=e.renderState,c=e.cssClasses,u=e.containerNode,l=e.templates;return function(e,t){var n=e.hits,r=e.results,i=e.instantSearchInstance,a=e.insights,s=e.bindEvent;t?o.templateProps=xi({defaultTemplates:Oa,templatesConfig:i.templatesConfig,templates:l}):cr(Un(Da,{cssClasses:c,hits:n,results:r,templateProps:o.templateProps,insights:a,sendEvent:function(e){i.sendEventToInsights(e)},bindEvent:s}),u)}}({containerNode:u,cssClasses:l,renderState:{},templates:s});return W(W({},En(xn)(d,function(){return cr(null,u)})({escapeHTML:r,transformItems:i})),{},{$$widgetType:"ais.hits"})},hitsPerPage:function(e){var t=e||{},n=t.container,r=t.items,i=t.cssClasses,a=void 0===i?{}:i,s=t.transformItems;if(!n)throw new Error(Ua("The `container` option is required."));var o=Xe(n),c={root:Ni(qa(),a.root),select:Ni(qa({descendantName:"select"}),a.select),option:Ni(qa({descendantName:"option"}),a.option)},u=function(e){var a=e.containerNode,s=e.cssClasses;return function(e,t){var n=e.items,r=e.refine;if(!t){var i=(ze(n,function(e){return e.isRefined})||{}).value;cr(Un("div",{className:s.root},Un(Ba,{cssClasses:s,currentValue:i,options:n,setValue:r})),a)}}}({containerNode:o,cssClasses:c});return W(W({},dr(u,function(){return cr(null,o)})({items:r,transformItems:s})),{},{$$widgetType:"ais.hitsPerPage"})},index:St,infiniteHits:function(e){var t=e||{},n=t.container,r=t.escapeHTML,i=t.transformItems,a=t.templates,s=void 0===a?{}:a,o=t.cssClasses,c=void 0===o?{}:o,u=t.showPrevious,l=t.cache;if(!n)throw new Error(Va("The `container` option is required."));var d=Xe(n),h={root:Ni($a(),c.root),emptyRoot:Ni($a({modifierName:"empty"}),c.emptyRoot),item:Ni($a({descendantName:"item"}),c.item),list:Ni($a({descendantName:"list"}),c.list),loadPrevious:Ni($a({descendantName:"loadPrevious"}),c.loadPrevious),disabledLoadPrevious:Ni($a({descendantName:"loadPrevious",modifierName:"disabled"}),c.disabledLoadPrevious),loadMore:Ni($a({descendantName:"loadMore"}),c.loadMore),disabledLoadMore:Ni($a({descendantName:"loadMore",modifierName:"disabled"}),c.disabledLoadMore)},f=function(e){var d=e.containerNode,h=e.cssClasses,f=e.renderState,m=e.templates,p=e.showPrevious;return function(e,t){var n=e.hits,r=e.results,i=e.showMore,a=e.showPrevious,s=e.isFirstPage,o=e.isLastPage,c=e.instantSearchInstance,u=e.insights,l=e.bindEvent;t?f.templateProps=xi({defaultTemplates:Qa,templatesConfig:c.templatesConfig,templates:m}):cr(Un(Ka,{cssClasses:h,hits:n,results:r,hasShowPrevious:p,showPrevious:a,showMore:i,templateProps:f.templateProps,isFirstPage:s,isLastPage:o,insights:u,sendEvent:function(e){c.sendEventToInsights(e)},bindEvent:l}),d)}}({containerNode:d,cssClasses:h,templates:s,showPrevious:u,renderState:{}});return W(W({},En(gr)(f,function(){return cr(null,d)})({escapeHTML:r,transformItems:i,showPrevious:u,cache:l})),{},{$$widgetType:"ais.infiniteHits"})},menu:function(e){var t=e||{},n=t.container,r=t.attribute,i=t.sortBy,a=t.limit,s=t.showMore,o=t.showMoreLimit,c=t.cssClasses,u=void 0===c?{}:c,l=t.templates,d=void 0===l?{}:l,h=t.transformItems;if(!n)throw new Error(Ja("The `container` option is required."));var f=Xe(n),m={root:Ni(Ya(),u.root),noRefinementRoot:Ni(Ya({modifierName:"noRefinement"}),u.noRefinementRoot),list:Ni(Ya({descendantName:"list"}),u.list),item:Ni(Ya({descendantName:"item"}),u.item),selectedItem:Ni(Ya({descendantName:"item",modifierName:"selected"}),u.selectedItem),link:Ni(Ya({descendantName:"link"}),u.link),label:Ni(Ya({descendantName:"label"}),u.label),count:Ni(Ya({descendantName:"count"}),u.count),showMore:Ni(Ya({descendantName:"showMore"}),u.showMore),disabledShowMore:Ni(Ya({descendantName:"showMore",modifierName:"disabled"}),u.disabledShowMore)},p=function(e){var l=e.containerNode,d=e.cssClasses,h=e.renderState,f=e.templates,m=e.showMore;return function(e,t){var n=e.refine,r=e.items,i=e.createURL,a=e.instantSearchInstance,s=e.isShowingMore,o=e.toggleShowMore,c=e.canToggleShowMore;if(t)h.templateProps=xi({defaultTemplates:za,templatesConfig:a.templatesConfig,templates:f});else{var u=r.map(function(e){return W(W({},e),{},{url:i(e.value)})});cr(Un(ja,{createURL:i,cssClasses:d,facetValues:u,showMore:m,templateProps:h.templateProps,toggleRefinement:n,toggleShowMore:o,isShowingMore:s,canToggleShowMore:c}),l)}}}({containerNode:f,cssClasses:m,renderState:{},templates:d,showMore:s});return W(W({},vr(p,function(){return cr(null,f)})({attribute:r,limit:a,showMore:s,showMoreLimit:o,sortBy:i,transformItems:h})),{},{$$widgetType:"ais.menu"})},menuSelect:function(e){var t=e||{},n=t.container,r=t.attribute,i=t.sortBy,a=void 0===i?["name:asc"]:i,s=t.limit,o=void 0===s?10:s,c=t.cssClasses,u=void 0===c?{}:c,l=t.templates,d=void 0===l?{}:l,h=t.transformItems;if(!n)throw new Error(Za("The `container` option is required."));var f=Xe(n),m={root:Ni(es(),u.root),noRefinementRoot:Ni(es({modifierName:"noRefinement"}),u.noRefinementRoot),select:Ni(es({descendantName:"select"}),u.select),option:Ni(es({descendantName:"option"}),u.option)},p=function(e){var a=e.containerNode,s=e.cssClasses,o=e.renderState,c=e.templates;return function(e,t){var n=e.refine,r=e.items,i=e.instantSearchInstance;t?o.templateProps=xi({defaultTemplates:Ga,templatesConfig:i.templatesConfig,templates:c}):cr(Un(Xa,{cssClasses:s,items:r,refine:n,templateProps:o.templateProps}),a)}}({containerNode:f,cssClasses:m,renderState:{},templates:d});return W(W({},vr(p,function(){return cr(null,f)})({attribute:r,limit:o,sortBy:a,transformItems:h})),{},{$$widgetType:"ais.menuSelect"})},numericMenu:function(e){var t=e||{},n=t.container,r=t.attribute,i=t.items,a=t.cssClasses,s=void 0===a?{}:a,o=t.templates,c=void 0===o?{}:o,u=t.transformItems;if(!n)throw new Error(ns("The `container` option is required."));var l=Xe(n),d={root:Ni(rs(),s.root),noRefinementRoot:Ni(rs({modifierName:"noRefinement"}),s.noRefinementRoot),list:Ni(rs({descendantName:"list"}),s.list),item:Ni(rs({descendantName:"item"}),s.item),selectedItem:Ni(rs({descendantName:"item",modifierName:"selected"}),s.selectedItem),label:Ni(rs({descendantName:"label"}),s.label),radio:Ni(rs({descendantName:"radio"}),s.radio),labelText:Ni(rs({descendantName:"labelText"}),s.labelText)},h=function(e){var s=e.containerNode,o=e.attribute,c=e.cssClasses,u=e.renderState,l=e.templates;return function(e,t){var n=e.createURL,r=e.instantSearchInstance,i=e.refine,a=e.items;t?u.templateProps=xi({defaultTemplates:ts,templatesConfig:r.templatesConfig,templates:l}):cr(Un(ja,{createURL:n,cssClasses:c,facetValues:a,templateProps:u.templateProps,toggleRefinement:i,attribute:o}),s)}}({containerNode:l,attribute:r,cssClasses:d,renderState:{},templates:c});return W(W({},yr(h,function(){return cr(null,l)})({attribute:r,items:i,transformItems:u})),{},{$$widgetType:"ais.numericMenu"})},pagination:function(e){var t=e||{},n=t.container,r=t.templates,i=void 0===r?{}:r,a=t.cssClasses,s=void 0===a?{}:a,o=t.totalPages,c=t.padding,u=t.showFirst,l=void 0===u||u,d=t.showLast,h=void 0===d||d,f=t.showPrevious,m=void 0===f||f,p=t.showNext,g=void 0===p||p,v=t.scrollTo,y=void 0===v?"body":v;if(!n)throw new Error(ds("The `container` option is required."));var b=Xe(n),R=!0===y?"body":y,S=!1!==R&&Xe(R),w={root:Ni(ls(),s.root),noRefinementRoot:Ni(ls({modifierName:"noRefinement"}),s.noRefinementRoot),list:Ni(ls({descendantName:"list"}),s.list),item:Ni(ls({descendantName:"item"}),s.item),firstPageItem:Ni(ls({descendantName:"item",modifierName:"firstPage"}),s.firstPageItem),lastPageItem:Ni(ls({descendantName:"item",modifierName:"lastPage"}),s.lastPageItem),previousPageItem:Ni(ls({descendantName:"item",modifierName:"previousPage"}),s.previousPageItem),nextPageItem:Ni(ls({descendantName:"item",modifierName:"nextPage"}),s.nextPageItem),pageItem:Ni(ls({descendantName:"item",modifierName:"page"}),s.pageItem),selectedItem:Ni(ls({descendantName:"item",modifierName:"selected"}),s.selectedItem),disabledItem:Ni(ls({descendantName:"item",modifierName:"disabled"}),s.disabledItem),link:Ni(ls({descendantName:"link"}),s.link)},_=W(W({},hs),i),P=function(e){var u=e.containerNode,l=e.cssClasses,d=e.templates,h=e.showFirst,f=e.showLast,m=e.showPrevious,p=e.showNext,g=e.scrollToNode;return function(e,t){var n=e.createURL,r=e.currentRefinement,i=e.nbPages,a=e.pages,s=e.isFirstPage,o=e.isLastPage,c=e.refine;if(!t){cr(Un(is,{createURL:n,cssClasses:l,currentPage:r,templates:d,nbPages:i,pages:a,isFirstPage:s,isLastPage:o,setCurrentPage:function(e){c(e),!1!==g&&g.scrollIntoView()},showFirst:h,showLast:f,showPrevious:m,showNext:p}),u)}}}({containerNode:b,cssClasses:w,templates:_,showFirst:l,showLast:h,showPrevious:m,showNext:g,scrollToNode:S});return W(W({},xr(P,function(){return cr(null,b)})({totalPages:o,padding:c})),{},{$$widgetType:"ais.pagination"})},panel:function(e){var t=e||{},n=t.templates,r=void 0===n?{}:n,i=t.hidden,c=void 0===i?function(){return!1}:i,a=t.collapsed,s=t.cssClasses,o=void 0===s?{}:s,u=document.createElement("div"),l=Boolean(a),d="function"==typeof a?a:function(){return!1},h={root:Ni(Ls(),o.root),noRefinementRoot:Ni(Ls({modifierName:"noRefinement"}),o.noRefinementRoot),collapsibleRoot:Ni(Ls({modifierName:"collapsible"}),o.collapsibleRoot),collapsedRoot:Ni(Ls({modifierName:"collapsed"}),o.collapsedRoot),collapseButton:Ni(Ls({descendantName:"collapseButton"}),o.collapseButton),collapseIcon:Ni(Ls({descendantName:"collapseIcon"}),o.collapseIcon),body:Ni(Ls({descendantName:"body"}),o.body),header:Ni(Ls({descendantName:"header"}),o.header),footer:Ni(Ls({descendantName:"footer"}),o.footer)};return function(t){return function(e){if(!e||!e.container)throw new Error(js("The `container` option is required in the widget within the panel."));var i=Xe(e.container),s=function(e){var a=e.containerNode,s=e.bodyContainerNode,o=e.cssClasses,c=e.templates;return function(e){var t=e.options,n=e.hidden,r=e.collapsible,i=e.collapsed;cr(Un(Cs,{cssClasses:o,hidden:n,collapsible:r,isCollapsed:i,templates:c,data:t,bodyElement:s}),a)}}({containerNode:i,bodyContainerNode:u,cssClasses:h,templates:W(W({},{header:"",footer:"",collapseButtonText:function(e){var t=e.collapsed;return'')}}),r)}),o=t(W(W({},e),{},{container:u}));return W(W({},o),{},{init:function(){for(var e=arguments.length,t=new Array(e),n=0;n