1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2697],{17331:function(e){function EventEmitter(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function isFunction(e){return"function"==typeof e}function isObject(e){return"object"==typeof e&&null!==e}e.exports=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._maxListeners=void 0,EventEmitter.defaultMaxListeners=10,EventEmitter.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},EventEmitter.prototype.emit=function(e){if(this._events||(this._events={}),"error"===e&&(!this._events.error||isObject(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;var t,n,i,a,o,s,c,u=Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(void 0===(n=this._events[e]))return!1;if(isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),n.apply(this,a)}else if(isObject(n))for(o=0,a=Array.prototype.slice.call(arguments,1),i=(s=n.slice()).length;o<i;o++)s[o].apply(this,a);return!0},EventEmitter.prototype.addListener=function(e,t){var n,i;if(!isFunction(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,isFunction(t.listener)?t.listener:t),this._events[e]?isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,isObject(this._events[e])&&!this._events[e].warned&&(n=void 0===this._maxListeners?EventEmitter.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(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},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.once=function(e,t){if(!isFunction(t))throw TypeError("listener must be a function");var n=!1;function g(){this.removeListener(e,g),n||(n=!0,t.apply(this,arguments))}return g.listener=t,this.on(e,g),this},EventEmitter.prototype.removeListener=function(e,t){var n,i,a,o;if(!isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(n=this._events[e]).length,i=-1,n===t||isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(isObject(n)){for(o=a;o-- >0;)if(n[o]===t||n[o].listener&&n[o].listener===t){i=o;break}if(i<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},EventEmitter.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0==arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0==arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(isFunction(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},EventEmitter.prototype.listeners=function(e){return this._events&&this._events[e]?isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},EventEmitter.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(isFunction(t))return 1;if(t)return t.length}return 0},EventEmitter.listenerCount=function(e,t){return e.listenerCount(t)}},27229:function(e,t,n){"use strict";n.d(t,{f:function(){return c}});var i=n(87462),a=n(67294),o=n(40192);let s=(0,a.forwardRef)((e,t)=>{let{ratio:n=1,style:s,...c}=e;return(0,a.createElement)("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/n}%`},"data-radix-aspect-ratio-wrapper":""},(0,a.createElement)(o.WV.div,(0,i.Z)({},c,{ref:t,style:{...s,position:"absolute",top:0,right:0,bottom:0,left:0}})))}),c=s},8131:function(e,t,n){"use strict";var i=n(49374),a=n(17775),o=n(23076);function algoliasearchHelper(e,t,n){return new i(e,t,n)}algoliasearchHelper.version=n(24336),algoliasearchHelper.AlgoliaSearchHelper=i,algoliasearchHelper.SearchParameters=a,algoliasearchHelper.SearchResults=o,e.exports=algoliasearchHelper},68078:function(e,t,n){"use strict";var i=n(17331);function DerivedHelper(e,t){this.main=e,this.fn=t,this.lastResults=null}n(14853)(DerivedHelper,i),DerivedHelper.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)},DerivedHelper.prototype.getModifiedState=function(e){return this.fn(e)},e.exports=DerivedHelper},82437:function(e,t,n){"use strict";var i=n(52344),a=n(49803),o=n(90116),s={addRefinement:function(e,t,n){if(s.isRefined(e,t,n))return e;var a=""+n,o=e[t]?e[t].concat(a):[a],c={};return c[t]=o,i({},c,e)},removeRefinement:function(e,t,n){if(void 0===n)return s.clearRefinement(e,function(e,n){return t===n});var i=""+n;return s.clearRefinement(e,function(e,n){return t===n&&i===e})},toggleRefinement:function(e,t,n){if(void 0===n)throw Error("toggleRefinement should be used with a value");return s.isRefined(e,t,n)?s.removeRefinement(e,t,n):s.addRefinement(e,t,n)},clearRefinement:function(e,t,n){if(void 0===t)return o(e)?{}:e;if("string"==typeof t)return a(e,[t]);if("function"==typeof t){var i=!1,s=Object.keys(e).reduce(function(a,o){var s=e[o]||[],c=s.filter(function(e){return!t(e,o,n)});return c.length!==s.length&&(i=!0),a[o]=c,a},{});return i?s:e}},isRefined:function(e,t,n){var i=!!e[t]&&e[t].length>0;return void 0!==n&&i?-1!==e[t].indexOf(""+n):i}};e.exports=s},17775:function(e,t,n){"use strict";var i=n(60185),a=n(52344),o=n(22686),s=n(7888),c=n(28023),u=n(49803),l=n(90116),f=n(46801),h=n(82437);function isEqualNumericRefinement(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every(function(e,n){return isEqualNumericRefinement(t[n],e)}):e===t}function SearchParameters(e){var t=e?SearchParameters._parseNumbers(e):{};void 0===t.userToken||f(t.userToken)||console.warn("[algoliasearch-helper] The `userToken` parameter is invali
1d. This can lead to wrong analytics.\n - Format: [a-zA-Z0-9_-]{1,64}"),this.facets=t.facets||[],this.disjunctiveFacets=t.disjunctiveFacets||[],this.hierarchicalFacets=t.hierarchicalFacets||[],this.facetsRefinements=t.facetsRefinements||{},this.facetsExcludes=t.facetsExcludes||{},this.disjunctiveFacetsRefinements=t.disjunctiveFacetsRefinements||{},this.numericRefinements=t.numericRefinements||{},this.tagRefinements=t.tagRefinements||[],this.hierarchicalFacetsRefinements=t.hierarchicalFacetsRefinements||{};var n=this;Object.keys(t).forEach(function(e){var i=-1!==SearchParameters.PARAMETERS.indexOf(e),a=void 0!==t[e];!i&&a&&(n[e]=t[e])})}SearchParameters.PARAMETERS=Object.keys(new SearchParameters),SearchParameters._parseNumbers=function(e){if(e instanceof SearchParameters)return e;var t={};if(["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"].forEach(function(n){var i=e[n];if("string"==typeof i){var a=parseFloat(i);t[n]=isNaN(a)?i:a}}),Array.isArray(e.insideBoundingBox)&&(t.insideBoundingBox=e.insideBoundingBox.map(function(e){return Array.isArray(e)?e.map(function(e){return parseFloat(e)}):e})),e.numericRefinements){var n={};Object.keys(e.numericRefinements).forEach(function(t){var i=e.numericRefinements[t]||{};n[t]={}
1,Object.keys(i).forEach(function(e){var a=i[e].map(function(e){return Array.isArray(e)?e.map(function(e){return"string"==typeof e?parseFloat(e):e}):"string"==typeof e?parseFloat(e):e});n[t][e]=a})}),t.numericRefinements=n}return i({},e,t)},SearchParameters.make=function(e){var t=new SearchParameters(e);return(e.hierarchicalFacets||[]).forEach(function(e){if(e.rootPath){var n=t.getHierarchicalRefinement(e.name);n.length>0&&0!==n[0].indexOf(e.rootPath)&&(t=t.clearRefinements(e.name)),0===(n=t.getHierarchicalRefinement(e.name)).length&&(t=t.toggleHierarchicalFacetRefinement(e.name,e.rootPath))}}),t},SearchParameters.validate=function(e,t){var n=t||{};return e.tagFilters&&n.tagRefinements&&n.tagRefinements.length>0?Error("[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method."):e.tagRefinements.length>0&&n.tagFilters?Error("[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method."):e.numericFilters&&n.numericRefinements&&l(n.numericRefinements)?Error("[Numeric filters] Can't switch from the advanced to the managed API. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):l(e.numericRefinements)&&n.numericFilters?Error("[Numeric filters] Can't switch from the managed API to the advanced. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):null},SearchParameters.prototype={constructor:SearchParameters,clearRefinements:function(e){var t={numericRefinements:this._clearNumericRefinements(e),facetsRefinements:h.clearRefinement(this.facetsRefinements,e,"conjunctiveFacet"),facetsExcludes:h.clearRefinement(this.facetsExcludes,e,"exclude"),disjunctiveFacetsRefinements:h.clearRefinement(this.disjunctiveFacetsRefinements,e,"disjunctiveFacet"),hierarchicalFacetsRefinements:h.clearRefinement(this.hierarchicalFacetsRefinements,e,"hierarchicalFacet")};return t.numericRefinements===this.numericRefinements&&t.facetsRefinements===this.facetsRefinements&&t.facetsExcludes===this.facetsExcludes&&t.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&t.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters(t)},clearTags:function(){return void 0===this.tagFilters&&0===this.tagRefinements.length?this:this.setQueryParameters({tagFilters:void 0,tagRefinements:[]})},setIndex:function(e){return e===this.index?this:this.setQueryParameters({index:e})},setQuery:function(e){return e===this.query?this:this.setQueryParameters({query:e})},setPage:function(e){return e===this.page?this:this.setQueryParameters({page:e})},setFacets:function(e){return this.setQueryParameters({facets:e})},setDisjunctiveFacets:function(e){return this.setQueryParameters({disjunctiveFacets:e})},setHitsPerPage:function(e){return this.hitsPerPage===e?this:this.setQueryParameters({hitsPerPage:e})},setTypoTolerance:function(e){return this.typoTolerance===e?this:this.setQueryParameters({typoTolerance:e})},addNumericRefinement:function(e,t,n){var a=c(n);if(this.isNumericRefined(e,t,a))return this;var o=i({},this.numericRefinements);return o[e]=i({},o[e]),o[e][t]?(o[e][t]=o[e][t].slice(),o[e][t].push(a)):o[e][t]=[a],this.setQueryParameters({numericRefinements:o})},getConjunctiveRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsRefinements[e]||[]},getDisjunctiveRefinements:function(e){return this.isDisjunctiveFacet(e)&&this.disjunctiveFacetsRefinements[e]||[]},getHierarchicalRefinement:function(e){return this.hierarchicalFacetsRefinements[e]||[]},getExcludeRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsExcludes[e]||[]},removeNumericRefinement:function(e,t,n){return void 0!==n?this.isNumericRefined(e,t,n)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(i,a){return a===e&&i.op===t&&isEqualNumericRefinement(i.val,c(n))})}):this:void 0!==t?this.isNumericRefined(e,t)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(n,i){return i===e&&n.op===t})}):this:this.isNumericRefined(e)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(t,n){return n===e})}):this},getNumericRefinements:function(e){return this.numericRefinements[e]||{}},getNumericRefinement:function(e,t){return this.numericRefinements[e]&&this.numericRefinements[e][t]},_clearNumericRefinements:function(e){if(void 0===e)return l(this.numericRefinements)?{}:this.numericRefinements;if("string"==typeof e)return u(this.numericRefinements,[e]);if("function"==typeof e){var t=!1,n=this.numericRefinements,i=Object.keys(n).reduce(function(i,a){var o=n[a],s={};return Object.keys(o=o||{}
1).forEach(function(n){var i=o[n]||[],c=[];i.forEach(function(t){e({val:t,op:n},a,"numeric")||c.push(t)}),c.length!==i.length&&(t=!0),s[n]=c}),i[a]=s,i},{});return t?i:this.numericRefinements}},addFacet:function(e){return this.isConjunctiveFacet(e)?this:this.setQueryParameters({facets:this.facets.concat([e])})},addDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([e])})},addHierarchicalFacet:function(e){if(this.isHierarchicalFacet(e.name))throw Error("Cannot declare two hierarchical facets with the same name: `"+e.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([e])})},addFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsRefinements,e,t)?this:this.setQueryParameters({facetsRefinements:h.addRefinement(this.facetsRefinements,e,t)})},addExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsExcludes,e,t)?this:this.setQueryParameters({facetsExcludes:h.addRefinement(this.facetsExcludes,e,t)})},addDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return h.isRefined(this.disjunctiveFacetsRefinements,e,t)?this:this.setQueryParameters({disjunctiveFacetsRefinements:h.addRefinement(this.disjunctiveFacetsRefinements,e,t)})},addTagRefinement:function(e){if(this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.concat(e)};return this.setQueryParameters(t)},removeFacet:function(e){return this.isConjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({facets:this.facets.filter(function(t){return t!==e})}):this},removeDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.filter(function(t){return t!==e})}):this},removeHierarchicalFacet:function(e){return this.isHierarchicalFacet(e)?this.clearRefinements(e).setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.filter(function(t){return t.name!==e})}):this},removeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsRefinements,e,t)?this.setQueryParameters({facetsRefinements:h.removeRefinement(this.facetsRefinements,e,t)}):this},removeExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsExcludes,e,t)?this.setQueryParameters({facetsExcludes:h.removeRefinement(this.facetsExcludes,e,t)}):this},removeDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return h.isRefined(this.disjunctiveFacetsRefinements,e,t)?this.setQueryParameters({disjunctiveFacetsRefinements:h.removeRefinement(this.disjunctiveFacetsRefinements,e,t)}):this},removeTagRefinement:function(e){if(!this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.filter(function(t){return t!==e})};return this.setQueryParameters(t)},toggleRefinement:function(e,t){return this.toggleFacetRefinement(e,t)},toggleFacetRefinement:function(e,t){if(this.isHierarchicalFacet(e))return this.toggleHierarchicalFacetRefinement(e,t);if(this.isConjunctiveFacet(e))return this.toggleConjunctiveFacetRefinement(e,t);if(this.isDisjunctiveFacet(e))return this.toggleDisjunctiveFacetRefinement(e,t);throw Error("Cannot refine the undeclared facet "+e+"; it should be added to the helper options facets, disjunctiveFacets or hierarchicalFacets")},toggleConjunctiveFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsRefinements:h.toggleRefinement(this.facetsRefinements,e,t)})},toggleExcludeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsExcludes:h.toggleRefinement(this.facetsExcludes,e,t)})},toggleDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.setQueryParameters({disjunctiveFacetsRefinements:h.toggleRefinement(this.disjunctiveFacetsRefinements,e,t)})},toggleHierarchicalFacetRefinement:function(e,t){if(!this.isHierarchicalFacet(e))throw Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration");var n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),i={};return void 0!==this.hierarchicalFacetsRefinements[e]&&this.hierarchicalFacetsRefinements[e].length>0&&(this.hierarchicalFacetsRefinements[e][0]===t||0===this.hierarchicalFacetsRefinements[e][0].indexOf(t+n))?-1===t.indexOf(n)?i[e]=[]:i[e]=[t.slice(0,t.lastIndexOf(n))]:i[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:a({},i,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(e,t){if(this.isHierarchicalFacetRefined(e))throw Error(e+" is already refined.");if(!this.isHierarchicalFacet(e))throw Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration.");var n={};return n[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:a({},n,this.hierarchicalFacetsRefinements)})},removeHierarchicalFacetRefinement:function(e){if(!this.isHierarchicalFacetRefined(e))return this;var t={};return t[e]=[],this.setQueryParameters({hierarchicalFacetsRefinements:a({},t,this.hierarchicalFacetsRefinements)})},toggleTagRefinement:function(e){return this.isTagRefined(e)?this.removeTagRefinement(e):this.addTagRefinement(e)},isDisjunctiveFacet:function(e){return this.disjunctiveFacets.indexOf(e)>-1},isHierarchicalFacet:function(e){return void 0!==this.getHierarchicalFacetByName(e)},isConjunctiveFacet:function(e){return this.facets.indexOf(e)>-1},isFacetRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&h.isRef
1ined(this.facetsRefinements,e,t)},isExcludeRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&h.isRefined(this.facetsExcludes,e,t)},isDisjunctiveFacetRefined:function(e,t){return!!this.isDisjunctiveFacet(e)&&h.isRefined(this.disjunctiveFacetsRefinements,e,t)},isHierarchicalFacetRefined:function(e,t){if(!this.isHierarchicalFacet(e))return!1;var n=this.getHierarchicalRefinement(e);return t?-1!==n.indexOf(t):n.length>0},isNumericRefined:function(e,t,n){if(void 0===n&&void 0===t)return!!this.numericRefinements[e];var i=this.numericRefinements[e]&&void 0!==this.numericRefinements[e][t];if(void 0===n||!i)return i;var a=c(n),o=void 0!==s(this.numericRefinements[e][t],function(e){return isEqualNumericRefinement(e,a)});return i&&o},isTagRefined:function(e){return -1!==this.tagRefinements.indexOf(e)},getRefinedDisjunctiveFacets:function(){var e=this,t=o(Object.keys(this.numericRefinements).filter(function(t){return Object.keys(e.numericRefinements[t]).length>0}),this.disjunctiveFacets);return Object.keys(this.disjunctiveFacetsRefinements).filter(function(t){return e.disjunctiveFacetsRefinements[t].length>0}).concat(t).concat(this.getRefinedHierarchicalFacets())},getRefinedHierarchicalFacets:function(){var e=this;return o(this.hierarchicalFacets.map(function(e){return e.name}),Object.keys(this.hierarchicalFacetsRefinements).filter(function(t){return e.hierarchicalFacetsRefinements[t].length>0}))},getUnrefinedDisjunctiveFacets:function(){var e=this.getRefinedDisjunctiveFacets();return this.disjunctiveFacets.filter(function(t){return -1===e.indexOf(t)})},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","hierarchicalFacets","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacetsRefinements"],getQueryParams:function(){var e=this.managedParameters,t={},n=this;return Object.keys(this).forEach(function(i){var a=n[i];-1===e.indexOf(i)&&void 0!==a&&(t[i]=a)}),t},setQueryParameter:function(e,t){if(this[e]===t)return this;var n={};return n[e]=t,this.setQueryParameters(n)},setQueryParameters:function(e){if(!e)return this;var t=SearchParameters.validate(this,e);if(t)throw t;var n=this,i=SearchParameters._parseNumbers(e),a=Object.keys(this).reduce(function(e,t){return e[t]=n[t],e},{}),o=Object.keys(i).reduce(function(e,t){var n=void 0!==e[t],a=void 0!==i[t];return n&&!a?u(e,[t]):(a&&(e[t]=i[t]),e)},a);return new this.constructor(o)},resetPage:function(){return void 0===this.page?this:this.setPage(0)},_getHierarchicalFacetSortBy:function(e){return e.sortBy||["isRefined:desc","name:asc"]},_getHierarchicalFacetSeparator:function(e){return e.separator||" > "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return"boolean"!=typeof e.showParentLevel||e.showParentLevel},getHierarchicalFacetByName:function(e){return s(this.hierarchicalFacets,function(t){return t.name===e})},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)}},e.exports=SearchParameters},10210:function(e,t,n){"use strict";e.exports=function(e){return function(t,n){var s=e.hierarchicalFacets[n],l=e.hierarchicalFacetsRefinements[s.name]&&e.hierarchicalFacetsRefinements[s.name][0]||"",f=e._getHierarchicalFacetSeparator(s),h=e._getHierarchicalRootPath(s),d=e._getHierarchicalShowParentLevel(s),p=o(e._getHierarchicalFacetSortBy(s)),y=t.every(function(e){return e.exhaustive}),m=t;return h&&(m=t.slice(h.split(f).length)),m.reduce(function(e,t,n){var o=e;if(n>0){var s=0;for(o=e;s<n;)o=a(o&&Array.isArray(o.data)?o.data:[],function(e){return e.isRefined}),s++}if(o){var y=Object.keys(t.data).map(function(e){return[e,t.data[e]]}).filter(function(e){var t,n;return t=e[0],n=o.path||h,(!h||0===t.indexOf(h)&&h!==t)&&(!h&&-1===t.indexOf(f)||h&&t.split(f).length-h.split(f).length==1||-1===t.indexOf(f)&&-1===l.indexOf(f)||0===l.indexOf(t)||0===t.indexOf(n+f)&&(d||0===t.indexOf(l)))});o.data=i(y.map(function(e){var n,i,a,o,s=e[0];return n=e[1],i=u(l),a=t.exhaustive,{name:(o=s.split(f))[o.length-1].trim(),path:s,escapedValue:c(s),count:n,isRef
1ined:i===s||0===i.indexOf(s+f),exhaustive:a,data:null}}),p[0],p[1])}return e},{name:e.hierarchicalFacets[n].name,count:null,isRefined:!0,path:null,escapedValue:null,exhaustive:y,data:null})}};var i=n(42148),a=n(7888),o=n(82293),s=n(94039),c=s.escapeFacetValue,u=s.unescapeFacetValue},23076:function(e,t,n){"use strict";var i=n(60185),a=n(52344),o=n(42148),s=n(74587),c=n(7888),u=n(69725),l=n(82293),f=n(94039),h=f.escapeFacetValue,d=f.unescapeFacetValue,p=n(10210);function getIndices(e){var t={};return e.forEach(function(e,n){t[e]=n}),t}function assignFacetStats(e,t,n){t&&t[n]&&(e.stats=t[n])}function SearchResults(e,t,n){var o=t[0];this._rawResults=t;var l=this;Object.keys(o).forEach(function(e){l[e]=o[e]}),Object.keys(n||{}).forEach(function(e){l[e]=n[e]}),this.processingTimeMS=t.reduce(function(e,t){return void 0===t.processingTimeMS?e:e+t.processingTimeMS},0),this.disjunctiveFacets=[],this.hierarchicalFacets=e.hierarchicalFacets.map(function(){return[]}),this.facets=[];var f=e.getRefinedDisjunctiveFacets(),h=getIndices(e.facets),y=getIndices(e.disjunctiveFacets),m=1,v=o.facets||{};Object.keys(v).forEach(function(t){var n=v[t],i=c(e.hierarchicalFacets,function(e){return(e.attributes||[]).indexOf(t)>-1});if(i){var a=i.attributes.indexOf(t),s=u(e.hierarchicalFacets,function(e){return e.name===i.name});l.hierarchicalFacets[s][a]={attribute:t,data:n,exhaustive:o.exhaustiveFacetsCount}}else{var f,d=-1!==e.disjunctiveFacets.indexOf(t),p=-1!==e.facets.indexOf(t);d&&(f=y[t],l.disjunctiveFacets[f]={name:t,data:n,exhaustive:o.exhaustiveFacetsCount},assignFacetStats(l.disjunctiveFacets[f],o.facets_stats,t)),p&&(f=h[t],l.facets[f]={name:t,data:n,exhaustive:o.exhaustiveFacetsCount},assignFacetStats(l.facets[f],o.facets_stats,t))}}),this.hierarchicalFacets=s(this.hierarchicalFacets),f.forEach(function(n){var s=t[m],c=s&&s.facets?s.facets:{},f=e.getHierarchicalFacetByName(n);Object.keys(c).forEach(function(t){var n,h=c[t];if(f){n=u(e.hierarchicalFacets,function(e){return e.name===f.name});var p=u(l.hierarchicalFacets[n],function(e){return e.attribute===t});if(-1===p)return;l.hierarchicalFacets[n][p].data=i({},l.hierarchicalFacets[n][p].data,h)}else{n=y[t];var m=o.facets&&o.facets[t]||{};l.disjunctiveFacets[n]={name:t,data:a({},h,m),exhaustive:s.exhaustiveFacetsCount},assignFacetStats(l.disjunctiveFacets[n],s.facets_stats,t),e.disjunctiveFacetsRefinements[t]&&e.disjunctiveFacetsRefinements[t].forEach(function(i){!l.disjunctiveFacets[n].data[i]&&e.disjunctiveFacetsRefinements[t].indexOf(d(i))>-1&&(l.disjunctiveFacets[n].data[i]=0)})}}),m++}),e.getRefinedHierarchicalFacets().forEach(function(n){var i=e.getHierarchicalFacetByName(n),o=e._getHierarchicalFacetSeparator(i),s=e.getHierarchicalRefinement(n);0===s.length||s[0].split(o).length<2||t.slice(m).forEach(function(t){var n=t&&t.facets?t.facets:{};Object.keys(n).forEach(function(t){var c=n[t],f=u(e.hierarchicalFacets,function(e){return e.name===i.name}),h=u(l.hierarchicalFacets[f],function(e){return e.attribute===t});if(-1!==h){var d={};if(s.length>0){var p=s[0].split(o)[0];d[p]=l.hierarchicalFacets[f][h].data[p]}l.hierarchicalFacets[f][h].data=a(d,c,l.hierarchicalFacets[f][h].data)}}),m++})}),Object.keys(e.facetsExcludes).forEach(function(t){var n=e.facetsExcludes[t],i=h[t];l.facets[i]={name:t,data:o.facets[t],exhaustive:o.exhaustiveFacetsCount},n.forEach(function(e){l.facets[i]=l.facets[i]||{name:t},l.facets[i].data=l.facets[i].data||{},l.facets[i].data[e]=0})}),this.hierarchicalFacets=this.hierarchicalFacets.map(p(e)),this.facets=s(this.facets),this.disjunctiveFacets=s(this.disjunctiveFacets),this._state=e}function getFacetStatsIfAvailable(e,t){var n=c(e,function(e){return e.name===t});return n&&n.stats}function getRefinement(e,t,n,i,a){var o=c(a,function(e){return e.name===n}),s=o&&o.data&&o.data[i]?o.data[i]:0;return{type:t,attributeName:n,name:i,count:s,exhaustive:o&&o.exhaustive||!1}}SearchResults.prototype.getFacetByName=function(e){function predicate(t){return t.name===e}return c(this.facets,predicate)||c(this.disjunctiveFacets,predicate)||c(this.hierarchicalFacets,predicate)}
1,SearchResults.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"],SearchResults.prototype.getFacetValues=function(e,t){var n,i=function(e,t){function predicate(e){return e.name===t}if(e._state.isConjunctiveFacet(t)){var n=c(e.facets,predicate);return n?Object.keys(n.data).map(function(i){var a=h(i);return{name:i,escapedValue:a,count:n.data[i],isRefined:e._state.isFacetRefined(t,a),isExcluded:e._state.isExcludeRefined(t,i)}}):[]}if(e._state.isDisjunctiveFacet(t)){var i=c(e.disjunctiveFacets,predicate);return i?Object.keys(i.data).map(function(n){var a=h(n);return{name:n,escapedValue:a,count:i.data[n],isRefined:e._state.isDisjunctiveFacetRefined(t,a)}}):[]}if(e._state.isHierarchicalFacet(t)){var a=c(e.hierarchicalFacets,predicate);if(!a)return a;var o=e._state.getHierarchicalFacetByName(t),s=d(e._state.getHierarchicalRefinement(t)[0]||"").split(e._state._getHierarchicalFacetSeparator(o));return s.unshift(t),function setIsRefined(e,t,n){e.isRefined=e.name===t[n],e.data&&e.data.forEach(function(e){setIsRefined(e,t,n+1)})}(a,s,0),a}}(this,e);if(i){var s=a({},t,{sortBy:SearchResults.DEFAULT_SORT,facetOrdering:!(t&&t.sortBy)}),u=this;return n=Array.isArray(i)?[e]:u._state.getHierarchicalFacetByName(i.name).attributes,function recSort(e,t,n,i){if(i=i||0,Array.isArray(t))return e(t,n[i]);if(!t.data||0===t.data.length)return t;var o=t.data.map(function(t){return recSort(e,t,n,i+1)});return a({data:e(o,n[i])},t)}(function(e,t){if(s.facetOrdering){var n,i,a,c,f,h,d=u.renderingContent&&u.renderingContent.facetOrdering&&u.renderingContent.facetOrdering.values&&u.renderingContent.facetOrdering.values[t];if(d)return a=[],c=[],f=(d.order||[]).reduce(function(e,t,n){return e[t]=n,e},{}),e.forEach(function(e){var t=e.path||e.name;void 0!==f[t]?a[f[t]]=e:c.push(e)}),a=a.filter(function(e){return e}),"hidden"===(h=d.sortRemainingBy)?a:(i="alpha"===h?[["path","name"],["asc","asc"]]:[["count"],["desc"]],a.concat(o(c,i[0],i[1])))}if(Array.isArray(s.sortBy)){var p=l(s.sortBy,SearchResults.DEFAULT_SORT);return o(e,p[0],p[1])}if("function"==typeof s.sortBy)return n=s.sortBy,e.sort(n);throw Error("options.sortBy is optional but if defined it must be either an array of string (predicates) or a sorting function")},i,n)}},SearchResults.prototype.getFacetStats=function(e){return this._state.isConjunctiveFacet(e)?getFacetStatsIfAvailable(this.facets,e):this._state.isDisjunctiveFacet(e)?getFacetStatsIfAvailable(this.disjunctiveFacets,e):void 0},SearchResults.prototype.getRefinements=function(){var e=this._state,t=this,n=[];return Object.keys(e.facetsRefinements).forEach(function(i){e.facetsRefinements[i].forEach(function(a){n.push(getRefinement(e,"facet",i,a,t.facets))})}),Object.keys(e.facetsExcludes).forEach(function(i){e.facetsExcludes[i].forEac
1h(function(a){n.push(getRefinement(e,"exclude",i,a,t.facets))})}),Object.keys(e.disjunctiveFacetsRefinements).forEach(function(i){e.disjunctiveFacetsRefinements[i].forEach(function(a){n.push(getRefinement(e,"disjunctive",i,a,t.disjunctiveFacets))})}),Object.keys(e.hierarchicalFacetsRefinements).forEach(function(i){e.hierarchicalFacetsRefinements[i].forEach(function(a){var o,s,u,l,f,h,d,p;n.push((o=t.hierarchicalFacets,s=e.getHierarchicalFacetByName(i),u=e._getHierarchicalFacetSeparator(s),l=a.split(u),f=c(o,function(e){return e.name===i}),d=(h=l.reduce(function(e,t){var n=e&&c(e.data,function(e){return e.name===t});return void 0!==n?n:e},f))&&h.count||0,p=h&&h.exhaustive||!1,{type:"hierarchical",attributeName:i,name:h&&h.path||"",count:d,exhaustive:p}))})}),Object.keys(e.numericRefinements).forEach(function(t){var i=e.numericRefinements[t];Object.keys(i).forEach(function(e){i[e].forEach(function(i){n.push({type:"numeric",attributeName:t,name:i,numericValue:i,operator:e})})})}),e.tagRefinements.forEach(function(e){n.push({type:"tag",attributeName:"_tags",name:e})}),n},e.exports=SearchResults},49374:function(e,t,n){"use strict";var i=n(17775),a=n(23076),o=n(68078),s=n(96394),c=n(17331),u=n(14853),l=n(90116),f=n(49803),h=n(60185),d=n(24336),p=n(94039).escapeFacetValue;function AlgoliaSearchHelper(e,t,n){"function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+d+")"),this.setClient(e);var a=n||{};a.index=t,this.state=i.make(a),this.lastResults=null,this._queryId=0,this._lastQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0}function setCurrentPage(e){if(e<0)throw Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}function getCurrentPage(){return this.state.page}u(AlgoliaSearchHelper,c),AlgoliaSearchHelper.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},AlgoliaSearchHelper.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},AlgoliaSearchHelper.prototype.getQuery=function(){var e=this.state;return s._getHitsSearchParams(e)},AlgoliaSearchHelper.prototype.searchOnce=function(e,t){var n=e?this.state.setQueryParameters(e):this.state,i=s._getQueries(n.index,n),o=this;if(this._currentNbQueries++,this.emit("searchOnce",{state:n}),t){this.client.search(i).then(function(e){o._currentNbQueries--,0===o._currentNbQueries&&o.emit("searchQueueEmpty"),t(null,new a(n,e.results),n)}).catch(function(e){o._currentNbQueries--,0===o._currentNbQueries&&o.emit("searchQueueEmpty"),t(e,null,n)});return}return this.client.search(i).then(function(e){return o._currentNbQueries--,0===o._currentNbQueries&&o.emit("searchQueueEmpty"),{content:new a(n,e.results),state:n,_originalResponse:e}},function(e){throw o._currentNbQueries--,0===o._currentNbQueries&&o.emit("searchQueueEmpty"),e})},AlgoliaSearchHelper.prototype.findAnswers=function(e){console.warn("[algoliasearch-helper] answers is no longer supported");var t=this.state,n=this.derivedHelpers[0];if(!n)return Promise.resolve([]);var i=n.getModifiedState(t),a=h({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:f(s._getHitsSearchParams(i),["attributesToSnippet","hitsPerPage","restrictSearchableAttributes","snippetEllipsisText"])}),o="search for answers was called, but this client does not have a function client.initIndex(index).findAnswers";if("function"!=typeof this.client.initIndex)throw Error(o);var c=this.client.initIndex(i.index);if("function"!=typeof c.findAnswers)throw Error(o);return c.findAnswers(i.query,e.queryLanguages,a)},AlgoliaSearchHelper.prototype.searchForFacetValues=function(e,t,n,i){var a,o="function"==typeof this.client.searchForFacetValues,c="function"==typeof this.client.initIndex;if(!o&&!c&&"function"!=typeof this.client.search)throw Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues or client.initIndex(index).searchForFacetValues");var u=this.state.setQueryParameters(i||{}),l=u.isDisjunctiveFacet(e),f=s.getSearchForFacetQuery(e,t,n,u);this._currentNbQueries++;var h=this;return o?a=this.client.searchForFacetValues([{indexName:u.index,params:f}]):c?a=this.client.initIndex(u.index).searchForFacetValues(f):(delete f.facetName,a=this.client.search([{type:"facet",facet:e,indexName:u.index,params:f}]).then(function(e){return e.results[0]}
vendor: 5,235 bytes, line 1
1)),this.emit("searchForFacetValues",{state:u,facet:e,query:t}),a.then(function(t){return h._currentNbQueries--,0===h._currentNbQueries&&h.emit("searchQueueEmpty"),(t=Array.isArray(t)?t[0]:t).facetHits.forEach(function(t){t.escapedValue=p(t.value),t.isRefined=l?u.isDisjunctiveFacetRefined(e,t.escapedValue):u.isFacetRefined(e,t.escapedValue)}),t},function(e){throw h._currentNbQueries--,0===h._currentNbQueries&&h.emit("searchQueueEmpty"),e})},AlgoliaSearchHelper.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},AlgoliaSearchHelper.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.addNumericRefinement=function(e,t,n){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,n),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},AlgoliaSearchHelper.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},AlgoliaSearchHelper.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.removeNumericRefinement=function(e,t,n){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,n),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},AlgoliaSearchHelper.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},AlgoliaSearchHelper.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},AlgoliaSearchHelper.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},AlgoliaSearchHelper.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},AlgoliaSearchHelper.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},AlgoliaSearchHelper.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)},AlgoliaSearchHelper.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)},AlgoliaSearchHelper.prototype.setCurrentPage=setCurrentPage,AlgoliaSearchHelper.prototype.setPage=setCurrentPage,AlgoliaSearchHelper.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.setState=function(e){return this._change({state:i.make(e),isPageReset:!1}),this},AlgoliaSearchHelper.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new i(e),this}
1,AlgoliaSearchHelper.prototype.hasRefinements=function(e){return!!l(this.state.getNumericRefinements(e))||(this.state.isConjunctiveFacet(e)?this.state.isFacetRefined(e):this.state.isDisjunctiveFacet(e)?this.state.isDisjunctiveFacetRefined(e):!!this.state.isHierarchicalFacet(e)&&this.state.isHierarchicalFacetRefined(e))},AlgoliaSearchHelper.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},AlgoliaSearchHelper.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},AlgoliaSearchHelper.prototype.hasTag=function(e){return this.state.isTagRefined(e)},AlgoliaSearchHelper.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},AlgoliaSearchHelper.prototype.getIndex=function(){return this.state.index},AlgoliaSearchHelper.prototype.getCurrentPage=getCurrentPage,AlgoliaSearchHelper.prototype.getPage=getCurrentPage,AlgoliaSearchHelper.prototype.getTags=function(){return this.state.tagRefinements},AlgoliaSearchHelper.prototype.getRefinements=function(e){var t=[];this.state.isConjunctiveFacet(e)?(this.state.getConjunctiveRefinements(e).forEach(function(e){t.push({value:e,type:"conjunctive"})}),this.state.getExcludeRefinements(e).forEach(function(e){t.push({value:e,type:"exclude"})})):this.state.isDisjunctiveFacet(e)&&this.state.getDisjunctiveRefinements(e).forEach(function(e){t.push({value:e,type:"disjunctive"})});var n=this.state.getNumericRefinements(e);return Object.keys(n).forEach(function(e){var i=n[e];t.push({value:i,operator:e,type:"numeric"})}),t},AlgoliaSearchHelper.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},AlgoliaSearchHelper.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},AlgoliaSearchHelper.prototype._search=function(e){var t=this.state,n=[],i=[];e.onlyWithDerivedHelpers||(i=s._getQueries(t.index,t),n.push({state:t,queriesCount:i.length,helper:this}),this.emit("search",{state:t,results:this.lastResults}));var a=this.derivedHelpers.map(function(e){var i=e.getModifiedState(t),a=s._getQueries(i.index,i);return n.push({state:i,queriesCount:a.length,helper:e}),e.emit("search",{state:i,results:e.lastResults}),a}),o=Array.prototype.concat.apply(i,a),c=this._queryId++;this._currentNbQueries++;try{this.client.search(o).then(this._dispatchAlgoliaResponse.bind(this,n,c)).catch(this._dispatchAlgoliaError.bind(this,c))}catch(e){this.emit("error",{error:e})}},AlgoliaSearchHelper.prototype._dispatchAlgoliaResponse=function(e,t,n){if(!(t<this._lastQueryIdReceived)){this._currentNbQueries-=t-this._lastQueryIdReceived,this._lastQueryIdReceived=t,0===this._currentNbQueries&&this.emit("searchQueueEmpty");var i=n.results.slice();e.forEach(function(e){var t=e.state,n=e.queriesCount,o=e.helper,s=i.splice(0,n),c=o.lastResults=new a(t,s);o.emit("result",{results:c,state:t})})}},AlgoliaSearchHelper.prototype._dispatchAlgoliaError=function(e,t){e<this._lastQueryIdReceived||(this._currentNbQueries-=e-this._lastQueryIdReceived,this._lastQueryIdReceived=e,this.emit("error",{error:t}),0===this._currentNbQueries&&this.emit("searchQueueEmpty"))},AlgoliaSearchHelper.prototype.containsRefinement=function(e,t,n,i){return e||0!==t.length||0!==n.length||0!==i.length},AlgoliaSearchHelper.prototype._hasDisjunctiveRefinements=function(e){return this.state.disjunctiveRefinements[e]&&this.state.disjunctiveRefinements[e].length>0},AlgoliaSearchHelper.prototype._change=function(e){var t=e.state,n=e.isPageReset;t!==this.state&&(this.state=t,this.emit("change",{state:this.state,results:this.lastResults,isPageReset:n}))},AlgoliaSearchHelper.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},AlgoliaSearchHelper.prototype.setClient=function(e){return this.client===e||("function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+d+")"),this.client=e),this},AlgoliaSearchHelper.prototype.getClient=function(){return this.client},AlgoliaSearchHelper.prototype.derive=function(e){var t=new o(this,e);return this.derivedHelpers.push(t),t},AlgoliaSearchHelper.prototype.detachDerivedHelper=function(e){var t=this.derivedHelpers.indexOf(e);if(-1===t)throw Error("Derived helper already detached");this.derivedHelpers.splice(t,1)},AlgoliaSearchHelper.prototype.hasPendingRequests=function(){return this._currentNbQueries>0},e.exports=AlgoliaSearchHelper},74587:function(e){"use strict";e.exports=function(e){return Array.isArray(e)?e.filter(Boolean):[]}},52344:function(e){"use strict";e.exports=function(){var e=Array.prototype.slice.call(arguments);return e.reduceRight(function(e,t){return Object.keys(Object(t)).forEac
1h(function(n){void 0!==t[n]&&(void 0!==e[n]&&delete e[n],e[n]=t[n])}),e},{})}},94039:function(e){"use strict";e.exports={escapeFacetValue:function(e){return"string"!=typeof e?e:String(e).replace(/^-/,"\\-")},unescapeFacetValue:function(e){return"string"!=typeof e?e:e.replace(/^\\-/,"-")}}},7888:function(e){"use strict";e.exports=function(e,t){if(Array.isArray(e)){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}}},69725:function(e){"use strict";e.exports=function(e,t){if(!Array.isArray(e))return -1;for(var n=0;n<e.length;n++)if(t(e[n]))return n;return -1}},82293:function(e,t,n){"use strict";var i=n(7888);e.exports=function(e,t){var n=(t||[]).map(function(e){return e.split(":")});return e.reduce(function(e,t){var a=t.split(":"),o=i(n,function(e){return e[0]===a[0]});return a.length>1||!o?(e[0].push(a[0]),e[1].push(a[1])):(e[0].push(o[0]),e[1].push(o[1])),e},[[],[]])}},14853:function(e){"use strict";e.exports=function(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}},22686:function(e){"use strict";e.exports=function(e,t){return e.filter(function(n,i){return t.indexOf(n)>-1&&e.indexOf(n)===i})}},60185:function(e){"use strict";function isObjectOrArrayOrFunction(e){return"function"==typeof e||Array.isArray(e)||"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){isObjectOrArrayOrFunction(e)||(e={});for(var t=1,n=arguments.length;t<n;t++){var i=arguments[t];isObjectOrArrayOrFunction(i)&&function _merge(e,t){if(e===t)return e;for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&"__proto__"!==n&&"constructor"!==n){var i=t[n],a=e[n];(void 0===a||void 0!==i)&&(isObjectOrArrayOrFunction(a)&&isObjectOrArrayOrFunction(i)?e[n]=_merge(a,i):e[n]="object"==typeof i&&null!==i?_merge(Array.isArray(i)?[]:{},i):i)}return e}(e,i)}return e}},90116:function(e){"use strict";e.exports=function(e){return e&&Object.keys(e).length>0}},49803:function(e){"use strict";e.exports=function(e,t){if(null===e)return{};var n,i,a={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(a[n]=e[n]);return a}},42148:function(e){"use strict";e.exports=function(e,t,n){if(!Array.isArray(e))return[];Array.isArray(n)||(n=[]);var i=e.map(function(e,n){return{criteria:t.map(function(t){return e[t]}),index:n,value:e}});return i.sort(function(e,t){for(var i=-1;++i<e.criteria.length;){var a=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,a=void 0!==t,o=null===t;if(!o&&e>t||i&&a||!n)return 1;if(!i&&e<t||o&&n||!a)return -1}return 0}(e.criteria[i],t.criteria[i]);if(a){if(i>=n.length)return a;if("desc"===n[i])return-a;return a}}return e.index-t.index}),i.map(function(e){return e.value})}},28023:function(e){"use strict";e.exports=function valToNumber(e){if("number"==typeof e)return e;if("string"==typeof e)return parseFloat(e);if(Array.isArray(e))return e.map(valToNumber);throw Error("The value should be a number, a parsable string or an array of those.")}},96394:function(e,t,n){"use strict";var i=n(60185);function sortObject(e){return Object.keys(e).sort(function(e,t){return e.localeCompare(t)}).reduce(function(t,n){return t[n]=e[n],t},{})}var a={_getQueries:function(e,t){var n=[];return n.push({indexName:e,params:a._getHitsSearchParams(t)}),t.getRefinedDisjunctiveFacets().forEach(function(i){n.push({indexName:e,params:a._getDisjunctiveFacetSearchParams(t,i)})}),t.getRefinedHierarchicalFacets().forEach(function(i){var o=t.getHierarchicalFacetByName(i),s=t.getHierarchicalRefinement(i),c=t._getHierarchicalFacetSeparator(o);if(s.length>0&&s[0].split(c).length>1){var u=s[0].split(c).slice(0,-1).reduce(function(e,t,n){return e.concat({attribute:o.attributes[n],value:0===n?t:[e[e.length-1].value,t].join(c)})},[]);u.forEach(function(i,s){var c=a._getDisjunctiveFacetSearchParams(t,i.attribute,0===s);function hasHierarchicalFacetFilter(e){return o.attributes.some(function(t){return t===e.split(":")[0]})}var l=(c.facetFilters||[]).reduce(function(e,t){if(Array.isArray(t)){var n=t.filter(function(e){return!hasHierarchicalFacetFilter(e)});n.length>0&&e.push(n)}return"string"!=typeof t||hasHierarchicalFacetFilter(t)||e.push(t),e},[]),f=u[s-1];s>0?c.facetFilters=l.concat(f.attribute+":"+f.value):c.facetFilters=l.length>0?l:void 0,n.push({indexName:e,params:c})})}}),n},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(a._getHitsHierarchicalFacetsAttributes(e)),n=a._getFacetFilters(e),o=a._getNumericFilters(e),s=a._getTagFilters(e),c={facets:t.indexOf("*")>-1?["*"]:t,tagFilters:s};return n.length>0&&(c.facetFilters=n),o.length>0&&(c.numericFilters=o),sortObject(i({},e.getQueryParams(),c))},_getDisjunctiveFacetSearchParams:function(e,t,n){var o=a._getFacetFilters(e,t,n),s=a._getNumericFilters(e,t),c=a._getTagFilters(e),u={hitsPerPage:0,page:0,analytics:!1,clickAnalytics:!1};c.length>0&&(u.tagFilters=c);var l=e.getHierarchicalFacetByName(t);return l?u.facets=a._getDisjunctiveHierarchicalFacetAttribute(e,l,n):u.facets=t,s.length>0&&(u.numericFilters=s),o.length>0&&(u.facetFilters=o),sortObject(i({},e.getQueryParams(),u))},_getNumericFilters:function(e,t){if(e.numericFilters)return e.numericFilters;var n=[];
1return Object.keys(e.numericRefinements).forEach(function(i){var a=e.numericRefinements[i]||{};Object.keys(a).forEach(function(e){var o=a[e]||[];t!==i&&o.forEach(function(t){if(Array.isArray(t)){var a=t.map(function(t){return i+e+t});n.push(a)}else n.push(i+e+t)})})}),n},_getTagFilters:function(e){return e.tagFilters?e.tagFilters:e.tagRefinements.join(",")},_getFacetFilters:function(e,t,n){var i=[],a=e.facetsRefinements||{};Object.keys(a).forEach(function(e){(a[e]||[]).forEach(function(t){i.push(e+":"+t)})});var o=e.facetsExcludes||{};Object.keys(o).forEach(function(e){(o[e]||[]).forEach(function(t){i.push(e+":-"+t)})});var s=e.disjunctiveFacetsRefinements||{};Object.keys(s).forEach(function(e){var n=s[e]||[];if(e!==t&&n&&0!==n.length){var a=[];n.forEach(function(t){a.push(e+":"+t)}),i.push(a)}});var c=e.hierarchicalFacetsRefinements||{};return Object.keys(c).forEach(function(a){var o,s,u=(c[a]||[])[0];if(void 0!==u){var l=e.getHierarchicalFacetByName(a),f=e._getHierarchicalFacetSeparator(l),h=e._getHierarchicalRootPath(l);if(t===a){if(-1===u.indexOf(f)||!h&&!0===n||h&&h.split(f).length===u.split(f).length)return;h?(s=h.split(f).length-1,u=h):(s=u.split(f).length-2,u=u.slice(0,u.lastIndexOf(f))),o=l.attributes[s]}else s=u.split(f).length-1,o=l.attributes[s];o&&i.push([o+":"+u])}}),i},_getHitsHierarchicalFacetsAttributes:function(e){return e.hierarchicalFacets.reduce(function(t,n){var i=e.getHierarchicalRefinement(n.name)[0];if(!i)return t.push(n.attributes[0]),t;var a=e._getHierarchicalFacetSeparator(n),o=i.split(a).length,s=n.attributes.slice(0,o+1);return t.concat(s)},[])},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,n){var i=e._getHierarchicalFacetSeparator(t);if(!0===n){var a=e._getHierarchicalRootPath(t),o=0;return a&&(o=a.split(i).length),[t.attributes[o]]}var s=(e.getHierarchicalRefinement(t.name)[0]||"").split(i).length-1;return t.attributes.slice(0,s+1)},getSearchForFacetQuery:function(e,t,n,o){var s=o.isDisjunctiveFacet(e)?o.clearRefinements(e):o,c={facetQuery:t,facetName:e};return"number"==typeof n&&(c.maxFacetHits=n),sortObject(i({},a._getHitsSearchParams(s),c))}};e.exports=a},46801:function(e){"use strict";e.exports=function(e){return null!==e&&/^[a-zA-Z0-9_-]{1,64}$/.test(e)}},24336:function(e){"use strict";e.exports="3.11.3"},42255:function(e){"use strict";var t=String.prototype.replace,n=/%20/g,i={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:i.RFC3986,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}},92470:function(e,t,n){"use strict";var i=n(98174),a=n(37444),o=n(42255);e.exports={formats:o,parse:a,stringify:i}},37444:function(e,t,n){"use strict";var i=n(7684),a=Object.prototype.hasOwnProperty,o=Array.isArray,s={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:i.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},parseArrayValue=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},parseValues=function(e,t){var n={},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,u=t.parameterLimit===1/0?void 0:t.parameterLimit,l=c.split(t.delimiter,u),f=-1,h=t.charset;if(t.charsetSentinel)for(d=0;d<l.length;++d)0===l[d].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[d]?h="utf-8":"utf8=%26%2310003%3B"===l[d]&&(h="iso-8859-1"),f=d,d=l.length);for(d=0;d<l.length;++d)if(d!==f){var d,p,y,m=l[d],v=m.indexOf("]="),b=-1===v?m.indexOf("="):v+1;-1===b?(p=t.decoder(m,s.decoder,h,"key"),y=t.strictNullHandling?null:""):(p=t.decoder(m.slice(0,b),s.decoder,h,"key"),y=i.maybeMap(parseArrayValue(m.slice(b+1),t),function(e){return t.decoder(e,s.decoder,h,"value")})),y&&t.interpretNumericEntities&&"iso-8859-1"===h&&(y=y.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),m.indexOf("[]=")>-1&&(y=o(y)?[y]:y),a.call(n,p)?n[p]=i.combine(n[p],y):n[p]=y}return n},parseObject=function(e,t,n,i){for(var a=i?t:parseArrayValue(t,n),o=e.length-1;o>=0;--o){var s,c=e[o];if("[]"===c&&n.parseArrays)s=[].concat(a);else{s=n.plainObjects?Object.create(null):{};var u="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,l=parseInt(u,10);n.parseArrays||""!==u?!isNaN(l)&&c!==u&&String(l)===u&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(s=[])[l]=a:"__proto__"!==u&&(s[u]=a):s={0:a}}a=s}return a},parseKeys=function(e,t,n,i){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,c=n.depth>0&&/(\[[^[\]]*])/.exec(o),u=c?o.slice(0,c.index):o,l=[];
1if(u){if(!n.plainObjects&&a.call(Object.prototype,u)&&!n.allowPrototypes)return;l.push(u)}for(var f=0;n.depth>0&&null!==(c=s.exec(o))&&f<n.depth;){if(f+=1,!n.plainObjects&&a.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(c[1])}return c&&l.push("["+o.slice(c.index)+"]"),parseObject(l,t,n,i)}},normalizeParseOptions=function(e){if(!e)return s;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?s.charset:e.charset;return{allowDots:void 0===e.allowDots?s.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:s.comma,decoder:"function"==typeof e.decoder?e.decoder:s.decoder,delimiter:"string"==typeof e.delimiter||i.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:s.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:s.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling}};e.exports=function(e,t){var n=normalizeParseOptions(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var a="string"==typeof e?parseValues(e,n):e,o=n.plainObjects?Object.create(null):{},s=Object.keys(a),c=0;c<s.length;++c){var u=s[c],l=parseKeys(u,a[u],n,"string"==typeof e);
1o=i.merge(o,l,n)}return i.compact(o)}},98174:function(e,t,n){"use strict";var i=n(7684),a=n(42255),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,u=String.prototype.split,l=Array.prototype.push,pushToArray=function(e,t){l.apply(e,c(t)?t:[t])},f=Date.prototype.toISOString,h=a.default,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:h,formatter:a.formatters[h],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},stringify=function stringify(e,t,n,a,o,s,l,f,h,p,y,m,v,b){var S,j,_=e;if("function"==typeof l?_=l(t,_):_ instanceof Date?_=p(_):"comma"===n&&c(_)&&(_=i.maybeMap(_,function(e){return e instanceof Date?p(e):e})),null===_){if(a)return s&&!v?s(t,d.encoder,b,"key",y):t;_=""}if("string"==typeof(S=_)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||i.isBuffer(_)){if(s){var P=v?t:s(t,d.encoder,b,"key",y);if("comma"===n&&v){for(var O=u.call(String(_),","),R="",w=0;w<O.length;++w)R+=(0===w?"":",")+m(s(O[w],d.encoder,b,"value",y));return[m(P)+"="+R]}return[m(P)+"="+m(s(_,d.encoder,b,"value",y))]}return[m(t)+"="+m(String(_))]}var F=[];if(void 0===_)return F;if("comma"===n&&c(_))j=[{value:_.length>0?_.join(",")||null:void 0}];else if(c(l))j=l;else{var x=Object.keys(_);j=f?x.sort(f):x}for(var E=0;E<j.length;++E){var H=j[E],A="object"==typeof H&&void 0!==H.value?H.value:_[H];o&&null===A||pushToArray(F,stringify(A,c(_)?"function"==typeof n?n(t,H):t:t+(h?"."+H:"["+H+"]"),n,a,o,s,l,f,h,p,y,m,v,b))}return F},normalizeStringifyOptions=function(e){if(!e)return d;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=a.default;if(void 0!==e.format){if(!o.call(a.formatters,e.format))throw TypeError("Unknown format option provided.");n=e.format}var i=a.formatters[n],s=d.filter;return("function"==typeof e.filter||c(e.filter))&&(s=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:void 0===e.allowDots?d.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,delimiter:void 0===e.delimiter?d.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:d.encode,encoder:"function"==typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:s,format:n,formatter:i,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}};e.exports=function(e,t){var n,i,a=e,o=normalizeStringifyOptions(t);"function"==typeof o.filter?a=(0,o.filter)("",a):c(o.filter)&&(n=o.filter);var u=[];if("object"!=typeof a||null===a)return"";i=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var l=s[i];n||(n=Object.keys(a)),o.sort&&n.sort(o.sort);for(var f=0;f<n.length;++f){var h=n[f];o.skipNulls&&null===a[h]||pushToArray(u,stringify(a[h],h,l,o.strictNullHandling,o.skipNulls,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset))}var d=u.join(o.delimiter),p=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?p+="utf8=%26%2310003%3B&":p+="utf8=%E2%9C%93&"),d.length>0?p+d:""}},7684:function(e,t,n){"use strict";var i=n(42255),a=Object.prototype.hasOwnProperty,o=Array.isArray,s=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),compactQueue=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var i=[],a=0;a<n.length;++a)void 0!==n[a]&&i.push(n[a]);t.obj[t.prop]=i}}},arrayToObject=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},i=0;i<e.length;++i)void 0!==e[i]&&(n[i]=e[i]);return n};e.exports={arrayToObject:arrayToObject,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],i=0;i<t.length;++i)for(var a=t[i],o=a.obj[a.prop],s=Object.keys(o),c=0;c<s.length;++c){var u=s[c],l=o[u];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(t.push({obj:o,prop:u}),n.push(l))}return compactQueue(t),e},decode:function(e,t,n){var i=e.replace(/\+/g," ");
1if("iso-8859-1"===n)return i.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(i)}catch(e){return i}},encode:function(e,t,n,a,o){if(0===e.length)return e;var c=e;if("symbol"==typeof e?c=Symbol.prototype.toString.call(e):"string"!=typeof e&&(c=String(e)),"iso-8859-1"===n)return escape(c).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var u="",l=0;l<c.length;++l){var f=c.charCodeAt(l);if(45===f||46===f||95===f||126===f||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||o===i.RFC1738&&(40===f||41===f)){u+=c.charAt(l);continue}if(f<128){u+=s[f];continue}if(f<2048){u+=s[192|f>>6]+s[128|63&f];continue}if(f<55296||f>=57344){u+=s[224|f>>12]+s[128|f>>6&63]+s[128|63&f];continue}l+=1,u+=s[240|(f=65536+((1023&f)<<10|1023&c.charCodeAt(l)))>>18]+s[128|f>>12&63]+s[128|f>>6&63]+s[128|63&f]}return u},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(o(e)){for(var n=[],i=0;i<e.length;i+=1)n.push(t(e[i]));return n}return t(e)},merge:function merge(e,t,n){if(!t)return e;if("object"!=typeof t){if(o(e))e.push(t);else{if(!e||"object"!=typeof e)return[e,t];(n&&(n.plainObjects||n.allowPrototypes)||!a.call(Object.prototype,t))&&(e[t]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(t);var i=e;return(o(e)&&!o(t)&&(i=arrayToObject(e,n)),o(e)&&o(t))?(t.forEach(function(t,i){if(a.call(e,i)){var o=e[i];o&&"object"==typeof o&&t&&"object"==typeof t?e[i]=merge(o,t,n):e.push(t)}else e[i]=t}),e):Object.keys(t).reduce(function(e,i){var o=t[i];return a.call(e,i)?e[i]=merge(e[i],o,n):e[i]=o,e},i)}}},11042:function(e,t,n){"use strict";var i=n(67294),a=n(76362).jU?i.useLayoutEffect:i.useEffect;t.Z=a},31998:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,a,o,supportsCookies=function(){try{return!!navigator.cookieEnabled}catch(e){return!1}},supportsSendBeacon=function(){try{return!!navigator.sendBeacon}catch(e){return!1}},supportsXMLHttpRequest=function(){try{return!!XMLHttpRequest}catch(e){return!1}},isUndefined=function(e){return void 0===e},isString=function(e){return"string"==typeof e},isFunction=function(e){return"function"==typeof e},s="2.3.0",c=["insights-js ("+s+")","insights-js-browser-cjs ("+s+")"];function addAlgoliaAgent(e){-1===this._ua.indexOf(e)&&this._ua.push(e)}var u=["de","us"];function init(e){var t;if(!e)throw Error("Init function should be called with an object argument containing your apiKey and appId");if(isUndefined(e.apiKey)||!isString(e.apiKey))throw Error("apiKey is missing, please provide it so we can authenticate the application");if(isUndefined(e.appId)||!isString(e.appId))throw Error("appId is missing, please provide it, so we can properly attribute data to your application");if(!isUndefined(e.region)&&-1===u.indexOf(e.region))throw Error("optional region is incorrect, please provide either one of: "+u.join(", ")+".");if(!(isUndefined(e.cookieDuration)||"number"==typeof e.cookieDuration&&isFinite(e.cookieDuration)&&Math.floor(e.cookieDuration)===e.cookieDuration))throw Error("optional cookieDuration is incorrect, expected an integer.");this._apiKey=e.apiKey,this._appId=e.appId,this._userHasOptedOut=!!e.userHasOptedOut,this._region=e.region,this._endpointOrigin=e.region?"https://insights."+e.region+".algolia.io":"https://insights.algolia.io",this._useCookie=null!==(t=e.useCookie)&&void 0!==t&&t,this._cookieDuration=e.cookieDuration?e.cookieDuration:15552e6,this._hasCredentials=!0,this._ua=[].concat(c),e.userToken?this.setUserToken(e.userToken):this._userToken||this._userHasOptedOut||!this._useCookie||this.setAnonymousUserToken()}function getVersion(e){isFunction(e)&&e(this.version)}function addEventType(e,t){return t.map(function(t){return Object.assign({eventType:e},t)})}function clickedObjectIDsAfterSearch(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return this.sendEvents(addEventType("click",e))}function clickedObjectIDs(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return this.sendEvents(addEventType("click",e))}function clickedFilters(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return this.sendEvents(addEventType("click",e))}function convertedObjectIDsAfterSearch(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return this.sendEvents(addEventType("conversion",e))}function convertedObjectIDs(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return this.sendEvents(addEventType("conversion",e))}function convertedFilters(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return this.sendEvents(addEventType("conversion",e))}function viewedObjectIDs(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return this.sendEvents(addEventType("view",e))}function viewedFilters(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return this.sendEvents(addEventType("view",e))}var createUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},l="_ALGOLIA",setCookie=function(e,t,n){var i=new Date;i.setTime(i.getTime()+n);var a="expires="+i.toUTCString();document.cookie=e+"="+t+";"+a+";path=/"},getCookie=function(e){for(var t=e+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){for(var a=n[i];" "===a.charAt(0);)a=a.substring(1);if(0===a.indexOf(t))return a.substring(t.length,a.length)}return""};function setAnonymousUserToken(){if(supportsCookies()){var e=getCookie(l);e&&""!==e&&0===e.indexOf("anonymous-")?this.setUserToken(e):(this.setUserToken("anonymous-"+createUUID()),setCookie(l,this._userToken,this._cookieDuration))}}function setUserToken(e){this._userToken=e,isFunction(this._onUserTokenChangeCallback)&&this._onUserTokenChangeCallback(this._userToken)}function getUserToken(e,t){return isFunction(t)&&t(null,this._userToken),this._userToken}function onUserTokenChange(e,t){this._onUserTokenChangeCallback=e,t&&t.immediate&&isFunction(this._onUserTokenChangeCallback)&&this._onUserTokenChangeCallback(this._userToken)}Object.keys||(Object.keys=(n=Object.prototype.hasOwnProperty,i=!({toString:null}).propertyIsEnumerable("toString"),o=(a=["toString","toLocaleStr
1ing","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(e){if("function"!=typeof e&&("object"!=typeof e||null===e))throw TypeError("Object.keys called on non-object");var t,s,c=[];for(t in e)n.call(e,t)&&c.push(t);if(i)for(s=0;s<o;s++)n.call(e,a[s])&&c.push(a[s]);return c})),"function"!=typeof Object.assign&&(Object.assign=function(e,t){var n=arguments;if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var i=Object(e),a=1;a<arguments.length;a++){var o=n[a];if(null!=o)for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(i[s]=o[s])}return i});var AlgoliaAnalytics=function(e){var t=e.requestFn;this._ua=[],this.version=s,this._hasCredentials=!1,this.sendEvents=(function(e){var n=this;if(!this._userHasOptedOut){if(!this._hasCredentials)throw Error("Before calling any methods on the analytics, you first need to call the 'init' function with appId and apiKey parameters");var i,a,o,s=e.map(function(e){var t,i=e.filters,a=Object.assign(Object.assign({},function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)0>t.indexOf(i[a])&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(n[i[a]]=e[i[a]])}return n}(e,["filters"])),{userToken:null!=(t=null==e?void 0:e.userToken)?t:n._userToken});return isUndefined(i)||(a.filters=i.map(encodeURIComponent)),a});return i=this._appId,a=this._apiKey,o=this._ua,t(this._endpointOrigin+"/1/events?X-Algolia-Application-Id="+i+"&X-Algolia-API-Key="+a+"&X-Algolia-Agent="+encodeURIComponent(o.join("; ")),{events:s})}}).bind(this),this.init=init.bind(this),this.addAlgoliaAgent=addAlgoliaAgent.bind(this),this.setUserToken=setUserToken.bind(this),this.setAnonymousUserToken=setAnonymousUserToken.bind(this),this.getUserToken=getUserToken.bind(this),this.onUserTokenChange=onUserTokenChange.bind(this),this.clickedObjectIDsAfterSearch=clickedObjectIDsAfterSearch.bind(this),this.clickedObjectIDs=clickedObjectIDs.bind(this),this.clickedFilters=clickedFilters.bind(this),this.convertedObjectIDsAfterSearch=convertedObjectIDsAfterSearch.bind(this),this.convertedObjectIDs=convertedObjectIDs.bind(this),this.convertedFilters=convertedFilters.bind(this),this.viewedObjectIDs=viewedObjectIDs.bind(this),this.viewedFilters=viewedFilters.bind(this),this.getVersion=getVersion.bind(this)};function getFunctionalInterface(e){return function(t){for(var n=[],i=arguments.length-1;i-- >0;)n[i]=arguments[i+1];t&&isFunction(e[t])?e[t].apply(e,n):console.warn("The method `"+t+"` doesn't exist.")}}var requestWithSendBeacon=function(e,t){var n=JSON.stringify(t);if(!navigator.sendBeacon(e,n))return requestWithXMLHttpRequest(e,t)},requestWithXMLHttpRequest=function(e,t){var n=JSON.stringify(t),i=new XMLHttpRequest;i.open("POST",e),i.setRequestHeader("Content-Type","application/json"),i.setRequestHeader("Content-Length",""+n.length),i.send(n)};function getRequesterForBrowser(){if(supportsSendBeacon())return requestWithSendBeacon;if(supportsXMLHttpRequest())return requestWithXMLHttpRequest;throw Error("Could not find a supported HTTP request client in this environment.")}var f=function(e){var t,n=getFunctionalInterface(new AlgoliaAnalytics({requestFn:e}));if("object"==typeof window&&!window.AlgoliaAnalyticsObject){do t=createUUID();while(void 0!==window[t]);window.AlgoliaAnalyticsObject=t,window[window.AlgoliaAnalyticsObject]=n}return n}(getRequesterForBrowser());t.AlgoliaAnalytics=AlgoliaAnalytics,t.default=f,t.getFunctionalInterface=getFunctionalInterface,t.getRequesterForBrowser=getRequesterForBrowser,t.processQueue=function(e){var t=e.AlgoliaAnalyticsObject;if(t){var n=getFunctionalInterface(this),i=e[t];i.queue=i.queue||[];var a=i.queue;a.forEach(function(e){var t=[].slice.call(e),i=t[0],a=t.slice(1);n.apply(void 0,[i].concat(a))}),a.push=function(e){var t=[].slice.call(e),i=t[0],a=t.slice(1);n.apply(void 0,[i].concat(a))}}}},41137:function(e,t,n){let i=n(31998);
1e.exports=i.default,Object.keys(i).forEach(t=>{"default"!==t&&(e.exports[t]=i[t])})},53250:function(e,t,n){"use strict";/** 2 * @license React 3 * use-sync-external-store-shim.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var i=n(67294),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=i.useState,s=i.useEffect,c=i.useLayoutEffect,u=i.useDebugValue;function r(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!a(e,n)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),i=o({inst:{value:n,getSnapshot:t}}),a=i[0].inst,l=i[1];return c(function(){a.value=n,a.getSnapshot=t,r(a)&&l({inst:a})},[e,n,t]),s(function(){return r(a)&&l({inst:a}),e(function(){r(a)&&l({inst:a})})},[e]),u(n),n};t.useSyncExternalStore=void 0!==i.useSyncExternalStore?i.useSyncExternalStore:l},89120:function(e,t,n){"use strict";e.exports=n(53250)},8945:function(e,t,n){"use strict";n.d(t,{T:function(){return Configure}});var i=n(8131),a=n(97507),o=n(45257),s=n(89143),c=n(59692);function _typeof(e){return(_typeof="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 ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach(function(t){_defineProperty(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _defineProperty(e,t,n){var i;return(i=function(e,t){if("object"!==_typeof(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==_typeof(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"===_typeof(i)?i:String(i))in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=(0,a.K)({name:"configure",connector:!0});function getInitialSearchParameters(e,t){return e.setQueryParameters(Object.keys(t.searchParameters).reduce(function(e,t){return _objectSpread(_objectSpread({},e),{},_defineProperty({},t,void 0))},{}))}var configure_connectConfigure=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.Z,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.Z;return function(n){if(!n||!(0,s.P)(n.searchParameters))throw Error(u("The `searchParameters` option expects an object."));var a={};return{$$type:"ais.configure",init:function(t){var n=t.instantSearchInstance;e(_objectSpread(_objectSpread({},this.getWidgetRenderState(t)),{},{instantSearchInstance:n}),!0)},render:function(t){var n=t.instantSearchInstance;e(_objectSpread(_objectSpread({},this.getWidgetRenderState(t)),{},{instantSearchInstance:n}),!1)},dispose:function(e){var i=e.state;return t(),getInitialSearchParameters(i,n)},getRenderState:function(e,t){var n,a=this.getWidgetRenderState(t);return _objectSpread(_objectSpread({},e),{},{configure:_objectSpread(_objectSpread({},a),{},{widgetParams:_objectSpread(_objectSpread({},a.widgetParams),{},{searchParameters:(0,c.Z)(new i.SearchParameters(null===(n=e.configure)||void 0===n?void 0:n.widgetParams.searchParameters),new i.SearchParameters(a.widgetParams.searchParameters)).getQueryParams()})})})},getWidgetRenderState:function(e){var t=e.helper;return a.refine||(a.refine=function(e){var a=getInitialSearchParameters(t.state,n),o=(0,c.Z)(a,new i.SearchParameters(e));n.searchParameters=e,t.setState(o).search()}),{refine:a.refine,widgetParams:n}},getWidgetSearchParameters:function(e,t){var a=t.uiState;return(0,c.Z)(e,new i.SearchParameters(_objectSpread(_objectSpread({},a.configure),n.searchParameters)))},getWidgetUiState:function(e){return _objectSpread(_objectSpread({},e),{},{configure:_objectSpread(_objectSpread({},e.configure),n.searchParameters)})}}}},l=n(90104);function Configure(e){return(0,l.B)(configure_connectConfigure,{searchParameters:e},{$$widgetType:"ais.configure"}),null}},67256:function(e,t,n){"use strict";n.d(t,{p:function(){return InstantSearch_InstantSearch}});var i=n(67294),a=n(27993),o=n(30089),s=n(8131),c=n(17331),u=n(97507);function isIndexWidget(e){return"ais.index"===e.$$type}function createInitArgs(e,t,n){var i=t.getHelper();return{uiState:n,helper:i,parent:t,instantSearchInstance:e,state:i.state,render
9State:e.renderState,templatesConfig:e.templatesConfig,createURL:t.createURL,scopedResults:[],searchMetadata:{isSearchStalled:"stalled"===e.status},status:e.status,error:e.error}}function createRenderArgs(e,t){var n=t.getResults();return{helper:t.getHelper(),parent:t,instantSearchInstance:e,results:n,scopedResults:t.getScopedResults(),state:n._state,renderState:e.renderState,templatesConfig:e.templatesConfig,createURL:t.createURL,searchMetadata:{isSearchStalled:"stalled"===e.status},status:e.status,error:e.error}}var l=n(59692);function _typeof(e){return(_typeof="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)}var f=["initialSearchParameters"];function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach(function(t){_defineProperty(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _defineProperty(e,t,n){var i;return(i=function(e,t){if("object"!==_typeof(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==_typeof(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"===_typeof(i)?i:String(i))in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toConsumableArray(e){return function(e){if(Array.isArray(e))return _arrayLikeToArray(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(e,t)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var h=(0,u.K)({name:"index-widget"});function privateHelperSetState(e,t){var n=t.state,i=t.isPageReset,a=t._uiState;n!==e.state&&(e.state=n,e.emit("change",{state:e.state,results:e.lastResults,isPageReset:i,_uiState:a}))}function getLocalWidgetsUiState(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.reduce(function(e,n){return!isIndexWidget(n)&&(n.getWidgetUiState||n.getWidgetState)?n.getWidgetUiState?n.getWidgetUiState(e,t):n.getWidgetState(e,t):e},n)}function getLocalWidgetsSearchParameters(e,t){var n=t.initialSearchParameters,i=function(e,t){if(null==e)return{};var n,i,a=function(e,t){if(null==e)return{};var n,i,a={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,f);return e.filter(function(e){return!isIndexWidget(e)}).reduce(function(e,t){return t.getWidgetSearchParameters?t.getWidgetSearchParameters(e,i):e},n)}var widgets_index=function(e){if(void 0===e||void 0===e.indexName)throw Error(h("The `indexName` option is required."));var t=e.indexName,n=e.indexId,i=void 0===n?t:n,a=[],o={},c=null,u=null,f=null,d=null,p=null;return{$$type:"ais.index",$$widgetType:"ais.index",getIndexName:function(){return t},getIndexId:function(){return i},getHelper:function(){return f},getResults:function(){var e;return null!==(e=d)&&void 0!==e&&e.lastResults?(d.lastResults._state=f.state,d.lastResults):null},getPreviousState:function(){return p},getScopedResults:function(){var e=this.getParent();return function resolveScopedResultsFromWidgets(e){return e.filter(isIndexWidget).reduce(function(e,t){return e.concat.apply(e,[{indexId:t.getIndexId(),results:t.getResults(),helper:t.getHelper()}].concat(_toConsumableArray(resolveScopedResultsFromWidgets(t.getWidgets()))))},[])}(e?e.getWidgets():[this])},getParent:function(){return u},createURL:function(e){return c._createURL(_defineProperty({},i,getLocalWidgetsUiState(a,{searchParameters:e,helper:f})))},getWidgets:function(){return a},addWidgets:function(e){var t=this;if(!Array.isArray(e))throw Error(h("The `addWidgets` method expects an array of widgets."));if(e.some(function(e){return"function"!=typeof e.init&&"function"!=typeof e.render}))throw Error(h("The widget definition expects a `render` and/or an `init` method."));return a=a.concat(e),c&&e.length&&(privateHelperSetState(f,{state:getLocalWidgetsSearchParameters(a,{uiState:o,initialSearchParameters:f.state}),_uiState:o}),e.forEach(function(e){e.getRenderState&&storeRenderState({render
9State:e.getRenderState(c.renderState[t.getIndexId()]||{},createInitArgs(c,t,c._initialUiState)),instantSearchInstance:c,parent:t})}),e.forEach(function(e){e.init&&e.init(createInitArgs(c,t,c._initialUiState))}),c.scheduleSearch()),this},removeWidgets:function(e){var t=this;if(!Array.isArray(e))throw Error(h("The `removeWidgets` method expects an array of widgets."));if(e.some(function(e){return"function"!=typeof e.dispose}))throw Error(h("The widget definition expects a `dispose` method."));if(a=a.filter(function(t){return -1===e.indexOf(t)}),c&&e.length){var n=e.reduce(function(e,n){return n.dispose({helper:f,state:e,parent:t})||e},f.state);o=getLocalWidgetsUiState(a,{searchParameters:n,helper:f}),f.setState(getLocalWidgetsSearchParameters(a,{uiState:o,initialSearchParameters:n})),a.length&&c.scheduleSearch()}return this},init:function(e){var n,h=this,y=e.instantSearchInstance,m=e.parent,v=e.uiState;if(null===f){c=y,u=m,o=v[i]||{};var b=y.mainHelper,S=getLocalWidgetsSearchParameters(a,{uiState:o,initialSearchParameters:new s.SearchParameters({index:t})});(f=s({},S.index,S)).search=function(){return y.onStateChange?(y.onStateChange({uiState:y.mainIndex.getWidgetUiState({}),setUiState:function(e){return y.setUiState(e,!1)}}),b):b.search()},f.searchWithoutTriggeringOnStateChange=function(){return b.search()},f.searchForFacetValues=function(e,t,n,i){var a=f.state.setQueryParameters(i);return b.searchForFacetValues(e,t,n,a)},d=b.derive(function(){return l.Z.apply(void 0,_toConsumableArray(function(e){for(var t=e.getParent(),n=[e.getHelper().state];null!==t;)n=[t.getHelper().state].concat(n),t=t.getParent();return n}(h)))});var j=null===(n=y._initialResults)||void 0===n?void 0:n[this.getIndexId()];if(j){var _=new s.SearchResults(new s.SearchParameters(j.state),j.results);d.lastResults=_,f.lastResults=_}f.on("change",function(e){e.isPageReset&&function resetPageFromWidgets(e){var t=e.filter(isIndexWidget);0!==t.length&&t.forEach(function(e){var t=e.getHelper();privateHelperSetState(t,{state:t.state.resetPage(),isPageReset:!0}),resetPageFromWidgets(e.getWidgets())})}(a)}),d.on("search",function(){y.scheduleStalledRender()}),d.on("result",function(e){var t=e.results;y.scheduleRender(),f.lastResults=t,p=t._state}),a.forEach(function(e){e.getRenderState&&storeRenderState({renderState:e.getRenderState(y.renderState[h.getIndexId()]||{},createInitArgs(y,h,v)),instantSearchInstance:y,parent:h})}),a.forEach(function(e){e.init&&e.init(createInitArgs(y,h,v))}),f.on("change",function(e){var t=e.state,n=e._uiState;o=getLocalWidgetsUiState(a,{searchParameters:t,helper:f},n||{}),y.onStateChange||y.onInternalStateChange()}),j&&y.scheduleRender()}},render:function(e){var t=this,n=e.instantSearchInstance;this.getResults()&&("error"!==n.status||n.mainHelper.hasPendingRequests()||f.setState(p),a.forEach(function(e){e.getRenderState&&storeRenderState({renderState:e.getRenderState(n.renderState[t.getIndexId()]||{},createRenderArgs(n,t)),instantSearchInstance:n,parent:t})}),a.forEach(function(e){e.render&&e.render(createRenderArgs(n,t))}))},dispose:function(){var e=this;a.forEach(function(t){t.dispose&&t.dispose({helper:f,state:f.state,parent:e})}),c=null,u=null,f.removeAllListeners(),f=null,d.detach(),d=null},getWidgetUiState:function(e){return a.filter(isIndexWidget).reduce(function(e,t){return t.getWidgetUiState(e)},_objectSpread(_objectSpread({},e),{},_defineProperty({},i,_objectSpread(_objectSpread({},e[i]),o))))},getWidgetState:function(e){return this.getWidgetUiState(e)},getWidgetSearchParameters:function(e,t){var n=t.uiState;return getLocalWidgetsSearchParameters(a,{uiState:n,initialSearchParameters:e})},refreshUiState:function(){o=getLocalWidgetsUiState(a,{searchParameters:this.getHelper().state,helper:this.getHelper()},o)}}};function storeRenderState(e){var t=e.renderState,n=e.instantSearchInstance,i=e.parent,a=i?i.getIndexId():n.mainIndex.getIndexId();n.renderState=_objectSpread(_objectSpread({},n.renderState),{},_defineProperty({},a,_objectSpread(_objectSpread({},n.renderState[a]),t)))}var component=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.descendantName,i=t.modifierName,a=n?"-".concat(n):"",o=i?"--".concat(i):"";return"".concat("ais","-").concat(e).concat(a).concat(o)}};function getPropertyByPath(e,t){return(Array.isArray(t)?t:t.split(".")).reduce(function(e,t){return e&&e[t]},e)}var d=n(44014),p=component("Highlight");function concatHighlightedParts(e){var t=d.Rn.highlightPreTag,n=d.Rn.highlightPostTag;return e.map(function(e){return e.isHighlighted?t+e.value+n:e.value}).join("")}var y=n(28546),m=new RegExp(/\w/i);function reverseHighlightedParts_typeof(e){return(reverseHighlightedParts_typeof="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 reverseHighlightedParts_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function reverseHighlightedParts_objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
9t%2?reverseHighlightedParts_ownKeys(Object(n),!0).forEach(function(t){var i,a;i=t,a=n[t],(i=function(e){var t=function(e,t){if("object"!==reverseHighlightedParts_typeof(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==reverseHighlightedParts_typeof(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===reverseHighlightedParts_typeof(t)?t:String(t)}(i))in e?Object.defineProperty(e,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):reverseHighlightedParts_ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function reverseHighlightedParts(e){return e.some(function(e){return e.isHighlighted})?e.map(function(t,n){var i,a,o,s,c;return reverseHighlightedParts_objectSpread(reverseHighlightedParts_objectSpread({},t),{},{isHighlighted:(o=e[n],s=(null===(i=e[n+1])||void 0===i?void 0:i.isHighlighted)||!0,c=(null===(a=e[n-1])||void 0===a?void 0:a.isHighlighted)||!0,m.test((0,y.A)(o.value))||c!==s?!o.isHighlighted:!c)})}):e.map(function(e){return reverseHighlightedParts_objectSpread(reverseHighlightedParts_objectSpread({},e),{},{isHighlighted:!1})})}function getHighlightedParts(e){var t=d.Rn.highlightPostTag,n=d.Rn.highlightPreTag,i=e.split(n),a=i.shift(),o=a?[{value:a,isHighlighted:!1}]:[];return i.forEach(function(e){var n=e.split(t);o.push({value:n[0],isHighlighted:!0}),""!==n[1]&&o.push({value:n[1],isHighlighted:!1})}),o}var v=component("ReverseHighlight"),b=component("Snippet"),S=component("ReverseSnippet"),j=n(33303);function insights_typeof(e){return(insights_typeof="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 createHelpers_typeof(e){return(createHelpers_typeof="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 createHelpers_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function createHelpers_objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?createHelpers_ownKeys(Object(n),!0).forEach(function(t){var i,a;i=t,a=n[t],(i=function(e){var t=function(e,t){if("object"!==createHelpers_typeof(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==createHelpers_typeof(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===createHelpers_typeof(t)?t:String(t)}(i))in e?Object.defineProperty(e,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):createHelpers_ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var _=Promise.resolve();function defer(e){var t=null,n=!1,fn=function(){for(var i=arguments.length,a=Array(i),o=0;o<i;o++)a[o]=arguments[o];null===t&&(t=_.then(function(){if(t=null,n){n=!1;return}e.apply(void 0,a)}))};return fn.wait=function(){if(null===t)throw Error("The deferred function should be called before calling `wait()`");return t},fn.cancel=function(){null!==t&&(n=!0)},fn}var P=n(45257);function setIndexHelperState(e,t){var n=e[t.getIndexId()]||{};t.getHelper().setState(t.getWidgetSearchParameters(t.getHelper().state,{uiState:n})),t.getWidgets().filter(isIndexWidget).forEach(function(t){return setIndexHelperState(e,t)})}function simple_typeof(e){return(simple_typeof="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)}var O=["configure"];function simple_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function simple_objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
9t%2?simple_ownKeys(Object(n),!0).forEach(function(t){simple_defineProperty(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):simple_ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function simple_defineProperty(e,t,n){var i;return(i=function(e,t){if("object"!==simple_typeof(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==simple_typeof(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"===simple_typeof(i)?i:String(i))in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function getIndexStateWithoutConfigure(e){return e.configure,function(e,t){if(null==e)return{};var n,i,a=function(e,t){if(null==e)return{};var n,i,a={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,O)}var R=n(92470);function safelyRunOnBrowser(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{fallback:function(){}},n=t.fallback;return"undefined"==typeof window?n():e({window:window})}function history_typeof(e){return(history_typeof="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 _defineProperties(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,history_toPropertyKey(i.key),i)}}function history_defineProperty(e,t,n){return(t=history_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function history_toPropertyKey(e){var t=function(e,t){if("object"!==history_typeof(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==history_typeof(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===history_typeof(t)?t:String(t)}var setWindowTitle=function(e){e&&(window.document.title=e)},w=function(){var e,t;function BrowserHistory(e){var t=this,n=e.windowTitle,i=e.writeDelay,a=e.createURL,o=e.parseURL,s=e.getLocation;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,BrowserHistory),history_defineProperty(this,"windowTitle",void 0),history_defineProperty(this,"writeDelay",void 0),history_defineProperty(this,"_createURL",void 0),history_defineProperty(this,"parseURL",void 0),history_defineProperty(this,"getLocation",void 0),history_defineProperty(this,"writeTimer",void 0),history_defineProperty(this,"inPopState",!1),history_defineProperty(this,"isDisposed",!1),history_defineProperty(this,"latestAcknowledgedHistory",0),this.windowTitle=n,this.writeTimer=void 0,this.writeDelay=void 0===i?400:i,this._createURL=a,this.parseURL=o,this.getLocation=s,safelyRunOnBrowser(function(e){var n=e.window;setWindowTitle(t.windowTitle&&t.windowTitle(t.read())),t.latestAcknowledgedHistory=n.history.length})}return e=[{key:"read",value:function(){return this.parseURL({qsModule:R,location:this.getLocation()})}},{key:"write",value:function(e){var t=this;safelyRunOnBrowser(function(n){var i=n.window,a=t.createURL(e),o=t.windowTitle&&t.windowTitle(e);t.writeTimer&&clearTimeout(t.writeTimer),t.writeTimer=setTimeout(function(){setWindowTitle(o),t.shouldWrite(a)&&(i.history.pushState(e,o||"",a),t.latestAcknowledgedHistory=i.history.length),t.inPopState=!1,t.writeTimer=void 0},t.writeDelay)})}},{key:"onUpdate",value:function(e){var t=this;this._onPopState=function(){t.writeTimer&&(clearTimeout(t.writeTimer),t.writeTimer=void 0),t.inPopState=!0,e(t.read())},safelyRunOnBrowser(function(e){e.window.addEventListener("popstate",t._onPopState)})}},{key:"createURL",value:function(e){return this._createURL({qsModule:R,routeState:e,location:this.getLocation()})}},{key:"dispose",value:function(){var e=this;
9this.isDisposed=!0,safelyRunOnBrowser(function(t){var n=t.window;e._onPopState&&n.removeEventListener("popstate",e._onPopState)}),this.writeTimer&&clearTimeout(this.writeTimer),this.write({})}},{key:"shouldWrite",value:function(e){var t=this;return safelyRunOnBrowser(function(n){var i=n.window,a=!(t.isDisposed&&t.latestAcknowledgedHistory!==i.history.length);return!t.inPopState&&a&&e!==i.location.href})}}],_defineProperties(BrowserHistory.prototype,e),t&&_defineProperties(BrowserHistory,t),Object.defineProperty(BrowserHistory,"prototype",{writable:!1}),BrowserHistory}();function isPrimitive(e){return e!==Object(e)}function createRouterMiddleware_typeof(e){return(createRouterMiddleware_typeof="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 createRouterMiddleware_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function createRouterMiddleware_objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?createRouterMiddleware_ownKeys(Object(n),!0).forEach(function(t){createRouterMiddleware_defineProperty(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):createRouterMiddleware_ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function createRouterMiddleware_defineProperty(e,t,n){var i;return(i=function(e,t){if("object"!==createRouterMiddleware_typeof(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==createRouterMiddleware_typeof(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"===createRouterMiddleware_typeof(i)?i:String(i))in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var createRouterMiddleware=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.router,n=void 0===t?function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.createURL,n=void 0===t?function(e){var t=e.qsModule,n=e.routeState,i=e.location,a=i.protocol,o=i.hostname,s=i.port,c=void 0===s?"":s,u=i.pathname,l=i.hash,f=t.stringify(n),h=""===c?"":":".concat(c);return f?"".concat(a,"//").concat(o).concat(h).concat(u,"?").concat(f).concat(l):"".concat(a,"//").concat(o).concat(h).concat(u).concat(l)}:t,i=e.parseURL,a=e.writeDelay,o=e.windowTitle,s=e.getLocation,c=void 0===s?function(){return safelyRunOnBrowser(function(e){return e.window.location},{fallback:function(){throw Error("You need to provide `getLocation` to the `history` router in environments where `window` does not exist.")}})}:s;return new w({createURL:n,parseURL:void 0===i?function(e){var t=e.qsModule,n=e.location;return t.parse(n.search.slice(1),{arrayLimit:99})}:i,writeDelay:void 0===a?400:a,windowTitle:o,getLocation:c})}():t,i=e.stateMapping,a=void 0===i?{stateToRoute:function(e){return Object.keys(e).reduce(function(t,n){return simple_objectSpread(simple_objectSpread({},t),{},simple_defineProperty({},n,getIndexStateWithoutConfigure(e[n])))},{})},routeToState:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,n){return simple_objectSpread(simple_objectSpread({},t),{},simple_defineProperty({},n,getIndexStateWithoutConfigure(e[n])))},{})}}:i;return function(e){var t=e.instantSearchInstance;t._createURL=function(e){var i=Object.keys(e).reduce(function(t,n){return createRouterMiddleware_objectSpread(createRouterMiddleware_objectSpread({},t),{},createRouterMiddleware_defineProperty({},n,e[n]))},t.mainIndex.getWidgetUiState({})),o=a.stateToRoute(i);return n.createURL(o)};var i=void 0,o=t._initialUiState;return{onStateChange:function(e){var t=e.uiState,o=a.stateToRoute(t);(void 0===i||!function isEqual(e,t){if(e===t)return!0;
9if(isPrimitive(e)||isPrimitive(t)||"function"==typeof e||"function"==typeof t)return e===t;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n=0,i=Object.keys(e);n<i.length;n++){var a=i[n];if(!(a in t)||!isEqual(e[a],t[a]))return!1}return!0}(i,o))&&(n.write(o),i=o)},subscribe:function(){t._initialUiState=createRouterMiddleware_objectSpread(createRouterMiddleware_objectSpread({},o),a.routeToState(n.read())),n.onUpdate(function(e){t.setUiState(a.routeToState(e))})},started:function(){},unsubscribe:function(){n.dispose()}}}};function InstantSearch_typeof(e){return(InstantSearch_typeof="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 InstantSearch_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function InstantSearch_defineProperties(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,InstantSearch_toPropertyKey(i.key),i)}}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _assertThisInitialized(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function InstantSearch_defineProperty(e,t,n){return(t=InstantSearch_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function InstantSearch_toPropertyKey(e){var t=function(e,t){if("object"!==InstantSearch_typeof(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==InstantSearch_typeof(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===InstantSearch_typeof(t)?t:String(t)}var F=(0,u.K)({name:"instantsearch"});function defaultCreateURL(){return"#"}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}(InstantSearch,e);var t,n,i,a=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=_getPrototypeOf(InstantSearch);if(t){var i=_getPrototypeOf(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(e,t){if(t&&("object"===InstantSearch_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}(this,e)});function InstantSearch(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,InstantSearch),InstantSearch_defineProperty(_assertThisInitialized(t=a.call(this)),"client",void 0),InstantSearch_defineProperty(_assertThisInitialized(t),"indexName",void 0),InstantSearch_defineProperty(_assertThisInitialized(t),"insightsClient",void 0),InstantSearch_defineProperty(_assertThisInitialized(t),"onStateChange",null),InstantSearch_defineProperty(_assertThisInitialized(t),"helper",void 0),InstantSearch_defineProperty(_assertThisInitialized(t),"mainHelper",void 0),InstantSearch_defineProperty(_assertThisInitialized(t),"mainIndex",void 0),InstantSearch_defineProperty(_assertThisInitialized(t),"started",void 0),InstantSearch_defineProperty(_assertThisInitialized(t),"templatesConfig",void 0),InstantSearch_defineProperty(_assertThisInitialized(t),"renderState",{}),InstantSearch_defineProperty(_assertThisInitialized(t),"_stalledSearchDelay",void 0),InstantSearch_defineProperty(_assertThisInitialized(t),"_searchStalledTimer",void 0),InstantSearch_defineProperty(_assertThisInitialized(t),"_initialUiState",void 0),InstantSearch_defineProperty(_assertThisInitialized(t),"_initialResults",void 0),InstantSearch_defineProperty(_assertThisInitialized(t),"_createURL",void 0),InstantSearch_defineProperty(_assertThisInitialized(t),"_searchFunction",void 0),InstantSearch_defineProperty(_assertThisInitialized(t),"_mainHelperSearch",void 0),InstantSearch_defineProperty(_assertThisInitialized(t),"middleware",[]),InstantSearch_defineProperty(_assertThisInitialized(t),"sendEventToInsights",void 0),InstantSearch_defineProperty(_assertThisInitialized(t),"status","idle"),InstantSearch_defineProperty(_assertThisInitialized(t),"error",void 0),InstantSearch_defineProperty(_assertThisInitialized(t),"scheduleSearch",defer(function(){t.started&&t.mainHelper.search()})),InstantSearch_defineProperty(_assertThisInitialized(t),"scheduleRender",defer(function(){var e,n=!(arguments.length>0)||void 0===arguments[0]||arguments[0];!(null!==(e=t.mainHelper)&&void 0!==e&&e.hasPendingRequests())&&(clearTimeout(t._searchStalledTimer),t._searchStalledTimer=null,n&&(t.status="idle",t.error=void 0)),t.mainIndex.render({instantSearchInstance:_assertThisInitialized(t)}),t.emit("render")})),InstantSearch_defineProperty(_assertThisInitialized(t),"onInternalStateChange",defer(function(){var e=t.mainIndex.getWidgetUiState({});t.middleware.forEach(function(t){t.instance.onStateChange({uiState:e})})})),t.setMaxListeners(100);var t,n=e.indexName,i=void 0===n?null:n,o=e.numberLocale,s=e.initialUiState,c=e.routing,u=void 0===c?null:c,l=e.searchFunction,f=e.stalledSearchDelay,h=e.searchClient,y=void 0===h?null:h,m=e.insightsClient,_=void 0===m?null:m,O=e.onStateChange;if(null===i)throw Error(F("The `indexName` option is required."));if(null===y)throw Error(F("The `searchClient` option is required."));if("function"!=typeof y.search)throw 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 y.addAlgoliaAgent&&y.addAlgoliaAgent("instantsearch.js (".concat("4.50.3",")")),_&&"function"!=typeof _)throw Error(F("The `insightsClient` option should be a function."));if(t.client=y,t.insightsClient=_,t.indexName=i,t.helper=null,t.mainHelper=null,t.mainIndex=widgets_index({indexName:i}),t.onStateChange=void 0===O?null:O,t.started=!1,t.templatesConfig={helpers:{formatNumber:function(e,t){return Number(t(e)).toLocaleStr
9ing(o)},highlight:function(e,t){try{var n,i,a,o,s,c,u,l,f,h=JSON.parse(e);return t((i=(n=createHelpers_objectSpread(createHelpers_objectSpread({},h),{},{hit:this})).attribute,a=n.highlightedTagName,o=void 0===a?"mark":a,s=n.hit,c=n.cssClasses,u=void 0===c?{}:c,l=(getPropertyByPath(s._highlightResult,i)||{}).value,f=p({descendantName:"highlighted"})+(u.highlighted?" ".concat(u.highlighted):""),(void 0===l?"":l).replace(RegExp(d.Rn.highlightPreTag,"g"),"<".concat(o,' class="').concat(f,'">')).replace(RegExp(d.Rn.highlightPostTag,"g"),"</".concat(o,">"))))}catch(e){throw Error('\nThe highlight helper expects a JSON object of the format:\n{ "attribute": "name", "highlightedTagName": "mark" }')}},reverseHighlight:function(e,t){try{var n,i,a,o,s,c,u,l,f,h,p=JSON.parse(e);return t((i=(n=createHelpers_objectSpread(createHelpers_objectSpread({},p),{},{hit:this})).attribute,a=n.highlightedTagName,o=void 0===a?"mark":a,s=n.hit,c=n.cssClasses,u=void 0===c?{}:c,l=(getPropertyByPath(s._highlightResult,i)||{}).value,f=void 0===l?"":l,h=v({descendantName:"highlighted"})+(u.highlighted?" ".concat(u.highlighted):""),concatHighlightedParts(reverseHighlightedParts(getHighlightedParts(f))).replace(RegExp(d.Rn.highlightPreTag,"g"),"<".concat(o,' class="').concat(h,'">')).replace(RegExp(d.Rn.highlightPostTag,"g"),"</".concat(o,">"))))}catch(e){throw Error('\n The reverseHighlight helper expects a JSON object of the format:\n { "attribute": "name", "highlightedTagName": "mark" }')}},snippet:function(e,t){try{var n,i,a,o,s,c,u,l,f,h=JSON.parse(e);return t((i=(n=createHelpers_objectSpread(createHelpers_objectSpread({},h),{},{hit:this})).attribute,a=n.highlightedTagName,o=void 0===a?"mark":a,s=n.hit,c=n.cssClasses,u=void 0===c?{}:c,l=(getPropertyByPath(s._snippetResult,i)||{}).value,f=b({descendantName:"highlighted"})+(u.highlighted?" ".concat(u.highlighted):""),(void 0===l?"":l).replace(RegExp(d.Rn.highlightPreTag,"g"),"<".concat(o,' class="').concat(f,'">')).replace(RegExp(d.Rn.highlightPostTag,"g"),"</".concat(o,">"))))}catch(e){throw Error('\nThe snippet helper expects a JSON object of the format:\n{ "attribute": "name", "highlightedTagName": "mark" }')}},reverseSnippet:function(e,t){try{var n,i,a,o,s,c,u,l,f,h,p=JSON.parse(e);return t((i=(n=createHelpers_objectSpread(createHelpers_objectSpread({},p),{},{hit:this})).attribute,a=n.highlightedTagName,o=void 0===a?"mark":a,s=n.hit,c=n.cssClasses,u=void 0===c?{}:c,l=(getPropertyByPath(s._snippetResult,i)||{}).value,f=void 0===l?"":l,h=S({descendantName:"highlighted"})+(u.highlighted?" ".concat(u.highlighted):""),concatHighlightedParts(reverseHighlightedParts(getHighlightedParts(f))).replace(RegExp(d.Rn.highlightPreTag,"g"),"<".concat(o,' class="').concat(h,'">')).replace(RegExp(d.Rn.highlightPostTag,"g"),"</".concat(o,">"))))}catch(e){throw Error('\n The reverseSnippet helper expects a JSON object of the format:\n { "attribute": "name", "highlightedTagName": "mark" }')}},insights:function(e,t){try{var n,i=JSON.parse(e),a=i.method,o=i.payload;return t((n=createHelpers_objectSpread({objectIDs:[this.objectID]},o),function(e){var t,n=e.method,i=e.payload;if("object"!==insights_typeof(i))throw Error("The insights helper expects the payload to be an object.");try{t=(0,j.a)(i)}catch(e){throw Error("Could not JSON serialize the payload object.")}return'data-insights-method="'.concat(n,'" data-insights-payload="').concat(t,'"')}({method:a,payload:n})))}catch(e){throw Error('\nThe insights helper expects a JSON object of the format:\n{ "method": "method-name", "payload": { "eventName": "name of the event" } }')}}},compileOptions:{}},t._stalledSearchDelay=void 0===f?200:f,t._searchStalledTimer=null,t._createURL=defaultCreateURL,t._initialUiState=void 0===s?{}:s,t._initialResults=null,l&&(t._searchFunction=l),t.sendEventToInsights=P.Z,u){var R="boolean"==typeof u?void 0:u;t.use(createRouterMiddleware(R))}return safelyRunOnBrowser(function(e){var t,n;return(null===(t=e.window.navigator)||void 0===t?void 0:null===(n=t.userAgent)||void 0===n?void 0:n.indexOf("Algolia Crawler"))>-1},{fallback:function(){return!1}})&&t.use(function(e){var t=e.instantSearchInstance,n={widgets:[]},i=document.createElement("meta"),a=document.querySelector("head");return i.name="instantsearch:widgets",{onStateChange:function(){},subscribe:function(){setTimeout(function(){var e=t.client;n.ua=e.transporter&&e.transporter.userAgent?e.transporter.userAgent.value:e._ua,function extractPayload(e,t,n){var i=createInitArgs(t,t.mainIndex,t._initialUiState);e.forEach(function(e){var a={};if(e.getWidgetRenderState){var o=e.getWidgetRenderState(i);o&&o.widgetParams&&(a=o.widgetParams)}var s=Object.keys(a).filter(function(e){return void 0!==a[e]});n.widgets.push({type:e.$$type,widgetType:e.$$widgetType,params:s}),"ais.index"===e.$$type&&extractPayload(e.getWidgets(),t,n)})}(t.mainIndex.getWidgets(),t,n),i.content=JSON.stringify(n),a.appendChild(i)},0)},started:function(){},unsubscribe:function(){i.remove()}}}),t}return n=[{key:"_isSearchStalled",get:function(){return"stalled"===this.status}},{key:"use",value:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];var a=n.map(function(t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
9t%2?InstantSearch_ownKeys(Object(n),!0).forEach(function(t){InstantSearch_defineProperty(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):InstantSearch_ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({subscribe:P.Z,started:P.Z,unsubscribe:P.Z,onStateChange:P.Z},t({instantSearchInstance:e}));return e.middleware.push({creator:t,instance:n}),n});return this.started&&a.forEach(function(e){e.subscribe(),e.started()}),this}},{key:"unuse",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.middleware.filter(function(e){return t.includes(e.creator)}).forEach(function(e){return e.instance.unsubscribe()}),this.middleware=this.middleware.filter(function(e){return!t.includes(e.creator)}),this}},{key:"EXPERIMENTAL_use",value:function(){return this.use.apply(this,arguments)}},{key:"addWidget",value:function(e){return this.addWidgets([e])}},{key:"addWidgets",value:function(e){if(!Array.isArray(e))throw Error(F("The `addWidgets` method expects an array of widgets. Please use `addWidget`."));if(e.some(function(e){return"function"!=typeof e.init&&"function"!=typeof e.render}))throw Error(F("The widget definition expects a `render` and/or an `init` method."));return this.mainIndex.addWidgets(e),this}},{key:"removeWidget",value:function(e){return this.removeWidgets([e])}},{key:"removeWidgets",value:function(e){if(!Array.isArray(e))throw Error(F("The `removeWidgets` method expects an array of widgets. Please use `removeWidget`."));if(e.some(function(e){return"function"!=typeof e.dispose}))throw Error(F("The widget definition expects a `dispose` method."));return this.mainIndex.removeWidgets(e),this}},{key:"start",value:function(){var e=this;if(this.started)throw Error(F("The `start` method has already been called once."));var t=this.mainHelper||s(this.client,this.indexName);if(t.search=function(){return e.status="loading",e.scheduleRender(!1),t.searchOnlyWithDerivedHelpers()},this._searchFunction){var n={search:function(){return new Promise(P.Z)}};this._mainHelperSearch=t.search.bind(t),t.search=function(){var i=e.mainIndex.getHelper(),a=s(n,i.state.index,i.state);return a.once("search",function(t){var n=t.state;i.overrideStateWithoutTriggeringChangeEvent(n),e._mainHelperSearch()}),a.on("change",function(e){var t=e.state;i.setState(t)}),e._searchFunction(a),t}}if(t.on("error",function(t){var n=t.error;if(!(n instanceof Error)){var i=n;n=Object.keys(i).reduce(function(e,t){return e[t]=i[t],e},Error(i.message))}n.error=n,e.error=n,e.status="error",e.scheduleRender(!1),e.emit("error",n)}),this.mainHelper=t,this.middleware.forEach(function(e){e.instance.subscribe()}),this.mainIndex.init({instantSearchInstance:this,parent:null,uiState:this._initialUiState}),this._initialResults){var i=this.scheduleSearch;this.scheduleSearch=defer(P.Z),defer(function(){e.scheduleSearch=i})()}else this.mainIndex.getWidgets().length>0&&this.scheduleSearch();this.helper=this.mainIndex.getHelper(),this.started=!0,this.middleware.forEach(function(e){e.instance.started()})}},{key:"dispose",value:function(){this.scheduleSearch.cancel(),this.scheduleRender.cancel(),clearTimeout(this._searchStalledTimer),this.removeWidgets(this.mainIndex.getWidgets()),this.mainIndex.dispose(),this.started=!1,this.removeAllListeners(),this.mainHelper.removeAllListeners(),this.mainHelper=null,this.helper=null,this.middleware.forEach(function(e){e.instance.unsubscribe()})}},{key:"scheduleStalledRender",value:function(){var e=this;this._searchStalledTimer||(this._searchStalledTimer=setTimeout(function(){e.status="stalled",e.scheduleRender()},this._stalledSearchDelay))}},{key:"setUiState",value:function(e){var t=this,n=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(!this.mainHelper)throw Error(F("The `start` method needs to be called before `setUiState`."));this.mainIndex.refreshUiState();var i="function"==typeof e?e(this.mainIndex.getWidgetUiState({})):e;this.onStateChange&&n?this.onStateChange({uiState:i,setUiState:function(e){setIndexHelperState("function"==typeof e?e(i):e,t.mainIndex),t.scheduleSearch(),t.onInternalStateChange()}}):(setIndexHelperState(i,this.mainIndex),this.scheduleSearch(),this.onInternalStateChange())}},{key:"getUiState",value:function(){return this.started&&this.mainIndex.refreshUiState(),this.mainIndex.getWidgetUiState({})}},{key:"createURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.started)throw Error(F("The `start` method needs to be called before `createURL`."));return this._createURL(e)}},{key:"refresh",value:function(){if(!this.mainHelper)throw Error(F("The `start` method needs to be called before `refresh`."));this.mainHelper.clearCache().search()}}],InstantSearch_defineProperties(InstantSearch.prototype,n),i&&InstantSearch_defineProperties(InstantSearch,i),Object.defineProperty(InstantSearch,"prototype",{writable:!1}),InstantSearch}(c),E=n(89120),H=n(57822),A=(0,i.createContext)(null),I="6.38.1";function useForceUpdate_arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var T=["react (".concat(i.version,")"),"react-instantsearch (".concat(I,")"),"react-instantsearch-hooks (".concat(I,")")],k="react-instantsearch-server (".concat(I,")");function addAlgoliaAgents(e,t){"function"==typeof e.addAlgoliaAgent&&t.filter(Boolean).forEac
9h(function(t){e.addAlgoliaAgent(t)})}var C=["children"];function InstantSearch_InstantSearch(e){var t=e.children,n=function(e){var t=(function(e){if(Array.isArray(e))return e}(l=(0,i.useReducer)(function(e){return e+1},0))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,o,s,c=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=o.call(n)).done)&&(c.push(i.value),c.length!==t);u=!0);}catch(e){l=!0,a=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw a}}return c}}(l,2)||function(e,t){if(e){if("string"==typeof e)return useForceUpdate_arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return useForceUpdate_arrayLikeToArray(e,t)}}(l,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1],n=(0,H.a)(),a=(0,i.useContext)(A),o=null==a?void 0:a.initialResults,s=(0,i.useRef)(null),c=(0,i.useRef)(e);if(null===s.current){var u=new x(e);(n||o)&&(u._initialResults=o||{}),addAlgoliaAgents(e.searchClient,[].concat(T,[n&&k])),(n||o)&&u.start(),n&&n.notifyServer({search:u}),s.current=u}var l,f,h=s.current,d=c.current;d.indexName!==e.indexName&&(h.helper.setIndex(e.indexName).search(),c.current=e),d.searchClient!==e.searchClient&&(addAlgoliaAgents(e.searchClient,[].concat(T,[n&&k])),h.mainHelper.setClient(e.searchClient).search(),c.current=e),d.onStateChange!==e.onStateChange&&(h.onStateChange=e.onStateChange,c.current=e),d.searchFunction!==e.searchFunction&&(h._searchFunction=e.searchFunction,c.current=e),d.stalledSearchDelay!==e.stalledSearchDelay&&(h._stalledSearchDelay=null!==(f=e.stalledSearchDelay)&&void 0!==f?f:200,c.current=e);var p=(0,i.useRef)(null);return(0,E.useSyncExternalStore)((0,i.useCallback)(function(){var e=s.current;return null===p.current?e.started||(e.start(),t()):(clearTimeout(p.current),e._preventWidgetCleanup=!1),function(){p.current=setTimeout(function(){e.dispose()}),e._preventWidgetCleanup=!0}},[t]),function(){return s.current},function(){return s.current})}(function(e,t){if(null==e)return{};var n,i,a=function(e,t){if(null==e)return{};var n,i,a={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,C));return n.started?i.createElement(o.Z.Provider,{value:n},i.createElement(a.Z.Provider,{value:n.mainIndex},t)):null}},14402:function(e,t,n){"use strict";n.d(t,{O:function(){return useHits}});var i=n(97507),a=n(45257),o=n(61098),s=n(33303);function _typeof(e){return(_typeof="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)}var buildPayloads=function(e){var t=e.index,n=e.widgetType,i=(e.methodName,e.args),a=e.instantSearchInstance;if(1===i.length&&"object"===_typeof(i[0]))return[i[0]];var o=i[0],s=i[1],c=i[2];if(!s||("click"===o||"conversion"===o)&&!c)return[];var u=Array.isArray(s)?s.slice():[s];if(0===u.length)return[];var l=u[0].__queryID,f=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20,n=[],i=0;i<Math.ceil(e.length/t);i++)n.push(e.slice(i*t,(i+1)*t));return n}(u),h=f.map(function(e){return e.map(function(e){return e.objectID})}),d=f.map(function(e){return e.map(function(e){return e.__position})});return"view"===o?"idle"!==a.status?[]:f.map(function(e,i){return{insightsMethod:"viewedObjectIDs",widgetType:n,eventType:o,payload:{eventName:c||"Hits Viewed",index:t,objectIDs:h[i]},hits:e}}):"click"===o?f.map(function(e,i){return{insightsMethod:"clickedObjectIDsAfterSearch",widgetType:n,eventType:o,payload:{eventName:c,index:t,queryID:l,objectIDs:h[i],positions:d[i]},hits:e}}
9):"conversion"===o?f.map(function(e,i){return{insightsMethod:"convertedObjectIDsAfterSearch",widgetType:n,eventType:o,payload:{eventName:c,index:t,queryID:l,objectIDs:h[i]},hits:e}}):[]},c=n(44014);function hits_absolute_position_typeof(e){return(hits_absolute_position_typeof="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 ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach(function(t){var i,a;i=t,a=n[t],(i=function(e){var t=function(e,t){if("object"!==hits_absolute_position_typeof(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==hits_absolute_position_typeof(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===hits_absolute_position_typeof(t)?t:String(t)}(i))in e?Object.defineProperty(e,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hits_query_id_typeof(e){return(hits_query_id_typeof="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 hits_query_id_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function hits_query_id_objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hits_query_id_ownKeys(Object(n),!0).forEach(function(t){var i,a;i=t,a=n[t],(i=function(e){var t=function(e,t){if("object"!==hits_query_id_typeof(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==hits_query_id_typeof(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===hits_query_id_typeof(t)?t:String(t)}(i))in e?Object.defineProperty(e,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hits_query_id_ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function connectHits_typeof(e){return(connectHits_typeof="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 connectHits_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function connectHits_objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?connectHits_ownKeys(Object(n),!0).forEach(function(t){connectHits_defineProperty(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):connectHits_ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function connectHits_defineProperty(e,t,n){var i;return(i=function(e,t){if("object"!==connectHits_typeof(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==connectHits_typeof(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"===connectHits_typeof(i)?i:String(i))in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=(0,i.K)({name:"hits",connector:!0}),hits_connectHits=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.Z;return(0,o._)(e,u()),function(n){var i,a,o=n||{},u=o.escapeHTML,l=void 0===u||u,f=o.transformItems,h=void 0===f?function(e){return e}:f;return{$$type:"ais.hits",init:function(t){e(connectHits_objectSpread(connectHits_objectSpread({},this.getWidgetRenderState(t)),{},{instantSearchInstance:t.instantSearchInstance}),!0)},render:function(t){var n=this.getWidgetRenderState(t);e(connectHits_objectSpread(connectHits_objectSpread({},n),{},{instantSearchInstance:t.instantSearchInstance}),!1),n.sendEvent("view",n.hits)},getRenderState:function(e,t){return connectHits_objectSpread(connectHits_objectSpread({},e),{},{hits:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t,o,u,f,d,p,y,m,v,b,S,j,_,P=e.results,O=e.helper,R=e.instantSearchInstance;return(i||(o=(t={instantSearchInstance:R,index:O.getIndex(),widgetType:this.$$type}).instantSearchInstance,u=t.index,f=t.widgetType,i=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];buildPayloads({widgetType:f,index:u,methodName:"sendEvent",args:t,instantSearchInstance:o}
9).forEach(function(e){return o.sendEventToInsights(e)})}),a||(p=(d={index:O.getIndex(),widgetType:this.$$type,instantSearchInstance:R}).index,y=d.widgetType,m=d.instantSearchInstance,a=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=buildPayloads({widgetType:y,index:p,methodName:"bindEvent",args:t,instantSearchInstance:m});return i.length?"data-insights-event=".concat((0,s.a)(i)):""}),P)?(l&&P.hits.length>0&&(P.hits=(0,c.mY)(P.hits)),{hits:h((v=P.hits,b=P.page,S=P.hitsPerPage,j=v.map(function(e,t){return _objectSpread(_objectSpread({},e),{},{__position:S*b+t+1})}),(_=P.queryID)?j.map(function(e){return hits_query_id_objectSpread(hits_query_id_objectSpread({},e),{},{__queryID:_})}):j),{results:P}),results:P,sendEvent:i,bindEvent:a,widgetParams:n}):{hits:[],results:void 0,sendEvent:i,bindEvent:a,widgetParams:n}},dispose:function(e){var n=e.state;return(t(),l)?n.setQueryParameters(Object.keys(c.dg).reduce(function(e,t){return connectHits_objectSpread(connectHits_objectSpread({},e),{},connectHits_defineProperty({},t,void 0))},{})):n},getWidgetSearchParameters:function(e){return l?e.setQueryParameters(c.dg):e}}}},l=n(90104);function useHits(e,t){return(0,l.B)(hits_connectHits,e,t)}},70689:function(e,t,n){"use strict";n.d(t,{l:function(){return useSearchBox}});var i=n(97507),a=n(45257),o=n(61098);function _typeof(e){return(_typeof="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 ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach(function(t){var i,a;i=t,a=n[t],(i=function(e){var t=function(e,t){if("object"!==_typeof(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==_typeof(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_typeof(t)?t:String(t)}(i))in e?Object.defineProperty(e,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var s=(0,i.K)({name:"search-box",connector:!0}),defaultQueryHook=function(e,t){return t(e)},search_box_connectSearchBox=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.Z;return(0,o._)(e,s()),function(n){var i,a,o=(n||{}).queryHook,s=void 0===o?defaultQueryHook:o;return{$$type:"ais.searchBox",init:function(t){var n=t.instantSearchInstance;e(_objectSpread(_objectSpread({},this.getWidgetRenderState(t)),{},{instantSearchInstance:n}),!0)},render:function(t){var n=t.instantSearchInstance;e(_objectSpread(_objectSpread({},this.getWidgetRenderState(t)),{},{instantSearchInstance:n}),!1)},dispose:function(e){var n=e.state;return t(),n.setQueryParameter("query",void 0)},getRenderState:function(e,t){return _objectSpread(_objectSpread({},e),{},{searchBox:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t=e.helper,o=e.searchMetadata,c=e.state;return i||(i=function(e){s(e,function(e){return t.setQuery(e).search()})},a=function(){t.setQuery("").search()}),{query:c.query||"",refine:i,clear:a,widgetParams:n,isSearchStalled:o.isSearchStalled}},getWidgetUiState:function(e,t){var n=t.searchParameters.query||"";return""===n||e&&e.query===n?e:_objectSpread(_objectSpread({},e),{},{query:n})},getWidgetSearchParameters:function(e,t){var n=t.uiState;return e.setQueryParameter("query",n.query||"")}}}},c=n(90104);function useSearchBox(e,t){return(0,c.B)(search_box_connectSearchBox,e,t)}},90104:function(e,t,n){"use strict";n.d(t,{B:function(){return useConnector}});var i=n(67294);function _typeof(e){return(_typeof="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)}var a=Object.prototype.hasOwnProperty;function dequal(e,t,n){var i,o;if(null!=n&&n(e,t)||e===t)return!0;
9if(e&&t&&(i=e.constructor)===t.constructor){if(i===Date)return e.getTime()===t.getTime();if(i===RegExp)return e.toString()===t.toString();if(i===Array){if((o=e.length)===t.length)for(;o--&&dequal(e[o],t[o],n););return -1===o}if(!i||"object"===_typeof(e)){for(i in o=0,e)if(a.call(e,i)&&++o&&!a.call(t,i)||!(i in t)||!dequal(e[i],t[i],n))return!1;return Object.keys(t).length===o}}return e!=e&&t!=t}var o=n(59654),s=n(11914),c=n(14524),u=n(57822);function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function useStableValue(e){var t,n=function(e){if(Array.isArray(e))return e}(t=(0,i.useState)(function(){return e}))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,o,s,c=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=o.call(n)).done)&&(c.push(i.value),c.length!==t);u=!0);}catch(e){l=!0,a=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw a}}return c}}(t,2)||function(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(e,t)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=n[0],o=n[1];return dequal(a,e)||o(e),a}var l=n(98767);function useConnector_typeof(e){return(useConnector_typeof="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)}var f=["instantSearchInstance","widgetParams"],h=["widgetParams"];function useConnector_arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach(function(t){var i,a;i=t,a=n[t],(i=function(e){var t=function(e,t){if("object"!==useConnector_typeof(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==useConnector_typeof(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===useConnector_typeof(t)?t:String(t)}(i))in e?Object.defineProperty(e,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _objectWithoutProperties(e,t){if(null==e)return{};var n,i,a=function(e,t){if(null==e)return{};var n,i,a={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function useConnector(e){var t,n,a,d,p,y,m,v,b,S,j,_=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},P=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},O=(0,u.a)(),R=(0,c.z)(),w=(0,s.a)(),F=useStableValue(_),x=useStableValue(P),E=(0,i.useRef)(!0),H=(0,i.useRef)(null),A=(0,i.useMemo)(function(){return _objectSpread(_objectSpread({},e(function(e,t){if(t){E.current=!0;return}if(E.current){e.instantSearchInstance,e.widgetParams;var n=_objectWithoutProperties(e,f);dequal(n,H.current,function(e,t){return(null==e?void 0:e.constructor)===Function&&(null==t?void 0:t.constructor)===Function})||(k(n),H.current=n)}},function(){E.current=!1})(F)),x)},[e,F,x]),I=function(e){if(Array.isArray(e))return e}(t=(0,i.useState)(function(){if(A.getWidgetRenderState){var e,t=w.getHelper(),n=w.getWidgetUiState({})[w.getIndexId()];t.state=(null===(e=A.getWidgetSearchParameters)||void 0===e?void 0:e.call(A,t.state,{uiState:n}))||t.state;var i=(0,o.E)(w),a=i.results,s=i.scopedResults,c=A.getWidgetRenderState({helper:t,parent:w,instantSearchInstance:R,results:a,scopedResults:s,state:t.state,render
9State:R.renderState,templatesConfig:R.templatesConfig,createURL:w.createURL,searchMetadata:{isSearchStalled:"stalled"===R.status},status:R.status,error:R.error});return c.widgetParams,_objectWithoutProperties(c,h)}return{}}))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,o,s,c=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=o.call(n)).done)&&(c.push(i.value),c.length!==t);u=!0);}catch(e){l=!0,a=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw a}}return c}}(t,2)||function(e,t){if(e){if("string"==typeof e)return useConnector_arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return useConnector_arrayLikeToArray(e,t)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),T=I[0],k=I[1];return a=(n={widget:A,parentIndex:w,props:F,shouldSsr:!!O}).widget,d=n.parentIndex,p=n.props,y=n.shouldSsr,m=(0,i.useRef)(p),(0,i.useEffect)(function(){m.current=p},[p]),v=(0,i.useRef)(a),(0,i.useEffect)(function(){v.current=a},[a]),b=(0,i.useRef)(null),S=y&&!d.getWidgets().includes(a),j=(0,c.z)(),(0,l.L)(function(){var e=v.current;function cleanup(){j._preventWidgetCleanup||d.removeWidgets([e])}return null===b.current?S||d.addWidgets([a]):(clearTimeout(b.current),dequal(p,m.current)||(cleanup(),d.addWidgets([a]))),function(){b.current=setTimeout(cleanup)}},[d,a,S,j,p]),S&&d.addWidgets([a]),T}},27993:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var i=(0,n(67294).createContext)(null)},30089:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var i=(0,n(67294).createContext)(null)},59654:function(e,t,n){"use strict";n.d(t,{E:function(){return getIndexSearchResults}});var i=n(8131);function createSearchResults(e){var t,n,a;return new i.SearchResults(e,[{query:null!==(t=e.query)&&void 0!==t?t:"",page:null!==(n=e.page)&&void 0!==n?n:0,hitsPerPage:null!==(a=e.hitsPerPage)&&void 0!==a?a:20,hits:[],nbHits:0,nbPages:0,params:"",exhaustiveNbHits:!0,exhaustiveFacetsCount:!0,processingTimeMS:0,index:e.index}],{__isArtificial:!0})}function _typeof(e){return(_typeof="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 ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach(function(t){var i,a;i=t,a=n[t],(i=function(e){var t=function(e,t){if("object"!==_typeof(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==_typeof(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_typeof(t)?t:String(t)}(i))in e?Object.defineProperty(e,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function getIndexSearchResults(e){var t=e.getHelper(),n=e.getResults()||createSearchResults(t.state),i=e.getScopedResults().map(function(t){var i=t.indexId===e.getIndexId()?n:createSearchResults(t.helper.state);return _objectSpread(_objectSpread({},t),{},{results:t.results||i})});return{results:n,scopedResults:i}}},80117:function(e,t,n){"use strict";function invariant(e,t){if(!e)throw Error("Invariant failed")}n.d(t,{k:function(){return invariant}}
9)},11914:function(e,t,n){"use strict";n.d(t,{a:function(){return useIndexContext}});var i=n(67294),a=n(80117),o=n(27993);function useIndexContext(){var e=(0,i.useContext)(o.Z);return(0,a.k)(null!==e,"The <Index> component must be used within <InstantSearch>."),e}},14524:function(e,t,n){"use strict";n.d(t,{z:function(){return useInstantSearchContext}});var i=n(67294),a=n(80117),o=n(30089);function useInstantSearchContext(){var e=(0,i.useContext)(o.Z);return(0,a.k)(null!==e,"Hooks must be used inside the <InstantSearch> component.\n\nThey are not compatible with the `react-instantsearch-core` and `react-instantsearch-dom` packages, so make sure to use the <InstantSearch> component from `react-instantsearch-hooks`."),e}},57822:function(e,t,n){"use strict";n.d(t,{a:function(){return useInstantSearchServerContext}});var i=n(67294),a=(0,i.createContext)(null);function useInstantSearchServerContext(){return(0,i.useContext)(a)}},98767:function(e,t,n){"use strict";n.d(t,{L:function(){return a}});var i=n(67294),a="undefined"!=typeof window?i.useLayoutEffect:i.useEffect},61098:function(e,t,n){"use strict";function checkRendering(e,t){if(void 0===e||"function"!=typeof e)throw Error("The render function is not valid (received type ".concat(Object.prototype.toString.call(e).slice(8,-1),").\n\n").concat(t))}n.d(t,{_:function(){return checkRendering}})},97507:function(e,t,n){"use strict";function createDocumentationMessageGenerator(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.map(function(e){var t;return["https://www.algolia.com/doc/api-reference/widgets/",e.name,"/js/",void 0!==(t=e.connector)&&t?"#connector":""].join("")}).join(", ");return function(e){return[e,"See documentation: ".concat(i)].filter(Boolean).join("\n\n")}}n.d(t,{K:function(){return createDocumentationMessageGenerator}})},44014:function(e,t,n){"use strict";n.d(t,{Rn:function(){return s},dg:function(){return o},mY:function(){return escapeHits}});var i=n(28546),a=n(89143);function _typeof(e){return(_typeof="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 _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach(function(t){_defineProperty(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _defineProperty(e,t,n){var i;return(i=function(e,t){if("object"!==_typeof(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==_typeof(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"===_typeof(i)?i:String(i))in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o={highlightPreTag:"__ais-highlight__",highlightPostTag:"__/ais-highlight__"},s={highlightPreTag:"<mark>",highlightPostTag:"</mark>"};function recursiveEscape(e){var t;return(0,a.P)(e)&&"string"!=typeof e.value?Object.keys(e).reduce(function(t,n){return _objectSpread(_objectSpread({},t),{},_defineProperty({},n,recursiveEscape(e[n])))},{}):Array.isArray(e)?e.map(recursiveEscape):_objectSpread(_objectSpread({},e),{},{value:(t=e.value,(0,i.Y)(t).replace(RegExp(o.highlightPreTag,"g"),s.highlightPreTag).replace(RegExp(o.highlightPostTag,"g"),s.highlightPostTag))})}function escapeHits(e){return void 0===e.__escaped&&((e=e.map(function(e){var t=_extends({},(function(e){if(null==e)throw TypeError("Cannot destructure "+e)}(e),e));return t._highlightResult&&(t._highlightResult=recursiveEscape(t._highlightResult)),t._snippetResult&&(t._snippetResult=recursiveEscape(t._snippetResult)),t})).__escaped=!0),e}},28546:function(e,t,n){"use strict";n.d(t,{A:function(){return unescape},Y:function(){return escape}});var i={"&":"&","<":"<",">":">",'"':""","'":"'"},a=/[&<>"']/g,o=RegExp(a.source);function escape(e){return e&&o.test(e)?e.replace(a,function(e){return i[e]}):e}var s={"&":"&","<":"<",">":">",""":'"',"'":"'"},c=/&(amp|quot|lt|gt|#39);/g,u=RegExp(c.source);function unescape(e){return e&&u.test(e)?e.replace(c,function(e){return s[e]}):e}},89143:function(e,t,n){"use strict";function _typeof(e){return(_typeof="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 isPlainObject(e){if(!("object"===_typeof(e)&&null!==e)||"[object Object]"!==(null===e?void 0===e?"[object Undef
9ined]":"[object Null]":Object.prototype.toString.call(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}n.d(t,{P:function(){return isPlainObject}})},59692:function(e,t,n){"use strict";function _typeof(e){return(_typeof="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)}n.d(t,{Z:function(){return mergeSearchParameters}});var i=["facets","disjunctiveFacets","facetsRefinements","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacets","hierarchicalFacetsRefinements","ruleContexts"];function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach(function(t){var i,a;i=t,a=n[t],(i=function(e){var t=function(e,t){if("object"!==_typeof(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==_typeof(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_typeof(t)?t:String(t)}(i))in e?Object.defineProperty(e,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var mergeWithRest=function(e,t){t.facets,t.disjunctiveFacets,t.facetsRefinements,t.facetsExcludes,t.disjunctiveFacetsRefinements,t.numericRefinements,t.tagRefinements,t.hierarchicalFacets,t.hierarchicalFacetsRefinements,t.ruleContexts;var n=function(e,t){if(null==e)return{};var n,i,a=function(e,t){if(null==e)return{};var n,i,a={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,i);return e.setQueryParameters(n)},mergeRuleContexts=function(e,t){var n=[].concat(e.ruleContexts).concat(t.ruleContexts).filter(Boolean).filter(function(e,t,n){return n.indexOf(e)===t});return n.length>0?e.setQueryParameters({ruleContexts:n}):e},mergeSearchParameters=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(function(e,t){var n,i,a,o,s,c,u,l;return mergeWithRest((l=mergeRuleContexts((i=(n=e.setQueryParameters({hierarchicalFacetsRefinements:_objectSpread(_objectSpread({},e.hierarchicalFacetsRefinements),t.hierarchicalFacetsRefinements)})).setQueryParameters({hierarchicalFacets:t.hierarchicalFacets.reduce(function(e,t){var n=function(e,t){if(!Array.isArray(e))return -1;for(var n=0;n<e.length;n++)if(t(e[n]))return n;return -1}(e,function(e){return e.name===t.name});if(-1===n)return e.concat(t);var i=e.slice();return i.splice(n,1,t),i},n.hierarchicalFacets)}),u=(c=(s=(o=(a=t.tagRefinements.reduce(function(e,t){return e.addTagRefinement(t)},i)).setQueryParameters({numericRefinements:_objectSpread(_objectSpread({},a.numericRefinements),t.numericRefinements)})).setQueryParameters({disjunctiveFacetsRefinements:_objectSpread(_objectSpread({},o.disjunctiveFacetsRefinements),t.disjunctiveFacetsRefinements)})).setQueryParameters({facetsExcludes:_objectSpread(_objectSpread({},s.facetsExcludes),t.facetsExcludes)})).setQueryParameters({facetsRefinements:_objectSpread(_objectSpread({},c.facetsRefinements),t.facetsRefinements)}),t.disjunctiveFacets.reduce(function(e,t){return e.addDisjunctiveFacet(t)},u)),t),t.facets.reduce(function(e,t){return e.addFacet(t)},l)),t)})}},45257:function(e,t,n){"use strict";function noop(){}n.d(t,{Z:function(){return noop}})},33303:function(e,t,n){"use strict";function serializePayload(e){return btoa(encodeURIComponent(JSON.stringify(e)))}n.d(t,{a:function(){return serializePayload}})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.