PageSourceSearch

https://www.ncoa.org/_next/static/chunks/9485-220537c272140b3b.js

js ncoa.org collected 2026-10-01 08:49:58 UTC 267,521 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9485],{1001:e=>{"use strict";e.exports=function e(t){if("number"==typeof t)return t;if("string"==typeof t)return parseFloat(t);if(Array.isArray(t))return t.map(e);throw Error("The value should be a number, a parsable string or an array of those.")}},1194:(e,t,r)=>{"use strict";function n(e,t){if(!e)throw Error("Invariant failed")}r.d(t,{V:()=>n})},1462:e=>{"use strict";e.exports=function(){var e=Array.prototype.slice.call(arguments);return e.reduceRight(function(e,t){return Object.keys(Object(t)).forEach(function(r){void 0!==t[r]&&(void 0!==e[r]&&delete e[r],e[r]=t[r])}),e},{})}},2163:(e,t,r)=>{"use strict";function n(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}r.d(t,{_:()=>n})},3085:(e,t,r)=>{"use strict";var n=r(62331),i=r(99521),a=r(41959),s=r(88675),o=r(88221);function c(e,t,r,i){return new n(e,t,r,i)}c.version=r(4804),c.AlgoliaSearchHelper=n,c.SearchParameters=s,c.RecommendParameters=i,c.SearchResults=o,c.RecommendResults=a,e.exports=c},3644:(e,t,r)=>{"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{_:()=>n})},3945:(e,t,r)=>{"use strict";var n=r(80045),i=r(23034),a=r(33457),s=r(94105),o=n("%Map%",!0),c=i("Map.prototype.get",!0),u=i("Map.prototype.set",!0),l=i("Map.prototype.has",!0),f=i("Map.prototype.delete",!0),d=i("Map.prototype.size",!0);e.exports=!!o&&function(){var e,t={assert:function(e){if(!t.has(e))throw new s("Side channel does not contain "+a(e))},delete:function(t){if(e){var r=f(e,t);return 0===d(e)&&(e=void 0),r}return!1},get:function(t){if(e)return c(e,t)},has:function(t){return!!e&&l(e,t)},set:function(t,r){e||(e=new o),u(e,t,r)}};return t}},4804:e=>{"use strict";e.exports="3.29.1"},8321:e=>{e.exports=function(e){return e.reduce(function(e,t){return e.concat(t)},[])}},10216:(e,t,r)=>{"use strict";r.d(t,{U:()=>_});var n=r(43363),i=r(22288),a=r(12115),s=r(39310),o=r(2163),c=r(71958),u=r(89722),l=r(35170),f=r(52053),d=r(45721),h=r(11828),m=r(51248);function p(e){var t=e.helper,r=e.attributesToClear,n=void 0===r?[]:r,i=t.state.setPage(0);return i=n.reduce(function(e,t){return i.isNumericRefined(t)?e.removeNumericRefinement(t):i.isHierarchicalFacet(t)?e.removeHierarchicalFacetRefinement(t):i.isDisjunctiveFacet(t)?e.removeDisjunctiveFacetRefinement(t):i.isConjunctiveFacet(t)?e.removeFacetRefinement(t):e},i),-1!==n.indexOf("query")&&(i=i.setQuery("")),i}var g=(0,l.V)({name:"clear-refinements",connector:!0}),v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m.l;return(0,f.t)(e,g()),function(r){var n=r||{},i=n.includedAttributes,a=void 0===i?[]:i,l=n.excludedAttributes,f=void 0===l?["query"]:l,v=n.transformItems,y=void 0===v?function(e){return e}:v;if(r&&r.includedAttributes&&r.excludedAttributes)throw Error(g("The options `includedAttributes` and `excludedAttributes` cannot be used together."));var b={refine:m.l,createURL:function(){return""},attributesToClear:[]},R=function(){return b.refine()},S=function(){return b.createURL()};return{$$type:"ais.clearRefinements",init:function(t){var r=t.instantSearchInstance;e((0,o._)((0,s._)({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!0)},render:function(t){var r=t.instantSearchInstance;e((0,o._)((0,s._)({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!1)},dispose:function(){t()},getRenderState:function(e,t){return(0,o._)((0,s._)({},e),{clearRefinements:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t=e.createURL,n=e.scopedResults,i=e.results;b.attributesToClear=n.reduce(function(e,t){var r,n,s,o,c,u,l;return e.concat((n=(r={scopedResult:t,includedAttributes:a,excludedAttributes:f,transformItems:y,results:i}).scopedResult,s=r.includedAttributes,o=r.excludedAttributes,c=r.transformItems,u=r.results,l=-1!==s.indexOf("query")||-1===o.indexOf("query"),{helper:n.helper,items:c((0,d.s)((0,h.t)(n.results,n.helper.state,l).map(function(e){return e.attribute}).filter(function(e){return 0===s.length||-1!==s.indexOf(e)}).filter(function(e){return"query"===e&&l||-1===o.indexOf(e)})),{results:u})}))},[]),b.refine=function(){b.attributesToClear.forEach(function(e){var t=e.helper,r=e.items;t.setState(p({helper:t,attributesToClear:r})).search()})},b.createURL=function(){return t(u.p.apply(void 0,(0,c._)(b.attributesToClear.map(function(e){return p({helper:e.helper,attributesToClear:e.items})}))))};var s=b.attributesToClear.some(function(e){return e.items.length>0});return{canRefine:s,hasRefinements:s,refine:R,createURL:S,widgetParams:r}}}}},y=r(41075),b=r(46164),R=r(67429);function S(e){var t=e.classNames,r=void 0===t?{}:t,s=e.disabled,o=void 0!==s&&s,c=e.onClick,u=e.translations,l=(0,i._)(e,["classNames","disabled","onClick","translations"]);return a.createElement("div",(0,b._)((0,n._)({},l),{className:(0,R.cx)("ais-ClearRefinements",r.root,l.className)}),a.createElement("button",{disabled:o,onClick:void 0===c?function(){}:c,className:(0,R.cx)("ais-ClearRefinements-button",r.button,o&&(0,R.cx)("ais-ClearRefinements-button--disabled",r.disabledButton))},u.resetButtonText))}function _(e){var t,r,s=e.includedAttributes,o=e.excludedAttributes,c=e.transformItems,u=e.translations,l=(0,i._)(e,["includedAttributes","excludedAttributes","transformItems","translations"]),f=(t={includedAttributes:s,excludedAttributes:o,transformItems:c},r={$$widgetType:"ais.clearRefinements"},(0,y.Z)(v,t,r)),d=f.canRefine,h={onClick:f.refine,disabled:!d,translations:(0,n._)({resetButtonText:"Clear refinements"},u)};return a.createElement(S,(0,n._)({},l,h))}},11828:(e,t,r)=>{"use strict";r.d(t,{t:()=>a});var n=r(25151);function i(e,t,r,i){var a,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o={type:t,attribute:r,name:i,escapedValue:"number"==typeof i&&i<0||"string"==typeof i?String(i).replace(/^-/,"\\-"):i},c=(0,n.I)(s,function(e){return e.name===r});if("hierarchical"===t){for(var u=function(e){c=c&&c.data&&(0,n.I)(Object.keys(c.data).map(d(c.data)),function(t){return t.name===f[e]})},l=e.getHierarchicalFacetByName(r),f=i.split(l.separator),d=function(e){return function(t){return e[t]}},h=0;void 0!==c&&h<f.length;++h)u(h);
1a=c&&c.count}else a=c&&c.data&&c.data[o.name];return void 0!==a&&(o.count=a),c&&void 0!==c.exhaustive&&(o.exhaustive=c.exhaustive),o}function a(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=e||{},a=[],s=t.facetsRefinements,o=void 0===s?{}:s,c=t.facetsExcludes,u=void 0===c?{}:c,l=t.disjunctiveFacetsRefinements,f=void 0===l?{}:l,d=t.hierarchicalFacetsRefinements,h=void 0===d?{}:d,m=t.numericRefinements,p=void 0===m?{}:m,g=t.tagRefinements;return Object.keys(o).forEach(function(e){o[e].forEach(function(r){a.push(i(t,"facet",e,r,n.facets))})}),Object.keys(u).forEach(function(e){u[e].forEach(function(t){a.push({type:"exclude",attribute:e,name:t,exclude:!0})})}),Object.keys(f).forEach(function(e){f[e].forEach(function(r){a.push(i(t,"disjunctive",e,"string"==typeof r?r.replace(/^\\-/,"-"):r,n.disjunctiveFacets))})}),Object.keys(h).forEach(function(e){h[e].forEach(function(r){a.push(i(t,"hierarchical",e,r,n.hierarchicalFacets))})}),Object.keys(p).forEach(function(e){var t=p[e];Object.keys(t).forEach(function(r){var n=t[r];(Array.isArray(n)?n:[n]).forEach(function(t){a.push({type:"numeric",attribute:e,name:"".concat(t),numericValue:t,operator:r})})})}),(void 0===g?[]:g).forEach(function(e){a.push({type:"tag",attribute:"_tags",name:e})}),r&&t.query&&t.query.trim()&&a.push({attribute:"query",type:"query",name:t.query,query:t.query}),a}},13745:e=>{"use strict";e.exports=function(){var e=Array.prototype.slice.call(arguments);return e.reduceRight(function(e,t){return Object.keys(Object(t)).forEach(function(r){var n="number"==typeof e[r]?e[r]:0,i=t[r];void 0!==i&&i>=n&&(void 0!==e[r]&&delete e[r],e[r]=i)}),e},{})}},13972:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ReflectAdapter",{enumerable:!0,get:function(){return r}});class r{static get(e,t,r){let n=Reflect.get(e,t,r);return"function"==typeof n?n.bind(e):n}static set(e,t,r,n){return Reflect.set(e,t,r,n)}static has(e,t){return Reflect.has(e,t)}static deleteProperty(e,t){return Reflect.deleteProperty(e,t)}}},14304:(e,t,r)=>{"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{_:()=>n})},14771:(e,t,r)=>{"use strict";Object.defineProperty(t,"b",{enumerable:!0,get:function(){return d}});let n=r(62731),i=r(8567),a=r(11332),s=r(90332),o=r(97412),c=r(10939),u=r(33497),l=r(76840),f=r(48302);function d(){let e="headers",t=i.workAsyncStorage.getStore(),r=a.workUnitAsyncStorage.getStore();if(t){if(r&&"after"===r.phase&&!(0,l.isRequestAPICallableInsideAfter)())throw Object.defineProperty(Error(`Route ${t.route} used "headers" inside "after(...)". This is not supported. If you need this data inside an "after" callback, use "headers" outside of the callback. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after`),"__NEXT_ERROR_CODE",{value:"E367",enumerable:!1,configurable:!0});if(t.forceStatic)return m(n.HeadersAdapter.seal(new Headers({})));if(r)switch(r.type){case"cache":{let e=Object.defineProperty(Error(`Route ${t.route} used "headers" inside "use cache". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use "headers" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E304",enumerable:!1,configurable:!0});throw Error.captureStackTrace(e,d),t.invalidDynamicUsageError??=e,e}case"private-cache":{let e=Object.defineProperty(Error(`Route ${t.route} used "headers" inside "use cache: private". Accessing "headers" inside a private cache scope is not supported. If you need this data inside a cached function use "headers" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E742",enumerable:!1,configurable:!0});throw Error.captureStackTrace(e,d),t.invalidDynamicUsageError??=e,e}case"unstable-cache":throw Object.defineProperty(Error(`Route ${t.route} used "headers" inside a function cached with "unstable_cache(...)". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use "headers" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`),"__NEXT_ERROR_CODE",{value:"E127",enumerable:!1,
1configurable:!0})}if(t.dynamicShouldError)throw Object.defineProperty(new o.StaticGenBailoutError(`Route ${t.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`headers\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E525",enumerable:!1,configurable:!0});if(r)switch(r.type){case"prerender":case"prerender-runtime":var u=t,p=r;let i=h.get(p);if(i)return i;let a=(0,c.makeHangingPromise)(p.renderSignal,u.route,"`headers()`");return h.set(p,a),a;case"prerender-client":let g="`headers`";throw Object.defineProperty(new f.InvariantError(`${g} must not be used within a client component. Next.js should be preventing ${g} from being included in client components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E693",enumerable:!1,configurable:!0});case"prerender-ppr":return(0,s.postponeWithTracking)(t.route,e,r.dynamicTracking);case"prerender-legacy":return(0,s.throwToInterruptStaticGeneration)(e,t,r);case"request":return(0,s.trackDynamicDataInDynamicRender)(r),m(r.headers)}}(0,a.throwForMissingRequestStore)(e)}r(13972);let h=new WeakMap;function m(e){let t=h.get(e);if(t)return t;let r=Promise.resolve(e);return h.set(e,r),Object.defineProperties(r,{append:{value:e.append.bind(e)},delete:{value:e.delete.bind(e)},get:{value:e.get.bind(e)},has:{value:e.has.bind(e)},set:{value:e.set.bind(e)},getSetCookie:{value:e.getSetCookie.bind(e)},forEach:{value:e.forEach.bind(e)},keys:{value:e.keys.bind(e)},values:{value:e.values.bind(e)},entries:{value:e.entries.bind(e)},[Symbol.iterator]:{value:e[Symbol.iterator].bind(e)}}),r}(0,u.createDedupedByCallsiteServerErrorLoggerDev)(function(e,t){let r=e?`Route "${e}" `:"This route ";return Object.defineProperty(Error(`${r}used ${t}. \`headers()\` should be awaited before using its value. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`),"__NEXT_ERROR_CODE",{value:"E277",enumerable:!1,configurable:!0})})},14921:(e,t,r)=>{"use strict";var n=r(80045),i=r(23034),a=r(33457),s=r(3945),o=r(94105),c=n("%WeakMap%",!0),u=i("WeakMap.prototype.get",!0),l=i("WeakMap.prototype.set",!0),f=i("WeakMap.prototype.has",!0),d=i("WeakMap.prototype.delete",!0);e.exports=c?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new o("Side channel does not contain "+a(e))},delete:function(r){if(c&&r&&("object"==typeof r||"function"==typeof r)){if(e)return d(e,r)}else if(s&&t)return t.delete(r);return!1},get:function(r){return c&&r&&("object"==typeof r||"function"==typeof r)&&e?u(e,r):t&&t.get(r)},has:function(r){return c&&r&&("object"==typeof r||"function"==typeof r)&&e?f(e,r):!!t&&t.has(r)},set:function(r,n){c&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new c),l(e,r,n)):s&&(t||(t=s()),t.set(r,n))}};return r}:s},15138:(e,t,r)=>{"use strict";r.d(t,{t:()=>a});var n=r(12115),i=r(24024);function a(){return(0,n.useContext)(i.V)}},15768:(e,t,r)=>{"use strict";r.d(t,{V:()=>e8});var n=r(19358),i=r(12115),a=r(53510),s=r(60945),o=r(32966),c=r(26445),u=r(61077);function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}var d=r(91317),h=r(45581),m=r(63552),p=r(14304);function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var y=r(39310),b=r(71958),R=r(38115),S=r(3085),_=r(2163),w=r(39457);function x(e){if(e.appId&&e.apiKey)return[e.appId,e.apiKey];if(!e.transporter)return[e.applicationID,e.apiKey];var t=e.transporter,r=t.headers||t.baseHeaders,n=t.queryParameters||t.baseQueryParameters,i="x-algolia-application-id",a="x-algolia-api-key";return[r[i]||n[i],r[a]||n[a]]}var P=r(25151),j=r(51248),O="2.17.2",E="https://cdn.jsdelivr.net/npm/search-insights@".concat(O,"/dist/search-insights.min.js");function I(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.insightsClient,r=e.insightsInitParams,i=e.onEvent,a=e.$$internal,s=void 0!==a&&a,o=e.$$automatic,c=void 0!==o&&o,u=t;t||null===t||(0,n.x)(function(e){var t=e.window,r=t.AlgoliaAnalyticsObject||"aa";"string"==typeof r&&(u=t[r]),u||(t.AlgoliaAnalyticsObject=r,t[r]||(t[r]=function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];t[r].queue||(t[r].queue=[]),t[r].queue.push(n)},t[r].version=O,t[r].shouldAddScript=!0),u=t[r])});var l=u||j.l;return function(e){var t,n,a,o=e.instantSearchInstance,u=o.middleware.filter(function(e){return"ais.insights"===e.instance.$$type&&e.instance.$$internal}).map(function(e){return e.creator});o.unuse.apply(o,(0,b._)(u));var f=(0,w._)(x(o.client),2),h=f[0],m=f[1],p=void 0,g=void 0,v=void 0,R=l.queue;return Array.isArray(R)&&(g=(t=(0,w._)(["setUserToken","init"].map(function(e){return(0,w._)((0,P.I)(R.slice().reverse(),function(t){return(0,w._)(t,1)[0]===e})||[],2)[1]}),2))[0],p=t[1]),l("getUserToken",null,function(e,t){v=T(t)}),(r||!F(l))&&l("init",(0,y._)({appId:h,apiKey:m,partial:!0},r)),{$$type:"ais.insights",$$internal:s,$$automatic:c,onStateChange:function(){},subscribe:function(){if(l.shouldAddScript){var e="[insights middleware]: could not load search-insights.js. Please load it manually following https://alg.li/insights-init";try{var t=document.createElement("script");
1t.async=!0,t.src=E,t.onerror=function(){o.emit("error",Error(e))},document.body.appendChild(t),l.shouldAddScript=!1}catch(t){l.shouldAddScript=!1,o.emit("error",Error(e))}}},started:function(){l("addAlgoliaAgent","insights-middleware"),a=o.mainHelper;var e,t,u,f,h,m,b,R,S,j,O,E,I=l.queue;Array.isArray(I)&&(g=(j=(0,w._)(["setUserToken","init"].map(function(e){return(0,w._)((0,P.I)(I.slice().reverse(),function(t){return(0,w._)(t,1)[0]===e})||[],2)[1]}),2))[0],p=j[1]),f=(null==(u=(e=o)._initialResults)||null==(t=u[e.indexName])?void 0:t.state)||{},h=e.mainHelper.state,n={userToken:f.userToken||h.userToken,clickAnalytics:f.clickAnalytics||h.clickAnalytics},c||a.overrideStateWithoutTriggeringChangeEvent((0,_._)((0,y._)({},a.state),{clickAnalytics:!0})),s||o.scheduleSearch();var k=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=T(e);if(r){var n=a.state.userToken;t?i():setTimeout(i,0)}function i(){a.overrideStateWithoutTriggeringChangeEvent((0,_._)((0,y._)({},a.state),{userToken:r})),n&&n!==e&&o.scheduleSearch()}};function A(e){k(e,!0),l("setUserToken",e)}var N=void 0,C=function(){if(("undefined"==typeof document?"undefined":(0,d._)(document))==="object"&&"string"==typeof document.cookie)for(var e="".concat("_ALGOLIA","="),t=document.cookie.split(";"),r=0;r<t.length;r++){for(var n=t[r];" "===n.charAt(0);)n=n.substring(1);if(0===n.indexOf(e))return n.substring(e.length,n.length)}}();N=C||"anonymous-".concat("xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}));var D=n.userToken;(null==r?void 0:r.userToken)&&(O=r.userToken),O?A(O):D?A(D):v?A(v):g?A(g):N&&(A(N),((null==r?void 0:r.useCookie)||(null==p?void 0:p.useCookie))&&(m=N,b=(null==r?void 0:r.cookieDuration)||(null==p?void 0:p.cookieDuration),(R=new Date).setTime(R.getTime()+(b||15552e6)),S="expires=".concat(R.toUTCString()),document.cookie="_ALGOLIA=".concat(m,";").concat(S,";path=/"))),l("onUserTokenChange",function(e){return k(e,!0)},{immediate:!0});var H=l;F(l)&&(H=function(e,t){var r=(0,w._)(x(o.client),2);return l(e,t,{headers:{"X-Algolia-Application-Id":r[0],"X-Algolia-API-Key":r[1]}})});var L=new Set;o.mainHelper.derivedHelpers[0].on("result",function(e){var t=e.results;t&&(!t.queryID||t.queryID!==E)&&(E=t.queryID,L.clear())}),o.sendEventToInsights=function(e){if(i)i(e,H);else if(e.insightsMethod){if("viewedObjectIDs"===e.insightsMethod){var t=e.payload,r=t.objectIDs.filter(function(e){return!L.has(e)});if(0===r.length)return;r.forEach(function(e){return L.add(e)}),t.objectIDs=r}e.payload.algoliaSource=["instantsearch"],c&&e.payload.algoliaSource.push("instantsearch-automatic"),"internal"===e.eventModifier&&e.payload.algoliaSource.push("instantsearch-internal"),H(e.insightsMethod,e.payload)}}},unsubscribe:function(){l("onUserTokenChange",void 0),o.sendEventToInsights=j.l,a&&n&&(a.overrideStateWithoutTriggeringChangeEvent((0,y._)({},a.state,n)),o.scheduleSearch())}}}}function F(e){var t=(0,w._)((e.version||"").split(".").map(Number),2),r=t[0],n=t[1];return r>=3||2===r&&n>=6||1===r&&n>=10}function T(e){if(e)return"number"==typeof e?e.toString():e}var k=r(21385);function A(e,t,r){var n=t.getHelper();return{uiState:r,helper:n,parent:t,instantSearchInstance:e,state:n.state,renderState:e.renderState,templatesConfig:e.templatesConfig,createURL:t.createURL,scopedResults:[],searchMetadata:{isSearchStalled:"stalled"===e.status},status:e.status,error:e.error}}function N(e,t,r){var n=t.getResultsForWidget(r),i=t.getHelper();return{helper:i,parent:t,instantSearchInstance:e,results:n,scopedResults:t.getScopedResults(),state:n&&"_state"in n?n._state:i.state,renderState:e.renderState,templatesConfig:e.templatesConfig,createURL:t.createURL,searchMetadata:{isSearchStalled:"stalled"===e.status},status:e.status,error:e.error}}function C(e){var t=e.renderState,r=e.instantSearchInstance,n=e.parent,i=n?n.getIndexId():r.mainIndex.getIndexId();r.renderState=(0,_._)((0,y._)({},r.renderState),(0,p._)({},i,(0,y._)({},r.renderState[i],t)))}var D=r(20463),H=function(e){e&&(window.document.title=e)},L=function(){function e(t){var r=this,i=t.windowTitle,a=t.writeDelay,s=t.createURL,o=t.parseURL,c=t.getLocation,u=t.start,l=t.dispose,f=t.push,d=t.cleanUrlOnDispose;(0,h._)(this,e),(0,p._)(this,"$$type","ais.browser"),(0,p._)(this,"windowTitle",void 0),(0,p._)(this,"writeDelay",void 0),(0,p._)(this,"_createURL",void 0),(0,p._)(this,"parseURL",void 0),(0,p._)(this,"getLocation",void 0),(0,p._)(this,"writeTimer",void 0),(0,p._)(this,"_onPopState",void 0),(0,p._)(this,"inPopState",!1),(0,p._)(this,"isDisposed",!1),(0,p._)(this,"latestAcknowledgedHistory",0),(0,p._)(this,"_start",void 0),(0,p._)(this,"_dispose",void 0),(0,p._)(this,"_push",void 0),(0,p._)(this,"_cleanUrlOnDispose",void 0),this.windowTitle=i,this.writeTimer=void 0,this.writeDelay=void 0===a?400:a,this._createURL=s,this.parseURL=o,this.getLocation=c,this._start=u,this._dispose=l,this._push=f,this._cleanUrlOnDispose=void 0===d||d,(0,n.x)(function(e){var t=e.window;H(r.windowTitle&&r.windowTitle(r.read())),r.latestAcknowledgedHistory=t.history.length})}return(0,m._)(e,[{key:"read",value:function(){return this.parseURL({qsModule:D,location:this.getLocation()})}},{key:"write",value:function(e){var t=this;(0,n.x)(function(r){var n=r.window,i=t.createURL(e),a=t.windowTitle&&t.windowTitle(e);t.writeTimer&&clearTimeout(t.writeTimer),t.writeTimer=setTimeout(function(){H(a),t.shouldWrite(i)&&(t._push?t._push(i):n.history.pushState(e,a||"",i),t.latestAcknowledgedHistory=n.history.length),t.inPopState=!1,t.writeTimer=void 0},t.writeDelay)})}}
1,{key:"onUpdate",value:function(e){var t=this;this._start&&this._start(function(){e(t.read())}),this._onPopState=function(){t.writeTimer&&(clearTimeout(t.writeTimer),t.writeTimer=void 0),t.inPopState=!0,e(t.read())},(0,n.x)(function(e){e.window.addEventListener("popstate",t._onPopState)})}},{key:"createURL",value:function(e){return this._createURL({qsModule:D,routeState:e,location:this.getLocation()})}},{key:"dispose",value:function(){var e=this;this._dispose&&this._dispose(),this.isDisposed=!0,(0,n.x)(function(t){var r=t.window;e._onPopState&&r.removeEventListener("popstate",e._onPopState)}),this.writeTimer&&clearTimeout(this.writeTimer),this._cleanUrlOnDispose&&this.write({})}},{key:"start",value:function(){this.isDisposed=!1}},{key:"shouldWrite",value:function(e){var t=this;return(0,n.x)(function(r){var n=r.window;if(t.isDisposed&&!t._cleanUrlOnDispose)return!1;var i=!(t.isDisposed&&t.latestAcknowledgedHistory!==n.history.length);return!t.inPopState&&i&&e!==n.location.href})}}]),e}();function M(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.createURL,r=void 0===t?function(e){var t=e.qsModule,r=e.routeState,n=e.location,i=n.protocol,a=n.hostname,s=n.port,o=void 0===s?"":s,c=n.pathname,u=n.hash,l=t.stringify(r),f=""===o?"":":".concat(o);return l?"".concat(i,"//").concat(a).concat(f).concat(c,"?").concat(l).concat(u):"".concat(i,"//").concat(a).concat(f).concat(c).concat(u)}:t,i=e.parseURL,a=void 0===i?function(e){var t=e.qsModule,r=e.location;return t.parse(r.search.slice(1),{arrayLimit:99})}:i,s=e.writeDelay,o=e.windowTitle,c=e.getLocation;return new L({createURL:r,parseURL:a,writeDelay:void 0===s?400:s,windowTitle:o,getLocation:void 0===c?function(){return(0,n.x)(function(e){return e.window.location},{fallback:function(){throw Error("You need to provide `getLocation` to the `history` router in environments where `window` does not exist.")}})}:c,start:e.start,dispose:e.dispose,push:e.push,cleanUrlOnDispose:e.cleanUrlOnDispose})}var q=r(24749);function W(e){return e.configure,(0,q._)(e,["configure"])}function U(e){return e!==Object(e)}var Q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.router,r=void 0===t?M():t,n=e.stateMapping,i=void 0===n?{$$type:"ais.simple",stateToRoute:function(e){return Object.keys(e).reduce(function(t,r){return(0,_._)((0,y._)({},t),(0,p._)({},r,W(e[r])))},{})},routeToState:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];return(void 0===n?"undefined":(0,d._)(n))!=="object"||null===n?t:(0,_._)((0,y._)({},t),(0,p._)({},r,W(n)))},{})}}:n,a=e.$$internal,s=void 0!==a&&a;return function(e){var t=e.instantSearchInstance;t._createURL=function(e){var n=0===t.mainIndex.getWidgets().length?t._initialUiState:t.mainIndex.getWidgetUiState({}),a=Object.keys(e).reduce(function(t,r){return(0,_._)((0,y._)({},t),(0,p._)({},r,e[r]))},n),s=i.stateToRoute(a);return r.createURL(s)};var n=void 0,a=t._initialUiState;return{$$type:"ais.router({router:".concat(r.$$type||"__unknown__",", stateMapping:").concat(i.$$type||"__unknown__","})"),$$internal:s,onStateChange:function(e){var t=e.uiState,a=i.stateToRoute(t);(void 0===n||!function e(t,r){if(t===r)return!0;if(U(t)||U(r)||"function"==typeof t||"function"==typeof r)return t===r;if(Object.keys(t).length!==Object.keys(r).length)return!1;var n=!0,i=!1,a=void 0;try{for(var s,o=Object.keys(t)[Symbol.iterator]();!(n=(s=o.next()).done);n=!0){var c=s.value;if(!(c in r)||!e(t[c],r[c]))return!1}}catch(e){i=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}return!0}(n,a))&&(r.write(a),n=a)},subscribe:function(){t._initialUiState=(0,y._)({},a,i.routeToState(r.read())),r.onUpdate(function(e){t.mainIndex.getWidgets().length>0&&t.setUiState(i.routeToState(e))})},started:function(){var e;null==(e=r.start)||e.call(r)},unsubscribe:function(){r.dispose()}}}},$=0,B=Promise.resolve();function V(e){var t=null,r=!1,n=function(){for(var n=arguments.length,i=Array(n),a=0;a<n;a++)i[a]=arguments[a];null===t&&(t=B.then(function(){if(t=null,r){r=!1;return}e.apply(void 0,(0,b._)(i))}))};return n.wait=function(){if(null===t)throw Error("The deferred function should be called before calling `wait()`");return t},n.cancel=function(){null!==t&&(r=!0)},n}function z(e){for(var t=e.getParent(),r=[e.getHelper().state];null!==t;)r=[t.getHelper().state].concat(r),t=t.getParent();return r}var K=r(35170),J=r(89722),G=(0,K.V)({name:"index-widget"});function Z(e,t){var r=t.state,n=t.recommendState,i=t.isPageReset,a=t._uiState;r!==e.state&&(e.state=r,e.emit("change",{state:e.state,results:e.lastResults,isPageReset:i,_uiState:a})),n!==e.recommendState&&(e.recommendState=n)}function X(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.reduce(function(e,r){return!(0,k.l)(r)&&(r.getWidgetUiState||r.getWidgetState)?r.getWidgetUiState?r.getWidgetUiState(e,t):r.getWidgetState(e,t):e},r)}function Y(e,t){var r=t.initialSearchParameters,n=(0,q._)(t,["initialSearchParameters"]);return e.reduce(function(e,t){return!t.getWidgetSearchParameters||(0,k.l)(t)?e:"search"===t.dependsOn&&t.getWidgetParameters?t.getWidgetParameters(e,n):t.getWidgetSearchParameters(e,n)},r)}function ee(e,t){var r=t.initialRecommendParameters,n=(0,q._)(t,["initialRecommendParameters"]);return e.reduce(function(e,t){return!(0,k.l)(t)&&"recommend"===t.dependsOn&&t.getWidgetParameters?t.getWidgetParameters(e,n):e},r)}var et=function(e){if(void 0===e||void 0===e.indexName&&!e.EXPERIMENTAL_isolated)throw Error(G("The `indexName` option is required."));var t=e.indexName,r=void 0===t?"":t,n=e.indexId,i=void 0===n?r:n,a=e.EXPERIMENTAL_isolated,s=void 0!==a&&a,o=[],c={},u=null,l=null,f=null,d=null,h=null,m=!1,g=!1;return{$$type:"ais.index",$$widgetType:"ais.index",_isolated:s,getIndexName:function(){return r},getIndexId:function(){return i},getHelper:function(){return f},getResults:function(){return(null==d?void 0:d.lastResults)?(d.lastResults._state=f.state,d.lastResults):null},getResultsForWidget:function(e){return"recommend"!==e.dependsOn||(0,k.l)(e)||void 0===e.$$id?this.getResults():(null==f?void 0:f.lastRecommendResults)?f.lastRecommendResults[e.$$id]:null},getPreviousState:function(){return h},getScopedResults:function(){var e=this.getParent();return function e(t){return t.filter(k.l).reduce(function(t,r){return t.concat.apply(t,[{indexId:r.getIndexId(),results:r.getResults(),helper:r.getHelper()}].concat((0,b._)(e(r.getWidgets()))))},[])}(e?e.getWidgets():0===r.length?this.getWidgets():[this])},getParent:function(){return s?null:l},createURL:function(e){return"function"==typeof e?u._createURL((0,p._)({},i,e(c))):u._createURL((0,p._)({},i,X(o,{searchParameters:e,helper:f})))},scheduleLocalSearch:V(function(){s&&(null==f||f.search())}),getWidgets:function(){return o},addWidgets:function(e){var t=this;if(!Array.isArray(e))throw Error(G("The `addWidgets` method expects an array of widgets."));var r=e.reduce(function(e,t){return e.concat(Array.isArray(t)?t:[t])},[]);if(r.some(function(e){return"function"!=typeof e.init&&"function"!=typeof e.render}))throw Error(G("The widget definition expects a `render` and/or an `init` method."));return r.forEach(function(e){(e.parent=t,!(0,k.l)(e))&&(u&&"recommend"===e.dependsOn?u._hasRecommendWidget=!0:u?u._hasSearchWidget=!0:"recommend"===e.dependsOn?m=!0:g=!0,"recommend"===e.dependsOn&&(e.$$id=$++))}),o=o.concat(r),u&&r.length&&(Z(f,{state:Y(o,{uiState:c,initialSearchParameters:f.state}),recommendState:ee(o,{uiState:c,initialRecommendParameters:f.recommendState}),_uiState:c}),r.forEach(function(e){e.getRenderState&&C({renderState:e.getRenderState(u.renderState[t.getIndexId()]||{},A(u,t,u._initialUiState)),instantSearchInstance:u,parent:t})}),r.forEach(function(e){e.init&&e.init(A(u,t,u._initialUiState))}),s?this.scheduleLocalSearch():u.scheduleSearch()),this},removeWidgets:function(e){var t=this;if(!Array.isArray(e))throw Error(G("The `removeWidgets` method expects an array of widgets."));var r=e.reduce(function(e,t){return e.concat(Array.isArray(t)?t:[t])},[]);if(r.some(function(e){return"function"!=typeof e.dispose}))throw Error(G("The widget definition expects a `dispose` method."));if((o=o.filter(function(e){return -1===r.indexOf(e)}
1)).forEach(function(e){e.parent=void 0,(0,k.l)(e)||(u&&"recommend"===e.dependsOn?u._hasRecommendWidget=!0:u?u._hasSearchWidget=!0:"recommend"===e.dependsOn?m=!0:g=!0)}),u&&r.length){var n=r.reduce(function(e,r){var n=r.dispose({helper:f,state:e.cleanedSearchState,recommendState:e.cleanedRecommendState,parent:t});return v(n,S.RecommendParameters)?e.cleanedRecommendState=n:n&&(e.cleanedSearchState=n),e},{cleanedSearchState:f.state,cleanedRecommendState:f.recommendState}),i=n.cleanedSearchState,a=n.cleanedRecommendState,l=u.future.preserveSharedStateOnUnmount?Y(o,{uiState:c,initialSearchParameters:new S.SearchParameters({index:this.getIndexName()})}):Y(o,{uiState:X(o,{searchParameters:i,helper:f}),initialSearchParameters:i});c=X(o,{searchParameters:l,helper:f}),f.setState(l),f.recommendState=a,o.length&&(s?this.scheduleLocalSearch():u.scheduleSearch())}return this},init:function(e){var t,n=this,a=e.instantSearchInstance,p=e.parent,v=e.uiState;if(null===f){u=a,l=p,c=v[i]||{};var y=a.mainHelper,R=Y(o,{uiState:c,initialSearchParameters:new S.SearchParameters({index:r})}),_=ee(o,{uiState:c,initialRecommendParameters:new S.RecommendParameters});(f=S(y.getClient(),R.index,R)).recommendState=_,f.search=function(){return s?(a.status="loading",n.render({instantSearchInstance:a}),a.compositionID?f.searchWithComposition():f.searchOnlyWithDerivedHelpers()):a.onStateChange?(a.onStateChange({uiState:a.mainIndex.getWidgetUiState({}),setUiState:function(e){return a.setUiState(e,!1)}}),y):y.search()},f.searchWithoutTriggeringOnStateChange=function(){return y.search()},f.searchForFacetValues=function(e,t,r,i){var a=J.p.apply(void 0,[y.state].concat((0,b._)(z(n)))).setQueryParameters(i);return y.searchForFacetValues(e,t,r,a)};var w=r?f:S({},"__empty_index__",{});d=(s?w:function(e,t){for(;e;){if(e._isolated)return e.getHelper();e=e.getParent()}return t}(p,y)).derive(function(){return J.p.apply(void 0,[y.state].concat((0,b._)(z(n))))},function(){return n.getHelper().recommendState});var x=null==(t=a._initialResults)?void 0:t[this.getIndexId()];if(null==x?void 0:x.results){var P=new S.SearchResults(new S.SearchParameters(x.state),x.results);d.lastResults=P,f.lastResults=P}if(null==x?void 0:x.recommendResults){var j=new S.RecommendResults(new S.RecommendParameters({params:x.recommendResults.params}),x.recommendResults.results);d.lastRecommendResults=j,f.lastRecommendResults=j}f.on("change",function(e){e.isPageReset&&function e(t){var r=t.filter(k.l);0!==r.length&&r.forEach(function(t){var r=t.getHelper();Z(r,{state:r.state.resetPage(),recommendState:r.recommendState,isPageReset:!0}),e(t.getWidgets())})}(o)}),d.on("search",function(){a.scheduleStalledRender()}),d.on("result",function(e){var t=e.results;a.scheduleRender(),f.lastResults=t,h=null==t?void 0:t._state}),d.on("recommend:result",function(e){var t=e.recommend;a.scheduleRender(),f.lastRecommendResults=t.results}),o.forEach(function(e){e.getRenderState&&C({renderState:e.getRenderState(a.renderState[n.getIndexId()]||{},A(a,n,v)),instantSearchInstance:a,parent:n})}),o.forEach(function(e){e.init&&e.init(A(a,n,v))}),f.on("change",function(e){var t=e.state,r=e._uiState;c=X(o,{searchParameters:t,helper:f},r||{}),a.onStateChange||a.onInternalStateChange()}),x&&a.scheduleRender(),m&&(a._hasRecommendWidget=!0),g&&(a._hasSearchWidget=!0)}},render:function(e){var t=this,n=e.instantSearchInstance;"error"===n.status&&!n.mainHelper.hasPendingRequests()&&h&&f.setState(h);var i=this.getResults()||(null==d?void 0:d.lastRecommendResults)||s&&!r?o:o.filter(function(e){return e.shouldRender});(i=i.filter(function(e){return!e.shouldRender||e.shouldRender({instantSearchInstance:n})})).forEach(function(e){e.getRenderState&&C({renderState:e.getRenderState(n.renderState[t.getIndexId()]||{},N(n,t,e)),instantSearchInstance:n,parent:t})}
1),i.forEach(function(e){e.render&&e.render(N(n,t,e))})},dispose:function(){var e=this;o.forEach(function(t){t.dispose&&f&&t.dispose({helper:f,state:f.state,recommendState:f.recommendState,parent:e})}),u=null,l=null,null==f||f.removeAllListeners(),f=null,null==d||d.detach(),d=null},getWidgetUiState:function(e){return o.filter(k.l).filter(function(e){return!e._isolated}).reduce(function(e,t){return t.getWidgetUiState(e)},(0,_._)((0,y._)({},e),(0,p._)({},i,(0,y._)({},e[i],c))))},getWidgetState:function(e){return this.getWidgetUiState(e)},getWidgetSearchParameters:function(e,t){var r=t.uiState;return Y(o,{uiState:r,initialSearchParameters:e})},shouldRender:function(){return!0},refreshUiState:function(){c=X(o,{searchParameters:this.getHelper().state,helper:this.getHelper()},c)},setIndexUiState:function(e){var t="function"==typeof e?e(c):e;u.setUiState(function(e){return(0,_._)((0,y._)({},e),(0,p._)({},i,t))})}}},er=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.descendantName,n=t.modifierName;return"".concat("ais","-").concat(e).concat(r?"-".concat(r):"").concat(n?"--".concat(n):"")}};function en(e,t){return(Array.isArray(t)?t:t.split(".")).reduce(function(e,t){return e&&e[t]},e)}var ei=r(79675),ea=er("Highlight");function es(e){var t=ei.sn.highlightPreTag,r=ei.sn.highlightPostTag;return e.map(function(e){return e.isHighlighted?t+e.value+r:e.value}).join("")}var eo=r(42247),ec=new RegExp(/\w/i);function eu(e){return e.some(function(e){return e.isHighlighted})?e.map(function(t,r){var n,i,a,s,o;return(0,_._)((0,y._)({},t),{isHighlighted:(a=e[r],s=(null==(n=e[r+1])?void 0:n.isHighlighted)||!0,o=(null==(i=e[r-1])?void 0:i.isHighlighted)||!0,ec.test((0,eo.x)(a.value))||o!==s?!a.isHighlighted:!o)})}):e.map(function(e){return(0,_._)((0,y._)({},e),{isHighlighted:!1})})}var el=r(18717),ef=er("ReverseHighlight"),ed=er("Snippet"),eh=er("ReverseSnippet"),em=r(16040);function ep(e){var t;return(null==(t=e.compositionFeedsResults)?void 0:t.length)?e.compositionFeedsResults:e.results||[]}function eg(e){var t=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=0;return e.replace(/%s/g,function(){return encodeURIComponent(r[i++])})};return Object.keys(e).map(function(r){var n;return t("%s=%s",r,(n=e[r],"[object Object]"===Object.prototype.toString.call(n)||"[object Array]"===Object.prototype.toString.call(n))?JSON.stringify(e[r]):e[r])}).join("&")}function ev(e,t){var r=e[t.getIndexId()]||{};t.getHelper().setState(t.getWidgetSearchParameters(t.getHelper().state,{uiState:r})),t.getWidgets().filter(k.l).forEach(function(t){return ev(e,t)})}var ey=(0,K.V)({name:"instantsearch"});function eb(){return"#"}var eR={preserveSharedStateOnUnmount:!1,persistHierarchicalRootCount:!1},eS=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function t(e){(0,h._)(this,t),r=function(e,t,r){t=l(t);var n=f()?Reflect.construct(t,[],l(e).constructor):t.apply(e,void 0);if(n&&("object"===(0,d._)(n)||"function"==typeof n))return n;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,t),(0,p._)(r,"client",void 0),(0,p._)(r,"indexName",void 0),(0,p._)(r,"compositionID",void 0),(0,p._)(r,"insightsClient",void 0),(0,p._)(r,"onStateChange",null),(0,p._)(r,"future",void 0),(0,p._)(r,"helper",void 0),(0,p._)(r,"mainHelper",void 0),(0,p._)(r,"mainIndex",void 0),(0,p._)(r,"started",void 0),(0,p._)(r,"templatesConfig",void 0),(0,p._)(r,"renderState",{}),(0,p._)(r,"_stalledSearchDelay",void 0),(0,p._)(r,"_searchStalledTimer",void 0),(0,p._)(r,"_initialUiState",void 0),(0,p._)(r,"_initialResults",void 0),(0,p._)(r,"_manuallyResetScheduleSearch",!1),(0,p._)(r,"_resetScheduleSearch",void 0),(0,p._)(r,"_createURL",void 0),(0,p._)(r,"_searchFunction",void 0),(0,p._)(r,"_mainHelperSearch",void 0),(0,p._)(r,"_hasSearchWidget",!1),(0,p._)(r,"_hasRecommendWidget",!1),(0,p._)(r,"_insights",void 0),(0,p._)(r,"middleware",[]),(0,p._)(r,"sendEventToInsights",void 0),(0,p._)(r,"status","idle"),(0,p._)(r,"error",void 0),(0,p._)(r,"scheduleSearch",V(function(){r.started&&r.mainHelper.search()})),(0,p._)(r,"scheduleRender",V(function(){var e,t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];(null==(e=r.mainHelper)?void 0:e.hasPendingRequests())||(clearTimeout(r._searchStalledTimer),r._searchStalledTimer=null,t&&(r.status="idle",r.error=void 0)),r.mainIndex.render({instantSearchInstance:r}),r.emit("render")})),(0,p._)(r,"onInternalStateChange",V(function(){var e=r.mainIndex.getWidgetUiState({});r.middleware.forEach(function(t){t.instance.onStateChange({uiState:e})})})),r.setMaxListeners(100);var r,i=e.indexName,a=e.compositionID,s=e.numberLocale,o=e.initialUiState,c=e.routing,u=void 0===c?null:c,m=e.insights,g=void 0===m?void 0:m,v=e.searchFunction,b=e.stalledSearchDelay,R=e.searchClient,S=void 0===R?null:R,w=e.insightsClient,x=void 0===w?null:w,P=e.onStateChange,O=e.future,E=void 0===O?(0,y._)({},eR,e.future||{}):O;if(null===S)throw Error(ey("The `searchClient` option is required."));if("function"!=typeof S.search)throw Error("The `searchClient` must implement a `search` method.\n\nSee: https://www.algolia.com/doc/guides/building-search-ui/going-further/backend-search/in-depth/backend-instantsearch/js/");if("function"==typeof S.addAlgoliaAgent&&S.addAlgoliaAgent("instantsearch.js (".concat("4.102.0",")")),x&&"function"!=typeof x)throw Error(ey("The `insightsClient` option should be a function."));if(r.client=S,r.future=E,r.insightsClient=x,r.indexName=void 0===i?"":i,r.compositionID=a,r.helper=null,r.mainHelper=null,r.mainIndex=et({indexName:r.compositionID||r.indexName}),r.onStateChange=void 0===P?null:P,r.started=!1,r.templatesConfig={helpers:{formatNumber:function(e,t){var r;
1return r=Number(t(e)),r.toLocaleString(s)},highlight:function(e,t){try{var r,n,i,a,s,o,c,u,l,f=JSON.parse(e);return t((n=(r=(0,_._)((0,y._)({},f),{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,s=r.hit,o=r.cssClasses,c=void 0===o?{}:o,u=(en(s._highlightResult,n)||{}).value,l=ea({descendantName:"highlighted"})+(c.highlighted?" ".concat(c.highlighted):""),(void 0===u?"":u).replace(RegExp(ei.sn.highlightPreTag,"g"),"<".concat(a,' class="').concat(l,'">')).replace(RegExp(ei.sn.highlightPostTag,"g"),"</".concat(a,">"))))}catch(e){throw Error('\nThe highlight helper expects a JSON object of the format:\n{ "attribute": "name", "highlightedTagName": "mark" }')}},reverseHighlight:function(e,t){try{var r,n,i,a,s,o,c,u,l,f=JSON.parse(e);return t((n=(r=(0,_._)((0,y._)({},f),{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,s=r.hit,o=r.cssClasses,c=void 0===o?{}:o,u=(en(s._highlightResult,n)||{}).value,l=ef({descendantName:"highlighted"})+(c.highlighted?" ".concat(c.highlighted):""),es(eu((0,el.I)(void 0===u?"":u))).replace(RegExp(ei.sn.highlightPreTag,"g"),"<".concat(a,' class="').concat(l,'">')).replace(RegExp(ei.sn.highlightPostTag,"g"),"</".concat(a,">"))))}catch(e){throw Error('\n  The reverseHighlight helper expects a JSON object of the format:\n  { "attribute": "name", "highlightedTagName": "mark" }')}},snippet:function(e,t){try{var r,n,i,a,s,o,c,u,l,f=JSON.parse(e);return t((n=(r=(0,_._)((0,y._)({},f),{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,s=r.hit,o=r.cssClasses,c=void 0===o?{}:o,u=(en(s._snippetResult,n)||{}).value,l=ed({descendantName:"highlighted"})+(c.highlighted?" ".concat(c.highlighted):""),(void 0===u?"":u).replace(RegExp(ei.sn.highlightPreTag,"g"),"<".concat(a,' class="').concat(l,'">')).replace(RegExp(ei.sn.highlightPostTag,"g"),"</".concat(a,">"))))}catch(e){throw Error('\nThe snippet helper expects a JSON object of the format:\n{ "attribute": "name", "highlightedTagName": "mark" }')}},reverseSnippet:function(e,t){try{var r,n,i,a,s,o,c,u,l,f=JSON.parse(e);return t((n=(r=(0,_._)((0,y._)({},f),{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,s=r.hit,o=r.cssClasses,c=void 0===o?{}:o,u=(en(s._snippetResult,n)||{}).value,l=eh({descendantName:"highlighted"})+(c.highlighted?" ".concat(c.highlighted):""),es(eu((0,el.I)(void 0===u?"":u))).replace(RegExp(ei.sn.highlightPreTag,"g"),"<".concat(a,' class="').concat(l,'">')).replace(RegExp(ei.sn.highlightPostTag,"g"),"</".concat(a,">"))))}catch(e){throw Error('\n  The reverseSnippet helper expects a JSON object of the format:\n  { "attribute": "name", "highlightedTagName": "mark" }')}},insights:function(e,t){try{var r,n=JSON.parse(e),i=n.method,a=n.payload;return t((r=(0,y._)({objectIDs:[this.objectID]},a),function(e){var t,r=e.method,n=e.payload;if((void 0===n?"undefined":(0,d._)(n))!=="object")throw Error("The insights helper expects the payload to be an object.");try{t=(0,em.h)(n)}catch(e){throw Error("Could not JSON serialize the payload object.")}return'data-insights-method="'.concat(r,'" data-insights-payload="').concat(t,'"')}({method:i,payload:r})))}catch(e){throw Error('\nThe insights helper expects a JSON object of the format:\n{ "method": "method-name", "payload": { "eventName": "name of the event" } }')}}},compileOptions:{}},r._stalledSearchDelay=void 0===b?200:b,r._searchStalledTimer=null,r._createURL=eb,r._initialUiState=void 0===o?{}:o,r._initialResults=null,r._insights=g,v&&(r._searchFunction=v),r.sendEventToInsights=j.l,u){var F="boolean"==typeof u?{}:u;F.$$internal=!0,r.use(Q(F))}if(g){var T="boolean"==typeof g?{}:g;T.$$internal=!0,r.use(I(T))}return(0,n.x)(function(e){var t,r;return(null==(r=e.window.navigator)||null==(t=r.userAgent)?void 0:t.indexOf("Algolia Crawler"))>-1},{fallback:function(){return!1}})&&r.use(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.$$internal,r=void 0!==t&&t;return function(e){var t=e.instantSearchInstance,n={widgets:[]},i=document.createElement("meta"),a=document.querySelector("head");return i.name="instantsearch:widgets",{$$type:"ais.metadata",$$internal:r,onStateChange:function(){},subscribe:function(){setTimeout(function(){var e;n.ua=(e=t.client).transporter&&e.transporter.userAgent?e.transporter.userAgent.value:e._ua,function e(t,r,n){var i=A(r,r.mainIndex,r._initialUiState);t.forEach(function(t){var a={};
1if(t.getWidgetRenderState){var s=t.getWidgetRenderState(i);s&&s.widgetParams&&(a=s.widgetParams)}var o=Object.keys(a).filter(function(e){return void 0!==a[e]});n.widgets.push({type:t.$$type,widgetType:t.$$widgetType,params:o}),(0,k.l)(t)&&e(t.getWidgets(),r,n)})}(t.mainIndex.getWidgets(),t,n),t.middleware.forEach(function(e){return n.widgets.push({middleware:!0,type:e.instance.$$type,internal:e.instance.$$internal})}),i.content=JSON.stringify(n),a.appendChild(i)},0)},started:function(){},unsubscribe:function(){i.remove()}}}}({$$internal:!0})),r}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&g(t,e),(0,m._)(t,[{key:"_isSearchStalled",get:function(){return"stalled"===this.status}},{key:"use",value:function(){for(var e=this,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r.map(function(t){var r=(0,y._)({$$type:"__unknown__",$$internal:!1,subscribe:j.l,started:j.l,unsubscribe:j.l,onStateChange:j.l},t({instantSearchInstance:e}));return e.middleware.push({creator:t,instance:r}),r});return this.started&&i.forEach(function(e){e.subscribe(),e.started()}),this}},{key:"unuse",value:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.middleware.filter(function(e){return t.includes(e.creator)}).forEach(function(e){return e.instance.unsubscribe()}),this.middleware=this.middleware.filter(function(e){return!t.includes(e.creator)}),this}},{key:"EXPERIMENTAL_use",value:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.use.apply(this,(0,b._)(t))}},{key:"addWidget",value:function(e){return this.addWidgets([e])}},{key:"addWidgets",value:function(e){if(!Array.isArray(e))throw Error(ey("The `addWidgets` method expects an array of widgets. Please use `addWidget`."));if(this.compositionID&&e.some(function(e){return!Array.isArray(e)&&(0,k.l)(e)&&!e._isolated}))throw Error(ey("The `index` widget cannot be used with a composition-based InstantSearch implementation."));return this.mainIndex.addWidgets(e),this}},{key:"removeWidget",value:function(e){return this.removeWidgets([e])}},{key:"removeWidgets",value:function(e){if(!Array.isArray(e))throw Error(ey("The `removeWidgets` method expects an array of widgets. Please use `removeWidget`."));return this.mainIndex.removeWidgets(e),this}},{key:"start",value:function(){var e=this;if(this.started)throw Error(ey("The `start` method has already been called once."));var t=this.mainHelper||S(this.client,this.indexName,void 0,{persistHierarchicalRootCount:this.future.persistHierarchicalRootCount});if(this.compositionID&&(t.searchForFacetValues=t.searchForCompositionFacetValues.bind(t)),t.search=function(){return e.status="loading",e.scheduleRender(!1),e._hasSearchWidget&&(e.compositionID?t.searchWithComposition():t.searchOnlyWithDerivedHelpers()),e._hasRecommendWidget&&t.recommend(),t},this._searchFunction){var r={search:function(){return new Promise(j.l)}};this._mainHelperSearch=t.search.bind(t),t.search=function(){var n=e.mainIndex.getHelper(),i=S(r,n.state.index,n.state);return i.once("search",function(t){var r=t.state;n.overrideStateWithoutTriggeringChangeEvent(r),e._mainHelperSearch()}),i.on("change",function(e){var t=e.state;n.setState(t)}),e._searchFunction(i),t}}if(t.on("error",function(t){var r=t.error;if(!v(r,Error)){var n=r;r=Object.keys(n).reduce(function(e,t){return e[t]=n[t],e},Error(n.message))}r.error=r,e.error=r,e.status="error",e.scheduleRender(!1),e.emit("error",r)}),this.mainHelper=t,this.middleware.forEach(function(e){e.instance.subscribe()}),this.mainIndex.init({instantSearchInstance:this,parent:null,uiState:this._initialUiState}),this._initialResults){!function(e,t){if(t&&("transporter"in e&&!e._cacheHydrated||e._useCache&&"function"==typeof e.addAlgoliaAgent)){var r=[Object.keys(t).reduce(function(e,r){var n=t[r],i=n.state,a=n.requestParams,s=ep(n),o=s&&i?s.map(function(e,t){return(0,y._)({indexName:i.index||e.index},(null==a?void 0:a[t])||e.params?{params:eg((null==a?void 0:a[t])||e.params.split("&").reduce(function(e,t){var r=(0,w._)(t.split("="),2),n=r[0],i=r[1];
1return e[n]=i?decodeURIComponent(i):"",e},{}))}:{})}):[];return e.concat(o)},[])],n=Object.keys(t).reduce(function(e,r){var n=ep(t[r]);return n?e.concat(n):e},[]);if("transporter"in e&&!e._cacheHydrated){e._cacheHydrated=!0;var i=e.search.bind(e);e.search=function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];var s=Array.isArray(t)?t.map(function(e){return(0,_._)((0,y._)({},e),{params:eg(e.params)})}):eg(t.requestBody.params);return e.transporter.responsesCache.get({method:"search",args:[s].concat((0,b._)(n))},function(){return i.apply(void 0,[t].concat((0,b._)(n)))})},e.transporter.responsesCache.set({method:"search",args:r},{results:n})}if(!("transporter"in e)){var a="/1/indexes/*/queries_body_".concat(JSON.stringify({requests:r}));e.cache=(0,_._)((0,y._)({},e.cache),(0,p._)({},a,JSON.stringify({results:Object.keys(t).map(function(e){return ep(t[e])})})))}}}(this.client,this._initialResults),this.mainHelper._recommendCache=Object.keys(n=this._initialResults).reduce(function(e,t){var r=n[t];return r.recommendResults?(0,y._)({},e,r.recommendResults.results):e},{});var n,i=this.scheduleSearch;this.scheduleSearch=V(j.l),this._manuallyResetScheduleSearch?this._resetScheduleSearch=function(){e.scheduleSearch=i}:V(function(){e.scheduleSearch=i})()}else this.mainIndex.getWidgets().length>0&&this.scheduleSearch();this.helper=this.mainIndex.getHelper(),this.started=!0,this.middleware.forEach(function(e){e.instance.started()}),void 0===this._insights&&t.derivedHelpers[0].once("result",function(){e.mainIndex.getScopedResults().some(function(e){var t=e.results;return null==t?void 0:t._automaticInsights})&&e.use(I({$$internal:!0,$$automatic:!0}))})}},{key:"dispose",value:function(){var e;this.scheduleSearch.cancel(),this.scheduleRender.cancel(),clearTimeout(this._searchStalledTimer),this.removeWidgets(this.mainIndex.getWidgets()),this.mainIndex.dispose(),this.started=!1,this.removeAllListeners(),null==(e=this.mainHelper)||e.removeAllListeners(),this.mainHelper=null,this.helper=null,this.middleware.forEach(function(e){e.instance.unsubscribe()})}},{key:"scheduleStalledRender",value:function(){var e=this;this._searchStalledTimer||(this._searchStalledTimer=setTimeout(function(){e.status="stalled",e.scheduleRender()},this._stalledSearchDelay))}},{key:"setUiState",value:function(e){var t=this,r=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(!this.mainHelper)throw Error(ey("The `start` method needs to be called before `setUiState`."));this.mainIndex.refreshUiState();var n="function"==typeof e?e(this.mainIndex.getWidgetUiState({})):e;this.onStateChange&&r?this.onStateChange({uiState:n,setUiState:function(e){ev("function"==typeof e?e(n):e,t.mainIndex),t.scheduleSearch(),t.onInternalStateChange()}}):(ev(n,this.mainIndex),this.scheduleSearch(),this.onInternalStateChange())}},{key:"getUiState",value:function(){return this.started&&this.mainIndex.refreshUiState(),this.mainIndex.getWidgetUiState({})}},{key:"createURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.started)throw Error(ey("The `start` method needs to be called before `createURL`."));return this._createURL(e)}},{key:"refresh",value:function(){if(!this.mainHelper)throw Error(ey("The `start` method needs to be called before `refresh`."));this.mainHelper.clearCache().search()}}]),t}(R),e_=r(14806),ew="7.36.0",ex=r(35477),eP=r(21697),ej=r(16505),eO=r(94325),eE=r(15138),eI=r(87358),eF=["react (".concat(i.version,")"),"react-instantsearch (".concat(ew,")"),"react-instantsearch-core (".concat(ew,")")],eT="react-instantsearch-server (".concat(ew,")");function ek(e,t){"function"==typeof e.addAlgoliaAgent&&t.filter(Boolean).forEach(function(t){e.addAlgoliaAgent(t)})}function eA(e){var t=e.children,r=function(e){var t=(0,eP._)((0,i.useReducer)(function(e){return e+1},0),2)[1],r=(0,ej.r)(),n=(0,eO.m)(),a=(0,eE.t)().waitForResultsRef,s=null==n?void 0:n.initialResults,o=(0,i.useRef)(e),l=r||s||a,f=(0,i.useRef)(null);if((null==n?void 0:n.ssrSearchRef)&&(f=n.ssrSearchRef),null===f.current){var d,h,m=new eS(e);m._schedule=function(e){m._schedule.queue.push(e),clearTimeout(m._schedule.timer),m._schedule.timer=setTimeout(function(){m._schedule.queue.forEach(function(e){e()}),m._schedule.queue=[]},0)},m._schedule.queue=[],l&&(m._initialResults=s||{},m._manuallyResetScheduleSearch=!0),ek(e.searchClient,(0,u._)(eF).concat([r&&eT,(h="undefined"!=typeof window&&(null==(d=window.next)?void 0:d.version)||(void 0!==eI?null==eI.env?void 0:"":void 0))?"next.js (".concat(h,")"):null])),l&&m.start(),r&&r.notifyServer({search:m}
1),e.routing,f.current=m}var p,g=f.current,v=o.current;v.indexName!==e.indexName&&(g.helper.setIndex(e.indexName||"").search(),o.current=e),v.searchClient!==e.searchClient&&(ek(e.searchClient,(0,u._)(eF).concat([r&&eT])),g.mainHelper.setClient(e.searchClient).search(),o.current=e),v.onStateChange!==e.onStateChange&&(g.onStateChange=e.onStateChange,o.current=e),v.searchFunction!==e.searchFunction&&(g._searchFunction=e.searchFunction,o.current=e),v.stalledSearchDelay!==e.stalledSearchDelay&&(g._stalledSearchDelay=null!=(p=e.stalledSearchDelay)?p:200,o.current=e),(0,ex.j)(v.future,e.future)||(g.future=(0,c._)({},eR,e.future),o.current=e);var y=(0,i.useRef)(null);return(0,e_.useSyncExternalStore)((0,i.useCallback)(function(){var e=f.current;return null===y.current?e.started||(e.start(),t()):(clearTimeout(y.current),e._preventWidgetCleanup=!1),function(){null!=n&&n.ssrSearchRef||(clearTimeout(e._schedule.timer),y.current=setTimeout(function(){e.dispose()}),e._preventWidgetCleanup=!0)}},[t,n]),function(){return f.current},function(){return f.current})}((0,a._)(e,["children"]));return r.started?i.createElement(o.t.Provider,{value:r},i.createElement(s.m.Provider,{value:r.mainIndex},t,i.createElement(eN,{search:r}))):null}function eN(e){var t=e.search;return(0,i.useEffect)(function(){t._resetScheduleSearch&&t._resetScheduleSearch()},[t]),null}var eC=r(24024),eD=r(98446),eH=r(76792);function eL(e){var t=e.children,r=(0,a._)(e,["children"]),n=i.useRef(null),s=i.useRef(0);return 0===Object.keys(r).length?i.createElement(i.Fragment,null,t):i.createElement(eH.R.Provider,{value:(0,eD._)((0,c._)({},r),{ssrSearchRef:n,recommendIdx:s})},t)}function eM(e,t){t(e),e.getWidgets().forEach(function(e){(0,k.l)(e)&&eM(e,t)})}var eq=r(20063),eW=r(65833);function eU(e){return"status"in e||(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e}var eQ={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},e$=/[&><\u2028\u2029]/g,eB=function(e){var t=e.options,r=e.results,n=e.nonce;return function(){return t.inserted?i.createElement(i.Fragment,null):(t.inserted=!0,i.createElement("script",{nonce:n,dangerouslySetInnerHTML:{__html:'window[Symbol.for("InstantSearchInitialResults")] = '.concat(JSON.stringify(r).replace(e$,function(e){return eQ[e]}))}}))}};function eV(e){return(eV="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 ez(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function eK(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ez(Object(r),!0).forEach(function(t){var n,i,a;n=e,i=t,a=r[t],(i=function(e){var t=function(e,t){if("object"!=eV(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=eV(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==eV(t)?t:String(t)}(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ez(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function eJ(e){var t,r=e.nonce,n=(0,eW.I)(),a=(0,eE.t)(),s=(0,i.useContext)(eq.ServerInsertedHTMLContext)||function(){throw Error("Missing ServerInsertedHTMLContext")};n.compositionID?n.mainHelper.setClient(eK(eK({},n.mainHelper.getClient()),{},{search:function(e){return t=[e.requestBody.params],n.client.search(e)}})):n.mainHelper.setClient(eK(eK({},n.mainHelper.getClient()),{},{search:function(e){return t=e.map(function(e){return e.params}),n.client.search(e)}})),$=0;var o=function(){return new Promise(function(e){var t=!1,r=!1;n.mainHelper.derivedHelpers[0].once("result",function(){t=!0,(!n._hasRecommendWidget||r)&&e()}),n.mainHelper.derivedHelpers[0].once("recommend:result",function(){r=!0,(!n._hasSearchWidget||t)&&e()})})},c=function(){s(eB({options:{inserted:!1},results:function(e,t){var r={},n=0;if(eM(e,function(e){var i=e.getResults(),a=null==(s=e.getHelper())?void 0:s.lastRecommendResults;if(i||a){var s,o,c,u,l=(null==i||null==(o=i._rawResults)?void 0:o.length)||0,f=l?null==t?void 0:t.slice(n,n+l):[];n+=l,r[e.getIndexId()]=(0,y._)({},i&&(0,y._)({state:(0,_._)((0,y._)({},i._state),{clickAnalytics:null==f||null==(c=f[0])?void 0:c.clickAnalytics,userToken:null==f||null==(u=f[0])?void 0:u.userToken}),results:i._rawResults},i.feeds&&i.feeds.length>0&&{compositionFeedsResults:i.feeds.map(function(e){return(0,_._)((0,y._)({},e._rawResults[0]),{feedID:e.feedID})})}),a&&{recommendResults:{params:JSON.parse(JSON.stringify(a._state.params)),results:a._rawResults}}
1,f&&{requestParams:f})}}),0===Object.keys(r).length)throw Error("The root index does not have any results. Make sure you have at least one widget that provides results.");return r}(n.mainIndex,t),nonce:r}))};return(null==a?void 0:a.current)===null&&(a.current=eU(o().then(function(){var e=!1;return eM(n.mainIndex,function(t){e=t.getWidgets().some(function(e){return"ais.dynamicWidgets"===e.$$type})}),e&&(a.current=eU(o().then(c))),e}).then(function(e){e||c()}))),null}function eG(e){var t,r,n,a,s=e.nonce,o=(0,eW.I)(),c=(0,eE.t)(),u=(0,i.useContext)(eq.ServerInsertedHTMLContext)||function(){throw Error("Missing ServerInsertedHTMLContext")};return(null==c||null==(t=c.current)?void 0:t.status)!=="pending"||(o._hasSearchWidget&&(o.compositionID?null==(n=o.mainHelper)||n.searchWithComposition():null==(a=o.mainHelper)||a.searchOnlyWithDerivedHelpers()),o._hasRecommendWidget&&(null==(r=o.mainHelper)||r.recommend()),o._hasSearchWidget||o._hasRecommendWidget)||u(eB({options:{inserted:!1},results:{},nonce:s})),null}r(66410);var eZ=r(14771);function eX(e){return(eX="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)}r(44706);var eY=function(){var e;if("undefined"==typeof window){var t,r=(0,eZ.b)();e=(t=(0,eZ.b)())&&("object"===eX(t)||"function"==typeof t)&&"function"==typeof t.then?(0,i.use)(r):r}return e};function e0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function e1(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?e0(Object(r),!0).forEach(function(t){var n,i,a;n=e,i=t,a=r[t],(i=function(e){var t=function(e,t){if("object"!=e2(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=e2(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==e2(t)?t:String(t)}(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):e0(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function e2(e){return(e2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var e3=["children","routing"];function e4(){return(e4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var e5=Symbol.for("InstantSearchInitialResults");function e8(e){var t=e.children,r=e.routing,a=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,e3),s=(0,i.useRef)(!0),o="undefined"==typeof window;(0,i.useEffect)(function(){return s.current=!1,function(){delete window[e5]}},[]);var c=eY(),u=(0,n.x)(function(){},{fallback:function(){return(null==c?void 0:c.get("x-nonce"))||void 0}}),l=function(e,t){var r="undefined"==typeof window,n=(0,eq.usePathname)(),a=(0,eq.useSearchParams)(),s=(0,i.useRef)(null),o=(0,i.useRef)(null),c=(0,i.useRef)(!1);(0,i.useEffect)(function(){o.current&&o.current()},[n,a]),(0,i.useEffect)(function(){return c.current=!1,function(){c.current=!0}});var u=eY();if(e&&!s.current){var l={};l.getLocation=function(){return r?new URL("".concat((null==u?void 0:u.get("x-forwarded-proto"))||"http","://").concat(null==u?void 0:u.get("host")).concat(n,"?").concat(a)):t.current?new URL("".concat(window.location.protocol,"//").concat(window.location.host).concat(n,"?").concat(a)):window.location},l.push=function(e){this.isDisposed&&c.current||history.pushState({},"",e)},l.start=function(e){o.current=e},s.current={},"object"===e2(e)&&(l=e1(e1({},l),e.router),s.current.stateMapping=e.stateMapping),s.current.router=M(l)}return s.current}(r,s);return i.createElement(e6,{isServer:o},i.createElement(eA,e4({},a,{routing:l}),o&&i.createElement(eJ,{nonce:u}),t,o&&i.createElement(eG,{nonce:u})))}function e6(e){var t=e.isServer,r=e.children,a=(0,i.useRef)(null),s=(0,n.x)(function(){return window[e5]});return t||s?i.createElement(eC.V.Provider,{value:a},i.createElement(eL,{initialResults:s},r)):r}},16040:(e,t,r)=>{"use strict";function n(e){return btoa(encodeURIComponent(JSON.stringify(e)))}r.d(t,{h:()=>n})},16505:(e,t,r)=>{"use strict";r.d(t,{r:()=>a});var n=r(12115),i=(0,n.createContext)(null);function a(){return(0,n.useContext)(i)}},18717:(e,t,r)=>{"use strict";r.d(t,{I:()=>i});var n=r(79675);function i(e){var t=n.sn.highlightPostTag,r=n.sn.highlightPreTag,i=e.split(r),a=i.shift(),s=a?[{value:a,isHighlighted:!1}]:[];
1return i.forEach(function(e){var r=e.split(t);s.push({value:r[0],isHighlighted:!0}),""!==r[1]&&s.push({value:r[1],isHighlighted:!1})}),s}},19358:(e,t,r)=>{"use strict";function n(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{fallback:function(){}}).fallback;return"undefined"==typeof window?t():e({window:window})}r.d(t,{x:()=>n})},20463:(e,t,r)=>{"use strict";var n=r(96714),i=r(69884);e.exports={formats:r(34995),parse:i,stringify:n}},21385:(e,t,r)=>{"use strict";r.d(t,{l:()=>i});var n=["ais.index","ais.feedContainer"];function i(e){return n.includes(e.$$type)}},21588:(e,t,r)=>{"use strict";var n=r(38694);function i(e){return Object.keys(e).sort().reduce(function(t,r){return t[r]=e[r],t},{})}var a={_getQueries:function(e,t){var r=[];return r.push({indexName:e,params:a._getHitsSearchParams(t)}),t.getRefinedDisjunctiveFacets().forEach(function(n){r.push({indexName:e,params:a._getDisjunctiveFacetSearchParams(t,n)})}),t.getRefinedHierarchicalFacets().forEach(function(n){var i=t.getHierarchicalFacetByName(n),s=t.getHierarchicalRefinement(n),o=t._getHierarchicalFacetSeparator(i);if(s.length>0&&s[0].split(o).length>1){var c=s[0].split(o).slice(0,-1).reduce(function(e,t,r){return e.concat({attribute:i.attributes[r],value:0===r?t:[e[e.length-1].value,t].join(o)})},[]);c.forEach(function(n,s){var o=a._getDisjunctiveFacetSearchParams(t,n.attribute,0===s);function u(e){return i.attributes.some(function(t){return t===e.split(":")[0]})}var l=(o.facetFilters||[]).reduce(function(e,t){if(Array.isArray(t)){var r=t.filter(function(e){return!u(e)});r.length>0&&e.push(r)}return"string"!=typeof t||u(t)||e.push(t),e},[]),f=c[s-1];s>0?o.facetFilters=l.concat(f.attribute+":"+f.value):l.length>0?o.facetFilters=l:delete o.facetFilters,r.push({indexName:e,params:o})})}}),r},_getCompositionQueries:function(e){return[{compositionID:e.index,requestBody:{params:a._getCompositionHitsSearchParams(e)}}]},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(a._getHitsHierarchicalFacetsAttributes(e)).sort(),r=a._getFacetFilters(e),s=a._getNumericFilters(e),o=a._getTagFilters(e),c={};return t.length>0&&(c.facets=t.indexOf("*")>-1?["*"]:t),o.length>0&&(c.tagFilters=o),r.length>0&&(c.facetFilters=r),s.length>0&&(c.numericFilters=s),i(n({},e.getQueryParams(),c))},_getCompositionHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets.map(function(t){return e.disjunctiveFacetsRefinements&&e.disjunctiveFacetsRefinements[t]&&e.disjunctiveFacetsRefinements[t].length>0?"disjunctive("+t+")":t})).concat(a._getHitsHierarchicalFacetsAttributes(e)).sort(),r=a._getFacetFilters(e),s=a._getNumericFilters(e),o=a._getTagFilters(e),c={};t.length>0&&(c.facets=t.indexOf("*")>-1?["*"]:t),o.length>0&&(c.tagFilters=o),r.length>0&&(c.facetFilters=r),s.length>0&&(c.numericFilters=s);var u=e.getQueryParams();return delete u.highlightPreTag,delete u.highlightPostTag,delete u.index,i(n({},u,c))},_getDisjunctiveFacetSearchParams:function(e,t,r){var s=a._getFacetFilters(e,t,r),o=a._getNumericFilters(e,t),c=a._getTagFilters(e),u={hitsPerPage:0,page:0,analytics:!1,clickAnalytics:!1};c.length>0&&(u.tagFilters=c);var l=e.getHierarchicalFacetByName(t);return l?u.facets=a._getDisjunctiveHierarchicalFacetAttribute(e,l,r):u.facets=t,o.length>0&&(u.numericFilters=o),s.length>0&&(u.facetFilters=s),i(n({},e.getQueryParams(),u))},_getNumericFilters:function(e,t){if(e.numericFilters)return e.numericFilters;var r=[];return Object.keys(e.numericRefinements).forEach(function(n){var i=e.numericRefinements[n]||{};
1Object.keys(i).forEach(function(e){var a=i[e]||[];t!==n&&a.forEach(function(t){if(Array.isArray(t)){var i=t.map(function(t){return n+e+t});r.push(i)}else r.push(n+e+t)})})}),r},_getTagFilters:function(e){return e.tagFilters?e.tagFilters:e.tagRefinements.join(",")},_getFacetFilters:function(e,t,r){var n=[],i=e.facetsRefinements||{};Object.keys(i).sort().forEach(function(e){(i[e]||[]).slice().sort().forEach(function(t){n.push(e+":"+t)})});var a=e.facetsExcludes||{};Object.keys(a).sort().forEach(function(e){(a[e]||[]).sort().forEach(function(t){n.push(e+":-"+t)})});var s=e.disjunctiveFacetsRefinements||{};Object.keys(s).sort().forEach(function(e){var r=s[e]||[];if(e!==t&&r&&0!==r.length){var i=[];r.slice().sort().forEach(function(t){i.push(e+":"+t)}),n.push(i)}});var o=e.hierarchicalFacetsRefinements||{};return Object.keys(o).sort().forEach(function(i){var a,s,c=(o[i]||[])[0];if(void 0!==c){var u=e.getHierarchicalFacetByName(i),l=e._getHierarchicalFacetSeparator(u),f=e._getHierarchicalRootPath(u);if(t===i){if(-1===c.indexOf(l)||!f&&!0===r||f&&f.split(l).length===c.split(l).length)return;f?(s=f.split(l).length-1,c=f):(s=c.split(l).length-2,c=c.slice(0,c.lastIndexOf(l))),a=u.attributes[s]}else s=c.split(l).length-1,a=u.attributes[s];a&&n.push([a+":"+c])}}),n},_getHitsHierarchicalFacetsAttributes:function(e){return e.hierarchicalFacets.reduce(function(t,r){var n=e.getHierarchicalRefinement(r.name)[0];if(!n)return t.push(r.attributes[0]),t;var i=e._getHierarchicalFacetSeparator(r),a=n.split(i).length,s=r.attributes.slice(0,a+1);return t.concat(s)},[])},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,r){var n=e._getHierarchicalFacetSeparator(t);if(!0===r){var i=e._getHierarchicalRootPath(t),a=0;return i&&(a=i.split(n).length),[t.attributes[a]]}var s=(e.getHierarchicalRefinement(t.name)[0]||"").split(n).length-1;return t.attributes.slice(0,s+1)},getSearchForFacetQuery:function(e,t,r,s){var o=s.isDisjunctiveFacet(e)?s.clearRefinements(e):s,c={facetQuery:t,facetName:e};return"number"==typeof r&&(c.maxFacetHits=r),i(n({},a._getHitsSearchParams(o),c))}};e.exports=a},21697:(e,t,r)=>{"use strict";r.d(t,{_:()=>s});var n=r(25130),i=r(65045),a=r(67748);function s(e,t){return(0,n._)(e)||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],s=!0,o=!1;try{for(i=i.call(e);!(s=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);s=!0);}catch(e){o=!0,n=e}finally{try{s||null==i.return||i.return()}finally{if(o)throw n}}return a}}(e,t)||(0,a._)(e,t)||(0,i._)()}},22288:(e,t,r)=>{"use strict";function n(e,t){if(null==e)return{};var r,n,i,a={};if("undefined"!=typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}r.d(t,{_:()=>n})},22484:(e,t,r)=>{"use strict";r.d(t,{G:()=>d});var n=r(43363),i=r(46164),a=r(22288),s=r(67429),o=r(12115);function c(e){var t=e.classNames;return o.createElement("svg",{className:(0,s.cx)("ais-SearchBox-submitIcon",t.submitIcon),width:"10",height:"10",viewBox:"0 0 40 40","aria-hidden":"true"},o.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"}))}function u(e){var t=e.classNames;return o.createElement("svg",{className:(0,s.cx)("ais-SearchBox-resetIcon",t.resetIcon),viewBox:"0 0 20 20",width:"10",height:"10","aria-hidden":"true"},o.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"}))}function l(e){var t=e.classNames;return o.createElement("svg",{"aria-label":"Results are loading",width:"16",height:"16",viewBox:"0 0 38 38",stroke:"#444",className:(0,s.cx)("ais-SearchBox-loadingIcon",t.loadingIcon),"aria-hidden":"true"},o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("g",{transform:"translate(1 1)",strokeWidth:"2"},o.createElement("circle",{strokeOpacity:".5",cx:"18",cy:"18",r:"18"}),o.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18"},o.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indef
1inite"})))))}function f(e){var t=e.classNames;return o.createElement("svg",{className:(0,s.cx)("ais-AiModeButton-icon",t.aiModeIcon),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",width:"16",height:"16","aria-hidden":"true"},o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 1.875c.27 0 .51.173.594.43l1.593 4.844a1.043 1.043 0 0 0 .664.664l4.844 1.593a.625.625 0 0 1 0 1.188l-4.844 1.593a1.043 1.043 0 0 0-.664.664l-1.593 4.844a.625.625 0 0 1-1.188 0l-1.593-4.844a1.042 1.042 0 0 0-.664-.664l-4.844-1.593a.625.625 0 0 1 0-1.188l4.844-1.593a1.042 1.042 0 0 0 .664-.664l1.593-4.844a.625.625 0 0 1 .594-.43ZM9 7.539A2.292 2.292 0 0 1 7.54 9L4.5 10l3.04 1A2.292 2.292 0 0 1 9 12.46l1 3.04 1-3.04A2.293 2.293 0 0 1 12.46 11l3.04-1-3.04-1A2.292 2.292 0 0 1 11 7.54L10 4.5 9 7.54ZM4.167 1.875c.345 0 .625.28.625.625v3.333a.625.625 0 0 1-1.25 0V2.5c0-.345.28-.625.625-.625ZM15.833 13.542c.345 0 .625.28.625.625V17.5a.625.625 0 1 1-1.25 0v-3.333c0-.345.28-.625.625-.625Z",clipRule:"evenodd"}),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.875 4.167c0-.346.28-.625.625-.625h3.333a.625.625 0 1 1 0 1.25H2.5a.625.625 0 0 1-.625-.625ZM13.542 15.833c0-.345.28-.625.625-.625H17.5a.625.625 0 0 1 0 1.25h-3.333a.625.625 0 0 1-.625-.625Z",clipRule:"evenodd"}))}function d(e){var t=e.formRef,r=e.inputRef,d=e.inputProps,h=e.isSearchStalled,m=e.onChange,p=e.onReset,g=e.onSubmit,v=e.placeholder,y=e.value,b=e.autoFocus,R=e.resetIconComponent,S=e.submitIconComponent,_=e.loadingIconComponent,w=e.aiModeIconComponent,x=e.onAiModeClick,P=e.aiModeButtonDisabled,j=e.classNames,O=void 0===j?{}:j,E=e.translations,I=(0,a._)(e,["formRef","inputRef","inputProps","isSearchStalled","onChange","onReset","onSubmit","placeholder","value","autoFocus","resetIconComponent","submitIconComponent","loadingIconComponent","aiModeIconComponent","onAiModeClick","aiModeButtonDisabled","classNames","translations"]);return o.createElement("div",(0,i._)((0,n._)({},I),{className:(0,s.cx)("ais-SearchBox",O.root,I.className)}),o.createElement("form",{ref:t,action:"",className:(0,s.cx)("ais-SearchBox-form",O.form),noValidate:!0,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),g&&g(e),r.current&&r.current.blur()},onReset:function(e){e.preventDefault(),e.stopPropagation(),p(e),r.current&&r.current.focus()},role:"search"},o.createElement("input",(0,i._)((0,n._)({},d),{ref:r,className:(0,s.cx)("ais-SearchBox-input",O.input,null==d?void 0:d.className),"aria-label":"Search",autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",placeholder:void 0===v?"":v,spellCheck:!1,maxLength:512,type:"search",value:y,onChange:m,onCompositionEnd:m,autoFocus:b})),o.createElement("button",{className:(0,s.cx)("ais-SearchBox-submit",O.submit),type:"submit",title:E.submitButtonTitle},o.createElement(void 0===S?c:S,{classNames:O})),o.createElement("button",{className:(0,s.cx)("ais-SearchBox-reset",O.reset),type:"reset",title:E.resetButtonTitle,hidden:0===y.length||h},o.createElement(void 0===R?u:R,{classNames:O})),x&&o.createElement("button",{className:(0,s.cx)("ais-AiModeButton",O.aiModeButton),type:"button",title:E.aiModeButtonTitle||"AI Mode",disabled:void 0!==P&&P,onClick:function(e){e.preventDefault(),x()}},o.createElement(void 0===w?f:w,{classNames:O}),o.createElement("span",{className:"ais-AiModeButton-label"},E.aiModeButtonTitle||"AI Mode")),o.createElement("span",{className:(0,s.cx)("ais-SearchBox-loadingIndicator",O.loadingIndicator),hidden:!h},o.createElement(void 0===_?l:_,{classNames:O}))))}},24024:(e,t,r)=>{"use strict";r.d(t,{V:()=>n});var n=(0,r(12115).createContext)({countRef:{current:0},waitForResultsRef:null,ignoreMultipleHooksWarning:!1})},24749:(e,t,r)=>{"use strict";function n(e,t){if(null==e)return{};var r,n,i,a={};if("undefined"!=typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}r.d(t,{_:()=>n})},25039:(e,t,r)=>{"use strict";var n=r(87909),i=r(8321);e.exports=function(e,t){var r,a,s={};return t.forEach(function(t){t.forEach(function(t,r){e.includes(t.objectID)||(s[t.objectID]?s[t.objectID]={indexSum:s[t.objectID].indexSum+r,count:s[t.objectID].count+1}:s[t.objectID]={indexSum:r,count:1})})}
1),(r=t.length,a=[],Object.keys(s).forEach(function(e){s[e].count<2&&(s[e].indexSum+=100),a.push({objectID:e,avgOfIndices:s[e].indexSum/r})}),a.sort(function(e,t){return e.avgOfIndices>t.avgOfIndices?1:-1})).reduce(function(e,r){var a=n(i(t),function(e){return e.objectID===r.objectID});return a?e.concat(a):e},[])}},25130:(e,t,r)=>{"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,{_:()=>n})},25151:(e,t,r)=>{"use strict";function n(e,t){for(var r,n=0;n<e.length;n++)if(t(r=e[n],n,e))return r}r.d(t,{I:()=>n})},25726:(e,t,r)=>{"use strict";function n(e){return!!(1===e.button||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)}r.d(t,{M:()=>n})},26445:(e,t,r)=>{"use strict";function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}r.d(t,{_:()=>n})},26658:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"afterTaskAsyncStorage",{enumerable:!0,get:function(){return n.afterTaskAsyncStorageInstance}});let n=r(43319)},27781:(e,t,r)=>{"use strict";function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}r.d(t,{_:()=>n})},28424:(e,t,r)=>{"use strict";var n=r(1462),i=r(88723),a=r(78195),s={addRefinement:function(e,t,r){if(s.isRefined(e,t,r))return e;var i=""+r,a=e[t]?e[t].concat(i):[i],o={};return o[t]=a,n(o,e)},removeRefinement:function(e,t,r){if(void 0===r)return s.clearRefinement(e,function(e,r){return t===r});var n=""+r;return s.clearRefinement(e,function(e,r){return t===r&&n===e})},toggleRefinement:function(e,t,r){if(void 0===r)throw Error("toggleRefinement should be used with a value");return s.isRefined(e,t,r)?s.removeRefinement(e,t,r):s.addRefinement(e,t,r)},clearRefinement:function(e,t,r){if(void 0===t)return i(e)?{}:e;if("string"==typeof t)return a(e,[t]);if("function"==typeof t){var n=!1,s=Object.keys(e).reduce(function(i,a){var s=e[a]||[],o=s.filter(function(e){return!t(e,a,r)});return o.length!==s.length&&(n=!0),i[a]=o,i},{});return n?s:e}},isRefined:function(e,t,r){var n=!!e[t]&&e[t].length>0;return void 0!==r&&n?-1!==e[t].indexOf(""+r):n}};e.exports=s},28834:(e,t,r)=>{"use strict";var n=r(94105),i=r(33457),a=r(61343),s=r(3945),o=r(14921)||s||a;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n("Side channel does not contain "+(e&&Object(e)===e?"the given object key":i(e)))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=o()),e.set(t,r)}};return t}},30276:(e,t,r)=>{"use strict";r.d(t,{Y:()=>f});var n=r(43363),i=r(22288),a=r(12115),s=r(50215),o=r(46164),c=r(67429),u=r(25726);function l(e){var t=e.classNames,r=void 0===t?{}:t,s=e.items,l=e.hasRefinements,f=void 0!==l&&l,d=(0,i._)(e,["classNames","items","hasRefinements"]);return a.createElement("div",(0,o._)((0,n._)({},d),{className:(0,c.cx)("ais-CurrentRefinements",r.root,!f&&(0,c.cx)("ais-CurrentRefinements--noRefinement",r.noRefinementRoot),d.className)}),a.createElement("ul",{className:(0,c.cx)("ais-CurrentRefinements-list",r.list,!f&&(0,c.cx)("ais-CurrentRefinements-list--noRefinement",r.noRefinementList))},(void 0===s?[]:s).map(function(e){var t;return a.createElement("li",{key:[e.indexName,e.label].join("/"),className:(0,c.cx)("ais-CurrentRefinements-item",r.item)},a.createElement("span",{className:(0,c.cx)("ais-CurrentRefinements-label",r.label)},(t=e.label).toString().charAt(0).toUpperCase()+t.toString().slice(1),":"," "),e.refinements.map(function(t){return a.createElement("span",{key:t.label,className:(0,
1c.cx)("ais-CurrentRefinements-category",r.category)},a.createElement("span",{className:(0,c.cx)("ais-CurrentRefinements-categoryLabel",r.categoryLabel)},t.label),a.createElement("button",{type:"button",onClick:function(r){(0,u.M)(r)||e.refine(t)},className:(0,c.cx)("ais-CurrentRefinements-delete",r.delete)},"✕"))}))})))}function f(e){var t=e.includedAttributes,r=e.excludedAttributes,o=e.transformItems,c=(0,i._)(e,["includedAttributes","excludedAttributes","transformItems"]),u=(0,s.d)({includedAttributes:t,excludedAttributes:r,transformItems:o},{$$widgetType:"ais.currentRefinements"}),f=u.items,d=u.canRefine;return a.createElement(l,(0,n._)({},c,{items:f,hasRefinements:d}))}},32403:(e,t,r)=>{"use strict";r.d(t,{E:()=>i});var n=r(12115),i="undefined"!=typeof window?n.useLayoutEffect:n.useEffect},32966:(e,t,r)=>{"use strict";r.d(t,{t:()=>n});var n=(0,r(12115).createContext)(null)},33457:(e,t,r)=>{var n="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=n&&i&&"function"==typeof i.get?i.get:null,s=n&&Map.prototype.forEach,o="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=o&&c&&"function"==typeof c.get?c.get:null,l=o&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,p=Object.prototype.toString,g=Function.prototype.toString,v=String.prototype.match,y=String.prototype.slice,b=String.prototype.replace,R=String.prototype.toUpperCase,S=String.prototype.toLowerCase,_=RegExp.prototype.test,w=Array.prototype.concat,x=Array.prototype.join,P=Array.prototype.slice,j=Math.floor,O="function"==typeof BigInt?BigInt.prototype.valueOf:null,E=Object.getOwnPropertySymbols,I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,F="function"==typeof Symbol&&"object"==typeof Symbol.iterator,T="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===F?"object":"symbol")?Symbol.toStringTag:null,k=Object.prototype.propertyIsEnumerable,A=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function N(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||_.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-j(-e):j(e);if(n!==e){var i=String(n),a=y.call(t,i.length+1);return b.call(i,r,"$&_")+"."+b.call(b.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,r,"$&_")}var C=r(42634),D=C.custom,H=$(D)?D:null,L={__proto__:null,double:'"',single:"'"},M={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function q(e,t,r){var n=L[r.quoteStyle||t];return n+e+n}function W(e){return!T||!("object"==typeof e&&(T in e||void 0!==e[T]))}function U(e){return"[object Array]"===z(e)&&W(e)}function Q(e){return"[object RegExp]"===z(e)&&W(e)}function $(e){if(F)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!I)return!1;try{return I.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,i,o){var c,p,R,_,j,E=n||{};if(V(E,"quoteStyle")&&!V(L,E.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(V(E,"maxStringLength")&&("number"==typeof E.maxStringLength?E.maxStringLength<0&&E.maxStringLength!==1/0:null!==E.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var D=!V(E,"customInspect")||E.customInspect;if("boolean"!=typeof D&&"symbol"!==D)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V(E,"indent")&&null!==E.indent&&"	"!==E.indent&&!(parseInt(E.indent,10)===E.indent&&E.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(V(E,"numericSeparator")&&"boolean"!=typeof E.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var B=E.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,r){if(t.length>r.maxStringLength){var n=t.length-r.maxStringLength;return e(y.call(t,0,r.maxStringLength),r)+("... "+n)+" more character"+(n>1?"s":"")}var i=M[r.quoteStyle||"single"];return i.lastIndex=0,q(b.call(b.call(t,i,"\\$1"),/[\x00-\x1f]/g,J),"single",r)}(t,E);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var et=String(t);return B?N(t,et):et}if("bigint"==typeof t){var er=String(t)+"n";return B?N(t,er):er}var en=void 0===E.depth?5:E.depth;if(void 0===i&&(i=0),i>=en&&en>0&&"object"==typeof t)return U(t)?"[Array]":"[Object]";var ei=function(e,t){var r;if("	"===e.indent)r="	";else{if("number"!=typeof e.indent||!(e.indent>0))return null;r=x.call(Array(e.indent+1)," ")}return{base:r,prev:x.call(Array(t+1),r)}}(E,i);if(void 0===o)o=[];else if(K(o,t)>=0)return"[Circular]";function ea(t,r,n){if(r&&(o=P.call(o)).push(r),n){var a={depth:E.depth};return V(E,"quoteStyle")&&(a.quoteStyle=E.quoteStyle),e(t,a,i+1,o)}return e(t,E,i+1,o)}if("function"==typeof t&&!Q(t)){var es=function(e){if(e.name)return e.name;var t=v.call(g.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),eo=ee(t,ea);return"[Function"+(es?": "+es:" (anonymous)")+"]"+(eo.length>0?" { "+x.call(eo,", ")+" }":"")}if($(t)){var ec=F?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):I.call(t);return"object"!=typeof t||F?ec:G(ec)}if((eu=t)&&"object"==typeof eu&&("undefined"!=typeof HTMLElement&&eu instanceof HTMLElement||"string"==typeof eu.nodeName&&"function"==typeof eu.getAttribute)){for(var eu,el,ef="<"+S.call(String(t.nodeName)),ed=t.attributes||[],eh=0;eh<ed.length;eh++){ef+=" "+ed[eh].name+"="+q((el=ed[eh].value,b.call(String(el),/"/g,"&quot;")),"double",E)}return ef+=">",t.childNodes&&t.childNodes.length&&(ef+="..."),ef+="</"+S.call(String(t.nodeName))+">"}if(U(t)){if(0===t.length)return"[]";var em=ee(t,ea);return ei&&!function(e){for(var t=0;t<e.length;t++)if(K(e[t],"\n")>=0)return!1;return!0}(em)?"["+Y(em,ei)+"]":"[ "+x.call(em,", ")+" ]"}if("[object Error]"===z(c=t)&&W(c)){var ep=ee(t,ea);return"cause"in Error.prototype||!("cause"in t)||k.call(t,"cause")?0===ep.length?"["+String(t)+"]":"{ ["+String(t)+"] "+x.c
1all(ep,", ")+" }":"{ ["+String(t)+"] "+x.call(w.call("[cause]: "+ea(t.cause),ep),", ")+" }"}if("object"==typeof t&&D){if(H&&"function"==typeof t[H]&&C)return C(t,{depth:en-i});else if("symbol"!==D&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!a||!e||"object"!=typeof e)return!1;try{a.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var eg=[];return s&&s.call(t,function(e,r){eg.push(ea(r,t,!0)+" => "+ea(e,t))}),X("Map",a.call(t),eg,ei)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ev=[];return l&&l.call(t,function(e){ev.push(ea(e,t))}),X("Set",u.call(t),ev,ei)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Z("WeakMap");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Z("WeakSet");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{return h.call(e),!0}catch(e){}return!1}(t))return Z("WeakRef");if("[object Number]"===z(p=t)&&W(p))return G(ea(Number(t)));if(function(e){if(!e||"object"!=typeof e||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}(t))return G(ea(O.call(t)));if("[object Boolean]"===z(R=t)&&W(R))return G(m.call(t));if("[object String]"===z(_=t)&&W(_))return G(ea(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return"{ [object globalThis] }";if(!("[object Date]"===z(j=t)&&W(j))&&!Q(t)){var ey=ee(t,ea),eb=A?A(t)===Object.prototype:t instanceof Object||t.constructor===Object,eR=t instanceof Object?"":"null prototype",eS=!eb&&T&&Object(t)===t&&T in t?y.call(z(t),8,-1):eR?"Object":"",e_=(eb||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(eS||eR?"["+x.call(w.call([],eS||[],eR||[]),": ")+"] ":"");return 0===ey.length?e_+"{}":ei?e_+"{"+Y(ey,ei)+"}":e_+"{ "+x.call(ey,", ")+" }"}return String(t)};var B=Object.prototype.hasOwnProperty||function(e){return e in this};function V(e,t){return B.call(e,t)}function z(e){return p.call(e)}function K(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}function J(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+R.call(t.toString(16))}function G(e){return"Object("+e+")"}function Z(e){return e+" { ? }"}function X(e,t,r,n){return e+" ("+t+") {"+(n?Y(r,n):x.call(r,", "))+"}"}function Y(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+x.call(e,","+r)+"\n"+t.prev}function ee(e,t){var r,n=U(e),i=[];if(n){i.length=e.length;for(var a=0;a<e.length;a++)i[a]=V(e,a)?t(e[a],e):""}var s="function"==typeof E?E(e):[];if(F){r={};for(var o=0;o<s.length;o++)r["$"+s[o]]=s[o]}for(var c in e)if(V(e,c)&&(!n||String(Number(c))!==c||!(c<e.length)))if(F&&r["$"+c]instanceof Symbol)continue;else _.call(/[^\w$]/,c)?i.push(t(c,e)+": "+t(e[c],e)):i.push(c+": "+t(e[c],e));if("function"==typeof E)for(var u=0;u<s.length;u++)k.call(e,s[u])&&i.push("["+t(s[u])+"]: "+t(e[s[u]],e));return i}},33497:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createDedupedByCallsiteServerErrorLoggerDev",{enumerable:!0,get:function(){return c}});let n=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=i(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var o=a?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(n,s,o):n[s]=e[s]}return n.default=e,r&&r.set(e,n),n}(r(12115));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}let a={current:null},s="function"==typeof n.cache?n.cache:e=>e,o=console.warn;function c(e){return function(...t){o(e(...t))}}s(e=>{try{o(a.current)}finally{a.current=null}})},34995:e=>{"use strict";var t=String.prototype.replace,r=/%20/g,n={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:n.RFC3986,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986}},35006:(e,t,r)=>{"use strict";var n=r(34995),i=r(28834),a=r(65785),s=Object.prototype.hasOwnProperty,o=Array.isArray,c=i(),u=function(e,t){return c.set(e,t),e},l=function(e){return c.has(e)},f=function(e){return c.get(e)},d=function(e,t){c.set(e,t)},h=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),m=function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var n=[],i=0;i<r.length;++i)void 0!==r[i]&&(n[n.length]=r[i]);t.obj[t.prop]=n}}},p=function(e,t){for(var r=t&&t.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r},g=function(e,t,r){"__proto__"===t&&a?a(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r};e.exports={arrayToObject:p,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return g(e,r,t[r]),e},e)},combine:function(e,t,r,n,i){if(l(e)){if(i)throw RangeError("Array limit exceeded. Only "+r+" element"+(1===r?"":"s")+" allowed in an array.");for(var a=o(t)?t:[t],s=f(e),c=0;c<a.length;++c)e[s+=1]=a[c];return d(e,s),e}var h=[].concat(e,t);if(h.length>r){if(i)throw RangeError("Array limit exceeded. Only "+r+" element"+(1===r?"":"s")+" allowed in an array.");return u(p(h,{plainObjects:n}),h.length-1)}return h},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=i(),n=0;n<t.length;++n)for(var a=t[n],s=a.obj[a.prop],o=Object.keys(s),c=0;c<o.length;++c){var u=o[c],l=s[u];"object"!=typeof l||null===l||r.has(l)||(t[t.length]={obj:s,prop:u},r.set(l,!0))}return m(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");
1if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,i,a){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===r)return escape(s).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var o="",c=0;c<s.length;c+=1024){var u=s.length>=1024?s.slice(c,c+1024):s;if(c+1024<s.length){var l=u.charCodeAt(u.length-1);l>=55296&&l<=56319&&(u=u.slice(0,-1),c-=1)}for(var f=[],d=0;d<u.length;++d){var m=u.charCodeAt(d);if(45===m||46===m||95===m||126===m||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||a===n.RFC1738&&(40===m||41===m)){f[f.length]=u.charAt(d);continue}if(m<128){f[f.length]=h[m];continue}if(m<2048){f[f.length]=h[192|m>>6]+h[128|63&m];continue}if(m<55296||m>=57344){f[f.length]=h[224|m>>12]+h[128|m>>6&63]+h[128|63&m];continue}d+=1,m=65536+((1023&m)<<10|1023&u.charCodeAt(d)),f[f.length]=h[240|m>>18]+h[128|m>>12&63]+h[128|m>>6&63]+h[128|63&m]}o+=f.join("")}return o},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:l,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:u,maybeMap:function(e,t){if(o(e)){for(var r=[],n=0;n<e.length;n+=1)r[r.length]=t(e[n]);return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r&&"function"!=typeof r){if(o(t)){var i=t.length;if(n&&"number"==typeof n.arrayLimit&&i>=n.arrayLimit){if(n.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");return u(p(t.concat(r),n),i)}t[i]=r}else if(!t||"object"!=typeof t)return[t,r];else if(l(t)){var a=f(t)+1;t[a]=r,d(t,a)}else{if(n&&n.strictMerge)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!s.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t){if(l(r)){for(var c=Object.keys(r),h=n&&n.plainObjects?{__proto__:null,0:t}:{0:t},m=0;m<c.length;m++)h[parseInt(c[m],10)+1]=r[c[m]];return u(h,f(r)+1)}var v=[t].concat(r);if(n&&"number"==typeof n.arrayLimit&&v.length>n.arrayLimit){if(n.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");return u(p(v,n),v.length-1)}return v}var y=t;if(o(t)&&!o(r)&&(y=p(t,n)),o(t)&&o(r)){if(r.forEach(function(r,i){if(s.call(t,i)){var a=t[i];a&&"object"==typeof a&&r&&"object"==typeof r?t[i]=e(a,r,n):t[t.length]=r}else t[i]=r}),n&&"number"==typeof n.arrayLimit&&t.length>n.arrayLimit){if(n.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");return u(p(t,n),t.length-1)}return t}return Object.keys(r).reduce(function(t,i){var a=r[i];if(s.call(t,i)?g(t,i,e(t[i],a,n)):g(t,i,a),l(r)&&!l(t)&&u(t,f(r)),l(t)){var o=parseInt(i,10);String(o)===i&&o>=0&&o>f(t)&&d(t,o)}return t},y)}}},35170:(e,t,r)=>{"use strict";function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.map(function(e){var t;return"https://www.algolia.com/doc/api-reference/widgets/"+e.name+"/js/"+(void 0!==(t=e.connector)&&t?"#connector":"")}).join(", ");return function(e){return[e,"See documentation: ".concat(n)].filter(Boolean).join("\n\n")}}r.d(t,{V:()=>n})},35477:(e,t,r)=>{"use strict";r.d(t,{j:()=>function e(t,r,i){var a,s;if((null==i?void 0:i(t,r))||t===r)return!0;if(t&&r&&(a=t.constructor)===r.constructor){if(a===Date)return t.getTime()===r.getTime();if(a===RegExp)return t.toString()===r.toString();if(a===Array){if((s=t.length)===r.length)for(;s--&&e(t[s],r[s],i););return -1===s}if(!a||(void 0===t?"undefined":t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)=="object"){for(a in s=0,t)if(n.call(t,a)&&++s&&!n.call(r,a)||!(a in r)||!e(t[a],r[a],i))return!1;return Object.keys(r).length===s}}return t!=t&&r!=r}});var n=Object.prototype.hasOwnProperty},36269:(e,t,r)=>{"use strict";var n=r(87909);e.exports=function(e,t){var r=(t||[]).map(function(e){return e.split(":")});return e.reduce(function(e,t){var i=t.split(":"),a=n(r,function(e){return e[0]===i[0]});return i.length>1||!a?(e[0].push(i[0]),e[1].push(i[1])):(e[0].push(a[0]),e[1].push(a[1])),e},[[],[]])}},37084:(e,t,r)=>{"use strict";r.d(t,{d:()=>P});var n=r(43363),i=r(46164),a=r(22288),s=r(12115),o=r(39310),c=r(2163),u=r(45581),l=r(63552),f=r(14304),d=r(71958);function h(e){var t=e.start,r=void 0===t?0:t,n=e.end,i=e.step,a=void 0===i?1:i,s=0===a?1:a,o=Math.round((n-r)/s);return(0,d._)(Array(o)).map(function(e,t){return r+t*s})}var m=function(){function e(t){(0,u._)(this,e),(0,f._)(this,"currentPage",void 0),(0,f._)(this,"total",void 0),(0,f._)(this,"padding",void 0),this.currentPage=t.currentPage,this.total=t.total,this.padding=t.padding}return(0,l._)(e,[{key:"pages",value:function(){var e=this.total,t=this.currentPage,r=this.padding;if(0===e)return[0];var n=this.nbPagesDisplayed(r,e);if(n===e)return h({end:e});var i=this.calculatePaddingLeft(t,r,e,n),a=n-i;return h({start:t-i,end:t+a})}},{key:"nbPagesDisplayed",value:function(e,t){return Math.min(2*e+1,t)}},{key:"calculatePaddingLeft",value:function(e,t,r,n){return e<=t?e:e>=r-t?n-(r-e):t}},{key:"isLastPage",value:function(){return this.currentPage>=this.total-1}},{key:"isFirstPage",value:function(){return this.currentPage<=0}}]),e}(),p=r(35170),g=r(52053),v=r(51248),y=(0,p.V)({name:"pagination",connector:!0}),b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.l;return(0,g.t)(e,y()),function(r){var n=r||{},i=n.totalPages,a=n.padding,s=new m({currentPage:0,total:0,padding:void 0===a?3:a}),u={};return{$$type:"ais.pagination",init:function(t){var r=t.instantSearchInstance;e((0,c._)((0,o._)({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!0)},render:function(t){var r=t.instantSearchInstance;e((0,c._)((0,o._)({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!1)},dispose:function(e){var r=e.state;return t(),r.setQueryParameter("page",void 0)},getWidgetUiState:function(e,t){var r=t.searchParameters.page||0;return r?(0,c._)((0,o._)({},e),{page:r+1}):e},getWidgetSearchParameters:function(e,t){var r=t.uiState,n=r.page?r.page-1:0;return e.setQueryParameter("page",n)},getWidgetRenderState:function(e){var t,n=e.results,a=e.helper,l=e.state,f=e.createURL;u.refine||(u.refine=function(e){a.setPage(e),a.search()}),u.createURL||(u.createURL=function(e){return f(function(t){return(0,c._)((0,o._)({},t),{page:e+1})})});var d=l.page||0,h=(t=(n||{nbPages:0}).nbPages,void 0!==i?Math.min(i,t):t);return s.currentPage=d,s.total=h,{createURL:u.createURL,refine:u.refine,canRefine:h>1,currentRefinement:d,nbHits:(null==n?void 0:n.nbHits)||0,nbPages:h,pages:n?s.pages():[],isFirstPage:s.isFirstPage(),isLastPage:s.isLastPage(),widgetParams:r}},getRenderState:function(e,t){return(0,c._)((0,o._)({},e),{pagination:this.getWidgetRenderState(t)})}}}},R=r(41075),S=r(67429),_=r(25726);function w(e){var t=e.pages,r=e.currentPage,o=e.nbPages,c=e.isFirstPage,u=e.isLastPage,l=e.showFirst,f=e.showPrevious,d=e.showNext,h=e.showLast,m=e.createURL,p=e.onNavigate,g=e.translations,v=e.classNames,y=void 0===v?{}:v,b=(0,a._)(e,["pages","currentPage","nbPages","isFirstPage","isLastPage","showFirst","showPrevious","showNext","showLast","createURL","onNavigate","translations","classNames"]),R=r-1,_=r+1,w=o-1;return s.createElement("div",(0,i._)((0,n._)({},b),{className:(0,S.cx)("ais-Pagination",y.root,o<=1&&(0,S.cx)("ais-Pagination--noRefinement",y.noRefinementRoot),b.className)}),s.createElement("ul",{className:(0,S.cx)("ais-Pagination-list",y.list)}
1,(void 0===l||l)&&s.createElement(x,{isDisabled:c,className:(0,S.cx)("ais-Pagination-item--firstPage",y.firstPageItem),classNames:y,"aria-label":g.firstPageItemAriaLabel,href:m(0),onClick:function(){return p(0)}},g.firstPageItemText),(void 0===f||f)&&s.createElement(x,{isDisabled:c,className:(0,S.cx)("ais-Pagination-item--previousPage",y.previousPageItem),classNames:y,"aria-label":g.previousPageItemAriaLabel,href:m(R),onClick:function(){return p(R)}},g.previousPageItemText),t.map(function(e){return s.createElement(x,{key:e,isDisabled:!1,className:(0,S.cx)("ais-Pagination-item--page",y.pageItem,e===r&&(0,S.cx)("ais-Pagination-item--selected",y.selectedItem)),classNames:y,"aria-label":g.pageItemAriaLabel({currentPage:e+1,nbPages:o}),href:m(e),onClick:function(){return p(e)}},g.pageItemText({currentPage:e+1,nbPages:o}))}),(void 0===d||d)&&s.createElement(x,{isDisabled:u,className:(0,S.cx)("ais-Pagination-item--nextPage",y.nextPageItem),classNames:y,"aria-label":g.nextPageItemAriaLabel,href:m(_),onClick:function(){return p(_)}},g.nextPageItemText),(void 0===h||h)&&s.createElement(x,{isDisabled:u,className:(0,S.cx)("ais-Pagination-item--lastPage",y.lastPageItem),classNames:y,"aria-label":g.lastPageItemAriaLabel,href:m(w),onClick:function(){return p(w)}},g.lastPageItemText)))}function x(e){var t=e.isDisabled,r=e.className,i=e.classNames,o=e.href,c=e.onClick,u=(0,a._)(e,["isDisabled","className","classNames","href","onClick"]);return t?s.createElement("li",{className:(0,S.cx)("ais-Pagination-item",i.item,"ais-Pagination-item--disabled",i.disabledItem,r)},s.createElement("span",(0,n._)({className:(0,S.cx)("ais-Pagination-link",i.link)},u))):s.createElement("li",{className:(0,S.cx)("ais-Pagination-item",i.item,r)},s.createElement("a",(0,n._)({className:(0,S.cx)("ais-Pagination-link",i.link),href:o,onClick:function(e){(0,_.M)(e)||(e.preventDefault(),c(e))}},u)))}function P(e){var t,r,o=e.showFirst,c=e.showPrevious,u=e.showNext,l=e.showLast,f=e.padding,d=e.totalPages,h=e.translations,m=(0,a._)(e,["showFirst","showPrevious","showNext","showLast","padding","totalPages","translations"]),p=(t={padding:f,totalPages:d}
1,r={$$widgetType:"ais.pagination"},(0,R.Z)(b,t,r)),g=p.pages,v=p.currentRefinement,y=p.isFirstPage,S=p.isLastPage,_=p.nbPages,x={pages:g,currentPage:v,isFirstPage:y,isLastPage:S,nbPages:_,createURL:p.createURL,onNavigate:p.refine,translations:(0,n._)({firstPageItemText:"‹‹",previousPageItemText:"‹",nextPageItemText:"›",lastPageItemText:"››",pageItemText:function(e){return String(e.currentPage)},firstPageItemAriaLabel:"First Page",previousPageItemAriaLabel:"Previous Page",nextPageItemAriaLabel:"Next Page",lastPageItemAriaLabel:"Last Page, Page ".concat(_),pageItemAriaLabel:function(e){var t=e.currentPage;return"Page ".concat(t)}},h)};return s.createElement(w,(0,i._)((0,n._)({},m,x),{showFirst:o,showPrevious:c,showNext:u,showLast:l}))}},37534:(e,t,r)=>{"use strict";function n(e,t){if(null==e)return{};var r,n,i,a={};if("undefined"!=typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}r.d(t,{_:()=>n})},38115:e=>{function t(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function n(e){return"object"==typeof e&&null!==e}e.exports=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.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},t.prototype.emit=function(e){var t,i,a,s,o,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||n(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;var u=Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(void 0===(i=this._events[e]))return!1;if(r(i))switch(arguments.length){case 1:i.call(this);break;case 2:i.call(this,arguments[1]);break;case 3:i.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),i.apply(this,s)}else if(n(i))for(o=0,s=Array.prototype.slice.call(arguments,1),a=(c=i.slice()).length;o<a;o++)c[o].apply(this,s);return!0},t.prototype.addListener=function(e,i){var a;if(!r(i))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(i.listener)?i.listener:i),this._events[e]?n(this._events[e])?this._events[e].push(i):this._events[e]=[this._events[e],i]:this._events[e]=i,n(this._events[e])&&!this._events[e].warned&&(a=void 0===this._maxListeners?t.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[e].length>a&&(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},t.prototype.on=t.prototype.addListener,t.prototype.once=function(e,t){if(!r(t))throw TypeError("listener must be a function");var n=!1;function i(){this.removeListener(e,i),n||(n=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},t.prototype.removeListener=function(e,t){var i,a,s,o;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(s=(i=this._events[e]).length,a=-1,i===t||r(i.listener)&&i.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(n(i)){for(o=s;o-- >0;)if(i[o]===t||i[o].listener&&i[o].listener===t){a=o;break}if(a<0)return this;1===i.length?(i.length=0,delete this._events[e]):i.splice(a,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},t.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0==arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0==arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},t.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},t.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},t.listenerCount=function(e,t){return e.listenerCount(t)}},38694:e=>{"use strict";function t(e){return"function"==typeof e||Array.isArray(e)||"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){t(e)||(e={});for(var r=1,n=arguments.length;r<n;r++){var i=arguments[r];t(i)&&function e(r,n){if(r===n)return r;for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&"__proto__"!==i&&"constructor"!==i){var a=n[i],s=r[i];(void 0===s||void 0!==a)&&(t(s)&&t(a)?r[i]=e(s,a):r[i]="object"==typeof a&&null!==a?e(Array.isArray(a)?[]:{},a):a)}return r}(e,i)}return e}},39310:(e,t,r)=>{"use strict";r.d(t,{_:()=>i});var n=r(14304);function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}
1))),i.forEach(function(t){(0,n._)(e,t,r[t])})}return e}},39457:(e,t,r)=>{"use strict";r.d(t,{_:()=>i});var n=r(68837);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],s=!0,o=!1;try{for(i=i.call(e);!(s=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);s=!0);}catch(e){o=!0,n=e}finally{try{s||null==i.return||i.return()}finally{if(o)throw n}}return a}}(e,t)||(0,n._)(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},41075:(e,t,r)=>{"use strict";r.d(t,{Z:()=>_});var n=r(26445),i=r(53510),a=r(21697),s=r(25130),o=r(51688),c=r(65045),u=r(67748),l=r(12115),f=r.t(l,2),d=r(35477),h=r(42271),m=r(78970),p=r(65833),g=r(16505),v=r(94325);function y(e){var t=(0,a._)((0,l.useState)(function(){return e}),2),r=t[0],n=t[1];return(0,d.j)(r,e)||n(e),r}var b=f.use,R=r(32403),S=r(15138);function _(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,_=(t=[r,f],(0,s._)(t)||(0,o._)(t)||(0,u._)(t)||(0,c._)()),w=_[0],x=_.slice(1),P=(0,a._)(x,1)[0],j=void 0===P?{}:P,O=j.skipSuspense,E=(0,i._)(j,["skipSuspense"]),I=(0,g.r)(),F=(0,v.m)(),T=(0,p.I)(),k=(0,m.R)(),A=y(void 0===w?{}:w),N=y(E),C=(0,l.useRef)(!0),D=(0,l.useRef)(null),H=(0,l.useRef)(T.status),L=(0,l.useMemo)(function(){var t=e(function(e,t){if(t){C.current=!0;return}if(C.current){var r=e.instantSearchInstance;e.widgetParams;var n=(0,i._)(e,["instantSearchInstance","widgetParams"]);(0,d.j)(n,D.current,function(e,t){return(null==e?void 0:e.constructor)===Function&&(null==t?void 0:t.constructor)===Function})&&r.status===H.current||(W(n),D.current=n,H.current=r.status)}},function(){C.current=!1});return(0,n._)({},t(A),N)},[e,A,N]),M=(0,a._)((0,l.useState)(function(){if(L.getWidgetRenderState){var e,t=k.getHelper(),r=k.getWidgetUiState({})[k.getIndexId()];t.state=(null==(e=L.getWidgetSearchParameters)?void 0:e.call(L,t.state,{uiState:r}))||t.state;var n=(0,h.J)(k),a=n.results,s=n.scopedResults,o=n.recommendResults,c=L.getWidgetRenderState({helper:t,parent:k,instantSearchInstance:T,results:"recommend"===L.dependsOn&&o&&F?o[F.recommendIdx.current++]:a,scopedResults:s,state:t.state,renderState:T.renderState,templatesConfig:T.templatesConfig,createURL:k.createURL,searchMetadata:{isSearchStalled:"stalled"===T.status},status:T.status,error:T.error});return c.widgetParams,(0,i._)(c,["widgetParams"])}return{}}),2),q=M[0],W=M[1];return!function(e){var t,r,n,i=e.widget,a=e.parentIndex,s=e.props,o=e.shouldSsr,c=e.skipSuspense,u=(0,S.t)(),f=u.waitForResultsRef,h=u.countRef;u.ignoreMultipleHooksWarning;var m=(0,l.useRef)(s);(0,l.useEffect)(function(){m.current=s},[s]);var g=(0,l.useRef)(i);(0,l.useEffect)(function(){g.current=i},[i]);var v=(0,l.useRef)(null),y=o&&!a.getWidgets().includes(i),_=(0,p.I)();(0,R.E)(function(){var e=g.current;return v.current?(clearTimeout(v.current),(0,d.j)(s,m.current)||(a.removeWidgets([e]),a.addWidgets([i]))):o||a.addWidgets([i]),function(){v.current=setTimeout(function(){_._schedule(function(){_._preventWidgetCleanup||a.removeWidgets([e])})})}},[a,i,o,_,s]),(y||(null==f||null==(t=f.current)?void 0:t.status)==="pending")&&a.addWidgets([i]),(null==f?void 0:f.current)&&!c&&(b(f.current),"ais.dynamicWidgets"!==i.$$type&&"ais.feeds"!==i.$$type&&(null==(n=_.helper)?void 0:n.lastResults)&&b(f.current)),(null==f||null==(r=f.current)?void 0:r.status)==="fulfilled"&&(h.current+=1)}({widget:L,parentIndex:k,props:A,shouldSsr:!!I,skipSuspense:void 0!==O&&O}),q}},41959:e=>{"use strict";function t(e,t){this._state=e,this._rawResults={};var r=this;e.params.forEach(function(e){var n=e.$$id;r[n]=t[n],r._rawResults[n]=t[n]})}t.prototype={constructor:t},e.exports=t},42247:(e,t,r)=>{"use strict";r.d(t,{i:()=>s,x:()=>l});var n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},i=/[&<>"']/g,a=RegExp(i.source);function s(e){return e&&a.test(e)?e.replace(i,function(e){return n[e]}):e}var o={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},c=/&(amp|quot|lt|gt|#39);/g,u=RegExp(c.source);function l(e){return e&&u.test(e)?e.replace(c,function(e){return o[e]}):e}},42271:(e,t,r)=>{"use strict";r.d(t,{J:()=>
1o});var n=r(26445),i=r(98446),a=r(3085);function s(e){var t,r,n;return new a.SearchResults(e,[{query:null!=(t=e.query)?t:"",page:null!=(r=e.page)?r:0,hitsPerPage:null!=(n=e.hitsPerPage)?n:20,hits:[],nbHits:0,nbPages:0,params:"",exhaustiveNbHits:!0,exhaustiveFacetsCount:!0,processingTimeMS:0,index:e.index}],{__isArtificial:!0})}function o(e){var t=e.getHelper(),r=e.getResults()||s(t.state),a=e.getScopedResults().map(function(t){var a=t.indexId===e.getIndexId()?r:s(t.helper.state);return(0,i._)((0,n._)({},t),{results:t.results||a})});return{results:r,scopedResults:a,recommendResults:t.lastRecommendResults}}},43319:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"afterTaskAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,r(64338).createAsyncLocalStorage)()},43363:(e,t,r)=>{"use strict";function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}r.d(t,{_:()=>n})},43530:e=>{"use strict";e.exports=function(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}},44706:(e,t,r)=>{"use strict";let n=r(11332),i=r(8567),a=r(90332),s=r(33497),o=r(97412),c=r(17480),u=r(48302);r(13972);new WeakMap;(0,s.createDedupedByCallsiteServerErrorLoggerDev)(function(e,t){let r=e?`Route "${e}" `:"This route ";return Object.defineProperty(Error(`${r}used ${t}. \`draftMode()\` should be awaited before using its value. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`),"__NEXT_ERROR_CODE",{value:"E377",enumerable:!1,configurable:!0})})},45581:(e,t,r)=>{"use strict";function n(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}r.d(t,{_:()=>n})},45721:(e,t,r)=>{"use strict";function n(e){return e.filter(function(e,t,r){return r.indexOf(e)===t})}r.d(t,{s:()=>n})},46164:(e,t,r)=>{"use strict";function n(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}r.d(t,{_:()=>n})},47009:(e,t,r)=>{"use strict";e.exports=function(e){return function(t,r){var n,u,l,f,d,h=e.hierarchicalFacets[r],m=e.hierarchicalFacetsRefinements[h.name]&&e.hierarchicalFacetsRefinements[h.name][0]||"",p=e._getHierarchicalFacetSeparator(h),g=e._getHierarchicalRootPath(h),v=e._getHierarchicalShowParentLevel(h),y=a(e._getHierarchicalFacetSortBy(h)),b=t.every(function(e){return e.exhaustive}),R=(n=y,u=p,l=g,f=v,d=m,function(e,t,r){var a=e;if(r>0){var h=0;for(a=e;h<r;)a=i(a&&Array.isArray(a.data)?a.data:[],function(e){return e.isRefined}),h++}if(a){var m=Object.keys(t.data).map(function(e){return[e,t.data[e]]}).filter(function(e){var t,r,n,i,s,o;return t=e[0],r=a.path||l,n=d,i=u,s=l,o=f,(!s||0===t.indexOf(s)&&s!==t)&&(!s&&-1===t.indexOf(i)||s&&t.split(i).length-s.split(i).length==1||-1===t.indexOf(i)&&-1===n.indexOf(i)||0===n.indexOf(t)||0===t.indexOf(r+i)&&(o||0===t.indexOf(n)))});a.data=s(m.map(function(e){var r,n,i,a,s,l,f=e[0];return r=e[1],n=f,i=u,a=c(d),s=t.exhaustive,{name:(l=n.split(i))[l.length-1].trim(),path:n,escapedValue:o(n),count:r,isRefined:a===n||0===a.indexOf(n+i),exhaustive:s,data:null}}),n[0],n[1])}return e}),S=t;return g&&(S=t.slice(g.split(p).length)),S.reduce(R,{name:e.hierarchicalFacets[r].name,count:null,isRefined:!0,path:null,escapedValue:null,exhaustive:b,data:null})}};var n=r(84637),i=r(87909),a=r(36269),s=r(54211),o=n.escapeFacetValue,c=n.unescapeFacetValue},50215:(e,t,r)=>{"use strict";r.d(t,{d:()=>v});var n=r(39310),i=r(2163),a=r(71958),s=r(35170),o=r(52053),c=r(51248),u=r(11828),l=(0,s.V)({name:"current-refinements",connector:!0}),f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.l;return(0,o.t)(e,l()),function(r){if((r||{}).includedAttributes&&(r||{}).excludedAttributes)throw Error(l("The options `includedAttributes` and `excludedAttributes` cannot be used together."));var a=r||{},s=a.includedAttributes,o=a.excludedAttributes,c=void 0===o?["query"]:o,u=a.transformItems,f=void 0===u?function(e){return e}:u;return{$$type:"ais.currentRefinements",init:function(t){var r=t.instantSearchInstance;e((0,i._)((0,n._)({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!0)},render:function(t){var r=t.instantSearchInstance;e((0,i._)((0,n._)({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!1)},dispose:function(){t()},getRenderState:function(e,t){return(0,i._)((0,n._)({},e),{currentRefinements:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t=e.results,n=e.scopedResults,i=e.createURL,a=e.helper,o=t?n.reduce(function(e,r){return e.concat(f(d({results:r.results,helper:r.helper,indexId:r.indexId,includedAttributes:s,excludedAttributes:c}),{results:t}))}
1,[]):f(d({results:null,helper:a,indexId:a.state.index,includedAttributes:s,excludedAttributes:c}),{results:t});return{items:o,canRefine:o.length>0,refine:function(e){return m(a,e)},createURL:function(e){return i(h(a.state,e))},widgetParams:r}}}}};function d(e){var t=e.results,r=e.helper,n=e.indexId,i=e.includedAttributes,s=e.excludedAttributes,o=-1!==(i||[]).indexOf("query")||-1===(s||[]).indexOf("query"),c=i?function(e){return -1!==i.indexOf(e.attribute)}:function(e){return -1===s.indexOf(e.attribute)},l=(0,u.t)(t,r.state,o).map(p).filter(c);return l.reduce(function(e,t){return(0,a._)(e.filter(function(e){return e.attribute!==t.attribute})).concat([{indexName:r.state.index,indexId:n,attribute:t.attribute,label:t.attribute,refinements:l.filter(function(e){return e.attribute===t.attribute}).sort(function(e,t){return"numeric"===e.type?e.value-t.value:0}),refine:function(e){return m(r,e)}}])},[])}function h(e,t){switch(e=e.resetPage(),t.type){case"facet":return e.removeFacetRefinement(t.attribute,String(t.value));case"disjunctive":return e.removeDisjunctiveFacetRefinement(t.attribute,String(t.value));case"hierarchical":return e.removeHierarchicalFacetRefinement(t.attribute);case"exclude":return e.removeExcludeRefinement(t.attribute,String(t.value));case"numeric":return e.removeNumericRefinement(t.attribute,t.operator,String(t.value));case"tag":return e.removeTagRefinement(String(t.value));case"query":return e.setQueryParameter("query","");default:return e}}function m(e,t){e.setState(h(e.state,t)).search()}function p(e){var t,r="numeric"===(t=e).type?Number(t.name):"escapedValue"in t?t.escapedValue:t.name,n=e.operator?"".concat(function(e){switch(e){case">=":return"≥";case"<=":return"≤";default:return e}}(e.operator)," ").concat(e.name):e.name,i={attribute:e.attribute,type:e.type,value:r,label:n};return void 0!==e.operator&&(i.operator=e.operator),void 0!==e.count&&(i.count=e.count),void 0!==e.exhaustive&&(i.exhaustive=e.exhaustive),i}var g=r(41075);function v(e,t){return(0,g.Z)(f,e,t)}},51117:(e,t,r)=>{"use strict";r.d(t,{Z:()=>g});var n=r(26445),i=r(14304),a=r(39310),s=r(2163),o=r(3085),c=r(58219),u=r(35170),l=r(89722),f=r(51248),d=(0,u.V)({name:"configure",connector:!0});function h(e,t){return e.setQueryParameters(Object.keys(t.searchParameters).reduce(function(e,t){return(0,s._)((0,a._)({},e),(0,i._)({},t,void 0))},{}))}var m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.l,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.l;return function(r){if(!r||!(0,c.Q)(r.searchParameters))throw Error(d("The `searchParameters` option expects an object."));var n={};return{$$type:"ais.configure",init:function(t){var r=t.instantSearchInstance;e((0,s._)((0,a._)({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!0)},render:function(t){var r=t.instantSearchInstance;e((0,s._)((0,a._)({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!1)},dispose:function(e){var n=e.state;return t(),h(n,r)},getRenderState:function(e,t){var r,n=this.getWidgetRenderState(t);return(0,s._)((0,a._)({},e),{configure:(0,s._)((0,a._)({},n),{widgetParams:(0,s._)((0,a._)({},n.widgetParams),{searchParameters:(0,l.p)(new o.SearchParameters(null==(r=e.configure)?void 0:r.widgetParams.searchParameters),new o.SearchParameters(n.widgetParams.searchParameters)).getQueryParams()})})})},getWidgetRenderState:function(e){var t=e.helper;return n.refine||(n.refine=function(e){var n=h(t.state,r),i=(0,l.p)(n,new o.SearchParameters(e));r.searchParameters=e,t.setState(i).search()}),{refine:n.refine,widgetParams:r}},getWidgetSearchParameters:function(e,t){var n=t.uiState;return(0,l.p)(e,new o.SearchParameters((0,a._)({},n.configure,r.searchParameters)))},getWidgetUiState:function(e){return(0,s._)((0,a._)({},e),{configure:(0,a._)({},e.configure,r.searchParameters)})}}}},p=r(41075);function g(e){var t,r;return t=(0,n._)({},e),r={$$widgetType:"ais.configure"},(0,p.Z)(m,{searchParameters:t},r),null}},51248:(e,t,r)=>{"use strict";function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r]}r.d(t,{l:()=>n})},51688:(e,t,r)=>{"use strict";function n(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}r.d(t,{_:()=>n})},52053:(e,t,r)=>{"use strict";function n(e,t){if(void 0===e||"function"!=typeof e)throw Error("The render function is not val
1id (received type ".concat(Object.prototype.toString.call(e).slice(8,-1),").\n\n").concat(t))}r.d(t,{t:()=>n})},53510:(e,t,r)=>{"use strict";function n(e,t){if(null==e)return{};var r,n,i,a={};if("undefined"!=typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}r.d(t,{_:()=>n})},54211:e=>{"use strict";e.exports=function(e,t,r){if(!Array.isArray(e))return[];Array.isArray(r)||(r=[]);var n=e.map(function(e,r){return{criteria:t.map(function(t){return e[t]}),index:r,value:e}});return n.sort(function(e,t){for(var n=-1;++n<e.criteria.length;){var i=function(e,t){if(e!==t){var r=void 0!==e,n=null===e,i=void 0!==t,a=null===t;if(!a&&e>t||n&&i||!r)return 1;if(!n&&e<t||a&&r||!i)return -1}return 0}(e.criteria[n],t.criteria[n]);if(i){if(n>=r.length)return i;if("desc"===r[n])return-i;return i}}return e.index-t.index}),n.map(function(e){return e.value})}},54287:(e,t,r)=>{"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],s=!0,o=!1;try{for(i=i.call(e);!(s=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);s=!0);}catch(e){o=!0,n=e}finally{try{s||null==i.return||i.return()}finally{if(o)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}r.d(t,{_:()=>i})},57464:(e,t,r)=>{"use strict";r.d(t,{f:()=>j});var n=r(43363),i=r(22288),a=r(27781),s=r(68566),o=r(37534),c=r(67429),u=r(12115),l=r(14304),f=r(39310),d=r(2163),h=r(39457),m=r(91317),p=r(16040);function g(e){var t=e.helper,r=e.widgetType;e.methodName;var n=e.args,i=e.instantSearchInstance;if(1===n.length&&"object"===(0,m._)(n[0]))return[n[0]];var a=(0,h._)(n[0].split(":"),2),s=a[0],o=a[1],c=n[1],u=n[2],l=n[3]||{};if(!c||("click"===s||"conversion"===s)&&!u)return[];var d=Array.isArray(c)?c:[c];if(0===d.length)return[];var p=d[0].__queryID,g=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20,r=[],n=0;n<Math.ceil(e.length/t);n++)r.push(e.slice(n*t,(n+1)*t));return r}(d),v=g.map(function(e){return e.map(function(e){return e.objectID})}),y=g.map(function(e){return e.map(function(e){return e.__position})});return"view"===s?"idle"!==i.status?[]:g.map(function(e,n){var i;return{insightsMethod:"viewedObjectIDs",widgetType:r,eventType:s,payload:(0,f._)({eventName:u||"Hits Viewed",index:(null==(i=t.lastResults)?void 0:i.index)||t.state.index,objectIDs:v[n]},l),hits:e,eventModifier:o}}):"click"===s?g.map(function(e,n){var i;return{insightsMethod:"clickedObjectIDsAfterSearch",widgetType:r,eventType:s,payload:(0,f._)({eventName:u||"Hit Clicked",index:(null==(i=t.lastResults)?void 0:i.index)||t.state.index,queryID:p,objectIDs:v[n],positions:y[n]},l),hits:e,eventModifier:o}}):"conversion"===s?g.map(function(e,n){var i;return{insightsMethod:"convertedObjectIDsAfterSearch",widgetType:r,eventType:s,payload:(0,f._)({eventName:u||"Hit Converted",index:(null==(i=t.lastResults)?void 0:i.index)||t.state.index,queryID:p,objectIDs:v[n]},l),hits:e,eventModifier:o}}):[]}var v=r(35170),y=r(52053),b=r(79675),R=r(51248),S=(0,v.V)({name:"hits",connector:!0}),_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R.l;return(0,y.t)(e,S()),function(r){var n,i,a=r||{},s=a.escapeHTML,o=void 0===s||s,c=a.transformItems,u=void 0===c?function(e){return e}:c;return{$$type:"ais.hits",init:function(t){e((0,d._)((0,f._)({},this.getWidgetRenderState(t)),{instantSearchInstance:t.instantSearchInstance}),!0)},render:function(t){var r=this.getWidgetRenderState(t);e((0,d._)((0,f._)({},r),{instantSearchInstance:t.instantSearchInstance}),!1),r.sendEvent("view:internal",r.items)},getRenderState:function(e,t){return(0,d._)((0,f._)({},e),{hits:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t,a,s,c,l,h,m,v,y,R,S,_,w,x,P,j,O,E,I=e.results,F=e.helper,T=e.instantSearchInstance;if(n||(a=(t={instantSearchInstance:T,helper:F,widgetType:this.$$type}).instantSearchInstance,s=t.helper,c=t.widgetType,l={},h=void 0,n=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];g({widgetType:c,helper:s,methodName:"sendEvent",args:t,instantSearchInstance:a}
1).forEach(function(e){"click"===e.eventType&&"internal"===e.eventModifier&&l[e.eventType]||(l[e.eventType]=!0,a.sendEventToInsights(e))}),clearTimeout(h),h=setTimeout(function(){l={}},0)}),i||(v=(m={helper:F,widgetType:this.$$type,instantSearchInstance:T}).helper,y=m.widgetType,R=m.instantSearchInstance,i=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=g({widgetType:y,helper:v,methodName:"bindEvent",args:t,instantSearchInstance:R});return n.length?"data-insights-event=".concat((0,p.h)(n)):""}),!I)return{hits:[],items:[],results:void 0,banner:void 0,sendEvent:n,bindEvent:i,widgetParams:r};o&&I.hits.length>0&&(I.hits=(0,b.S8)(I.hits));var k=u((S=I.hits,_=I.page,w=I.hitsPerPage,x=S.map(function(e,t){return(0,d._)((0,f._)({},e),{__position:w*_+t+1})}),(P=I.queryID)?x.map(function(e){return(0,d._)((0,f._)({},e),{__queryID:P})}):x),{results:I}),A=null==(E=I.renderingContent)||null==(O=E.widgets)||null==(j=O.banners)?void 0:j[0];return{hits:k,items:k,results:I,banner:A,sendEvent:n,bindEvent:i,widgetParams:r}},dispose:function(e){var r=e.state;return(t(),o)?r.setQueryParameters(Object.keys(b.FU).reduce(function(e,t){return(0,d._)((0,f._)({},e),(0,l._)({},t,void 0))},{})):r},getWidgetSearchParameters:function(e,t){return o?e.setQueryParameters(b.FU):e}}}},w=r(41075);function x(e){var t=e.hit;return u.createElement("div",{style:{wordBreak:"break-all"}},JSON.stringify(t).slice(0,100),"…")}var P=function(e){var t,r=e.createElement,n=(t=({createElement:r,Fragment:e.Fragment}).createElement,function(e){var r=e.classNames,n=e.banner;return n.image.urls[0].url?t("aside",{className:(0,c.cx)("ais-Hits-banner",r.bannerRoot)},n.link?t("a",{className:(0,c.cx)("ais-Hits-banner-link",r.bannerLink),href:n.link.url,target:n.link.target},t("img",{className:(0,c.cx)("ais-Hits-banner-image",r.bannerImage),src:n.image.urls[0].url,alt:n.image.title})):t("img",{className:(0,c.cx)("ais-Hits-banner-image",r.bannerImage),src:n.image.urls[0].url,alt:n.image.title})):null});return function(e){var t=e.classNames,i=void 0===t?{}:t,u=e.hits,l=e.itemComponent,f=e.sendEvent,d=e.emptyComponent,h=e.banner,m=e.bannerComponent,p=(0,o._)(e,["classNames","hits","itemComponent","sendEvent","emptyComponent","banner","bannerComponent"]);return r("div",(0,s._)((0,a._)({},p),{className:(0,c.cx)("ais-Hits",i.root,0===u.length&&(0,c.cx)("ais-Hits--empty",i.emptyRoot),p.className)}),h&&(m?r(m,{className:(0,c.cx)("ais-Hits-banner",i.bannerRoot),banner:h}):r(n,{classNames:i,banner:h})),0===u.length&&d?r(d,null):r("ol",{className:(0,c.cx)("ais-Hits-list",i.list)},u.map(function(e,t){return r(l,{key:e.objectID,hit:e,index:t,className:(0,c.cx)("ais-Hits-item",i.item),onClick:function(){f("click:internal",e,"Hit Clicked")},onAuxClick:function(){f("click:internal",e,"Hit Clicked")}})})))}}({createElement:u.createElement,Fragment:u.Fragment});function j(e){var t,r,a=e.escapeHTML,s=e.transformItems,o=e.hitComponent,c=void 0===o?x:o,l=e.bannerComponent,f=(0,i._)(e,["escapeHTML","transformItems","hitComponent","bannerComponent"]),d=(t={escapeHTML:a,transformItems:s},r={$$widgetType:"ais.hits"},(0,w.Z)(_,t,r)),h=d.hits,m=d.banner,p=d.sendEvent,g=(0,u.useMemo)(function(){return function(e){var t=e.hit;e.index;var r=(0,i._)(e,["hit","index"]);return u.createElement("li",(0,n._)({key:t.objectID},r),u.createElement(c,{hit:t,sendEvent:p}))}},[c,p]);return u.createElement(P,(0,n._)({},f,{hits:h,sendEvent:p,itemComponent:g,banner:m,bannerComponent:!1===l?function(){return null}:l}))}},58095:e=>{"use strict";e.exports=function(e,t){if(!Array.isArray(e))return -1;for(var r=0;r<e.length;r++)if(t(e[r]))return r;return -1}},58219:(e,t,r)=>{"use strict";r.d(t,{Q:()=>i});var n=r(91317);function i(e){if((void 0===e?"undefined":(0,n._)(e))!=="object"||null===e||"[object Object]"!==(null===e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}},60945:(e,t,r)=>{"use strict";r.d(t,{m:()=>n});var n=(0,r(12115).createContext)(null)},61077:(e,t,r)=>{"use strict";r.d(t,{_:()=>s});
1var n=r(90953),i=r(51688),a=r(67748);function s(e){return function(e){if(Array.isArray(e))return(0,n._)(e)}(e)||(0,i._)(e)||(0,a._)(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},61343:(e,t,r)=>{"use strict";var n=r(33457),i=r(94105),a=function(e,t,r){for(var n,i=e;null!=(n=i.next);i=n)if(n.key===t)return i.next=n.next,r||(n.next=e.next,e.next=n),n},s=function(e,t){if(e){var r=a(e,t);return r&&r.value}},o=function(e,t,r){var n=a(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},c=function(e,t){if(e)return a(e,t,!0)};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new i("Side channel does not contain "+n(e))},delete:function(t){var r=c(e,t);return r&&e&&!e.next&&(e=void 0),!!r},get:function(t){return s(e,t)},has:function(t){var r;return!!(r=e)&&!!a(r,t)},set:function(t,r){e||(e={next:void 0}),o(e,t,r)}};return t}},62331:(e,t,r)=>{"use strict";var n=r(38115),i=r(97210),a=r(84637).escapeFacetValue,s=r(43530),o=r(38694),c=r(88723),u=r(78195),l=r(99521),f=r(41959),d=r(21588),h=r(88675),m=r(88221),p=r(25039),g=r(4804);function v(e,t,r,n){"function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+g+")"),this.setClient(e);var i=r||{};i.index=t,this.state=h.make(i),this.recommendState=new l({params:i.recommendState}),this.lastResults=null,this.lastRecommendResults=null,this._queryId=0,this._recommendQueryId=0,this._lastQueryIdReceived=-1,this._lastRecommendQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0,this._currentNbRecommendQueries=0,this._searchResultsOptions=n,this._recommendCache={}}function y(e){if(e<0)throw Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}function b(){return this.state.page}s(v,n),v.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},v.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},v.prototype.searchWithComposition=function(){return this._runComposition({onlyWithDerivedHelpers:!0}),this},v.prototype.recommend=function(){return this._recommend(),this},v.prototype.getQuery=function(){var e=this.state;return d._getHitsSearchParams(e)},v.prototype.searchOnce=function(e,t){var r=e?this.state.setQueryParameters(e):this.state,n=d._getQueries(r.index,r),i=this;return(this._currentNbQueries++,this.emit("searchOnce",{state:r}),t)?void this.client.search(n).then(function(e){i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),t(null,new m(r,e.results),r)}).catch(function(e){i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),t(e,null,r)}):this.client.search(n).then(function(e){return i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),{content:new m(r,e.results),state:r,_originalResponse:e}},function(e){throw i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),e})},v.prototype.findAnswers=function(e){console.warn("[algoliasearch-helper] answers is no longer supported");var t=this.state,r=this.derivedHelpers[0];if(!r)return Promise.resolve([]);var n=r.getModifiedState(t),i=o({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:u(d._getHitsSearchParams(n),["attributesToSnippet","hitsPerPage","restrictSearchableAttributes","snippetEllipsisText"])}),a="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(a);var s=this.client.initIndex(n.index);if("function"!=typeof s.findAnswers)throw Error(a);return s.findAnswers(n.query,e.queryLanguages,i)},v.prototype.searchForFacetValues=function(e,t,r,n){var i,s="function"==typeof this.client.searchForFacetValues&&"function"!=typeof this.client.searchForFacets,o="function"==typeof this.client.initIndex;if(!s&&!o&&"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 c=this.state.setQueryParameters(n||{}),u=c.isDisjunctiveFacet(e),l=d.getSearchForFacetQuery(e,t,r,c);this._currentNbQueries++;var f=this;s?i=this.client.searchForFacetValues([{indexName:c.index,params:l}]):o?i=this.client.initIndex(c.index).searchForFacetValues(l):(delete l.facetName,i=this.client.search([{type:"facet",facet:e,indexName:c.index,params:l}]).then(function(e){return e.results[0]}
1)),this.emit("searchForFacetValues",{state:c,facet:e,query:t});var h=this.lastResults&&this.lastResults.index===c.index&&this.lastResults.renderingContent&&this.lastResults.renderingContent.facetOrdering&&this.lastResults.renderingContent.facetOrdering.values&&this.lastResults.renderingContent.facetOrdering.values[e]&&this.lastResults.renderingContent.facetOrdering.values[e].hide||[];return i.then(function(t){return f._currentNbQueries--,0===f._currentNbQueries&&f.emit("searchQueueEmpty"),(t=Array.isArray(t)?t[0]:t).facetHits=t.facetHits.reduce(function(t,r){return h.indexOf(r.value)>-1||(r.escapedValue=a(r.value),r.isRefined=u?c.isDisjunctiveFacetRefined(e,r.escapedValue):c.isFacetRefined(e,r.escapedValue),t.push(r)),t},[]),t},function(e){throw f._currentNbQueries--,0===f._currentNbQueries&&f.emit("searchQueueEmpty"),e})},v.prototype.searchForCompositionFacetValues=function(e,t,r,n){if("function"!=typeof this.client.searchForFacetValues)throw Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues");var i,s=this.state.setQueryParameters(n||{}),o=s.isDisjunctiveFacet(e);this._currentNbQueries++;var c=this;return i=this.client.searchForFacetValues({compositionID:s.index,facetName:e,searchForFacetValuesRequest:{params:{query:t,maxFacetHits:r,searchQuery:d._getCompositionHitsSearchParams(s)}}}),this.emit("searchForFacetValues",{state:s,facet:e,query:t}),i.then(function(t){return c._currentNbQueries--,0===c._currentNbQueries&&c.emit("searchQueueEmpty"),(t=t.results[0]).facetHits.forEach(function(t){t.escapedValue=a(t.value),t.isRefined=o?s.isDisjunctiveFacetRefined(e,t.escapedValue):s.isFacetRefined(e,t.escapedValue)}),t},function(e){throw c._currentNbQueries--,0===c._currentNbQueries&&c.emit("searchQueueEmpty"),e})},v.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this},v.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this},v.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},v.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},v.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.addNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,r),isPageReset:!0}),this},v.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},v.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this},v.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},v.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this},v.prototype.addFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.addFrequentlyBoughtTogether(e)}),this},v.prototype.addRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.addRelatedProducts(e)}),this},v.prototype.addTrendingItems=function(e){return this._recommendChange({state:this.recommendState.addTrendingItems(e)}),this},v.prototype.addTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.addTrendingFacets(e)}),this},v.prototype.addLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.addLookingSimilar(e)}),this},v.prototype.removeNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,r),isPageReset:!0}),this},v.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},v.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this},v.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},v.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this},v.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},v.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this},v.prototype.removeFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.removeParam
vendor: 4,059 bytes, line 1
1s(e)}),this},v.prototype.removeRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},v.prototype.removeTrendingItems=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},v.prototype.removeTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},v.prototype.removeLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},v.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},v.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},v.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},v.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this},v.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)},v.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)},v.prototype.setCurrentPage=y,v.prototype.setPage=y,v.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this},v.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this},v.prototype.setState=function(e){return this._change({state:h.make(e),isPageReset:!1}),this},v.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new h(e),this},v.prototype.hasRefinements=function(e){return!!c(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))},v.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},v.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},v.prototype.hasTag=function(e){return this.state.isTagRefined(e)},v.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},v.prototype.getIndex=function(){return this.state.index},v.prototype.getCurrentPage=b,v.prototype.getPage=b,v.prototype.getTags=function(){return this.state.tagRefinements},v.prototype.getRefinements=function(e){var t=[];this.state.isConjunctiveFacet(e)?(this.state.getConjunctiveRefinements(e).forEach(function(e){t.push({value:e,type:"conjunctive"})}),this.state.getExcludeRefinements(e).forEach(function(e){t.push({value:e,type:"exclude"})})):this.state.isDisjunctiveFacet(e)&&this.state.getDisjunctiveRefinements(e).forEach(function(e){t.push({value:e,type:"disjunctive"})});var r=this.state.getNumericRefinements(e);return Object.keys(r).forEach(function(e){var n=r[e];t.push({value:n,operator:e,type:"numeric"})}),t},v.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},v.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},v.prototype._search=function(e){var t=this.state,r=[],n=[];e.onlyWithDerivedHelpers||(n=d._getQueries(t.index,t),r.push({state:t,queriesCount:n.length,helper:this}),this.emit("search",{state:t,results:this.lastResults}));var i=this.derivedHelpers.map(function(e){var n=e.getModifiedState(t),i=n.index?d._getQueries(n.index,n):[];return r.push({state:n,queriesCount:i.length,helper:e}),e.emit("search",{state:n,results:e.lastResults}),i}),a=Array.prototype.concat.apply(n,i),s=this._queryId++;if(this._currentNbQueries++,!a.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,r,s));
1try{this.client.search(a).then(this._dispatchAlgoliaResponse.bind(this,r,s)).catch(this._dispatchAlgoliaError.bind(this,s))}catch(e){this.emit("error",{error:e})}},v.prototype._runComposition=function(){var e=this.state,t=[],r=this.derivedHelpers.map(function(r){var n=r.getModifiedState(e),i=d._getCompositionQueries(n);return t.push({state:n,helper:r}),r.emit("search",{state:n,results:r.lastResults}),i}),n=Array.prototype.concat.apply([],r),i=this._queryId++;if(this._currentNbQueries++,!n.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,t,i));if(n.length>1)throw Error("Only one query is allowed when using a composition.");var a=n[0];try{this.client.search(a).then(this._dispatchAlgoliaResponse.bind(this,t,i)).catch(this._dispatchAlgoliaError.bind(this,i))}catch(e){this.emit("error",{error:e})}},v.prototype._recommend=function(){var e=this.state,t=this.recommendState,r=this.getIndex(),n=[{state:t,index:r,helper:this}],i=t.params.map(function(e){return e.$$id});this.emit("fetch",{recommend:{state:t,results:this.lastRecommendResults}});var a=this._recommendCache,s=this.derivedHelpers.map(function(t){var r=t.getModifiedState(e).index;if(!r)return[];var s=t.getModifiedRecommendState(new l);return n.push({state:s,index:r,helper:t}),i=Array.prototype.concat.apply(i,s.params.map(function(e){return e.$$id})),t.emit("fetch",{recommend:{state:s,results:t.lastRecommendResults}}),s._buildQueries(r,a)}),o=Array.prototype.concat.apply(this.recommendState._buildQueries(r,a),s);if(0!==o.length){if(o.length>0&&void 0===this.client.getRecommendations)return void console.warn("Please update algoliasearch/lite to the latest version in order to use recommend widgets.");var c=this._recommendQueryId++;this._currentNbRecommendQueries++;try{this.client.getRecommendations(o).then(this._dispatchRecommendResponse.bind(this,c,n,i)).catch(this._dispatchRecommendError.bind(this,c))}catch(e){this.emit("error",{error:e})}}},v.prototype._dispatchAlgoliaResponse=function(e,t,r){var n=this;if(!(t<this._lastQueryIdReceived)){this._currentNbQueries-=t-this._lastQueryIdReceived,this._lastQueryIdReceived=t,0===this._currentNbQueries&&this.emit("searchQueueEmpty");var i=r.results.slice(),a=Object.keys(r).reduce(function(e,t){return"results"!==t&&(e[t]=r[t]),e},{});Object.keys(a).length<=0&&(a=void 0),e.forEach(function(e){var t=e.state,r=e.queriesCount,s=e.helper,o=void 0!==r?i.splice(0,r):i;if(!t.index)return void s.emit("result",{results:null,state:t});if(o.length>0&&o[0].feedID){var c=o.map(function(e){var r=new m(t,[e],n._searchResultsOptions);return void 0!==a&&(r._rawContent=a),r});s.lastResults=new m(t,[o[0]],n._searchResultsOptions),s.lastResults.feeds=c,void 0!==a&&(s.lastResults._rawContent=a)}else s.lastResults=new m(t,o,n._searchResultsOptions),void 0!==a&&(s.lastResults._rawContent=a);s.emit("result",{results:s.lastResults,state:t})})}},v.prototype._dispatchRecommendResponse=function(e,t,r,n){if(!(e<this._lastRecommendQueryIdReceived)){this._currentNbRecommendQueries-=e-this._lastRecommendQueryIdReceived,this._lastRecommendQueryIdReceived=e,0===this._currentNbRecommendQueries&&this.emit("recommendQueueEmpty");var i=this._recommendCache,a={};r.filter(function(e){return void 0===i[e]}).forEach(function(e,t){a[e]||(a[e]=[]),a[e].push(t)}),Object.keys(a).forEach(function(e){var t=a[e],s=n.results[t[0]];if(1===t.length){i[e]=s;return}i[e]=Object.assign({},s,{hits:p(r,t.map(function(e){return n.results[e].hits}))})});var s={};r.forEach(function(e){s[e]=i[e]}),t.forEach(function(e){var t=e.state,r=e.helper;if(!e.index)return void r.emit("recommend:result",{results:null,state:t});r.lastRecommendResults=new f(t,s),r.emit("recommend:result",{recommend:{results:r.lastRecommendResults,state:t}})})}},v.prototype._dispatchAlgoliaError=function(e,t){e<this._lastQueryIdReceived||(this._currentNbQueries-=e-this._lastQueryIdReceived,this._lastQueryIdReceived=e,this.emit("error",{error:t}),0===this._currentNbQueries&&this.emit("searchQueueEmpty"))},v.prototype._dispatchRecommendError=function(e,t){e<this._lastRecommendQueryIdReceived||(this._currentNbRecommendQueries-=e-this._lastRecommendQueryId
1Received,this._lastRecommendQueryIdReceived=e,this.emit("error",{error:t}),0===this._currentNbRecommendQueries&&this.emit("recommendQueueEmpty"))},v.prototype.containsRefinement=function(e,t,r,n){return e||0!==t.length||0!==r.length||0!==n.length},v.prototype._hasDisjunctiveRefinements=function(e){return this.state.disjunctiveRefinements[e]&&this.state.disjunctiveRefinements[e].length>0},v.prototype._change=function(e){var t=e.state,r=e.isPageReset;t!==this.state&&(this.state=t,this.emit("change",{state:this.state,results:this.lastResults,isPageReset:r}))},v.prototype._recommendChange=function(e){var t=e.state;t!==this.recommendState&&(this.recommendState=t,this.emit("recommend:change",{search:{results:this.lastResults,state:this.state},recommend:{results:this.lastRecommendResults,state:this.recommendState}}))},v.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},v.prototype.setClient=function(e){return this.client===e||("function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+g+")"),this.client=e),this},v.prototype.getClient=function(){return this.client},v.prototype.derive=function(e,t){var r=new i(this,e,t);return this.derivedHelpers.push(r),r},v.prototype.detachDerivedHelper=function(e){var t=this.derivedHelpers.indexOf(e);if(-1===t)throw Error("Derived helper already detached");this.derivedHelpers.splice(t,1)},v.prototype.hasPendingRequests=function(){return this._currentNbQueries>0},e.exports=v},62731:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{HeadersAdapter:function(){return a},ReadonlyHeadersError:function(){return i}});let n=r(13972);class i extends Error{constructor(){super("Headers cannot be modified. Read more: https://nextjs.org/docs/app/api-reference/functions/headers")}static callable(){throw new i}}class a extends Headers{constructor(e){super(),this.headers=new Proxy(e,{get(t,r,i){if("symbol"==typeof r)return n.ReflectAdapter.get(t,r,i);let a=r.toLowerCase(),s=Object.keys(e).find(e=>e.toLowerCase()===a);if(void 0!==s)return n.ReflectAdapter.get(t,s,i)},set(t,r,i,a){if("symbol"==typeof r)return n.ReflectAdapter.set(t,r,i,a);let s=r.toLowerCase(),o=Object.keys(e).find(e=>e.toLowerCase()===s);return n.ReflectAdapter.set(t,o??r,i,a)},has(t,r){if("symbol"==typeof r)return n.ReflectAdapter.has(t,r);let i=r.toLowerCase(),a=Object.keys(e).find(e=>e.toLowerCase()===i);return void 0!==a&&n.ReflectAdapter.has(t,a)},deleteProperty(t,r){if("symbol"==typeof r)return n.ReflectAdapter.deleteProperty(t,r);let i=r.toLowerCase(),a=Object.keys(e).find(e=>e.toLowerCase()===i);return void 0===a||n.ReflectAdapter.deleteProperty(t,a)}})}static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"append":case"delete":case"set":return i.callable;default:return n.ReflectAdapter.get(e,t,r)}}})}merge(e){return Array.isArray(e)?e.join(", "):e}static from(e){return e instanceof Headers?e:new a(e)}append(e,t){let r=this.headers[e];"string"==typeof r?this.headers[e]=[r,t]:Array.isArray(r)?r.push(t):this.headers[e]=t}delete(e){delete this.headers[e]}get(e){let t=this.headers[e];return void 0!==t?this.merge(t):null}has(e){return void 0!==this.headers[e]}set(e,t){this.headers[e]=t}forEach(e,t){for(let[r,n]of this.entries())e.call(t,n,r,this)}*entries(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase(),r=this.get(t);yield[t,r]}}*keys(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase();yield t}}*values(){for(let e of Object.keys(this.headers)){let t=this.get(e);yield t}}[Symbol.iterator](){return this.entries()}}},63291:e=>{"use strict";e.exports=function(e,t){return e.filter(function(r,n){return t.indexOf(r)>-1&&e.indexOf(r)===n})}},63552:(e,t,r)=>{"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}r.d(t,{_:()=>i})},64338:(e,t)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{bindSnapshot:function(){return s},createAsyncLocalStorage:function(){return a},createSnapshot:function(){return o}});let r=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class n{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}static bind(e){return e}}let i="undefined"!=typeof globalThis&&globalThis.AsyncLocalStorage;function a(){return i?new i:new n}function s(e){return i?i.bind(e):n.bind(e)}function o(){return i?i.snapshot():function(e,...t){return e(...t)}}},65045:(e,t,r)=>{"use strict";function n(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,{_:()=>n})},65833:(e,t,r)=>{"use strict";r.d(t,{I:()=>s});var n=r(12115),i=r(32966),a=r(1194);function s(){var e=(0,n.useContext)(i.t);return(0,a.V)(null!==e),e}},66410:(e,t,r)=>{"use strict";let n=r(88314),i=r(5425),a=r(8567),s=r(11332),o=r(90332),c=r(97412),u=r(10939),l=r(33497),f=r(76840),d=r(48302);r(13972);new WeakMap;(0,l.createDedupedByCallsiteServerErrorLoggerDev)(function(e,t){let r=e?`Route "${e}" `:"This route ";return Object.defineProperty(Error(`${r}used ${t}. \`cookies()\` should be awaited before using its value. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`),"__NEXT_ERROR_CODE",{value:"E223",enumerable:!1,configurable:!0})})},67429:(e,t,r)=>{"use strict";function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(function(e,t){return Array.isArray(t)?e.concat(t):e.concat([t])},[]).filter(Boolean).join(" ")}r.d(t,{cx:()=>n})},67748:(e,t,r)=>{"use strict";r.d(t,{_:()=>i});var n=r(90953);function i(e,t){if(e){if("string"==typeof e)return(0,n._)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return(0,n._)(e,t)}}},68566:(e,t,r)=>{"use strict";function n(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}r.d(t,{_:()=>n})},68837:(e,t,r)=>{"use strict";r.d(t,{_:()=>i});var n=r(3644);function i(e,t){if(e){if("string"==typeof e)return(0,n._)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return(0,n._)(e,t)}}},69884:(e,t,r)=>{"use strict";var n=r(35006),i=Object.prototype.hasOwnProperty,a=Array.isArray,s={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(e,t,r){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1){if(t.throwOnLimitExceeded)for(var n=0,i=e.indexOf(",");i>-1;){if((n+=1)>=t.arrayLimit)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");i=e.indexOf(",",i+1)}return e.split(",")}if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},c=function(e,t){var r={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u=t.parameterLimit===1/0?void 0:t.parameterLimit,l=c.split(t.delimiter,t.throwOnLimitExceeded&&void 0!==u?u+1:u);if(t.throwOnLimitExceeded&&void 0!==u&&l.length>u)throw RangeError("Parameter limit exceeded. Only "+u+" parameter"+(1===u?"":"s")+" allowed.");var f=-1,d=t.charset;if(t.charsetSentinel)for(h=0;h<l.length;++h)0===l[h].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[h]?d="utf-8":"utf8=%26%2310003%3B"===l[h]&&(d="iso-8859-1"),f=h,h=l.length);for(h=0;h<l.length;++h)if(h!==f){var h,m,p,g=l[h],v=g.indexOf("]="),y=-1===v?g.indexOf("="):v+1;
1if(-1===y?(m=t.decoder(g,s.decoder,d,"key"),p=t.strictNullHandling?null:""):null!==(m=t.decoder(g.slice(0,y),s.decoder,d,"key"))&&(p=n.maybeMap(o(g.slice(y+1),t,a(r[m])?r[m].length:0),function(e){return t.decoder(e,s.decoder,d,"value")})),p&&t.interpretNumericEntities&&"iso-8859-1"===d&&(p=String(p).replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),g.indexOf("[]=")>-1&&(p=a(p)?[p]:p),t.comma&&a(p)&&p.length>t.arrayLimit&&(p=n.combine([],p,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded)),null!==m){var b=i.call(r,m);b&&("combine"===t.duplicates||g.indexOf("[]=")>-1)?r[m]=n.combine(r[m],p,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded):b&&"last"!==t.duplicates||(r[m]=p)}}return r},u=function(e,t,r,i){var a=0;if(e.length>0&&"[]"===e[e.length-1]){var s=e.slice(0,-1).join("");a=Array.isArray(t)&&t[s]?t[s].length:0}for(var c=i?t:o(t,r,a),u=e.length-1;u>=0;--u){var l,f=e[u];if("[]"===f&&r.parseArrays)l=n.isOverflow(c)?c:r.allowEmptyArrays&&(""===c||r.strictNullHandling&&null===c)?[]:n.combine([],c,r.arrayLimit,r.plainObjects,r.throwOnLimitExceeded);else{l=r.plainObjects?{__proto__:null}:{};var d="["===f.charAt(0)&&"]"===f.charAt(f.length-1)?f.slice(1,-1):f,h=r.decodeDotInKeys?d.replace(/%2E/g,"."):d,m=parseInt(h,10),p=!isNaN(m)&&f!==h&&String(m)===h&&m>=0&&r.parseArrays;if(r.parseArrays||""!==h)if(p&&m<r.arrayLimit)(l=[])[m]=c;else if(p&&r.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(1===r.arrayLimit?"":"s")+" allowed in an array.");else p?(l[m]=c,n.markOverflow(l,m)):"__proto__"!==h&&(l[h]=c);else l={0:c}}c=l}return c},l=function(e,t){var r=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&i.call(Object.prototype,r)&&!t.allowPrototypes)return;return[r]}var n=[],a=r.indexOf("["),s=a>=0?r.slice(0,a):r;if(s){if(!t.plainObjects&&i.call(Object.prototype,s)&&!t.allowPrototypes)return;n[n.length]=s}for(var o=r.length,c=a,u=0;c>=0&&u<t.depth;){for(var l=1,f=c+1,d=-1;f<o&&d<0;){var h=r.charCodeAt(f);91===h?l+=1:93===h&&0==(l-=1)&&(d=f),f+=1}if(d<0)return n[n.length]="["+r.slice(c)+"]",n;var m=r.slice(c,d+1),p=m.slice(1,-1);if(!t.plainObjects&&i.call(Object.prototype,p)&&!t.allowPrototypes)return;n[n.length]=m,u+=1,c=r.indexOf("[",d+1)}if(c>=0){if(!0===t.strictDepth)throw RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");n[n.length]="["+r.slice(c)+"]"}return n},f=function(e,t,r,n){if(e){var i=l(e,r);if(i)return u(i,t,r,n)}},d=function(e){if(!e)return s;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?s.charset:e.charset,r=void 0===e.duplicates?s.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||s.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:s.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:s.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:s.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:s.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:s.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:s.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:s.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:s.strictDepth,strictMerge:"boolean"==typeof e.strictMerge?!!e.strictMerge:s.strictMerge,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}};e.exports=function(e,t){var r=d(t);if(""===e||null==e)return r.plainObjects?{__proto__:null}:{};for(var i="string"==typeof e?c(e,r):e,a=r.plainObjects?{__proto__:null}:{},s=Object.keys(i),o=0;o<s.length;++o){var u=s[o],l=f(u,i[u],r,"string"==typeof e);
1a=n.merge(a,l,r)}return!0===r.allowSparse?a:n.compact(a)}},71958:(e,t,r)=>{"use strict";r.d(t,{_:()=>a});var n=r(3644),i=r(68837);function a(e){return function(e){if(Array.isArray(e))return(0,n._)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,i._)(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},75146:(e,t,r)=>{"use strict";r.d(t,{U:()=>v});var n=r(43363),i=r(22288),a=r(12115),s=r(39310),o=r(2163),c=r(35170),u=r(52053),l=r(51248),f=(0,c.V)({name:"stats",connector:!0}),d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.l;return(0,u.t)(e,f()),function(r){return{$$type:"ais.stats",init:function(t){var r=t.instantSearchInstance;e((0,o._)((0,s._)({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!0)},render:function(t){var r=t.instantSearchInstance;e((0,o._)((0,s._)({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!1)},dispose:function(){t()},getRenderState:function(e,t){return(0,o._)((0,s._)({},e),{stats:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t=e.results,n=e.state;return t?{hitsPerPage:t.hitsPerPage,nbHits:t.nbHits,nbSortedHits:t.nbSortedHits,areHitsSorted:void 0!==t.appliedRelevancyStrictness&&t.appliedRelevancyStrictness>0&&t.nbSortedHits!==t.nbHits,nbPages:t.nbPages,page:t.page,processingTimeMS:t.processingTimeMS,query:t.query,widgetParams:r}:{hitsPerPage:n.hitsPerPage,nbHits:0,nbSortedHits:void 0,areHitsSorted:!1,nbPages:0,page:n.page||0,processingTimeMS:-1,query:n.query||"",widgetParams:r}}}}},h=r(41075),m=r(46164),p=r(67429);function g(e){var t=e.classNames,r=e.nbHits,s=e.processingTimeMS,o=e.nbSortedHits,c=e.areHitsSorted,u=e.translations,l=(0,i._)(e,["classNames","nbHits","processingTimeMS","nbSortedHits","areHitsSorted","translations"]);return a.createElement("div",(0,m._)((0,n._)({},l),{className:(0,p.cx)("ais-Stats",(void 0===t?{}:t).root,l.className)}),a.createElement("span",{className:"ais-Stats-text"},u.rootElementText({nbHits:r,processingTimeMS:s,nbSortedHits:o,areHitsSorted:c})))}function v(e){var t,r,s=e.translations,o=(0,i._)(e,["translations"]),c=(t=void 0,r={$$widgetType:"ais.stats"},(0,h.Z)(d,t,r)),u={nbHits:c.nbHits,nbSortedHits:c.nbSortedHits,processingTimeMS:c.processingTimeMS,areHitsSorted:c.areHitsSorted,translations:(0,n._)({rootElementText:function(e){var t,r,n,i,a;return"".concat(e.areHitsSorted?(r=(t=e).nbHits,n=t.nbSortedHits,i="sorted out of ".concat(r.toLocaleString()),0===n?"No relevant results ".concat(i):1===n?"1 relevant result ".concat(i):n>1?"".concat((n||0).toLocaleString()," relevant results ").concat(i):""):0===(a=e.nbHits)?"No results":1===a?"1 result":a>1?"".concat(a.toLocaleString()," results"):""," found in ").concat(e.processingTimeMS.toLocaleString(),"ms")}},s)};return a.createElement(g,(0,n._)({},o,u))}},76528:(e,t,r)=>{"use strict";r.d(t,{G:()=>b});var n=r(43363),i=r(22288),a=r(54287);function s(e){return(null==e?void 0:e.status)==="submitted"||(null==e?void 0:e.status)==="streaming"}var o=r(12115),c=r(39310),u=r(2163),l=r(35170),f=r(52053),d=r(51248),h=(0,l.V)({name:"search-box",connector:!0}),m=function(e,t){return t(e)},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.l;return(0,f.t)(e,h()),function(r){var n,i,a=(r||{}).queryHook,s=void 0===a?m:a;return{$$type:"ais.searchBox",init:function(t){var r=t.instantSearchInstance;e((0,u._)((0,c._)({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!0)},render:function(t){var r=t.instantSearchInstance;e((0,u._)((0,c._)({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!1)},dispose:function(e){var r=e.state;return t(),r.setQueryParameter("query",void 0)},getRenderState:function(e,t){return(0,u._)((0,c._)({},e),{searchBox:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t=e.helper,a=e.instantSearchInstance,o=e.state;return n||(n=function(e){s(e,function(e){return t.setQuery(e).search()})},i=function(){t.setQuery("").search()}),{query:o.query||"",refine:n,clear:i,widgetParams:r,isSearchStalled:"stalled"===a.status}},getWidgetUiState:function(e,t){var r=t.searchParameters.query||"";return""===r||e&&e.query===r?e:(0,u._)((0,c._)({},e),{query:r})},getWidgetSearchParameters:function(e,t){var r=t.uiState;return e.setQueryParameter("query",r.query||"")}}}},g=r(41075),v=r(97377),y=r(22484);function b(e){var t,r,c=e.queryHook,u=e.searchAsYouType,l=void 0===u||u,f=e.ignoreCompositionEvents,d=void 0!==f&&f,h=e.aiMode,m=e.translations,b=(0,i._)(e,["queryHook","searchAsYouType","ignoreCompositionEvents","aiMode","translations"]),R=(t={queryHook:c},r=(0,n._)({$$widgetType:"ais.searchBox"},h?{opensChat:!0}:{}),(0,g.Z)(p,t,r)),S=R.query,_=R.refine,w=R.isSearchStalled,x=(0,v.J)().indexRenderState,P=(0,a._)((0,o.useState)(S),2),j=P[0],O=P[1],E=(0,o.useRef)(null);function I(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];O(e),l&&!(d&&t)&&_(e)}function F(){I(""),l||_("")}S!==j&&document.activeElement!==E.current&&O(S);var T=x.chat,k={inputRef:E,isSearchStalled:w,onChange:function(e){I(e.currentTarget.value,e.nativeEvent.isComposing)},onReset:F,onSubmit:function(e){l||_(j),b.onSubmit&&b.onSubmit(e)},onAiModeClick:h?function(){(function(e){var t,r,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.message,o=i.referer;if(!e)return!1;null==(r=e.setOpen)||r.call(e,!0);var c=null!=(t=null==a?void 0:a.trim())?t:"";return c?!s(e)&&!!e.sendMessage&&(e.sendMessage({text:c},o?{headers:{"x-algolia-referer":o}}:void 0),!0):(null==(n=e.focusInput)||n.call(e),!1)})(T,{message:j,referer:"ai-mode"})&&F()}:void 0,aiModeButtonDisabled:h?s(T):void 0,value:j,translations:(0,n._)({submitButtonTitle:"Submit the search query",resetButtonTitle:"Clear the search query",aiModeButtonTitle:"AI Mode"},m)};return o.createElement(y.G,(0,n._)({},b,k))}},76792:(e,t,r)=>{"use strict";r.d(t,{R:()=>n});var n=(0,r(12115).createContext)(null)},76840:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{isRequestAPICallableInsideAfter:function(){return c},throwForSearchParamsAccessInUseCache:function(){return o},throwWithStaticGenerationBailoutError:function(){return a},throwWithStaticGenerationBailoutErrorWithDynamicError:function(){return s}});let n=r(97412),i=r(26658);function a(e,t){throw Object.defineProperty(new n.StaticGenBailoutError(`Route ${e} couldn't be rendered statically because it used ${t}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E576",enumerable:!1,configurable:!0})}function s(e,t){throw Object.defineProperty(new n.StaticGenBailoutError(`Route ${e} with \`dynamic = "error"\` couldn't be rendered statically because it used ${t}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E543",enumerable:!1,configurable:!0})}function o(e,t){let r=Object.defineProperty(Error(`Route ${e.route} used "searchParams" inside "use cache". Accessing dynamic request data inside a cache scope is not supported. If you need some search params inside a cached function await "searchParams" outside of the cached function and pass only the required search params as arguments to the cached function. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E779",enumerable:!1,configurable:!0});throw Error.captureStackTrace(r,t),e.invalidDynamicUsageError??=r,r}function c(){let e=i.afterTaskAsyncStorage.getStore();return(null==e?void 0:e.rootTaskSpawnPhase)==="action"}},78195:e=>{"use strict";e.exports=function(e,t){if(null===e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}},78970:(e,t,r)=>{"use strict";r.d(t,{R:()=>s});var n=r(12115),i=r(60945),a=r(1194);function s(){var e=(0,n.useContext)(i.m);return(0,a.V)(null!==e),e}},79675:(e,t,r)=>{"use strict";r.d(t,{FU:()=>u,sn:()=>l,ef:()=>m,S8:()=>h});var n=r(14304);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var a=r(39310),s=r(2163),o=r(42247),c=r(58219),u={highlightPreTag:"__ais-highlight__",highlightPostTag:"__/ais-highlight__"},l={highlightPreTag:"<mark>",highlightPostTag:"</mark>"};function f(e){return(0,o.i)(e).replace(RegExp(u.highlightPreTag,"g"),l.highlightPreTag).replace(RegExp(u.highlightPostTag,"g"),l.highlightPostTag)}function d(e){return(0,c.Q)(e)&&"string"!=typeof e.value?Object.keys(e).reduce(function(t,r){return(0,s._)((0,a._)({},t),(0,n._)({},r,d(e[r])))},{}):Array.isArray(e)?e.map(d):(0,s._)((0,a._)({},e),{value:f(e.value)})}function h(e){return void 0===e.__escaped&&((e=e.map(function(e){var t=e;if(null==t)throw TypeError("Cannot destructure "+t);var r=i({},e);return r._highlightResult&&(r._highlightResult=d(r._highlightResult)),r._snippetResult&&(r._snippetResult=d(r._snippetResult)),r})).__escaped=!0),e}function m(e){return e.map(function(e){return(0,s._)((0,a._)({},e),{highlighted:f(e.highlighted)})})}},82424:e=>{"use strict";e.exports=function(e){return null!==e&&/^[a-zA-Z0-9_-]{1,64}$/.test(e)}},83999:(e,t,r)=>{"use strict";r.d(t,{u:()=>A});var n=r(43363),i=r(46164),a=r(22288),s=r(54287),o=r(12115),c=r(14304),u=r(39310),l=r(2163),f=r(24749),d=r(79675),h=r(35170),m=r(52053),p=r(39457),g=r(91317),v=r(51248),y=(0,h.V)({name:"refinement-list",connector:!0}),b=["isRefined","count:desc","name:asc"],R=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.l;return(0,m.t)(e,y()),function(r){var n,i,a,s=r||{},o=s.attribute,h=s.operator,m=void 0===h?"or":h,v=s.limit,R=void 0===v?10:v,S=s.showMore,_=void 0!==S&&S,w=s.showMoreLimit,x=void 0===w?20:w,P=s.sortBy,j=void 0===P?b:P,O=s.escapeFacetValues,E=void 0===O||O,I=s.transformItems,F=void 0===I?function(e){return e}:I;if(!o)throw Error(y("The `attribute` option is required."));if(!/^(and|or)$/.test(m))throw Error(y('The `operator` must one of: `"and"`, `"or"` (got "'.concat(m,'").')));if(!0===_&&x<=R)throw Error(y("`showMoreLimit` should be greater than `limit`."));var T=function(e){var t=e.name,r=e.escapedValue,n=(0,f._)(e,["name","escapedValue"]);return(0,l._)((0,u._)({},n),{value:r,label:t,highlighted:t})},k=[],A=!0,N=!1,C=function(){};function D(){C()}var H=function(){return function(){}};return{$$type:"ais.refinementList",init:function(t){e((0,l._)((0,u._)({},this.getWidgetRenderState(t)),{instantSearchInstance:t.instantSearchInstance}),!0)},render:function(t){e((0,l._)((0,u._)({},this.getWidgetRenderState(t)),{instantSearchInstance:t.instantSearchInstance}),!1)},getRenderState:function(e,t){return(0,l._)((0,u._)({},e),{refinementList:(0,l._)((0,u._)({},e.refinementList),(0,c._)({},o,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(t){var s=this,c=t.results,h=t.state,m=t.createURL,v=t.instantSearchInstance,y=t.helper,S=[],w=[];if(a&&i&&H||(O=(P={instantSearchInstance:v,helper:y,attribute:o,widgetType:this.$$type}).instantSearchInstance,I=P.helper,L=P.attribute,M=P.widgetType,a=function(){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=(0,p._)(r,4),a=i[1],s=i[2],o=i[3],c=(0,p._)(r[0].split(":"),2),l=c[0],f=c[1],d="string"==typeof L?L:L(a);1===r.length&&"object"===(0,g._)(r[0])?O.sendEventToInsights(r[0]):"click"===l&&r.length>=2&&r.length<=4&&((I.state.isHierarchicalFacet(d)?I.state.isHierarchicalFacetRefined(d,a):I.state.isConjunctiveFacet(d)?I.state.isFacetRefined(d,a):I.state.isDisjunctiveFacetRefined(d,a))||O.sendEventToInsights({insightsMethod:"clickedFilters",widgetType:M,eventType:l,eventModifier:f,payload:(0,u._)({eventName:void 0===s?"Filter Applied":s,index:(null==(e=I.lastResults)?void 0:e.index)||I.state.index,filters:["".concat(d,":").concat(a)]},void 0===o?{}:o),attribute:d}))},i=function(e){a("click:internal",e),y.toggleFacetRefinement(o,e).search()},q=this,H=function(t){return function(r){var i=t.instantSearchInstance,a=t.results;if(""===r&&k)e((0,l._)((0,u._)({},q.getWidgetRenderState((0,l._)((0,u._)({},t),{results:n}))),{instantSearchInstance:i}),!1);else{var s={highlightPreTag:E?d.FU.highlightPreTag:d.sn.highlightPreTag,highlightPostTag:E?d.FU.highlightPostTag:d.sn.highlightPostTag};y.searchForFacetValues(o,r,Math.min(N?x:R,100),s).then(function(r){var s=F((E?(0,d.ef)(r.facetHits):r.facetHits).map(function(e){var t=e.escapedValue,r=e.value,n=(0,f._)(e,["escapedValue","value"]);return(0,l._)((0,u._)({},n),{value:t,label:r})}),{results:a});e((0,l._)((0,u._)({},q.getWidgetRenderState((0,l._)((0,u._)({},t),{results:n}))),{items:s,canToggleShowMore:!1,canRefine:!0,isFromSearch:!0,instantSearchInstance:i}),!1)})}}}),c){var P,O,I,L,M,q,W,U=c.getFacetValues(o,{sortBy:j,facetOrdering:j===b});S=F((w=U&&Array.isArray(U)?U:[]).slice(0,N?x:R).map(T),{results:c});var Q=h.maxValuesPerFacet,$=N?x:R;A=Q>$?w.length<=$:w.length<$,n=c,k=S,t.results&&(W=this,C=function(){N=!N,W.render(t)})}var B=H&&H(t),V=N&&k.length>R,z=_&&!A;return{createURL:function(e){return m(function(t){return s.getWidgetUiState(t,{searchParameters:h.resetPage().toggleFacetRefinement(o,e),helper:y})})},items:S,refine:i,searchForItems:B,isFromSearch:!1,canRefine:S.length>0,widgetParams:r,isShowingMore:N,canToggleShowMore:V||z,toggleShowMore:D,sendEvent:a,hasExhaustiveItems:A}},dispose:function(e){var r=e.state;t();var n=r.setQueryParameter("maxValuesPerFacet",void 0);return"and"===m?n.removeFacet(o):n.removeDisjunctiveFacet(o)},getWidgetUiState:function(e,t){var r,n,i=t.searchParameters,a="or"===m?i.getDisjunctiveRefinements(o):i.getConjunctiveRefinements(o);return r=(0,l._)((0,u._)({},e),{refinementList:(0,l._)((0,u._)({},e.refinementList),(0,c._)({},o,a))}),n=o,r.refinementList&&(r.refinementList[n]&&0!==r.refinementList[n].length||delete r.refinementList[n],0===Object.keys(r.refinementList).length&&delete r.refinementList),r},getWidgetSearchParameters:function(e,t){var r=t.uiState,n="or"===m;if(e.isHierarchicalFacet(o)||n&&e.isConjunctiveFacet(o)||!n&&e.isDisjunctiveFacet(o))return e;var i=r.refinementList&&r.refinementList[o],a=n?e.addDisjunctiveFacet(o).removeDisjunctiveFacetRefinement(o):e.addFacet(o).removeFacetRefinement(o),s=Math.max(a.maxValuesPerFacet||0,_?x:R),f=a.setQueryParameter("maxValuesPerFacet",s);if(!i){var d=n?"disjunctiveFacetsRefinements":"facetsRefinements";return f.setQueryParameters((0,c._)({},d,(0,l._)((0,u._)({},f[d]),(0,c._)({},o,[]))))}return i.reduce(function(e,t){return n?e.addDisjunctiveFacetRefinement(o,t):e.addFacetRefinement(o,t)},f)}}}},S=r(41075),_=r(67429),w=r(18717),x=r(42247),P=r(27781),j=r(68566),O=r(37534),E=function(e){var t=e.createElement,r=e.Fragment,n=function(e){var r=e.classNames,n=e.children,i=e.highlightedTagName,a=e.isHighlighted,s=e.nonHighlightedTagName;return t(a?i:s,{className:a?r.highlighted:r.nonHighlighted},n)};return function(e){var i=e.parts,a=e.highlightedTagName,s=void 0===a?"mark":a,o=e.n
1onHighlightedTagName,c=void 0===o?"span":o,u=e.separator,l=void 0===u?", ":u,f=e.className,d=e.classNames,h=void 0===d?{}:d,m=(0,O._)(e,["parts","highlightedTagName","nonHighlightedTagName","separator","className","classNames"]);return t("span",(0,j._)((0,P._)({},m),{className:(0,_.cx)(h.root,f)}),i.map(function(e,a){var o=a===i.length-1;return t(r,{key:a},e.map(function(e,r){return t(n,{key:r,classNames:h,highlightedTagName:s,nonHighlightedTagName:c,isHighlighted:e.isHighlighted},e.value)}),!o&&t("span",{className:h.separator},l))}))}}({createElement:o.createElement,Fragment:o.Fragment});function I(e){var t=e.classNames,r=void 0===t?{}:t,i=(0,a._)(e,["classNames"]);return o.createElement(E,(0,n._)({classNames:{root:(0,_.cx)("ais-Highlight",r.root),highlighted:(0,_.cx)("ais-Highlight-highlighted",r.highlighted),nonHighlighted:(0,_.cx)("ais-Highlight-nonHighlighted",r.nonHighlighted),separator:(0,_.cx)("ais-Highlight-separator",r.separator)}},i))}function F(e){var t=e.isShowingMore,r=e.translations,n=(0,a._)(e,["isShowingMore","translations"]);return o.createElement("button",n,r.showMoreButtonText({isShowingMore:t}))}function T(e){e.canRefine;var t=e.items,r=e.onRefine,s=e.query,c=e.searchBox,u=e.noResults,l=e.showMore,f=e.canToggleShowMore,d=e.onToggleShowMore,h=e.isShowingMore,m=e.className,p=e.classNames,g=void 0===p?{}:p,v=e.translations,y=(0,a._)(e,["canRefine","items","onRefine","query","searchBox","noResults","showMore","canToggleShowMore","onToggleShowMore","isShowingMore","className","classNames","translations"]);return o.createElement("div",(0,i._)((0,n._)({},y),{className:(0,_.cx)("ais-RefinementList",g.root,0===t.length&&(0,_.cx)("ais-RefinementList--noRefinement",g.noRefinementRoot),m)}),c&&o.createElement("div",{className:(0,_.cx)("ais-RefinementList-searchBox",g.searchBox)},c),u?o.createElement("div",{className:(0,_.cx)("ais-RefinementList-noResults",g.noResults)},u):o.createElement("ul",{className:(0,_.cx)("ais-RefinementList-list",g.list)},t.map(function(e){return o.createElement("li",{key:e.value,className:(0,_.cx)("ais-RefinementList-item",g.item,e.isRefined&&(0,_.cx)("ais-RefinementList-item--selected",g.selectedItem))},o.createElement("label",{className:(0,_.cx)("ais-RefinementList-label",g.label)},o.createElement("input",{checked:e.isRefined,className:(0,_.cx)("ais-RefinementList-checkbox",g.checkbox),type:"checkbox",value:e.value,onChange:function(){r(e)}}),o.createElement("span",{className:(0,_.cx)("ais-RefinementList-labelText",g.labelText)},s.length>0?o.createElement(I,{parts:[(0,w.I)((0,x.x)(e.highlighted||""))]}):e.label),o.createElement("span",{className:(0,_.cx)("ais-RefinementList-count",g.count)},e.count)))})),l&&o.createElement(F,{className:(0,_.cx)("ais-RefinementList-showMore",g.showMore,!f&&(0,_.cx)("ais-RefinementList-showMore--disabled",g.disabledShowMore)),disabled:!f,onClick:d,isShowingMore:h,translations:v}))}var k=r(22484);function A(e){var t,r,c=e.searchable,u=e.searchablePlaceholder,l=e.searchableSelectOnSubmit,f=void 0===l||l,d=e.attribute,h=e.operator,m=e.limit,p=e.showMore,g=e.showMoreLimit,v=e.sortBy,y=e.escapeFacetValues,b=e.transformItems,_=e.translations,w=(0,a._)(e,["searchable","searchablePlaceholder","searchableSelectOnSubmit","attribute","operator","limit","showMore","showMoreLimit","sortBy","escapeFacetValues","transformItems","translations"]),x=(t={attribute:d,operator:h,limit:m,showMore:p,showMoreLimit:g,sortBy:v,escapeFacetValues:y,transformItems:b},r={$$widgetType:"ais.refinementList"},(0,S.Z)(R,t,r)),P=x.canRefine,j=x.canToggleShowMore,O=x.isFromSearch,E=x.isShowingMore,I=x.items,F=x.refine,A=x.searchForItems,N=x.toggleShowMore,C=(0,s._)((0,o.useState)(""),2),D=C[0],H=C[1],L=(0,o.useRef)(null);function M(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];H(e),t&&A(e)}var q=(0,n._)({resetButtonTitle:"Clear the search query",submitButtonTitle:"Submit the search query",noResultsText:"No results.",showMoreButtonText:function(e){return e.isShowingMore?"Show less":"Show more"}},_),W={items:I,canRefine:P,onRefine:function(e){F(e.value),M("")},query:D,searchBox:c&&o.createElement(k.G,{inputRef:L,placeholder:u,isSearchStalled:!1,value:D,onChange:function(e){var t="compositionend"===e.type||!e.nativeEvent.isComposing;M(e.currentTarget.value,t)},onReset:function(){M("")},onSubmit:function(){!1!==f&&I.length>0&&(F(I[0].value),M(""))},translations:{submitButtonTitle:q.submitButtonTitle,resetButtonTitle:q.resetButtonTitle}}
1),noResults:c&&O&&0===I.length&&q.noResultsText,canToggleShowMore:j,onToggleShowMore:N,isShowingMore:E,translations:{showMoreButtonText:q.showMoreButtonText}};return o.createElement(T,(0,i._)((0,n._)({},w,W),{showMore:p}))}},84637: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(/^\\-/,"-")}}},87909:e=>{"use strict";e.exports=function(e,t){if(Array.isArray(e)){for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]}}},88221:(e,t,r)=>{"use strict";var n=r(92579),i=r(1462),a=r(84637),s=r(87909),o=r(58095),c=r(36269),u=r(13745),l=r(54211),f=a.escapeFacetValue,d=a.unescapeFacetValue,h=r(47009);function m(e){var t={};return e.forEach(function(e,r){t[e]=r}),t}function p(e,t,r){t&&t[r]&&(e.stats=t[r])}function g(e,t,r){var a=t[0]||{};this._rawResults=t;var c=this;Object.keys(a).forEach(function(e){c[e]=a[e]});var l=i(r,{persistHierarchicalRootCount:!1});Object.keys(l).forEach(function(e){c[e]=l[e]}),this.processingTimeMS=t.reduce(function(e,t){return void 0===t.processingTimeMS?e:e+t.processingTimeMS},0),this.disjunctiveFacets=[],this.hierarchicalFacets=e.hierarchicalFacets.map(function(){return[]}),this.facets=[];var f=e.getRefinedDisjunctiveFacets(),g=m(e.facets),v=m(e.disjunctiveFacets),y=1,b=a.facets||{};Object.keys(b).forEach(function(t){var r=b[t],n=(l=e.hierarchicalFacets,s(l,function(e){return(e.attributes||[]).indexOf(t)>-1}));if(n){var i=n.attributes.indexOf(t),u=o(e.hierarchicalFacets,function(e){return e.name===n.name});c.hierarchicalFacets[u][i]={attribute:t,data:r,exhaustive:a.exhaustiveFacetsCount}}else{var l,f,d=-1!==e.disjunctiveFacets.indexOf(t),h=-1!==e.facets.indexOf(t);d&&(f=v[t],c.disjunctiveFacets[f]={name:t,data:r,exhaustive:a.exhaustiveFacetsCount},p(c.disjunctiveFacets[f],a.facets_stats,t)),h&&(f=g[t],c.facets[f]={name:t,data:r,exhaustive:a.exhaustiveFacetsCount},p(c.facets[f],a.facets_stats,t))}}),this.hierarchicalFacets=n(this.hierarchicalFacets),f.forEach(function(r){var n=t[y],s=n&&n.facets?n.facets:{},l=e.getHierarchicalFacetByName(r);Object.keys(s).forEach(function(t){var r,f=s[t];if(l){r=o(e.hierarchicalFacets,function(e){return e.name===l.name});var h=o(c.hierarchicalFacets[r],function(e){return e.attribute===t});if(-1===h)return;c.hierarchicalFacets[r][h].data=c.persistHierarchicalRootCount?u(c.hierarchicalFacets[r][h].data,f):i(f,c.hierarchicalFacets[r][h].data)}else{r=v[t];var m=a.facets&&a.facets[t]||{};c.disjunctiveFacets[r]={name:t,data:u(m,f),exhaustive:n.exhaustiveFacetsCount},p(c.disjunctiveFacets[r],n.facets_stats,t),e.disjunctiveFacetsRefinements[t]&&e.disjunctiveFacetsRefinements[t].forEach(function(n){!c.disjunctiveFacets[r].data[n]&&e.disjunctiveFacetsRefinements[t].indexOf(d(n))>-1&&(c.disjunctiveFacets[r].data[n]=0)})}}),y++}),e.getRefinedHierarchicalFacets().forEach(function(r){var n=e.getHierarchicalFacetByName(r),a=e._getHierarchicalFacetSeparator(n),s=e.getHierarchicalRefinement(r);0===s.length||s[0].split(a).length<2||t.slice(y).forEach(function(t){var r=t&&t.facets?t.facets:{};Object.keys(r).forEach(function(t){var u=r[t],l=o(e.hierarchicalFacets,function(e){return e.name===n.name}),f=o(c.hierarchicalFacets[l],function(e){return e.attribute===t});if(-1!==f){var d={};if(s.length>0&&!c.persistHierarchicalRootCount){var h=s[0].split(a)[0];d[h]=c.hierarchicalFacets[l][f].data[h]}c.hierarchicalFacets[l][f].data=i(d,u,c.hierarchicalFacets[l][f].data)}}),y++})}),Object.keys(e.facetsExcludes).forEach(function(t){var r=e.facetsExcludes[t],n=g[t];c.facets[n]={name:t,data:b[t],exhaustive:a.exhaustiveFacetsCount},r.forEach(function(e){c.facets[n]=c.facets[n]||{name:t},c.facets[n].data=c.facets[n].data||{},c.facets[n].data[e]=0})}),this.hierarchicalFacets=this.hierarchicalFacets.map(h(e)),this.facets=n(this.facets),this.disjunctiveFacets=n(this.disjunctiveFacets),this._state=e}function v(e,t){var r=s(e,function(e){return e.name===t});return r&&r.stats}function y(e,t,r,n,i){var a=s(i,function(e){return e.name===r}),o=a&&a.data&&a.data[n]?a.data[n]:0;return{type:t,attributeName:r,name:n,count:o,exhaustive:a&&a.exhaustive||!1}}g.prototype.getFacetByName=function(e){function t(t){return t.name===e}return s(this.facets,t)||s(this.disjunctiveFacets,t)||s(this.hierarchicalFacets,t)}
1,g.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"],g.prototype.getFacetValues=function(e,t){var r,n=function(e,t){function r(e){return e.name===t}if(e._state.isConjunctiveFacet(t)){var n=s(e.facets,r);return n?Object.keys(n.data).map(function(r){var i=f(r);return{name:r,escapedValue:i,count:n.data[r],isRefined:e._state.isFacetRefined(t,i),isExcluded:e._state.isExcludeRefined(t,r)}}):[]}if(e._state.isDisjunctiveFacet(t)){var i=s(e.disjunctiveFacets,r);return i?Object.keys(i.data).map(function(r){var n=f(r);return{name:r,escapedValue:n,count:i.data[r],isRefined:e._state.isDisjunctiveFacetRefined(t,n)}}):[]}if(e._state.isHierarchicalFacet(t)){var a=s(e.hierarchicalFacets,r);if(!a)return a;var o=e._state.getHierarchicalFacetByName(t),c=e._state._getHierarchicalFacetSeparator(o),u=d(e._state.getHierarchicalRefinement(t)[0]||"");0===u.indexOf(o.rootPath)&&(u=u.replace(o.rootPath+c,""));var l=u.split(c);return l.unshift(t),function e(t,r,n){t.isRefined=t.name===(r[n]&&r[n].trim()),t.data&&t.data.forEach(function(t){e(t,r,n+1)})}(a,l,0),a}}(this,e);if(n){var a=i(t,{sortBy:g.DEFAULT_SORT,facetOrdering:!(t&&t.sortBy)}),o=this;return r=Array.isArray(n)?[e]:o._state.getHierarchicalFacetByName(n.name).attributes,function e(t,r,n,a){if(a=a||0,Array.isArray(r))return t(r,n[a]);if(!r.data||0===r.data.length)return r;var s=r.data.map(function(r){return e(t,r,n,a+1)});return i({data:t(s,n[a])},r)}(function(e,t){var r,n,i,s,u,f,d,h=o.renderingContent&&o.renderingContent.facetOrdering&&o.renderingContent.facetOrdering.values&&o.renderingContent.facetOrdering.values[t];if(a.facetOrdering&&h)return n=[],i=[],s=h.hide||[],u=(h.order||[]).reduce(function(e,t,r){return e[t]=r,e},{}),e.forEach(function(e){var t=e.path||e.name,r=s.indexOf(t)>-1;r||void 0===u[t]?r||i.push(e):n[u[t]]=e}),n=n.filter(function(e){return e}),"hidden"===(f=h.sortRemainingBy)?n:(r="alpha"===f?[["path","name"],["asc","asc"]]:[["count"],["desc"]],n.concat(l(i,r[0],r[1])));if(Array.isArray(a.sortBy)){var m=c(a.sortBy,g.DEFAULT_SORT),p=l(e,m[0],m[1]),v=h&&h.hide?h.hide:[];if(v.length>0){var y=[];return p.forEach(function(e){var t=e.path||e.name;-1===v.indexOf(t)&&y.push(e)}),y}return p}if("function"==typeof a.sortBy)return d=a.sortBy,e.sort(d);throw Error("options.sortBy is optional but if defined it must be either an array of string (predicates) or a sorting function")},n,r)}},g.prototype.getFacetStats=function(e){return this._state.isConjunctiveFacet(e)?v(this.facets,e):this._state.isDisjunctiveFacet(e)?v(this.disjunctiveFacets,e):void 0},g.prototype.getRefinements=function(){var e=this._state,t=this,r=[];return Object.keys(e.facetsRefinements).forEach(function(n){e.facetsRefinements[n].forEac
1h(function(i){r.push(y(e,"facet",n,i,t.facets))})}),Object.keys(e.facetsExcludes).forEach(function(n){e.facetsExcludes[n].forEach(function(i){r.push(y(e,"exclude",n,i,t.facets))})}),Object.keys(e.disjunctiveFacetsRefinements).forEach(function(n){e.disjunctiveFacetsRefinements[n].forEach(function(i){r.push(y(e,"disjunctive",n,i,t.disjunctiveFacets))})}),Object.keys(e.hierarchicalFacetsRefinements).forEach(function(n){e.hierarchicalFacetsRefinements[n].forEach(function(i){var a,o,c,u,l,f,d,h,m,p,g;r.push((a=e,o=n,c=i,u=t.hierarchicalFacets,l=a.getHierarchicalFacetByName(o),f=a._getHierarchicalFacetSeparator(l),d=c.split(f),h=s(u,function(e){return e.name===o}),p=(m=d.reduce(function(e,t){var r=e&&s(e.data,function(e){return e.name===t});return void 0!==r?r:e},h))&&m.count||0,g=m&&m.exhaustive||!1,{type:"hierarchical",attributeName:o,name:m&&m.path||"",count:p,exhaustive:g}))})}),Object.keys(e.numericRefinements).forEach(function(t){var n=e.numericRefinements[t];Object.keys(n).forEach(function(e){n[e].forEach(function(n){r.push({type:"numeric",attributeName:t,name:n,numericValue:n,operator:e})})})}),e.tagRefinements.forEach(function(e){r.push({type:"tag",attributeName:"_tags",name:e})}),r},e.exports=g},88314:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{MutableRequestCookiesAdapter:function(){return f},ReadonlyRequestCookiesError:function(){return s},RequestCookiesAdapter:function(){return o},appendMutableCookies:function(){return l},areCookiesMutableInCurrentPhase:function(){return h},createCookiesWithMutableAccessCheck:function(){return d},getModifiedCookieValues:function(){return u},responseCookiesToRequestCookies:function(){return p}});let n=r(5425),i=r(13972),a=r(8567);class s extends Error{constructor(){super("Cookies can only be modified in a Server Action or Route Handler. Read more: https://nextjs.org/docs/app/api-reference/functions/cookies#options")}static callable(){throw new s}}class o{static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"clear":case"delete":case"set":return s.callable;default:return i.ReflectAdapter.get(e,t,r)}}})}}let c=Symbol.for("next.mutated.cookies");function u(e){let t=e[c];return t&&Array.isArray(t)&&0!==t.length?t:[]}function l(e,t){let r=u(t);if(0===r.length)return!1;let i=new n.ResponseCookies(e),a=i.getAll();for(let e of r)i.set(e);for(let e of a)i.set(e);return!0}class f{static wrap(e,t){let r=new n.ResponseCookies(new Headers);for(let t of e.getAll())r.set(t);let s=[],o=new Set,u=()=>{let e=a.workAsyncStorage.getStore();if(e&&(e.pathWasRevalidated=!0),s=r.getAll().filter(e=>o.has(e.name)),t){let e=[];for(let t of s){let r=new n.ResponseCookies(new Headers);r.set(t),e.push(r.toString())}t(e)}},l=new Proxy(r,{get(e,t,r){switch(t){case c:return s;case"delete":return function(...t){o.add("string"==typeof t[0]?t[0]:t[0].name);try{return e.delete(...t),l}finally{u()}};case"set":return function(...t){o.add("string"==typeof t[0]?t[0]:t[0].name);try{return e.set(...t),l}finally{u()}};default:return i.ReflectAdapter.get(e,t,r)}}});return l}}function d(e){let t=new Proxy(e.mutableCookies,{get(r,n,a){switch(n){case"delete":return function(...n){return m(e,"cookies().delete"),r.delete(...n),t};case"set":return function(...n){return m(e,"cookies().set"),r.set(...n),t};default:return i.ReflectAdapter.get(r,n,a)}}});return t}function h(e){return"action"===e.phase}function m(e,t){if(!h(e))throw new s}function p(e){let t=new n.RequestCookies(new Headers);for(let r of e.getAll())t.set(r);return t}},88675:(e,t,r)=>{"use strict";var n=r(1462),i=r(87909),a=r(63291),s=r(38694),o=r(88723),c=r(78195),u=r(1001),l=r(82424),f=r(28424);function d(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every(function(e,r){return d(t[r],e)}):e===t}function h(e){var t=e?h._parseNumbers(e):{};void 0===t.userToken||l(t.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=t.facets||[],this.disjunctiveFacets=t.disjunctiveFacets||[],this.hierarchicalFacets=t.hierarchicalFacets||[],this.facetsRefinements=t.facetsRefinements||{},this.facetsExcludes=t.facetsExcludes||{},this.disjunctiveFacetsRefinements=t.disjunctiveFacetsRefinements||{},this.numericRefinements=t.numericRefinements||{},this.tagRefinements=t.tagRefinements||[],this.hierarchicalFacetsRefinements=t.hierarchicalFacetsRefinements||{};var r=this;Object.keys(t).forEach(function(e){var n=-1!==h.PARAMETERS.indexOf(e),i=void 0!==t[e];!n&&i&&(r[e]=t[e])})}function m(e){var t=parseFloat(e);return isFinite(t)?t:null}h.PARAMETERS=Object.keys(new h),h._parseNumbers=function(e){if(e instanceof h)return e;var t={};if(["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroun
1dRadius","hitsPerPage","minProximity"].forEach(function(r){var n=e[r];if("string"==typeof n){var i=parseFloat(n);isNaN(i)?t[r]=n:isFinite(i)?t[r]=i:t[r]=null}else"number"!=typeof n||isFinite(n)||(t[r]=null)}),Array.isArray(e.insideBoundingBox)&&(t.insideBoundingBox=e.insideBoundingBox.map(function(e){return Array.isArray(e)?e.map(function(e){return"string"==typeof e?m(e):"number"!=typeof e||isFinite(e)?e:null}):e})),e.numericRefinements){var r={};Object.keys(e.numericRefinements).forEach(function(t){var n=e.numericRefinements[t]||{};r[t]={},Object.keys(n).forEach(function(e){var i=n[e].map(function(e){return Array.isArray(e)?e.map(function(e){return"string"==typeof e?m(e):"number"!=typeof e||isFinite(e)?e:null}):"string"==typeof e?m(e):"number"!=typeof e||isFinite(e)?e:null});r[t][e]=i})}),t.numericRefinements=r}return s(e,t)},h.make=function(e){var t=new h(e);return(e.hierarchicalFacets||[]).forEach(function(e){if(e.rootPath){var r=t.getHierarchicalRefinement(e.name);r.length>0&&0!==r[0].indexOf(e.rootPath)&&(t=t.clearRefinements(e.name)),0===(r=t.getHierarchicalRefinement(e.name)).length&&(t=t.toggleHierarchicalFacetRefinement(e.name,e.rootPath))}}),t},h.validate=function(e,t){var r=t||{};return e.tagFilters&&r.tagRefinements&&r.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&&r.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&&r.numericRefinements&&o(r.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."):o(e.numericRefinements)&&r.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},h.prototype={constructor:h,clearRefinements:function(e){var t={numericRefinements:this._clearNumericRefinements(e),facetsRefinements:f.clearRefinement(this.facetsRefinements,e,"conjunctiveFacet"),facetsExcludes:f.clearRefinement(this.facetsExcludes,e,"exclude"),disjunctiveFacetsRefinements:f.clearRefinement(this.disjunctiveFacetsRefinements,e,"disjunctiveFacet"),hierarchicalFacetsRefinements:f.clearRefinement(this.hierarchicalFacetsRefinements,e,"hierarchicalFacet")};return t.numericRefinements===this.numericRefinements&&t.facetsRefinements===this.facetsRefinements&&t.facetsExcludes===this.facetsExcludes&&t.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&t.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters(t)},clearTags:function(){return void 0===this.tagFilters&&0===this.tagRefinements.length?this:this.setQueryParameters({tagFilters:void 0,tagRefinements:[]})},setIndex:function(e){return e===this.index?this:this.setQueryParameters({index:e})},setQuery:function(e){return e===this.query?this:this.setQueryParameters({query:e})},setPage:function(e){return e===this.page?this:this.setQueryParameters({page:e})},setFacets:function(e){return this.setQueryParameters({facets:e})},setDisjunctiveFacets:function(e){return this.setQueryParameters({disjunctiveFacets:e})},setHitsPerPage:function(e){return this.hitsPerPage===e?this:this.setQueryParameters({hitsPerPage:e})},setTypoTolerance:function(e){return this.typoTolerance===e?this:this.setQueryParameters({typoTolerance:e})},addNumericRefinement:function(e,t,r){var n=u(r);if(this.isNumericRefined(e,t,n))return this;var i=s({},this.numericRefinements);return i[e]=s({},i[e]),i[e][t]?(i[e][t]=i[e][t].slice(),i[e][t].push(n)):i[e][t]=[n],this.setQueryParameters({numericRefinements:i})},getConjunctiveRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsRefinements[e]||[]},getDisjunctiveRefinements:function(e){return this.isDisjunctiveFacet(e)&&this.disjunctiveFacetsRefinements[e]||[]},getHierarchicalRefinement:function(e){return this.hierarchicalFacetsRefinements[e]||[]},getExcludeRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsExcludes[e]||[]},removeNumericRefinement:function(e,t,r){return void 0!==r?this.isNumericRefined(e,t,r)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(n,i){return i===e&&n.op===t&&d(n.val,u(r))})}):this:void 0!==t?this.isNumericRefined(e,t)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(r,n){return n===e&&r.op===t})}):this:this.isNumericRefined(e)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(t,r){return r===e})}):this},getNumericRefinements:function(e){return this.numericRefinements[e]||{}},getNumericRefinement:function(e,t){return this.numericRefinements[e]&&this.numericRefinements[e][t]},_clearNumericRefinements:function(e){if(void 0===e)return o(this.numericRefinements)?{}:this.numericRefinements;if("string"==typeof e)return c(this.numericRefinements,[e]);if("function"==typeof e){var t=!1,r=this.numericRefinements,n=Object.keys(r).reduce(function(n,i){var a=r[i],s={};return Object.keys(a=a||{}
vendor: 8,277 bytes, line 1
1).forEach(function(r){var n=a[r]||[],o=[];n.forEach(function(t){e({val:t,op:r},i,"numeric")||o.push(t)}),o.length!==n.length&&(t=!0),s[r]=o}),n[i]=s,n},{});return t?n:this.numericRefinements}},addFacet:function(e){return this.isConjunctiveFacet(e)?this:this.setQueryParameters({facets:this.facets.concat([e])})},addDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([e])})},addHierarchicalFacet:function(e){if(this.isHierarchicalFacet(e.name))throw Error("Cannot declare two hierarchical facets with the same name: `"+e.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([e])})},addFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return f.isRefined(this.facetsRefinements,e,t)?this:this.setQueryParameters({facetsRefinements:f.addRefinement(this.facetsRefinements,e,t)})},addExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return f.isRefined(this.facetsExcludes,e,t)?this:this.setQueryParameters({facetsExcludes:f.addRefinement(this.facetsExcludes,e,t)})},addDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return f.isRefined(this.disjunctiveFacetsRefinements,e,t)?this:this.setQueryParameters({disjunctiveFacetsRefinements:f.addRefinement(this.disjunctiveFacetsRefinements,e,t)})},addTagRefinement:function(e){if(this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.concat(e)};return this.setQueryParameters(t)},removeFacet:function(e){return this.isConjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({facets:this.facets.filter(function(t){return t!==e})}):this},removeDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.filter(function(t){return t!==e})}):this},removeHierarchicalFacet:function(e){return this.isHierarchicalFacet(e)?this.clearRefinements(e).setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.filter(function(t){return t.name!==e})}):this},removeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return f.isRefined(this.facetsRefinements,e,t)?this.setQueryParameters({facetsRefinements:f.removeRefinement(this.facetsRefinements,e,t)}):this},removeExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return f.isRefined(this.facetsExcludes,e,t)?this.setQueryParameters({facetsExcludes:f.removeRefinement(this.facetsExcludes,e,t)}):this},removeDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return f.isRefined(this.disjunctiveFacetsRefinements,e,t)?this.setQueryParameters({disjunctiveFacetsRefinements:f.removeRefinement(this.disjunctiveFacetsRefinements,e,t)}):this},removeTagRefinement:function(e){if(!this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.filter(function(t){return t!==e})};return this.setQueryParameters(t)},toggleRefinement:function(e,t){return this.toggleFacetRefinement(e,t)},toggleFacetRefinement:function(e,t){if(this.isHierarchicalFacet(e))return this.toggleHierarchicalFacetRefinement(e,t);if(this.isConjunctiveFacet(e))return this.toggleConjunctiveFacetRefinement(e,t);if(this.isDisjunctiveFacet(e))return this.toggleDisjunctiveFacetRefinement(e,t);throw Error("Cannot refine the undeclared facet "+e+"; it should be added to the helper options facets, disjunctiveFacets or hierarchicalFacets")},toggleConjunctiveFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsRefinements:f.toggleRefinement(this.facetsRefinements,e,t)})},toggleExcludeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsExcludes:f.toggleRefinement(this.facetsExcludes,e,t)})},toggleDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.setQueryParameters({disjunctiveFacetsRefinements:f.toggleRefinement(this.disjunctiveFacetsRefinements,e,t)})},toggleHierarchicalFacetRefinement:function(e,t){if(!this.isHierarchicalFacet(e))throw Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration");var r=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),i={};return void 0!==this.hierarchicalFacetsRefinements[e]&&this.hierarchicalFacetsRefinements[e].length>0&&(this.hierarchicalFacetsRefinements[e][0]===t||0===this.hierarchicalFacetsRefinements[e][0].indexOf(t+r))?-1===t.indexOf(r)?i[e]=[]:i[e]=[t.slice(0,t.lastIndexOf(r))]:i[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:n(i,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(e,t){if(this.isHierarchicalFacetRefined(e))throw Error(e+" is already refined.");if(!this.isHierarchicalFacet(e))throw Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration.");var r={};return r[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:n(r,this.hierarchicalFacetsRefinements)})},removeHierarchicalFacetRefinement:function(e){if(!this.isHierarchicalFacetRefined(e))return this;var t={};return t[e]=[],this.setQueryParameters({hierarchicalFacetsRefinements:n(t,this.hierarchicalFacetsRefinements)})},toggleTagRefinement:function(e){return this.isTagRefined(e)?this.removeTagRefinement(e):this.addTagRefinement(e)},isDisjunctiveFacet:function(e){return this.disjunctiveFacets.indexOf(e)>-1},isHierarchicalFacet:function(e){return void 0!==this.getHierarchicalFacetByName(e)},isConjunctiveFacet:function(e){return this.facets.indexOf(e)>-1},isFacetRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&f.isRefined(this.facetsRefinements,e,t)},isExcludeRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&f.isRefined(this.facetsExcludes,e,t)},isDisjunctiveFacetRefined:function(e,t){return!!this.isDisjunctiveFacet(e)&&f.isRefined(this.disjunctiveFacetsRefinements,e,t)},isHierarchicalFacetRefined:function(e,t){if(!this.isHierarchicalFacet(e))return!1;var r=this.getHierarchicalRefinement(e);return t?-1!==r.indexOf(t):r.length>0},isNumericRefined:function(e,t,r){if(void 0===r&&void 0===t)return!!this.numericRefinements[e];var n,a=this.numericRefinements[e]&&void 0!==this.numericRefinements[e][t];if(void 0===r||!a)return a;var s=u(r),o=void 0!==(n=this.numericRefinements[e][t],i(n,function(e){return d(e,s)}));return a&&o},isTagRefined:function(e){return -1!==this.tagRefinements.indexOf(e)},getRefinedDisjunctiveFacets:function(){var e=this,t=a(Object.keys(this.numericRefinements).filter(function(t){return Object.keys(e.numericRefinements[t]).length>0}),this.disjunctiveFacets);return Object.keys(this.disjunctiveFacetsRefinements).filter(function(t){return e.disjunctiveFacetsRefinements[t].length>0}).concat(t).concat(this.getRefinedHierarchicalFacets()).sort()},getRefinedHierarchicalFacets:function(){var e=this;return a(this.hierarchicalFacets.map(function(e){return e.name}),Object.keys(this.hierarchicalFacetsRefinements).filter(function(t){return e.hierarchicalFacetsRefinements[t].length>0})).sort()},getUnrefinedDisjunctiveFacets:function(){var e=this.getRefinedDisjunctiveFacets();return this.disjunctiveFacets.filter(function(t){return -1===e.indexOf(t)})},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","hierarchicalFacets","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacetsRefinements"],getQueryParams:function(){var e=this.managedParameters,t={},r=this;
1return Object.keys(this).forEach(function(n){var i=r[n];-1===e.indexOf(n)&&void 0!==i&&(t[n]=i)}),t},setQueryParameter:function(e,t){if(this[e]===t)return this;var r={};return r[e]=t,this.setQueryParameters(r)},setQueryParameters:function(e){if(!e)return this;var t=h.validate(this,e);if(t)throw t;var r=this,n=h._parseNumbers(e),i=Object.keys(this).reduce(function(e,t){return e[t]=r[t],e},{}),a=Object.keys(n).reduce(function(e,t){var r=void 0!==e[t],i=void 0!==n[t];return r&&!i?c(e,[t]):(i&&(e[t]=n[t]),e)},i);return new this.constructor(a)},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 i(this.hierarchicalFacets,function(t){return t.name===e})},getHierarchicalFacetBreadcrumb:function(e){if(!this.isHierarchicalFacet(e))return[];var t=this.getHierarchicalRefinement(e)[0];if(!t)return[];var r=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e));return t.split(r).map(function(e){return e.trim()})},toString:function(){return JSON.stringify(this,null,2)}},e.exports=h},88723:e=>{"use strict";e.exports=function(e){return e&&Object.keys(e).length>0}},89722:(e,t,r)=>{"use strict";r.d(t,{p:()=>c});var n=r(39310),i=r(24749),a=r(45721),s=function(e,t){t.facets,t.disjunctiveFacets,t.facetsRefinements,t.facetsExcludes,t.disjunctiveFacetsRefinements,t.numericRefinements,t.tagRefinements,t.hierarchicalFacets,t.hierarchicalFacetsRefinements,t.ruleContexts;var r=(0,i._)(t,["facets","disjunctiveFacets","facetsRefinements","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacets","hierarchicalFacetsRefinements","ruleContexts"]);return e.setQueryParameters(r)},o=function(e,t){var r=(0,a.s)([].concat(e.ruleContexts).concat(t.ruleContexts).filter(Boolean));return r.length>0?e.setQueryParameters({ruleContexts:r}):e},c=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(function(e,t){var r,i,a,c,u,l,f,d;return s((d=o((r=e.setQueryParameters({hierarchicalFacetsRefinements:(0,n._)({},e.hierarchicalFacetsRefinements,t.hierarchicalFacetsRefinements)}),i=r.setQueryParameters({hierarchicalFacets:t.hierarchicalFacets.reduce(function(e,t){var r=function(e,t){if(!Array.isArray(e))return -1;for(var r=0;r<e.length;r++)if(t(e[r]))return r;return -1}(e,function(e){return e.name===t.name});if(-1===r)return e.concat(t);var n=e.slice();return n.splice(r,1,t),n},r.hierarchicalFacets)}),a=t.tagRefinements.reduce(function(e,t){return e.addTagRefinement(t)},i),c=a.setQueryParameters({numericRefinements:(0,n._)({},a.numericRefinements,t.numericRefinements)}),u=c.setQueryParameters({disjunctiveFacetsRefinements:(0,n._)({},c.disjunctiveFacetsRefinements,t.disjunctiveFacetsRefinements)}),l=u.setQueryParameters({facetsExcludes:(0,n._)({},u.facetsExcludes,t.facetsExcludes)}),f=l.setQueryParameters({facetsRefinements:(0,n._)({},l.facetsRefinements,t.facetsRefinements)}),t.disjunctiveFacets.reduce(function(e,t){return e.addDisjunctiveFacet(t)},f)),t),t.facets.reduce(function(e,t){return e.addFacet(t)},d)),t)})}},90074:(e,t,r)=>{"use strict";r.d(t,{G:()=>l});var n=r(43363),i=r(12115),a=r(19358),s=r(46164),o=r(22288),c=r(67429);function u(e){var t=e.classNames,r=void 0===t?{}:t,a=e.url,u=e.theme,l=void 0===u?"light":u,f=(0,o._)(e,["classNames","url","theme"]);return i.createElement("div",(0,s._)((0,n._)({},f),{className:(0,c.cx)("ais-PoweredBy","dark"===l?(0,c.cx)("ais-PoweredBy--dark",r.dark):(0,c.cx)("ais-PoweredBy--light",r.light),r.root,f.className)}),i.createElement("a",{href:a,target:"_blank",className:(0,c.cx)("ais-PoweredBy-link",r.link),"aria-label":"Search by Algolia",rel:"noopener noreferrer"},i.createElement("svg",{viewBox:"0 0 572 64",className:(0,c.cx)("ais-PoweredBy-logo",r.logo)},i.createElement("path",{fill:"dark"===l?"#FFF":"#36395A",d:"M16 48.3c-3.4 0-6.3-.6-8.7-1.7A12.4 12.4 0 0 1 1.9 42C.6 40 0 38 0 35.4h6.5a6.7 6.7 0 0 0 3.9 6c1.4.7 3.3 1.1 5.6 1.1 2.2 0 4-.3 5.4-1a7 7 0 0 0 3-2.4 6 6 0 0 0 1-3.4c0-1.5-.6-2.8-1.9-3.7-1.3-1-3.3-1.6-5.9-1.8l-4-.4c-3.7-.3-6.6-1.4-8.8-3.4a10 10 0 0 1-3.3-7.9c0-2.4.6-4.6 1.8-6.4a12 12 0 0 1 5-4.3c2.2-1 4.7-1.6 7.5-1.6s5.5.5 7.6 1.6a12 12 0 0 1 5 4.4c1.2 1.8 1.8 4 1.8 6.7h-6.5a6.4 6.4 0 0 0-3.5-5.9c-1-.6-2.6-1-4.4-1s-3.2.3-4.4 1c-1.1.6-2 1.4-2.6 2.4-.5 1-.8 2
1-.8 3.1a5 5 0 0 0 1.5 3.6c1 1 2.6 1.7 4.7 1.9l4 .3c2.8.2 5.2.8 7.2 1.8 2.1 1 3.7 2.2 4.9 3.8a9.7 9.7 0 0 1 1.7 5.8c0 2.5-.7 4.7-2 6.6a13 13 0 0 1-5.6 4.4c-2.4 1-5.2 1.6-8.4 1.6Zm35.6 0c-2.6 0-4.8-.4-6.7-1.3a13 13 0 0 1-4.7-3.5 17.1 17.1 0 0 1-3.6-10.4v-1c0-2 .3-3.8 1-5.6a13 13 0 0 1 7.3-8.3 15 15 0 0 1 6.3-1.4A13.2 13.2 0 0 1 64 24.3c1 2.2 1.6 4.6 1.6 7.2V34H39.4v-4.3h21.8l-1.8 2.2c0-2-.3-3.7-.9-5.1a7.3 7.3 0 0 0-2.7-3.4c-1.2-.7-2.7-1.1-4.6-1.1s-3.4.4-4.7 1.3a8 8 0 0 0-2.9 3.6c-.6 1.5-.9 3.3-.9 5.4 0 2 .3 3.7 1 5.3a7.9 7.9 0 0 0 2.8 3.7c1.3.8 3 1.3 5 1.3s3.8-.5 5.1-1.3c1.3-1 2.1-2 2.4-3.2h6a11.8 11.8 0 0 1-7 8.7 16 16 0 0 1-6.4 1.2ZM80 48c-2.2 0-4-.3-5.7-1a8.4 8.4 0 0 1-3.7-3.3 9.7 9.7 0 0 1-1.3-5.2c0-2 .5-3.8 1.5-5.2a9 9 0 0 1 4.3-3.1c1.8-.7 4-1 6.7-1H89v4.1h-7.5c-2 0-3.4.5-4.4 1.4-1 1-1.6 2.1-1.6 3.6s.5 2.7 1.6 3.6c1 1 2.5 1.4 4.4 1.4 1.1 0 2.2-.2 3.2-.7 1-.4 1.9-1 2.6-2 .6-1 1-2.4 1-4.2l1.7 2.1c-.2 2-.7 3.8-1.5 5.2a9 9 0 0 1-3.4 3.3 12 12 0 0 1-5.3 1Zm9.5-.7v-8.8h-1v-10c0-1.8-.5-3.2-1.4-4.1-1-1-2.4-1.4-4.2-1.4a142.9 142.9 0 0 0-10.2.4v-5.6a74.8 74.8 0 0 1 8.6-.4c3 0 5.5.4 7.5 1.2s3.4 2 4.4 3.6c1 1.7 1.4 4 1.4 6.7v18.4h-5Zm12.9 0V17.8h5v12.3h-.2c0-4.2 1-7.4 2.8-9.5a11 11 0 0 1 8.3-3.1h1v5.6h-2a9 9 0 0 0-6.3 2.2c-1.5 1.5-2.2 3.6-2.2 6.4v15.6h-6.4Zm34.4 1a15 15 0 0 1-6.6-1.3c-1.9-.9-3.4-2-4.7-3.5a15.5 15.5 0 0 1-2.7-5c-.6-1.7-1-3.6-1-5.4v-1c0-2 .4-3.8 1-5.6a15 15 0 0 1 2.8-4.9c1.3-1.5 2.8-2.6 4.6-3.5a16.4 16.4 0 0 1 13.3.2c2 1 3.5 2.3 4.8 4a12 12 0 0 1 2 6H144c-.2-1.6-1-3-2.2-4.1a7.5 7.5 0 0 0-5.2-1.7 8 8 0 0 0-4.7 1.3 8 8 0 0 0-2.8 3.6 13.8 13.8 0 0 0 0 10.3c.6 1.5 1.5 2.7 2.8 3.6s2.8 1.3 4.8 1.3c1.5 0 2.7-.2 3.8-.8a7 7 0 0 0 2.6-2c.7-1 1-2 1.2-3.2h6.2a11 11 0 0 1-2 6.2 15.1 15.1 0 0 1-11.8 5.5Zm19.7-1v-40h6.4V31h-1.3c0-3 .4-5.5 1.1-7.6a9.7 9.7 0 0 1 3.5-4.8A9.9 9.9 0 0 1 172 17h.3c3.5 0 6 1.1 7.9 3.5 1.7 2.3 2.6 5.7 2.6 10v16.8h-6.4V29.6c0-2.1-.6-3.8-1.8-5a6.4 6.4 0 0 0-4.8-1.8c-2 0-3.7.7-5 2a7.8 7.8 0 0 0-1.9 5.5v17h-6.4Zm63.8 1a12.2 12.2 0 0 1-10.9-6.2 19 19 0 0 1-1.8-7.3h1.4v12.5h-5.1v-40h6.4v19.8l-2 3.5c.2-3.1.8-5.7 1.9-7.7a11 11 0 0 1 4.4-4.5c1.8-1 3.9-1.5 6.1-1.5a13.4 13.4 0 0 1 12.8 9.1c.7 1.9 1 3.8 1 6v1c0 2.2-.3 4.1-1 6a13.6 13.6 0 0 1-13.2 9.4Zm-1.2-5.5a8.4 8.4 0 0 0 7.9-5c.7-1.5 1.1-3.3 1.1-5.3s-.4-3.8-1.1-5.3a8.7 8.7 0 0 0-3.2-3.6 9.6 9.6 0 0 0-9.2-.2 8.5 8.5 0 0 0-3.3 3.2c-.8 1.4-1.3 3-1.3 5v2.3a9 9 0 0 0 1.3 4.8 9 9 0 0 0 3.4 3c1.4.7 2.8 1 4.4 1Zm27.3 3.9-10-28.9h6.5l9.5 28.9h-6Zm-7.5 12.2v-5.7h4.9c1 0 2-.1 2.9-.4a4 4 0 0 0 2-1.4c.4-.7.9-1.6 1.2-2.7l8.6-30.9h6.2l-9.3 32.4a14 14 0 0 1-2.5 5 8.9 8.9 0 0 1-4 2.8c-1.5.6-3.4.9-5.6.9h-4.4Zm9-12.2v-5.2h6.4v5.2H248Z"}),i.createElement("path",{fill:"dark"===l?"#FFF":"#003DFF",d:"M534.4 9.1H528a.8.8 0 0 1-.7-.7V1.8c0-.4.2-.7.6-.8l6.5-1c.4 0 .8.2.9.6v7.8c0 .4-.4.7-.8.7zM428 35.2V.8c0-.5-.3-.8-.7-.8h-.2l-6.4 1c-.4 0-.7.4-.7.8v35c0 1.6 0 11.8 12.3 12.2.5 0 .8-.4.8-.8V43c0-.4-.3-.7-.6-.8-4.5-.5-4.5-6-4.5-7zm106.5-21.8H528c-.4 0-.7.4-.7.8v34c0 .4.3.8.7.8h6.5c.4 0 .8-.4.8-.8v-34c0-.5-.4-.8-.8-.8zm-17.7 21.8V.8c0-.5-.3-.8-.8-.8l-6.5 1c-.4 0-.7.4-.7.8v35c0 1.6 0 11.8 12.3 12.2.4 0 .8-.4.8-.8V43c0-.4-.3-.7-.7-.8-4.4-.5-4.4-6-4.4-7zm-22.2-20.6a16.5 16.5 0 0 1 8.6 9.3c.8 2.2 1.3 4.8 1.3 7.5a19.4 19.4 0 0 1-4.6 12.6 14.8 14.8 0 0 1-5.2 3.6c-2 .9-5.2 1.4-6.8 1.4a21 21 0 0 1-6.7-1.4 15.4 15.4 0 0 1-8.6-9.3 21.3 21.3 0 0 1 0-14.4 15.2 15.2 0 0 1 8.6-9.3c2-.8 4.3-1.2 6.7-1.2s4.6.4 6.7 1.2zm-6.7 27.6c2.7 0 4.7-1 6.2-3s2.2-4.3 2.2-7.8-.7-6.3-2.2-8.3-3.5-3-6.2-3-4.7 1-6.1 3c-1.5 2-2.2 4.8-2.2 8.3s.7 5.8 2.2 7.8 3.5 3 6.2 3zm-88.8-28.8c-6.2 0-11.7 3.3-14.8 8.2a18.6 18.6 0 0 0 4.8 25.2c1.8 1.2 4 1.8 6.2 1.7s.1 0 .1 0h.9c4.2-.7 8-4 9.1-8.1v7.4c0 .4.3.7.8.7h6.4a.7.7 0 0 0 .7-.7V14.2c0-.5-.3-.8-.7-.8h-13.5zm6.3 26.5a9.8 9.8 0 0 1-5.7 2h-.5a10 10 0 0 1-9.2-14c1.4-3.7 5-6.3 9-6.3h6.4v18.3zm152.3-26.5h13.5c.5 0 .8.3.8.7v33.7c0 .4-.3.7-.8.7h-6.4a.7.7 0 0 1-.8-.7v-7.4c-1.2 4-4.8 7.4-9 8h-.1a4.2 4.2 0 0 1-.5.1h-.9a10.3 10.3 0 0 1-7-2.6c-4-3.3-6.5-8.4-6.5-14.2 0-3.7 1-7.2 3-10 3-5 8.5-8.3 14.7-8.3zm.6 28.4c2.2-.1 4.2-.6 5.7-2V21.7h-6.3a9.8 9.8 0 0 0-9 6.4 10.2 10.2 0 0 0 9.1 13.9h.5zM452.8 13.4c-6.2 0-11.7 3.3-14.8 8.2a18.5 18.5 0 0 0 3.6 24.3 10.4 10.4 0 0 0 13 .6c2.2-1.5 3.8-3.7 4.5-6.1v7.8c0 2.8-.8 5-2.2 6.3-1.5 1.5-4 2.2-7.5 2.2l-6-.3c-.3 0-.7.2-.8.5l-1.6 5.5c-.1.4.1.8.5 1h.1c2.8.4 5.5.6 7 .6 6.3 0 11-1.4 14-4.1 2.7-2.5 4.2-6.3 4.5-11.4V14.2c0-.5-.4-.8-.8-.8h-13.5zm6.3 8.2v18.3a9.6 9.6 0 0 1-5.6 2h-1a10.3 10.3 0 0 1-8.8-14c1.4-3.7 5-6.3 9-6.3h6.4zM291 31.5A32 32 0 0 1 322.8 0h30.8c.6 0 1.2.5 1.2 1.2v61.5c0 1.1-1.3 1.7-2.2 1l-19.2-17a18 18 
10 0 1-11 3.4 18.1 18.1 0 1 1 18.2-14.8c-.1.4-.5.7-.9.6-.1 0-.3 0-.4-.2l-3.8-3.4c-.4-.3-.6-.8-.7-1.4a12 12 0 1 0-2.4 8.3c.4-.4 1-.5 1.6-.2l14.7 13.1v-46H323a26 26 0 1 0 10 49.7c.8-.4 1.6-.2 2.3.3l3 2.7c.3.2.3.7 0 1l-.2.2a32 32 0 0 1-47.2-28.6z"}))))}function l(e){var t,r=(t=(0,a.x)(function(e){var t;return(null==(t=e.window.location)?void 0:t.hostname)||""},{fallback:function(){return""}}),{url:"https://www.algolia.com/?utm_source=react-instantsearch&utm_medium=website&utm_content=".concat(t,"&utm_campaign=poweredby")}).url;return i.createElement(u,(0,n._)({},e,{url:r}))}},90228:(e,t,r)=>{"use strict";r.d(t,{g:()=>S});var n=r(43363),i=r(22288),a=r(12115),s=r(39310),o=r(2163),c=r(35170),u=r(52053),l=r(25151),f=r(51248),d=(0,c.V)({name:"sort-by",connector:!0});function h(e){return"strategy"in e&&void 0!==e.strategy}function m(e){return h(e)?e.strategy:e.value}function p(e,t){if(!t)return!1;var r=e[t];return void 0!==r&&h(r)}var g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.l;(0,u.t)(e,d());var r={};return function(n){var i=n||{},a=i.items,c=i.transformItems,u=void 0===c?function(e){return e}:c;if(!Array.isArray(a))throw Error(d("The `items` option expects an array of objects."));var f={};return a.forEach(function(e,t){var r="value"in e&&void 0!==e.value,n="strategy"in e&&void 0!==e.strategy;if(r&&n)throw Error(d("Item at index ".concat(t,' cannot have both "value" and "strategy" properties.')));if(!r&&!n)throw Error(d("Item at index ".concat(t,' must have either a "value" or "strategy" property.')));f[m(e)]=e}),r.itemsLookup=f,{$$type:"ais.sortBy",init:function(t){var r=t.instantSearchInstance;if(a.some(function(e){return"strategy"in e&&e.strategy})&&!r.compositionID)throw Error(d('Sorting strategies can only be used in composition mode. Please provide a "compositionID" to your InstantSearch instance.'));var n=this.getWidgetRenderState(t),i=n.currentRefinement;(0,l.I)(a,function(e){return m(e)===i}),e((0,o._)((0,s._)({},n),{instantSearchInstance:r}),!0)},render:function(t){var r=t.instantSearchInstance;e((0,o._)((0,s._)({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!1)},dispose:function(e){var n=e.state;return(t(),r.isUsingComposition&&n.sortBy&&(n=n.setQueryParameter("sortBy",void 0)),r.initialValue&&n.index!==r.initialValue)?n.setIndex(r.initialValue):n},getRenderState:function(e,t){return(0,o._)((0,s._)({},e),{sortBy:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t=e.results,i=e.helper,s=e.state,o=e.parent,c=e.instantSearchInstance;!r.initialValue&&o&&(r.initialValue=o.getIndexName()),r.refine||(r.isUsingComposition=!!(null==c?void 0:c.compositionID),r.refine=function(e){var t=r.itemsLookup[e];t&&h(t)?i.setQueryParameter("sortBy",t.strategy).search():i.setQueryParameter("sortBy",void 0).setIndex(e).search()});var l=u(a,{results:t}).map(function(e){return{label:e.label,value:m(e)}}),f=r.isUsingComposition&&p(r.itemsLookup,s.sortBy)?s.sortBy:s.index,d=!t||0===t.nbHits;return{currentRefinement:f,options:l,refine:r.refine,hasNoResults:d,canRefine:!d&&a.length>0,widgetParams:n}},getWidgetUiState:function(e,t){var n=t.searchParameters,i=r.isUsingComposition&&p(r.itemsLookup,n.sortBy)?n.sortBy:n.index;return(0,o._)((0,s._)({},e),{sortBy:i!==r.initialValue?i:void 0})},getWidgetSearchParameters:function(e,t){var n=t.uiState,i=(!n.sortBy||Object.prototype.hasOwnProperty.call(r.itemsLookup,n.sortBy)?n.sortBy:void 0)||r.initialValue||e.index;if(p(r.itemsLookup,i)){var a=r.itemsLookup[i];return e.setQueryParameter("sortBy",a.strategy)}return e.setQueryParameter("index",i)}}}},v=r(41075),y=r(46164),b=r(67429);function R(e){var t=e.items,r=e.value,s=e.onChange,o=void 0===s?function(){}:s,c=e.classNames,u=void 0===c?{}:c,l=(0,i._)(e,["items","value","onChange","classNames"]);return a.createElement("div",(0,y._)((0,n._)({},l),{className:(0,b.cx)("ais-SortBy",u.root,l.className)}),a.createElement("select",{className:(0,b.cx)("ais-SortBy-select",u.select),onChange:function(e){return o(e.target.value)},value:r,"aria-label":"Sort results by"},t.map(function(e){return a.createElement("option",{className:(0,b.cx)("ais-SortBy-option",u.option),key:e.value,value:e.value},e.label)})))}function S(e){var t,r,s=e.items,o=e.transformItems,c=(0,i._)(e,["items","transformItems"]),u=(t={items:s,transformItems:o}
1,r={$$widgetType:"ais.sortBy"},(0,v.Z)(g,t,r)),l=u.currentRefinement,f=u.options,d=u.refine;return a.createElement(R,(0,n._)({},c,{items:f,value:l,onChange:d}))}},90953:(e,t,r)=>{"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{_:()=>n})},91317:(e,t,r)=>{"use strict";function n(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}r.d(t,{_:()=>n})},92579:e=>{"use strict";e.exports=function(e){return Array.isArray(e)?e.filter(Boolean):[]}},93008:function(e){e.exports=function(){"use strict";function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function t(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?e(Object(n),!0).forEach(function(e){var r;r=n[e],e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function r(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,i=!1,a=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}return r}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e){return function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(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 a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};return{get:function(r,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},a=JSON.stringify(r);if(a in t)return Promise.resolve(e.serializable?JSON.parse(t[a]):t[a]);var s=n(),o=i&&i.miss||function(){return Promise.resolve()};return s.then(function(e){return o(e)}).then(function(){return s})},set:function(r,n){return t[JSON.stringify(r)]=e.serializable?JSON.stringify(n):n,Promise.resolve(n)},delete:function(e){return delete t[JSON.stringify(e)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function s(e,t,r){var n={"x-algolia-api-key":r,"x-algolia-application-id":t};return{headers:function(){return e===f.WithinHeaders?n:{}},queryParameters:function(){return e===f.WithinQueryParameters?n:{}}}}function o(e){var t=0;return e(function r(){return t++,new Promise(function(n){setTimeout(function(){n(e(r))},Math.min(100*t,1e3))})})}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e,t){return Promise.resolve()};return Object.assign(e,{wait:function(r){return c(e.then(function(e){return Promise.all([t(e,r),e])}).then(function(e){return e[1]}))}})}function u(e,t){return t&&Object.keys(t).forEach(function(r){e[r]=t[r](e)}),e}function l(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=0;return e.replace(/%s/g,function(){return encodeURIComponent(r[i++])})}var f={WithinQueryParameters:0,WithinHeaders:1};function d(e,t){var r=e||{},n=r.data||{};return Object.keys(r).forEach(function(e){-1===["timeout","headers","queryParameters","data","cacheable"].indexOf(e)&&(n[e]=r[e])}),{data:Object.entries(n).length>0?n:void 0,timeout:r.timeout||t,headers:r.headers||{},queryParameters:r.queryParameters||{},cacheable:r.cacheable}}function h(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;
1return t(t({},e),{},{status:r,lastUpdate:Date.now()})}function m(e){return"string"==typeof e?{protocol:"https",url:e,accept:3}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||3}}var p="DELETE",g="POST";function v(e,r,n,a){var s,o,c,u=[],l=function(e,r){if("GET"!==e.method&&(void 0!==e.data||void 0!==r.data))return JSON.stringify(Array.isArray(e.data)?e.data:t(t({},e.data),r.data))}(n,a),f=(s=t(t({},e.headers),a.headers),o={},Object.keys(s).forEach(function(e){var t=s[e];o[e.toLowerCase()]=t}),o),d=n.method,p="GET"!==n.method?{}:t(t({},n.data),a.data),g=t(t(t({"x-algolia-agent":e.userAgent.value},e.queryParameters),p),a.queryParameters),v=0,y=function t(r,i){var s,o,c,m,p=r.pop();if(void 0===p)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact [email protected].",transporterStackTrace:R(u)};var y={data:l,headers:f,method:d,url:(s=p,o=n.path,c=b(g),m="".concat(s.protocol,"://").concat(s.url,"/").concat("/"===o.charAt(0)?o.substr(1):o),c.length&&(m+="?".concat(c)),m),connectTimeout:i(v,e.timeouts.connect),responseTimeout:i(v,a.timeout)},_=function(e){var t={request:y,response:e,host:p,triesLeft:r.length};return u.push(t),t},w={onSuccess:function(e){try{return JSON.parse(e.content)}catch(t){throw{name:"DeserializationError",message:t.message,response:e}}},onRetry:function(n){var a=_(n);return n.isTimedOut&&v++,Promise.all([e.logger.info("Retryable failure",S(a)),e.hostsCache.set(p,h(p,n.isTimedOut?3:2))]).then(function(){return t(r,i)})},onFail:function(e){throw _(e),function(e,t){var r=e.content,n=e.status,i=r;try{i=JSON.parse(r).message}catch(e){}return{name:"ApiError",message:i,status:n,transporterStackTrace:t}}(e,R(u))}};return e.requester.send(y).then(function(e){var t,r,n;return(t=e.status,e.isTimedOut||(r=e.isTimedOut,n=e.status,!r&&0==~~n)||2!=~~(t/100)&&4!=~~(t/100))?w.onRetry(e):2==~~(e.status/100)?w.onSuccess(e):w.onFail(e)})};return(c=e.hostsCache,Promise.all(r.map(function(e){return c.get(e,function(){return Promise.resolve(h(e))})})).then(function(e){var t=e.filter(function(e){return 1===e.status||Date.now()-e.lastUpdate>12e4}),n=e.filter(function(e){return 3===e.status&&Date.now()-e.lastUpdate<=12e4}),a=[].concat(i(t),i(n));return{getTimeout:function(e,t){return(0===n.length&&0===e?1:n.length+3+e)*t},statelessHosts:a.length>0?a.map(function(e){return m(e)}):r}})).then(function(e){return y(i(e.statelessHosts).reverse(),e.getTimeout)})}function y(e){var t=e.hostsCache,r=e.logger,i=e.requester,a=e.requestsCache,s=e.responsesCache,o=e.timeouts,c=e.userAgent,u=e.hosts,l=e.queryParameters,f={hostsCache:t,logger:r,requester:i,requestsCache:a,responsesCache:s,timeouts:o,userAgent:c,headers:e.headers,queryParameters:l,hosts:u.map(function(e){return m(e)}),read:function(e,t){var r=d(t,f.timeouts.read),i=function(){return v(f,f.hosts.filter(function(e){return 0!=(1&e.accept)}),e,r)};if(!0!==(void 0!==r.cacheable?r.cacheable:e.cacheable))return i();var a={request:e,mappedRequestOptions:r,transporter:{queryParameters:f.queryParameters,headers:f.headers}};return f.responsesCache.get(a,function(){return f.requestsCache.get(a,function(){return f.requestsCache.set(a,i()).then(function(e){return Promise.all([f.requestsCache.delete(a),e])},function(e){return Promise.all([f.requestsCache.delete(a),Promise.reject(e)])}).then(function(e){var t=n(e,2);return t[0],t[1]})})},{miss:function(e){return f.responsesCache.set(a,e)}})},write:function(e,t){return v(f,f.hosts.filter(function(e){return 0!=(2&e.accept)}),e,d(t,f.timeouts.write))}};return f}function b(e){return Object.keys(e).map(function(t){var r;return l("%s=%s",t,(r=e[t],"[object Object]"===Object.prototype.toString.call(r)||"[object Array]"===Object.prototype.toString.call(r)?JSON.stringify(e[t]):e[t]))}).join("&")}function R(e){return e.map(function(e){return S(e)})}function S(e){var r=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return t(t({},e),{},{request:t(t({},e.request),{},{headers:t(t({},e.request.headers),r)})})}var _=function(e){return function(t,r){return e.transporter.write({method:g,path:"2/abtests",data:t},r)}},w=function(e){return function(t,r){return e.transporter.write({method:p,path:l("2/abtests/%s",t)},r)}},x=function(e){return function(t,r){return e.transporter.read({method:"GET",path:l("2/abtests/%s",t)},r)}},P=function(e){return function(t){return e.transporter.read({method:"GET",path:"2/abtests"},t)}},j=function(e){return function(t,r){return e.transporter.write({method:g,path:l("2/abtests/%s/stop",t)},r)}},O=function(e){return function(t){return e.transporter.read({method:"GET",path:"1/strategies/personalization"},t)}},E=function(e){return function(t,r){return e.transporter.write({method:g,path:"1/strategies/personalization",data:t},r)}};function I(e){return function t(r){return e.request(r).then(function(n){if(void 0!==e.batch&&e.batch(n.hits),!e.shouldStop(n))return n.cursor?t({cursor:n.cursor}):t({page:(r.page||0)+1})})}({})}var F=function(e){return function(n,i){var a=i||{},s=a.queryParameters,u=r(a,["queryParameters"]),l=t({acl:n},void 0!==s?{queryParameters:s}:{});return c(e.transporter.write({method:g,path:"1/keys",data:l},u),function(t,r){return o(function(n){return W(e)(t.key,r).catch(function(e){if(404!==e.status)throw e;return n()})})})}},T=function(e){return function(t,r,n){var i=d(n);return i.queryParameters["X-Algolia-User-ID"]=t,e.transporter.write({method:g,path:"1/clusters/mapping",data:{cluster:r}},i)}},k=function(e){return function(t,r,n){return e.transporter.write({method:g,path:"1/clusters/mapping/batch",data:{users:t,cluster:r}},n)}},A=function(e){return function(t,r){return c(e.transporter.write({method:g,path:l("/1/dictionaries/%s/batch",t),data:{clearExistingDictionaryEntries:!0,requests:{action:"addEntry",body:[]}}},r),function(t,r){return ed(e)(t.taskID,r)})}},N=function(e){return function(t,r,n){return c(e.transporter.write({method:g,path:l("1/indexes/%s/operation",t),data:{operation:"copy",destination:r}},n),function(r,n){return K(e)(t,{methods:{waitTask:eX}}).waitTask(r.taskID,n)})}},C=function(e){return function(r,n,i){return N(e)(r,n,t(t({},i),{},{scope:[e0.Rules]}))}},D=function(e){return function(r,n,i){return N(e)(r,n,t(t({},i),{},{scope:[e0.Settings]}))}},H=function(e){return function(r,n,i){return N(e)(r,n,t(t({},i),{},{scope:[e0.Synonyms]}))}},L=function(e){return function(t,r){return"GET"===t.method?e.transporter.read(t,r):e.transporter.write(t,r)}},M=function(e){return function(t,r){return c(e.transporter.write({method:p,path:l("1/keys/%s",t)},r),function(r,n){return o(function(r){return W(e)(t,n).then(r).catch(function(e){if(404!==e.status)throw e})})})}},q=function(e){return function(t,r,n){var i=r.map(function(e){return{action:"deleteEntry",body:{objectID:e}}});return c(e.transporter.write({method:g,path:l("/1/dictionaries/%s/batch",t),data:{clearExistingDictionaryEntries:!1,requests:i}},n),function(t,r){return ed(e)(t.taskID,r)})}},W=function(e){return function(t,r){return e.transporter.read({method:"GET",path:l("1/keys/%s",t)},r)}},U=function(e){return function(t,r){return e.transporter.read({method:"GET",path:l("1/task/%s",t.toString())},r)}},Q=function(e){return function(t){return e.transporter.read({method:"GET",path:"/1/dictionaries/*/settings"},t)}},$=function(e){return function(t){return e.transporter.read({method:"GET",path:"1/logs"},t)}},B=function(e){return function(t){return e.transporter.read({method:"GET",path:"1/clusters/mapping/top"},t)}},V=function(e){return function(t,r){return e.transporter.read({method:"GET",path:l("1/clusters/mapping/%s",t)},r)}},z=function(e){return function(t){var n=t||{},i=n.retrieveMappings,a=r(n,["retrieveMappings"]);return!0===i&&(a.getClusters=!0),e.transporter.read({method:"GET",path:"1/clusters/mapping/pending"},a)}},K=function(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u({transporter:e.transporter,appId:e.appId,indexName:t},r.methods)}},J=function(e){return function(t){return e.transporter.read({method:"GET",path:"1/keys"},t)}},G=function(e){return function(t){return e.transporter.read({method:"GET",path:"1/clusters"},t)}},Z=function(e){return function(t){return e.transporter.read({method:"GET",path:"1/indexes"},t)}},X=function(e){return function(t){return e.transporter.read({method:"GET",path:"1/clusters/mapping"},t)}},Y=function(e){return function(t,r,n){return c(e.transporter.write({method:g,path:l("1/indexes/%s/operation",t),data:{operation:"move",destination:r}},n),function(r,n){return K(e)(t,{methods:{waitTask:eX}}).waitTask(r.taskID,n)})}},ee=function(e){return function(t,r){return c(e.transporter.write({method:g,path:"1/indexes/*/batch",data:{requests:t}},r),function(t,r){return Promise.all(Object.keys(t.taskID).map(function(n){return K(e)(n,{methods:{waitTask:eX}}).waitTask(t.taskID[n],r)}))})}},et=function(e){return function(t,r){return e.transporter.read({method:g,path:"1/indexes/*/objects",data:{requests:t}},r)}},er=function(e){return function(r,n){var i=r.map(function(e){return t(t
1({},e),{},{params:b(e.params||{})})});return e.transporter.read({method:g,path:"1/indexes/*/queries",data:{requests:i},cacheable:!0},n)}},en=function(e){return function(n,i){return Promise.all(n.map(function(n){var a=n.params,s=a.facetName,o=a.facetQuery,c=r(a,["facetName","facetQuery"]);return K(e)(n.indexName,{methods:{searchForFacetValues:eK}}).searchForFacetValues(s,o,t(t({},i),c))}))}},ei=function(e){return function(t,r){var n=d(r);return n.queryParameters["X-Algolia-User-ID"]=t,e.transporter.write({method:p,path:"1/clusters/mapping"},n)}},ea=function(e){return function(t,r,n){var i=r.map(function(e){return{action:"addEntry",body:e}});return c(e.transporter.write({method:g,path:l("/1/dictionaries/%s/batch",t),data:{clearExistingDictionaryEntries:!0,requests:i}},n),function(t,r){return ed(e)(t.taskID,r)})}},es=function(e){return function(t,r){return c(e.transporter.write({method:g,path:l("1/keys/%s/restore",t)},r),function(r,n){return o(function(r){return W(e)(t,n).catch(function(e){if(404!==e.status)throw e;return r()})})})}},eo=function(e){return function(t,r,n){var i=r.map(function(e){return{action:"addEntry",body:e}});return c(e.transporter.write({method:g,path:l("/1/dictionaries/%s/batch",t),data:{clearExistingDictionaryEntries:!1,requests:i}},n),function(t,r){return ed(e)(t.taskID,r)})}},ec=function(e){return function(t,r,n){return e.transporter.read({method:g,path:l("/1/dictionaries/%s/search",t),data:{query:r},cacheable:!0},n)}},eu=function(e){return function(t,r){return e.transporter.read({method:g,path:"1/clusters/mapping/search",data:{query:t}},r)}},el=function(e){return function(t,r){return c(e.transporter.write({method:"PUT",path:"/1/dictionaries/*/settings",data:t},r),function(t,r){return ed(e)(t.taskID,r)})}},ef=function(e){return function(t,n){var i=Object.assign({},n),a=n||{},s=a.queryParameters,u=r(a,["queryParameters"]),f=["acl","indexes","referers","restrictSources","queryParameters","description","maxQueriesPerIPPerHour","maxHitsPerQuery"];return c(e.transporter.write({method:"PUT",path:l("1/keys/%s",t),data:s?{queryParameters:s}:{}},u),function(r,n){return o(function(r){return W(e)(t,n).then(function(e){return Object.keys(i).filter(function(e){return -1!==f.indexOf(e)}).every(function(t){if(Array.isArray(e[t])&&Array.isArray(i[t])){var r=e[t];return r.length===i[t].length&&r.every(function(e,r){return e===i[t][r]})}return e[t]===i[t]})?Promise.resolve():r()})})})}},ed=function(e){return function(t,r){return o(function(n){return U(e)(t,r).then(function(e){return"published"!==e.status?n():void 0})})}},eh=function(e){return function(t,r){return c(e.transporter.write({method:g,path:l("1/indexes/%s/batch",e.indexName),data:{requests:t}},r),function(t,r){return eX(e)(t.taskID,r)})}},em=function(e){return function(r){return I(t(t({shouldStop:function(e){return void 0===e.cursor}},r),{},{request:function(t){return e.transporter.read({method:g,path:l("1/indexes/%s/browse",e.indexName),data:t},r)}}))}},ep=function(e){return function(r){var n=t({hitsPerPage:1e3},r);return I(t(t({shouldStop:function(e){return e.hits.length<n.hitsPerPage}},n),{},{request:function(r){return eJ(e)("",t(t({},n),r)).then(function(e){return t(t({},e),{},{hits:e.hits.map(function(e){return delete e._highlightResult,e})})})}}))}},eg=function(e){return function(r){var n=t({hitsPerPage:1e3},r);return I(t(t({shouldStop:function(e){return e.hits.length<n.hitsPerPage}},n),{},{request:function(r){return eG(e)("",t(t({},n),r)).then(function(e){return t(t({},e),{},{hits:e.hits.map(function(e){return delete e._highlightResult,e})})})}}))}},ev=function(e){return function(t,n,i){var a=i||{},s=a.batchSize,o=r(a,["batchSize"]),u={taskIDs:[],objectIDs:[]};return c(function r(){var i,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,c=[];for(i=a;i<t.length&&(c.push(t[i]),c.length!==(s||1e3));i++);return 0===c.length?Promise.resolve(u):eh(e)(c.map(function(e){return{action:n,body:e}}),o).then(function(e){return u.objectIDs=u.objectIDs.concat(e.objectIDs),u.taskIDs.push(e.taskID),r(++i)})}(),function(t,r){return Promise.all(t.taskIDs.map(function(t){return eX(e)(t,r)}))})}},ey=function(e){return function(t){return c(e.transporter.write({method:g,path:l("1/indexes/%s/clear",e.indexName)},t),function(t,r){return eX(e)(t.taskID,r)})}},eb=function(e){return function(t){var n=t||{},i=n.forwardToReplicas,a=d(r(n,["forwardToReplicas"]));return i&&(a.queryParameters.forwardToReplicas=1),c(e.transporter.write({method:g,path:l("1/indexes/%s/rules/clear",e.indexName)},a),function(t,r){return eX(e)(t.taskID,r)})}},eR=function(e){return function(t){var n=t||{},i=n.forwardToReplicas,a=d(r(n,["forwardToReplicas"]));return i&&(a.queryParameters.forwardToReplicas=1),c(e.transporter.write({method:g,path:l("1/indexes/%s/synonyms/clear",e.indexName)},a),function(t,r){return eX(e)(t.taskID,r)})}},eS=function(e){return function(t,r){return c(e.transporter.write({method:g,path:l("1/indexes/%s/deleteByQuery",e.indexName),data:t},r),function(t,r){return eX(e)(t.taskID,r)})}},e_=function(e){return function(t){return c(e.transporter.write({method:p,path:l("1/indexes/%s",e.indexName)},t),function(t,r){return eX(e)(t.taskID,r)})}},ew=function(e){return function(t,r){return c(ex(e)([t],r).then(function(e){return{taskID:e.taskIDs[0]}}),function(t,r){return eX(e)(t.taskID,r)})}},ex=function(e){return function(t,r){var n=t.map(function(e){return{objectID:e}});return ev(e)(n,eY.DeleteObject,r)}},eP=function(e){return function(t,n){var i=n||{},a=i.forwardToReplicas,s=d(r(i,["forwardToReplicas"]));return a&&(s.queryParameters.forwardToReplicas=1),c(e.transporter.write({method:p,path:l("1/indexes/%s/rules/%s",e.indexName,t)},s),function(t,r){return eX(e)(t.taskID,r)})}},ej=function(e){return function(t,n){var i=n||{},a=i.forwardToReplicas,s=d(r(i,["forwardToReplicas"]));return a&&(s.queryParameters.forwardToReplicas=1),c(e.transporter.write({method:p,path:l("1/indexes/%s/synonyms/%s",e.indexName,t)},s),function(t,r){return eX(e)(t.taskID,r)})}},eO=function(e){return function(t){return eN(e)(t).then(function(){return!0}).catch(function(e){if(404!==e.status)throw e;return!1})}},eE=function(e){return function(t,r,n){return e.transporter.read({method:g,path:l("1/answers/%s/prediction",e.indexName),data:{query:t,queryLanguages:r},cacheable:!0},n)}},eI=function(e){return function(i,a){var s=a||{},o=s.query,c=s.paginate,u=r(s,["query","paginate"]),l=0;
1return function r(){return ez(e)(o||"",t(t({},u),{},{page:l})).then(function(e){for(var t=0,a=Object.entries(e.hits);t<a.length;t++){var s=n(a[t],2),o=s[0],u=s[1];if(i(u))return{object:u,position:parseInt(o,10),page:l}}if(l++,!1===c||l>=e.nbPages)throw{name:"ObjectNotFoundError",message:"Object not found."};return r()})}()}},eF=function(e){return function(t,r){return e.transporter.read({method:"GET",path:l("1/indexes/%s/%s",e.indexName,t)},r)}},eT=function(){return function(e,t){for(var r=0,i=Object.entries(e.hits);r<i.length;r++){var a=n(i[r],2),s=a[0];if(a[1].objectID===t)return parseInt(s,10)}return -1}},ek=function(e){return function(n,i){var a=i||{},s=a.attributesToRetrieve,o=r(a,["attributesToRetrieve"]),c=n.map(function(r){return t({indexName:e.indexName,objectID:r},s?{attributesToRetrieve:s}:{})});return e.transporter.read({method:g,path:"1/indexes/*/objects",data:{requests:c}},o)}},eA=function(e){return function(t,r){return e.transporter.read({method:"GET",path:l("1/indexes/%s/rules/%s",e.indexName,t)},r)}},eN=function(e){return function(t){return e.transporter.read({method:"GET",path:l("1/indexes/%s/settings",e.indexName),data:{getVersion:2}},t)}},eC=function(e){return function(t,r){return e.transporter.read({method:"GET",path:l("1/indexes/%s/synonyms/%s",e.indexName,t)},r)}},eD=function(e){return function(t,r){return c(eH(e)([t],r).then(function(e){return{objectID:e.objectIDs[0],taskID:e.taskIDs[0]}}),function(t,r){return eX(e)(t.taskID,r)})}},eH=function(e){return function(t,n){var i=n||{},a=i.createIfNotExists,s=r(i,["createIfNotExists"]),o=a?eY.PartialUpdateObject:eY.PartialUpdateObjectNoCreate;return ev(e)(t,o,s)}},eL=function(e){return function(a,s){var o=s||{},u=o.safe,f=o.autoGenerateObjectIDIfNotExist,d=o.batchSize,h=r(o,["safe","autoGenerateObjectIDIfNotExist","batchSize"]),m=function(t,r,n,i){return c(e.transporter.write({method:g,path:l("1/indexes/%s/operation",t),data:{operation:n,destination:r}},i),function(t,r){return eX(e)(t.taskID,r)})},p=Math.random().toString(36).substring(7),v="".concat(e.indexName,"_tmp_").concat(p),y=eU({appId:e.appId,transporter:e.transporter,indexName:v}),b=[],R=m(e.indexName,v,"copy",t(t({},h),{},{scope:["settings","synonyms","rules"]}));return b.push(R),c((u?R.wait(h):R).then(function(){var e=y(a,t(t({},h),{},{autoGenerateObjectIDIfNotExist:f,batchSize:d}));return b.push(e),u?e.wait(h):e}).then(function(){var t=m(v,e.indexName,"move",h);return b.push(t),u?t.wait(h):t}).then(function(){return Promise.all(b)}).then(function(e){var t=n(e,3),r=t[0],a=t[1],s=t[2];return{objectIDs:a.objectIDs,taskIDs:[r.taskID].concat(i(a.taskIDs),[s.taskID])}}),function(e,t){return Promise.all(b.map(function(e){return e.wait(t)}))})}},eM=function(e){return function(r,n){return e$(e)(r,t(t({},n),{},{clearExistingRules:!0}))}},eq=function(e){return function(r,n){return eV(e)(r,t(t({},n),{},{clearExistingSynonyms:!0}))}},eW=function(e){return function(t,r){return c(eU(e)([t],r).then(function(e){return{objectID:e.objectIDs[0],taskID:e.taskIDs[0]}}),function(t,r){return eX(e)(t.taskID,r)})}},eU=function(e){return function(t,n){var i=n||{},a=i.autoGenerateObjectIDIfNotExist,s=r(i,["autoGenerateObjectIDIfNotExist"]),o=a?eY.AddObject:eY.UpdateObject;if(o===eY.UpdateObject){var u=!0,l=!1,f=void 0;try{for(var d,h=t[Symbol.iterator]();!(u=(d=h.next()).done);u=!0)if(void 0===d.value.objectID)return c(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){l=!0,f=e}finally{try{u||null==h.return||h.return()}finally{if(l)throw f}}}return ev(e)(t,o,s)}},eQ=function(e){return function(t,r){return e$(e)([t],r)}},e$=function(e){return function(t,n){var i=n||{},a=i.forwardToReplicas,s=i.clearExistingRules,o=d(r(i,["forwardToReplicas","clearExistingRules"]));return a&&(o.queryParameters.forwardToReplicas=1),s&&(o.queryParameters.clearExistingRules=1),c(e.transporter.write({method:g,path:l("1/indexes/%s/rules/batch",e.indexName),data:t},o),function(t,r){return eX(e)(t.taskID,r)})}},eB=function(e){return function(t,r){return eV(e)([t],r)}},eV=function(e){return function(t,n){var i=n||{},a=i.forwardToReplicas,s=i.clearExistingSynonyms,o=i.replaceExistingSynonyms,u=d(r(i,["forwardToReplicas","clearExistingSynonyms","replaceExistingSynonyms"]));return a&&(u.queryParameters.forwardToReplicas=1),(o||s)&&(u.queryParameters.replaceExistingSynonyms=1),c(e.transporter.write({method:g,path:l("1/indexes/%s/synonyms/batch",e.indexName),data:t},u),function(t,r){return eX(e)(t.taskID,r)})}},ez=function(e){return function(t,r){return e.transporter.read({method:g,path:l("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},r)}},eK=function(e){return function(t,r,n){return e.transporter.read({method:g,path:l("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:r},cacheable:!0},n)}},eJ=function(e){return function(t,r){return e.transporter.read({method:g,path:l("1/indexes/%s/rules/search",e.indexName),data:{query:t}},r)}},eG=function(e){return function(t,r){return e.transporter.read({method:g,path:l("1/indexes/%s/synonyms/search",e.indexName),data:{query:t}},r)}},eZ=function(e){return function(t,n){var i=n||{},a=i.forwardToReplicas,s=d(r(i,["forwardToReplicas"]));return a&&(s.queryParameters.forwardToReplicas=1),c(e.transporter.write({method:"PUT",path:l("1/indexes/%s/settings",e.indexName),data:t},s),function(t,r){return eX(e)(t.taskID,r)})}},eX=function(e){return function(t,r){return o(function(n){return(function(t,r){return e.transporter.read({method:"GET",path:l("1/indexes/%s/task/%s",e.indexName,t.toString())},r)})(t,r).then(function(e){return"published"!==e.status?n():void 0})})}}
1,eY={AddObject:"addObject",UpdateObject:"updateObject",PartialUpdateObject:"partialUpdateObject",PartialUpdateObjectNoCreate:"partialUpdateObjectNoCreate",DeleteObject:"deleteObject"},e0={Settings:"settings",Synonyms:"synonyms",Rules:"rules"},e1=function(e){return function(r,n){var i=r.map(function(e){return t(t({},e),{},{threshold:e.threshold||0})});return e.transporter.read({method:g,path:"1/indexes/*/recommendations",data:{requests:i},cacheable:!0},n)}},e2=function(e){return function(r,n){return e1(e)(r.map(function(e){return t(t({},e),{},{fallbackParameters:{},model:"bought-together"})}),n)}},e3=function(e){return function(r,n){return e1(e)(r.map(function(e){return t(t({},e),{},{model:"related-products"})}),n)}},e4=function(e){return function(r,n){var i=r.map(function(e){return t(t({},e),{},{model:"trending-facets",threshold:e.threshold||0})});return e.transporter.read({method:g,path:"1/indexes/*/recommendations",data:{requests:i},cacheable:!0},n)}},e5=function(e){return function(r,n){var i=r.map(function(e){return t(t({},e),{},{model:"trending-items",threshold:e.threshold||0})});return e.transporter.read({method:g,path:"1/indexes/*/recommendations",data:{requests:i},cacheable:!0},n)}},e8=function(e){return function(r,n){return e1(e)(r.map(function(e){return t(t({},e),{},{model:"looking-similar"})}),n)}},e6=function(e){return function(r,n){var i=r.map(function(e){return t(t({},e),{},{model:"recommended-for-you",threshold:e.threshold||0})});return e.transporter.read({method:g,path:"1/indexes/*/recommendations",data:{requests:i},cacheable:!0},n)}};function e7(e,r,o){var c,l,d,h,m,p,g,v,b,R,S,I,ev={appId:e,apiKey:r,timeouts:{connect:1,read:2,write:30},requester:{send:function(e){return new Promise(function(t){var r=new XMLHttpRequest;r.open(e.method,e.url,!0),Object.keys(e.headers).forEach(function(t){return r.setRequestHeader(t,e.headers[t])});var n,i=function(e,n){return setTimeout(function(){r.abort(),t({status:0,content:n,isTimedOut:!0})},1e3*e)},a=i(e.connectTimeout,"Connection timeout");r.onreadystatechange=function(){r.readyState>r.OPENED&&void 0===n&&(clearTimeout(a),n=i(e.responseTimeout,"Socket timeout"))},r.onerror=function(){0===r.status&&(clearTimeout(a),clearTimeout(n),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=function(){clearTimeout(a),clearTimeout(n),t({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)})}},logger:{debug:function(e,t){return Promise.resolve()},info:function(e,t){return Promise.resolve()},error:function(e,t){return console.error(e,t),Promise.resolve()}},responsesCache:a(),requestsCache:a({serializable:!1}),hostsCache:function e(t){var r=i(t.caches),a=r.shift();return void 0===a?{get:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return t().then(function(e){return Promise.all([e,r.miss(e)])}).then(function(e){return n(e,1)[0]})},set:function(e,t){return Promise.resolve(t)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return a.get(t,n,i).catch(function(){return e({caches:r}).get(t,n,i)})},set:function(t,n){return a.set(t,n).catch(function(){return e({caches:r}).set(t,n)})},delete:function(t){return a.delete(t).catch(function(){return e({caches:r}).delete(t)})},clear:function(){return a.clear().catch(function(){return e({caches:r}).clear()})}}}({caches:[(c={key:"".concat("4.23.3","-").concat(e)},d="algoliasearch-client-js-".concat(c.key),h=function(){return void 0===l&&(l=c.localStorage||window.localStorage),l},m=function(){return JSON.parse(h().getItem(d)||"{}")},p=function(e){h().setItem(d,JSON.stringify(e))},g=function(){var e=c.timeToLive?1e3*c.timeToLive:null,t=Object.fromEntries(Object.entries(m()).filter(function(e){return void 0!==n(e,2)[1].timestamp}));p(t),e&&p(Object.fromEntries(Object.entries(t).filter(function(t){var r=n(t,2)[1],i=(new Date).getTime();return!(r.timestamp+e<i)})))},{get:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then(function(){g();var t=JSON.stringify(e);return m()[t]}).then(function(e){return Promise.all([e?e.value:t(),void 0!==e])}).then(function(e){var t=n(e,2),i=t[0];return Promise.all([i,t[1]||r.miss(i)])}).then(function(e){return n(e,1)[0]})},set:function(e,t){return Promise.resolve().then(function(){var r=m();return r[JSON.stringify(e)]={timestamp:(new Date).getTime(),value:t},h().setItem(d,JSON.stringify(r)),t})},delete:function(e){return Promise.resolve().then(function(){var t=m();delete t[JSON.stringify(e)],h().setItem(d,JSON.stringify(t))})},clear:function(){return Promise.resolve().then(function(){h().removeItem(d)})}}),a()]}),userAgent:(v={value:"Algolia for JavaScript (".concat("4.23.3",")"),add:function(e){var t="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return -1===v.value.indexOf(t)&&(v.value="".concat(v.value).concat(t)),v}}).add({segment:"Browser"})},eY=t(t({},ev),o),e0=function(){return function(e){var r,n,i,a;return n=(r=t(t(t({},ev),e),{},{methods:{getPersonalizationStrategy:O,setPersonalizationStrategy:E}})).region||"us",i=s(f.WithinHeaders,r.appId,r.apiKey),a=y(t(t({hosts:[{url:"personalization.".concat(n,".algolia.com")}]},r),{},{headers:t(t(t({},i.headers()),{"content-type":"application/json"}),r.headers),queryParameters:t(t({},i.queryParameters()),r.queryParameters)})),u({appId:r.appId,transporter:a},r.methods)}};return R=(b=t(t({},eY),{},{methods:{search:er,searchForFacetValues:en,multipleBatch:ee,multipleGetObjects:et,multipleQueries:er,copyIndex:N,copySettings:D,copySynonyms:H,copyRules:C,moveIndex:Y,listIndices:Z,getLogs:$,listCluster
1s:G,multipleSearchForFacetValues:en,getApiKey:W,addApiKey:F,listApiKeys:J,updateApiKey:ef,deleteApiKey:M,restoreApiKey:es,assignUserID:T,assignUserIDs:k,getUserID:V,searchUserIDs:eu,listUserIDs:X,getTopUserIDs:B,removeUserID:ei,hasPendingMappings:z,clearDictionaryEntries:A,deleteDictionaryEntries:q,getDictionarySettings:Q,getAppTask:U,replaceDictionaryEntries:ea,saveDictionaryEntries:eo,searchDictionaryEntries:ec,setDictionarySettings:el,waitAppTask:ed,customRequest:L,initIndex:function(e){return function(t){return K(e)(t,{methods:{batch:eh,delete:e_,findAnswers:eE,getObject:eF,getObjects:ek,saveObject:eW,saveObjects:eU,search:ez,searchForFacetValues:eK,waitTask:eX,setSettings:eZ,getSettings:eN,partialUpdateObject:eD,partialUpdateObjects:eH,deleteObject:ew,deleteObjects:ex,deleteBy:eS,clearObjects:ey,browseObjects:em,getObjectPosition:eT,findObject:eI,exists:eO,saveSynonym:eB,saveSynonyms:eV,getSynonym:eC,searchSynonyms:eG,browseSynonyms:eg,deleteSynonym:ej,clearSynonyms:eR,replaceAllObjects:eL,replaceAllSynonyms:eq,searchRules:eJ,getRule:eA,deleteRule:eP,saveRule:eQ,saveRules:e$,replaceAllRules:eM,browseRules:ep,clearRules:eb}})}},initAnalytics:function(){return function(e){var r,n,i,a;return n=(r=t(t(t({},ev),e),{},{methods:{addABTest:_,getABTest:x,getABTests:P,stopABTest:j,deleteABTest:w}})).region||"us",i=s(f.WithinHeaders,r.appId,r.apiKey),a=y(t(t({hosts:[{url:"analytics.".concat(n,".algolia.com")}]},r),{},{headers:t(t(t({},i.headers()),{"content-type":"application/json"}),r.headers),queryParameters:t(t({},i.queryParameters()),r.queryParameters)})),u({appId:r.appId,transporter:a},r.methods)}},initPersonalization:e0,initRecommendation:function(){return function(e){return eY.logger.info("The `initRecommendation` method is deprecated. Use `initPersonalization` instead."),e0()(e)}},getRecommendations:e1,getFrequentlyBoughtTogether:e2,getLookingSimilar:e8,getRecommendedForYou:e6,getRelatedProducts:e3,getTrendingFacets:e4,getTrendingItems:e5}})).appId,S=s(void 0!==b.authMode?b.authMode:f.WithinHeaders,R,b.apiKey),u({transporter:I=y(t(t({hosts:[{url:"".concat(R,"-dsn.algolia.net"),accept:1},{url:"".concat(R,".algolia.net"),accept:2}].concat(function(e){for(var t=e.length-1;t>0;t--){var r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e}([{url:"".concat(R,"-1.algolianet.com")},{url:"".concat(R,"-2.algolianet.com")},{url:"".concat(R,"-3.algolianet.com")}]))},b),{},{headers:t(t(t({},S.headers()),{"content-type":"application/x-www-form-urlencoded"}),b.headers),queryParameters:t(t({},S.queryParameters()),b.queryParameters)})),appId:R,addAlgoliaAgent:function(e,t){I.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([I.requestsCache.clear(),I.responsesCache.clear()]).then(function(){})}},b.methods)}return e7.version="4.23.3",e7}()},94325:(e,t,r)=>{"use strict";r.d(t,{m:()=>a});var n=r(12115),i=r(76792);function a(){return(0,n.useContext)(i.R)}},96714:(e,t,r)=>{"use strict";var n=r(28834),i=r(35006),a=r(34995),s=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,u=Array.prototype.push,l=function(e,t){u.apply(e,c(t)?t:[t])},f=Date.prototype.toISOString,d=a.default,h={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",depth:1/0,encode:!0,encodeDotInKeys:!1,encoder:i.encode,encodeValuesOnly:!1,filter:void 0,format:d,formatter:a.formatters[d],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},m={},p=function e(t,r,a,s,o,u,f,d,p,g,v,y,b,R,S,_,w,x,P,j){var O,E,I=t;if(j>P)throw RangeError("Input depth exceeded depth option of "+P);for(var F=x,T=0,k=!1;void 0!==(F=F.get(m))&&!k;){var A=F.get(t);if(T+=1,void 0!==A)if(A===T)throw RangeError("Cyclic object value");else k=!0;void 0===F.get(m)&&(T=0)}if((I="function"==typeof g?g(r,I):I)instanceof Date?I=b(I):"comma"===a&&c(I)&&(I=i.maybeMap(I,function(e){return e instanceof Date?b(e):e})),null===I){if(u)return S(p&&!_?p(r,h.encoder,w,"key",R):r);I=""}
1if("string"==typeof(O=I)||"number"==typeof O||"boolean"==typeof O||"symbol"==typeof O||"bigint"==typeof O||i.isBuffer(I))return p?[S(_?r:p(r,h.encoder,w,"key",R))+"="+S(p(I,h.encoder,w,"value",R))]:[S(r)+"="+S(String(I))];var N=[];if(void 0===I)return N;if("comma"===a&&c(I))_&&p&&(I=i.maybeMap(I,function(e){return null==e?e:p(e)})),E=[{value:I.length>0?I.join(",")||null:void 0}];else if(c(g))E=g;else{var C=Object.keys(I);E=v?C.sort(v):C}var D=d?String(r).replace(/\./g,"%2E"):String(r),H=s&&c(I)&&1===I.length?D+"[]":D;if(o&&c(I)&&0===I.length&&0===Object.keys(I).length)return H+"[]";for(var L=0;L<E.length;++L){var M=E[L],q="object"==typeof M&&M&&void 0!==M.value?M.value:I[M];if(!f||null!==q){var W=y&&d?String(M).replace(/\./g,"%2E"):String(M),U=c(I)?"function"==typeof a?a(H,W):H:H+(y?"."+W:"["+W+"]");x.set(t,T);var Q=n();Q.set(m,x),l(N,e(q,U,a,s,o,u,f,d,"comma"===a&&_&&c(I)?null:p,g,v,y,b,R,S,_,w,Q,P,j+1))}}return N},g=function(e){if(!e)return h;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var t,r=e.charset||h.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=a.default;if(void 0!==e.format){if(!s.call(a.formatters,e.format))throw TypeError("Unknown format option provided.");n=e.format}var i=a.formatters[n],u=h.filter;if(("function"==typeof e.filter||c(e.filter))&&(u=e.filter),t=e.arrayFormat in o?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":h.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var l=void 0===e.allowDots?!0===e.encodeDotInKeys||h.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:h.addQueryPrefix,allowDots:l,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:
1h.allowEmptyArrays,arrayFormat:t,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:h.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?h.delimiter:e.delimiter,depth:"number"==typeof e.depth?e.depth:h.depth,encode:"boolean"==typeof e.encode?e.encode:h.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:h.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:h.encodeValuesOnly,filter:u,format:n,formatter:i,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:h.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:h.strictNullHandling}};e.exports=function(e,t){var r,i=e,a=g(t);"function"==typeof a.filter?i=(0,a.filter)("",i):c(a.filter)&&(r=a.filter);var s=[];if("object"!=typeof i||null===i)return"";var u=o[a.arrayFormat],f="comma"===u&&a.commaRoundTrip;r||(r=Object.keys(i)),a.sort&&r.sort(a.sort);for(var d=n(),h=0;h<r.length;++h){var m=r[h];if(null!=m){var v=i[m];a.skipNulls&&null===v||l(s,p(v,a.encodeDotInKeys?String(m).replace(/\./g,"%2E"):String(m),u,f,a.allowEmptyArrays,a.strictNullHandling,a.skipNulls,a.encodeDotInKeys,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,d,a.depth,0))}}var y=s.join(a.delimiter),b=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?b+="utf8=%26%2310003%3B"+a.delimiter:b+="utf8=%E2%9C%93"+a.delimiter),y.length>0?b+y:""}},97210:(e,t,r)=>{"use strict";var n=r(38115);function i(e,t,r){this.main=e,this.fn=t,this.recommendFn=r,this.lastResults=null,this.lastRecommendResults=null}r(43530)(i,n),i.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)},i.prototype.getModifiedState=function(e){return this.fn(e)},i.prototype.getModifiedRecommendState=function(e){return this.recommendFn(e)},e.exports=i},97377:(e,t,r)=>{"use strict";r.d(t,{J:()=>f});var n=r(61077),i=r(12115),a=r(65833),s=r(32403),o=r(21697),c=r(21385),u=r(42271),l=r(78970);function f(){var e,t,r,f,d,h,m,p,g,v,y,b,R,S,_,w,x,P,j=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).catchError,O=(0,a.I)(),E=(e=(0,a.I)(),r=(t=(0,l.R)()).getIndexId(),d=(f=(0,o._)((0,i.useState)(function(){return e.getUiState()}),2))[0],h=f[1],m=d[r],g=(p=(0,o._)((0,i.useState)(function(){return e.renderState}),2))[0],v=p[1],y=g[r]||{},b=(0,i.useCallback)(function(t){e.setUiState(t)},[e]),R=(0,i.useCallback)(function(e){t.setIndexUiState(e)},[t]),(0,i.useEffect)(function(){function t(){h(e.getUiState()),v(e.renderState)}return e.addListener("render",t),t(),function(){e.removeListener("render",t)}},[e]),{uiState:d,setUiState:b,indexUiState:m,setIndexUiState:R,renderState:g,indexRenderState:y}),I=E.uiState,F=E.setUiState,T=E.indexUiState,k=E.setIndexUiState,A=E.renderState,N=E.indexRenderState,C=(S=(0,a.I)(),_=(0,l.R)(),x=(w=(0,o._)((0,i.useState)(function(){var e=(0,u.J)(_);return{results:e.results,scopedResults:e.scopedResults}}),2))[0],P=w[1],(0,i.useEffect)(function(){function e(){var e=_.getResults();if(null!==e)P({results:e,scopedResults:_.getScopedResults()});else if(0===S.mainIndex.getIndexName().length){var t=S.mainIndex.getWidgets().find(c.l);t&&P({results:(0,u.J)(_).results,scopedResults:t.getScopedResults()})}}return S.addListener("render",e),e(),function(){S.removeListener("render",e)}},[S,_]),x),D=C.results,H=C.scopedResults,L=(0,i.useCallback)(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return O.use.apply(O,(0,n._)(t)),function(){O.unuse.apply(O,(0,n._)(t))}},[O]),M=(0,i.useCallback)(function(){O.refresh()},[O]);return(0,s.E)(function(){if(j){var e=function(){};return O.addListener("error",e),function(){return O.removeListener("error",e)}}return function(){}},[O,j]),{results:D,scopedResults:H,uiState:I,setUiState:F,indexUiState:T,setIndexUiState:k,renderState:A,indexRenderState:N,addMiddlewares:L,refresh:M,status:O.status,error:O.error}}},98446:(e,t,r)=>{"use strict";function n(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r}
1)(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}r.d(t,{_:()=>n})},99521:e=>{"use strict";function t(e){e=e||{},this.params=e.params||[]}t.prototype={constructor:t,addParams:function(e){var r=this.params.slice();return r.push(e),new t({params:r})},removeParams:function(e){return new t({params:this.params.filter(function(t){return t.$$id!==e})})},addFrequentlyBoughtTogether:function(e){return this.addParams(Object.assign({},e,{model:"bought-together"}))},addRelatedProducts:function(e){return this.addParams(Object.assign({},e,{model:"related-products"}))},addTrendingItems:function(e){return this.addParams(Object.assign({},e,{model:"trending-items"}))},addTrendingFacets:function(e){return this.addParams(Object.assign({},e,{model:"trending-facets"}))},addLookingSimilar:function(e){return this.addParams(Object.assign({},e,{model:"looking-similar"}))},_buildQueries:function(e,t){return this.params.filter(function(e){return void 0===t[e.$$id]}).map(function(t){var r=Object.assign({},t,{indexName:e,threshold:t.threshold||0});return delete r.$$id,r})}},e.exports=t}}]);

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.