vendor: 4,397 bytes, line 1
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4969,5549,7023,5669,815,9846,2383,2572,21,6178],{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(i=arguments[1],i instanceof Error)throw i;var i,l,m,y,v,b,S,j=Error('Uncaught, unspecified "error" event. ('+i+")");throw j.context=i,j}if(void 0===(l=this._events[e]))return!1;if(isFunction(l))switch(arguments.length){case 1:l.call(this);break;case 2:l.call(this,arguments[1]);break;case 3:l.call(this,arguments[1],arguments[2]);break;default:y=Array.prototype.slice.call(arguments,1),l.apply(this,y)}else if(isObject(l))for(v=0,y=Array.prototype.slice.call(arguments,1),m=(b=l.slice()).length;v<m;v++)b[v].apply(this,y);return!0},EventEmitter.prototype.addListener=function(e,i){var l,m;if(!isFunction(i))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,isFunction(i.listener)?i.listener:i),this._events[e]?isObject(this._events[e])?this._events[e].push(i):this._events[e]=[this._events[e],i]:this._events[e]=i,isObject(this._events[e])&&!this._events[e].warned&&(l=void 0===this._maxListeners?EventEmitter.defaultMaxListeners:this._maxListeners)&&l>0&&this._events[e].length>l&&(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,i){if(!isFunction(i))throw TypeError("listener must be a function");var l=!1;function g(){this.removeListener(e,g),l||(l=!0,i.apply(this,arguments))}return g.listener=i,this.on(e,g),this},EventEmitter.prototype.removeListener=function(e,i){var l,m,y,v;if(!isFunction(i))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(y=(l=this._events[e]).length,m=-1,l===i||isFunction(l.listener)&&l.listener===i)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,i);else if(isObject(l)){for(v=y;v-- >0;)if(l[v]===i||l[v].listener&&l[v].listener===i){m=v;break}if(m<0)return this;1===l.length?(l.length=0,delete this._events[e]):l.splice(m,1),this._events.removeListener&&this.emit("removeListener",e,i)}return this},EventEmitter.prototype.removeAllListeners=function(e){var i,l;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(i in this._events)"removeListener"!==i&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events={},this}if(isFunction(l=this._events[e]))this.removeListener(e,l);else if(l)for(;l.length;)this.removeListener(e,l[l.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 i=this._events[e];if(isFunction(i))return 1;if(i)return i.length}return 0},EventEmitter.listenerCount=function(e,i){return e.listenerCount(i)}},24955:function(e){/*! algoliasearch.umd.js | 4.25.2 | © Algolia, inc. | https://github.com/algolia/algoliasearch-client-javascript */e.exports=function(){"use strict";function t(e,i){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(e);i&&(m=m.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),l.push.apply(l,m)}return l}function r(e){for(var i=1;i<arguments.length;i++){var l=null!=arguments[i]?arguments[i]:{};
1i%2?t(Object(l),!0).forEach(function(i){var m;m=l[i],i in e?Object.defineProperty(e,i,{value:m,enumerable:!0,configurable:!0,writable:!0}):e[i]=m}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):t(Object(l)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(l,i))})}return e}function n(e,i){if(null==e)return{};var l,m,y=function(e,i){if(null==e)return{};var l,m,y={},v=Object.keys(e);for(m=0;m<v.length;m++)l=v[m],i.indexOf(l)>=0||(y[l]=e[l]);return y}(e,i);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(e);for(m=0;m<v.length;m++)l=v[m],i.indexOf(l)>=0||Object.prototype.propertyIsEnumerable.call(e,l)&&(y[l]=e[l])}return y}function a(e,i){return function(e){if(Array.isArray(e))return e}(e)||function(e,i){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var l=[],m=!0,y=!1,v=void 0;try{for(var b,S=e[Symbol.iterator]();!(m=(b=S.next()).done)&&(l.push(b.value),!i||l.length!==i);m=!0);}catch(e){y=!0,v=e}finally{try{m||null==S.return||S.return()}finally{if(y)throw v}}return l}}(e,i)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(e){return function(e){if(Array.isArray(e)){for(var i=0,l=Array(e.length);i<e.length;i++)l[i]=e[i];return l}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance")}()}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},i={};return{get:function(l,m){var y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},v=JSON.stringify(l);if(v in i)return Promise.resolve(e.serializable?JSON.parse(i[v]):i[v]);var b=m(),S=y&&y.miss||function(){return Promise.resolve()};return b.then(function(e){return S(e)}).then(function(){return b})},set:function(l,m){return i[JSON.stringify(l)]=e.serializable?JSON.stringify(m):m,Promise.resolve(m)},delete:function(e){return delete i[JSON.stringify(e)],Promise.resolve()},clear:function(){return i={},Promise.resolve()}}}function c(i,l,m){var y={"x-algolia-api-key":m,"x-algolia-application-id":l};return{headers:function(){return i===e.WithinHeaders?y:{}},queryParameters:function(){return i===e.WithinQueryParameters?y:{}}}}function f(e){var i=0;return e(function r(){return i++,new Promise(function(l){setTimeout(function(){l(e(r))},Math.min(100*i,1e3))})})}function d(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e,i){return Promise.resolve()};return Object.assign(e,{wait:function(l){return d(e.then(function(e){return Promise.all([i(e,l),e])}).then(function(e){return e[1]}))}})}
1function h(e,i){return i&&Object.keys(i).forEach(function(l){e[l]=i[l](e)}),e}function p(e){for(var i=arguments.length,l=Array(i>1?i-1:0),m=1;m<i;m++)l[m-1]=arguments[m];var y=0;return e.replace(/%s/g,function(){return encodeURIComponent(l[y++])})}var e={WithinQueryParameters:0,WithinHeaders:1};function g(e,i){var l=e||{},m=l.data||{};return Object.keys(l).forEach(function(e){-1===["timeout","headers","queryParameters","data","cacheable"].indexOf(e)&&(m[e]=l[e])}),{data:Object.entries(m).length>0?m:void 0,timeout:l.timeout||i,headers:l.headers||{},queryParameters:l.queryParameters||{},cacheable:l.cacheable}}var i={Read:1,Write:2,Any:3};function P(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return r(r({},e),{},{status:i,lastUpdate:Date.now()})}function O(e){return"string"==typeof e?{protocol:"https",url:e,accept:i.Any}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||i.Any}}var l="DELETE",m="POST";function T(e,i,l,m){var y,v,b,S=[],j=function(e,i){if("GET"!==e.method&&(void 0!==e.data||void 0!==i.data))return JSON.stringify(Array.isArray(e.data)?e.data:r(r({},e.data),i.data))}(l,m),x=(y=r(r({},e.headers),m.headers),v={},Object.keys(y).forEach(function(e){var i=y[e];v[e.toLowerCase()]=i}),v),w=l.method,I="GET"!==l.method?{}:r(r({},l.data),m.data),N=r(r(r({"x-algolia-agent":e.userAgent.value},e.queryParameters),I),m.queryParameters),D=0,h=function t(i,y){var v,b,I,q=i.pop();if(void 0===q)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support .",transporterStackTrace:A(S)};var er={data:j,headers:x,method:w,url:(v=l.path,b=E(N),I="".concat(q.protocol,"://").concat(q.url,"/").concat("/"===v.charAt(0)?v.substr(1):v),b.length&&(I+="?".concat(b)),I),connectTimeout:y(D,e.timeouts.connect),responseTimeout:y(D,m.timeout)},p=function(e){var l={request:er,response:e,host:q,triesLeft:i.length};return S.push(l),l},en={onSuccess:function(e){return function(e){try{return JSON.parse(e.content)}catch(i){throw{name:"DeserializationError",message:i.message,response:e}}}(e)},onRetry:function(l){var m=p(l);return l.isTimedOut&&D++,Promise.all([e.logger.info("Retryable failure",R(m)),e.hostsCache.set(q,P(q,l.isTimedOut?3:2))]).then(function(){return t(i,y)})},onFail:function(e){throw p(e),function(e,i){var l=e.content,m=e.status,y=l;try{y=JSON.parse(l).message}catch(e){}return{name:"ApiError",message:y,status:m,transporterStackTrace:i}}(e,A(S))}};return e.requester.send(er).then(function(e){var i,l,m;return(i=e.status,e.isTimedOut||(l=e.isTimedOut,m=e.status,!l&&0==~~m)||2!=~~(i/100)&&4!=~~(i/100))?en.onRetry(e):2==~~(e.status/100)?en.onSuccess(e):en.onFail(e)})};return(b=e.hostsCache,Promise.all(i.map(function(e){return b.get(e,function(){return Promise.resolve(P(e))})})).then(function(e){var l=e.filter(function(e){return 1===e.status||Date.now()-e.lastUpdate>12e4}),m=e.filter(function(e){return 3===e.status&&Date.now()-e.lastUpdate<=12e4}),y=[].concat(o(l),o(m));return{getTimeout:function(e,i){return(0===m.length&&0===e?1:m.length+3+e)*i},statelessHosts:y.length>0?y.map(function(e){return O(e)}):i}})).then(function(e){return h(o(e.statelessHosts).reverse(),e.getTimeout)})}function k(e){var l=e.hostsCache,m=e.logger,y=e.requester,v=e.requestsCache,b=e.responsesCache,S=e.timeouts,j=e.userAgent,x=e.hosts,w=e.queryParameters,I={hostsCache:l,logger:m,requester:y,requestsCache:v,responsesCache:b,timeouts:S,userAgent:j,headers:e.headers,queryParameters:w,hosts:x.map(function(e){return O(e)}),read:function(e,l){var m=g(l,I.timeouts.read),n=function(){return T(I,I.hosts.filter(function(e){return 0!=(e.accept&i.Read)}),e,m)};if(!0!==(void 0!==m.cacheable?m.cacheable:e.cacheable))return n();var y={request:e,mappedRequestOptions:m,transporter:{queryParameters:I.queryParameters,headers:I.headers}};return I.responsesCache.get(y,function(){return I.requestsCache.get(y,function(){return I.requestsCache.set(y,n()).then(function(e){return Promise.all([I.requestsCache.delete(y),e])},function(e){return Promise.all([I.requestsCache.delete(y),Promise.reject(e)])}).then(function(e){var i=a(e,2);return i[0],i[1]})})},{miss:function(e){return I.responsesCache.set(y,e)}})},write:function(e,l){return T(I,I.hosts.filter(function(e){return 0!=(e.accept&i.Write)}),e,g(l,I.timeouts.write))}};return I}function E(e){return Object.keys(e).map(function(i){var l;return p("%s=%s",i,(l=e[i],"[object Object]"===Object.prototype.toString.call(l)||"[object Array]"===Object.prototype.toString.call(l)?JSON.stringify(e[i]):e[i]))}).join("&")}function A(e){return e.map(function(e){return R(e)})}function R(e){var i=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return r(r({},e),{},{request:r(r({},e.request),{},{headers:r(r({},e.request.headers),i)})})}var C=function(e){return function(i,l){return e.transporter.write({method:m,path:"2/abtests",data:i},l)}},U=function(e){return function(i,m){return e.transporter.write({method:l,path:p("2/abtests/%s",i)},m)}},z=function(e){return function(i,l){return e.transporter.read({method:"GET",path:p("2/abtests/%s",i)},l)}},J=function(e){return function(i){return e.transporter.read({method:"GET",path:"2/abtests"},i)}},F=function(e){return function(i,l){return e.transporter.write({method:m,path:p("2/abtests/%s/stop",i)},l)}},W=function(e){return function(i){return e.transporter.read({method:"GET",path:"1/strategies/personalization"},i)}},H=function(e){return function(i,l){return e.transporter.write({method:m,path:"1/strategies/personalization",data:i},l)}};function K(e){return function t(i){return e.request(i).then(function(l){if(void 0!==e.batch&&e.batch(l.hits),!e.shouldStop(l))return l.cursor?t({cursor:l.cursor}):t({page:(i.page||0)+1})})}({})}var M=function(e){return function(i,l){var y=l||{},v=y.queryParameters,b=n(y,["queryParameters"]),S=r({acl:i},void 0!==v?{queryParameters:v}:{});return d(e.transporter.write({method:m,path:"1/keys",data:S},b),function(i,l){return f(function(m){return ee(e)(i.key,l).catch(function(e){if(404!==e.status)throw e;return m()})})})}},B=function(e){return function(i,l,y){var v=g(y);return v.queryParameters["X-Algolia-User-ID"]=i,e.transporter.write({method:m,path:"1/clusters/mapping",data:{cluster:l}},v)}},G=function(e){return function(i,l,y){return e.transporter.write({method:m,path:"1/clusters/mapping/batch",data:{users:i,cluster:l}},y)}},L=function(e){return function(i,l){return d(e.transporter.write({method:m,path:p("/1/dictionaries/%s/batch",i),data:{clearExistingDictionaryEntries:!0,requests:{action:"addEntry",body:[]}}},l),function(i,l){return je(e)(i.taskID,l)})}},Q=function(e){return function(i,l,y){return d(e.transporter.write({method:m,path:p("1/indexes/%s/operation",i),data:{operation:"copy",destination:l}},y),function(l,m){return ue(e)(i,{methods:{waitTask:dt}}).waitTask(l.taskID,m)})}},V=function(e){return function(i,l,m){return Q(e)(i,l,r(r({},m),{},{scope:[v.Rules]}))}},_=function(e){return function(i,l,m){return Q(e)(i,l,r(r({},m),{},{scope:[v.Settings]}))}},X=function(e){return function(i,l,m){return Q(e)(i,l,r(r({},m),{},{scope:[v.Synonyms]}))}},Y=function(e){return function(i,l){return"GET"===i.method?e.transporter.read(i,l):e.transporter.write(i,l)}},Z=function(e){return function(i,m){return d(e.transporter.write({method:l,path:p("1/keys/%s",i)},m),function(l,m){return f(function(l){return ee(e)(i,m).then(l).catch(function(e){if(404!==e.status)throw e})})})}},$=function(e){return function(i,l,y){var v=l.map(function(e){return{action:"deleteEntry",body:{objectID:e}}});return d(e.transporter.write({method:m,path:p("/1/dictionaries/%s/batch",i),data:{clearExistingDictionaryEntries:!1,requests:v}},y),function(i,l){return je(e)(i.taskID,l)})}},ee=function(e){return function(i,l){return e.transporter.read({method:"GET",path:p("1/keys/%s",i)},l)}},te=function(e){return function(i,l){return e.transporter.read({method:"GET",path:p("1/task/%s",i.toString())},l)}},re=function(e){return function(i){return e.transporter.read({method:"GET",path:"/1/dictionaries/*/settings"},i)}},ne=function(e){return function(i){return e.transporter.read({method:"GET",path:"1/logs"},i)}},ae=function(e){return function(i){return e.transporter.read({method:"GET",path:"1/clusters/mapping/top"},i)}},oe=function(e){return function(i,l){return e.transporter.read({method:"GET",path:p("1/clusters/mapping/%s",i)},l)}},ie=function(e){return function(i){var l=i||{},m=l.retrieveMappings,y=n(l,["retrieveMappings"]);return!0===m&&(y.getClusters=!0),e.transporter.read({method:"GET",path:"1/clusters/mapping/pending"},y)}},ue=function(e){return function(i){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return h({transporter:e.transporter,appId:e.appId,indexName:i},l.methods)}},se=function(e){return function(i){return e.transporter.read({method:"GET",path:"1/keys"},i)}},ce=function(e){return function(i){return e.transporter.read({method:"GET",path:"1/clusters"},i)}},fe=function(e){return function(i){return e.transporter.read({method:"GET",path:"1/indexes"},i)}},de=function(e){return function(i){return e.transporter.read({method:"GET",path:"1/clusters/mapping"},i)}},le=function(e){return function(i,l,y){return d(e.transporter.write({method:m,path:p("1/indexes/%s/operation",i),data:{operation:"move",destination:l}},y),function(l,m){return ue(e)(i,{methods:{waitTask:dt}}).waitTask(l.taskID,m)})}},he=function(e){return function(i,l){return d(e.transporter.write({method:m,path:"1/indexes/*/batch",data:{requests:i}},l),function(i,l){return Promise.all(Object.keys(i.taskID).map(function(m){return ue(e)(m,{methods:{waitTask:dt}}).waitTask(i.taskID[m],l)}))})}},pe=function(e){return function(i,l){return e.transporter.read({method:m,path:"1/indexes/*/objects",data:{requests:i}},l)}},me=function(e){return function(i,l){var y=i.map(function(e){return r(r({},e),{},{params:E(e.params||{})})});return e.transporter.read({method:m,path:"1/indexes/*/queries",data:{requests:y},cacheable:!0},l)}},ge=function(e){return function(i,l){return Promise.all(i.map(function(i){var m=i.params,y=m.facetName,v=m.facetQuery,b=n(m,["facetName","facetQuery"]);return ue(e)(i.indexName,{methods:{searchForFacetValues:ut}}).searchForFacetValues(y,v,r(r({},l),b))}))}},ye=function(e){return function(i,m){var y=g(m);return y.queryParameters["X-Algolia-User-ID"]=i,e.transporter.write({method:l,path:"1/clusters/mapping"},y)}},ve=function(e){return function(i,l,y){var v=l.map(function(e){return{action:"addEntry",body:e}});return d(e.transporter.write({method:m,path:p("/1/dictionaries/%s/batch",i),data:{clearExistingDictionaryEntries:!0,requests:v}},y),function(i,l){return je(e)(i.taskID,l)})}},be=function(e){return function(i,l){return d(e.transporter.write({method:m,path:p("1/keys/%s/restore",i)},l),function(l,m){return f(function(l){return ee(e)(i,m).catch(function(e){if(404!==e.status)throw e;return l()})})})}},we=function(e){return function(i,l,y){var v=l.map(function(e){return{action:"addEntry",body:e}});return d(e.transporter.write({method:m,path:p("/1/dictionaries/%s/batch",i),data:{clearExistingDictionaryEntries:!1,requests:v}},y),function(i,l){return je(e)(i.taskID,l)})}},Pe=function(e){return function(i,l,y){return e.transporter.read({method:m,path:p("/1/dictionaries/%s/search",i),data:{query:l},cacheable:!0},y)}},Oe=function(e){return function(i,l){return e.transporter.read({method:m,path:"1/clusters/mapping/search",data:{query:i}},l)}},Ie=function(e){return function(i,l){return d(e.transporter.write({method:"PUT",path:"/1/dictionaries/*/settings",data:i},l),function(i,l){return je(e)(i.taskID,l)})}},xe=function(e){return function(i,l){var m=Object.assign({},l),y=l||{},v=y.queryParameters,b=n(y,["queryParameters"]),S=["acl","indexes","referers","restrictSources","queryParameters","description","maxQueriesPerIPPerHour","maxHitsPerQuery"];return d(e.transporter.write({method:"PUT",path:p("1/keys/%s",i),data:v?{queryParameters:v}:{}},b),function(l,y){return f(function(l){return ee(e)(i,y).then(function(e){return Object.keys(m).filter(function(e){return -1!==S.indexOf(e)}).every(function(i){if(Array.isArray(e[i])&&Array.isArray(m[i])){var l=e[i];return l.length===m[i].length&&l.every(function(e,l){return e===m[i][l]})}return e[i]===m[i]})?Promise.resolve():l()})})})}},je=function(e){return function(i,l){return f(function(m){return te(e)(i,l).then(function(e){return"published"!==e.status?m():void 0})})}},qe=function(e){return function(i,l){return d(e.transporter.write({method:m,path:p("1/indexes/%s/batch",e.indexName),data:{requests:i}},l),function(i,l){return dt(e)(i.taskID,l)})}},De=function(e){return function(i){return K(r(r({shouldStop:function(e){return void 0===e.curs
1or}},i),{},{request:function(l){return e.transporter.read({method:m,path:p("1/indexes/%s/browse",e.indexName),data:l},i)}}))}},Te=function(e){return function(i){var l=r({hitsPerPage:1e3},i);return K(r(r({shouldStop:function(e){return e.hits.length<l.hitsPerPage}},l),{},{request:function(i){return st(e)("",r(r({},l),i)).then(function(e){return r(r({},e),{},{hits:e.hits.map(function(e){return delete e._highlightResult,e})})})}}))}},ke=function(e){return function(i){var l=r({hitsPerPage:1e3},i);return K(r(r({shouldStop:function(e){return e.hits.length<l.hitsPerPage}},l),{},{request:function(i){return ct(e)("",r(r({},l),i)).then(function(e){return r(r({},e),{},{hits:e.hits.map(function(e){return delete e._highlightResult,e})})})}}))}},Se=function(e){return function(i,l,m){var y=m||{},v=y.batchSize,b=n(y,["batchSize"]),S={taskIDs:[],objectIDs:[]};return d(function n(){var m,y=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,j=[];for(m=y;m<i.length&&(j.push(i[m]),j.length!==(v||1e3));m++);return 0===j.length?Promise.resolve(S):qe(e)(j.map(function(e){return{action:l,body:e}}),b).then(function(e){return S.objectIDs=S.objectIDs.concat(e.objectIDs),S.taskIDs.push(e.taskID),n(++m)})}(),function(i,l){return Promise.all(i.taskIDs.map(function(i){return dt(e)(i,l)}))})}},Ne=function(e){return function(i){return d(e.transporter.write({method:m,path:p("1/indexes/%s/clear",e.indexName)},i),function(i,l){return dt(e)(i.taskID,l)})}},Ee=function(e){return function(i){var l=i||{},y=l.forwardToReplicas,v=g(n(l,["forwardToReplicas"]));return y&&(v.queryParameters.forwardToReplicas=1),d(e.transporter.write({method:m,path:p("1/indexes/%s/rules/clear",e.indexName)},v),function(i,l){return dt(e)(i.taskID,l)})}},Ae=function(e){return function(i){var l=i||{},y=l.forwardToReplicas,v=g(n(l,["forwardToReplicas"]));return y&&(v.queryParameters.forwardToReplicas=1),d(e.transporter.write({method:m,path:p("1/indexes/%s/synonyms/clear",e.indexName)},v),function(i,l){return dt(e)(i.taskID,l)})}},Re=function(e){return function(i,l){return d(e.transporter.write({method:m,path:p("1/indexes/%s/deleteByQuery",e.indexName),data:i},l),function(i,l){return dt(e)(i.taskID,l)})}},Ce=function(e){return function(i){return d(e.transporter.write({method:l,path:p("1/indexes/%s",e.indexName)},i),function(i,l){return dt(e)(i.taskID,l)})}},Ue=function(e){return function(i,l){return d(ze(e)([i],l).then(function(e){return{taskID:e.taskIDs[0]}}),function(i,l){return dt(e)(i.taskID,l)})}},ze=function(e){return function(i,l){var m=i.map(function(e){return{objectID:e}});return Se(e)(m,y.DeleteObject,l)}},Je=function(e){return function(i,m){var y=m||{},v=y.forwardToReplicas,b=g(n(y,["forwardToReplicas"]));return v&&(b.queryParameters.forwardToReplicas=1),d(e.transporter.write({method:l,path:p("1/indexes/%s/rules/%s",e.indexName,i)},b),function(i,l){return dt(e)(i.taskID,l)})}},Fe=function(e){return function(i,m){var y=m||{},v=y.forwardToReplicas,b=g(n(y,["forwardToReplicas"]));return v&&(b.queryParameters.forwardToReplicas=1),d(e.transporter.write({method:l,path:p("1/indexes/%s/synonyms/%s",e.indexName,i)},b),function(i,l){return dt(e)(i.taskID,l)})}},We=function(e){return function(i){return Qe(e)(i).then(function(){return!0}).catch(function(e){if(404!==e.status)throw e;return!1})}},He=function(e){return function(i,l,y){return e.transporter.read({method:m,path:p("1/answers/%s/prediction",e.indexName),data:{query:i,queryLanguages:l},cacheable:!0},y)}},Ke=function(e){return function(i,l){var m=l||{},y=m.query,v=m.paginate,b=n(m,["query","paginate"]),S=0;return function n(){return it(e)(y||"",r(r({},b),{},{page:S})).then(function(e){for(var l=0,m=Object.entries(e.hits);l<m.length;l++){var y=a(m[l],2),b=y[0],j=y[1];if(i(j))return{object:j,position:parseInt(b,10),page:S}}if(S++,!1===v||S>=e.nbPages)throw{name:"ObjectNotFoundError",message:"Object not found."};return n()})}()}},Me=function(e){return function(i,l){return e.transporter.read({method:"GET",path:p("1/indexes/%s/%s",e.indexName,i)},l)}},Be=function(){return function(e,i){for(var l=0,m=Object.entries(e.hits);l<m.length;l++){var y=a(m[l],2),v=y[0];if(y[1].objectID===i)return parseInt(v,10)}return -1}},Ge=function(e){return function(i,l){var y=l||{},v=y.attributesToRetrieve,b=n(y,["attributesToRetrieve"]),S=i.map(function(i){return r({indexName:e.indexName,objectID:i},v?{attributesToRetrieve:v}:{})});return e.transporter.read({method:m,path:"1/indexes/*/objects",data:{requests:S}},b)}},Le=function(e){return function(i,l){return e.transporter.read({method:"GET",path:p("1/indexes/%s/rules/%s",e.indexName,i)},l)}},Qe=function(e){return function(i){return e.transporter.read({method:"GET",path:p("1/indexes/%s/settings",e.indexName),data:{getVersion:2}},i)}},Ve=function(e){return function(i,l){return e.transporter.read({method:"GET",path:p("1/indexes/%s/synonyms/%s",e.indexName,i)},l)}},_e=function(e){return function(i,l){return d(Xe(e)([i],l).then(function(e){return{objectID:e.objectIDs[0],taskID:e.taskIDs[0]}}),function(i,l){return dt(e)(i.taskID,l)})}},Xe=function(e){return function(i,l){var m=l||{},v=m.createIfNotExists,b=n(m,["createIfNotExists"]),S=v?y.PartialUpdateObject:y.PartialUpdateObjectNoCreate;return Se(e)(i,S,b)}},Ye=function(e){return function(i,l){var y=l||{},v=y.safe,b=y.autoGenerateObjectIDIfNotExist,S=y.batchSize,j=n(y,["safe","autoGenerateObjectIDIfNotExist","batchSize"]),h=function(i,l,y,v){return d(e.transporter.write({method:m,path:p("1/indexes/%s/operation",i),data:{operation:y,destination:l}},v),function(i,l){return dt(e)(i.taskID,l)})},x=Math.random().toString(36).substring(7),w="".concat(e.indexName,"_tmp_").concat(x),I=tt({appId:e.appId,transporter:e.transporter,indexName:w}),N=[],D=h(e.indexName,w,"copy",r(r({},j),{},{scope:["settings","synonyms","rules"]}));return N.push(D),d((v?D.wait(j):D).then(function(){var e=I(i,r(r({},j),{},{autoGenerateObjectIDIfNotExist:b,batchSize:S}));return N.push(e),v?e.wait(j):e}).then(function(){var i=h(w,e.indexName,"move",j);return N.push(i),v?i.wait(j):i}).then(function(){return Promise.all(N)}).then(function(e){var i=a(e,3),l=i[0],m=i[1],y=i[2];return{objectIDs:m.objectIDs,taskIDs:[l.taskID].concat(o(m.taskIDs),[y.taskID])}}),function(e,i){return Promise.all(N.map(function(e){return e.wait(i)}))})}}
1,Ze=function(e){return function(i,l){return nt(e)(i,r(r({},l),{},{clearExistingRules:!0}))}},$e=function(e){return function(i,l){return ot(e)(i,r(r({},l),{},{clearExistingSynonyms:!0}))}},et=function(e){return function(i,l){return d(tt(e)([i],l).then(function(e){return{objectID:e.objectIDs[0],taskID:e.taskIDs[0]}}),function(i,l){return dt(e)(i.taskID,l)})}},tt=function(e){return function(i,l){var m=l||{},v=m.autoGenerateObjectIDIfNotExist,b=n(m,["autoGenerateObjectIDIfNotExist"]),S=v?y.AddObject:y.UpdateObject;if(S===y.UpdateObject){var j=!0,x=!1,w=void 0;try{for(var I,N=i[Symbol.iterator]();!(j=(I=N.next()).done);j=!0)if(void 0===I.value.objectID)return d(Promise.reject({name:"MissingObjectIDError",message:"All objects must have an unique objectID (like a primary key) to be valid. Algolia is also able to generate objectIDs automatically but *it's not recommended*. To do it, use the `{'autoGenerateObjectIDIfNotExist': true}` option."}))}catch(e){x=!0,w=e}finally{try{j||null==N.return||N.return()}finally{if(x)throw w}}}return Se(e)(i,S,b)}},rt=function(e){return function(i,l){return nt(e)([i],l)}},nt=function(e){return function(i,l){var y=l||{},v=y.forwardToReplicas,b=y.clearExistingRules,S=g(n(y,["forwardToReplicas","clearExistingRules"]));return v&&(S.queryParameters.forwardToReplicas=1),b&&(S.queryParameters.clearExistingRules=1),d(e.transporter.write({method:m,path:p("1/indexes/%s/rules/batch",e.indexName),data:i},S),function(i,l){return dt(e)(i.taskID,l)})}},at=function(e){return function(i,l){return ot(e)([i],l)}},ot=function(e){return function(i,l){var y=l||{},v=y.forwardToReplicas,b=y.clearExistingSynonyms,S=y.replaceExistingSynonyms,j=g(n(y,["forwardToReplicas","clearExistingSynonyms","replaceExistingSynonyms"]));return v&&(j.queryParameters.forwardToReplicas=1),(S||b)&&(j.queryParameters.replaceExistingSynonyms=1),d(e.transporter.write({method:m,path:p("1/indexes/%s/synonyms/batch",e.indexName),data:i},j),function(i,l){return dt(e)(i.taskID,l)})}},it=function(e){return function(i,l){return e.transporter.read({method:m,path:p("1/indexes/%s/query",e.indexName),data:{query:i},cacheable:!0},l)}},ut=function(e){return function(i,l,y){return e.transporter.read({method:m,path:p("1/indexes/%s/facets/%s/query",e.indexName,i),data:{facetQuery:l},cacheable:!0},y)}},st=function(e){return function(i,l){return e.transporter.read({method:m,path:p("1/indexes/%s/rules/search",e.indexName),data:{query:i}},l)}},ct=function(e){return function(i,l){return e.transporter.read({method:m,path:p("1/indexes/%s/synonyms/search",e.indexName),data:{query:i}},l)}},ft=function(e){return function(i,l){var m=l||{},y=m.forwardToReplicas,v=g(n(m,["forwardToReplicas"]));return y&&(v.queryParameters.forwardToReplicas=1),d(e.transporter.write({method:"PUT",path:p("1/indexes/%s/settings",e.indexName),data:i},v),function(i,l){return dt(e)(i.taskID,l)})}},dt=function(e){return function(i,l){return f(function(m){return e.transporter.read({method:"GET",path:p("1/indexes/%s/task/%s",e.indexName,i.toString())},l).then(function(e){return"published"!==e.status?m():void 0})})}},y={AddObject:"addObject",UpdateObject:"updateObject",PartialUpdateObject:"partialUpdateObject",PartialUpdateObjectNoCreate:"partialUpdateObjectNoCreate",DeleteObject:"deleteObject"},v={Settings:"settings",Synonyms:"synonyms",Rules:"rules"},yt=function(e){return function(i,l){var y=i.map(function(e){return r(r({},e),{},{threshold:e.threshold||0})});return e.transporter.read({method:m,path:"1/indexes/*/recommendations",data:{requests:y},cacheable:!0},l)}},vt=function(e){return function(i,l){return yt(e)(i.map(function(e){return r(r({},e),{},{fallbackParameters:{},model:"bought-together"})}),l)}}
1,bt=function(e){return function(i,l){return yt(e)(i.map(function(e){return r(r({},e),{},{model:"related-products"})}),l)}},wt=function(e){return function(i,l){var y=i.map(function(e){return r(r({},e),{},{model:"trending-facets",threshold:e.threshold||0})});return e.transporter.read({method:m,path:"1/indexes/*/recommendations",data:{requests:y},cacheable:!0},l)}},Pt=function(e){return function(i,l){var y=i.map(function(e){return r(r({},e),{},{model:"trending-items",threshold:e.threshold||0})});return e.transporter.read({method:m,path:"1/indexes/*/recommendations",data:{requests:y},cacheable:!0},l)}},Ot=function(e){return function(i,l){return yt(e)(i.map(function(e){return r(r({},e),{},{model:"looking-similar"})}),l)}},It=function(e){return function(i,l){var y=i.map(function(e){return r(r({},e),{},{model:"recommended-for-you",threshold:e.threshold||0})});return e.transporter.read({method:m,path:"1/indexes/*/recommendations",data:{requests:y},cacheable:!0},l)}};function qt(e){return{name:"TransformationConfigurationError",message:e}}function Dt(l,v,b){var S,j,x,w,I,N,D,q,er,en,ei,ea,es,eo={appId:l,apiKey:v,timeouts:{connect:1,read:2,write:30},requester:{send:function(e){return new Promise(function(i){var l=new XMLHttpRequest;l.open(e.method,e.url,!0),Object.keys(e.headers).forEach(function(i){return l.setRequestHeader(i,e.headers[i])});var m,a=function(e,m){return setTimeout(function(){l.abort(),i({status:0,content:m,isTimedOut:!0})},1e3*e)},y=a(e.connectTimeout,"Connection timeout");l.onreadystatechange=function(){l.readyState>l.OPENED&&void 0===m&&(clearTimeout(y),m=a(e.responseTimeout,"Socket timeout"))},l.onerror=function(){0===l.status&&(clearTimeout(y),clearTimeout(m),i({content:l.responseText||"Network request failed",status:l.status,isTimedOut:!1}))},l.onload=function(){clearTimeout(y),clearTimeout(m),i({content:l.responseText,status:l.status,isTimedOut:!1})},l.send(e.data)})}},logger:{debug:function(e,i){return Promise.resolve()},info:function(e,i){return Promise.resolve()},error:function(e,i){return console.error(e,i),Promise.resolve()}},responsesCache:s(),requestsCache:s({serializable:!1}),hostsCache:function u(e){var i=o(e.caches),l=i.shift();return void 0===l?{get:function(e,i){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return i().then(function(e){return Promise.all([e,l.miss(e)])}).then(function(e){return a(e,1)[0]})},set:function(e,i){return Promise.resolve(i)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(e,m){var y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return l.get(e,m,y).catch(function(){return u({caches:i}).get(e,m,y)})},set:function(e,m){return l.set(e,m).catch(function(){return u({caches:i}).set(e,m)})},delete:function(e){return l.delete(e).catch(function(){return u({caches:i}).delete(e)})},clear:function(){return l.clear().catch(function(){return u({caches:i}).clear()})}}}({caches:[(I={key:"".concat("4.25.2","-").concat(l)},D="algoliasearch-client-js-".concat(I.key),q=function(){return void 0===N&&(N=I.localStorage||window.localStorage),N},er=function(){return JSON.parse(q().getItem(D)||"{}")},en=function(e){q().setItem(D,JSON.stringify(e))},ei=function(){var e=I.timeToLive?1e3*I.timeToLive:null,i=Object.fromEntries(Object.entries(er()).filter(function(e){return void 0!==a(e,2)[1].timestamp}));en(i),e&&en(Object.fromEntries(Object.entries(i).filter(function(i){var l=a(i,2)[1],m=(new Date).getTime();return!(l.timestamp+e<m)})))},{get:function(e,i){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then(function(){ei();var i=JSON.stringify(e);return er()[i]}).then(function(e){return Promise.all([e?e.value:i(),void 0!==e])}).then(function(e){var i=a(e,2),m=i[0];return Promise.all([m,i[1]||l.miss(m)])}).then(function(e){return a(e,1)[0]})},set:function(e,i){return Promise.resolve().then(function(){var l=er();return l[JSON.stringify(e)]={timestamp:(new Date).getTime(),value:i},q().setItem(D,JSON.stringify(l)),i})},delete:function(e){return Promise.resolve().then(function(){var i=er();delete i[JSON.stringify(e)],q().setItem(D,JSON.stringify(i))})},clear:function(){return Promise.resolve().then(function(){q().removeItem(D)})}}),s()]}),userAgent:(ea={value:"Algolia for JavaScript (".concat("4.25.2",")"),add:function(e){var i="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return -1===ea.value.indexOf(i)&&(ea.value="".concat(ea.value).concat(i)),ea}}).add({segment:"Browser"})},ec=r(r({},eo),b),g=function(){return function(i){var l,m,y,v;return m=(l=r(r(r({},eo),i),{},{methods:{getPersonalizationStrategy:W,setPersonalizationStrategy:H}})).region||"us",y=c(e.WithinHeaders,l.appId,l.apiKey),v=k(r(r({hosts:[{url:"personalization.".concat(m,".algolia.com")}]},l),{},{headers:r(r(r({},y.headers()),{"content-type":"application/json"}),l.headers),queryParameters:r(r({},y.queryParameters()),l.queryParameters)})),h({appId:l.appId,transporter:v},l.methods)}};if(b&&b.transformation){if(!b.transformation.region)throw qt("`region` must be provided when leveraging the transformation pipeline");es=function(l){if(!l||!l.transformation||!l.transformation.region)throw qt("`region` must be provided when leveraging the transformation pipeline");if("eu"!==l.transformation.region&&"us"!==l.transformation.region)throw qt("`region` is required and must be one of the following: eu, us");var y=l.appId,v=c(e.WithinHeaders,y,l.apiKey),b=k(r(r({hosts:[{url:"data.".concat(l.transformation.region,".algolia.com"),accept:i.ReadWrite,protocol:"https"}]},l),{},{headers:r(r(r({},v.headers()),{"content-type":"text/plain"}),l.headers),queryParameters:r(r({},v.queryParameters()),l.queryParameters)}));return{transporter:b,appId:y,addAlgoliaAgent:function(e,i){b.userAgent.add({segment:e,version:i}),b.userAgent.add({segment:"Ingestion",version:i}),b.userAgent.add({segment:"Ingestion via Algoliasearch"})},clearCache:function(){return Promise.all([b.requestsCache.clear(),b.responsesCache.clear()]).then(function(){})},push:function(e,i){var l=e.indexName,y=e.pushTaskPayload,v=e.watch;if(!l)throw qt("Parameter `indexName` is required when calling `push`.");if(!y)throw qt("Parameter `pushTaskPayload` is required when calling `push`.");if(!y.action)throw qt("Parameter `pushTaskPayload.action` is required when calling `push`.");if(!y.records)throw qt("Parameter `pushTaskPayload.records` is required when calling `push`.");var S=i||{queryParameters:{}};return b.write({method:m,path:p("1/push/%s",l),data:y},r(r({},S),{},{queryParameters:r(r({},S.queryParameters),{},{watch:void 0!==v})}))}}}(r(r({},b),eo))}return j=(S=r(r({},ec),{},{methods:{search:me,searchForFacetValues:ge,multipleBatch:he,multipleGetObjects:pe,multipleQueries:me,copyIndex:Q,copySettings:_,copySynonyms:X,copyRules:V,moveIndex:le,listIndices:fe,getLogs:ne,listCluster
1s:ce,multipleSearchForFacetValues:ge,getApiKey:ee,addApiKey:M,listApiKeys:se,updateApiKey:xe,deleteApiKey:Z,restoreApiKey:be,assignUserID:B,assignUserIDs:G,getUserID:oe,searchUserIDs:Oe,listUserIDs:de,getTopUserIDs:ae,removeUserID:ye,hasPendingMappings:ie,clearDictionaryEntries:L,deleteDictionaryEntries:$,getDictionarySettings:re,getAppTask:te,replaceDictionaryEntries:ve,saveDictionaryEntries:we,searchDictionaryEntries:Pe,setDictionarySettings:Ie,waitAppTask:je,customRequest:Y,initIndex:function(e){return function(i){var l,m;return r(r({},ue(e)(i,{methods:{batch:qe,delete:Ce,findAnswers:He,getObject:Me,getObjects:Ge,saveObject:et,saveObjects:tt,search:it,searchForFacetValues:ut,waitTask:dt,setSettings:ft,getSettings:Qe,partialUpdateObject:_e,partialUpdateObjects:Xe,deleteObject:Ue,deleteObjects:ze,deleteBy:Re,clearObjects:Ne,browseObjects:De,getObjectPosition:Be,findObject:Ke,exists:We,saveSynonym:at,saveSynonyms:ot,getSynonym:Ve,searchSynonyms:ct,browseSynonyms:ke,deleteSynonym:Fe,clearSynonyms:Ae,replaceAllObjects:Ye,replaceAllSynonyms:$e,searchRules:st,getRule:Le,deleteRule:Je,saveRule:rt,saveRules:nt,replaceAllRules:Ze,browseRules:Te,clearRules:Ee}})),{},{saveObjectsWithTransformation:(l=es,function(e,m){if(!l)throw qt("`options.transformation.region` must be provided at client instantiation before calling this method.");var v=m||{},b=v.autoGenerateObjectIDIfNotExist,S=v.watch,j=n(v,["autoGenerateObjectIDIfNotExist","watch"]),x=b?y.AddObject:y.UpdateObject;return l.push({indexName:i,pushTaskPayload:{action:x,records:e},watch:S},j)}),partialUpdateObjectsWithTransformation:(m=es,function(e,l){if(!m)throw qt("`options.transformation.region` must be provided at client instantiation before calling this method.");var v=l||{},b=v.createIfNotExists,S=v.watch,j=n(v,["createIfNotExists","watch"]),x=b?y.PartialUpdateObject:y.PartialUpdateObjectNoCreate;return m.push({indexName:i,pushTaskPayload:{action:x,records:e},watch:S},j)})})}},initAnalytics:function(){return function(i){var l,m,y,v;return m=(l=r(r(r({},eo),i),{},{methods:{addABTest:C,getABTest:z,getABTests:J,stopABTest:F,deleteABTest:U}})).region||"us",y=c(e.WithinHeaders,l.appId,l.apiKey),v=k(r(r({hosts:[{url:"analytics.".concat(m,".algolia.com")}]},l),{},{headers:r(r(r({},y.headers()),{"content-type":"application/json"}),l.headers),queryParameters:r(r({},y.queryParameters()),l.queryParameters)})),h({appId:l.appId,transporter:v},l.methods)}},initPersonalization:g,initRecommendation:function(){return function(e){return ec.logger.info("The `initRecommendation` method is deprecated. Use `initPersonalization` instead."),g()(e)}},getRecommendations:yt,getFrequentlyBoughtTogether:vt,getLookingSimilar:Ot,getRecommendedForYou:It,getRelatedProducts:bt,getTrendingFacets:wt,getTrendingItems:Pt}})).appId,x=c(void 0!==S.authMode?S.authMode:e.WithinHeaders,j,S.apiKey),h({transporter:w=k(r(r({hosts:[{url:"".concat(j,"-dsn.algolia.net"),accept:i.Read},{url:"".concat(j,".algolia.net"),accept:i.Write}].concat(function(e){for(var i=e.length-1;i>0;i--){var l=Math.floor(Math.random()*(i+1)),m=e[i];e[i]=e[l],e[l]=m}return e}([{url:"".concat(j,"-1.algolianet.com")},{url:"".concat(j,"-2.algolianet.com")},{url:"".concat(j,"-3.algolianet.com")}]))},S),{},{headers:r(r(r({},x.headers()),{"content-type":"application/x-www-form-urlencoded"}),S.headers),queryParameters:r(r({},x.queryParameters()),S.queryParameters)})),appId:j,addAlgoliaAgent:function(e,i){w.userAgent.add({segment:e,version:i})},clearCache:function(){return Promise.all([w.requestsCache.clear(),w.responsesCache.clear()]).then(function(){})}},S.methods)}return Dt.version="4.25.2",Dt}()},597:function(e,i,l){var m=l(34155);l(91479);var y=l(67294),v=y&&"object"==typeof y&&"default"in y?y:{default:y};function _defineProperties(e,i){for(var l=0;l<i.length;l++){var m=i[l];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(e,m.key,m)}}var b=void 0!==m&&m.env&&!0,isString=function(e){return"[object String]"===Object.prototype.toString.call(e)},S=function(){function StyleSheet(e){var i=void 0===e?{}:e,l=i.name,m=void 0===l?"stylesheet":l,y=i.optimizeForSpeed,v=void 0===y?b
1:y;invariant$1(isString(m),"`name` must be a string"),this._name=m,this._deletedRulePlaceholder="#"+m+"-deleted-rule____{}",invariant$1("boolean"==typeof v,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=v,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var S=document.querySelector('meta[property="csp-nonce"]');this._nonce=S?S.getAttribute("content"):null}var e,i=StyleSheet.prototype;return i.setOptimizeForSpeed=function(e){invariant$1("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),invariant$1(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},i.isOptimizeForSpeed=function(){return this._optimizeForSpeed},i.inject=function(){var e=this;if(invariant$1(!this._injected,"sheet already injected"),this._injected=!0,this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(b||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(i,l){return"number"==typeof l?e._serverSheet.cssRules[l]={cssText:i}:e._serverSheet.cssRules.push({cssText:i}),l},deleteRule:function(i){e._serverSheet.cssRules[i]=null}}},i.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var i=0;i<document.styleSheets.length;i++)if(document.styleSheets[i].ownerNode===e)return document.styleSheets[i]},i.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},i.insertRule=function(e,i){if(invariant$1(isString(e),"`insertRule` accepts only strings"),this._optimizeForSpeed){var l=this.getSheet();"number"!=typeof i&&(i=l.cssRules.length);try{l.insertRule(e,i)}catch(i){return b||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var m=this._tags[i];this._tags.push(this.makeStyleTag(this._name,e,m))}return this._rulesCount++},i.replaceRule=function(e,i){if(this._optimizeForSpeed){var l=this.getSheet();if(i.trim()||(i=this._deletedRulePlaceholder),!l.cssRules[e])return e;l.deleteRule(e);try{l.insertRule(i,e)}catch(m){b||console.warn("StyleSheet: illegal rule: \n\n"+i+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),l.insertRule(this._deletedRulePlaceholder,e)}}else{var m=this._tags[e];invariant$1(m,"old rule at index `"+e+"` not found"),m.textContent=i}return e},i.deleteRule=function(e){if(this._optimizeForSpeed)this.replaceRule(e,"");else{var i=this._tags[e];invariant$1(i,"rule at index `"+e+"` not found"),i.parentNode.removeChild(i),this._tags[e]=null}},i.flush=function(){this._injected=!1,this._rulesCount=0,this._tags.forEac
1h(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]},i.cssRules=function(){var e=this;return this._tags.reduce(function(i,l){return l?i=i.concat(Array.prototype.map.call(e.getSheetForTag(l).cssRules,function(i){return i.cssText===e._deletedRulePlaceholder?null:i})):i.push(null),i},[])},i.makeStyleTag=function(e,i,l){i&&invariant$1(isString(i),"makeStyleTag accepts only strings as second parameter");var m=document.createElement("style");this._nonce&&m.setAttribute("nonce",this._nonce),m.type="text/css",m.setAttribute("data-"+e,""),i&&m.appendChild(document.createTextNode(i));var y=document.head||document.getElementsByTagName("head")[0];return l?y.insertBefore(m,l):y.appendChild(m),m},_defineProperties(StyleSheet.prototype,[{key:"length",get:function(){return this._rulesCount}}]),e&&_defineProperties(StyleSheet,e),StyleSheet}();function invariant$1(e,i){if(!e)throw Error("StyleSheet: "+i+".")}var stringHash=function(e){for(var i=5381,l=e.length;l;)i=33*i^e.charCodeAt(--l);return i>>>0},j={};function computeId(e,i){if(!i)return"jsx-"+e;var l=String(i),m=e+l;return j[m]||(j[m]="jsx-"+stringHash(e+"-"+l)),j[m]}function computeSelector(e,i){var l=e+i;return j[l]||(j[l]=i.replace(/__jsx-style-dynamic-selector/g,e)),j[l]}var x=function(){function StyleSheetRegistry(e){var i=void 0===e?{}:e,l=i.styleSheet,m=void 0===l?null:l,y=i.optimizeForSpeed,v=void 0!==y&&y;this._sheet=m||new S({name:"styled-jsx",optimizeForSpeed:v}),this._sheet.inject(),m&&"boolean"==typeof v&&(this._sheet.setOptimizeForSpeed(v),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var e=StyleSheetRegistry.prototype;return e.add=function(e){var i=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,i){return e[i]=0,e},{}));var l=this.getIdAndRules(e),m=l.styleId,y=l.rules;if(m in this._instancesCounts){this._instancesCounts[m]+=1;return}var v=y.map(function(e){return i._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[m]=v,this._instancesCounts[m]=1},e.remove=function(e){var i=this,l=this.getIdAndRules(e).styleId;if(function(e,i){if(!e)throw Error("StyleSheetRegistry: "+i+".")}(l in this._instancesCounts,"styleId: `"+l+"` not found"),this._instancesCounts[l]-=1,this._instancesCounts[l]<1){var m=this._fromServer&&this._fromServer[l];m?(m.parentNode.removeChild(m),delete this._fromServer[l]):(this._indices[l].forEach(function(e){return i._sheet.deleteRule(e)}),delete this._indices[l]),delete this._instancesCounts[l]}},e.update=function(e,i){this.add(i),this.remove(e)},e.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},e.cssRules=function(){var e=this,i=this._fromServer?Object.keys(this._fromServer).map(function(i){return[i,e._fromServer[i]]}):[],l=this._sheet.cssRules();return i.concat(Object.keys(this._indices).map(function(i){return[i,e._indices[i].map(function(e){return l[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},e.styles=function(e){var i,l;return i=this.cssRules(),void 0===(l=e)&&(l={}),i.map(function(e){var i=e[0],m=e[1];return v.default.createElement("style",{id:"__"+i,key:"__"+i,nonce:l.nonce?l.nonce:void 0,dangerouslySetInnerHTML:{__html:m}})})},e.getIdAndRules=function(e){var i=e.children,l=e.dynamic,m=e.id;if(l){var y=computeId(m,l);return{styleId:y,rules:Array.isArray(i)?i.map(function(e){return computeSelector(y,e)}):[computeSelector(y,i)]}}return{styleId:computeId(m),rules:Array.isArray(i)?i:[i]}},e.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,i){return e[i.id.slice(2)]=i,e},{})},StyleSheetRegistry}(),w=y.createContext(null);w.displayName="StyleSheetContext";var I=v.default.useInsertionEffect||v.default.useLayoutEffect,N=new x;function JSXStyle(e){var i=N||y.useContext(w);return i&&I(function(){return i.add(e),function(){i.remove(e)}},[e.id,String(e.dynamic)]),null}JSXStyle.dynamic=function(e){return e.map(function(e){return computeId(e[0],e[1])}).join(" ")},i.style=JSXStyle},5379:function(e,i,l){"use strict";e.exports=l(597).style},91479:function(){},57214:function(){},89978:function(e,i,l){"use strict";l.d(i,{JV:function(){return createClassNames}});var m=l(93967),y=l.n(m),createClassNames=function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ais";return function(){for(var l=arguments.length,m=Array(l),v=0;v<l;v++)m[v]=arguments[v];var b=m.filter(function(e){return e||""===e}).map(function(l){var m="".concat(i,"-").concat(e);return l?"".concat(m,"-").concat(l):m});return y()(b)}}},44140:function(e,i,l){"use strict";l.d(i,{Z:function(){return q}});var m=l(23744),y=l(3120),v=l(73976),b=(0,m.Z)({displayName:"AlgoliaHits",$$type:"ais.hits",getProvidedProps:function(e,i,l){var m=(0,y.O7)(l,{ais:e.contextValue,multiIndexContext:e.indexContextValue});if(!m)return{hits:[]};var b=(0,v.RC)(m.hits,m.hitsPerPage,m.page);return{hits:(0,v.Io)(b,m.queryID)}},getSearchParameters:function(e){return e}}),S=l(93967),j=l.n(S),x=l(45697),w=l.n(x),I=l(67294),N=(0,l(89978).JV)("Hits"),DefaultHitComponent=function(e){return I.createElement("div",{style:{borderBottom:"1px solid #bbb",paddingBottom:"5px",marginBottom:"5px",wordBreak:"break-all"}},JSON.stringify(e).slice(0,100),"...")},Hits=function(e){var i=e.hits,l=e.className,m=void 0===l?"":l,y=e.hit
1Component,v=void 0===y?DefaultHitComponent:y;return I.createElement("div",{className:j()(N(""),m)},I.createElement("ul",{className:N("list")},i.map(function(e){return I.createElement("li",{className:N("item"),key:e.objectID},I.createElement(v,{hit:e}))})))},D=w().shape({objectID:w().oneOfType([w().string,w().number]).isRequired});Hits.propTypes={hits:w().arrayOf(D.isRequired).isRequired,className:w().string,hitComponent:w().any};var q=b(Hits,{$$widgetType:"ais.hits"})},55800:function(e,i,l){"use strict";l.d(i,{Z:function(){return ei}});var m,y=l(45697),v=l.n(y),b=l(23744),S=l(3120);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 getId(){return"query"}function getCurrentRefinement(e,i,l){var m=getId(e);return(0,S.U6)(e,i,l,m,"")||""}function _refine(e,i,l,m){var y,v,b,j=(v={},(y=function(e,i){if("object"!==_typeof(e)||null===e)return e;var l=e[Symbol.toPrimitive];if(void 0!==l){var m=l.call(e,i||"default");if("object"!==_typeof(m))return m;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(e)}(b=getId(),"string"),(b="symbol"===_typeof(y)?y:String(y))in v)?Object.defineProperty(v,b,{value:l,enumerable:!0,configurable:!0,writable:!0}):v[b]=l,v);return(0,S.RD)(i,j,m,!0)}var j=(0,b.Z)({displayName:"AlgoliaSearchBox",$$type:"ais.searchBox",propTypes:{defaultRefinement:v().string},getProvidedProps:function(e,i,l){return{currentRefinement:getCurrentRefinement(e,i,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),isSearchStalled:l.isSearchStalled}},refine:function(e,i,l){return _refine(e,i,l,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(e,i){var l;return l={ais:e.contextValue,multiIndexContext:e.indexContextValue},(0,S.cI)(i,l,getId())},getSearchParameters:function(e,i,l){return e.setQuery(getCurrentRefinement(i,l,{ais:i.contextValue,multiIndexContext:i.indexContextValue}))},getMetadata:function(e,i){var l=getId(e),m=getCurrentRefinement(e,i,{ais:e.contextValue,multiIndexContext:e.indexContextValue});return{id:l,index:(0,S.WN)({ais:e.contextValue,multiIndexContext:e.indexContextValue}),items:null===m?[]:[{label:"".concat(l,": ").concat(m),value:function(i){return _refine(e,i,"",{ais:e.contextValue,multiIndexContext:e.indexContextValue})},currentRefinement:m}]}}}),x=l(93967),w=l.n(x),I=l(67294);function translatable_typeof(e){return(translatable_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 i=1;i<arguments.length;i++){var l=arguments[i];for(var m in l)Object.prototype.hasOwnProperty.call(l,m)&&(e[m]=l[m])}return e}).apply(this,arguments)}function _defineProperties(e,i){for(var l=0;l<i.length;l++){var m=i[l];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(e,translatable_toPropertyKey(m.key),m)}}function _setPrototypeOf(e,i){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,i){return e.__proto__=i,e})(e,i)}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 translatable_toPropertyKey(e){var i=function(e,i){if("object"!==translatable_typeof(e)||null===e)return e;var l=e[Symbol.toPrimitive];if(void 0!==l){var m=l.call(e,i||"default");if("object"!==translatable_typeof(m))return m;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(e)}(e,"string");return"symbol"===translatable_typeof(i)?i:String(i)}function SearchBox_typeof(e){return(SearchBox_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 SearchBox_extends(){return(SearchBox_extends=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var l=arguments[i];for(var m in l)Object.prototype.hasOwnProperty.call(l,m)&&(e[m]=l[m])}return e}).apply(this,arguments)}function ownKeys(e,i){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(e);i&&(m=m.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),l.push.apply(l,m)}return l}function _objectSpread(e){for(var i=1;i<arguments.length;i++){var l=null!=arguments[i]?arguments[i]:{};
1i%2?ownKeys(Object(l),!0).forEach(function(i){SearchBox_defineProperty(e,i,l[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):ownKeys(Object(l)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(l,i))})}return e}function SearchBox_defineProperties(e,i){for(var l=0;l<i.length;l++){var m=i[l];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(e,SearchBox_toPropertyKey(m.key),m)}}function SearchBox_setPrototypeOf(e,i){return(SearchBox_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,i){return e.__proto__=i,e})(e,i)}function SearchBox_assertThisInitialized(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function SearchBox_getPrototypeOf(e){return(SearchBox_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function SearchBox_defineProperty(e,i,l){return(i=SearchBox_toPropertyKey(i))in e?Object.defineProperty(e,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[i]=l,e}function SearchBox_toPropertyKey(e){var i=function(e,i){if("object"!==SearchBox_typeof(e)||null===e)return e;var l=e[Symbol.toPrimitive];if(void 0!==l){var m=l.call(e,i||"default");if("object"!==SearchBox_typeof(m))return m;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(e)}(e,"string");return"symbol"===SearchBox_typeof(i)?i:String(i)}var N=(0,l(89978).JV)("SearchBox"),D=I.createElement("svg",{width:"18",height:"18",viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",stroke:"#444",className:N("loadingIcon"),"aria-hidden":"true"},I.createElement("g",{fill:"none",fillRule:"evenodd"},I.createElement("g",{transform:"translate(1 1)",strokeWidth:"2"},I.createElement("circle",{strokeOpacity:".5",cx:"18",cy:"18",r:"18"}),I.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18"},I.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"}))))),q=I.createElement("svg",{className:N("resetIcon"),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",width:"10",height:"10","aria-hidden":"true"},I.createElement("path",{d:"M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z"})),er=I.createElement("svg",{className:N("submitIcon"),xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 40 40","aria-hidden":"true"},I.createElement("path",{d:"M26.804 29.01c-2.832 2.34-6.465 3.746-10.426 3.746C7.333 32.756 0 25.424 0 16.378 0 7.333 7.333 0 16.378 0c9.046 0 16.378 7.333 16.378 16.378 0 3.96-1.406 7.594-3.746 10.426l10.534 10.534c.607.607.61 1.59-.004 2.202-.61.61-1.597.61-2.202.004L26.804 29.01zm-10.426.627c7.323 0 13.26-5.936 13.26-13.26 0-7.32-5.937-13.257-13.26-13.257C9.056 3.12 3.12 9.056 3.12 16.378c0 7.323 5.936 13.26 13.258 13.26z"})),en=function(e){!function(e,i){if("function"!=typeof i&&null!==i)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(i&&i.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),i&&SearchBox_setPrototypeOf(e,i)}(SearchBox,e);var i,l,m,y=(i=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,l=SearchBox_getPrototypeOf(SearchBox);if(i){var m=SearchBox_getPrototypeOf(this).constructor;e=Reflect.construct(l,arguments,m)}else e=l.apply(this,arguments);return function(e,i){if(i&&("object"===SearchBox_typeof(i)||"function"==typeof i))return i;if(void 0!==i)throw TypeError("Derived constructors may only return object or undefined");return SearchBox_assertThisInitialized(e)}(this,e)});function SearchBox(e){var i;return!function(e,i){if(!(e instanceof i))throw TypeError("Cannot call a class as a function")}
1(this,SearchBox),SearchBox_defineProperty(SearchBox_assertThisInitialized(i=y.call(this)),"getQuery",function(){return i.props.searchAsYouType?i.props.currentRefinement:i.state.query}),SearchBox_defineProperty(SearchBox_assertThisInitialized(i),"onInputMount",function(e){i.input=e,i.props.inputRef&&("function"==typeof i.props.inputRef?i.props.inputRef(e):i.props.inputRef.current=e)}),SearchBox_defineProperty(SearchBox_assertThisInitialized(i),"onKeyDown",function(e){if(i.props.focusShortcuts){var l=i.props.focusShortcuts.map(function(e){return"string"==typeof e?e.toUpperCase().charCodeAt(0):e}),m=e.target||e.srcElement,y=m.tagName;if(!m.isContentEditable&&"INPUT"!==y&&"SELECT"!==y&&"TEXTAREA"!==y){var v=e.which||e.keyCode;-1!==l.indexOf(v)&&(i.input.focus(),e.stopPropagation(),e.preventDefault())}}}),SearchBox_defineProperty(SearchBox_assertThisInitialized(i),"onSubmit",function(e){e.preventDefault(),e.stopPropagation(),i.input.blur();var l=i.props,m=l.refine;return l.searchAsYouType||m(i.getQuery()),!1}),SearchBox_defineProperty(SearchBox_assertThisInitialized(i),"onChange",function(e){var l=i.props,m=l.searchAsYouType,y=l.refine,v=l.onChange,b=e.target.value;m?y(b):i.setState({query:b}),v&&v(e)}),SearchBox_defineProperty(SearchBox_assertThisInitialized(i),"onReset",function(e){var l=i.props,m=l.searchAsYouType,y=l.refine,v=l.onReset;y(""),i.input.focus(),m||i.setState({query:""}),v&&v(e)}),i.state={query:e.searchAsYouType?null:e.currentRefinement},i}return l=[{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.onKeyDown)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.onKeyDown)}},{key:"componentDidUpdate",value:function(e){this.props.searchAsYouType||e.currentRefinement===this.props.currentRefinement||this.setState({query:this.props.currentRefinement})}},{key:"render",value:function(){var e=this,i=this.props,l=i.className,m=i.inputId,y=i.translate,v=i.autoFocus,b=i.loadingIndicator,S=i.submit,j=i.reset,x=this.getQuery(),D=Object.keys(this.props).reduce(function(i,l){return -1===["onsubmit","onreset","onchange"].indexOf(l.toLowerCase())&&0===l.indexOf("on")?_objectSpread(_objectSpread({},i),{},SearchBox_defineProperty({},l,e.props[l])):i},{}),q=this.props.showLoadingIndicator&&this.props.isSearchStalled;return I.createElement("div",{className:w()(N(""),l)},I.createElement("form",{ref:this.props.formRef,noValidate:!0,onSubmit:this.props.onSubmit?this.props.onSubmit:this.onSubmit,onReset:this.onReset,className:N("form",q&&"form--stalledSearch"),action:"",role:"search"},I.createElement("input",SearchBox_extends({ref:this.onInputMount,id:m,type:"search",placeholder:y("placeholder"),autoFocus:v,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false",required:!0,maxLength:"512",value:x,onChange:this.onChange},D,{className:N("input")})),I.createElement("button",{type:"submit",title:y("submitTitle"),className:N("submit")},S),I.createElement("button",{type:"reset",title:y("resetTitle"),className:N("reset"),hidden:!x||q},j),this.props.showLoadingIndicator&&I.createElement("span",{hidden:!q,className:N("loadingIndicator")},b)))}}],SearchBox_defineProperties(SearchBox.prototype,l),m&&SearchBox_defineProperties(SearchBox,m),Object.defineProperty(SearchBox,"prototype",{writable:!1}),SearchBox}(I.Component);SearchBox_defineProperty(en,"propTypes",{currentRefinement:v().string,className:v().string,refine:v().func.isRequired,translate:v().func.isRequired,loadingIndicator:v().node,reset:v().node,submit:v().node,focusShortcuts:v().arrayOf(v().oneOfType([v().string,v().number])),autoFocus:v().bool,searchAsYouType:v().bool,onSubmit:v().func,onReset:v().func,onChange:v().func,isSearchStalled:v().bool,showLoadingIndicator:v().bool,formRef:v().oneOfType([v().func,v().exact({current:v().object})]),inputRef:v().oneOfType([v().func,v().exact({current:v().object})]),inputId:v().string}),SearchBox_defineProperty(en,"defaultProps",{currentRefinement:"",className:"",focusShortcuts:["s","/"],autoFocus:!1,searchAsYouType:!0,showLoadingIndicator:!1,isSearchStalled:!1,loadingIndicator:D,reset:q,submit:er});var ei=j((m={resetTitle:"Clear the search query.",submitTitle:"Submit your search query.",placeholder:"Search hereâ¦"},function(e){var i,l=function(i){!function(e,i){if("function"!=typeof i&&null!==i)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(i&&i.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),i&&_setPrototypeOf(e,i)}(Translatable,i);var l,y,v,b=(l=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,i=_getPrototypeOf(Translatable);if(l){var m=_getPrototypeOf(this).constructor;e=Reflect.construct(i,arguments,m)}else e=i.apply(this,arguments);return function(e,i){if(i&&("object"===translatable_typeof(i)||"function"==typeof i))return i;if(void 0!==i)throw TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}(this,e)});function Translatable(){!function(e,i){if(!(e instanceof i))throw TypeError("Cannot call a class as a function")}(this,Translatable);for(var e,i,l,y,v=arguments.length,S=Array(v),j=0;j<v;j++)S[j]=arguments[j];return i=_assertThisInitialized(e=b.call.apply(b,[this].concat(S))),l="translate",y=function(i){var l=e.props.translations,y=l&&l.hasOwnProperty(i)?l[i]:m[i];if("function"==typeof y){for(var v=arguments.length,b=Array(v>1?v-1:0),S=1;S<v;S++)b[S-1]=arguments[S];return y.apply(void 0,b)}return y},(l=translatable_toPropertyKey(l))in i?Object.defineProperty(i,l,{value:y,enumerable:!0,configurable:!0,writable:!0}):i[l]=y,e}return(y=[{key:"render",value:function(){return I.createElement(e,_extends({translate:this.translate},this.props))}}])&&_defineProperties(Translatable.prototype,y),v&&_defineProperties(Translatable,v),Object.defineProperty(Translatable,"prototype",{writable:!1}),Translatable}(I.Component),y=e.displayName||e.name||"UnknownComponent";return l.displayName="Translatable(".concat(y,")"),l.propTypes={translations:(i=Object.keys(m),function(e,l,m){var y=e[l];
1if(y)for(var v=0,b=Object.keys(y);v<b.length;v++){var S=b[v];if(-1===i.indexOf(S))return Error("Unknown `".concat(l,"` key `").concat(S,"`. Check the render method ")+"of `".concat(m,"`."))}})},l})(en),{$$widgetType:"ais.searchBox"})},93188:function(e,i,l){"use strict";var m=l(34937),y=l(81749),v=l(58593);function algoliasearchHelper(e,i,l){return new m(e,i,l)}algoliasearchHelper.version=l(95058),algoliasearchHelper.AlgoliaSearchHelper=m,algoliasearchHelper.SearchParameters=y,algoliasearchHelper.SearchResults=v,e.exports=algoliasearchHelper},3267:function(e,i,l){"use strict";var m=l(17331);function DerivedHelper(e,i){this.main=e,this.fn=i,this.lastResults=null}l(37899)(DerivedHelper,m),DerivedHelper.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)},DerivedHelper.prototype.getModifiedState=function(e){return this.fn(e)},e.exports=DerivedHelper},15839:function(e,i,l){"use strict";var m=l(78833),y=l(65676),v=l(37680),b={addRefinement:function(e,i,l){if(b.isRefined(e,i,l))return e;var y=""+l,v=e[i]?e[i].concat(y):[y],S={};return S[i]=v,m({},S,e)},removeRefinement:function(e,i,l){if(void 0===l)return b.clearRefinement(e,function(e,l){return i===l});var m=""+l;return b.clearRefinement(e,function(e,l){return i===l&&m===e})},toggleRefinement:function(e,i,l){if(void 0===l)throw Error("toggleRefinement should be used with a value");return b.isRefined(e,i,l)?b.removeRefinement(e,i,l):b.addRefinement(e,i,l)},clearRefinement:function(e,i,l){if(void 0===i)return y(e)?{}:e;if("string"==typeof i)return v(e,[i]);if("function"==typeof i){var m=!1,b=Object.keys(e).reduce(function(y,v){var b=e[v]||[],S=b.filter(function(e){return!i(e,v,l)});return S.length!==b.length&&(m=!0),y[v]=S,y},{});return m?b:e}},isRefined:function(e,i,l){var m=!!e[i]&&e[i].length>0;return void 0!==l&&m?-1!==e[i].indexOf(""+l):m}};e.exports=b},81749:function(e,i,l){"use strict";var m=l(78833),y=l(61739),v=l(59952),b=l(37961),S=l(65676),j=l(37680),x=l(40484),w=l(8033),I=l(15839);function isEqualNumericRefinement(e,i){return Array.isArray(e)&&Array.isArray(i)?e.length===i.length&&e.every(function(e,l){return isEqualNumericRefinement(i[l],e)}):e===i}function SearchParameters(e){var i=e?SearchParameters._parseNumbers(e):{};void 0===i.userToken||w(i.userToken)||console.warn("[algoliasearch-helper] The `userToken` parameter is invalid. This can lead to wrong analytics.\n - Format: [a-zA-Z0-9_-]{1,64}"),this.facets=i.facets||[],this.disjunctiveFacets=i.disjunctiveFacets||[],this.hierarchicalFacets=i.hierarchicalFacets||[],this.facetsRefinements=i.facetsRefinements||{},this.facetsExcludes=i.facetsExcludes||{},this.disjunctiveFacetsRefinements=i.disjunctiveFacetsRefinements||{},this.numericRefinements=i.numericRefinements||{},this.tagRefinements=i.tagRefinements||[],this.hierarchicalFacetsRefinements=i.hierarchicalFacetsRefinements||{};var l=this;
vendor: 13,264 bytes, line 1
1Object.keys(i).forEach(function(e){var m=-1!==SearchParameters.PARAMETERS.indexOf(e),y=void 0!==i[e];!m&&y&&(l[e]=i[e])})}SearchParameters.PARAMETERS=Object.keys(new SearchParameters),SearchParameters._parseNumbers=function(e){if(e instanceof SearchParameters)return e;var i={};if(["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"].forEach(function(l){var m=e[l];if("string"==typeof m){var y=parseFloat(m);i[l]=isNaN(y)?m:y}}),Array.isArray(e.insideBoundingBox)&&(i.insideBoundingBox=e.insideBoundingBox.map(function(e){return Array.isArray(e)?e.map(function(e){return parseFloat(e)}):e})),e.numericRefinements){var l={};Object.keys(e.numericRefinements).forEach(function(i){var m=e.numericRefinements[i]||{};l[i]={},Object.keys(m).forEach(function(e){var y=m[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});l[i][e]=y})}),i.numericRefinements=l}return b({},e,i)},SearchParameters.make=function(e){var i=new SearchParameters(e);return(e.hierarchicalFacets||[]).forEach(function(e){if(e.rootPath){var l=i.getHierarchicalRefinement(e.name);l.length>0&&0!==l[0].indexOf(e.rootPath)&&(i=i.clearRefinements(e.name)),0===(l=i.getHierarchicalRefinement(e.name)).length&&(i=i.toggleHierarchicalFacetRefinement(e.name,e.rootPath))}}),i},SearchParameters.validate=function(e,i){var l=i||{};return e.tagFilters&&l.tagRefinements&&l.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&&l.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&&l.numericRefinements&&S(l.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."):S(e.numericRefinements)&&l.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 i={numericRefinements:this._clearNumericRefinements(e),facetsRefinements:I.clearRefinement(this.facetsRefinements,e,"conjunctiveFacet"),facetsExcludes:I.clearRefinement(this.facetsExcludes,e,"exclude"),disjunctiveFacetsRefinements:I.clearRefinement(this.disjunctiveFacetsRefinements,e,"disjunctiveFacet"),hierarchicalFacetsRefinements:I.clearRefinement(this.hierarchicalFacetsRefinements,e,"hierarchicalFacet")};return i.numericRefinements===this.numericRefinements&&i.facetsRefinements===this.facetsRefinements&&i.facetsExcludes===this.facetsExcludes&&i.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&i.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters(i)},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,i,l){var m=x(l);if(this.isNumericRefined(e,i,m))return this;var y=b({},this.numericRefinements);return y[e]=b({},y[e]),y[e][i]?(y[e][i]=y[e][i].slice(),y[e][i].push(m)):y[e][i]=[m],this.setQueryParameters({numericRefinements:y})},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,i,l){return void 0!==l?this.isNumericRefined(e,i,l)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(m,y){return y===e&&m.op===i&&isEqualNumericRefinement(m.val,x(l))})}):this:void 0!==i?this.isNumericRefined(e,i)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(l,m){return m===e&&l.op===i})}):this:this.isNumericRefined(e)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(i,l){return l===e})}):this},getNumericRefinements:function(e){return this.numericRefinements[e]||{}},getNumericRefinement:function(e,i){return this.numericRefinements[e]&&this.numericRefinements[e][i]},_clearNumericRefinements:function(e){if(void 0===e)return S(this.numericRefinements)?{}:this.numericRefinements;if("string"==typeof e)return j(this.numericRefinements,[e]);if("function"==typeof e){var i=!1,l=this.numericRefinements,m=Object.keys(l).reduce(function(m,y){var v=l[y],b={};return Object.keys(v=v||{}).forEach(function(l){var m=v[l]||[],S=[];m.forEach(function(i){e({val:i,op:l},y,"numeric")||S.push(i)}),S.length!==m.length&&(i=!0),b[l]=S}),m[y]=b,m},{});return i?m: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,i){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return I.isRefined(this.facetsRefinements,e,i)?this:this.setQueryParameters({facetsRefinements:I.addRefinement(this.facetsRefinements,e,i)})},addExcludeRefinement:function(e,i){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return I.isRefined(this.facetsExcludes,e,i)?this:this.setQueryParameters({facetsExcludes:I.addRefinement(this.facetsExcludes,e,i)})},addDisjunctiveFacetRefinement:function(e,i){if(!this.isDisjunctiveFacet(e))throw Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return I.isRefined(this.disjunctiveFacetsRefinements,e,i)?this:this.setQueryParameters({disjunctiveFacetsRefinements:I.addRefinement(this.disjunctiveFacetsRefinements,e,i)})},addTagRefinement:function(e){if(this.isTagRefined(e))return this;var i={tagRefinements:this.tagRefinements.concat(e)};return this.setQueryParameters(i)},removeFacet:function(e){return this.isConjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({facets:this.facets.filter(function(i){return i!==e})}):this},removeDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.filter(function(i){return i!==e})}):this},removeHierarchicalFacet:function(e){return this.isHierarchicalFacet(e)?this.clearRefinements(e).setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.filter(function(i){return i.name!==e})}):this},removeFacetRefinement:function(e,i){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return I.isRefined(this.facetsRefinements,e,i)?this.setQueryParameters({facetsRefinements:I.removeRefinement(this.facetsRefinements,e,i)}):this},removeExcludeRefinement:function(e,i){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return I.isRefined(this.facetsExcludes,e,i)?this.setQueryParameters({facetsExcludes:I.removeRefinement(this.facetsExcludes,e,i)}):this},removeDisjunctiveFacetRefinement:function(e,i){if(!this.isDisjunctiveFacet(e))throw Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return I.isRefined(this.disjunctiveFacetsRefinements,e,i)?this.setQueryParameters({disjunctiveFacetsRefinements:I.removeRefinement(this.disjunctiveFacetsRefinements,e,i)}):this},removeTagRefinement:function(e){if(!this.isTagRefined(e))return this;var i={tagRefinements:this.tagRefinements.filter(function(i){return i!==e})};return this.setQueryParameters(i)},toggleRefinement:function(e,i){return this.toggleFacetRefinement(e,i)},toggleFacetRefinement:function(e,i){if(this.isHierarchicalFacet(e))return this.toggleHierarchicalFacetRefinement(e,i);if(this.isConjunctiveFacet(e))return this.toggleConjunctiveFacetRefinement(e,i);if(this.isDisjunctiveFacet(e))return this.toggleDisjunctiveFacetRefinement(e,i);throw Error("Cannot refine the undeclared facet "+e+"; it should be added to the helper options facets, disjunctiveFacets or hierarchicalFacets")},toggleConjunctiveFacetRefinement:function(e,i){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsRefinements:I.toggleRefinement(this.facetsRefinements,e,i)})},toggleExcludeFacetRefinement:function(e,i){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsExcludes:I.toggleRefinement(this.facetsExcludes,e,i)})},toggleDisjunctiveFacetRefinement:function(e,i){if(!this.isDisjunctiveFacet(e))throw Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.setQueryParameters({disjunctiveFacetsRefinements:I.toggleRefinement(this.disjunctiveFacetsRefinements,e,i)})},toggleHierarchicalFacetRefinement:function(e,i){if(!this.isHierarchicalFacet(e))throw Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration");var l=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),y={};return void 0!==this.hierarchicalFacetsRefinements[e]&&this.hierarchicalFacetsRefinements[e].length>0&&(this.hierarchicalFacetsRefinements[e][0]===i||0===this.hierarchicalFacetsRefinements[e][0].indexOf(i+l))?-1===i.indexOf(l)?y[e]=[]:y[e]=[i.slice(0,i.lastIndexOf(l))]:y[e]=[i],this.setQueryParameters({hierarchicalFacetsRefinements:m({},y,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(e,i){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 l={};return l[e]=[i],this.setQueryParameters({hierarchicalFacetsRefinements:m({},l,this.hierarchicalFacetsRefinements)})},removeHierarchicalFacetRefinement:function(e){if(!this.isHierarchicalFacetRefined(e))return this;var i={};return i[e]=[],this.setQueryParameters({hierarchicalFacetsRefinements:m({},i,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,i){return!!this.isConjunctiveFacet(e)&&I.isRefined(this.facetsRefinements,e,i)},isExcludeRefined:function(e,i){return!!this.isConjunctiveFacet(e)&&I.isRefined(this.facetsExcludes,e,i)},isDisjunctiveFacetRefined:function(e,i){return!!this.isDisjunctiveFacet(e)&&I.isRefined(this.disjunctiveFacetsRefinements,e,i)},isHierarchicalFacetRefined:function(e,i){if(!this.isHierarchicalFacet(e))return!1;var l=this.getHierarchicalRefinement(e);return i?-1!==l.indexOf(i):l.length>0},isNumericRefined:function(e,i,l){if(void 0===l&&void 0===i)return!!this.numericRefinements[e];var m=this.numericRefinements[e]&&void 0!==this.numericRefinements[e][i];if(void 0===l||!m)return m;var v=x(l),b=void 0!==y(this.numericRefinements[e][i],function(e){return isEqualNumericRefinement(e,v)});return m&&b},isTagRefined:function(e){return -1!==this.tagRefinements.indexOf(e)},getRefinedDisjunctiveFacets:function(){var e=this,i=v(Object.keys(this.numericRefinements).filter(function(i){return Object.keys(e.numericRefinements[i]).length>0}),this.disjunctiveFacets);return Object.keys(this.disjunctiveFacetsRefinements).filter(function(i){return e.disjunctiveFacetsRefinements[i].length>0}
1).concat(i).concat(this.getRefinedHierarchicalFacets()).sort()},getRefinedHierarchicalFacets:function(){var e=this;return v(this.hierarchicalFacets.map(function(e){return e.name}),Object.keys(this.hierarchicalFacetsRefinements).filter(function(i){return e.hierarchicalFacetsRefinements[i].length>0})).sort()},getUnrefinedDisjunctiveFacets:function(){var e=this.getRefinedDisjunctiveFacets();return this.disjunctiveFacets.filter(function(i){return -1===e.indexOf(i)})},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","hierarchicalFacets","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacetsRefinements"],getQueryParams:function(){var e=this.managedParameters,i={},l=this;return Object.keys(this).forEach(function(m){var y=l[m];-1===e.indexOf(m)&&void 0!==y&&(i[m]=y)}),i},setQueryParameter:function(e,i){if(this[e]===i)return this;var l={};return l[e]=i,this.setQueryParameters(l)},setQueryParameters:function(e){if(!e)return this;var i=SearchParameters.validate(this,e);if(i)throw i;var l=this,m=SearchParameters._parseNumbers(e),y=Object.keys(this).reduce(function(e,i){return e[i]=l[i],e},{}),v=Object.keys(m).reduce(function(e,i){var l=void 0!==e[i],y=void 0!==m[i];return l&&!y?j(e,[i]):(y&&(e[i]=m[i]),e)},y);return new this.constructor(v)},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 y(this.hierarchicalFacets,function(i){return i.name===e})},getHierarchicalFacetBreadcrumb:function(e){if(!this.isHierarchicalFacet(e))return[];var i=this.getHierarchicalRefinement(e)[0];if(!i)return[];var l=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e));return i.split(l).map(function(e){return e.trim()})},toString:function(){return JSON.stringify(this,null,2)}},e.exports=SearchParameters},16379:function(e,i,l){"use strict";e.exports=function(e){return function(i,l){var m=e.hierarchicalFacets[l],x=e.hierarchicalFacetsRefinements[m.name]&&e.hierarchicalFacetsRefinements[m.name][0]||"",w=e._getHierarchicalFacetSeparator(m),I=e._getHierarchicalRootPath(m),N=e._getHierarchicalShowParentLevel(m),D=v(e._getHierarchicalFacetSortBy(m)),q=i.every(function(e){return e.exhaustive}),er=i;return I&&(er=i.slice(I.split(w).length)),er.reduce(function(e,i,l){var m=e;if(l>0){var v=0;for(m=e;v<l;)m=y(m&&Array.isArray(m.data)?m.data:[],function(e){return e.isRefined}),v++}if(m){var q=Object.keys(i.data).map(function(e){return[e,i.data[e]]}).filter(function(e){var i,l;return i=e[0],l=m.path||I,(!I||0===i.indexOf(I)&&I!==i)&&(!I&&-1===i.indexOf(w)||I&&i.split(w).length-I.split(w).length==1||-1===i.indexOf(w)&&-1===x.indexOf(w)||0===x.indexOf(i)||0===i.indexOf(l+w)&&(N||0===i.indexOf(x)))});m.data=b(q.map(function(e){var l,m,y,v,b=e[0];return l=e[1],m=j(x),y=i.exhaustive,{name:(v=b.split(w))[v.length-1].trim(),path:b,escapedValue:S(b),count:l,isRefined:m===b||0===m.indexOf(b+w),exhaustive:y,data:null}}),D[0],D[1])}return e},{name:e.hierarchicalFacets[l].name,count:null,isRefined:!0,path:null,escapedValue:null,exhaustive:q,data:null})}};var m=l(64852),y=l(61739),v=l(16851),b=l(89836),S=m.escapeFacetValue,j=m.unescapeFacetValue},58593:function(e,i,l){"use strict";var m=l(7361),y=l(78833),v=l(64852),b=l(61739),S=l(17428),j=l(16851),x=l(37961),w=l(89836),I=v.escapeFacetValue,N=v.unescapeFacetValue,D=l(16379);function getIndices(e){var i={};return e.forEach(function(e,l){i[e]=l}),i}function assignFacetStats(e,i,l){i&&i[l]&&(e.stats=i[l])}function SearchResults(e,i,l){var v=i[0];this._rawResults=i;var j=this;Object.keys(v).forEach(function(e){j[e]=v[e]}),Object.keys(l||{}).forEach(function(e){j[e]=l[e]}),this.processingTimeMS=i.reduce(function(e,i){return void 0===i.processingTimeMS?e:e+i.processingTimeMS},0),this.disjunctiveFacets=[],this.hierarchicalFacets=e.hierarchicalFacets.map(function(){return[]}),this.facets=[];var w=e.getRefinedDisjunctiveFacets(),I=getIndices(e.facets),q=getIndices(e.disjunctiveFacets),er=1,en=v.facets||{};
1Object.keys(en).forEach(function(i){var l=en[i],m=b(e.hierarchicalFacets,function(e){return(e.attributes||[]).indexOf(i)>-1});if(m){var y=m.attributes.indexOf(i),x=S(e.hierarchicalFacets,function(e){return e.name===m.name});j.hierarchicalFacets[x][y]={attribute:i,data:l,exhaustive:v.exhaustiveFacetsCount}}else{var w,N=-1!==e.disjunctiveFacets.indexOf(i),D=-1!==e.facets.indexOf(i);N&&(w=q[i],j.disjunctiveFacets[w]={name:i,data:l,exhaustive:v.exhaustiveFacetsCount},assignFacetStats(j.disjunctiveFacets[w],v.facets_stats,i)),D&&(w=I[i],j.facets[w]={name:i,data:l,exhaustive:v.exhaustiveFacetsCount},assignFacetStats(j.facets[w],v.facets_stats,i))}}),this.hierarchicalFacets=m(this.hierarchicalFacets),w.forEach(function(l){var m=i[er],b=m&&m.facets?m.facets:{},w=e.getHierarchicalFacetByName(l);Object.keys(b).forEach(function(i){var l,I=b[i];if(w){l=S(e.hierarchicalFacets,function(e){return e.name===w.name});var D=S(j.hierarchicalFacets[l],function(e){return e.attribute===i});if(-1===D)return;j.hierarchicalFacets[l][D].data=x({},j.hierarchicalFacets[l][D].data,I)}else{l=q[i];var er=v.facets&&v.facets[i]||{};j.disjunctiveFacets[l]={name:i,data:y({},I,er),exhaustive:m.exhaustiveFacetsCount},assignFacetStats(j.disjunctiveFacets[l],m.facets_stats,i),e.disjunctiveFacetsRefinements[i]&&e.disjunctiveFacetsRefinements[i].forEach(function(m){!j.disjunctiveFacets[l].data[m]&&e.disjunctiveFacetsRefinements[i].indexOf(N(m))>-1&&(j.disjunctiveFacets[l].data[m]=0)})}}),er++}),e.getRefinedHierarchicalFacets().forEach(function(l){var m=e.getHierarchicalFacetByName(l),v=e._getHierarchicalFacetSeparator(m),b=e.getHierarchicalRefinement(l);0===b.length||b[0].split(v).length<2||i.slice(er).forEach(function(i){var l=i&&i.facets?i.facets:{};Object.keys(l).forEach(function(i){var x=l[i],w=S(e.hierarchicalFacets,function(e){return e.name===m.name}),I=S(j.hierarchicalFacets[w],function(e){return e.attribute===i});if(-1!==I){var N={};if(b.length>0){var D=b[0].split(v)[0];N[D]=j.hierarchicalFacets[w][I].data[D]}j.hierarchicalFacets[w][I].data=y(N,x,j.hierarchicalFacets[w][I].data)}}),er++})}),Object.keys(e.facetsExcludes).forEach(function(i){var l=e.facetsExcludes[i],m=I[i];j.facets[m]={name:i,data:en[i],exhaustive:v.exhaustiveFacetsCount},l.forEach(function(e){j.facets[m]=j.facets[m]||{name:i},j.facets[m].data=j.facets[m].data||{},j.facets[m].data[e]=0})}),this.hierarchicalFacets=this.hierarchicalFacets.map(D(e)),this.facets=m(this.facets),this.disjunctiveFacets=m(this.disjunctiveFacets),this._state=e}function getFacetStatsIfAvailable(e,i){var l=b(e,function(e){return e.name===i});return l&&l.stats}function getRefinement(e,i,l,m,y){var v=b(y,function(e){return e.name===l}),S=v&&v.data&&v.data[m]?v.data[m]:0;return{type:i,attributeName:l,name:m,count:S,exhaustive:v&&v.exhaustive||!1}}SearchResults.prototype.getFacetByName=function(e){function predicate(i){return i.name===e}return b(this.facets,predicate)||b(this.disjunctiveFacets,predicate)||b(this.hierarchicalFacets,predicate)},SearchResults.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"],SearchResults.prototype.getFacetValues=function(e,i){var l,m=function(e,i){function predicate(e){return e.name===i}if(e._state.isConjunctiveFacet(i)){var l=b(e.facets,predicate);return l?Object.keys(l.data).map(function(m){var y=I(m);return{name:m,escapedValue:y,count:l.data[m],isRefined:e._state.isFacetRefined(i,y),isExcluded:e._state.isExcludeRefined(i,m)}}):[]}if(e._state.isDisjunctiveFacet(i)){var m=b(e.disjunctiveFacets,predicate);return m?Object.keys(m.data).map(function(l){var y=I(l);return{name:l,escapedValue:y,count:m.data[l],isRefined:e._state.isDisjunctiveFacetRefined(i,y)}}):[]}if(e._state.isHierarchicalFacet(i)){var y=b(e.hierarchicalFacets,predicate);if(!y)return y;var v=e._state.getHierarchicalFacetByName(i),S=e._state._getHierarchicalFacetSeparator(v),j=N(e._state.getHierarchicalRefinement(i)[0]||"");0===j.indexOf(v.rootPath)&&(j=j.replace(v.rootPath+S,""));var x=j.split(S);return x.unshift(i),function setIsRefined(e,i,l){e.isRefined=e.name===i[l],e.data&&e.data.forEach(function(e){setIsRefined(e,i,l+1)})}(y,x,0),y}}(this,e);if(m){var v=y({},i,{sortBy:SearchResults.DEFAULT_SORT,facetOrdering:!(i&&i.sortBy)}),S=this;return l=Array.isArray(m)?[e]:S._state.getHierarchicalFacetByName(m.name).attributes,function recSort(e,i,l,m){if(m=m||0,Array.isArray(i))return e(i,l[m]);if(!i.data||0===i.data.length)return i;var v=i.data.map(function(i){return recSort(e,i,l,m+1)});return y({data:e(v,l[m])},i)}(function(e,i){if(v.facetOrdering){var l,m,y,b,x,I,N=S.renderingContent&&S.renderingContent.facetOrdering&&S.renderingContent.facetOrdering.values&&S.renderingContent.facetOrdering.values[i];if(N)return y=[],b=[],x=(N.order||[]).reduce(function(e,i,l){return e[i]=l,e},{}),e.forEach(function(e){var i=e.path||e.name;void 0!==x[i]?y[x[i]]=e:b.push(e)}),y=y.filter(function(e){return e}),"hidden"===(I=N.sortRemainingBy)?y:(m="alpha"===I?[["path","name"],["asc","asc"]]:[["count"],["desc"]],y.concat(w(b,m[0],m[1])))}if(Array.isArray(v.sortBy)){var D=j(v.sortBy,SearchResults.DEFAULT_SORT);return w(e,D[0],D[1])}if("function"==typeof v.sortBy)return l=v.sortBy,e.sort(l);throw Error("options.sortBy is optional but if defined it must be either an array of str
1ing (predicates) or a sorting function")},m,l)}},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,i=this,l=[];return Object.keys(e.facetsRefinements).forEach(function(m){e.facetsRefinements[m].forEach(function(y){l.push(getRefinement(e,"facet",m,y,i.facets))})}),Object.keys(e.facetsExcludes).forEach(function(m){e.facetsExcludes[m].forEach(function(y){l.push(getRefinement(e,"exclude",m,y,i.facets))})}),Object.keys(e.disjunctiveFacetsRefinements).forEach(function(m){e.disjunctiveFacetsRefinements[m].forEach(function(y){l.push(getRefinement(e,"disjunctive",m,y,i.disjunctiveFacets))})}),Object.keys(e.hierarchicalFacetsRefinements).forEach(function(m){e.hierarchicalFacetsRefinements[m].forEach(function(y){var v,S,j,x,w,I,N,D;l.push((v=i.hierarchicalFacets,S=e.getHierarchicalFacetByName(m),j=e._getHierarchicalFacetSeparator(S),x=y.split(j),w=b(v,function(e){return e.name===m}),N=(I=x.reduce(function(e,i){var l=e&&b(e.data,function(e){return e.name===i});return void 0!==l?l:e},w))&&I.count||0,D=I&&I.exhaustive||!1,{type:"hierarchical",attributeName:m,name:I&&I.path||"",count:N,exhaustive:D}))})}),Object.keys(e.numericRefinements).forEach(function(i){var m=e.numericRefinements[i];Object.keys(m).forEach(function(e){m[e].forEach(function(m){l.push({type:"numeric",attributeName:i,name:m,numericValue:m,operator:e})})})}),e.tagRefinements.forEach(function(e){l.push({type:"tag",attributeName:"_tags",name:e})}),l},e.exports=SearchResults},34937:function(e,i,l){"use strict";var m=l(17331),y=l(3267),v=l(64852).escapeFacetValue,b=l(37899),S=l(37961),j=l(65676),x=l(37680),w=l(13545),I=l(81749),N=l(58593),D=l(95058);function AlgoliaSearchHelper(e,i,l){"function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+D+")"),this.setClient(e);var m=l||{};m.index=i,this.state=I.make(m),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}b(AlgoliaSearchHelper,m),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 w._getHitsSearchParams(e)},AlgoliaSearchHelper.prototype.searchOnce=function(e,i){var l=e?this.state.setQueryParameters(e):this.state,m=w._getQueries(l.index,l),y=this;if(this._currentNbQueries++,this.emit("searchOnce",{state:l}),i){this.client.search(m).then(function(e){y._currentNbQueries--,0===y._currentNbQueries&&y.emit("searchQueueEmpty"),i(null,new N(l,e.results),l)}).catch(function(e){y._currentNbQueries--,0===y._currentNbQueries&&y.emit("searchQueueEmpty"),i(e,null,l)});return}return this.client.search(m).then(function(e){return y._currentNbQueries--,0===y._currentNbQueries&&y.emit("searchQueueEmpty"),{content:new N(l,e.results),state:l,_originalResponse:e}},function(e){throw y._currentNbQueries--,0===y._currentNbQueries&&y.emit("searchQueueEmpty"),e})},AlgoliaSearchHelper.prototype.findAnswers=function(e){console.warn("[algoliasearch-helper] answers is no longer supported");var i=this.state,l=this.derivedHelpers[0];if(!l)return Promise.resolve([]);var m=l.getModifiedState(i),y=S({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:x(w._getHitsSearchParams(m),["attributesToSnippet","hitsPerPage","restrictSearchableAttributes","snippetEllipsisText"])}),v="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(v);var b=this.client.initIndex(m.index);if("function"!=typeof b.findAnswers)throw Error(v);
vendor: 5,842 bytes, line 1
1return b.findAnswers(m.query,e.queryLanguages,y)},AlgoliaSearchHelper.prototype.searchForFacetValues=function(e,i,l,m){var y,b="function"==typeof this.client.searchForFacetValues,S="function"==typeof this.client.initIndex;if(!b&&!S&&"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 j=this.state.setQueryParameters(m||{}),x=j.isDisjunctiveFacet(e),I=w.getSearchForFacetQuery(e,i,l,j);this._currentNbQueries++;var N=this;return b?y=this.client.searchForFacetValues([{indexName:j.index,params:I}]):S?y=this.client.initIndex(j.index).searchForFacetValues(I):(delete I.facetName,y=this.client.search([{type:"facet",facet:e,indexName:j.index,params:I}]).then(function(e){return e.results[0]})),this.emit("searchForFacetValues",{state:j,facet:e,query:i}),y.then(function(i){return N._currentNbQueries--,0===N._currentNbQueries&&N.emit("searchQueueEmpty"),(i=Array.isArray(i)?i[0]:i).facetHits.forEach(function(i){i.escapedValue=v(i.value),i.isRefined=x?j.isDisjunctiveFacetRefined(e,i.escapedValue):j.isFacetRefined(e,i.escapedValue)}),i},function(e){throw N._currentNbQueries--,0===N._currentNbQueries&&N.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,i){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,i),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},AlgoliaSearchHelper.prototype.addHierarchicalFacetRefinement=function(e,i){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,i),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.addNumericRefinement=function(e,i,l){return this._change({state:this.state.resetPage().addNumericRefinement(e,i,l),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.addFacetRefinement=function(e,i){return this._change({state:this.state.resetPage().addFacetRefinement(e,i),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},AlgoliaSearchHelper.prototype.addFacetExclusion=function(e,i){return this._change({state:this.state.resetPage().addExcludeRefinement(e,i),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,i,l){return this._change({state:this.state.resetPage().removeNumericRefinement(e,i,l),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.removeDisjunctiveFacetRefinement=function(e,i){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,i),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,i){return this._change({state:this.state.resetPage().removeFacetRefinement(e,i),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},AlgoliaSearchHelper.prototype.removeFacetExclusion=function(e,i){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,i),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,i){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,i),isPageReset:!0}),this},AlgoliaSearchHelper.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},AlgoliaSearchHelper.prototype.toggleRefinement=function(e,i){return this.toggleFacetRefinement(e,i)},AlgoliaSearchHelper.prototype.toggleFacetRefinement=function(e,i){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,i),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,i){return this._change({state:this.state.resetPage().setQueryParameter(e,i
vendor: 5,118 bytes, line 1
1),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},AlgoliaSearchHelper.prototype.hasRefinements=function(e){return!!j(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,i){return this.state.isExcludeRefined(e,i)},AlgoliaSearchHelper.prototype.isDisjunctiveRefined=function(e,i){return this.state.isDisjunctiveFacetRefined(e,i)},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 i=[];this.state.isConjunctiveFacet(e)?(this.state.getConjunctiveRefinements(e).forEach(function(e){i.push({value:e,type:"conjunctive"})}),this.state.getExcludeRefinements(e).forEach(function(e){i.push({value:e,type:"exclude"})})):this.state.isDisjunctiveFacet(e)&&this.state.getDisjunctiveRefinements(e).forEach(function(e){i.push({value:e,type:"disjunctive"})});var l=this.state.getNumericRefinements(e);return Object.keys(l).forEach(function(e){var m=l[e];i.push({value:m,operator:e,type:"numeric"})}),i},AlgoliaSearchHelper.prototype.getNumericRefinement=function(e,i){return this.state.getNumericRefinement(e,i)},AlgoliaSearchHelper.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},AlgoliaSearchHelper.prototype._search=function(e){var i=this.state,l=[],m=[];e.onlyWithDerivedHelpers||(m=w._getQueries(i.index,i),l.push({state:i,queriesCount:m.length,helper:this}),this.emit("search",{state:i,results:this.lastResults}));var y=this.derivedHelpers.map(function(e){var m=e.getModifiedState(i),y=m.index?w._getQueries(m.index,m):[];return l.push({state:m,queriesCount:y.length,helper:e}),e.emit("search",{state:m,results:e.lastResults}),y}),v=Array.prototype.concat.apply(m,y),b=this._queryId++;if(this._currentNbQueries++,!v.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,l,b));try{this.client.search(v).then(this._dispatchAlgoliaResponse.bind(this,l,b)).catch(this._dispatchAlgoliaError.bind(this,b))}catch(e){this.emit("error",{error:e})}},AlgoliaSearchHelper.prototype._dispatchAlgoliaResponse=function(e,i,l){if(!(i<this._lastQueryIdReceived)){this._currentNbQueries-=i-this._lastQueryIdReceived,this._lastQueryIdReceived=i,0===this._currentNbQueries&&this.emit("searchQueueEmpty");var m=l.results.slice();e.forEach(function(e){var i=e.state,l=e.queriesCount,y=e.helper,v=m.splice(0,l);if(!i.index){y.emit("result",{results:null,state:i});return}y.lastResults=new N(i,v),y.emit("result",{results:y.lastResults,state:i})})}},AlgoliaSearchHelper.prototype._dispatchAlgoliaError=function(e,i){e<this._lastQueryIdReceived||(this._currentNbQueries-=e-this._lastQueryIdReceived,this._lastQueryIdReceived=e,this.emit("error",{error:i}),0===this._currentNbQueries&&this.emit("searchQueueEmpty"))},AlgoliaSearchHelper.prototype.containsRefinement=function(e,i,l,m){return e||0!==i.length||0!==l.length||0!==m.length},AlgoliaSearchHelper.prototype._hasDisjunctiveRefinements=function(e){return this.state.disjunctiveRefinements[e]&&this.state.disjunctiveRefinements[e].length>0},AlgoliaSearchHelper.prototype._change=function(e){var i=e.state,l=e.isPageReset;i!==this.state&&(this.state=i,this.emit("change",{state:this.state,results:this.lastResults,isPageReset:l}))},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 i=new y(this,e);return this.derivedHelpers.push(i),i},AlgoliaSearchHelper.prototype.detachDerivedHelper=function(e){var i=this.derivedHelpers.indexOf(e);if(-1===i)throw Error("Derived helper already detached");this.derivedHelpers.splice(i,1)},AlgoliaSearchHelper.prototype.hasPendingRequests=function(){return this._currentNbQueries>0},e.exports=AlgoliaSearchHelper},7361:function(e){"use strict";e.exports=function(e){return Array.isArray(e)?e.filter(Boolean):[]}},78833:function(e){"use strict";e.exports=function(){var e=Array.prototype.slice.call(arguments);return e.reduceRight(function(e,i){return Object.keys(Object(i)).forEac
1h(function(l){void 0!==i[l]&&(void 0!==e[l]&&delete e[l],e[l]=i[l])}),e},{})}},64852: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(/^\\-/,"-")}}},61739:function(e){"use strict";e.exports=function(e,i){if(Array.isArray(e)){for(var l=0;l<e.length;l++)if(i(e[l]))return e[l]}}},17428:function(e){"use strict";e.exports=function(e,i){if(!Array.isArray(e))return -1;for(var l=0;l<e.length;l++)if(i(e[l]))return l;return -1}},16851:function(e,i,l){"use strict";var m=l(61739);e.exports=function(e,i){var l=(i||[]).map(function(e){return e.split(":")});return e.reduce(function(e,i){var y=i.split(":"),v=m(l,function(e){return e[0]===y[0]});return y.length>1||!v?(e[0].push(y[0]),e[1].push(y[1])):(e[0].push(v[0]),e[1].push(v[1])),e},[[],[]])}},37899:function(e){"use strict";e.exports=function(e,i){e.prototype=Object.create(i.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}},59952:function(e){"use strict";e.exports=function(e,i){return e.filter(function(l,m){return i.indexOf(l)>-1&&e.indexOf(l)===m})}},37961: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 i=1,l=arguments.length;i<l;i++){var m=arguments[i];isObjectOrArrayOrFunction(m)&&function _merge(e,i){if(e===i)return e;for(var l in i)if(Object.prototype.hasOwnProperty.call(i,l)&&"__proto__"!==l&&"constructor"!==l){var m=i[l],y=e[l];(void 0===y||void 0!==m)&&(isObjectOrArrayOrFunction(y)&&isObjectOrArrayOrFunction(m)?e[l]=_merge(y,m):e[l]="object"==typeof m&&null!==m?_merge(Array.isArray(m)?[]:{},m):m)}return e}(e,m)}return e}},65676:function(e){"use strict";e.exports=function(e){return e&&Object.keys(e).length>0}},37680:function(e){"use strict";e.exports=function(e,i){if(null===e)return{};var l,m,y={},v=Object.keys(e);for(m=0;m<v.length;m++)l=v[m],i.indexOf(l)>=0||(y[l]=e[l]);return y}},89836:function(e){"use strict";e.exports=function(e,i,l){if(!Array.isArray(e))return[];Array.isArray(l)||(l=[]);var m=e.map(function(e,l){return{criteria:i.map(function(i){return e[i]}),index:l,value:e}});return m.sort(function(e,i){for(var m=-1;++m<e.criteria.length;){var y=function(e,i){if(e!==i){var l=void 0!==e,m=null===e,y=void 0!==i,v=null===i;if(!v&&e>i||m&&y||!l)return 1;if(!m&&e<i||v&&l||!y)return -1}return 0}(e.criteria[m],i.criteria[m]);if(y){if(m>=l.length)return y;if("desc"===l[m])return-y;return y}}return e.index-i.index}),m.map(function(e){return e.value})}},40484: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.")}},13545:function(e,i,l){"use strict";var m=l(37961);function sortObject(e){return Object.keys(e).sort().reduce(function(i,l){return i[l]=e[l],i},{})}var y={_getQueries:function(e,i){var l=[];return l.push({indexName:e,params:y._getHitsSearchParams(i)}),i.getRefinedDisjunctiveFacets().forEach(function(m){l.push({indexName:e,params:y._getDisjunctiveFacetSearchParams(i,m)})}),i.getRefinedHierarchicalFacets().forEach(function(m){var v=i.getHierarchicalFacetByName(m),b=i.getHierarchicalRefinement(m),S=i._getHierarchicalFacetSeparator(v);if(b.length>0&&b[0].split(S).length>1){var j=b[0].split(S).slice(0,-1).reduce(function(e,i,l){return e.concat({attribute:v.attributes[l],value:0===l?i:[e[e.length-1].value,i].join(S)})},[]);j.forEach(function(m,b){var S=y._getDisjunctiveFacetSearchParams(i,m.attribute,0===b);function hasHierarchicalFacetFilter(e){return v.attributes.some(function(i){return i===e.split(":")[0]})}var x=(S.facetFilters||[]).reduce(function(e,i){if(Array.isArray(i)){var l=i.filter(function(e){return!hasHierarchicalFacetFilter(e)});l.length>0&&e.push(l)}return"string"!=typeof i||hasHierarchicalFacetFilter(i)||e.push(i),e},[]),w=j[b-1];b>0?S.facetFilters=x.concat(w.attribute+":"+w.value):S.facetFilters=x.length>0?x:void 0,l.push({indexName:e,params:S})})}}),l},_getHitsSearchParams:function(e){var i=e.facets.concat(e.disjunctiveFacets).concat(y._getHitsHierarchicalFacetsAttributes(e)).sort(),l=y._getFacetFilters(e),v=y._getNumericFilters(e),b=y._getTagFilters(e),S={facets:i.indexOf("*")>-1?["*"]:i,tagFilters:b};return l.length>0&&(S.facetFilters=l),v.length>0&&(S.numericFilters=v),sortObject(m({},e.getQueryParams(),S))},_getDisjunctiveFacetSearchParams:function(e,i,l){var v=y._getFacetFilters(e,i,l),b=y._getNumericFilters(e,i),S=y._getTagFilters(e),j={hitsPerPage:0,page:0,analytics:!1,clickAnalytics:!1};S.length>0&&(j.tagFilters=S);var x=e.getHierarchicalFacetByName(i);return x?j.facets=y._getDisjunctiveHierarchicalFacetAttribute(e,x,l):j.facets=i,b.length>0&&(j.numericFilters=b),v.length>0&&(j.facetFilters=v),sortObject(m({}
1,e.getQueryParams(),j))},_getNumericFilters:function(e,i){if(e.numericFilters)return e.numericFilters;var l=[];return Object.keys(e.numericRefinements).forEach(function(m){var y=e.numericRefinements[m]||{};Object.keys(y).forEach(function(e){var v=y[e]||[];i!==m&&v.forEach(function(i){if(Array.isArray(i)){var y=i.map(function(i){return m+e+i});l.push(y)}else l.push(m+e+i)})})}),l},_getTagFilters:function(e){return e.tagFilters?e.tagFilters:e.tagRefinements.join(",")},_getFacetFilters:function(e,i,l){var m=[],y=e.facetsRefinements||{};Object.keys(y).sort().forEach(function(e){(y[e]||[]).sort().forEach(function(i){m.push(e+":"+i)})});var v=e.facetsExcludes||{};Object.keys(v).sort().forEach(function(e){(v[e]||[]).sort().forEach(function(i){m.push(e+":-"+i)})});var b=e.disjunctiveFacetsRefinements||{};Object.keys(b).sort().forEach(function(e){var l=b[e]||[];if(e!==i&&l&&0!==l.length){var y=[];l.sort().forEach(function(i){y.push(e+":"+i)}),m.push(y)}});var S=e.hierarchicalFacetsRefinements||{};return Object.keys(S).sort().forEach(function(y){var v,b,j=(S[y]||[])[0];if(void 0!==j){var x=e.getHierarchicalFacetByName(y),w=e._getHierarchicalFacetSeparator(x),I=e._getHierarchicalRootPath(x);if(i===y){if(-1===j.indexOf(w)||!I&&!0===l||I&&I.split(w).length===j.split(w).length)return;I?(b=I.split(w).length-1,j=I):(b=j.split(w).length-2,j=j.slice(0,j.lastIndexOf(w))),v=x.attributes[b]}else b=j.split(w).length-1,v=x.attributes[b];v&&m.push([v+":"+j])}}),m},_getHitsHierarchicalFacetsAttributes:function(e){return e.hierarchicalFacets.reduce(function(i,l){var m=e.getHierarchicalRefinement(l.name)[0];if(!m)return i.push(l.attributes[0]),i;var y=e._getHierarchicalFacetSeparator(l),v=m.split(y).length,b=l.attributes.slice(0,v+1);return i.concat(b)},[])},_getDisjunctiveHierarchicalFacetAttribute:function(e,i,l){var m=e._getHierarchicalFacetSeparator(i);if(!0===l){var y=e._getHierarchicalRootPath(i),v=0;return y&&(v=y.split(m).length),[i.attributes[v]]}var b=(e.getHierarchicalRefinement(i.name)[0]||"").split(m).length-1;return i.attributes.slice(0,b+1)},getSearchForFacetQuery:function(e,i,l,v){var b=v.isDisjunctiveFacet(e)?v.clearRefinements(e):v,S={facetQuery:i,facetName:e};return"number"==typeof l&&(S.maxFacetHits=l),sortObject(m({},y._getHitsSearchParams(b),S))}};e.exports=y},8033:function(e){"use strict";e.exports=function(e){return null!==e&&/^[a-zA-Z0-9_-]{1,64}$/.test(e)}},95058:function(e){"use strict";e.exports="3.14.0"},84057:function(e){var i="undefined"!=typeof Element,l="function"==typeof Map,m="function"==typeof Set,y="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,v){try{return function equal(e,v){if(e===v)return!0;if(e&&v&&"object"==typeof e&&"object"==typeof v){var b,S,j,x;if(e.constructor!==v.constructor)return!1;if(Array.isArray(e)){if((b=e.length)!=v.length)return!1;for(S=b;0!=S--;)if(!equal(e[S],v[S]))return!1;return!0}if(l&&e instanceof Map&&v instanceof Map){if(e.size!==v.size)return!1;for(x=e.entries();!(S=x.next()).done;)if(!v.has(S.value[0]))return!1;for(x=e.entries();!(S=x.next()).done;)if(!equal(S.value[1],v.get(S.value[0])))return!1;return!0}if(m&&e instanceof Set&&v instanceof Set){if(e.size!==v.size)return!1;for(x=e.entries();!(S=x.next()).done;)if(!v.has(S.value[0]))return!1;return!0}if(y&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(v)){if((b=e.length)!=v.length)return!1;for(S=b;0!=S--;)if(e[S]!==v[S])return!1;return!0}if(e.constructor===RegExp)return e.source===v.source&&e.flags===v.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof v.valueOf)return e.valueOf()===v.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof v.toString)return e.toString()===v.toString();if((b=(j=Object.keys(e)).length)!==Object.keys(v).length)return!1;for(S=b;0!=S--;)if(!Object.prototype.hasOwnProperty.call(v,j[S]))return!1;if(i&&e instanceof Element)return!1;for(S=b;0!=S--;)if(("_owner"!==j[S]&&"__v"!==j[S]&&"__o"!==j[S]||!e.$$typeof)&&!equal(e[j[S]],v[j[S]]))return!1;return!0}return e!=e&&v!=v}(e,v)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},26795:function(e,i,l){"use strict";l.d(i,{BT:function(){return v},tJ:function(){return b},wX:function(){return j}});var m=l(67294),y=(0,m.createContext)({onInternalStateUpdate:function(){},createHrefForState:function(){return"#"},onSearchForFacetValues:function(){},onSearchStateChange:function(){},onSearchParameters:function(){},store:{},widgetsManager:{},mainTargetedIndex:""}),v=y.Consumer,b=y.Provider,S=(0,m.createContext)(void 0),j=S.Consumer;S.Provider},23744:function(e,i,l){"use strict";var m=l(67294),y=l(84057),v=l.n(y),b=l(26795),S=l(73976),j=["contextValue"];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 i=1;i<arguments.length;i++){var l=arguments[i];for(var m in l)Object.prototype.hasOwnProperty.call(l,m)&&(e[m]=l[m])}return e}).apply(this,arguments)}function ownKeys(e,i){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(e);i&&(m=m.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),l.push.apply(l,m)}return l}function _objectSpread(e){for(var i=1;i<arguments.length;i++){var l=null!=arguments[i]?arguments[i]:{};
1i%2?ownKeys(Object(l),!0).forEach(function(i){_defineProperty(e,i,l[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):ownKeys(Object(l)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(l,i))})}return e}function _defineProperties(e,i){for(var l=0;l<i.length;l++){var m=i[l];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(e,_toPropertyKey(m.key),m)}}function _setPrototypeOf(e,i){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,i){return e.__proto__=i,e})(e,i)}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 _defineProperty(e,i,l){return(i=_toPropertyKey(i))in e?Object.defineProperty(e,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[i]=l,e}function _toPropertyKey(e){var i=function(e,i){if("object"!==_typeof(e)||null===e)return e;var l=e[Symbol.toPrimitive];if(void 0!==l){var m=l.call(e,i||"default");if("object"!==_typeof(m))return m;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(e)}(e,"string");return"symbol"===_typeof(i)?i:String(i)}i.Z=function(e){return function(i,l){var y=(function(e){if(!e.displayName)throw Error("`createConnector` requires you to provide a `displayName` property.");var i="function"==typeof e.getSearchParameters||"function"==typeof e.getMetadata||"function"==typeof e.transitionState;return function(l){var y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},b=function(y){!function(e,i){if("function"!=typeof i&&null!==i)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(i&&i.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),i&&_setPrototypeOf(e,i)}(Connector,y);var b,x,w,I=(b=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,i=_getPrototypeOf(Connector);if(b){var l=_getPrototypeOf(this).constructor;e=Reflect.construct(i,arguments,l)}else e=i.apply(this,arguments);return function(e,i){if(i&&("object"===_typeof(i)||"function"==typeof i))return i;if(void 0!==i)throw TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}(this,e)});function Connector(i){var l;return!function(e,i){if(!(e instanceof i))throw TypeError("Cannot call a class as a function")}
1(this,Connector),_defineProperty(_assertThisInitialized(l=I.call(this,i)),"unsubscribe",void 0),_defineProperty(_assertThisInitialized(l),"unregisterWidget",void 0),_defineProperty(_assertThisInitialized(l),"cleanupTimerRef",null),_defineProperty(_assertThisInitialized(l),"isUnmounting",!1),_defineProperty(_assertThisInitialized(l),"state",{providedProps:l.getProvidedProps(l.props)}),_defineProperty(_assertThisInitialized(l),"refine",function(){for(var i,m=arguments.length,y=Array(m),v=0;v<m;v++)y[v]=arguments[v];l.props.contextValue.onInternalStateUpdate((i=e.refine).call.apply(i,[_assertThisInitialized(l),l.props,l.props.contextValue.store.getState().widgets].concat(y)))}),_defineProperty(_assertThisInitialized(l),"createURL",function(){for(var i,m=arguments.length,y=Array(m),v=0;v<m;v++)y[v]=arguments[v];return l.props.contextValue.createHrefForState((i=e.refine).call.apply(i,[_assertThisInitialized(l),l.props,l.props.contextValue.store.getState().widgets].concat(y)))}),_defineProperty(_assertThisInitialized(l),"searchForFacetValues",function(){for(var i,m=arguments.length,y=Array(m),v=0;v<m;v++)y[v]=arguments[v];l.props.contextValue.onSearchForFacetValues((i=e.searchForFacetValues).call.apply(i,[_assertThisInitialized(l),l.props,l.props.contextValue.store.getState().widgets].concat(y)))}),e.getSearchParameters&&l.props.contextValue.onSearchParameters(e.getSearchParameters.bind(_assertThisInitialized(l)),{ais:l.props.contextValue,multiIndexContext:l.props.indexContextValue},l.props,e.getMetadata&&e.getMetadata.bind(_assertThisInitialized(l)),e.displayName),l}return x=[{key:"componentDidMount",value:function(){var e=this;this.cleanupTimerRef&&(clearTimeout(this.cleanupTimerRef),this.cleanupTimerRef=null),this.unsubscribe=this.props.contextValue.store.subscribe(function(){e.isUnmounting||e.setState({providedProps:e.getProvidedProps(e.props)})}),i&&(this.unregisterWidget=this.props.contextValue.widgetsManager.registerWidget(this))}},{key:"shouldComponentUpdate",value:function(i,l){if("function"==typeof e.shouldComponentUpdate)return e.shouldComponentUpdate.call(this,this.props,i,this.state,l);var m=(0,S.wU)(this.props,i);return null===this.state.providedProps||null===l.providedProps?this.state.providedProps!==l.providedProps||!m:!m||!(0,S.wU)(this.state.providedProps,l.providedProps)}},{key:"componentDidUpdate",value:function(l){!v()(l,this.props)&&(this.setState({providedProps:this.getProvidedProps(this.props)}),i&&(this.props.contextValue.widgetsManager.update(),"function"==typeof e.transitionState&&this.props.contextValue.onSearchStateChange(e.transitionState.call(this,this.props,this.props.contextValue.store.getState().widgets,this.props.contextValue.store.getState().widgets))))}},{key:"componentWillUnmount",value:function(){var i=this;this.cleanupTimerRef=setTimeout(function(){if(i.isUnmounting=!0,i.unsubscribe&&i.unsubscribe(),i.unregisterWidget&&(i.unregisterWidget(),"function"==typeof e.cleanUp)){var l=e.cleanUp.call(i,i.props,i.props.contextValue.store.getState().widgets);i.props.contextValue.store.setState(_objectSpread(_objectSpread({},i.props.contextValue.store.getState()),{},{widgets:l})),i.props.contextValue.onSearchStateChange((0,S.YC)(l))}})}},{key:"getProvidedProps",value:function(i){var l=this.props.contextValue.store.getState(),m=l.widgets,y=l.results,v=l.resultsFacetValues,b=l.searching,S=l.searchingForFacetValues,j=l.isSearchStalled,x=l.metadata,w=l.error;return e.getProvidedProps.call(this,i,m,{results:y,searching:b,searchingForFacetValues:S,isSearchStalled:j,error:w},x,v)}},{key:"getSearchParameters",value:function(i){return"function"==typeof e.getSearchParameters?e.getSearchParameters.call(this,i,this.props,this.props.contextValue.store.getState().widgets):null}},{key:"getMetadata",value:function(i){return"function"==typeof e.getMetadata?e.getMetadata.call(this,this.props,i):{}}},{key:"transitionState",value:function(i,l){return"function"==typeof e.transitionState?e.transitionState.call(this,this.props,i,l):l}},{key:"render",value:function(){var i=this.props,y=(i.contextValue,function(e,i){if(null==e)return{};var l,m,y=function(e,i){if(null==e)return{};var l,m,y={},v=Object.keys(e);for(m=0;m<v.length;m++)l=v[m],i.indexOf(l)>=0||(y[l]=e[l]);return y}(e,i);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(e);for(m=0;m<v.length;m++)l=v[m],!(i.indexOf(l)>=0)&&Object.prototype.propertyIsEnumerable.call(e,l)&&(y[l]=e[l])}return y}(i,j)),v=this.state.providedProps;if(null===v)return null;var b="function"==typeof e.refine?{refine:this.refine,createURL:this.createURL}:{},S="function"==typeof e.searchForFacetValues?{searchForItems:this.searchForFacetValues}:{};return m.createElement(l,_extends({},y,v,b,S))}}],_defineProperties(Connector.prototype,x),w&&_defineProperties(Connector,w),Object.defineProperty(Connector,"prototype",{writable:!1}
1),Connector}(m.Component);return _defineProperty(b,"displayName","".concat(e.displayName,"(").concat((0,S.Gf)(l),")")),_defineProperty(b,"$$type",e.$$type),_defineProperty(b,"$$widgetType",y.$$widgetType),_defineProperty(b,"propTypes",e.propTypes),_defineProperty(b,"defaultProps",e.defaultProps),_defineProperty(b,"_connectorDesc",e),b}})(e)(i,l);return function(e){return m.createElement(b.BT,null,function(i){return m.createElement(b.wX,null,function(l){return m.createElement(y,_extends({contextValue:i,indexContextValue:l},e))})})}}}},3120:function(e,i,l){"use strict";l.d(i,{Ei:function(){return hasMultipleIndices},O7:function(){return getResults},RD:function(){return function refineValue(e,i,l,m,y){if(!hasMultipleIndices(l))return e.indices&&m&&Object.keys(e.indices).forEach(function(i){e=refineValue(e,{page:1},{multiIndexContext:{targetedIndex:i}},!0,y)}),y?_objectSpread(_objectSpread({},v=e),{},_defineProperty({},y,_objectSpread(_objectSpread({},v[y]),i)),m?{page:1}:void 0):_objectSpread(_objectSpread(_objectSpread({},e),i),m?{page:1}:void 0);var v,b,S,j,x,w,I,N=getIndexId(l);return y?(j=(b=e).indices&&b.indices[N]?_objectSpread(_objectSpread({},b.indices),{},_defineProperty({},N,_objectSpread(_objectSpread({},b.indices[N]),{},(_defineProperty(S={},y,_objectSpread(_objectSpread({},b.indices[N][y]),i)),_defineProperty(S,"page",1),S)))):_objectSpread(_objectSpread({},b.indices),{},_defineProperty({},N,_objectSpread(_defineProperty({},y,i),m?{page:1}:void 0))),_objectSpread(_objectSpread({},b),{},{indices:j})):(x=e,w=m?{page:1}:void 0,I=x.indices&&x.indices[N]?_objectSpread(_objectSpread({},x.indices),{},_defineProperty({},N,_objectSpread(_objectSpread(_objectSpread({},x.indices[N]),i),w))):_objectSpread(_objectSpread({},x.indices),{},_defineProperty({},N,_objectSpread(_objectSpread({},i),w))),_objectSpread(_objectSpread({},x),{},{indices:I}))}},U6:function(){return getCurrentRefinementValue},WN:function(){return getIndexId},cI:function(){return cleanUpValue}});var m=l(73976);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,i){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(e);i&&(m=m.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),l.push.apply(l,m)}return l}function _objectSpread(e){for(var i=1;i<arguments.length;i++){var l=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(l),!0).forEach(function(i){_defineProperty(e,i,l[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):ownKeys(Object(l)).forEac
1h(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(l,i))})}return e}function _defineProperty(e,i,l){var m;return(m=function(e,i){if("object"!==_typeof(e)||null===e)return e;var l=e[Symbol.toPrimitive];if(void 0!==l){var m=l.call(e,i||"default");if("object"!==_typeof(m))return m;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(e)}(i,"string"),(i="symbol"===_typeof(m)?m:String(m))in e)?Object.defineProperty(e,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[i]=l,e}function getIndexId(e){return hasMultipleIndices(e)?e.multiIndexContext.targetedIndex:e.ais.mainTargetedIndex}function getResults(e,i){if(e.results){if(e.results.hits)return e.results;var l=getIndexId(i);if(e.results[l])return e.results[l]}return null}function hasMultipleIndices(e){return e&&e.multiIndexContext}function getNamespaceAndAttributeName(e){var i=e.match(/^([^.]*)\.(.*)/);return{namespace:i&&i[1],attributeName:i&&i[2]}}function getCurrentRefinementValue(e,i,l,m,y){var v,b,S,j,x,w,I,N,D,q,er,en,ei=getIndexId(l),ea=getNamespaceAndAttributeName(m),es=ea.namespace,eo=ea.attributeName,ec={multiIndex:hasMultipleIndices(l),indexId:ei,namespace:es,attributeName:eo,id:m,searchState:i};return(v=ec.multiIndex,b=ec.indexId,S=ec.namespace,j=ec.attributeName,x=ec.id,w=ec.searchState,v&&S?w.indices&&w.indices[b]&&w.indices[b][S]&&Object.hasOwnProperty.call(w.indices[b][S],j):v?w.indices&&w.indices[b]&&Object.hasOwnProperty.call(w.indices[b],x):S?w[S]&&Object.hasOwnProperty.call(w[S],j):Object.hasOwnProperty.call(w,x))?(I=ec.multiIndex,N=ec.indexId,D=ec.namespace,q=ec.attributeName,er=ec.id,en=ec.searchState,I&&D?en.indices[N][D][q]:I?en.indices[N][er]:D?en[D][q]:en[er]):e.defaultRefinement?e.defaultRefinement:y}function cleanUpValue(e,i,l){var y,v,b,S,j,x,w,I,N,D,q,er,en=getIndexId(i),ei=getNamespaceAndAttributeName(l),ea=ei.namespace,es=ei.attributeName;return hasMultipleIndices(i)&&e.indices?(v=(y={attribute:es,searchState:e,indexId:en,id:l,namespace:ea}).searchState,b=y.indexId,S=y.id,j=y.namespace,x=y.attribute,w=v.indices[b],j&&w?_objectSpread(_objectSpread({},v),{},{indices:_objectSpread(_objectSpread({},v.indices),{},_defineProperty({},b,_objectSpread(_objectSpread({},w),{},_defineProperty({},j,(0,m.CE)(w[j],[x])))))}):w?_objectSpread(_objectSpread({},v),{},{indices:_objectSpread(_objectSpread({},v.indices),{},_defineProperty({},b,(0,m.CE)(w,[S])))}):v):(N=(I={attribute:es,searchState:e,id:l,namespace:ea}).searchState,D=I.id,q=I.namespace,er=I.attribute,q?_objectSpread(_objectSpread({},N),{},_defineProperty({},q,(0,m.CE)(N[q],[er]))):(0,m.CE)(N,[D]))}},73976:function(e,i,l){"use strict";function ownKeys(e,i){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(e);i&&(m=m.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),l.push.apply(l,m)}return l}function _objectSpread(e){for(var i=1;i<arguments.length;i++){var l=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(l),!0).forEach(function(i){var m,y;m=i,y=l[i],(m=function(e){var i=function(e,i){if("object"!==_typeof(e)||null===e)return e;var l=e[Symbol.toPrimitive];if(void 0!==l){var m=l.call(e,i||"default");if("object"!==_typeof(m))return m;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(e)}(e,"string");return"symbol"===_typeof(i)?i:String(i)}(m))in e?Object.defineProperty(e,m,{value:y,enumerable:!0,configurable:!0,writable:!0}):e[m]=y}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):ownKeys(Object(l)).forEac
1h(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(l,i))})}return e}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)}l.d(i,{CE:function(){return omit},Gf:function(){return getDisplayName},Io:function(){return addQueryID},PQ:function(){return defer},RC:function(){return addAbsolutePositions},YC:function(){return removeEmptyKey},wU:function(){return shallowEqual}});var m=Object.prototype.hasOwnProperty,shallowEqual=function(e,i){if(e===i)return!0;var l=Object.keys(e),y=Object.keys(i);if(l.length!==y.length)return!1;for(var v=0;v<l.length;v++)if(!m.call(i,l[v])||e[l[v]]!==i[l[v]])return!1;return!0},getDisplayName=function(e){return e.displayName||e.name||"UnknownComponent"},y=Promise.resolve(),defer=function(e){y.then(e)},removeEmptyKey=function removeEmptyKey(e){return Object.keys(e).forEach(function(i){var l=e[i];"object"===_typeof(l)&&null!==l&&!Array.isArray(l)&&(l&&Object.keys(l).length>0?removeEmptyKey(l):delete e[i])}),e};function addAbsolutePositions(e,i,l){return e.map(function(e,m){return _objectSpread(_objectSpread({},e),{},{__position:i*l+m+1})})}function addQueryID(e,i){return i?e.map(function(e){return _objectSpread(_objectSpread({},e),{},{__queryID:i})}):e}function omit(e,i){if(null==e)return{};for(var l={},m=Object.keys(e),y=0;y<m.length;y++){var v=m[y];i.indexOf(v)>=0||(l[v]=e[v])}return l}},37653:function(e,i,l){"use strict";l.d(i,{Z:function(){return ea}});var m=l(45697),y=l.n(m),v=l(67294),b=l(84057),S=l.n(b),j=l(26795),x=l(93188),w=l.n(x),I=l(73976),N={highlightPreTag:"<ais-highlight-0000000000>",highlightPostTag:"</ais-highlight-0000000000>"},D=l(3120),q=["resultsFacetValues"],er=["resultsFacetValues"],en=["resultsFacetValues"];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 _objectWithoutProperties(e,i){if(null==e)return{};var l,m,y=function(e,i){if(null==e)return{};var l,m,y={},v=Object.keys(e);for(m=0;m<v.length;m++)l=v[m],i.indexOf(l)>=0||(y[l]=e[l]);return y}(e,i);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(e);for(m=0;m<v.length;m++)l=v[m],!(i.indexOf(l)>=0)&&Object.prototype.propertyIsEnumerable.call(e,l)&&(y[l]=e[l])}return y}function ownKeys(e,i){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(e);i&&(m=m.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),l.push.apply(l,m)}return l}function _objectSpread(e){for(var i=1;i<arguments.length;i++){var l=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(l),!0).forEach(function(i){_defineProperty(e,i,l[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):ownKeys(Object(l)).forEac
1h(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(l,i))})}return e}function _defineProperty(e,i,l){var m;return(m=function(e,i){if("object"!==_typeof(e)||null===e)return e;var l=e[Symbol.toPrimitive];if(void 0!==l){var m=l.call(e,i||"default");if("object"!==_typeof(m))return m;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(e)}(i,"string"),(i="symbol"===_typeof(m)?m:String(m))in e)?Object.defineProperty(e,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[i]=l,e}function addAlgoliaAgents(e){"function"==typeof e.addAlgoliaAgent&&(e.addAlgoliaAgent("react (".concat(v.version,")")),e.addAlgoliaAgent("react-instantsearch (".concat("6.40.4",")")))}var isMultiIndexContext=function(e){return(0,D.Ei)({ais:e.props.contextValue,multiIndexContext:e.props.indexContextValue})},isTargetedIndexEqualIndex=function(e,i){return e.props.indexContextValue.targetedIndex===i},isIndexWidget=function(e){return!!e.props.indexId},isIndexWidgetEqualIndex=function(e,i){return e.props.indexId===i},sortIndexWidgetsFirst=function(e,i){var l=isIndexWidget(e),m=isIndexWidget(i);return l&&!m?-1:!l&&m?1:0};function metadata_typeof(e){return(metadata_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_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,i){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(e);i&&(m=m.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),l.push.apply(l,m)}return l}function InstantSearch_objectSpread(e){for(var i=1;i<arguments.length;i++){var l=null!=arguments[i]?arguments[i]:{};i%2?InstantSearch_ownKeys(Object(l),!0).forEach(function(i){InstantSearch_defineProperty(e,i,l[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):InstantSearch_ownKeys(Object(l)).forEac
1h(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(l,i))})}return e}function _defineProperties(e,i){for(var l=0;l<i.length;l++){var m=i[l];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(e,InstantSearch_toPropertyKey(m.key),m)}}function _setPrototypeOf(e,i){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,i){return e.__proto__=i,e})(e,i)}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,i,l){return(i=InstantSearch_toPropertyKey(i))in e?Object.defineProperty(e,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[i]=l,e}function InstantSearch_toPropertyKey(e){var i=function(e,i){if("object"!==InstantSearch_typeof(e)||null===e)return e;var l=e[Symbol.toPrimitive];if(void 0!==l){var m=l.call(e,i||"default");if("object"!==InstantSearch_typeof(m))return m;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(e)}(e,"string");return"symbol"===InstantSearch_typeof(i)?i:String(i)}function isControlled(e){return!!e.searchState}var ei=function(e){!function(e,i){if("function"!=typeof i&&null!==i)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(i&&i.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),i&&_setPrototypeOf(e,i)}(InstantSearch,e);var i,l,m,y=(i=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,l=_getPrototypeOf(InstantSearch);if(i){var m=_getPrototypeOf(this).constructor;e=Reflect.construct(l,arguments,m)}else e=l.apply(this,arguments);return function(e,i){if(i&&("object"===InstantSearch_typeof(i)||"function"==typeof i))return i;if(void 0!==i)throw TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}(this,e)});function InstantSearch(e){!function(e,i){if(!(e instanceof i))throw TypeError("Cannot call a class as a function")}(this,InstantSearch),InstantSearch_defineProperty(_assertThisInitialized(i=y.call(this,e)),"cleanupTimerRef",null),InstantSearch_defineProperty(_assertThisInitialized(i),"isUnmounting",!1);var i,l=function(e){var i,l,m,y=e.indexName,v=e.initialState,b=e.searchClient,S=e.resultsState,j=e.stalledSearchDelay,x=w()(b,y,_objectSpread({},N));addAlgoliaAgents(b),x.on("search",function(){ei||(ei=setTimeout(function(){var e=eo.getState(),i=(e.resultsFacetValues,_objectWithoutProperties(e,en));eo.setState(_objectSpread(_objectSpread({},i),{},{isSearchStalled:!0}))},j))}).on("result",handleSearchSuccess({indexId:y})).on("error",handleSearchError);var D=!1,ei=null,ea=x.state,es=function(e){var i=[],l=!1;function scheduleUpdate(){l||(l=!0,(0,I.PQ)(function(){l=!1,e()}))}return{registerWidget:function(e){return i.push(e),scheduleUpdate(),function(){i.splice(i.indexOf(e),1),scheduleUpdate()}},update:scheduleUpdate,getWidgets:function(){return i}}}(function(){var e=getMetadata(eo.getState().widgets);eo.setState(_objectSpread(_objectSpread({},eo.getState()),{},{metadata:e,searching:!0})),search()});!function(e,i){if(i&&(e.transporter&&!e._cacheHydrated||e._useCache&&"function"==typeof e.addAlgoliaAgent)){if(e.transporter&&!e._cacheHydrated){e._cacheHydrated=!0;var l=e.search;e.search=function(i){for(var m=arguments.length,y=Array(m>1?m-1:0),v=1;v<m;v++)y[v-1]=arguments[v];var b=i.map(function(e){var i,l;return _objectSpread(_objectSpread({},e),{},{params:(i=e.params,l=function(e){for(var i=arguments.length,l=Array(i>1?i-1:0),m=1;m<i;m++)l[m-1]=arguments[m];var y=0;return e.replace(/%s/g,function(){return encodeURIComponent(l[y++])})},Object.keys(i).map(function(e){var m;return l("%s=%s",e,(m=i[e],"[object Object]"===Object.prototype.toString.call(m)||"[object Array]"===Object.prototype.toString.call(m))?JSON.stringify(i[e]):i[e])}).join("&"))})});return e.transporter.responsesCache.get({method:"search",args:[b].concat(y)},function(){return l.apply(void 0,[i].concat(y))})}}if(Array.isArray(i.results)){!function(e,i){if(e.transporter){e.transporter.responsesCache.set({method:"search",args:[i.reduce(function(e,i){return e.concat(i.rawResults.map(function(e){return{indexName:e.index,params:e.params}}))},[])]},{results:i.reduce(function(e,i){return e.concat(i.rawResults)},[])});return}var l="/1/indexes/*/queries_body_".concat(JSON.stringify({requests:i.reduce(function(e,i){return e.concat(i.rawResults.map(function(e){return{indexName:e.index,params:e.params}}))},[])}));e.cache=_objectSpread(_objectSpread({},e.cache),{},_defineProperty({},l,JSON.stringify({results:i.reduce(function(e,i){return e.concat(i.rawResults)},[])})))}(e,i.results);return}!function(e,i){if(e.transporter){e.transporter.responsesCache.set({method:"search",args:[i.rawResults.map(function(e){return{indexName:e.index,params:e.params}})]},{results:i.rawResults});return}var l="/1/indexes/*/queries_body_".concat(JSON.stringify({requests:i.rawResults.map(function(e){return{indexName:e.index,params:e.params}})}));e.cache=_objectSpread(_objectSpread({},e.cache),{},_defineProperty({},l,JSON.stringify({results:i.rawResults})))}(e,i)}}(b,S);var eo=(i={widgets:void 0===v?{}:v,metadata:S?S.metadata.map(function(e){return _objectSpread(_objectSpread({value:function(){return{}}},e),{},{items:e.items&&e.items.map(function(e){return _objectSpread(_objectSpread({value:function(){return{}}},e),{},{items:e.items&&e.items.map(function(e){return _objectSpread({value:function(){return{}}},e)})})})})}):[],results:S?Array.isArray(S.results)?S.results.reduce(function(e,i){return _objectSpread(_objectSpread({},e),{},_defineProperty({},i._internalIndexId,new(w()).SearchResults(new(w()).SearchParameters(i.state),i.rawResults)))},{}):new(w()).SearchResults(new(w()).SearchParameters(S.state),S.rawResults):null,error:null,searching:!1,isSearchStalled:!0,searchingForFacetValues:!1},l=[],{getState:function(){return i},setState:function(e){i=e,l.forEach(function(e){return e()})}
1,subscribe:function(e){return l.push(e),function(){l.splice(l.indexOf(e),1)}}});function getMetadata(e){return es.getWidgets().filter(function(e){return!!e.getMetadata}).map(function(i){return i.getMetadata(e)})}function getSearchParameters(){var e=es.getWidgets().filter(function(e){return!!e.getSearchParameters}).filter(function(e){return!isMultiIndexContext(e)&&!isIndexWidget(e)}).reduce(function(e,i){return i.getSearchParameters(e)},ea),i=es.getWidgets().filter(function(e){return!!e.getSearchParameters}).filter(function(e){var i=isMultiIndexContext(e)&&isTargetedIndexEqualIndex(e,y),l=isIndexWidget(e)&&isIndexWidgetEqualIndex(e,y);return i||l}).sort(sortIndexWidgetsFirst).reduce(function(e,i){return i.getSearchParameters(e)},e),l=es.getWidgets().filter(function(e){return!!e.getSearchParameters}).filter(function(e){var i=isMultiIndexContext(e)&&!isTargetedIndexEqualIndex(e,y),l=isIndexWidget(e)&&!isIndexWidgetEqualIndex(e,y);return i||l}).sort(sortIndexWidgetsFirst).reduce(function(e,i){var l=isMultiIndexContext(i)?i.props.indexContextValue.targetedIndex:i.props.indexId,m=e[l]||[];return _objectSpread(_objectSpread({},e),{},_defineProperty({},l,m.concat(i)))},{});return{mainParameters:i,derivedParameters:Object.keys(l).map(function(i){return{parameters:l[i].reduce(function(e,i){return i.getSearchParameters(e)},e),indexId:i}})}}function search(){if(!D){var e=getSearchParameters(x.state),i=e.mainParameters,l=e.derivedParameters;m=l.length+1,x.derivedHelpers.slice().forEach(function(e){e.detach()}),l.forEach(function(e){var i=e.indexId,l=e.parameters;x.derive(function(){return l}).on("result",handleSearchSuccess({indexId:i})).on("error",handleSearchError)}),x.setState(i),x.search()}}function handleSearchSuccess(e){var i=e.indexId;return function(e){m--;var l=eo.getState(),y=!x.derivedHelpers.length,v=l.results?l.results:{};v=!y&&v.getFacetByName?{}:v,v=y?e.results:_objectSpread(_objectSpread({},v),{},_defineProperty({},i,e.results));var b=eo.getState(),S=b.isSearchStalled;x.hasPendingRequests()||(clearTimeout(ei),ei=null,S=!1),b.resultsFacetValues;var j=_objectWithoutProperties(b,q);eo.setState(_objectSpread(_objectSpread({},j),{},{results:v,isSearchStalled:S,searching:m>0,error:null}))}}function handleSearchError(e){var i=e.error,l=eo.getState(),m=l.isSearchStalled;x.hasPendingRequests()||(clearTimeout(ei),m=!1),l.resultsFacetValues;var y=_objectWithoutProperties(l,er);eo.setState(_objectSpread(_objectSpread({},y),{},{isSearchStalled:m,error:i,searching:!1}))}return{store:eo,widgetsManager:es,getWidgetsIds:function(){return eo.getState().metadata.reduce(function(e,i){return void 0!==i.id?e.concat(i.id):e},[])},getSearchParameters:getSearchParameters,onSearchForFacetValues:function(e){var i=e.facetName,l=e.query,m=e.maxFacetHits;eo.setState(_objectSpread(_objectSpread({},eo.getState()),{},{searchingForFacetValues:!0})),x.searchForFacetValues(i,l,Math.max(1,Math.min(void 0===m?10:m,100))).then(function(e){var m;eo.setState(_objectSpread(_objectSpread({},eo.getState()),{},{error:null,searchingForFacetValues:!1,resultsFacetValues:_objectSpread(_objectSpread({},eo.getState().resultsFacetValues),{},(_defineProperty(m={},i,e.facetHits),_defineProperty(m,"query",l),m))}))},function(e){eo.setState(_objectSpread(_objectSpread({},eo.getState()),{},{searchingForFacetValues:!1,error:e}))}).catch(function(e){setTimeout(function(){throw e})})},onExternalStateUpdate:function(e){var i=getMetadata(e);eo.setState(_objectSpread(_objectSpread({},eo.getState()),{},{widgets:e,metadata:i,searching:!0})),search()},transitionState:function(e){var i=eo.getState().widgets;return es.getWidgets().filter(function(e){return!!e.transitionState}).reduce(function(e,l){return l.transitionState(i,e)},e)},updateClient:function(e){addAlgoliaAgents(e),x.setClient(e),search()},updateIndex:function(e){ea=ea.setIndex(e)},clearCache:function(){x.clearCache(),search()},skipSearch:function(){D=!0}}}({indexName:i.props.indexName,searchClient:i.props.searchClient,initialState:i.props.searchState||{},resultsState:i.props.resultsState,stalledSearchDelay:i.props.stalledSearchDelay}),m={store:l.store,widgetsManager:l.widgetsManager,mainTargetedIndex:i.props.indexName,onInternalStateUpdate:i.onWidgetsInternalStateUpdate.bind(_assertThisInitialized(i)),createHrefForState:i.createHrefForState.bind(_assertThisInitialized(i)),onSearchForFacetValues:i.onSearchForFacetValues.bind(_assertThisInitialized(i)),onSearchStateChange:i.onSearchStateChange.bind(_assertThisInitialized(i)),onSearchParameters:i.onSearchParameters.bind(_assertThisInitialized(i))};return i.state={isControlled:isControlled(i.props),instantSearchManager:l,contextValue:m},i}return l=[{key:"componentDidUpdate",value:function(e){var i=isControlled(e);if(i&&!this.state.isControlled)throw Error("You can't switch <InstantSearch> from being controlled to uncontrolled");if(!i&&this.state.isControlled)throw Error("You can't switch <InstantSearch> from being uncontrolled to controlled");this.props.refresh!==e.refresh&&this.props.refresh&&this.state.instantSearchManager.clearCache(),e.indexName!==this.props.indexName&&this.state.instantSearchManager.updateIndex(this.props.indexName),e.searchClient!==this.props.searchClient&&this.state.instantSearchManager.updateClient(this.props.searchClient)}},{key:"componentDidMount",value:function(){if(this.cleanupTimerRef&&(clearTimeout(this.cleanupTimerRef),this.cleanupTimerRef=null),("undefined"==typeof window?"undefined":metadata_typeof(window))==="object"&&"object"===metadata_typeof(window.navigator)&&"string"==typeof window.navigator.userAgent&&window.navigator.userAgent.includes("Algolia Crawler")&&"object"===metadata_typeof(window.document)){var e,i,l,m,y,v,b;e=this.state.instantSearchManager.widgetsManager.getWidgets(),i=this.props.searchClient,l=document.createElement("meta"),m=document.querySelector("head"),l.name="algolia:metadata",y=["contextValue","indexContextValue"],v=e.map(function(e){var i=e.props,l=e.constructor,m=l._connectorDesc||{},v=m.defaultProps,b=void 0===v?{}:v,S=m.displayName;return{displayName:void 0===S?l.displayName:S,$$type:l.$$type,$$widgetType:l.$$widgetType,params:Object.keys(i).filter(function(e){return!y.includes(e)&&b[e]!==i[e]&&void 0!==i[e]})}}),b={ua:i.transporter&&i.transporter.userAgent?i.transporter.userAgent.value:i._ua,widgets:v},l.content=JSON.stringify(b),m.appendChild(l)}}},{key:"componentWillUnmount",value:function(){var e=this;this.cleanupTimerRef=setTimeout(function(){e.isUnmounting=!0,e.state.instantSearchManager.skipSearch()})}},{key:"createHrefForState",value:function(e){return e=this.state.instantSearchManager.transitionState(e),this.state.isControlled&&this.props.createURL?this.props.createURL(e,this.getKnownKeys()):"#"}},{key:"onWidgetsInternalStateUpdate",value:function(e){e=this.state.instantSearchManager.transitionState(e),this.onSearchStateChange(e),this.state.isControlled||this.state.instantSearchManager.onExternalStateUpdate(e)}},{key:"onSearchStateChange",value:function(e){this.props.onSearchStateChange&&!this.isUnmounting&&this.props.onSearchStateChange(e)}},{key:"onSearchParameters",value:function(e,i,l,m,y){if(this.props.onSearchParameters){var v=this.props.searchState?this.props.searchState:{};this.props.onSearchParameters(e,i,l,v)}if(this.props.widgetsCollector){var b=this.props.searchState?this.props.searchState:{};this.props.widgetsCollector({getSearchParameters:e,getMetadata:m,context:i,props:l,searchState:b,displayName:y})}}},{key:"onSearchForFacetValues",value:function(e){this.state.instantSearchManager.onSearchForFacetValues(e)}},{key:"getKnownKeys",value:function(){return this.state.instantSearchManager.getWidgetsIds()}},{key:"render",value:function(){return 0===v.Children.count(this.props.children)?null:v.createElement(j.tJ,{value:this.state.contextValue},this.props.children)}}],m=[{key:"getDerivedStateFromProps",value:function(e,i){var l=isControlled(e),m=i.instantSearchManager.store.getState().widgets,y=e.searchState;return l&&!S()(m,y)&&i.instantSearchManager.onExternalStateUpdate(e.searchState),{isControlled:l,contextValue:InstantSearch_objectSpread(InstantSearch_objectSpread({},i.contextValue),{},{mainTargetedIndex:e.indexName})}}}],l&&_defineProperties(InstantSearch.prototype,l),m&&_defineProperties(InstantSearch,m),Object.defineProperty(InstantSearch,"prototype",{writable:!1}),InstantSearch}(v.Component);InstantSearch_defineProperty(ei,"defaultProps",{stalledSearchDelay:200,refresh:!1}),InstantSearch_defineProperty(ei,"propTypes",{indexName:y().string.isRequired,searchClient:y().shape({search:y().func.isRequired,searchForFacetValues:y().func,addAlgoliaAgent:y().func,clearCache:y().func}).isRequired,createURL:y().func,refresh:y().bool,searchState:y().object,onSearchStateChange:y().func,onSearchParameters:y().func,widgetsCollector:y().func,resultsState:y().oneOfType([y().object,y().array]),children:y().node,stalledSearchDelay:y().number});var ea=ei},79519:function(e,i,l){"use strict";var m=l(67294),y=l(45697),v=l.n(y),b=l(93967),S=l.n(b),j=l(22040),x=["className","cssModule","active","tag"];function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var l=arguments[i];for(var m in l)Object.prototype.hasOwnProperty.call(l,m)&&(e[m]=l[m])}return e}).apply(this,arguments)}var w={active:v().bool,className:v().string,cssModule:v().object,tag:j.iC};function BreadcrumbItem(e){var i=e.className,l=e.cssModule,y=e.active,v=e.tag,b=void 0===v?"li":v,w=function(e,i){if(null==e)return{};var l,m,y=function(e,i){if(null==e)return{};var l,m,y={},v=Object.keys(e);for(m=0;m<v.length;m++)l=v[m],i.indexOf(l)>=0||(y[l]=e[l]);return y}(e,i);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(e);for(m=0;m<v.length;m++)l=v[m],!(i.indexOf(l)>=0)&&Object.prototype.propertyIsEnumerable.call(e,l)&&(y[l]=e[l])}return y}(e,x),I=(0,j.mx)(S()(i,!!y&&"active","breadcrumb-item"),l);return m.createElement(b,_extends({},w,{className:I,"aria-current":y?"page":void 0}))}BreadcrumbItem.propTypes=w,i.Z=BreadcrumbItem},39886:function(e,i,l){"use strict";var m=l(67294),y=l(45697),v=l.n(y),b=l(93967),S=l.n(b),j=l(22040),x=["className","cssModule","color","body","inverse","outline","tag","innerRef"];function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var l=arguments[i];for(var m in l)Object.prototype.hasOwnProperty.call(l,m)&&(e[m]=l[m])}return e}).apply(this,arguments)}var w={body:v().bool,className:v().string,color:v().string,cssModule:v().object,innerRef:v().oneOfType([v().object,v().string,v().func]),inverse:v().bool,outline:v().bool,tag:j.iC};function Card(e){var i=e.className,l=e.cssModule,y=e.color,v=e.body,b=e.inverse,w=e.outline,I=e.tag,N=void 0===I?"div":I,D=e.innerRef,q=function(e,i){if(null==e)return{};var l,m,y=function(e,i){if(null==e)return{};var l,m,y={},v=Object.keys(e);for(m=0;m<v.length;m++)l=v[m],i.indexOf(l)>=0||(y[l]=e[l]);return y}(e,i);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(e);for(m=0;m<v.length;m++)l=v[m],!(i.indexOf(l)>=0)&&Object.prototype.propertyIsEnumerable.call(e,l)&&(y[l]=e[l])}return y}(e,x),er=(0,j.mx)(S()(i,"card",!!b&&"text-white",!!v&&"card-body",!!y&&"".concat(w?"border":"bg","-").concat(y)),l);return m.createElement(N,_extends({},q,{className:er,ref:D}))}Card.propTypes=w,i.Z=Card},54610:function(e,i,l){"use strict";var m=l(67294),y=l(45697),v=l.n(y),b=l(93967),S=l.n(b),j=l(22040),x=["className","cssModule","innerRef","tag"];function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var l=arguments[i];for(var m in l)Object.prototype.hasOwnProperty.call(l,m)&&(e[m]=l[m])}return e}).apply(this,arguments)}var w={className:v().string,cssModule:v().object,innerRef:v().oneOfType([v().object,v().string,v().func]),tag:j.iC};function CardBody(e){var i=e.className,l=e.cssModule,y=e.innerRef,v=e.tag,b=void 0===v?"div":v,w=function(e,i){if(null==e)return{};var l,m,y=function(e,i){if(null==e)return{};var l,m,y={},v=Object.keys(e);for(m=0;m<v.length;m++)l=v[m],i.indexOf(l)>=0||(y[l]=e[l]);return y}(e,i);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(e);for(m=0;m<v.length;m++)l=v[m],!(i.indexOf(l)>=0)&&Object.prototype.propertyIsEnumerable.call(e,l)&&(y[l]=e[l])}return y}(e,x),I=(0,j.mx)(S()(i,"card-body"),l);return m.createElement(b,_extends({},w,{className:I,ref:y}))}CardBody.propTypes=w,i.Z=CardBody},95305:function(e,i,l){"use strict";var m=l(67294),y=l(45697),v=l.n(y),b=l(93967),S=l.n(b),j=l(22040),x=["className","cssModule","widths","tag"];function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var l=arguments[i];for(var m in l)Object.prototype.hasOwnProperty.call(l,m)&&(e[m]=l[m])}return e}).apply(this,arguments)}function _defineProperty(e,i,l){return i in e?Object.defineProperty(e,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[i]=l,e}var w=["xs","sm","md","lg","xl","xxl"],I=v().oneOfType([v().number,v().string]),N=v().oneOfType([v().bool,v().number,v().string,v().shape({size:v().oneOfType([v().bool,v().number,v().string]),order:I,offset:I})]),D={tag:j.iC,xs:N,sm:N,md:N,lg:N,xl:N,xxl:N,className:v().string,cssModule:v().object,widths:v().array},getColumnSizeClass=function(e,i,l){return!0===l||""===l?e?"col":"col-".concat(i):"auto"===l?e?"col-auto":"col-".concat(i,"-auto"):e?"col
1-".concat(l):"col-".concat(i,"-").concat(l)},getColumnClasses=function(e,i){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w,m=[];return l.forEach(function(l,y){var v=e[l];if(delete e[l],v||""===v){var b=!y;if((0,j.Kn)(v)){var x,w=b?"-":"-".concat(l,"-"),I=getColumnSizeClass(b,l,v.size);m.push((0,j.mx)(S()((_defineProperty(x={},I,v.size||""===v.size),_defineProperty(x,"order".concat(w).concat(v.order),v.order||0===v.order),_defineProperty(x,"offset".concat(w).concat(v.offset),v.offset||0===v.offset),x)),i))}else{var N=getColumnSizeClass(b,l,v);m.push(N)}}}),{colClasses:m,modifiedAttributes:e}};function Col(e){var i=e.className,l=e.cssModule,y=e.widths,v=void 0===y?w:y,b=e.tag,I=void 0===b?"div":b,N=getColumnClasses(function(e,i){if(null==e)return{};var l,m,y=function(e,i){if(null==e)return{};var l,m,y={},v=Object.keys(e);for(m=0;m<v.length;m++)l=v[m],i.indexOf(l)>=0||(y[l]=e[l]);return y}(e,i);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(e);for(m=0;m<v.length;m++)l=v[m],!(i.indexOf(l)>=0)&&Object.prototype.propertyIsEnumerable.call(e,l)&&(y[l]=e[l])}return y}(e,x),l,v),D=N.modifiedAttributes,q=N.colClasses;q.length||q.push("col");var er=(0,j.mx)(S()(i,q),l);return m.createElement(I,_extends({},D,{className:er}))}Col.propTypes=D,i.Z=Col},53637:function(e,i,l){"use strict";var m=l(67294),y=l(45697),v=l.n(y),b=l(93967),S=l.n(b),j=l(22040),x=["className","cssModule","fluid","tag"];function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var l=arguments[i];for(var m in l)Object.prototype.hasOwnProperty.call(l,m)&&(e[m]=l[m])}return e}).apply(this,arguments)}var w={tag:j.iC,fluid:v().oneOfType([v().bool,v().string]),className:v().string,cssModule:v().object};function Container(e){var i=e.className,l=e.cssModule,y=e.fluid,v=e.tag,b=void 0===v?"div":v,w=function(e,i){if(null==e)return{};var l,m,y=function(e,i){if(null==e)return{};var l,m,y={},v=Object.keys(e);for(m=0;m<v.length;m++)l=v[m],i.indexOf(l)>=0||(y[l]=e[l]);return y}(e,i);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(e);for(m=0;m<v.length;m++)l=v[m],!(i.indexOf(l)>=0)&&Object.prototype.propertyIsEnumerable.call(e,l)&&(y[l]=e[l])}return y}(e,x),I="container";!0===y?I="container-fluid":y&&(I="container-".concat(y));var N=(0,j.mx)(S()(i,I),l);return m.createElement(b,_extends({},w,{className:N}))}Container.propTypes=w,i.Z=Container},35773:function(e,i,l){"use strict";var m=l(67294),y=l(45697),v=l.n(y),b=l(93967),S=l.n(b),j=l(22040),x=["className","cssModule","noGutters","tag","widths"];function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var l=arguments[i];for(var m in l)Object.prototype.hasOwnProperty.call(l,m)&&(e[m]=l[m])}return e}).apply(this,arguments)}var w=["xs","sm","md","lg","xl","xxl"],I=v().oneOfType([v().number,v().string]),N={tag:j.iC,noGutters:(0,j.x9)(v().bool,"Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/"),className:v().string,cssModule:v().object,xs:I,sm:I,md:I,lg:I,xl:I,xxl:I,widths:v().array};function Row(e){var i=e.className,l=e.cssModule,y=e.noGutters,v=e.tag,b=void 0===v?"div":v,I=e.widths,N=void 0===I?w:I,D=function(e,i){if(null==e)return{};var l,m,y=function(e,i){if(null==e)return{};var l,m,y={},v=Object.keys(e);for(m=0;m<v.length;m++)l=v[m],i.indexOf(l)>=0||(y[l]=e[l]);return y}(e,i);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(e);for(m=0;m<v.length;m++)l=v[m],!(i.indexOf(l)>=0)&&Object.prototype.propertyIsEnumerable.call(e,l)&&(y[l]=e[l])}return y}(e,x),q=[];N.forEach(function(i,l){var m=e[i];delete D[i],m&&q.push(l?"row-cols-".concat(i,"-").concat(m):"row-cols-".concat(m))});var er=(0,j.mx)(S()(i,y?"gx-0":null,"row",q),l);return m.createElement(b,_extends({},D,{className:er}))}Row.propTypes=N,i.Z=Row}}]);
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.