PageSourceSearch

https://www.tebra.com/theintake/_next/static/chunks/9726-24e7a626715d4867.js

js tebra.com collected 2026-10-02 03:32:56 UTC 199,719 bytes, 9 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9726],{902:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let i=r(12115),a=n(r(80914));t.default=()=>{let e=(0,i.useRef)(0);return e.current=0,(0,i.useMemo)(()=>new a.default({primitiveToKey:()=>(e.current+=1,e.current)}),[])}},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},{})}},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},3404:(e,t,r)=>{"use strict";var n=r(22350),i=r(70220),a=r(32322);e.exports=n?function(e){return n(e)}:i?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return i(e)}:a?function(e){return a(e)}:null},3902:(e,t,r)=>{"use strict";r.d(t,{FU:()=>s,ef:()=>c,sn:()=>o});var n=r(82732),i=r(45849),a=r(42247),s={highlightPreTag:"__ais-highlight__",highlightPostTag:"__/ais-highlight__"},o={highlightPreTag:"<mark>",highlightPostTag:"</mark>"};function c(e){return e.map(function(e){var t;return(0,i._)((0,n._)({},e),{highlighted:(t=e.highlighted,(0,a.i)(t).replace(RegExp(s.highlightPreTag,"g"),o.highlightPreTag).replace(RegExp(s.highlightPostTag,"g"),o.highlightPostTag))})})}},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),h=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===h(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"},6087: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){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 n(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 i(){var e="undefined"!=typeof globalThis?globalThis:void 0;return e&&e.scheduler&&e.scheduler.yield?e.scheduler.yield().catch(function(e){return console.error("Failed to yield to main: ",e),new Promise(function(e){return setTimeout(e,0)})}):new Promise(function(e){return setTimeout(e,0)})}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){return t&&Object.keys(t).forEach(function(r){e[r]=t[r](e)}),e}function o(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++])})}function c(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 u(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;
1return t(t({},e),{},{status:r,lastUpdate:Date.now()})}function l(e){return"string"==typeof e?{protocol:"https",url:e,accept:3}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||3}}var f="POST";function h(e,r,i,a){var s,o,c,f=[],h=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))}(i,a),g=(s=t(t({},e.headers),a.headers),o={},Object.keys(s).forEach(function(e){var t=s[e];o[e.toLowerCase()]=t}),o),y=i.method,v="GET"!==i.method?{}:t(t({},i.data),a.data),R=t(t(t({"x-algolia-agent":e.userAgent.value},e.queryParameters),v),a.queryParameters),b=0,_=function t(r,n){var s,o,c,l,v=r.pop();if(void 0===v)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support .",transporterStackTrace:p(f)};var _={data:h,headers:g,method:y,url:(s=v,o=i.path,c=d(R),l="".concat(s.protocol,"://").concat(s.url,"/").concat("/"===o.charAt(0)?o.substr(1):o),c.length&&(l+="?".concat(c)),l),connectTimeout:n(b,e.timeouts.connect),responseTimeout:n(b,a.timeout)},S=function(e){var t={request:_,response:e,host:v,triesLeft:r.length};return f.push(t),t},x={onSuccess:function(e){try{return JSON.parse(e.content)}catch(t){throw{name:"DeserializationError",message:t.message,response:e}}},onRetry:function(i){var a=S(i);return i.isTimedOut&&b++,Promise.all([e.logger.info("Retryable failure",m(a)),e.hostsCache.set(v,u(v,i.isTimedOut?3:2))]).then(function(){return t(r,n)})},onFail:function(e){throw S(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,p(f))}};return e.requester.send(_).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))?x.onRetry(e):2==~~(e.status/100)?x.onSuccess(e):x.onFail(e)})};return(c=e.hostsCache,Promise.all(r.map(function(e){return c.get(e,function(){return Promise.resolve(u(e))})})).then(function(e){var t=e.filter(function(e){return 1===e.status||Date.now()-e.lastUpdate>12e4}),i=e.filter(function(e){return 3===e.status&&Date.now()-e.lastUpdate<=12e4}),a=[].concat(n(t),n(i));return{getTimeout:function(e,t){return(0===i.length&&0===e?1:i.length+3+e)*t},statelessHosts:a.length>0?a.map(function(e){return l(e)}):r}})).then(function(e){return _(n(e.statelessHosts).reverse(),e.getTimeout)})}function d(e){return Object.keys(e).map(function(t){var r;return o("%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 p(e){return e.map(function(e){return m(e)})}function m(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 g=function(e){var n,i,a,o,u,f,d,p,m,g,y,v,R,b=e.appId,_=(n=void 0!==e.authMode?e.authMode:1,i={"x-algolia-api-key":e.apiKey,"x-algolia-application-id":b},{headers:function(){return 1===n?i:{}},queryParameters:function(){return 0===n?i:{}}}),S=(o=(a=t(t({hosts:[{url:"".concat(b,"-dsn.algolia.net"),accept:1},{url:"".concat(b,".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(b,"-1.algolianet.com")},{url:"".concat(b,"-2.algolianet.com")},{url:"".concat(b,"-3.algolianet.com")}]))},e),{},{headers:t(t(t({},_.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:t(t({},_.queryParameters()),e.queryParameters)})).hostsCache,u=a.logger,f=a.requester,d=a.requestsCache,p=a.responsesCache,m=a.timeouts,g=a.userAgent,y=a.hosts,v=a.queryParameters,R={hostsCache:o,logger:u,requester:f,requestsCache:d,responsesCache:p,timeouts:m,userAgent:g,headers:a.headers,queryParameters:v,hosts:y.map(function(e){return l(e)}),read:function(e,t){var n=c(t,R.timeouts.read),i=function(){return h(R,R.hosts.filter(function(e){return 0!=(1&e.accept)}),e,n)};if(!0!==(void 0!==n.cacheable?n.cacheable:e.cacheable))return i();var a={request:e,mappedRequestOptions:n,transporter:{queryParameters:R.queryParameters,headers:R.headers}};return R.responsesCache.get(a,function(){return R.requestsCache.get(a,function(){return R.requestsCache.set(a,i()).then(function(e){return Promise.all([R.requestsCache.delete(a),e])},function(e){return Promise.all([R.requestsCache.delete(a),Promise.reject(e)])}).then(function(e){var t=r(e,2);return t[0],t[1]})})},{miss:function(e){return R.responsesCache.set(a,e)}})},write:function(e,t){return h(R,R.hosts.filter(function(e){return 0!=(2&e.accept)}),e,c(t,R.timeouts.write))}});return s({transporter:S,appId:b,addAlgoliaAgent:function(e,t){S.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([S.requestsCache.clear(),S.responsesCache.clear()]).then(function(){})}},e.methods)},y=function(e){return function(t,r){return"GET"===t.method?e.transporter.read(t,r):e.transporter.write(t,r)}},v=function(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s({transporter:e.transporter,appId:e.appId,indexName:t},r.methods)}},R=function(e){return function(r,n){var i=r.map(function(e){return t(t
1({},e),{},{params:d(e.params||{})})});return e.transporter.read({method:f,path:"1/indexes/*/queries",data:{requests:i},cacheable:!0},n)}},b=function(e){return function(r,n){return Promise.all(r.map(function(r){var i=r.params,a=i.facetName,s=i.facetQuery,o=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}(i,["facetName","facetQuery"]);return v(e)(r.indexName,{methods:{searchForFacetValues:x}}).searchForFacetValues(a,s,t(t({},n),o))}))}},_=function(e){return function(t,r,n){return e.transporter.read({method:f,path:o("1/answers/%s/prediction",e.indexName),data:{query:t,queryLanguages:r},cacheable:!0},n)}},S=function(e){return function(t,r){return e.transporter.read({method:f,path:o("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},r)}},x=function(e){return function(t,r,n){return e.transporter.read({method:f,path:o("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:r},cacheable:!0},n)}},w=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:f,path:"1/indexes/*/recommendations",data:{requests:i},cacheable:!0},n)}};function F(e,s,o){var c,u,l,f,h,d,p,m;return g(t(t(t({},{appId:e,apiKey:s,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 i=n(t.caches),a=i.shift();return void 0===a?{get:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return t().then(function(e){return Promise.all([e,n.miss(e)])}).then(function(e){return r(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,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return a.get(t,r,n).catch(function(){return e({caches:i}).get(t,r,n)})},set:function(t,r){return a.set(t,r).catch(function(){return e({caches:i}).set(t,r)})},delete:function(t){return a.delete(t).catch(function(){return e({caches:i}).delete(t)})},clear:function(){return a.clear().catch(function(){return e({caches:i}).clear()})}}}({caches:[(c={key:"".concat("4.26.0","-").concat(e)},l="algoliasearch-client-js-".concat(c.key),f=function(){return void 0===u&&(u=c.localStorage||window.localStorage),u},h=function(){return JSON.parse(f().getItem(l)||"{}")},d=function(e){f().setItem(l,JSON.stringify(e))},p=function(){var e=c.timeToLive?1e3*c.timeToLive:null,t=h(),n=(new Date).getTime();return Object.fromEntries(Object.entries(t).filter(function(t){var i=r(t,2)[1];return!(!i||void 0===i.timestamp)&&(!e||i.timestamp+e>=n)}))},{get:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return i().then(function(){var n=p(),i=n[JSON.stringify(e)];return d(n),i?i.value:t().then(function(e){return r.miss(e).then(function(){return e})})})},set:function(e,t){return i().then(function(){var r=h();return r[JSON.stringify(e)]={timestamp:(new Date).getTime(),value:t},f().setItem(l,JSON.stringify(r)),t})},delete:function(e){return i().then(function(){var t=h();delete t[JSON.stringify(e)],f().setItem(l,JSON.stringify(t))})},clear:function(){return Promise.resolve().then(function(){f().removeItem(l)})}}),a()]}),userAgent:(m={value:"Algolia for JavaScript (".concat("4.26.0",")"),add:function(e){var t="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return -1===m.value.indexOf(t)&&(m.value="".concat(m.value).concat(t)),m}}).add({segment:"Browser",version:"lite"}),authMode:0}),o),{},{methods:{search:R,searchForFacetValues:b,multipleQueries:R,multipleSearchForFacetValues:b,customRequest:y,initIndex:function(e){return function(t){return v(e)(t,{methods:{search:S,searchForFacetValues:x,findAnswers:_}})}},getRecommendations:w}}))}return F.version="4.26.0",F}()},8321:e=>{e.exports=function(e){return e.reduce(function(e,t){return e.concat(t)},[])}},9732:e=>{"use strict";e.exports=Math.pow},9837:(e,t,r)=>{"use strict";r.d(t,{$:()=>o});var n=r(70049),i=r(12115),a=r(95155),s=(0,i.lazy)(async()=>r.e(8263).then(r.bind(r,18263)).then(e=>({default:e.WistiaPlayerWrapper}))),o=(0,i.forwardRef)((e,t)=>{let{aspect:r,children:o,embedHost:c,mediaId:u,swatch:l,style:f}=e,h=(0,n.lo)(u,"embedHost",c??void 0),d=(0,n.Kg)(h)?h:"fast.wistia.com",p=void 0!==r,m=(0,n.t9)({mediaId:u,embedHost:d,aspect:r,shouldLoadSwatch:l});return(0,a.jsx)(i.Suspense,{fallback:p?(0,a.jsxs)(i.Fragment,{children:[(0,a.jsx)("style",{children:m}),(0,a.jsx)("wistia-player",{"media-id":u,style:f,children:o})]}):null,children:(0,a.jsx)(s,{ref:t,...e})})})},10778:e=>{"use strict";e.exports=Function.prototype.apply},11291:(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})},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(h(c.data)),function(t){return t.name===f[e]})},l=e.getHierarchicalFacetByName(r),f=i.split(l.separator),h=function(e){return function(t){return e[t]}},d=0;void 0!==c&&d<f.length;++d)u(d);
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,h=t.hierarchicalFacetsRefinements,d=void 0===h?{}:h,p=t.numericRefinements,m=void 0===p?{}:p,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(d).forEach(function(e){d[e].forEach(function(r){a.push(i(t,"hierarchical",e,r,n.hierarchicalFacets))})}),Object.keys(m).forEach(function(e){var t=m[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}},11929:(e,t,r)=>{"use strict";let n;r.d(t,{A:()=>o});let i={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},a=new Uint8Array(16),s=[];for(let e=0;e<256;++e)s.push((e+256).toString(16).slice(1));let o=function(e,t,r){if(i.randomUUID&&!t&&!e)return i.randomUUID();let o=(e=e||{}).random||(e.rng||function(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(a)})();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=o[e];return t}return function(e,t=0){return s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]}(o)}},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},{})}},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),h=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 h(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},16247:(e,t,r)=>{"use strict";r.d(t,{_:()=>i});var n=r(90186);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)}}},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)}},16542:(e,t,r)=>{"use strict";r.d(t,{j:()=>function e(t,r,a){var s,o;if((null==a?void 0:a(t,r))||t===r)return!0;if(t&&r&&(s=t.constructor)===r.constructor){if(s===Date)return t.getTime()===r.getTime();if(s===RegExp)return t.toString()===r.toString();if(s===Array){if((o=t.length)===r.length)for(;o--&&e(t[o],r[o],a););return -1===o}if(!s||(void 0===t?"undefined":(0,n._)(t))==="object"){for(s in o=0,t)if(i.call(t,s)&&++o&&!i.call(r,s)||!(s in r)||!e(t[s],r[s],a))return!1;return Object.keys(r).length===o}}return t!=t&&r!=r}});var n=r(80971),i=Object.prototype.hasOwnProperty},16873:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},17389:(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})},17763:(e,t,r)=>{"use strict";r.d(t,{X:()=>g});var n=r(82732),i=r(45849),a=r(45377),s=r(89722),o=r(35170),c=r(52053),u=r(45721),l=r(11828),f=r(51248);function h(e){var t=e.helper,r=e.attributesToClear,n=void 0===r?[]:r,
1i=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 d=(0,o.V)({name:"clear-refinements",connector:!0}),p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.l;return(0,c.t)(e,d()),function(r){var o=r||{},c=o.includedAttributes,p=void 0===c?[]:c,m=o.excludedAttributes,g=void 0===m?["query"]:m,y=o.transformItems,v=void 0===y?function(e){return e}:y;if(r&&r.includedAttributes&&r.excludedAttributes)throw Error(d("The options `includedAttributes` and `excludedAttributes` cannot be used together."));var R={refine:f.l,createURL:function(){return""},attributesToClear:[]},b=function(){return R.refine()},_=function(){return R.createURL()};return{$$type:"ais.clearRefinements",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),{clearRefinements:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t=e.createURL,n=e.scopedResults,i=e.results;R.attributesToClear=n.reduce(function(e,t){var r,n,a,s,o,c,f;return e.concat((n=(r={scopedResult:t,includedAttributes:p,excludedAttributes:g,transformItems:v,results:i}).scopedResult,a=r.includedAttributes,s=r.excludedAttributes,o=r.transformItems,c=r.results,f=-1!==a.indexOf("query")||-1===s.indexOf("query"),{helper:n.helper,items:o((0,u.s)((0,l.t)(n.results,n.helper.state,f).map(function(e){return e.attribute}).filter(function(e){return 0===a.length||-1!==a.indexOf(e)}).filter(function(e){return"query"===e&&f||-1===s.indexOf(e)})),{results:c})}))},[]),R.refine=function(){R.attributesToClear.forEach(function(e){var t=e.helper,r=e.items;t.setState(h({helper:t,attributesToClear:r})).search()})},R.createURL=function(){return t(s.p.apply(void 0,(0,a._)(R.attributesToClear.map(function(e){return h({helper:e.helper,attributesToClear:e.items})}))))};var o=R.attributesToClear.some(function(e){return e.items.length>0});return{canRefine:o,hasRefinements:o,refine:b,createURL:_,widgetParams:r}}}}},m=r(92193);function g(e,t){return(0,m.Z)(p,e,t)}},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})},19683:e=>{"use strict";e.exports=EvalError},20463:(e,t,r)=>{"use strict";var n=r(96714),i=r(69884);e.exports={formats:r(34995),parse:i,stringify:n}},20535:(e,t,r)=>{"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty;e.exports=r(61807).call(n,i)},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=[];
1return Object.keys(e.numericRefinements).forEach(function(n){var i=e.numericRefinements[n]||{};Object.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},22043:(e,t,r)=>{"use strict";r.d(t,{_:()=>s});var n=r(74207),i=r(84390),a=r(16247);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._)()}},22350:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},23034:(e,t,r)=>{"use strict";var n=r(80045),i=r(28250),a=i([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&a(e,".prototype.")>-1?i([r]):r}},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})})}),(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},[])}},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})},27349:(e,t,r)=>{"use strict";var n=r(59705);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},28250:(e,t,r)=>{"use strict";var n=r(61807),i=r(94105),a=r(45726),s=r(49008);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return s(n,a,e)}},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},28664:e=>{"use strict";e.exports=Object},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}},30334:e=>{"use strict";e.exports=RangeError},32322:(e,t,r)=>{"use strict";var n,i=r(28250),a=r(27349);try{n=[].__proto__===Array.prototype}
1catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var s=!!n&&a&&a(Object.prototype,"__proto__"),o=Object,c=o.getPrototypeOf;e.exports=s&&"function"==typeof s.get?i([s.get]):"function"==typeof c&&function(e){return c(null==e?e:o(e))}},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,h="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,d="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,y=String.prototype.match,v=String.prototype.slice,R=String.prototype.replace,b=String.prototype.toUpperCase,_=String.prototype.toLowerCase,S=RegExp.prototype.test,x=Array.prototype.concat,w=Array.prototype.join,F=Array.prototype.slice,j=Math.floor,P="function"==typeof BigInt?BigInt.prototype.valueOf:null,O=Object.getOwnPropertySymbols,E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,A="function"==typeof Symbol&&"object"==typeof Symbol.iterator,I="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===A?"object":"symbol")?Symbol.toStringTag:null,T=Object.prototype.propertyIsEnumerable,C=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function k(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||S.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=v.call(t,i.length+1);return R.call(i,r,"$&_")+"."+R.call(R.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return R.call(t,r,"$&_")}var N=r(42634),D=N.custom,H=$(D)?D:null,L={__proto__:null,double:'"',single:"'"},U={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function W(e,t,r){var n=L[r.quoteStyle||t];return n+e+n}function Q(e){return!I||!("object"==typeof e&&(I in e||void 0!==e[I]))}function q(e){return"[object Array]"===z(e)&&Q(e)}function M(e){return"[object RegExp]"===z(e)&&Q(e)}function $(e){if(A)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!E)return!1;try{return E.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,i,o){var c,m,b,S,j,O=n||{};if(V(O,"quoteStyle")&&!V(L,O.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(V(O,"maxStringLength")&&("number"==typeof O.maxStringLength?O.maxStringLength<0&&O.maxStringLength!==1/0:null!==O.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var D=!V(O,"customInspect")||O.customInspect;if("boolean"!=typeof D&&"symbol"!==D)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V(O,"indent")&&null!==O.indent&&"	"!==O.indent&&!(parseInt(O.indent,10)===O.indent&&O.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(V(O,"numericSeparator")&&"boolean"!=typeof O.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var B=O.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(v.call(t,0,r.maxStringLength),r)+("... "+n)+" more character"+(n>1?"s":"")}var i=U[r.quoteStyle||"single"];return i.lastIndex=0,W(R.call(R.call(t,i,"\\$1"),/[\x00-\x1f]/g,K
1),"single",r)}(t,O);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var et=String(t);return B?k(t,et):et}if("bigint"==typeof t){var er=String(t)+"n";return B?k(t,er):er}var en=void 0===O.depth?5:O.depth;if(void 0===i&&(i=0),i>=en&&en>0&&"object"==typeof t)return q(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=w.call(Array(e.indent+1)," ")}return{base:r,prev:w.call(Array(t+1),r)}}(O,i);if(void 0===o)o=[];else if(J(o,t)>=0)return"[Circular]";function ea(t,r,n){if(r&&(o=F.call(o)).push(r),n){var a={depth:O.depth};return V(O,"quoteStyle")&&(a.quoteStyle=O.quoteStyle),e(t,a,i+1,o)}return e(t,O,i+1,o)}if("function"==typeof t&&!M(t)){var es=function(e){if(e.name)return e.name;var t=y.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?" { "+w.call(eo,", ")+" }":"")}if($(t)){var ec=A?R.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):E.call(t);return"object"!=typeof t||A?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="<"+_.call(String(t.nodeName)),eh=t.attributes||[],ed=0;ed<eh.length;ed++){ef+=" "+eh[ed].name+"="+W((el=eh[ed].value,R.call(String(el),/"/g,"&quot;")),"double",O)}return ef+=">",t.childNodes&&t.childNodes.length&&(ef+="..."),ef+="</"+_.call(String(t.nodeName))+">"}if(q(t)){if(0===t.length)return"[]";var ep=ee(t,ea);return ei&&!function(e){for(var t=0;t<e.length;t++)if(J(e[t],"\n")>=0)return!1;return!0}(ep)?"["+Y(ep,ei)+"]":"[ "+w.call(ep,", ")+" ]"}if("[object Error]"===z(c=t)&&Q(c)){var em=ee(t,ea);return"cause"in Error.prototype||!("cause"in t)||T.call(t,"cause")?0===em.length?"["+String(t)+"]":"{ ["+String(t)+"] "+w.call(em,", ")+" }":"{ ["+String(t)+"] "+w.call(x.call("[cause]: "+ea(t.cause),em),", ")+" }"}if("object"==typeof t&&D){if(H&&"function"==typeof t[H]&&N)return N(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 ey=[];return l&&l.call(t,function(e){ey.push(ea(e,t))}),X("Set",u.call(t),ey,ei)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{h.call(e,h)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Z("WeakMap");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e,h);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(!d||!e||"object"!=typeof e)return!1;try{return d.call(e),!0}catch(e){}return!1}(t))return Z("WeakRef");if("[object Number]"===z(m=t)&&Q(m))return G(ea(Number(t)));if(function(e){if(!e||"object"!=typeof e||!P)return!1;try{return P.call(e),!0}catch(e){}return!1}(t))return G(ea(P.call(t)));if("[object Boolean]"===z(b=t)&&Q(b))return G(p.call(t));if("[object String]"===z(S=t)&&Q(S))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)&&Q(j))&&!M(t)){var ev=ee(t,ea),eR=C?C(t)===Object.prototype:t instanceof Object||t.constructor===Object,eb=t instanceof Object?"":"null prototype",e_=!eR&&I&&Object(t)===t&&I in t?v.call(z(t),8,-1):eb?"Object":"",eS=(eR||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(e_||eb?"["+w.call(x.call([],e_||[],eb||[]),": ")+"] ":"");return 0===ev.length?eS+"{}":ei?eS+"{"+Y(ev,ei)+"}":eS+"{ "+w.call(ev,", ")+" }"}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 m.call(e)}function J(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 K(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":"")+b.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):w.call(r,", "))+"}"}function Y(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+w.call(e,","+r)+"\n"+t.prev}function ee(e,t){var r,n=q(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 O?O(e):[];if(A){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(A&&r["$"+c]instanceof Symbol)continue;else S.call(/[^\w$]/,c)?i.push(t(c,e)+": "+t(e[c],e)):i.push(c+": "+t(e[c],e));if("function"==typeof O)for(var u=0;u<s.length;u++)T.call(e,s[u])&&i.push("["+t(s[u])+"]: "+t(e[s[u]],e));return i}},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=Object.prototype.hasOwnProperty,s=Array.isArray,o=i(),c=function(e,t){return o.set(e,t),e},u=function(e){return o.has(e)},l=function(e){return o.get(e)},f=function(e,t){o.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}(),d=function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(s(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};e.exports={arrayToObject:p,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t,r,n){if(u(e)){var i=l(e)+1;return e[i]=t,f(e,i),e}var a=[].concat(e,t);return a.length>r?c(p(a,{plainObjects:n}),a.length-1):a},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var i=t[n],a=i.obj[i.prop],s=Object.keys(a),o=0;o<s.length;++o){var c=s[o],u=a[c];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t[t.length]={obj:a,prop:c},r[r.length]=u)}return d(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){for(var u=s.length>=1024?s.slice(c,c+1024):s,l=[],f=0;f<u.length;++f){var d=u.charCodeAt(f);if(45===d||46===d||95===d||126===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||a===n.RFC1738&&(40===d||41===d)){l[l.length]=u.charAt(f);continue}if(d<128){l[l.length]=h[d];continue}if(d<2048){l[l.length]=h[192|d>>6]+h[128|63&d];continue}if(d<55296||d>=57344){l[l.length]=h[224|d>>12]+h[128|d>>6&63]+h[128|63&d];continue}f+=1,d=65536+((1023&d)<<10|1023&u.charCodeAt(f)),l[l.length]=h[240|d>>18]+h[128|d>>12&63]+h[128|d>>6&63]+h[128|63&d]}o+=l.join("")}return o},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:u,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:c,maybeMap:function(e,t){if(s(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(s(t)){var i=t.length;if(n&&"number"==typeof n.arrayLimit&&i>n.arrayLimit)return c(p(t.concat(r),n),i);t[i]=r}else if(!t||"object"!=typeof t)return[t,r];else if(u(t)){var o=l(t)+1;t[o]=r,f(t,o)}else{if(n&&n.strictMerge)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!a.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t){if(u(r)){for(var h=Object.keys(r),d=n&&n.plainObjects?{__proto__:null,0:t}:{0:t},m=0;m<h.length;m++)d[parseInt(h[m],10)+1]=r[h[m]];return c(d,l(r)+1)}var g=[t].concat(r);return n&&"number"==typeof n.arrayLimit&&g.length>n.arrayLimit?c(p(g,n),g.length-1):g}var y=t;return(s(t)&&!s(r)&&(y=p(t,n)),s(t)&&s(r))?(r.forEach(function(r,i){if(a.call(t,i)){var s=t[i];s&&"object"==typeof s&&r&&"object"==typeof r?t[i]=e(s,r,n):t[t.length]=r}else t[i]=r}),t):Object.keys(r).reduce(function(t,i){var s=r[i];if(a.call(t,i)?t[i]=e(t[i],s,n):t[i]=s,u(r)&&!u(t)&&c(t,l(r)),u(t)){var o=parseInt(i,10);String(o)===i&&o>=0&&o>l(t)&&f(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})},35820:e=>{"use strict";e.exports=Math.floor},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},[[],[]])}},37971:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},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;
1default: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}},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:()=>o});var n=r(82732),i=r(45849),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}}},43530:e=>{"use strict";e.exports=function(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}},44351:(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})},45377:(e,t,r)=>{"use strict";r.d(t,{_:()=>s});var n=r(90186),i=r(11291),a=r(16247);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.")}()}},45688:(e,t,r)=>{"use strict";var n=r(95704);r(86340);var i=r(12115),a=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(i),s=void 0!==n&&n.env&&!0,o=function(e){return"[object String]"===Object.prototype.toString.call(e)},c=function(){function e(e){var t=void 0===e?{}:e,r=t.name,n=void 0===r?"stylesheet":r,i=t.optimizeForSpeed,a=void 0===i?s:i;u(o(n),"`name` must be a string"),this._name=n,this._deletedRulePlaceholder="#"+n+"-deleted-rule____{}",u("boolean"==typeof a,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=a,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var c="undefined"!=typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=c?c.getAttribute("content"):null}var t,r=e.prototype;return r.setOptimizeForSpeed=function(e){u("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),u(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},r.isOptimizeForSpeed=function(){return this._optimizeForSpeed},r.inject=function(){var e=this;if(u(!this._injected,"sheet already injected"),this._injected=!0,"undefined"!=typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.get
1Sheet(),this._optimizeForSpeed||(s||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,r){return"number"==typeof r?e._serverSheet.cssRules[r]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),r},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},r.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},r.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},r.insertRule=function(e,t){if(u(o(e),"`insertRule` accepts only strings"),"undefined"==typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;if(this._optimizeForSpeed){var r=this.getSheet();"number"!=typeof t&&(t=r.cssRules.length);try{r.insertRule(e,t)}catch(t){return s||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var n=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,n))}return this._rulesCount++},r.replaceRule=function(e,t){if(this._optimizeForSpeed||"undefined"==typeof window){var r="undefined"!=typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!r.cssRules[e])return e;r.deleteRule(e);try{r.insertRule(t,e)}catch(n){s||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),r.insertRule(this._deletedRulePlaceholder,e)}}else{var n=this._tags[e];u(n,"old rule at index `"+e+"` not found"),n.textContent=t}return e},r.deleteRule=function(e){if("undefined"==typeof window)return void this._serverSheet.deleteRule(e);if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];u(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},r.flush=function(){this._injected=!1,this._rulesCount=0,"undefined"!=typeof window?(this._tags.forEac
1h(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},r.cssRules=function(){var e=this;return"undefined"==typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,r){return r?t=t.concat(Array.prototype.map.call(e.getSheetForTag(r).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},r.makeStyleTag=function(e,t,r){t&&u(o(t),"makeStyleTag accepts only strings as second parameter");var n=document.createElement("style");this._nonce&&n.setAttribute("nonce",this._nonce),n.type="text/css",n.setAttribute("data-"+e,""),t&&n.appendChild(document.createTextNode(t));var i=document.head||document.getElementsByTagName("head")[0];return r?i.insertBefore(n,r):i.appendChild(n),n},t=[{key:"length",get:function(){return this._rulesCount}}],function(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)}}(e.prototype,t),e}();function u(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var l=function(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return t>>>0},f={};function h(e,t){if(!t)return"jsx-"+e;var r=String(t),n=e+r;return f[n]||(f[n]="jsx-"+l(e+"-"+r)),f[n]}function d(e,t){"undefined"==typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var r=e+t;return f[r]||(f[r]=t.replace(/__jsx-style-dynamic-selector/g,e)),f[r]}var p=function(){function e(e){var t=void 0===e?{}:e,r=t.styleSheet,n=void 0===r?null:r,i=t.optimizeForSpeed,a=void 0!==i&&i;this._sheet=n||new c({name:"styled-jsx",optimizeForSpeed:a}),this._sheet.inject(),n&&"boolean"==typeof a&&(this._sheet.setOptimizeForSpeed(a),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"undefined"==typeof window||this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var r=this.getIdAndRules(e),n=r.styleId,i=r.rules;if(n in this._instancesCounts){this._instancesCounts[n]+=1;return}var a=i.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[n]=a,this._instancesCounts[n]=1},t.remove=function(e){var t=this,r=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var n=this._fromServer&&this._fromServer[r];n?(n.parentNode.removeChild(n),delete this._fromServer[r]):(this._indices[r].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[r]),delete this._instancesCounts[r]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],r=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return r[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,r;return t=this.cssRules(),void 0===(r=e)&&(r={}),t.map(function(e){var t=e[0],n=e[1];return a.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:r.nonce?r.nonce:void 0,dangerouslySetInnerHTML:{__html:n}})})},t.getIdAndRules=function(e){var t=e.children,r=e.dynamic,n=e.id;if(r){var i=h(n,r);return{styleId:i,rules:Array.isArray(t)?t.map(function(e){return d(i,e)}):[d(i,t)]}}return{styleId:h(n),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),m=i.createContext(null);m.displayName="StyleSheetContext";var g=a.default.useInsertionEffect||a.default.useLayoutEffect,y="undefined"!=typeof window?new p:void 0;function v(e){var t=y||i.useContext(m);return t&&("undefined"==typeof window?t.add(e):g(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}v.dynamic=function(e){return e.map(function(e){return h(e[0],e[1])}).join(" ")},t.style=v},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})},45726:e=>{"use strict";e.exports=Function.prototype.call},45849:(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})},47009:(e,t,r)=>{"use strict";e.exports=function(e){return function(t,r){var n,u,l,f,h,d=e.hierarchicalFacets[r],p=e.hierarchicalFacetsRefinements[d.name]&&e.hierarchicalFacetsRefinements[d.name][0]||"",m=e._getHierarchicalFacetSeparator(d),g=e._getHierarchicalRootPath(d),y=e._getHierarchicalShowParentLevel(d),v=a(e._getHierarchicalFacetSortBy(d)),R=t.every(function(e){return e.exhaustive}),b=(n=v,u=m,l=g,f=y,h=p,function(e,t,r){var a=e;if(r>0){var d=0;for(a=e;d<r;)a=i(a&&Array.isArray(a.data)?a.data:[],function(e){return e.isRefined}),d++}if(a){var p=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=h,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(p.map(function(e){var r,n,i,a,s,l,f=e[0];return r=e[1],n=f,i=u,a=c(h),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}),_=t;return g&&(_=t.slice(g.split(m).length)),_.reduce(b,{name:e.hierarchicalFacets[r].name,count:null,isRefined:!0,path:null,escapedValue:null,exhaustive:R,data:null})}};var n=r(84637),i=r(87909),a=r(36269),s=r(54211),o=n.escapeFacetValue,c=n.unescapeFacetValue},49008:(e,t,r)=>{"use strict";var n=r(61807),i=r(10778),a=r(45726);e.exports=r(60537)||n.call(a,i)},50215:(e,t,r)=>{"use strict";r.d(t,{d:()=>y});var n=r(82732),i=r(45849),a=r(45377),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(h({results:r.results,helper:r.helper,indexId:r.indexId,includedAttributes:s,excludedAttributes:c}),{results:t}))},[]):f(h({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 p(a,e)},createURL:function(e){return i(d(a.state,e))},widgetParams:r}}}}};function h(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(m).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 p(r,e)}}])},[])}function d(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 p(e,t){e.setState(d(e.state,t)).search()}
1function m(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(92193);function y(e,t){return(0,g.Z)(f,e,t)}},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})},51462:(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})},52053:(e,t,r)=>{"use strict";function n(e,t){if(void 0===e||"function"!=typeof e)throw Error("The render function is not valid (received type ".concat(Object.prototype.toString.call(e).slice(8,-1),").\n\n").concat(t))}r.d(t,{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})}},57239:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(44351),i=r(51462),a=r(87922),s=r(20463),o=r(19358),c=function(e){e&&(window.document.title=e)},u=function(){function e(t){var r=this,i=t.windowTitle,s=t.writeDelay,u=t.createURL,l=t.parseURL,f=t.getLocation,h=t.start,d=t.dispose,p=t.push,m=t.cleanUrlOnDispose;(0,n._)(this,e),(0,a._)(this,"$$type","ais.browser"),(0,a._)(this,"windowTitle",void 0),(0,a._)(this,"writeDelay",void 0),(0,a._)(this,"_createURL",void 0),(0,a._)(this,"parseURL",void 0),(0,a._)(this,"getLocation",void 0),(0,a._)(this,"writeTimer",void 0),(0,a._)(this,"_onPopState",void 0),(0,a._)(this,"inPopState",!1),(0,a._)(this,"isDisposed",!1),(0,a._)(this,"latestAcknowledgedHistory",0),(0,a._)(this,"_start",void 0),(0,a._)(this,"_dispose",void 0),(0,a._)(this,"_push",void 0),(0,a._)(this,"_cleanUrlOnDispose",void 0),this.windowTitle=i,this.writeTimer=void 0,this.writeDelay=void 0===s?400:s,this._createURL=u,this.parseURL=l,this.getLocation=f,this._start=h,this._dispose=d,this._push=p,this._cleanUrlOnDispose=void 0===m||m,(0,o.x)(function(e){var t=e.window;c(r.windowTitle&&r.windowTitle(r.read())),r.latestAcknowledgedHistory=t.history.length})}return(0,i._)(e,[{key:"read",value:function(){return this.parseURL({qsModule:s,location:this.getLocation()})}},{key:"write",value:function(e){var t=this;(0,o.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(){c(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)})}},{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,o.x)(function(e){e.window.addEventListener("popstate",t._onPopState)})}},{key:"createURL",value:function(e){return this._createURL({qsModule:s,routeState:e,location:this.getLocation()})}},{key:"dispose",value:function(){var e=this;this._dispose&&this._dispose(),this.isDisposed=!0,(0,o.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,o.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 l(){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,n=e.parseURL,i=void 0===n?function(e){var t=e.qsModule,r=e.location;return t.parse(r.search.slice(1),{arrayLimit:99})}:n,a=e.writeDelay,s=e.windowTitle,c=e.getLocation;return new u({createURL:r,parseURL:i,writeDelay:void 0===a?400:a,windowTitle:s,getLocation:void 0===c?function(){return(0,o.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})}},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}},59705:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},60537:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},60945:(e,t,r)=>{"use strict";r.d(t,{m:()=>n});var n=(0,r(12115).createContext)(null)},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}},61807:(e,t,r)=>{"use strict";var n=r(81831);e.exports=Function.prototype.bind||n},61836:e=>{"use strict";e.exports=Math.max},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),h=r(21588),d=r(88675),p=r(88221),m=r(25039),g=r(4804);function y(e,t,r,n){"function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+g+")"),this.setClient(e);var i=r||{};i.index=t,this.state=d.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._lastRecommendQueryId
1Received=-1,this.derivedHelpers=[],this._currentNbQueries=0,this._currentNbRecommendQueries=0,this._searchResultsOptions=n,this._recommendCache={}}function v(e){if(e<0)throw Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}function R(){return this.state.page}s(y,n),y.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},y.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},y.prototype.searchWithComposition=function(){return this._runComposition({onlyWithDerivedHelpers:!0}),this},y.prototype.recommend=function(){return this._recommend(),this},y.prototype.getQuery=function(){var e=this.state;return h._getHitsSearchParams(e)},y.prototype.searchOnce=function(e,t){var r=e?this.state.setQueryParameters(e):this.state,n=h._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 p(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 p(r,e.results),state:r,_originalResponse:e}},function(e){throw i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),e})},y.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(h._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)},y.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=h.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]})),this.emit("searchForFacetValues",{state:c,facet:e,query:t});var d=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 d.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})},y.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:h._getCompositionHitsSearchParams(s)}}}
vendor: 8,568 bytes, line 1
1),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})},y.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this},y.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this},y.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},y.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},y.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},y.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this},y.prototype.addNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,r),isPageReset:!0}),this},y.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this},y.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},y.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this},y.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},y.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this},y.prototype.addFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.addFrequentlyBoughtTogether(e)}),this},y.prototype.addRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.addRelatedProducts(e)}),this},y.prototype.addTrendingItems=function(e){return this._recommendChange({state:this.recommendState.addTrendingItems(e)}),this},y.prototype.addTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.addTrendingFacets(e)}),this},y.prototype.addLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.addLookingSimilar(e)}),this},y.prototype.removeNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,r),isPageReset:!0}),this},y.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},y.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},y.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this},y.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this},y.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},y.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this},y.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},y.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this},y.prototype.removeFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},y.prototype.removeRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},y.prototype.removeTrendingItems=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},y.prototype.removeTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},y.prototype.removeLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},y.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this},y.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},y.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},y.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this},y.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},y.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this},y.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)},y.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)},y.prototype.setCurrentPage=v,y.prototype.setPage=v,y.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this},y.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this},y.prototype.setState=function(e){return this._change({state:d.make(e),isPageReset:!1}),this},y.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new d(e),this},y.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))},y.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},y.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},y.prototype.hasTag=function(e){return this.state.isTagRefined(e)},y.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},y.prototype.getIndex=function(){return this.state.index},y.prototype.getCurrentPage=R,y.prototype.getPage=R,y.prototype.getTags=function(){return this.state.tagRefinements},y.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},y.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},y.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},y.prototype._search=function(e){var t=this.state,r=[],n=[];e.onlyWithDerivedHelpers||(n=h._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?h._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));try{this.client.search(a).then(this._dispatchAlgoliaResponse.bind(this,r,s)).catch(this._dispatchAlgoliaError.bind(this,s))}catch(e){this.emit("error",{error:e})}},y.prototype._runComposition=function(){var e=this.state,t=[],r=this.derivedHelpers.map(function(r){var n=r.getModifiedState(e),i=h._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:[]}
1).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})}},y.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})}}},y.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 p(t,[e],n._searchResultsOptions);return void 0!==a&&(r._rawContent=a),r});s.lastResults=new p(t,[o[0]],n._searchResultsOptions),s.lastResults.feeds=c,void 0!==a&&(s.lastResults._rawContent=a)}else s.lastResults=new p(t,o,n._searchResultsOptions),void 0!==a&&(s.lastResults._rawContent=a);s.emit("result",{results:s.lastResults,state:t})})}},y.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:m(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}})})}},y.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"))},y.prototype._dispatchRecommendError=function(e,t){e<this._lastRecommendQueryIdReceived||(this._currentNbRecommendQueries-=e-this._lastRecommendQueryIdReceived,this._lastRecommendQueryIdReceived=e,this.emit("error",{error:t}),0===this._currentNbRecommendQueries&&this.emit("recommendQueueEmpty"))},y.prototype.containsRefinement=function(e,t,r,n){return e||0!==t.length||0!==r.length||0!==n.length},y.prototype._hasDisjunctiveRefinements=function(e){return this.state.disjunctiveRefinements[e]&&this.state.disjunctiveRefinements[e].length>0},y.prototype._change=function(e){var t=e.state,r=e.isPageReset;
1t!==this.state&&(this.state=t,this.emit("change",{state:this.state,results:this.lastResults,isPageReset:r}))},y.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}}))},y.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},y.prototype.setClient=function(e){return this.client===e||("function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+g+")"),this.client=e),this},y.prototype.getClient=function(){return this.client},y.prototype.derive=function(e,t){var r=new i(this,e,t);return this.derivedHelpers.push(r),r},y.prototype.detachDerivedHelper=function(e){var t=this.derivedHelpers.indexOf(e);if(-1===t)throw Error("Derived helper already detached");this.derivedHelpers.splice(t,1)},y.prototype.hasPendingRequests=function(){return this._currentNbQueries>0},e.exports=y},63291:e=>{"use strict";e.exports=function(e,t){return e.filter(function(r,n){return t.indexOf(r)>-1&&e.indexOf(r)===n})}},63933:(e,t,r)=>{"use strict";r.d(t,{t:()=>a});var n=r(12115),i=(0,n.createContext)({countRef:{current:0},waitForResultsRef:null,ignoreMultipleHooksWarning:!1});function a(){return(0,n.useContext)(i)}},65218:e=>{"use strict";e.exports=Math.round},65785:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},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}},69219:(e,t,r)=>{"use strict";r.d(t,{G:()=>eF});var n=r(17389),i=r(12115),a=r(60945),s=r(32966),o=r(82732),c=r(45377);function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(l=function(){return!!e})()}var f=r(80971),h=r(44351),d=r(51462),p=r(87922);function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var y=r(38115),v=r(3085),R=r(45849),b=r(22043),_=r(19358);function S(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 x=r(25151),w=r(51248),F="2.17.2",j="https://cdn.jsdelivr.net/npm/search-insights@".concat(F,"/dist/search-insights.min.js");function P(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.insightsClient,r=e.insightsInitParams,n=e.onEvent,i=e.$$internal,a=void 0!==i&&i,s=e.$$automatic,u=void 0!==s&&s,l=t;t||null===t||(0,_.x)(function(e){var t=e.window,r=t.AlgoliaAnalyticsObject||"aa";"string"==typeof r&&(l=t[r]),l||(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=F,t[r].shouldAddScript=!0),l=t[r])});var h=l||w.l;return function(e){var t,i,s,l=e.instantSearchInstance,d=l.middleware.filter(function(e){return"ais.insights"===e.instance.$$type&&e.instance.$$internal}).map(function(e){return e.creator});l.unuse.apply(l,(0,c._)(d));var p=(0,b._)(S(l.client),2),m=p[0],g=p[1],y=void 0,v=void 0,_=void 0,F=h.queue;return Array.isArray(F)&&(v=(t=(0,b._)(["setUserToken","init"].map(function(e){return(0,b._)((0,x.I)(F.slice().reverse(),function(t){return(0,b._)(t,1)[0]===e})||[],2)[1]}),2))[0],y=t[1]),h("getUserToken",null,function(e,t){_=E(t)}),(r||!O(h))&&h("init",(0,o._)({appId:m,apiKey:g,partial:!0},r)),{$$type:"ais.insights",$$internal:a,$$automatic:u,onStateChange:function(){},subscribe:function(){if(h.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");t.async=!0,t.src=j,t.onerror=function(){l.emit("error",Error(e))},document.body.appendChild(t),h.shouldAddScript=!1}catch(t){h.shouldAddScript=!1,l.emit("error",Error(e))}}},started:function(){h("addAlgoliaAgent","insights-middleware"),s=l.mainHelper;var e,t,c,d,p,m,g,w,F,j,P,A,I=h.queue;Array.isArray(I)&&(v=(j=(0,b._)(["setUserToken","init"].map(function(e){return(0,b._)((0,x.I)(I.slice().reverse(),function(t){return(0,b._)(t,1)[0]===e})||[],2)[1]}),2))[0],y=j[1]),d=(null==(c=(e=l)._initialResults)||null==(t=c[e.indexName])?void 0:t.state)||{},p=e.mainHelper.state,i={userToken:d.userToken||p.userToken,clickAnalytics:d.clickAnalytics||p.clickAnalytics},u||s.overrideStateWithoutTriggeringChangeEvent((0,R._)((0,o._)({},s.state),{clickAnalytics:!0})),a||l.scheduleSearch();var T=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=E(e);if(r){var n=s.state.userToken;t?i():setTimeout(i,0)}function i(){s.overrideStateWithoutTriggeringChangeEvent((0,R._)((0,o._)({},s.state),{userToken:r})),n&&n!==e&&l.scheduleSearch()}};function C(e){T(e,!0),h("setUserToken",e)}var k=void 0,N=function(){if(("undefined"==typeof document?"undefined":(0,f._)(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)}}();k=N||"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=i.userToken;(null==r?void 0:r.userToken)&&(P=r.userToken),P?C(P):D?C(D):_?C(_):v?C(v):k&&(C(k),((null==r?void 0:r.useCookie)||(null==y?void 0:y.useCookie))&&(m=k,g=(null==r?void 0:r.cookieDuration)||(null==y?void 0:y.cookieDuration),(w=new Date).setTime(w.getTime()+(g||15552e6)),F="expires=".concat(w.toUTCString()),document.cookie="_ALGOLIA=".concat(m,";").concat(F,";path=/"))),h("onUserTokenChange",function(e){return T(e,!0)},{immediate:!0});var H=h;O(h)&&(H=function(e,t){var r=(0,b._)(S(l.client),2);return h(e,t,{headers:{"X-Algolia-Application-Id":r[0],"X-Algolia-API-Key":r[1]}})});var L=new Set;l.mainHelper.derivedHelpers[0].on("result",function(e){var t=e.results;t&&(!t.queryID||t.queryID!==A)&&(A=t.queryID,L.clear())}),l.sendEventToInsights=function(e){if(n)n(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"],u&&e.payload.algoliaSource.pu
1sh("instantsearch-automatic"),"internal"===e.eventModifier&&e.payload.algoliaSource.push("instantsearch-internal"),H(e.insightsMethod,e.payload)}}},unsubscribe:function(){h("onUserTokenChange",void 0),l.sendEventToInsights=w.l,s&&i&&(s.overrideStateWithoutTriggeringChangeEvent((0,o._)({},s.state,i)),l.scheduleSearch())}}}}function O(e){var t=(0,b._)((e.version||"").split(".").map(Number),2),r=t[0],n=t[1];return r>=3||2===r&&n>=6||1===r&&n>=10}function E(e){if(e)return"number"==typeof e?e.toString():e}var A=r(21385);function I(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 T(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,R._)((0,o._)({},r.renderState),(0,p._)({},i,(0,o._)({},r.renderState[i],t)))}var k=r(57239);function N(e){return e.configure,(0,n._)(e,["configure"])}function D(e){return e!==Object(e)}var H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.router,r=void 0===t?(0,k.A)():t,n=e.stateMapping,i=void 0===n?{$$type:"ais.simple",stateToRoute:function(e){return Object.keys(e).reduce(function(t,r){return(0,R._)((0,o._)({},t),(0,p._)({},r,N(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,f._)(n))!=="object"||null===n?t:(0,R._)((0,o._)({},t),(0,p._)({},r,N(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,R._)((0,o._)({},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(D(t)||D(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,o._)({},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()}}}},L=0,U=Promise.resolve();function W(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=U.then(function(){if(t=null,r){r=!1;return}e.apply(void 0,(0,c._)(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 Q(e){for(var t=e.getParent(),r=[e.getHelper().state];null!==t;)r=[t.getHelper().state].concat(r),t=t.getParent();return r}var q=r(35170),M=r(89722),$=(0,q.V)({name:"index-widget"});function B(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 V(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.reduce(function(e,r){return!(0,A.l)(r)&&(r.getWidgetUiState||r.getWidgetState)?r.getWidgetUiState?r.getWidgetUiState(e,t):r.getWidgetState(e,t):e},r)}function z(e,t){var r=t.initialSearchParameters,i=(0,n._)(t,["initialSearchParameters"]);return e.reduce(function(e,t){return!t.getWidgetSearchParameters||(0,A.l)(t)?e:"search"===t.dependsOn&&t.getWidgetParameters?t.getWidgetParameters(e,i):t.getWidgetSearchParameters(e,i)},r)}function J(e,t){var r=t.initialRecommendParameters,i=(0,n._)(t,["initialRecommendParameters"]);return e.reduce(function(e,t){return!(0,A.l)(t)&&"recommend"===t.dependsOn&&t.getWidgetParameters?t.getWidgetParameters(e,i):e},r)}var K=function(e){if(void 0===e||void 0===e.indexName&&!e.EXPERIMENTAL_isolated)throw Error($("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,u=[],l={},f=null,h=null,d=null,m=null,y=null,b=!1,_=!1;return{$$type:"ais.index",$$widgetType:"ais.index",_isolated:s,getIndexName:function(){return r},getIndexId:function(){return i},getHelper:function(){return d},getResults:function(){return(null==m?void 0:m.lastResults)?(m.lastResults._state=d.state,m.lastResults):null},getResultsForWidget:function(e){return"recommend"!==e.dependsOn||(0,A.l)(e)||void 0===e.$$id?this.getResults():(null==d?void 0:d.lastRecommendResults)?d.lastRecommendResults[e.$$id]:null},getPreviousState:function(){return y},getScopedResults:function(){var e=this.getParent();return function e(t){return t.filter(A.l).reduce(function(t,r){return t.concat.apply(t,[{indexId:r.getIndexId(),results:r.getResults(),helper:r.getHelper()}].concat((0,c._)(e(r.getWidgets()))))},[])}(e?e.getWidgets():0===r.length?this.getWidgets():[this])},getParent:function(){return s?null:h},createURL:function(e){return"function"==typeof e?f._createURL((0,p._)({},i,e(l))):f._createURL((0,p._)({},i,V(u,{searchParameters:e,helper:d})))},scheduleLocalSearch:W(function(){s&&(null==d||d.search())}),getWidgets:function(){return u},addWidgets:function(e){var t=this;if(!Array.isArray(e))throw Error($("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($("The widget definition expects a `render` and/or an `init` method."));return r.forEach(function(e){(e.parent=t,!(0,A.l)(e))&&(f&&"recommend"===e.dependsOn?f._hasRecommendWidget=!0:f?f._hasSearchWidget=!0:"recommend"===e.dependsOn?b=!0:_=!0,"recommend"===e.dependsOn&&(e.$$id=L++))}),u=u.concat(r),f&&r.length&&(B(d,{state:z(u,{uiState:l,initialSearchParameters:d.state}),recommendState:J(u,{uiState:l,initialRecommendParameters:d.recommendState}),_uiState:l}),r.forEach(function(e){e.getRenderState&&C({renderState:e.getRenderState(f.render
1State[t.getIndexId()]||{},I(f,t,f._initialUiState)),instantSearchInstance:f,parent:t})}),r.forEach(function(e){e.init&&e.init(I(f,t,f._initialUiState))}),s?this.scheduleLocalSearch():f.scheduleSearch()),this},removeWidgets:function(e){var t=this;if(!Array.isArray(e))throw Error($("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($("The widget definition expects a `dispose` method."));if((u=u.filter(function(e){return -1===r.indexOf(e)})).forEach(function(e){e.parent=void 0,(0,A.l)(e)||(f&&"recommend"===e.dependsOn?f._hasRecommendWidget=!0:f?f._hasSearchWidget=!0:"recommend"===e.dependsOn?b=!0:_=!0)}),f&&r.length){var n=r.reduce(function(e,r){var n=r.dispose({helper:d,state:e.cleanedSearchState,recommendState:e.cleanedRecommendState,parent:t});return g(n,v.RecommendParameters)?e.cleanedRecommendState=n:n&&(e.cleanedSearchState=n),e},{cleanedSearchState:d.state,cleanedRecommendState:d.recommendState}),i=n.cleanedSearchState,a=n.cleanedRecommendState,o=f.future.preserveSharedStateOnUnmount?z(u,{uiState:l,initialSearchParameters:new v.SearchParameters({index:this.getIndexName()})}):z(u,{uiState:V(u,{searchParameters:i,helper:d}),initialSearchParameters:i});l=V(u,{searchParameters:o,helper:d}),d.setState(o),d.recommendState=a,u.length&&(s?this.scheduleLocalSearch():f.scheduleSearch())}return this},init:function(e){var t,n=this,a=e.instantSearchInstance,o=e.parent,p=e.uiState;if(null===d){f=a,h=o,l=p[i]||{};var g=a.mainHelper,R=z(u,{uiState:l,initialSearchParameters:new v.SearchParameters({index:r})}),S=J(u,{uiState:l,initialRecommendParameters:new v.RecommendParameters});(d=v(g.getClient(),R.index,R)).recommendState=S,d.search=function(){return s?(a.status="loading",n.render({instantSearchInstance:a}),a.compositionID?d.searchWithComposition():d.searchOnlyWithDerivedHelpers()):a.onStateChange?(a.onStateChange({uiState:a.mainIndex.getWidgetUiState({}),setUiState:function(e){return a.setUiState(e,!1)}}),g):g.search()},d.searchWithoutTriggeringOnStateChange=function(){return g.search()},d.searchForFacetValues=function(e,t,r,i){var a=M.p.apply(void 0,[g.state].concat((0,c._)(Q(n)))).setQueryParameters(i);return g.searchForFacetValues(e,t,r,a)};var x=r?d:v({},"__empty_index__",{});m=(s?x:function(e,t){for(;e;){if(e._isolated)return e.getHelper();e=e.getParent()}return t}(o,g)).derive(function(){return M.p.apply(void 0,[g.state].concat((0,c._)(Q(n))))},function(){return n.getHelper().recommendState});var w=null==(t=a._initialResults)?void 0:t[this.getIndexId()];if(null==w?void 0:w.results){var F=new v.SearchResults(new v.SearchParameters(w.state),w.results);m.lastResults=F,d.lastResults=F}if(null==w?void 0:w.recommendResults){var j=new v.RecommendResults(new v.RecommendParameters({params:w.recommendResults.params}),w.recommendResults.results);m.lastRecommendResults=j,d.lastRecommendResults=j}d.on("change",function(e){e.isPageReset&&function e(t){var r=t.filter(A.l);0!==r.length&&r.forEach(function(t){var r=t.getHelper();B(r,{state:r.state.resetPage(),recommendState:r.recommendState,isPageReset:!0}),e(t.getWidgets())})}(u)}),m.on("search",function(){a.scheduleStalledRender()}),m.on("result",function(e){var t=e.results;a.scheduleRender(),d.lastResults=t,y=null==t?void 0:t._state}),m.on("recommend:result",function(e){var t=e.recommend;a.scheduleRender(),d.lastRecommendResults=t.results}),u.forEach(function(e){e.getRenderState&&C({renderState:e.getRenderState(a.renderState[n.getIndexId()]||{},I(a,n,p)),instantSearchInstance:a,parent:n})}),u.forEach(function(e){e.init&&e.init(I(a,n,p))}),d.on("change",function(e){var t=e.state,r=e._uiState;l=V(u,{searchParameters:t,helper:d},r||{}),a.onStateChange||a.onInternalStateChange()}),w&&a.scheduleRender(),b&&(a._hasRecommendWidget=!0),_&&(a._hasSearchWidget=!0)}},render:function(e){var t=this,n=e.instantSearchInstance;"error"===n.status&&!n.mainHelper.hasPendingRequests()&&y&&d.setState(y);var i=this.getResults()||(null==m?void 0:m.lastRecommendResults)||s&&!r?u:u.filter(function(e){return e.shouldRender});(i=i.filter(function(e){return!e.shouldRender||e.shouldRender({instantSearchInstance:n})}
1)).forEach(function(e){e.getRenderState&&C({renderState:e.getRenderState(n.renderState[t.getIndexId()]||{},T(n,t,e)),instantSearchInstance:n,parent:t})}),i.forEach(function(e){e.render&&e.render(T(n,t,e))})},dispose:function(){var e=this;u.forEach(function(t){t.dispose&&d&&t.dispose({helper:d,state:d.state,recommendState:d.recommendState,parent:e})}),f=null,h=null,null==d||d.removeAllListeners(),d=null,null==m||m.detach(),m=null},getWidgetUiState:function(e){return u.filter(A.l).filter(function(e){return!e._isolated}).reduce(function(e,t){return t.getWidgetUiState(e)},(0,R._)((0,o._)({},e),(0,p._)({},i,(0,o._)({},e[i],l))))},getWidgetState:function(e){return this.getWidgetUiState(e)},getWidgetSearchParameters:function(e,t){var r=t.uiState;return z(u,{uiState:r,initialSearchParameters:e})},shouldRender:function(){return!0},refreshUiState:function(){l=V(u,{searchParameters:this.getHelper().state,helper:this.getHelper()},l)},setIndexUiState:function(e){var t="function"==typeof e?e(l):e;f.setUiState(function(e){return(0,R._)((0,o._)({},e),(0,p._)({},i,t))})}}},G=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 Z(e,t){return(Array.isArray(t)?t:t.split(".")).reduce(function(e,t){return e&&e[t]},e)}var X=r(3902),Y=G("Highlight");function ee(e){var t=X.sn.highlightPreTag,r=X.sn.highlightPostTag;return e.map(function(e){return e.isHighlighted?t+e.value+r:e.value}).join("")}var et=r(42247),er=new RegExp(/\w/i);function en(e){return e.some(function(e){return e.isHighlighted})?e.map(function(t,r){var n,i,a,s,c;return(0,R._)((0,o._)({},t),{isHighlighted:(a=e[r],s=(null==(n=e[r+1])?void 0:n.isHighlighted)||!0,c=(null==(i=e[r-1])?void 0:i.isHighlighted)||!0,er.test((0,et.x)(a.value))||c!==s?!a.isHighlighted:!c)})}):e.map(function(e){return(0,R._)((0,o._)({},e),{isHighlighted:!1})})}function ei(e){var t=X.sn.highlightPostTag,r=X.sn.highlightPreTag,n=e.split(r),i=n.shift(),a=i?[{value:i,isHighlighted:!1}]:[];return n.forEach(function(e){var r=e.split(t);a.push({value:r[0],isHighlighted:!0}),""!==r[1]&&a.push({value:r[1],isHighlighted:!1})}),a}var ea=G("ReverseHighlight"),es=G("Snippet"),eo=G("ReverseSnippet");function ec(e){var t;return(null==(t=e.compositionFeedsResults)?void 0:t.length)?e.compositionFeedsResults:e.results||[]}function eu(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 el(e,t){var r=e[t.getIndexId()]||{};t.getHelper().setState(t.getWidgetSearchParameters(t.getHelper().state,{uiState:r})),t.getWidgets().filter(A.l).forEach(function(t){return el(e,t)})}var ef=(0,q.V)({name:"instantsearch"});function eh(){return"#"}var ed={preserveSharedStateOnUnmount:!1,persistHierarchicalRootCount:!1},ep=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=u(t);var n=l()?Reflect.construct(t,[],u(e).constructor):t.apply(e,void 0);if(n&&("object"===(0,f._)(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",W(function(){r.started&&r.mainHelper.search()})),(0,p._)(r,"scheduleRender",W(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",W(function(){var e=r.mainIndex.getWidgetUiState({});r.middleware.forEach(function(t){t.instance.onStateChange({uiState:e})})})),r.setMaxListeners(100);var r,n=e.indexName,i=e.compositionID,a=e.numberLocale,s=e.initialUiState,c=e.routing,d=void 0===c?null:c,m=e.insights,g=void 0===m?void 0:m,y=e.searchFunction,v=e.stalledSearchDelay,b=e.searchClient,S=void 0===b?null:b,x=e.insightsClient,F=void 0===x?null:x,j=e.onStateChange,O=e.future,E=void 0===O?(0,o._)({},ed,e.future||{}):O;if(null===S)throw Error(ef("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.101.1",")")),F&&"function"!=typeof F)throw Error(ef("The `insightsClient` option should be a function."));if(r.client=S,r.future=E,r.insightsClient=F,r.indexName=void 0===n?"":n,r.compositionID=i,r.helper=null,r.mainHelper=null,r.mainIndex=K({indexName:r.compositionID||r.indexName}),r.onStateChange=void 0===j?null:j,r.started=!1,r.templatesConfig={helpers:{formatNumber:function(e,t){var r;
1return r=Number(t(e)),r.toLocaleString(a)},highlight:function(e,t){try{var r,n,i,a,s,c,u,l,f,h=JSON.parse(e);return t((n=(r=(0,R._)((0,o._)({},h),{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,s=r.hit,c=r.cssClasses,u=void 0===c?{}:c,l=(Z(s._highlightResult,n)||{}).value,f=Y({descendantName:"highlighted"})+(u.highlighted?" ".concat(u.highlighted):""),(void 0===l?"":l).replace(RegExp(X.sn.highlightPreTag,"g"),"<".concat(a,' class="').concat(f,'">')).replace(RegExp(X.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,c,u,l,f,h=JSON.parse(e);return t((n=(r=(0,R._)((0,o._)({},h),{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,s=r.hit,c=r.cssClasses,u=void 0===c?{}:c,l=(Z(s._highlightResult,n)||{}).value,f=ea({descendantName:"highlighted"})+(u.highlighted?" ".concat(u.highlighted):""),ee(en(ei(void 0===l?"":l))).replace(RegExp(X.sn.highlightPreTag,"g"),"<".concat(a,' class="').concat(f,'">')).replace(RegExp(X.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,c,u,l,f,h=JSON.parse(e);return t((n=(r=(0,R._)((0,o._)({},h),{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,s=r.hit,c=r.cssClasses,u=void 0===c?{}:c,l=(Z(s._snippetResult,n)||{}).value,f=es({descendantName:"highlighted"})+(u.highlighted?" ".concat(u.highlighted):""),(void 0===l?"":l).replace(RegExp(X.sn.highlightPreTag,"g"),"<".concat(a,' class="').concat(f,'">')).replace(RegExp(X.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,c,u,l,f,h=JSON.parse(e);return t((n=(r=(0,R._)((0,o._)({},h),{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,s=r.hit,c=r.cssClasses,u=void 0===c?{}:c,l=(Z(s._snippetResult,n)||{}).value,f=eo({descendantName:"highlighted"})+(u.highlighted?" ".concat(u.highlighted):""),ee(en(ei(void 0===l?"":l))).replace(RegExp(X.sn.highlightPreTag,"g"),"<".concat(a,' class="').concat(f,'">')).replace(RegExp(X.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,o._)({objectIDs:[this.objectID]},a),function(e){var t,r=e.method,n=e.payload;if((void 0===n?"undefined":(0,f._)(n))!=="object")throw Error("The insights helper expects the payload to be an object.");try{t=btoa(encodeURIComponent(JSON.stringify(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===v?200:v,r._searchStalledTimer=null,r._createURL=eh,r._initialUiState=void 0===s?{}:s,r._initialResults=null,r._insights=g,y&&(r._searchFunction=y),r.sendEventToInsights=w.l,d){var T="boolean"==typeof d?{}:d;T.$$internal=!0,r.use(H(T))}if(g){var C="boolean"==typeof g?{}:g;C.$$internal=!0,r.use(P(C))}return(0,_.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=I(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,A.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&&m(t,e),(0,d._)(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,o._)({$$type:"__unknown__",$$internal:!1,subscribe:w.l,started:w.l,unsubscribe:w.l,onStateChange:w.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,c._)(t))}},{key:"addWidget",value:function(e){return this.addWidgets([e])}},{key:"addWidgets",value:function(e){if(!Array.isArray(e))throw Error(ef("The `addWidgets` method expects an array of widgets. Please use `addWidget`."));if(this.compositionID&&e.some(function(e){return!Array.isArray(e)&&(0,A.l)(e)&&!e._isolated}))throw Error(ef("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(ef("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(ef("The `start` method has already been called once."));var t=this.mainHelper||v(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(w.l)}};this._mainHelperSearch=t.search.bind(t),t.search=function(){var n=e.mainIndex.getHelper(),i=v(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(!g(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=ec(n),c=s&&i?s.map(function(e,t){return(0,o._)({indexName:i.index||e.index},(null==a?void 0:a[t])||e.params?{params:eu((null==a?void 0:a[t])||e.params.split("&").reduce(function(e,t){var r=(0,b._)(t.split("="),2),n=r[0],i=r[1];
1return e[n]=i?decodeURIComponent(i):"",e},{}))}:{})}):[];return e.concat(c)},[])],n=Object.keys(t).reduce(function(e,r){var n=ec(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,R._)((0,o._)({},e),{params:eu(e.params)})}):eu(t.requestBody.params);return e.transporter.responsesCache.get({method:"search",args:[s].concat((0,c._)(n))},function(){return i.apply(void 0,[t].concat((0,c._)(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,R._)((0,o._)({},e.cache),(0,p._)({},a,JSON.stringify({results:Object.keys(t).map(function(e){return ec(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,o._)({},e,r.recommendResults.results):e},{});var n,i=this.scheduleSearch;this.scheduleSearch=W(w.l),this._manuallyResetScheduleSearch?this._resetScheduleSearch=function(){e.scheduleSearch=i}:W(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(P({$$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(ef("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){el("function"==typeof e?e(n):e,t.mainIndex),t.scheduleSearch(),t.onInternalStateChange()}}):(el(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(ef("The `start` method needs to be called before `createURL`."));return this._createURL(e)}},{key:"refresh",value:function(){if(!this.mainHelper)throw Error(ef("The `start` method needs to be called before `refresh`."));this.mainHelper.clearCache().search()}}]),t}(y),em=r(14806),eg="7.35.1",ey=r(16542),ev=r(16505),eR=r(92824),eb=r(63933),e_=r(95704),eS=["react (".concat(i.version,")"),"react-instantsearch (".concat(eg,")"),"react-instantsearch-core (".concat(eg,")")],ex="react-instantsearch-server (".concat(eg,")");function ew(e,t){"function"==typeof e.addAlgoliaAgent&&t.filter(Boolean).forEach(function(t){e.addAlgoliaAgent(t)})}function eF(e){var t=e.children,r=function(e){var t=(0,b._)((0,i.useReducer)(function(e){return e+1},0),2)[1],r=(0,ev.r)(),n=(0,eR.m)(),a=(0,eb.t)().waitForResultsRef,s=null==n?void 0:n.initialResults,u=(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 h,d,p=new ep(e);p._schedule=function(e){p._schedule.queue.push(e),clearTimeout(p._schedule.timer),p._schedule.timer=setTimeout(function(){p._schedule.queue.forEach(function(e){e()}),p._schedule.queue=[]},0)},p._schedule.queue=[],l&&(p._initialResults=s||{},p._manuallyResetScheduleSearch=!0),ew(e.searchClient,(0,c._)(eS).concat([r&&ex,(d="undefined"!=typeof window&&(null==(h=window.next)?void 0:h.version)||(void 0!==e_?null==e_.env?void 0:"":void 0))?"next.js (".concat(d,")"):null])),l&&p.start(),r&&r.notifyServer({search:p}
1),e.routing,f.current=p}var m,g=f.current,y=u.current;y.indexName!==e.indexName&&(g.helper.setIndex(e.indexName||"").search(),u.current=e),y.searchClient!==e.searchClient&&(ew(e.searchClient,(0,c._)(eS).concat([r&&ex])),g.mainHelper.setClient(e.searchClient).search(),u.current=e),y.onStateChange!==e.onStateChange&&(g.onStateChange=e.onStateChange,u.current=e),y.searchFunction!==e.searchFunction&&(g._searchFunction=e.searchFunction,u.current=e),y.stalledSearchDelay!==e.stalledSearchDelay&&(g._stalledSearchDelay=null!=(m=e.stalledSearchDelay)?m:200,u.current=e),(0,ey.j)(y.future,e.future)||(g.future=(0,o._)({},ed,e.future),u.current=e);var v=(0,i.useRef)(null);return(0,em.useSyncExternalStore)((0,i.useCallback)(function(){var e=f.current;return null===v.current?e.started||(e.start(),t()):(clearTimeout(v.current),e._preventWidgetCleanup=!1),function(){null!=n&&n.ssrSearchRef||(clearTimeout(e._schedule.timer),v.current=setTimeout(function(){e.dispose()}),e._preventWidgetCleanup=!0)}},[t,n]),function(){return f.current},function(){return f.current})}((0,n._)(e,["children"]));return r.started?i.createElement(s.t.Provider,{value:r},i.createElement(a.m.Provider,{value:r.mainIndex},t,i.createElement(ej,{search:r}))):null}function ej(e){var t=e.search;return(0,i.useEffect)(function(){t._resetScheduleSearch&&t._resetScheduleSearch()},[t]),null}},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)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,h=t.charset;if(t.charsetSentinel)for(d=0;d<l.length;++d)0===l[d].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[d]?h="utf-8":"utf8=%26%2310003%3B"===l[d]&&(h="iso-8859-1"),f=d,d=l.length);for(d=0;d<l.length;++d)if(d!==f){var d,p,m,g=l[d],y=g.indexOf("]="),v=-1===y?g.indexOf("="):y+1;if(-1===v?(p=t.decoder(g,s.decoder,h,"key"),m=t.strictNullHandling?null:""):null!==(p=t.decoder(g.slice(0,v),s.decoder,h,"key"))&&(m=n.maybeMap(o(g.slice(v+1),t,a(r[p])?r[p].length:0),function(e){return t.decoder(e,s.decoder,h,"value")})),m&&t.interpretNumericEntities&&"iso-8859-1"===h&&(m=String(m).replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),g.indexOf("[]=")>-1&&(m=a(m)?[m]:m),t.comma&&a(m)&&m.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");m=n.combine([],m,t.arrayLimit,t.plainObjects)}if(null!==p){var R=i.call(r,p);R&&("combine"===t.duplicates||g.indexOf("[]=")>-1)?r[p]=n.combine(r[p],m,t.arrayLimit,t.plainObjects):R&&"last"!==t.duplicates||(r[p]=m)}}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);else{l=r.plainObjects?{__proto__:null}:{};var h="["===f.charAt(0)&&"]"===f.charAt(f.length-1)?f.slice(1,-1):f,d=r.decodeDotInKeys?h.replace(/%2E/g,"."):h,p=parseInt(d,10),m=!isNaN(p)&&f!==d&&String(p)===d&&p>=0&&r.parseArrays;if(r.parseArrays||""!==d)if(m&&p<r.arrayLimit)(l=[])[p]=c;else if(m&&r.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(1===r.arrayLimit?"":"s")+" allowed in an array.");else m?(l[p]=c,n.markOverflow(l,p)):"__proto__"!==d&&(l[d]=c);else l={0:c}
1}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,h=-1;f<o&&h<0;){var d=r.charCodeAt(f);91===d?l+=1:93===d&&0==(l-=1)&&(h=f),f+=1}if(h<0)return n[n.length]="["+r.slice(c)+"]",n;var p=r.slice(c,h+1),m=p.slice(1,-1);if(!t.plainObjects&&i.call(Object.prototype,m)&&!t.allowPrototypes)return;n[n.length]=p,u+=1,c=r.indexOf("[",h+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)}},h=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=h(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);a=n.merge(a,l,r)}return!0===r.allowSparse?a:n.compact(a)}},70049:(e,t,r)=>{"use strict";r.d(t,{$l:()=>c,Kg:()=>i,Rx:()=>s,Tn:()=>a,aF:()=>f,lo:()=>o,t9:()=>h});var n=e=>!(e=>null==e)(e),i=e=>"string"==typeof e,a=e=>n(e)&&"function"==typeof e,s=e=>"number"==typeof e||i(e)||(e=>n(e)&&"boolean"==typeof e)(e),o=(e,t,r)=>{let i=r;return"undefined"==typeof window||(n(window.wistiaOptions?._all)&&n(window.wistiaOptions._all[t])&&s(window.wistiaOptions._all[t])&&(i=window.wistiaOptions._all[t]),n(window.wistiaOptions?.[e])&&n(window.wistiaOptions[e])&&s(window.wistiaOptions[e][t])&&(i=window.wistiaOptions[e][t])),i},c=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(e,t)=>(0!==t?"-":"")+e.toLowerCase()),u=async e=>{let t=new Image;return t.src=e,await t.decode(),t},l=(e,t)=>
1`https://${t}/embed/medias/${e}/swatch`,f=async(e,t="fast.wistia.com")=>{let{naturalHeight:r,naturalWidth:n}=await u(l(e,t));return n/r},h=({mediaId:e,embedHost:t="fast.wistia.com",aspect:r=1.7,shouldLoadSwatch:n=!0,roundedPlayer:i=0})=>{let a={background:n?`center / contain no-repeat url(${l(e,t)})`:void 0,borderRadius:`${i}px`,display:"block",filter:"blur(5px)",paddingTop:`${100/r}%`};return`
2    wistia-player[media-id='${e}']:not(:defined) {
3      ${Object.entries(a).map(([e,t])=>`${c(e)}: ${t};`).join("\r\n")}
4    }
5
6    wistia-player[media-id='${e}']:state(--initializing) {
7      ${Object.entries(a).map(([e,t])=>`${c(e)}: ${t};`).join("\r\n")}
8    }
9  `}},70220:(e,t,r)=>{"use strict";e.exports=r(28664).getPrototypeOf||null},73390:e=>{"use strict";e.exports=SyntaxError},73493:(e,t,r)=>{"use strict";r.d(t,{J:()=>y});var n=r(87922),i=r(82732),a=r(45849),s=r(17389),o=r(3902),c=r(35170),u=r(52053),l=r(22043),f=r(80971),h=r(51248),d=(0,c.V)({name:"refinement-list",connector:!0}),p=["isRefined","count:desc","name:asc"],m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.l;return(0,u.t)(e,d()),function(r){var c,u,h,m=r||{},g=m.attribute,y=m.operator,v=void 0===y?"or":y,R=m.limit,b=void 0===R?10:R,_=m.showMore,S=void 0!==_&&_,x=m.showMoreLimit,w=void 0===x?20:x,F=m.sortBy,j=void 0===F?p:F,P=m.escapeFacetValues,O=void 0===P||P,E=m.transformItems,A=void 0===E?function(e){return e}:E;if(!g)throw Error(d("The `attribute` option is required."));if(!/^(and|or)$/.test(v))throw Error(d('The `operator` must one of: `"and"`, `"or"` (got "'.concat(v,'").')));if(!0===S&&w<=b)throw Error(d("`showMoreLimit` should be greater than `limit`."));var I=function(e){var t=e.name,r=e.escapedValue,n=(0,s._)(e,["name","escapedValue"]);return(0,a._)((0,i._)({},n),{value:r,label:t,highlighted:t})},T=[],C=!0,k=!1,N=function(){};function D(){N()}var H=function(){return function(){}};return{$$type:"ais.refinementList",init:function(t){e((0,a._)((0,i._)({},this.getWidgetRenderState(t)),{instantSearchInstance:t.instantSearchInstance}),!0)},render:function(t){e((0,a._)((0,i._)({},this.getWidgetRenderState(t)),{instantSearchInstance:t.instantSearchInstance}),!1)},getRenderState:function(e,t){return(0,a._)((0,i._)({},e),{refinementList:(0,a._)((0,i._)({},e.refinementList),(0,n._)({},g,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(t){var n=this,d=t.results,m=t.state,y=t.createURL,v=t.instantSearchInstance,R=t.helper,_=[],x=[];if(h&&u&&H||(P=(F={instantSearchInstance:v,helper:R,attribute:g,widgetType:this.$$type}).instantSearchInstance,E=F.helper,L=F.attribute,U=F.widgetType,h=function(){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=(0,l._)(r,4),s=a[1],o=a[2],c=a[3],u=(0,l._)(r[0].split(":"),2),h=u[0],d=u[1],p="string"==typeof L?L:L(s);1===r.length&&"object"===(0,f._)(r[0])?P.sendEventToInsights(r[0]):"click"===h&&r.length>=2&&r.length<=4&&((E.state.isHierarchicalFacet(p)?E.state.isHierarchicalFacetRefined(p,s):E.state.isConjunctiveFacet(p)?E.state.isFacetRefined(p,s):E.state.isDisjunctiveFacetRefined(p,s))||P.sendEventToInsights({insightsMethod:"clickedFilters",widgetType:U,eventType:h,eventModifier:d,payload:(0,i._)({eventName:void 0===o?"Filter Applied":o,index:(null==(e=E.lastResults)?void 0:e.index)||E.state.index,filters:["".concat(p,":").concat(s)]},void 0===c?{}:c),attribute:p}))},u=function(e){h("click:internal",e),R.toggleFacetRefinement(g,e).search()},W=this,H=function(t){return function(r){var n=t.instantSearchInstance,u=t.results;if(""===r&&T)e((0,a._)((0,i._)({},W.getWidgetRenderState((0,a._)((0,i._)({},t),{results:c}))),{instantSearchInstance:n}),!1);else{var l={highlightPreTag:O?o.FU.highlightPreTag:o.sn.highlightPreTag,highlightPostTag:O?o.FU.highlightPostTag:o.sn.highlightPostTag};R.searchForFacetValues(g,r,Math.min(k?w:b,100),l).then(function(r){var l=A((O?(0,o.ef)(r.facetHits):r.facetHits).map(function(e){var t=e.escapedValue,r=e.value,n=(0,s._)(e,["escapedValue","value"]);return(0,a._)((0,i._)({},n),{value:t,label:r})}),{results:u});e((0,a._)((0,i._)({},W.getWidgetRenderState((0,a._)((0,i._)({},t),{results:c}))),{items:l,canToggleShowMore:!1,canRefine:!0,isFromSearch:!0,instantSearchInstance:n}),!1)})}}}),d){var F,P,E,L,U,W,Q,q=d.getFacetValues(g,{sortBy:j,facetOrdering:j===p});_=A((x=q&&Array.isArray(q)?q:[]).slice(0,k?w:b).map(I),{results:d});var M=m.maxValuesPerFacet,$=k?w:b;C=M>$?x.length<=$:x.length<$,c=d,T=_,t.results&&(Q=this,N=function(){k=!k,Q.render(t)})}var B=H&&H(t),V=k&&T.length>b,z=S&&!C;return{createURL:function(e){return y(function(t){return n.getWidgetUiState(t,{searchParameters:m.resetPage().toggleFacetRefinement(g,e),helper:R})})},items:_,refine:u,searchForItems:B,isFromSearch:!1,canRefine:_.length>0,widgetParams:r,isShowingMore:k,canToggleShowMore:V||z,toggleShowMore:D,sendEvent:h,hasExhaustiveItems:C}},dispose:function(e){var r=e.state;t();var n=r.setQueryParameter("maxValuesPerFacet",void 0);return"and"===v?n.removeFacet(g):n.removeDisjunctiveFacet(g)},getWidgetUiState:function(e,t){var r,s,o=t.searchParameters,c="or"===v?o.getDisjunctiveRefinements(g):o.getConjunctiveRefinements(g);return r=(0,a._)((0,i._)({},e),{refinementList:(0,a._)((0,i._)({},e.refinementList),(0,n._)({},g,c))}),s=g,r.refinementList&&(r.refinementList[s]&&0!==r.refinementList[s].length||delete r.refinementList[s],0===Object.keys(r.refinementList).length&&delete r.refinementList),r},getWidgetSearchParameters:function(e,t){var r=t.uiState,s="or"===v;if(e.isHierarchicalFacet(g)||s&&e.isConjunctiveFacet(g)||!s&&e.isDisjunctiveFacet(g))return e;var o=r.refinementList&&r.refinementList[g],c=s?e.addDisjunctiveFacet(g).removeDisjunctiveFacetRefinement(g):e.addFacet(g).removeFacetRefinement(g),u=Math.max(c.maxValuesPerFacet||0,S?w:b),l=c.setQueryParameter("maxValuesPerFacet",u);if(!o){var f=s?"disjunctiveFacetsRefinements":"facetsRefinements";return l.setQueryParameters((0,n._)({},f,(0,a._)((0,i._)({},l[f]),(0,n._)({},g,[]))))}return o.reduce(function(e,t){return s?e.addDisjunctiveFacetRefinement(g,t):e.addFacetRefinement(g,t)},l)}}}},g=r(92193);function y(e,t){return(0,g.Z)(m,e,t)}},74207:(e,t,r)=>{"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,{_:()=>n})},76458:(e,t)=>{"use strict";
9Object.defineProperty(t,"__esModule",{value:!0});let r=e=>null==e||"number"==typeof e?e:"function"==typeof e.toString?e.toString():String(e);class n{#e=new WeakMap;#t;#r;#n=-1;constructor({keyBaseName:e="keyGen_",primitiveToKey:t=r}={}){this.#t=e,this.#r=t}#i(){return this.#n+=1,`${this.#t}${this.#n}`}getKey(e){if(!e||!["object","function"].includes(typeof e))return this.#r(e);if("object"==typeof e&&null!==e){let t=this.#e.get(e);if(t)return t;let r=this.#i();return this.#e.set(e,r),r}return this.#r(e)}}t.default=n},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}},80045:(e,t,r)=>{"use strict";var n,i=r(28664),a=r(90123),s=r(19683),o=r(30334),c=r(84666),u=r(73390),l=r(94105),f=r(86121),h=r(82922),d=r(35820),p=r(61836),m=r(91374),g=r(9732),y=r(65218),v=r(98735),R=Function,b=function(e){try{return R('"use strict"; return ('+e+").constructor;")()}catch(e){}},_=r(27349),S=r(65785),x=function(){throw new l},w=_?function(){try{return arguments.callee,x}catch(e){try{return _(arguments,"callee").get}catch(e){return x}}}():x,F=r(90035)(),j=r(3404),P=r(70220),O=r(22350),E=r(10778),A=r(45726),I={},T="undefined"!=typeof Uint8Array&&j?j(Uint8Array):n,C={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":F&&j?j([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":s,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":R,"%GeneratorFunction%":I,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
9IteratorPrototype%":F&&j?j(j([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&F&&j?j(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":_,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":o,"%ReferenceError%":c,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&F&&j?j(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":F&&j?j(""[Symbol.iterator]()):n,"%Symbol%":F?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":w,"%TypedArray%":T,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":f,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":A,"%Function.prototype.apply%":E,"%Object.defineProperty%":S,"%Object.getPrototypeOf%":P,"%Math.abs%":h,"%Math.floor%":d,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":g,"%Math.round%":y,"%Math.sign%":v,"%Reflect.getPrototypeOf%":O};if(j)try{null.error}catch(e){var k=j(j(e));C["%Error.prototype%"]=k}var N=function e(t){var r;if("%AsyncFunction%"===t)r=b("async function () {}");else if("%GeneratorFunction%"===t)r=b("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=b("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&j&&(r=j(i.prototype))}return C[t]=r,r},D={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},H=r(61807),L=r(20535),U=H.call(A,Array.prototype.concat),W=H.call(E,Array.prototype.splice),Q=H.call(A,String.prototype.replace),q=H.call(A,String.prototype.slice),M=H.call(A,RegExp.prototype.exec),$=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,B=/\\(\\)?/g,V=function(e){var t=q(e,0,1),r=q(e,-1);if("%"===t&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return Q(e,$,function(e,t,r,i){n[n.length]=r?Q(i,B,"$1"):t||e}),n},z=function(e,t){var r,n=e;if(L(D,n)&&(n="%"+(r=D[n])[0]+"%"),L(C,n)){var i=C[n];if(i===I&&(i=N(n)),void 0===i&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new u("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===M(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=V(e),n=r.length>0?r[0]:"",i=z("%"+n+"%",t),a=i.name,s=i.value,o=!1,c=i.alias;c&&(n=c[0],W(r,U([0,1],c)));for(var f=1,h=!0;f<r.length;f+=1){var d=r[f],p=q(d,0,1),m=q(d,-1);if(('"'===p||"'"===p||"`"===p||'"'===m||"'"===m||"`"===m)&&p!==m)throw new u("property names with quotes must have matching quotes");if("constructor"!==d&&h||(o=!0),n+="."+d,L(C,a="%"+n+"%"))s=C[a];else if(null!=s){if(!(d in s)){if(!t)throw new l("base intrinsic for "+e+" exists, but the property is not available.");return}if(_&&f+1>=r.length){var g=_(s,d);s=(h=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:s[d]}else h=L(s,d),s=s[d];h&&!o&&(C[a]=s)}}return s}},80914:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esMo
9dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useKeyGen=void 0;let i=n(r(76458));t.useKeyGen=n(r(902)).default,t.default=i.default},80971:(e,t,r)=>{"use strict";function n(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}r.d(t,{_:()=>n})},81831:e=>{"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var i=0;i<t.length;i+=1)r[i+e.length]=t[i];return r},i=function(e,t){for(var r=[],n=t||0,i=0;n<e.length;n+=1,i+=1)r[i]=e[n];return r},a=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};e.exports=function(e){var s,o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw TypeError("Function.prototype.bind called on incompatible "+o);for(var c=i(arguments,1),u=r(0,o.length-c.length),l=[],f=0;f<u;f++)l[f]="$"+f;if(s=Function("binder","return function ("+a(l,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof s){var t=o.apply(this,n(c,arguments));return Object(t)===t?t:this}return o.apply(e,n(c,arguments))}),o.prototype){var h=function(){};h.prototype=o.prototype,s.prototype=new h,h.prototype=null}return s}},82424:e=>{"use strict";e.exports=function(e){return null!==e&&/^[a-zA-Z0-9_-]{1,64}$/.test(e)}},82732:(e,t,r)=>{"use strict";r.d(t,{_:()=>i});var n=r(87922);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}))),i.forEach(function(t){(0,n._)(e,t,r[t])})}return e}},82922:e=>{"use strict";e.exports=Math.abs},83945:(e,t,r)=>{"use strict";r.d(t,{W:()=>y});var n=r(82732),i=r(45849),a=r(44351),s=r(51462),o=r(87922),c=r(45377);function u(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,c._)(Array(o)).map(function(e,t){return r+t*s})}var l=function(){function e(t){(0,a._)(this,e),(0,o._)(this,"currentPage",void 0),(0,o._)(this,"total",void 0),(0,o._)(this,"padding",void 0),this.currentPage=t.currentPage,this.total=t.total,this.padding=t.padding}return(0,s._)(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 u({end:e});var i=this.calculatePaddingLeft(t,r,e,n),a=n-i;return u({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}(),f=r(35170),h=r(52053),d=r(51248),p=(0,f.V)({name:"pagination",connector:!0}),m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.l;return(0,h.t)(e,p()),function(r){var a=r||{},s=a.totalPages,o=a.padding,c=new l({currentPage:0,total:0,padding:void 0===o?3:o}),u={};return{$$type:"ais.pagination",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(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,i._)((0,n._)({},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,a=e.results,o=e.helper,l=e.state,f=e.createURL;u.refine||(u.refine=function(e){o.setPage(e),o.search()}),u.createURL||(u.createURL=function(e){return f(function(t){return(0,i._)((0,n._)({},t),{page:e+1})})});var h=l.page||0,d=(t=(a||{nbPages:0}).nbPages,void 0!==s?Math.min(s,t):t);return c.currentPage=h,c.total=d,{createURL:u.createURL,refine:u.refine,canRefine:d>1,currentRefinement:h,nbHits:(null==a?void 0:a.nbHits)||0,nbPages:d,pages:a?c.pages():[],isFirstPage:c.isFirstPage(),isLastPage:c.isLastPage(),widgetParams:r}},getRenderState:function(e,t){return(0,i._)((0,n._)({},e),{pagination:this.getWidgetRenderState(t)})}}}},g=r(92193);function y(e,t){return(0,g.Z)(m,e,t)}},84390:(e,t,r)=>{"use strict";
9function 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})},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(/^\\-/,"-")}}},84666:e=>{"use strict";e.exports=ReferenceError},85756:(e,t,r)=>{"use strict";r.d(t,{V:()=>h});var n=r(82732),i=r(45849),a=r(35170),s=r(52053),o=r(51248),c=(0,a.V)({name:"search-box",connector:!0}),u=function(e,t){return t(e)},l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.l;return(0,s.t)(e,c()),function(r){var a,s,o=(r||{}).queryHook,c=void 0===o?u:o;return{$$type:"ais.searchBox",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(e){var r=e.state;return t(),r.setQueryParameter("query",void 0)},getRenderState:function(e,t){return(0,i._)((0,n._)({},e),{searchBox:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t=e.helper,n=e.instantSearchInstance,i=e.state;return a||(a=function(e){c(e,function(e){return t.setQuery(e).search()})},s=function(){t.setQuery("").search()}),{query:i.query||"",refine:a,clear:s,widgetParams:r,isSearchStalled:"stalled"===n.status}},getWidgetUiState:function(e,t){var r=t.searchParameters.query||"";return""===r||e&&e.query===r?e:(0,i._)((0,n._)({},e),{query:r})},getWidgetSearchParameters:function(e,t){var r=t.uiState;return e.setQueryParameter("query",r.query||"")}}}},f=r(92193);function h(e,t){return(0,f.Z)(l,e,t)}},86121:e=>{"use strict";e.exports=URIError},86340:()=>{},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]}}},87922:(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})},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,h=a.unescapeFacetValue,d=r(47009);function p(e){var t={};return e.forEach(function(e,r){t[e]=r}),t}function m(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=p(e.facets),y=p(e.disjunctiveFacets),v=1,R=a.facets||{};Object.keys(R).forEach(function(t){var r=R[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,h=-1!==e.disjunctiveFacets.indexOf(t),d=-1!==e.facets.indexOf(t);h&&(f=y[t],c.disjunctiveFacets[f]={name:t,data:r,exhaustive:a.exhaustiveFacetsCount},m(c.disjunctiveFacets[f],a.facets_stats,t)),d&&(f=g[t],c.facets[f]={name:t,data:r,exhaustive:a.exhaustiveFacetsCount},m(c.facets[f],a.facets_stats,t))}}),this.hierarchicalFacets=n(this.hierarchicalFacets),f.forEach(function(r){var n=t[v],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 d=o(c.hierarchicalFacets[r],function(e){return e.attribute===t});if(-1===d)return;c.hierarchicalFacets[r][d].data=c.persistHierarchicalRootCount?u(c.hierarchicalFacets[r][d].data,f):i(f,c.hierarchicalFacets[r][d].data)}else{r=y[t];var p=a.facets&&a.facets[t]||{};c.disjunctiveFacets[r]={name:t,data:u(p,f),exhaustive:n.exhaustiveFacetsCount},m(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(h(n))>-1&&(c.disjunctiveFacets[r].data[n]=0)})}}),v++}
9),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(v).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 h={};if(s.length>0&&!c.persistHierarchicalRootCount){var d=s[0].split(a)[0];h[d]=c.hierarchicalFacets[l][f].data[d]}c.hierarchicalFacets[l][f].data=i(h,u,c.hierarchicalFacets[l][f].data)}}),v++})}),Object.keys(e.facetsExcludes).forEach(function(t){var r=e.facetsExcludes[t],n=g[t];c.facets[n]={name:t,data:R[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(d(e)),this.facets=n(this.facets),this.disjunctiveFacets=n(this.disjunctiveFacets),this._state=e}function y(e,t){var r=s(e,function(e){return e.name===t});return r&&r.stats}function v(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)},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=h(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,h,d=o.renderingContent&&o.renderingContent.facetOrdering&&o.renderingContent.facetOrdering.values&&o.renderingContent.facetOrdering.values[t];if(a.facetOrdering&&d)return n=[],i=[],s=d.hide||[],u=(d.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=d.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 p=c(a.sortBy,g.DEFAULT_SORT),m=l(e,p[0],p[1]),y=d&&d.hide?d.hide:[];if(y.length>0){var v=[];return m.forEach(function(e){var t=e.path||e.name;-1===y.indexOf(t)&&v.push(e)}),v}return m}if("function"==typeof a.sortBy)return h=a.sortBy,e.sort(h);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)?y(this.facets,e):this._state.isDisjunctiveFacet(e)?y(this.disjunctiveFacets,e):void 0},g.prototype.getRefinements=function(){var e=this._state,t=this,r=[];
vendor: 16,349 bytes, line 9
9return Object.keys(e.facetsRefinements).forEach(function(n){e.facetsRefinements[n].forEach(function(i){r.push(v(e,"facet",n,i,t.facets))})}),Object.keys(e.facetsExcludes).forEach(function(n){e.facetsExcludes[n].forEach(function(i){r.push(v(e,"exclude",n,i,t.facets))})}),Object.keys(e.disjunctiveFacetsRefinements).forEach(function(n){e.disjunctiveFacetsRefinements[n].forEach(function(i){r.push(v(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,h,d,p,m,g;r.push((a=e,o=n,c=i,u=t.hierarchicalFacets,l=a.getHierarchicalFacetByName(o),f=a._getHierarchicalFacetSeparator(l),h=c.split(f),d=s(u,function(e){return e.name===o}),m=(p=h.reduce(function(e,t){var r=e&&s(e.data,function(e){return e.name===t});return void 0!==r?r:e},d))&&p.count||0,g=p&&p.exhaustive||!1,{type:"hierarchical",attributeName:o,name:p&&p.path||"",count:m,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},88661:(e,t,r)=>{"use strict";e.exports=r(45688).style},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 h(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every(function(e,r){return h(t[r],e)}):e===t}function d(e){var t=e?d._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!==d.PARAMETERS.indexOf(e),i=void 0!==t[e];!n&&i&&(r[e]=t[e])})}function p(e){var t=parseFloat(e);return isFinite(t)?t:null}d.PARAMETERS=Object.keys(new d),d._parseNumbers=function(e){if(e instanceof d)return e;var t={};if(["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","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?p(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?p(e):"number"!=typeof e||isFinite(e)?e:null}):"string"==typeof e?p(e):"number"!=typeof e||isFinite(e)?e:null});r[t][e]=i})}),t.numericRefinements=r}return s(e,t)},d.make=function(e){var t=new d(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},d.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},d.prototype={constructor:d,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&&h(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||{}).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 h(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;
9return 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=d.validate(this,e);if(t)throw t;var r=this,n=d._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=d},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(82732),i=r(17389),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,h;return s((h=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)},h)),t)})}},90035:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(16873);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},90123:e=>{"use strict";e.exports=Error},90186:(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})},91374:e=>{"use strict";e.exports=Math.min},92193:(e,t,r)=>{"use strict";r.d(t,{Z:()=>S});var n=r(82732),i=r(17389),a=r(22043),s=r(74207),o=r(11291),c=r(84390),u=r(16247),l=r(12115),f=r.t(l,2),h=r(16542),d=r(42271),p=r(78970),m=r(65833),g=r(16505),y=r(92824);function v(e){var t=(0,a._)((0,l.useState)(function(){return e}),2),r=t[0],n=t[1];return(0,h.j)(r,e)||n(e),r}var R=f.use,b=r(32403),_=r(63933);function S(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,S=(t=[r,f],(0,s._)(t)||(0,o._)(t)||(0,u._)(t)||(0,c._)()),x=S[0],w=S.slice(1),F=(0,a._)(w,1)[
90],j=void 0===F?{}:F,P=j.skipSuspense,O=(0,i._)(j,["skipSuspense"]),E=(0,g.r)(),A=(0,y.m)(),I=(0,m.I)(),T=(0,p.R)(),C=v(void 0===x?{}:x),k=v(O),N=(0,l.useRef)(!0),D=(0,l.useRef)(null),H=(0,l.useRef)(I.status),L=(0,l.useMemo)(function(){var t=e(function(e,t){if(t){N.current=!0;return}if(N.current){var r=e.instantSearchInstance;e.widgetParams;var n=(0,i._)(e,["instantSearchInstance","widgetParams"]);(0,h.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||(Q(n),D.current=n,H.current=r.status)}},function(){N.current=!1});return(0,n._)({},t(C),k)},[e,C,k]),U=(0,a._)((0,l.useState)(function(){if(L.getWidgetRenderState){var e,t=T.getHelper(),r=T.getWidgetUiState({})[T.getIndexId()];t.state=(null==(e=L.getWidgetSearchParameters)?void 0:e.call(L,t.state,{uiState:r}))||t.state;var n=(0,d.J)(T),a=n.results,s=n.scopedResults,o=n.recommendResults,c=L.getWidgetRenderState({helper:t,parent:T,instantSearchInstance:I,results:"recommend"===L.dependsOn&&o&&A?o[A.recommendIdx.current++]:a,scopedResults:s,state:t.state,renderState:I.renderState,templatesConfig:I.templatesConfig,createURL:T.createURL,searchMetadata:{isSearchStalled:"stalled"===I.status},status:I.status,error:I.error});return c.widgetParams,(0,i._)(c,["widgetParams"])}return{}}),2),W=U[0],Q=U[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,_.t)(),f=u.waitForResultsRef,d=u.countRef;u.ignoreMultipleHooksWarning;var p=(0,l.useRef)(s);(0,l.useEffect)(function(){p.current=s},[s]);var g=(0,l.useRef)(i);(0,l.useEffect)(function(){g.current=i},[i]);var y=(0,l.useRef)(null),v=o&&!a.getWidgets().includes(i),S=(0,m.I)();(0,b.E)(function(){var e=g.current;return y.current?(clearTimeout(y.current),(0,h.j)(s,p.current)||(a.removeWidgets([e]),a.addWidgets([i]))):o||a.addWidgets([i]),function(){y.current=setTimeout(function(){S._schedule(function(){S._preventWidgetCleanup||a.removeWidgets([e])})})}},[a,i,o,S,s]),(v||(null==f||null==(t=f.current)?void 0:t.status)==="pending")&&a.addWidgets([i]),(null==f?void 0:f.current)&&!c&&(R(f.current),"ais.dynamicWidgets"!==i.$$type&&"ais.feeds"!==i.$$type&&(null==(n=S.helper)?void 0:n.lastResults)&&R(f.current)),(null==f||null==(r=f.current)?void 0:r.status)==="fulfilled"&&(d.current+=1)}({widget:L,parentIndex:T,props:C,shouldSsr:!!E,skipSuspense:void 0!==P&&P}),W}},92579:e=>{"use strict";e.exports=function(e){return Array.isArray(e)?e.filter(Boolean):[]}},92824:(e,t,r)=>{"use strict";r.d(t,{m:()=>a});var n=r(12115),i=(0,n.createContext)(null);function a(){return(0,n.useContext)(i)}},94105:e=>{"use strict";e.exports=TypeError},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,h=a.default,d={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:i.encode,encodeValuesOnly:!1,filter:void 0,format:h,formatter:a.formatters[h],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},p={},m=function e(t,r,a,s,o,u,f,h,m,g,y,v,R,b,_,S,x,w){for(var F,j,P=t,O=w,E=0,A=!1;void 0!==(O=O.get(p))&&!A;){var I=O.get(t);if(E+=1,void 0!==I)if(I===E)throw RangeError("Cyclic object value");else A=!0;void 0===O.get(p)&&(E=0)}if("function"==typeof g?P=g(r,P):P instanceof Date?P=R(P):"comma"===a&&c(P)&&(P=i.maybeMap(P,function(e){return e instanceof Date?R(e):e})),null===P){if(u)return _(m&&!S?m(r,d.encoder,x,"key",b):r);P=""}if("string"==typeof(F=P)||"number"==typeof F||"boolean"==typeof F||"symbol"==typeof F||"bigint"==typeof F||i.isBuffer(P))return m?[_(S?r:m(r,d.encoder,x,"key",b))+"="+_(m(P,d.encoder,x,"value",b))]:[_(r)+"="+_(String(P))];var T=[];if(void 0===P)return T;if("comma"===a&&c(P))S&&m&&(P=i.maybeMap(P,function(e){return null==e?e:m(e)})),j=[{value:P.length>0?P.join(",")||null:void 0}];else if(c(g))j=g;else{var C=Object.keys(P);j=y?C.sort(y):C}var k=h?String(r).replace(/\./g,"%2E"):String(r),N=s&&c(P)&&1===P.length?k+"[]":k;if(o&&c(P)&&0===P.length)return N+"[]";for(var D=0;D<j.length;++D){var H=j[D],L="object"==typeof H&&H&&void 0!==H.value?H.value:P[H];if(!f||null!==L){var U=v&&h?String(H).replace(/\./g,"%2E"):String(H),W=c(P)?"function"==typeof a?a(N,U):N:N+(v?"."+U:"["+U+"]");w.set(t,E);var Q=n();Q.set(p,w),l(T,e(L,W,a,s,o,u,f,h,"comma"===a&&S&&c(P)?null:m,g,y,v,R,b,_,S,x,Q))}}return T},g=function(e){if(!e)return d;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
9if(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||d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=a.default;if(void 0!==e.format){if(!s.call(a.formatters,e.format))throw TypeError("Unknown format option provided.");n=e.format}var i=a.formatters[n],u=d.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":d.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||d.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:l,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:d.allowEmptyArrays,arrayFormat:t,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?d.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:d.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:d.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:u,format:n,formatter:i,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}};e.exports=function(e,t){var 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 h=n(),d=0;d<r.length;++d){var p=r[d];if(null!=p){var y=i[p];a.skipNulls&&null===y||l(s,m(y,p,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,h))}}var v=s.join(a.delimiter),R=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?R+="utf8=%26%2310003%3B"+a.delimiter:R+="utf8=%E2%9C%93"+a.delimiter),v.length>0?R+v:""}},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(45377),i=r(12115),a=r(65833),s=r(32403),o=r(22043),c=r(21385),u=r(42271),l=r(78970);function f(){var e,t,r,f,h,d,p,m,g,y,v,R,b,_,S,x,w,F,j=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).catchError,P=(0,a.I)(),O=(e=(0,a.I)(),r=(t=(0,l.R)()).getIndexId(),h=(f=(0,o._)((0,i.useState)(function(){return e.getUiState()}),2))[0],d=f[1],p=h[r],g=(m=(0,o._)((0,i.useState)(function(){return e.renderState}),2))[0],y=m[1],v=g[r]||{},R=(0,i.useCallback)(function(t){e.setUiState(t)},[e]),b=(0,i.useCallback)(function(e){t.setIndexUiState(e)},[t]),(0,i.useEffect)(function(){function t(){d(e.getUiState()),y(e.renderState)}return e.addListener("render",t),t(),function(){e.removeListener("render",t)}},[e]),{uiState:h,setUiState:R,indexUiState:p,setIndexUiState:b,renderState:g,indexRenderState:v}),E=O.uiState,A=O.setUiState,I=O.indexUiState,T=O.setIndexUiState,C=O.renderState,k=O.indexRenderState,N=(_=(0,a.I)(),S=(0,l.R)(),w=(x=(0,o._)((0,i.useState)(function(){var e=(0,u.J)(S);return{results:e.results,scopedResults:e.scopedResults}}),2))[0],F=x[1],(0,i.useEffect)(function(){function e(){var e=S.getResults();
9if(null!==e)F({results:e,scopedResults:S.getScopedResults()});else if(0===_.mainIndex.getIndexName().length){var t=_.mainIndex.getWidgets().find(c.l);t&&F({results:(0,u.J)(S).results,scopedResults:t.getScopedResults()})}}return _.addListener("render",e),e(),function(){_.removeListener("render",e)}},[_,S]),w),D=N.results,H=N.scopedResults,L=(0,i.useCallback)(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return P.use.apply(P,(0,n._)(t)),function(){P.unuse.apply(P,(0,n._)(t))}},[P]),U=(0,i.useCallback)(function(){P.refresh()},[P]);return(0,s.E)(function(){if(j){var e=function(){};return P.addListener("error",e),function(){return P.removeListener("error",e)}}return function(){}},[P,j]),{results:D,scopedResults:H,uiState:E,setUiState:A,indexUiState:I,setIndexUiState:T,renderState:C,indexRenderState:k,addMiddlewares:L,refresh:U,status:P.status,error:P.error}}},98735:(e,t,r)=>{"use strict";var n=r(37971);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},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.