/*! InstantSearch.js 3.7.0 | © Algolia, Inc. and contributors; MIT License | https://github.com/algolia/instantsearch.js */
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).instantsearch=t()}(this,function(){"use strict";function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n>>0,t>>>=0;for(var a=Array(i);++r "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return"boolean"!=typeof e.showParentLevel||e.showParentLevel},getHierarchicalFacetByName:function(e){return Vi(this.hierarchicalFacets,{name:e})},getHierarchicalFacetBreadcrumb:function(e){if(!this.isHierarchicalFacet(e))throw new Error("Cannot get the breadcrumb of an unknown hierarchical facet: `"+e+"`");var t=this.getHierarchicalRefinement(e)[0];if(!t)return[];var n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),r=t.split(n);return cr(r,la)},toString:function(){return JSON.stringify(this,null,2)}};var xa=Na;var Ca=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++tn&&(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},ro.prototype.once=function(e,t){if(!ao(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},ro.prototype.removeListener=function(e,t){var n,r,i,a;if(!ao(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||ao(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(so(n)){for(a=i;0>6]+Co[128|63&s]:s<55296||57344<=s?i+=Co[224|s>>12]+Co[128|s>>6&63]+Co[128|63&s]:(a+=1,s=65536+((1023&s)<<10|1023&r.charCodeAt(a)),i+=Co[240|s>>18]+Co[128|s>>12&63]+Co[128|s>>6&63]+Co[128|63&s])}return i},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)},merge:function r(i,a,s){if(!a)return i;if("object"!=typeof a){if(xo(i))i.push(a);else{if(!i||"object"!=typeof i)return[i,a];(s&&(s.plainObjects||s.allowPrototypes)||!No.call(Object.prototype,a))&&(i[a]=!0)}return i}if(!i||"object"!=typeof i)return[i].concat(a);var e=i;return xo(i)&&!xo(a)&&(e=mo(i,s)),xo(i)&&xo(a)?(a.forEach(function(e,t){if(No.call(i,t)){var n=i[t];n&&"object"==typeof n&&e&&"object"==typeof e?i[t]=r(n,e,s):i.push(e)}else i[t]=e}),i):Object.keys(a).reduce(function(e,t){var n=a[t];return No.call(e,t)?e[t]=r(e[t],n,s):e[t]=n,e},e)}},Eo=String.prototype.replace,jo=/%20/g,To={default:"RFC3986",formatters:{RFC1738:function(e){return Eo.call(e,jo,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"},Mo=Object.prototype.hasOwnProperty,Io={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Lo=Array.isArray,ko=Array.prototype.push,Oo=Date.prototype.toISOString,Ao={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Fo.encode,encodeValuesOnly:!1,formatter:To.formatters[To.default],indices:!1,serializeDate:function(e){return Oo.call(e)},skipNulls:!1,strictNullHandling:!1},Do=Object.prototype.hasOwnProperty,Ho={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Fo.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Uo={formats:To,parse:function(e,t){var n=function(e){if(!e)return Ho;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?Ho.charset:e.charset;return{allowDots:void 0===e.allowDots?Ho.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:Ho.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:Ho.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Ho.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:Ho.comma,decoder:"function"==typeof e.decoder?e.decoder:Ho.decoder,delimiter:"string"==typeof e.delimiter||Fo.isRegExp(e.delimiter)?e.delimiter:Ho.delimiter,depth:"number"==typeof e.depth?e.depth:Ho.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:Ho.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:Ho.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:Ho.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Ho.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var r="string"==typeof e?function(e,t){var n,r={},i=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,a=t.parameterLimit===1/0?void 0:t.parameterLimit,s=i.split(t.delimiter,a),o=-1,c=t.charset;if(t.charsetSentinel)for(n=0;n":7,"=":8,_v:9,"{":10,"&":11,_t:12},w.scan=function(e,t){var n,r,i,a,s,o=e.length,c=0,u=null,l=null,h="",f=[],d=!1,p=0,m=0,v="{{",g="}}";function y(){0"==n.tag&&(n.indent=f[r].text.toString()),f.splice(r,1));else t||f.push({tag:"\n"});d=!1,m=f.length}for(t&&(t=t.split(" "),v=t[0],g=t[1]),p=0;p":p,"<":function(e,t){var n={partials:{},code:"",subs:{},inPartial:!0};w.walk(e.nodes,n);var r=t.partials[p(e,t)];r.subs=n.subs,r.partials=n.partials},$:function(e,t){var n={subs:{},code:"",partials:t.partials,prefix:e.n};w.walk(e.nodes,n),t.subs[e.n]=n.code,t.inPartial||(t.code+='t.sub("'+f(e.n)+'",c,p,i);')},"\n":function(e,t){t.code+=m('"\\n"'+(e.last?"":" + i"))},_v:function(e,t){t.code+="t.b(t.v(t."+d(e.n)+'("'+f(e.n)+'",c,p,0)));'},_t:function(e,t){t.code+=m('"'+f(e.text)+'"')},"{":e,"&":e},w.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 h=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}(t)});hc.Template=fc.Template,hc.template=hc.Template;var dc=hc;function pc(e){var t=e.templates,n=e.templateKey,r=e.compileOptions,i=e.helpers,a=e.data,s=t[n],o=f(s),c="function"===o;if(!("string"===o)&&!c)throw new Error("Template must be 'string' or 'function', was '".concat(o,"' (key: ").concat(n,")"));if(c)return s(a);var u=function(){var r=0":">",'"':""","'":"'"},jc=/[&<>"']/g,Tc=RegExp(jc.source);function Mc(){for(var e=arguments.length,t=new Array(e),n=0;n",highlightPostTag:""};function Gc(e){return function(e){return e&&Tc.test(e)?e.replace(jc,function(e){return Ec[e]}):e}(e).replace(new RegExp(Yc.highlightPreTag,"g"),$c.highlightPreTag).replace(new RegExp(Yc.highlightPostTag,"g"),$c.highlightPostTag)}function Jc(n){return Nc(n)&&"string"!=typeof n.value?Object.keys(n).reduce(function(e,t){return H({},e,F({},t,Jc(n[t])))},{}):Array.isArray(n)?n.map(Jc):H({},n,{value:Gc(n.value)})}function Zc(e){return void 0===e.__escaped&&((e=e.map(function(e){return e._highlightResult&&(e._highlightResult=Jc(e._highlightResult)),e._snippetResult&&(e._snippetResult=Jc(e._snippetResult)),e})).__escaped=!0),e}function Xc(a){return function(){var e=0')).replace(new RegExp($c.highlightPostTag,"g"),"".concat(r,">"))}var nu=Xc("Snippet");function ru(e){var t=e.attribute,n=e.highlightedTagName,r=void 0===n?"mark":n,i=Sc(e.hit,"_snippetResult.".concat(t,".value"))||"",a=nu({descendantName:"highlighted"});return i.replace(new RegExp($c.highlightPreTag,"g"),"<".concat(r,' class="').concat(a,'">')).replace(new RegExp($c.highlightPostTag,"g"),"".concat(r,">"))}var iu=Lc({name:"instantsearch"}),au={stateMapping:Vc(),router:Kc()};function su(){return"#"}var ou=function(e){function m(e){var t;T(this,m),t=O(this,L(m).call(this));var n=e.indexName,r=void 0===n?null:n,i=e.numberLocale,a=e.searchParameters,s=e.routing,o=void 0===s?null:s,c=e.searchFunction,u=e.stalledSearchDelay,l=void 0===u?200:u,h=e.searchClient,f=void 0===h?null:h,d=e.insightsClient,p=void 0===d?null:d;if(null===r)throw new Error(iu("The `indexName` option is required."));if(null===f)throw new Error(iu("The `searchClient` option is required."));if(void 0!==e.urlSync)throw new Error(iu("The `urlSync` option was removed in InstantSearch.js 3. You may want to use the `routing` option."));if("function"!=typeof f.search)throw new Error("The `searchClient` must implement a `search` method.\n\nSee: https://www.algolia.com/doc/guides/building-search-ui/going-further/backend-search/in-depth/backend-instantsearch/js/");if("function"==typeof f.addAlgoliaAgent&&f.addAlgoliaAgent("instantsearch.js (".concat("3.7.0",")")),p&&"function"!=typeof p)throw new Error("The provided `insightsClient` must be a function.");return kc(!a,"The `searchParameters` option is deprecated and will not be supported in InstantSearch.js 4.x.\n\nYou can replace it with the `configure` widget:\n\n```\nsearch.addWidgets([\n configure(".concat(JSON.stringify(a,null,2),")\n]);\n```\n\nSee ").concat(Ic({name:"configure"}))),t.client=f,t.insightsClient=p,t.helper=null,t.indexName=r,t.searchParameters=H({},a,{index:r}),t.widgets=[],t.templatesConfig={helpers:function(e){var n=e.numberLocale;return{formatNumber:function(e,t){return Number(t(e)).toLocaleString(n)},highlight:function(e,t){try{return t(tu(H({},JSON.parse(e),{hit:this})))}catch(e){throw new Error('\nThe highlight helper expects a JSON object of the format:\n{ "attribute": "name", "highlightedTagName": "mark" }')}},snippet:function(e,t){try{return t(ru(H({},JSON.parse(e),{hit:this})))}catch(e){throw new Error('\nThe snippet helper expects a JSON object of the format:\n{ "attribute": "name", "highlightedTagName": "mark" }')}}}}({numberLocale:i}),compileOptions:{}},t._stalledSearchDelay=l,c&&(t._searchFunction=c),!0===o?t.routing=au:Nc(o)&&(t.routing=H({},au,{},o)),t}return I(m,io),M(m,[{key:"addWidget",value:function(e){this.addWidgets([e])}},{key:"addWidgets",value:function(e){var t=this;if(!Array.isArray(e))throw new Error(iu("The `addWidgets` method expects an array of widgets. Please use `addWidget`."));var n=this.widgets.pop();e.forEach(function(e){if(void 0===e.render&&void 0===e.init)throw new Error("The widget definition expects a `render` and/or an `init` method.\n\nSee: https://www.algolia.com/doc/guides/building-search-ui/widgets/create-your-own-widgets/js/");t.widgets.push(e)}),n&&this.widgets.push(n),this.started&&Boolean(e.length)&&(this.searchParameters=this.widgets.reduce(cu,H({},this.helper.state)),this.helper.setState(this.searchParameters),e.forEach(function(e){e.init&&e.init({state:t.helper.state,helper:t.helper,templatesConfig:t.templatesConfig,createURL:t._createAbsoluteURL,onHistoryChange:t._onHistoryChange,instantSearchInstance:t})}),this.helper.search())}},{key:"removeWidget",value:function(e){this.removeWidgets([e])}},{key:"removeWidgets",value:function(e){var n=this;if(!Array.isArray(e))throw new Error(iu("The `removeWidgets` method expects an array of widgets. Please use `removeWidget`."));e.forEach(function(t){if(!n.widgets.includes(t)||"function"!=typeof t.dispose)throw new Error("The `dispose` method is required to remove the widget.\n\nSee: https://www.algolia.com/doc/guides/building-search-ui/widgets/create-your-own-widgets/js/#the-widget-lifecycle-and-api");n.widgets=n.widgets.filter(function(e){return e!==t});var e=t.dispose({helper:n.helper,state:n.helper.state});e&&(n.searchParameters=n.widgets.reduce(cu,H({},e)),n.helper.setState(n.searchParameters))}),setTimeout(function(){0=":return"≥";case"<=":return"≤";default:return e}}(e.operator)," ").concat(e.name):e.name,r={attribute:e.attributeName,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}var yu=Lc({name:"hierarchical-menu",connector:!0});function bu(b){var w=1 ":e,t=l.rootPath,u=void 0===t?null:t,n=l.showParentLevel,h=void 0===n||n,r=l.limit,f=void 0===r?10:r,i=l.showMore,d=void 0!==i&&i,a=l.showMoreLimit,p=void 0===a?20:a,s=l.sortBy,m=void 0===s?["name:asc"]:s,v=l.transformItems,g=void 0===v?function(e){return e}:v;if(!o||!Array.isArray(o)||0===o.length)throw new Error(yu("The `attributes` option expects an array of strings."));if(!0===d&&p<=f)throw new Error(yu("The `showMoreLimit` option must be greater than `limit`."));var y=U(o,1)[0];return{isShowingMore:!1,toggleShowMore:function(){},cachedToggleShowMore:function(){this.toggleShowMore()},createToggleShowMore:function(e){var t=this;return function(){t.isShowingMore=!t.isShowingMore,t.render(e)}},getLimit:function(){return this.isShowingMore?p:f},getConfiguration:function(e){if(e.hierarchicalFacets){var t=mc(e.hierarchicalFacets,function(e){return e.name===y}),n=t&&Fc(t.attributes,o),r=t&&t.separator===c,i=t&&t.rootPath===u;if(t&&!(n&&r&&i))return kc(!1,"Using Breadcrumb and HierarchicalMenu on the same facet with different options overrides the configuration of the HierarchicalMenu."),{}}var a={hierarchicalFacets:[{name:y,attributes:o,separator:c,rootPath:u,showParentLevel:h}]},s=e.maxValuesPerFacet||0;return a.maxValuesPerFacet=Math.max(s,d?p:f),a},init:function(e){var t=e.helper,n=e.createURL,r=e.instantSearchInstance;this.cachedToggleShowMore=this.cachedToggleShowMore.bind(this),this._refine=function(e){t.toggleRefinement(y,e).search()},b({items:[],createURL:function(e){return n(t.state.toggleRefinement(y,e))},refine:this._refine,instantSearchInstance:r,widgetParams:l,isShowingMore:!1,toggleShowMore:this.cachedToggleShowMore,canToggleShowMore:!1},!0)},_prepareFacetValues:function(e,i){var a=this;return e.slice(0,this.getLimit()).map(function(e){var t=e.name,n=e.path,r=k(e,["name","path"]);return Array.isArray(r.data)&&(r.data=a._prepareFacetValues(r.data,i)),H({},r,{label:t,value:n})})},render:function(e){var t=e.results,n=e.state,r=e.createURL,i=e.instantSearchInstance,a=t.getFacetValues(y,{sortBy:m}).data||[],s=g(this._prepareFacetValues(a),n);var o=n.getQueryParameter("maxValuesPerFacet"),c=this.getLimit(),u=cthis.getLimit())},!1)},dispose:function(e){var t=e.state;d();var n=t;return t.isHierarchicalFacetRefined(s)&&(n=t.removeHierarchicalFacetRefinement(s)),((n=n.removeHierarchicalFacet(s)).maxValuesPerFacet===r||i&&n.maxValuesPerFacet===i)&&n.setQueryParameters("maxValuesPerFacet",void 0),n},getWidgetState:function(e,t){var n=U(t.searchParameters.getHierarchicalFacetBreadcrumb(s),1)[0];return!n||e.menu&&e.menu[s]===n?e:H({},e,{menu:H({},e.menu,F({},s,n))})},getWidgetSearchParameters:function(e,t){var n=t.uiState;if(n.menu&&n.menu[s]){var r=n.menu[s];return e.isHierarchicalFacetRefined(s,r)?e:e.toggleRefinement(s,r)}if(e.isHierarchicalFacetRefined(s)){var i=U(e.getHierarchicalFacetBreadcrumb(s),1)[0];return e.toggleRefinement(s,i)}return e}}}}var ch=Lc({name:"numeric-menu",connector:!0});function uh(o){var n=1="]&&n[">="][0]||"",a=n["<="]&&n["<="][0]||"";return""!==i||""!==a?e.numericMenu&&e.numericMenu[u]==="".concat(i,":").concat(a)?e:H({},e,{numericMenu:H({},e.numericMenu,F({},u,"".concat(i,":").concat(a)))}):e},getWidgetSearchParameters:function(e,t){var n=t.uiState,r=e.clearRefinements(u),i=n.numericMenu&&n.numericMenu[u];if(!i)return r;var a=-1===i.indexOf(":")&&i;if(a)return r.addNumericRefinement(u,"=",a);var s=U(i.split(":").map(parseFloat),2),o=s[0],c=s[1];return _c(o)&&(r=r.addNumericRefinement(u,">=",o)),_c(c)&&(r=r.addNumericRefinement(u,"<=",c)),r}}}}function lh(e,t,n){var r=e.getNumericRefinements(t);return void 0!==n.start&&void 0!==n.end&&n.start===n.end?fh(r,"=",n.start):void 0!==n.start?fh(r,">=",n.start):void 0!==n.end?fh(r,"<=",n.end):void 0===n.start&&void 0===n.end?0===Object.keys(r).length:void 0}function hh(e,t,n,r){var i=e,a=JSON.parse(window.decodeURI(r)),s=i.getNumericRefinements(t);if(void 0===a.start&&void 0===a.end)return i.clearRefinements(t);if(lh(i,t,a)||(i=i.clearRefinements(t)),void 0!==a.start&&void 0!==a.end){if(a.start>a.end)throw new Error("option.start should be > to option.end");if(a.start===a.end)return i=fh(s,"=",a.start)?i.removeNumericRefinement(t,"=",a.start):i.addNumericRefinement(t,"=",a.start)}return void 0!==a.start&&(i=fh(s,">=",a.start)?i.removeNumericRefinement(t,">=",a.start):i.addNumericRefinement(t,">=",a.start)),void 0!==a.end&&(i=fh(s,"<=",a.end)?i.removeNumericRefinement(t,"<=",a.end):i.addNumericRefinement(t,"<=",a.end)),i.page=0,i}function fh(e,t,n){return void 0!==e[t]&&e[t].includes(n)}var dh=function(){function t(e){T(this,t),this.currentPage=e.currentPage,this.total=e.total,this.padding=e.padding}return M(t,[{key:"pages",value:function(){var e=this.total,t=this.currentPage,n=this.padding;if(0===e)return[0];var r=this.nbPagesDisplayed(n,e);if(r===e)return xc({end:e});var i=this.calculatePaddingLeft(t,n,e,r);return xc({start:t-i,end:t+(r-i)})}},{key:"nbPagesDisplayed",value:function(e,t){return Math.min(2*e+1,t)}},{key:"calculatePaddingLeft",value:function(e,t,n,r){return e<=t?e:n-t<=e?r-(n-e):t}},{key:"isLastPage",value:function(){return this.currentPage===this.total-1}},{key:"isFirstPage",value:function(){return 0===this.currentPage}}]),t}(),ph=Lc({name:"pagination",connector:!0});function mh(o){var t=1=")||[],1)[0],n=U(e.getNumericRefinement(S,"<=")||[],1)[0];return[_c(t)?t:-1/0,_c(n)?n:1/0]},_refine:function(w,R){return function(){var e,t,n=U(0=")||[],1)[0],c=U(w.getNumericRefinement(S,"<=")||[],1)[0],u=void 0===r||""===r,l=void 0===i||""===i,h=u?void 0:parseFloat(r),f=l?void 0:parseFloat(i);t=C||s!==f?C&&l?_:f:void 0;var d=void 0===(e=x||a!==h?x&&u?P:h:void 0),p=_c(e),m=_c(a),v=d||p&&(!m||m&&a<=e),g=void 0===t,y=_c(t),b=_c(s);(o!==e||c!==t)&&v&&(g||y&&(!b||b&&t<=s))&&(w.clearRefinements(S),p&&w.addNumericRefinement(S,">=",N(e)),y&&w.addNumericRefinement(S,"<=",N(t)),w.search())}},getConfiguration:function(e){var t={disjunctiveFacets:[S]},n=x||C,r=e&&e.numericRefinements&&void 0!==e.numericRefinements[S],i=_c(P),a=_c(_);return n&&!r&&(i&&a?P<_:i||a)&&(t.numericRefinements=F({},S,{}),x&&(t.numericRefinements[S][">="]=[P]),C&&(t.numericRefinements[S]["<="]=[_])),t},init:function(e){var t=e.helper,n=e.instantSearchInstance,r=this._getCurrentRange({}),i=this._getCurrentRefinement(t);h({refine:this._refine(t,{}),format:l,range:r,widgetParams:H({},c,{precision:u}),start:i,instantSearchInstance:n},!0)},render:function(e){var t=e.results,n=e.helper,r=e.instantSearchInstance,i=mc(t.disjunctiveFacets||[],function(e){return e.name===S}),a=i&&i.stats||{},s=this._getCurrentRange(a),o=this._getCurrentRefinement(n);h({refine:this._refine(n,s),format:l,range:s,widgetParams:H({},c,{precision:u}),start:o,instantSearchInstance:r},!1)},dispose:function(e){var t=e.state;return n(),t.removeNumericRefinement(S).removeDisjunctiveFacet(S)},getWidgetState:function(e,t){var n=t.searchParameters.getNumericRefinements(S),r=n[">="],i=void 0===r?"":r,a=n["<="],s=void 0===a?"":a;return""===i&&""===s||e&&e.range&&e.range[S]==="".concat(i,":").concat(s)?e:H({},e,{range:H({},e.range,F({},S,"".concat(i,":").concat(s)))})},getWidgetSearchParameters:function(e,t){var n=t.uiState,r=n&&n.range&&n.range[S];if(!r||-1===r.indexOf(":"))return e;var i=e.getNumericRefinements(S),a=i[">="],s=void 0===a?[NaN]:a,o=i["<="],c=void 0===o?[NaN]:o,u=e.clearRefinements(S),l=U(r.split(":").map(parseFloat),2),h=l[0],f=l[1];return s.includes(h)&&c.includes(f)?e:(_c(h)&&(u=u.addNumericRefinement(S,">=",h)),_c(f)&&(u=u.addNumericRefinement(S,"<=",f)),u)}}}}var yh=Lc({name:"refinement-list",connector:!0});function bh(_){var N=1m||v&&!s&&!P;_({createURL:function(e){return r(n.toggleRefinement(p,e))},items:t,refine:a,searchForItems:h,instantSearchInstance:l,isFromSearch:s,canRefine:s||0 ":e,t=o.rootPath,i=void 0===t?null:t,a=o.transformItems,c=void 0===a?function(e){return e}:a;if(!n||!Array.isArray(n)||0===n.length)throw new Error(jh("The `attributes` option expects an array of strings."));var s=U(n,1)[0];return{getConfiguration:function(e){if(e.hierarchicalFacets){var t=mc(e.hierarchicalFacets,function(e){return e.name===s});if(t)return kc(Fc(t.attributes,n)&&t.separator===r&&t.rootPath===i,"Using Breadcrumb and HierarchicalMenu on the same facet with different options overrides the configuration of the HierarchicalMenu."),{}}return{hierarchicalFacets:[{attributes:n,name:s,separator:r,rootPath:i}]}},init:function(e){var n=e.createURL,r=e.helper,t=e.instantSearchInstance;this._createURL=function(e){if(!e){var t=r.getHierarchicalFacetBreadcrumb(s);if(0Your custom HTML Marker
",reset:"Clear the map refinement",toggle:"Search as I move the map",redo:"Redo search here"},uf=Lc({name:"geo-search"}),lf=Xc("GeoSearch"),hf=function(e){function t(){return T(this,t),O(this,L(t).apply(this,arguments))}return I(t,Gl),M(t,[{key:"componentWillMount",value:function(){this.handleClick=this.handleClick.bind(this)}},{key:"shouldComponentUpdate",value:function(e){return!Fc(this.props,e)}},{key:"handleClick",value:function(e){this.props.handleClick({facetValueToRefine:this.props.facetValueToRefine,isRefined:this.props.isRefined,originalEvent:e})}},{key:"render",value:function(){return Xl.createElement("li",{className:this.props.className,onClick:this.handleClick},Xl.createElement(Kh,d({},this.props.templateProps,{templateKey:this.props.templateKey,data:this.props.templateData})),this.props.subItems)}}]),t}(),ff=function(e){function i(){var e,s;T(this,i);for(var t=arguments.length,n=new Array(t),r=0;r{{label}}{{#helpers.formatNumber}}{{count}}{{/helpers.formatNumber}}',showMoreText:"\n {{#isShowingMore}}\n Show less\n {{/isShowingMore}}\n {{^isShowingMore}}\n Show more\n {{/isShowingMore}}\n "},mf=Lc({name:"hierarchical-menu"}),vf=Xc("HierarchicalMenu");function gf(e){var t=e.results,n=e.hits,r=e.cssClasses,i=e.templateProps;return 0===t.hits.length?Xl.createElement(Kh,d({},i,{templateKey:"empty",rootProps:{className:zh(r.root,r.emptyRoot)},data:t})):Xl.createElement("div",{className:r.root},Xl.createElement("ol",{className:r.list},n.map(function(e,t){return Xl.createElement(Kh,d({},i,{templateKey:"item",rootTagName:"li",rootProps:{className:r.item},key:e.objectID,data:H({},e,{__hitIndex:t})}))})))}gf.defaultProps={results:{hits:[]},hits:[]};var yf={empty:"No results",item:function(e){return JSON.stringify(e,null,2)}},bf=Lc({name:"hits"}),wf=Xc("Hits"),Rf=Zl(gf);var Sf=function(e){function t(){return T(this,t),O(this,L(t).apply(this,arguments))}return I(t,Gl),M(t,[{key:"componentWillMount",value:function(){this.handleChange=this.handleChange.bind(this)}},{key:"handleChange",value:function(e){this.props.setValue(e.target.value)}},{key:"render",value:function(){var t=this,e=this.props,n=e.currentValue,r=e.options;return Xl.createElement("select",{className:zh(this.props.cssClasses.select),onChange:this.handleChange,value:"".concat(n)},r.map(function(e){return Xl.createElement("option",{className:zh(t.props.cssClasses.option),key:e.label+e.value,value:"".concat(e.value)},e.label)}))}}]),t}(),Pf=Lc({name:"hits-per-page"}),_f=Xc("HitsPerPage");var Nf={empty:"No results",showPreviousText:"Show previous results",showMoreText:"Show more results",item:function(e){return JSON.stringify(e,null,2)}},xf=Lc({name:"infinite-hits"}),Cf=Xc("InfiniteHits"),Ff=Zl(function(e){var t=e.results,n=e.hits,r=e.hasShowPrevious,i=e.showPrevious,a=e.showMore,s=e.isFirstPage,o=e.isLastPage,c=e.cssClasses,u=e.templateProps;return 0===t.hits.length?Xl.createElement(Kh,d({},u,{templateKey:"empty",rootProps:{className:zh(c.root,c.emptyRoot)},data:t})):Xl.createElement("div",{className:c.root},r&&Xl.createElement(Kh,d({},u,{templateKey:"showPreviousText",rootTagName:"button",rootProps:{className:zh(c.loadPrevious,F({},c.disabledLoadPrevious,s)),disabled:s,onClick:i}})),Xl.createElement("ol",{className:c.list},n.map(function(e,t){return Xl.createElement(Kh,d({},u,{templateKey:"item",rootTagName:"li",rootProps:{className:c.item},key:e.objectID,data:H({},e,{__hitIndex:t})}))})),Xl.createElement(Kh,d({},u,{templateKey:"showMoreText",rootTagName:"button",rootProps:{className:zh(c.loadMore,F({},c.disabledLoadMore,o)),disabled:o,onClick:a}})))}),Ef={item:'{{label}}{{#helpers.formatNumber}}{{count}}{{/helpers.formatNumber}}',showMoreText:"\n {{#isShowingMore}}\n Show less\n {{/isShowingMore}}\n {{^isShowingMore}}\n Show more\n {{/isShowingMore}}\n "},jf=Lc({name:"menu"}),Tf=Xc("Menu");var Mf={item:'',showMoreText:"\n {{#isShowingMore}}\n Show less\n {{/isShowingMore}}\n {{^isShowingMore}}\n Show more\n {{/isShowingMore}}\n ",searchableNoResults:"No results",searchableReset:'\n \n ',searchableSubmit:'\n \n ',searchableLoadingIndicator:'\n \n '},If=Lc({name:"refinement-list"}),Lf=Xc("RefinementList"),kf=Xc("SearchBox");var Of={item:''},Af=Lc({name:"numeric-menu"}),Df=Xc("NumericMenu");var Hf=function(e){function t(){return T(this,t),O(this,L(t).apply(this,arguments))}return I(t,Gl),M(t,[{key:"componentWillMount",value:function(){this.handleClick=this.handleClick.bind(this)}},{key:"shouldComponentUpdate",value:function(e){return!Fc(this.props,e)}},{key:"handleClick",value:function(e){this.props.handleClick(this.props.pageNumber,e)}},{key:"render",value:function(){var e=this.props,t=e.cssClasses,n=e.label,r=e.ariaLabel,i=e.url,a=e.isDisabled,s="span",o={className:t.link,dangerouslySetInnerHTML:{__html:n}};a||(s="a",o=H({},o,{"aria-label":r,href:i,onClick:this.handleClick}));var c=Xl.createElement(s,o);return Xl.createElement("li",{className:t.item},c)}}]),t}(),Uf=function(e){function a(){var e,n;T(this,a);for(var t=arguments.length,r=new Array(t),i=0;i\n \n\n ',submit:'\n\n ',loadingIndicator:'\n\n '},Yf=Lc({name:"search-box"}),$f=Xc("SearchBox");var Gf=n(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.KEYS={DOWN:40,END:35,ESC:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,RIGHT:39,UP:38},t.PERCENT_EMPTY=0,t.PERCENT_FULL=100});t(Gf);Gf.KEYS,Gf.PERCENT_EMPTY,Gf.PERCENT_FULL;var Jf=n(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={getPosition:function(e,t,n){return(e-t)/(n-t)*100},getValue:function(e,t,n){var r=e/100;return 0===e?t:100===e?n:Math.round((n-t)*r+t)}}});t(Jf);function Zf(e){var t=e.style,n=e.children,r=Math.round(parseFloat(t.left)),i=[0,50,100].includes(r),a=Array.isArray(n)?n[0]:n,s=Math.round(100*parseInt(a,10))/100;return Xl.createElement("div",{style:H({},t,{marginLeft:100===r?"-2px":0}),className:zh("rheostat-marker","rheostat-marker-horizontal",{"rheostat-marker-large":i})},i&&Xl.createElement("div",{className:"rheostat-value"},s))}var Xf=t(n(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;ty.PERCENT_FULL||(void 0!==r[e+1]?r[e+1]-i:1/0)=this.props.max}}]),a}(),td=Lc({name:"range-slider"}),nd=Xc("RangeSlider");var rd=Lc({name:"sort-by"}),id=Xc("SortBy");var ad={item:'{{#count}}{{/count}}{{^count}}{{/count}}\n {{#stars}}{{/stars}}\n & Up\n {{#count}}{{#helpers.formatNumber}}{{count}}{{/helpers.formatNumber}}{{/count}}\n{{#count}}{{/count}}{{^count}}
{{/count}}'},sd=Lc({name:"rating-menu"}),od=Xc("RatingMenu"),cd=Xl.createElement("path",{d:"M12 .288l2.833 8.718h9.167l-7.417 5.389 2.833 8.718-7.416-5.388-7.417 5.388 2.833-8.718-7.416-5.389h9.167z"}),ud=Xl.createElement("path",{d:"M12 6.76l1.379 4.246h4.465l-3.612 2.625 1.379 4.246-3.611-2.625-3.612 2.625 1.379-4.246-3.612-2.625h4.465l1.38-4.246zm0-6.472l-2.833 8.718h-9.167l7.416 5.389-2.833 8.718 7.417-5.388 7.416 5.388-2.833-8.718 7.417-5.389h-9.167l-2.833-8.718z"});function ld(e){var t=e.nbHits,n=e.hitsPerPage,r=e.nbPages,i=e.page,a=e.processingTimeMS,s=e.query,o=e.templateProps,c=e.cssClasses;return Xl.createElement("div",{className:c.root},Xl.createElement(Kh,d({},o,{templateKey:"text",rootTagName:"span",rootProps:{className:c.text},data:{hasManyResults:1"},Rd=Lc({name:"breadcrumb"}),Sd=Xc("Breadcrumb");var Pd=function(e){function a(){var e,n;T(this,a);for(var t=arguments.length,r=new Array(t),i=0;i\n '.concat(function(e,t,n){return"error"===e&&"not-allowed"===t?'\n \n \n \n ':'\n \n \n \n ')}(t,n,r),"\n ")},status:"{{transcript}}
"},Bd=Lc({name:"voice-search"}),Vd=Xc("VoiceSearch"),Qd=Lc({name:"query-rule-custom-data"}),qd=Xc("QueryRuleCustomData"),Wd=Lc({name:"query-rule-context"}),zd=Object.freeze({clearRefinements:function(e){var t=e.container,n=e.templates,r=void 0===n?$h:n,i=e.includedAttributes,a=e.excludedAttributes,s=e.transformItems,o=e.cssClasses,c=void 0===o?{}:o;if(!t)throw new Error(Gh("The `container` option is required."));var u=oc(t),l={root:zh(Jh(),c.root),button:zh(Jh({descendantName:"button"}),c.button),disabledButton:zh(Jh({descendantName:"button",modifierName:"disabled"}),c.disabledButton)};return lu(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.hasRefinements,i=e.instantSearchInstance;t?o.templateProps=lc({defaultTemplates:$h,templatesConfig:i.templatesConfig,templates:c}):_l(Xl.createElement(Yh,{refine:n,cssClasses:s,hasRefinements:r,templateProps:o.templateProps}),a)}}({containerNode:u,cssClasses:l,renderState:{},templates:r}),function(){return Fl(u)})({includedAttributes:i,excludedAttributes:a,transformItems:s})},configure:function(e){return Ah()({searchParameters:e})},currentRefinements:function(e){var t=e.container,n=e.includedAttributes,r=e.excludedAttributes,i=e.cssClasses,a=void 0===i?{}:i,s=e.transformItems;if(!t)throw new Error(Xh("The `container` option is required."));var o=oc(t),c={root:zh(ef(),a.root),list:zh(ef({descendantName:"list"}),a.list),item:zh(ef({descendantName:"item"}),a.item),label:zh(ef({descendantName:"label"}),a.label),category:zh(ef({descendantName:"category"}),a.category),categoryLabel:zh(ef({descendantName:"categoryLabel"}),a.categoryLabel),delete:zh(ef({descendantName:"delete"}),a.delete)};return du(function(e){var r=e.containerNode,i=e.cssClasses;return function(e,t){var n=e.items;t||_l(Xl.createElement(Zh,{cssClasses:i,items:n}),r)}}({containerNode:o,cssClasses:c}),function(){return Fl(o)})({includedAttributes:n,excludedAttributes:r,transformItems:s})},geoSearch:function(){var e=0=")&&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===u&&(a+=", Page: ".concat(e.state.page)),d!==a&&(s(i,e.state,e.results),d=a)}}var h,f=null,d="",p=!0;function m(){l(f)}function v(){l(f)}return!0===o&&(p=!1),{init:function(){!0===i&&(document.addEventListener("click",m),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 l(f)},r)):p=!1},dispose:function(){!0===i&&(document.removeEventListener("click",m),window.removeEventListener("beforeunload",v))}}},breadcrumb:function(){var e=0\n \n ')}},templates:r}),a=function(e){var a=e.containerNode,s=e.bodyContainerNode,o=e.cssClasses,c=e.templateProps;return function(e){var t=e.options,n=e.hidden,r=e.collapsible,i=e.collapsed;_l(Xl.createElement(Md,{cssClasses:o,hidden:n,collapsible:r,collapsed:i,templateProps:c,data:t,bodyElement:s}),a)}}({containerNode:oc(i),bodyContainerNode:c,cssClasses:h,templateProps:t});a({options:{},hidden:!0,collapsible:u,collapsed:!1});var s=n(H({},e,{container:c}));return H({},s,{dispose:function(){if(Fl(oc(i)),"function"==typeof s.dispose){for(var e,t=arguments.length,n=new Array(t),r=0;r