1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9913],{39:(e,t,r)=>{"use strict";var n=r(84992);Object.defineProperty(t,"__esModule",{value:!0}),t.FacetSearchResponseAdapter=void 0;var i=n(r(46151)),a=n(r(94969)),o=r(78993);Object.assign((t.FacetSearchResponseAdapter=(0,a.default)(function e(t,r){(0,i.default)(this,e),this.typesenseResponse=t,this.instantsearchRequest=r},[{key:"_adaptFacetHits",value:function(e){var t=this;return e.find(function(e){return e.field_name===t.instantsearchRequest.params.facetName}).counts.map(function(e){return{value:e.value,highlighted:t._adaptHighlightTag(e.highlighted,t.instantsearchRequest.params.highlightPreTag,t.instantsearchRequest.params.highlightPostTag),count:e.count}})}},{key:"adapt",value:function(){return{facetHits:this._adaptFacetHits(this.typesenseResponse.facet_counts),exhaustiveFacetsCount:!0,processingTimeMS:this.typesenseResponse.search_time_ms}}}])).prototype,o.utils)},221:(e,t,r)=>{"use strict";var n=r(29850),i=r(94158),a=r(17643),o=r(36727);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return o(n,a,e)}},885: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},1209:e=>{e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},1238:(e,t,r)=>{"use strict";r.d(t,{$x:()=>s,El:()=>u,O_:()=>o,Uw:()=>a});var n=r(71527);let i=(0,n.createContext)(null);i.displayName="OpenClosedContext";var a=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(a||{});function o(){return(0,n.useContext)(i)}function u(e){let{value:t,children:r}=e;return n.createElement(i.Provider,{value:t},r)}function s(e){let{children:t}=e;return n.createElement(i.Provider,{value:null},t)}},1326:(e,t,r)=>{"use strict";e.exports=r(62960).getPrototypeOf||null},1654:(e,t,r)=>{"use strict";var n=r(84992);Object.defineProperty(t,"__esModule",{value:!0}),t.SearchResponseAdapter=void 0;var i=n(r(14554)),a=n(r(54381)),o=n(r(64494)),u=n(r(45985)),s=n(r(46151)),c=n(r(94969)),l=r(78993);function f(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 d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach(function(t){(0,u.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}Object.assign((t.SearchResponseAdapter=(0,c.default)(function e(t,r,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};(0,s.default)(this,e),this.typesenseResponse=t,this.instantsearchRequest=r,this.configuration=n,this.allTypesenseResults=i,this.fullTypesenseResponse=a},[{key:"_adaptGroupedHits",value:function(e){var t=this,r=[];return r=e.map(function(e){var r=t._adaptHits(e.hits);return r.forEach(function(t){t.group_key=t._group_key=e.group_key,e.found&&(t._group_found=e.found)}),r}),r=this.configuration.flattenGroupedHits?r.flat():r.map(function(e){return d(d({},e[0]),{},{_grouped_hits:e})})}},{key:"_adaptHits",value:function(e){var t=this;return e.map(function(e){var r=d({},e.document);r.objectID=e.document.id,r._snippetResult=t._adaptHighlightResult(e,"snippet"),r._highlightResult=t._adaptHighlightResult(e,"value"),r._rawTypesenseHit=e,t.fullTypesenseResponse.conversation&&(r._rawTypesenseConversation=t.fullTypesenseResponse.conversation),["text_match","geo_distance_meters","curated","text_match_info","hybrid_search_info","vector_distance"].forEach(function(t){Object.keys(e).includes(t)&&!Object.keys(r).includes(t)&&(r[t]=e[t])});var n=r[t.configuration.geoLocationField];return n&&(r._geoloc={lat:n[0],lng:n[1]}),r})}},{key:"_adaptHighlightResult",value:function(e,t){var r={};return null!=e.highlight&&this.isHighlightPost0240RCN32Format(e.highlight)?this.adaptHighlightObject(e,r,t):this.adaptHighlightsArray(e,r,t),r}},{key:"isHighlightPost0240RCN32Format",value:function(e){return null==e.full&&null==e.snippet}},{key:"adaptHighlightsArray",value:function(e,t,r){var n=this;Object.assign.apply(Object,[t].concat((0,o.default)(Object.entries(e.document).map(function(e){var t=(0,a.default)(e,2),r=t[0],n=t[1];return(0,u.default)({},r,{value:n,matchLevel:"none",matchedWords:[]})}
1)))),e.highlights.forEach(function(e){t[e.field]={value:e[r]||e["".concat(r,"s")],matchLevel:"full",matchedWords:e.matched_tokens},e.indices&&(t[e.field].matchedIndices=e.indices)}),Object.entries(t).forEach(function(o){var u=(0,a.default)(o,2),s=u[0],c=u[1],l=c.value,f=c.matchLevel,d=c.matchedWords,h=c.matchedIndices;null==l?t[s]=n._adaptHighlightNullValue():Array.isArray(l)?(t[s]=[],e.document[s].forEach(function(e,a){h&&h.includes(a)?t[s].push({value:n._adaptHighlightTag("".concat(l[h.indexOf(a)]),n.instantsearchRequest.params.highlightPreTag,n.instantsearchRequest.params.highlightPostTag),matchLevel:f,matchedWords:d[a]}):"object"===(0,i.default)(e)?t[s].push(n._adaptHighlightInObjectValue(e,{},r)):t[s].push({value:"".concat(e),matchLevel:"none",matchedWords:[]})})):"object"===(0,i.default)(l)?t[s]=n._adaptHighlightInObjectValue(l,{},r):t[s].value=n._adaptHighlightTag("".concat(l),n.instantsearchRequest.params.highlightPreTag,n.instantsearchRequest.params.highlightPostTag)})}},{key:"adaptHighlightObject",value:function(e,t,r){Object.assign(t,this._adaptHighlightInObjectValue(e.document,e.highlight,r))}},{key:"_adaptHighlightInObjectValue",value:function(e,t,r){var n=this;return Object.assign.apply(Object,[{}].concat((0,o.default)(Object.entries(e).map(function(e){var o,s,c,l=(0,a.default)(e,2),f=l[0],d=l[1];return o=null==d?n._adaptHighlightNullValue():Array.isArray(d)?n._adaptHighlightInArrayValue(d,null!=(s=null==t?void 0:t[f])?s:[],r):"object"===(0,i.default)(d)?n._adaptHighlightInObjectValue(d,null!=(c=null==t?void 0:t[f])?c:{},r):n._adaptHighlightInPrimitiveValue(d,null==t?void 0:t[f],r),(0,u.default)({},f,o)}))))}},{key:"_adaptHighlightInArrayValue",value:function(e,t,r){var n=this;return e.map(function(e,a){var o,u;return null==e?n._adaptHighlightNullValue():Array.isArray(e)?n._adaptHighlightInArrayValue(e,null!=(o=null==t?void 0:t[a])?o:[],r):"object"===(0,i.default)(e)?n._adaptHighlightInObjectValue(e,null!=(u=null==t?void 0:t[a])?u:{},r):n._adaptHighlightInPrimitiveValue(e,null==t?void 0:t[a],r)})}},{key:"_adaptHighlightInPrimitiveValue",value:function(e,t,r){var n,i;return null==t?{value:this._adaptHighlightTag("".concat(e),this.instantsearchRequest.params.highlightPreTag,this.instantsearchRequest.params.highlightPostTag),matchLevel:"none",matchedWords:[]}:{value:this._adaptHighlightTag("".concat(null!=(n=null!=(i=t[r])?i:t.highlight)?n:t.snippet),this.instantsearchRequest.params.highlightPreTag,this.instantsearchRequest.params.highlightPostTag),matchLevel:(t.matched_tokens||[]).length>0?"full":"none",matchedWords:t.matched_tokens||[]}}},{key:"_adaptHighlightNullValue",value:function(){return{value:"",matchLevel:"none",matchedWords:[]}}},{key:"_adaptFacets",value:function(e){var t={};return e.forEach(function(e){Object.assign(t,(0,u.default)({},e.field_name,Object.assign.apply(Object,[{}].concat((0,o.default)(e.counts.map(function(e){return(0,u.default)({},e.value,e.count)}))))))}),t}},{key:"_adaptFacetStats",value:function(e){var t={};return e.forEach(function(e){Object.keys(e.stats).length>0&&Object.assign(t,(0,u.default)({},e.field_name,e.stats))}),t}},{key:"_adaptRenderingContent",value:function(e){var t,r=Object.assign({},this.configuration.renderingContent);return(null==(t=r.facetOrdering)||null==(t=t.facets)?void 0:t.order)==null&&(r.facetOrdering=r.facetOrdering||{},r.facetOrdering.facets=r.facetOrdering.facets||{},r.facetOrdering.facets.order=(0,o.default)(new Set(e.map(function(e){return e.field_name}).concat(this.allTypesenseResults.map(function(e){return e.facet_counts||[]}).flat().map(function(e){return e.field_name}).filter(function(e){return e}))))),r}},{key:"_adaptUserData",value:function(e){return e?Array.isArray(e)?e:[e]:[]}},{key:"adapt",value:function(){var e=this._adaptRenderingContent(this.typesenseResponse.facet_counts||[]),t=d({hits:this.typesenseResponse.grouped_hits?this._adaptGroupedHits(this.typesenseResponse.grouped_hits):this._adaptHits(this.typesenseResponse.hits),nbHits:this.typesenseResponse.found,page:this.typesenseResponse.page-1,nbPages:this._adaptNumberOfPages(),hitsPerPage:this.typesenseResponse.request_params.per_page,facets:this._adaptFacets(this.typesenseResponse.facet_counts||[]),facets_stats:this._adaptFacetStats(this.typesenseResponse.facet_counts||{}),query:this.typesenseResponse.request_params.q,processingTimeMS:this.typesenseResponse.search_time_ms},Object.keys(e).length>0?{renderingContent:e}:null);return this.typesenseResponse.metadata&&(t.appliedRules=["typesense-override"],t.userData=this._adaptUserData(this.typesenseResponse.metadata)),this.fullTypesenseResponse.conversation&&0===t.hits.length&&(t.hits=[{_rawTypesenseConversation:this.fullTypesenseResponse.conversation}]),t}}])).prototype,l.utils)},2001:(e,t,r)=>{"use strict";function n(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}r.d(t,{_:()=>n})},2649:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246),i=n.__importDefault(r(26942));t.default=function(){function e(e,t){this.id=e,this.apiCall=t}return e.prototype.update=function(e){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.put(this.endpointPath(),e)]})})},e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.delete(this.endpointPath())]})})},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.id))},e}()},2818:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246);t.default=function(){function e(){this.responseCache=new Map,this.responsePromiseCache=new Map}return e.prototype.clearCache=function(){this.responseCache=new Map,this.responsePromiseCache=new Map},e.prototype.perform=function(e,t,r,i){return n.__awaiter(this,void 0,void 0,function(){var a,o,u,s,c,l,f,d,h,p,D,m,g,y,v,F,_,E,C,b,R;return n.__generator(this,function(n){switch(n.label){case 0:if(u=void 0===(o=(a=i||{}).cacheResponseForSeconds)?120:o,c=void 0===(s=a.maxSize)?100:s,l=void 0===i||u<=0||c<=0,f=r.path,d=r.queryParams,h=r.body,p=r.headers,D=r.streamConfig,m=r.abortSignal,g=r.responseType,y=r.isStreamingRequest,l)return[2,this.executeRequest(e,t,f,d,h,p,{abortSignal:m,responseType:g,streamConfig:D,isStreamingRequest:y})];if(v=JSON.stringify(r),F=this.responseCache.get(v),_=Date.now(),F){if(_-F.requestTimestamp<1e3*u)return this.responseCache.delete(v),this.responseCache.set(v,F),[2,F.response];this.responseCache.delete(v)}if(E=this.responsePromiseCache.get(v)){if(_-E.requestTimestamp<1e3*u)return this.responsePromiseCache.delete(v),this.responsePromiseCache.set(v,E),[2,E.responsePromise];this.responsePromiseCache.delete(v)}return C=this.executeRequest(e,t,f,d,h,p,{abortSignal:m,responseType:g,streamConfig:D,isStreamingRequest:y}),this.responsePromiseCache.set(v,{requestTimestamp:_,responsePromise:C}),[4,C];case 1:return b=n.sent(),this.responseCache.set(v,{requestTimestamp:_,response:b}),this.responseCache.size>c&&(R=this.responseCache.keys().next().value)&&this.responseCache.delete(R),this.responsePromiseCache.size>c&&(R=this.responsePromiseCache.keys().next().value)&&this.responsePromiseCache.delete(R),[2,b]}})})},e.prototype.executeRequest=function(e,t,r,n,i,a,o){void 0===n&&(n={});var u=e[t];switch(t){case"get":return u.call(e,r,n,{abortSignal:null==o?void 0:o.abortSignal,responseType:null==o?void 0:o.responseType,streamConfig:null==o?void 0:o.streamConfig,isStreamingRequest:null==o?void 0:o.isStreamingRequest});case"delete":return u.call(e,r,n);case"post":return u.call(e,r,i,n,a||{},{abortSignal:null==o?void 0:o.abortSignal,responseType:null==o?void 0:o.responseType,streamConfig:null==o?void 0:o.streamConfig,isStreamingRequest:null==o?void 0:o.isStreamingRequest});case"put":case"patch":return u.call(e,r,i,n);default:throw Error("Unsupported method: ".concat(String(t)))}},e}()},3252:e=>{"use strict";e.exports=Math.floor},3293: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})}},3452:(e,t,r)=>{"use strict";function n(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,{_:()=>n})},3538:(e,t,r)=>{"use strict";r.d(t,{_:()=>o});var n=r(41489),i=r(3452),a=r(9785);function o(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=[],o=!0,u=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){u=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(u)throw n}}return a}}(e,t)||(0,a._)(e,t)||(0,i._)()}},3669: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}},3808:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246),i=n.__importDefault(r(42077));t.default=function(){function e(e,t){this.id=e,this.apiCall=t}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.update=function(e){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.put(this.endpointPath(),e)]})})},e.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.delete(this.endpointPath())]})})},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.id))},e}()},4246:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__addDisposableResource:()=>N,__assign:()=>a,__asyncDelegator:()=>R,__asyncGenerator:()=>b,__asyncValues:()=>S,__await:()=>C,__awaiter:()=>p,__classPrivateFieldGet:()=>j,__classPrivateFieldIn:()=>T,__classPrivateFieldSet:()=>B,__createBinding:()=>m,__decorate:()=>u,__disposeResources:()=>I,__esDecorate:()=>c,__exportStar:()=>g,__extends:()=>i,__generator:()=>D,__importDefault:()=>x,__importStar:()=>
vendor: 7,628 bytes, line 1
1P,__makeTemplateObject:()=>A,__metadata:()=>h,__param:()=>s,__propKey:()=>f,__read:()=>v,__rest:()=>o,__rewriteRelativeImportExtension:()=>H,__runInitializers:()=>l,__setFunctionName:()=>d,__spread:()=>F,__spreadArray:()=>E,__spreadArrays:()=>_,__values:()=>y,default:()=>U});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var a=function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function o(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function u(e,t,r,n){var i,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(o=(a<3?i(o):a>3?i(t,r,o):i(t,r))||o);return a>3&&o&&Object.defineProperty(t,r,o),o}function s(e,t){return function(r,n){t(r,n,e)}}function c(e,t,r,n,i,a){function o(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var u,s=n.kind,c="getter"===s?"get":"setter"===s?"set":"value",l=!t&&e?n.static?e:e.prototype:null,f=t||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),d=!1,h=r.length-1;h>=0;h--){var p={};for(var D in n)p[D]="access"===D?{}:n[D];for(var D in n.access)p.access[D]=n.access[D];p.addInitializer=function(e){if(d)throw TypeError("Cannot add initializers after decoration has completed");a.push(o(e||null))};var m=(0,r[h])("accessor"===s?{get:f.get,set:f.set}:f[c],p);if("accessor"===s){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw TypeError("Object expected");(u=o(m.get))&&(f.get=u),(u=o(m.set))&&(f.set=u),(u=o(m.init))&&i.unshift(u)}else(u=o(m))&&("field"===s?i.unshift(u):f[c]=u)}l&&Object.defineProperty(l,n.name,f),d=!0}function l(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function f(e){return"symbol"==typeof e?e:"".concat(e)}function d(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function h(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function p(e,t,r,n){return new(r||(r=Promise))(function(i,a){function o(e){try{s(n.next(e))}catch(e){a(e)}}function u(e){try{s(n.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,u)}s((n=n.apply(e,t||[])).next())})}function D(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=u(0),o.throw=u(1),o.return=u(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(u){return function(s){var c=[u,s];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&c[0]?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){a.label=c[1];break}if(6===c[0]&&a.label<i[1]){a.label=i[1],i=c;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(c);break}i[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e],n=0}finally{r=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var m=Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function g(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||m(t,e,r)}function y(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o}function F(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(v(arguments[t]));return e}function _(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var a=arguments[t],o=0,u=a.length;o<u;o++,i++)n[i]=a[o];return n}function E(e,t,r){if(r||2==arguments.length)for(var n,i=0,a=t.length;i<a;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function C(e){return this instanceof C?(this.v=e,this):new C(e)}function b(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),a=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),o("next"),o("throw"),o("return",function(e){return function(t){return Promise.resolve(t).then(e,c)}}),n[Symbol.asyncIterator]=function(){return this},n;function o(e,t){i[e]&&(n[e]=function(t){return new Promise(function(r,n){a.push([e,t,r,n])>1||u(e,t)})},t&&(n[e]=t(n[e])))}function u(e,t){try{var r;(r=i[e](t)).value instanceof C?Promise.resolve(r.value.v).then(s,c):l(a[0][2],r)}catch(e){l(a[0][3],e)}}function s(e){u("next",e)}function c(e){u("throw",e)}function l(e,t){e(t),a.shift(),a.length&&u(a[0][0],a[0][1])}}function R(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:C(e[n](t)),done:!1}:i?i(t):t}:i}}function S(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=y(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){var a,o,u;a=n,o=i,u=(t=e[r](t)).done,Promise.resolve(t.value).then(function(e){a({value:e,done:u})},o)})}}}function A(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var w=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},O=function(e){return(O=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)};
1function P(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=O(e),n=0;n<r.length;n++)"default"!==r[n]&&m(t,e,r[n]);return w(t,e),t}function x(e){return e&&e.__esModule?e:{default:e}}function j(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function B(e,t,r,n,i){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}function T(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function N(e,t,r){if(null!=t){var n,i;if("object"!=typeof t&&"function"!=typeof t)throw TypeError("Object expected.");if(r){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(i=n)}if("function"!=typeof n)throw TypeError("Object not disposable.");i&&(n=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var k="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function I(e){function t(t){e.error=e.hasError?new k(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,n=0;return function i(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(i);if(r.dispose){var a=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(a).then(i,function(e){return t(e),i()})}else n|=1}catch(e){t(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function H(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,r,n,i,a){return r?t?".jsx":".js":!n||i&&a?n+i+"."+a.toLowerCase()+"js":e}):e}let U={__extends:i,__assign:a,__rest:o,__decorate:u,__param:s,__esDecorate:c,__runInitializers:l,__propKey:f,__setFunctionName:d,__metadata:h,__awaiter:p,__generator:D,__createBinding:m,__exportStar:g,__values:y,__read:v,__spread:F,__spreadArrays:_,__spreadArray:E,__await:C,__asyncGenerator:b,__asyncDelegator:R,__asyncValues:S,__makeTemplateOb
1ject:A,__importStar:P,__importDefault:x,__classPrivateFieldGet:j,__classPrivateFieldSet:B,__classPrivateFieldIn:T,__addDisposableResource:N,__disposeResources:I,__rewriteRelativeImportExtension:H}},4306:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246);t.default=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t}(n.__importDefault(r(82925)).default)},5219:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246),i=n.__importStar(r(8534)),a=r(75147);t.default=function(){function e(e){var t=this;this.nodes=e.nodes||[],this.nodes=this.nodes.map(function(e){return t.setDefaultPathInNode(e)}).map(function(e){return t.setDefaultPortInNode(e)}).map(function(e){return n.__assign({},e)}),null==e.randomizeNodes&&(e.randomizeNodes=!0),!0===e.randomizeNodes&&this.shuffleArray(this.nodes),this.nearestNode=e.nearestNode,this.nearestNode=this.setDefaultPathInNode(this.nearestNode),this.nearestNode=this.setDefaultPortInNode(this.nearestNode),this.connectionTimeoutSeconds=e.connectionTimeoutSeconds||e.timeoutSeconds||5,this.healthcheckIntervalSeconds=e.healthcheckIntervalSeconds||60,this.numRetries=(void 0!==e.numRetries&&e.numRetries>=0?e.numRetries:this.nodes.length+ +(null!=this.nearestNode))||3,this.retryIntervalSeconds=e.retryIntervalSeconds||.1,this.apiKey=e.apiKey,this.sendApiKeyAsQueryParam=e.sendApiKeyAsQueryParam,this.cacheSearchResultsForSeconds=e.cacheSearchResultsForSeconds||0,this.useServerSideSearchCache=e.useServerSideSearchCache||!1,this.axiosAdapter=e.axiosAdapter,this.logger=e.logger||i,this.logLevel=e.logLevel||"warn",this.logger.setLevel(this.logLevel),this.additionalHeaders=e.additionalHeaders,this.httpAgent=e.httpAgent,this.httpsAgent=e.httpsAgent,this.paramsSerializer=e.paramsSerializer,this.showDeprecationWarnings(e),this.validate()}return e.prototype.validate=function(){if(null==this.nodes||0===this.nodes.length||this.validateNodes())throw new a.MissingConfigurationError("Ensure that nodes[].protocol, nodes[].host and nodes[].port are set");if(null!=this.nearestNode&&this.isNodeMissingAnyParameters(this.nearestNode))throw new a.MissingConfigurationError("Ensure that nearestNodes.protocol, nearestNodes.host and nearestNodes.port are set");if(null==this.apiKey)throw new a.MissingConfigurationError("Ensure that apiKey is set");return!0},e.prototype.validateNodes=function(){var e=this;return this.nodes.some(function(t){return e.isNodeMissingAnyParameters(t)})},e.prototype.isNodeMissingAnyParameters=function(e){return!["protocol","host","port","path"].every(function(t){return e.hasOwnProperty(t)})&&null==e.url},e.prototype.setDefaultPathInNode=function(e){return null==e||e.hasOwnProperty("path")||(e.path=""),e},e.prototype.setDefaultPortInNode=function(e){if(null!=e&&!e.hasOwnProperty("port")&&e.hasOwnProperty("protocol"))switch(e.protocol){case"https":e.port=443;break;case"http":e.port=80}return e},e.prototype.showDeprecationWarnings=function(e){e.timeoutSeconds&&this.logger.warn("Deprecation warning: timeoutSeconds is now renamed to connectionTimeoutSeconds"),e.masterNode&&this.logger.warn("Deprecation warning: masterNode is now consolidated to nodes, starting with Typesense Server v0.12"),e.readReplicaNodes&&this.logger.warn("Deprecation warning: readReplicaNodes is now consolidated to nodes, starting with Typesense Server v0.12")},e.prototype.shuffleArray=function(e){for(var t,r=e.length-1;r>0;r--){var n=Math.floor(Math.random()*(r+1));t=[e[n],e[r]],e[r]=t[0],e[n]=t[1]}},e}()},6571:(e,t,r)=>{"use strict";r.d(t,{R:()=>o});var n=r(71527),i=r(20846),a=r(79099);function o(){var e=(0,n.useContext)(i.m);return(0,a.V)(null!==e),e}},8534:function(e,t,r){var n,i;!function(a,o){"use strict";void 0===(i="function"==typeof(n=o)?n.call(t,r,t,e):n)||(e.exports=i)}(0,function(){"use strict";var e=function(){},t="undefined",r=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"],i={},a=null;function o(e,t){var r=e[t];if("function"==typeof r.bind)return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(t){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function u(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function s(){for(var r=this.getLevel(),i=0;i<n.length;i++){var a=n[i];this[a]=i<r?e:this.methodFactory(a,r,this.name)}if(this.log=this.debug,typeof console===t&&r<this.levels.SILENT)return"No console available for logging"}function c(e){return function(){typeof console!==t&&(s.call(this),this[e].apply(this,arguments))}}function l(n,i,a){var s;return"debug"===(s=n)&&(s="log"),typeof console!==t&&("trace"===s&&r?u:void 0!==console[s]?o(console,s):void 0!==console.log?o(console,"log"):e)||c.apply(this,arguments)}function f(e,r){var o,u,c,f=this,d="loglevel";function h(){var e;if(typeof window!==t&&d){try{e=window.localStorage[d]}catch(e){}if(typeof e===t)try{var r=window.document.cookie,n=encodeURIComponent(d),i=r.indexOf(n+"=");-1!==i&&(e=/^([^;]+)/.exec(r.slice(i+n.length+1))[1])}catch(e){}return void 0===f.levels[e]&&(e=void 0),e}}function p(e){var t=e;if("string"==typeof t&&void 0!==f.levels[t.toUpperCase()]&&(t=f.levels[t.toUpperCase()]),"number"==typeof t&&t>=0&&t<=f.levels.SILENT)return t;
1throw TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?d+=":"+e:"symbol"==typeof e&&(d=void 0),f.name=e,f.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},f.methodFactory=r||l,f.getLevel=function(){return null!=c?c:null!=u?u:o},f.setLevel=function(e,r){return c=p(e),!1!==r&&function(e){var r=(n[e]||"silent").toUpperCase();if(typeof window!==t&&d){try{window.localStorage[d]=r;return}catch(e){}try{window.document.cookie=encodeURIComponent(d)+"="+r+";"}catch(e){}}}(c),s.call(f)},f.setDefaultLevel=function(e){u=p(e),h()||f.setLevel(e,!1)},f.resetLevel=function(){if(c=null,typeof window!==t&&d){try{window.localStorage.removeItem(d)}catch(e){}try{window.document.cookie=encodeURIComponent(d)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}s.call(f)},f.enableAll=function(e){f.setLevel(f.levels.TRACE,e)},f.disableAll=function(e){f.setLevel(f.levels.SILENT,e)},f.rebuild=function(){if(a!==f&&(o=p(a.getLevel())),s.call(f),a===f)for(var e in i)i[e].rebuild()},o=p(a?a.getLevel():"WARN");var D=h();null!=D&&(c=p(D)),s.call(f)}(a=new f).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw TypeError("You must supply a name when creating a logger.");var t=i[e];return t||(t=i[e]=new f(e,a.methodFactory)),t};var d=typeof window!==t?window.log:void 0;return a.noConflict=function(){return typeof window!==t&&window.log===a&&(window.log=d),a},a.getLoggers=function(){return i},a.default=a,a})},8812:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(62477).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},8817:(e,t,r)=>{"use strict";r.d(t,{Y:()=>h});var n=r(57906),i=r(60951),a=r(21374),o=r(94292),u=r(61286),s=r(13604),c=r(71527),l=r(57898),f=r(77559);function d(e){var t=e.classNames,r=void 0===t?{}:t,i=(0,a._)(e,["classNames"]);return c.createElement(f.G,(0,n._)({classNames:{root:(0,l.cx)("ais-Snippet",r.root),highlighted:(0,l.cx)("ais-Snippet-highlighted",r.highlighted),nonHighlighted:(0,l.cx)("ais-Snippet-nonHighlighted",r.nonHighlighted),separator:(0,l.cx)("ais-Snippet-separator",r.separator)}},i))}function h(e){var t=e.hit,r=e.attribute,l=e.highlightedTagName,f=e.nonHighlightedTagName,h=e.separator,p=(0,a._)(e,["hit","attribute","highlightedTagName","nonHighlightedTagName","separator"]),D=(0,o.E)(t._snippetResult,r)||[],m=(Array.isArray(D)?D:[D]).map(function(e){return(0,u.I)((0,s.x)(e.value||""))});return c.createElement(d,(0,i._)((0,n._)({},p),{parts:m,highlightedTagName:l,nonHighlightedTagName:f,separator:h}))}},9401:(e,t,r)=>{"use strict";var n=r(32512),i=r(44132),a=r(24607).escapeFacetValue,o=r(88420),u=r(23544),s=r(97017),c=r(3669),l=r(20235),f=r(885),d=r(67678),h=r(17765),p=r(70723),D=r(83841),m=r(82798);function g(e,t,r,n){"function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+m+")"),this.setClient(e);var i=r||{};i.index=t,this.state=h.make(i),this.recommendState=new l({params:i.recommendState}),this.lastResults=null,this.lastRecommendResults=null,this._queryId=0,this._recommendQueryId=0,this._lastQueryIdReceived=-1,this._lastRecommendQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0,this._currentNbRecommendQueries=0,this._searchResultsOptions=n,this._recommendCache={}}function y(e){if(e<0)throw Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}function v(){return this.state.page}o(g,n),g.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},g.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},g.prototype.searchWithComposition=function(){return this._runComposition({onlyWithDerivedHelpers:!0}),this},g.prototype.recommend=function(){return this._recommend(),this},g.prototype.getQuery=function(){var e=this.state;return d._getHitsSearchParams(e)},g.prototype.searchOnce=function(e,t){var r=e?this.state.setQueryParameters(e):this.state,n=d._getQueries(r.index,r),i=this;return(this._currentNbQueries++,this.emit("searchOnce",{state:r}),t)?void this.client.search(n).then(function(e){i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),t(null,new 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})},g.prototype.findAnswers=function(e){var t=this.state,r=this.derivedHelpers[0];if(!r)return Promise.resolve([]);var n=r.getModifiedState(t),i=u({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:c(d._getHitsSearchParams(n),["attributesToSnippet","hitsPerPage","restrictSearchableAttributes","snippetEllipsisText"])}),a="search for answers was called, but this client does not have a function client.initIndex(index).findAnswers";if("function"!=typeof this.client.initIndex)throw Error(a);var o=this.client.initIndex(n.index);if("function"!=typeof o.findAnswers)throw Error(a);return o.findAnswers(n.query,e.queryLanguages,i)},g.prototype.searchForFacetValues=function(e,t,r,n){var i,o="function"==typeof this.client.searchForFacetValues&&"function"!=typeof this.client.searchForFacets,u="function"==typeof this.client.initIndex;if(!o&&!u&&"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 s=this.state.setQueryParameters(n||{}),c=s.isDisjunctiveFacet(e),l=d.getSearchForFacetQuery(e,t,r,s);this._currentNbQueries++;var f=this;o?i=this.client.searchForFacetValues([{indexName:s.index,params:l}]):u?i=this.client.initIndex(s.index).searchForFacetValues(l):(delete l.facetName,i=this.client.search([{type:"facet",facet:e,indexName:s.index,params:l}]).then(function(e){return e.results[0]}
vendor: 9,412 bytes, line 1
1)),this.emit("searchForFacetValues",{state:s,facet:e,query:t});var h=this.lastResults&&this.lastResults.index===s.index&&this.lastResults.renderingContent&&this.lastResults.renderingContent.facetOrdering&&this.lastResults.renderingContent.facetOrdering.values&&this.lastResults.renderingContent.facetOrdering.values[e]&&this.lastResults.renderingContent.facetOrdering.values[e].hide||[];return i.then(function(t){return f._currentNbQueries--,0===f._currentNbQueries&&f.emit("searchQueueEmpty"),(t=Array.isArray(t)?t[0]:t).facetHits=t.facetHits.reduce(function(t,r){return h.indexOf(r.value)>-1||(r.escapedValue=a(r.value),r.isRefined=c?s.isDisjunctiveFacetRefined(e,r.escapedValue):s.isFacetRefined(e,r.escapedValue),t.push(r)),t},[]),t},function(e){throw f._currentNbQueries--,0===f._currentNbQueries&&f.emit("searchQueueEmpty"),e})},g.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,o=this.state.setQueryParameters(n||{}),u=o.isDisjunctiveFacet(e);this._currentNbQueries++;var s=this;return i=this.client.searchForFacetValues({compositionID:o.index,facetName:e,searchForFacetValuesRequest:{params:{query:t,maxFacetHits:r,searchQuery:d._getCompositionHitsSearchParams(o)}}}),this.emit("searchForFacetValues",{state:o,facet:e,query:t}),i.then(function(t){return s._currentNbQueries--,0===s._currentNbQueries&&s.emit("searchQueueEmpty"),(t=t.results[0]).facetHits.forEach(function(t){t.escapedValue=a(t.value),t.isRefined=u?o.isDisjunctiveFacetRefined(e,t.escapedValue):o.isFacetRefined(e,t.escapedValue)}),t},function(e){throw s._currentNbQueries--,0===s._currentNbQueries&&s.emit("searchQueueEmpty"),e})},g.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this},g.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this},g.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},g.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},g.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},g.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this},g.prototype.addNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,r),isPageReset:!0}),this},g.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this},g.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},g.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this},g.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},g.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this},g.prototype.addFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.addFrequentlyBoughtTogether(e)}),this},g.prototype.addRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.addRelatedProducts(e)}),this},g.prototype.addTrendingItems=function(e){return this._recommendChange({state:this.recommendState.addTrendingItems(e)}),this},g.prototype.addTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.addTrendingFacets(e)}),this},g.prototype.addLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.addLookingSimilar(e)}),this},g.prototype.removeNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,r),isPageReset:!0}),this},g.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},g.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},g.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this},g.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this},g.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},g.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this},g.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},g.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this},g.prototype.removeFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},g.prototype.removeRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},g.prototype.removeTrendingItems=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},g.prototype.removeTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},g.prototype.removeLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},g.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this},g.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},g.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},g.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this},g.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},g.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this},g.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)},g.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)},g.prototype.setCurrentPage=y,g.prototype.setPage=y,g.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this},g.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this},g.prototype.setState=function(e){return this._change({state:h.make(e),isPageReset:!1}),this},g.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new h(e),this},g.prototype.hasRefinements=function(e){return!!s(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))},g.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},g.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},g.prototype.hasTag=function(e){return this.state.isTagRefined(e)},g.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},g.prototype.getIndex=function(){return this.state.index},g.prototype.getCurrentPage=v,g.prototype.getPage=v,g.prototype.getTags=function(){return this.state.tagRefinements},g.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},g.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},g.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},g.prototype._search=function(e){var t=this.state,r=[],n=[];e.onlyWithDerivedHelpers||(n=d._getQueries(t.index,t),r.push({state:t,queriesCount:n.length,helper:this}),this.emit("search",{state:t,results:this.lastResults}));var i=this.derivedHelpers.map(function(e){var n=e.getModifiedState(t),i=n.index?d._getQueries(n.index,n):[];return r.push({state:n,queriesCount:i.length,helper:e}),e.emit("search",{state:n,results:e.lastResults}),i}),a=Array.prototype.concat.apply(n,i),o=this._queryId++;if(this._currentNbQueries++,!a.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,r,o));
1try{this.client.search(a).then(this._dispatchAlgoliaResponse.bind(this,r,o)).catch(this._dispatchAlgoliaError.bind(this,o))}catch(e){this.emit("error",{error:e})}},g.prototype._runComposition=function(){var e=this.state,t=[],r=this.derivedHelpers.map(function(r){var n=r.getModifiedState(e),i=d._getCompositionQueries(n);return t.push({state:n,helper:r}),r.emit("search",{state:n,results:r.lastResults}),i}),n=Array.prototype.concat.apply([],r),i=this._queryId++;if(this._currentNbQueries++,!n.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,t,i));if(n.length>1)throw Error("Only one query is allowed when using a composition.");var a=n[0];try{this.client.search(a).then(this._dispatchAlgoliaResponse.bind(this,t,i)).catch(this._dispatchAlgoliaError.bind(this,i))}catch(e){this.emit("error",{error:e})}},g.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,o=this.derivedHelpers.map(function(t){var r=t.getModifiedState(e).index;if(!r)return[];var o=t.getModifiedRecommendState(new l);return n.push({state:o,index:r,helper:t}),i=Array.prototype.concat.apply(i,o.params.map(function(e){return e.$$id})),t.emit("fetch",{recommend:{state:o,results:t.lastRecommendResults}}),o._buildQueries(r,a)}),u=Array.prototype.concat.apply(this.recommendState._buildQueries(r,a),o);if(0!==u.length&&(!(u.length>0)||void 0!==this.client.getRecommendations)){var s=this._recommendQueryId++;this._currentNbRecommendQueries++;try{this.client.getRecommendations(u).then(this._dispatchRecommendResponse.bind(this,s,n,i)).catch(this._dispatchRecommendError.bind(this,s))}catch(e){this.emit("error",{error:e})}}},g.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,o=e.helper,u=void 0!==r?i.splice(0,r):i;if(!t.index)return void o.emit("result",{results:null,state:t});if(u.length>0&&u[0].feedID){var s=u.map(function(e){var r=new p(t,[e],n._searchResultsOptions);return void 0!==a&&(r._rawContent=a),r});o.lastResults=new p(t,[u[0]],n._searchResultsOptions),o.lastResults.feeds=s,void 0!==a&&(o.lastResults._rawContent=a)}else o.lastResults=new p(t,u,n._searchResultsOptions),void 0!==a&&(o.lastResults._rawContent=a);o.emit("result",{results:o.lastResults,state:t})})}},g.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],o=n.results[t[0]];if(1===t.length){i[e]=o;return}i[e]=Object.assign({},o,{hits:D(r,t.map(function(e){return n.results[e].hits}))})});var o={};r.forEach(function(e){o[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,o),r.emit("recommend:result",{recommend:{results:r.lastRecommendResults,state:t}})})}},g.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"))},g.prototype._dispatchRecommendError=function(e,t){e<this._lastRecommendQueryIdReceived||(this._currentNbRecommendQueries-=e-this._lastRecommendQueryIdReceived,this._lastRecommendQueryIdReceived=e,this.emit
1("error",{error:t}),0===this._currentNbRecommendQueries&&this.emit("recommendQueueEmpty"))},g.prototype.containsRefinement=function(e,t,r,n){return e||0!==t.length||0!==r.length||0!==n.length},g.prototype._hasDisjunctiveRefinements=function(e){return this.state.disjunctiveRefinements[e]&&this.state.disjunctiveRefinements[e].length>0},g.prototype._change=function(e){var t=e.state,r=e.isPageReset;t!==this.state&&(this.state=t,this.emit("change",{state:this.state,results:this.lastResults,isPageReset:r}))},g.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}}))},g.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},g.prototype.setClient=function(e){return this.client===e||("function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+m+")"),this.client=e),this},g.prototype.getClient=function(){return this.client},g.prototype.derive=function(e,t){var r=new i(this,e,t);return this.derivedHelpers.push(r),r},g.prototype.detachDerivedHelper=function(e){var t=this.derivedHelpers.indexOf(e);if(-1===t)throw Error("Derived helper already detached");this.derivedHelpers.splice(t,1)},g.prototype.hasPendingRequests=function(){return this._currentNbQueries>0},e.exports=g},9785:(e,t,r)=>{"use strict";r.d(t,{_:()=>i});var n=r(61192);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)}}},9964:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246);t.default=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t}(n.__importDefault(r(82925)).default)},10107:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246),i=n.__importDefault(r(61792)),a=n.__importDefault(r(71191)),o=r(75147),u=n.__importDefault(r(27868)),s=n.__importDefault(r(36751)),c=n.__importDefault(r(41345)),l=n.__importDefault(r(25564)),f=r(82810);t.default=function(){function e(e,t,r){this.name=e,this.apiCall=t,this.configuration=r,this.individualDocuments={},this.individualOverrides={},this.individualSynonyms={},this.name=e,this.apiCall=t,this.configuration=r,this._documents=new a.default(this.name,this.apiCall,this.configuration),this._overrides=new u.default(this.name,this.apiCall),this._synonyms=new c.default(this.name,this.apiCall)}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.update=function(e){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.patch(this.endpointPath(),e)]})})},e.prototype.delete=function(e){return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.delete(this.endpointPath(),e)]})})},e.prototype.exists=function(){return n.__awaiter(this,void 0,void 0,function(){var e;return n.__generator(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.retrieve()];case 1:return t.sent(),[2,!0];case 2:if((e=t.sent())instanceof o.ObjectNotFound)return[2,!1];throw e;case 3:return[2]}})})},e.prototype.documents=function(e){return e?(void 0===this.individualDocuments[e]&&(this.individualDocuments[e]=new f.Document(this.name,e,this.apiCall)),this.individualDocuments[e]):this._documents},e.prototype.overrides=function(e){return void 0===e?this._overrides:(void 0===this.individualOverrides[e]&&(this.individualOverrides[e]=new s.default(this.name,e,this.apiCall)),this.individualOverrides[e])},e.prototype.synonyms=function(e){return void 0===e?this._synonyms:(void 0===this.individualSynonyms[e]&&(this.individualSynonyms[e]=new l.default(this.name,e,this.apiCall)),this.individualSynonyms[e])},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.name))},e}()},11525:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246),i=n.__importDefault(r(92141));t.default=function(){function e(e,t){this.name=e,this.apiCall=t}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.delete(this.endpointPath())]})})},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.name))},e}()},12206:(e,t,r)=>{"use strict";var n=r(68707),i=r(45047),a=r(47920),o=Object.prototype.hasOwnProperty,u=Array.isArray,s=i(),c=function(e,t){return s.set(e,t),e},l=function(e){return s.has(e)},f=function(e){return s.get(e)},d=function(e,t){s.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}(),p=function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(u(r)){for(var n=[],i=0;i<r.length;++i)void 0!==r[i]&&(n[n.length]=r[i]);t.obj[t.prop]=n}}},D=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},m=function(e,t,r){"__proto__"===t&&a?a(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r};e.exports={arrayToObject:D,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return m(e,r,t[r]),e},e)},combine:function(e,t,r,n,i){if(l(e)){if(i)throw RangeError("Array limit exceeded. Only "+r+" element"+(1===r?"":"s")+" allowed in an array.");var a=f(e)+1;return e[a]=t,d(e,a),e}var o=[].concat(e,t);if(o.length>r){if(i)throw RangeError("Array limit exceeded. Only "+r+" element"+(1===r?"":"s")+" allowed in an array.");return c(D(o,{plainObjects:n}),o.length-1)}return o},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=i(),n=0;n<t.length;++n)for(var a=t[n],o=a.obj[a.prop],u=Object.keys(o),s=0;s<u.length;++s){var c=u[s],l=o[c];"object"!=typeof l||null===l||r.has(l)||(t[t.length]={obj:o,prop:c},r.set(l,!0))}return p(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("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 o=e;if("symbol"==typeof e?o=Symbol.prototype.toString.call(e):"string"!=typeof e&&(o=String(e)),"iso-8859-1"===r)return escape(o).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var u="",s=0;s<o.length;s+=1024){var c=o.length>=1024?o.slice(s,s+1024):o;if(s+1024<o.length){var l=c.charCodeAt(c.length-1);l>=55296&&l<=56319&&(c=c.slice(0,-1),s-=1)}for(var f=[],d=0;d<c.length;++d){var p=c.charCodeAt(d);if(45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||a===n.RFC1738&&(40===p||41===p)){f[f.length]=c.charAt(d);continue}if(p<128){f[f.length]=h[p];continue}if(p<2048){f[f.length]=h[192|p>>6]+h[128|63&p];continue}if(p<55296||p>=57344){f[f.length]=h[224|p>>12]+h[128|p>>6&63]+h[128|63&p];continue}d+=1,p=65536+((1023&p)<<10|1023&c.charCodeAt(d)),f[f.length]=h[240|p>>18]+h[128|p>>12&63]+h[128|p>>6&63]+h[128|63&p]}u+=f.join("")}return u},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:l,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:c,maybeMap:function(e,t){if(u(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(u(t)){var i=t.length;if(n&&"number"==typeof n.arrayLimit&&i>=n.arrayLimit){if(n.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");return c(D(t.concat(r),n),i)}t[i]=r}else if(!t||"object"!=typeof t)return[t,r];else if(l(t)){var a=f(t)+1;t[a]=r,d(t,a)}else{if(n&&n.strictMerge)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!o.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t){if(l(r)){for(var s=Object.keys(r),h=n&&n.plainObjects?{__proto__:null,0:t}:{0:t},p=0;p<s.length;p++)h[parseInt(s[p],10)+1]=r[s[p]];return c(h,f(r)+1)}var g=[t].concat(r);if(n&&"number"==typeof n.arrayLimit&&g.length>n.arrayLimit){if(n.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");return c(D(g,n),g.length-1)}return g}var y=t;if(u(t)&&!u(r)&&(y=D(t,n)),u(t)&&u(r)){if(r.forEach(function(r,i){if(o.c
1all(t,i)){var a=t[i];a&&"object"==typeof a&&r&&"object"==typeof r?t[i]=e(a,r,n):t[t.length]=r}else t[i]=r}),n&&"number"==typeof n.arrayLimit&&t.length>n.arrayLimit){if(n.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");return c(D(t,n),t.length-1)}return t}return Object.keys(r).reduce(function(t,i){var a=r[i];if(o.call(t,i)?m(t,i,e(t[i],a,n)):m(t,i,a),l(r)&&!l(t)&&c(t,f(r)),l(t)){var u=parseInt(i,10);String(u)===i&&u>=0&&u>f(t)&&d(t,u)}return t},y)}}},12759:e=>{"use strict";e.exports=ReferenceError},13433:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246);t.default=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t}(n.__importDefault(r(82925)).default)},13604:(e,t,r)=>{"use strict";r.d(t,{i:()=>o,x:()=>l});var n={"&":"&","<":"<",">":">",'"':""","'":"'"},i=/[&<>"']/g,a=RegExp(i.source);function o(e){return e&&a.test(e)?e.replace(i,function(e){return n[e]}):e}var u={"&":"&","<":"<",">":">",""":'"',"'":"'"},s=/&(amp|quot|lt|gt|#39);/g,c=RegExp(s.source);function l(e){return e&&c.test(e)?e.replace(s,function(e){return u[e]}):e}},13668:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246);t.default=function(){function e(e){this.apiCall=e,this.apiCall=e}return e.prototype.upsert=function(e,t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(r){return[2,this.apiCall.put(this.endpointPath(e),t)]})})},e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.endpointPath=function(t){return"".concat(e.RESOURCEPATH).concat(void 0===t?"":"/"+encodeURIComponent(t))},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return"/analytics/rules"},enumerable:!1,configurable:!0}),e}()},16030:(e,t,r)=>{"use strict";r.d(t,{f:()=>E});var n=r(57906),i=r(21374),a=r(60951),o=r(57898),u=r(71527),s=r(44236),c=r(3538),l=r(2001),f=r(29081);function d(e){var t=e.helper,r=e.widgetType;e.methodName;var i=e.args,a=e.instantSearchInstance;if(1===i.length&&"object"===(0,l._)(i[0]))return[i[0]];var o=(0,c._)(i[0].split(":"),2),u=o[0],s=o[1],f=i[1],d=i[2],h=i[3]||{};if(!f||("click"===u||"conversion"===u)&&!d)return[];var p=Array.isArray(f)?f:[f];if(0===p.length)return[];var D=p[0].__queryID,m=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20,r=[],n=0;n<Math.ceil(e.length/t);n++)r.push(e.slice(n*t,(n+1)*t));return r}(p),g=m.map(function(e){return e.map(function(e){return e.objectID})}),y=m.map(function(e){return e.map(function(e){return e.__position})});return"view"===u?"idle"!==a.status?[]:m.map(function(e,i){var a;return{insightsMethod:"viewedObjectIDs",widgetType:r,eventType:u,payload:(0,n._)({eventName:d||"Hits Viewed",index:(null==(a=t.lastResults)?void 0:a.index)||t.state.index,objectIDs:g[i]},h),hits:e,eventModifier:s}}):"click"===u?m.map(function(e,i){var a;return{insightsMethod:"clickedObjectIDsAfterSearch",widgetType:r,eventType:u,payload:(0,n._)({eventName:d||"Hit Clicked",index:(null==(a=t.lastResults)?void 0:a.index)||t.state.index,queryID:D,objectIDs:g[i],positions:y[i]},h),hits:e,eventModifier:s}}):"conversion"===u?m.map(function(e,i){var a;return{insightsMethod:"convertedObjectIDsAfterSearch",widgetType:r,eventType:u,payload:(0,n._)({eventName:d||"Hit Converted",index:(null==(a=t.lastResults)?void 0:a.index)||t.state.index,queryID:D,objectIDs:g[i]},h),hits:e,eventModifier:s}}):[]}var h=r(69641),p=r(73650),D=r(24585),m=r(19137),g=(0,h.V)({name:"hits",connector:!0}),y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m.l;return(0,p.t)(e,g()),function(r){var i,o,u=r||{},c=u.escapeHTML,l=void 0===c||c,h=u.transformItems,p=void 0===h?function(e){return e}:h;return{$$type:"ais.hits",init:function(t){e((0,a._)((0,n._)({},this.getWidgetRenderState(t)),{instantSearchInstance:t.instantSearchInstance}),!0)},render:function(t){var r=this.getWidgetRenderState(t);e((0,a._)((0,n._)({},r),{instantSearchInstance:t.instantSearchInstance}),!1),r.sendEvent("view:internal",r.items)},getRenderState:function(e,t){return(0,a._)((0,n._)({},e),{hits:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t,u,s,c,h,m,g,y,v,F,_,E,C,b,R,S,A,w,O=e.results,P=e.helper,x=e.instantSearchInstance;if(i||(u=(t={instantSearchInstance:x,helper:P,widgetType:this.$$type}).instantSearchInstance,s=t.helper,c=t.widgetType,h={},m=void 0,i=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d({widgetType:c,helper:s,methodName:"sendEvent",args:t,instantSearchInstance:u}
1).forEach(function(e){"click"===e.eventType&&"internal"===e.eventModifier&&h[e.eventType]||(h[e.eventType]=!0,u.sendEventToInsights(e))}),clearTimeout(m),m=setTimeout(function(){h={}},0)}),o||(y=(g={helper:P,widgetType:this.$$type,instantSearchInstance:x}).helper,v=g.widgetType,F=g.instantSearchInstance,o=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=d({widgetType:v,helper:y,methodName:"bindEvent",args:t,instantSearchInstance:F});return n.length?"data-insights-event=".concat((0,f.h)(n)):""}),!O)return{hits:[],items:[],results:void 0,banner:void 0,sendEvent:i,bindEvent:o,widgetParams:r};l&&O.hits.length>0&&(O.hits=(0,D.S8)(O.hits));var j=p((_=O.hits,E=O.page,C=O.hitsPerPage,b=_.map(function(e,t){return(0,a._)((0,n._)({},e),{__position:C*E+t+1})}),(R=O.queryID)?b.map(function(e){return(0,a._)((0,n._)({},e),{__queryID:R})}):b),{results:O}),B=null==(w=O.renderingContent)||null==(A=w.widgets)||null==(S=A.banners)?void 0:S[0];return{hits:j,items:j,results:O,banner:B,sendEvent:i,bindEvent:o,widgetParams:r}},dispose:function(e){var r=e.state;return(t(),l)?r.setQueryParameters(Object.keys(D.FU).reduce(function(e,t){return(0,a._)((0,n._)({},e),(0,s._)({},t,void 0))},{})):r},getWidgetSearchParameters:function(e,t){return l?e.setQueryParameters(D.FU):e}}}},v=r(63361);function F(e){var t=e.hit;return u.createElement("div",{style:{wordBreak:"break-all"}},JSON.stringify(t).slice(0,100),"…")}var _=function(e){var t,r=e.createElement,u=(t=({createElement:r,Fragment:e.Fragment}).createElement,function(e){var r=e.classNames,n=e.banner;return n.image.urls[0].url?t("aside",{className:(0,o.cx)("ais-Hits-banner",r.bannerRoot)},n.link?t("a",{className:(0,o.cx)("ais-Hits-banner-link",r.bannerLink),href:n.link.url,target:n.link.target},t("img",{className:(0,o.cx)("ais-Hits-banner-image",r.bannerImage),src:n.image.urls[0].url,alt:n.image.title})):t("img",{className:(0,o.cx)("ais-Hits-banner-image",r.bannerImage),src:n.image.urls[0].url,alt:n.image.title})):null});return function(e){var t=e.classNames,s=void 0===t?{}:t,c=e.hits,l=e.itemComponent,f=e.sendEvent,d=e.emptyComponent,h=e.banner,p=e.bannerComponent,D=(0,i._)(e,["classNames","hits","itemComponent","sendEvent","emptyComponent","banner","bannerComponent"]);return r("div",(0,a._)((0,n._)({},D),{className:(0,o.cx)("ais-Hits",s.root,0===c.length&&(0,o.cx)("ais-Hits--empty",s.emptyRoot),D.className)}),h&&(p?r(p,{className:(0,o.cx)("ais-Hits-banner",s.bannerRoot),banner:h}):r(u,{classNames:s,banner:h})),0===c.length&&d?r(d,null):r("ol",{className:(0,o.cx)("ais-Hits-list",s.list)},c.map(function(e,t){return r(l,{key:e.objectID,hit:e,index:t,className:(0,o.cx)("ais-Hits-item",s.item),onClick:function(){f("click:internal",e,"Hit Clicked")},onAuxClick:function(){f("click:internal",e,"Hit Clicked")}})})))}}({createElement:u.createElement,Fragment:u.Fragment});function E(e){var t,r,a=e.escapeHTML,o=e.transformItems,s=e.hitComponent,c=void 0===s?F:s,l=e.bannerComponent,f=(0,i._)(e,["escapeHTML","transformItems","hitComponent","bannerComponent"]),d=(t={escapeHTML:a,transformItems:o},r={$$widgetType:"ais.hits"},(0,v.Z)(y,t,r)),h=d.hits,p=d.banner,D=d.sendEvent,m=(0,u.useMemo)(function(){return function(e){var t=e.hit;e.index;var r=(0,i._)(e,["hit","index"]);return u.createElement("li",(0,n._)({key:t.objectID},r),u.createElement(c,{hit:t,sendEvent:D}))}},[c,D]);return u.createElement(_,(0,n._)({},f,{hits:h,sendEvent:D,itemComponent:m,banner:p,bannerComponent:!1===l?function(){return null}:l}))}},16443:(e,t,r)=>{var n=r(94407);e.exports=function(e){if(Array.isArray(e))return n(e)},e.exports.__esModule=!0,e.exports.default=e.exports},16494:(e,t,r)=>{"use strict";r.d(t,{E:()=>i});var n=r(71527),i="undefined"!=typeof window?n.useLayoutEffect:n.useEffect},17168:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246);t.default=function(){function e(e){this.apiCall=e}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get("/metrics.json")]})})},e}()},17415:(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,o=n&&Map.prototype.forEach,u="function"==typeof Set&&Set.prototype,s=Object.getOwnPropertyDescriptor&&u?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=u&&s&&"function"==typeof s.get?s.get:null,l=u&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,D=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,y=String.prototype.slice,v=String.prototype.replace,F=String.prototype.toUpperCase,_=String.prototype.toLowerCase,E=RegExp.prototype.test,C=Array.prototype.concat,b=Array.prototype.join,R=Array.prototype.slice,S=Math.floor,A="function"==typeof BigInt?BigInt.prototype.valueOf:null,w=Object.getOwnPropertySymbols,O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,P="function"==typeof Symbol&&"object"==typeof Symbol.iterator,x="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===P?"object":"symbol")?Symbol.toStringTag:null,j=Object.prototype.propertyIsEnumerable,B=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function T(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||E.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-S(-e):S(e);if(n!==e){var i=String(n),a=y.call(t,i.length+1);return v.call(i,r,"$&_")+"."+v.call(v.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,r,"$&_")}var N=r(14058),k=N.custom,I=Q(k)?k:null,H={__proto__:null,double:'"',single:"'"},U={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function L(e,t,r){var n=H[r.quoteStyle||t];return n+e+n}function M(e){return!x||!("object"==typeof e&&(x in e||void 0!==e[x]))}function q(e){return"[object Array]"===z(e)&&M(e)}function W(e){return"[object RegExp]"===z(e)&&M(e)}function Q(e){if(P)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;
1if(!e||"object"!=typeof e||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,i,u){var s,D,F,E,S,w=n||{};if(V(w,"quoteStyle")&&!V(H,w.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(V(w,"maxStringLength")&&("number"==typeof w.maxStringLength?w.maxStringLength<0&&w.maxStringLength!==1/0:null!==w.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var k=!V(w,"customInspect")||w.customInspect;if("boolean"!=typeof k&&"symbol"!==k)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V(w,"indent")&&null!==w.indent&&" "!==w.indent&&!(parseInt(w.indent,10)===w.indent&&w.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(V(w,"numericSeparator")&&"boolean"!=typeof w.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var $=w.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,r){if(t.length>r.maxStringLength){var n=t.length-r.maxStringLength;return e(y.call(t,0,r.maxStringLength),r)+("... "+n)+" more character"+(n>1?"s":"")}var i=U[r.quoteStyle||"single"];return i.lastIndex=0,L(v.call(v.call(t,i,"\\$1"),/[\x00-\x1f]/g,K),"single",r)}(t,w);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var et=String(t);return $?T(t,et):et}if("bigint"==typeof t){var er=String(t)+"n";return $?T(t,er):er}var en=void 0===w.depth?5:w.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=b.call(Array(e.indent+1)," ")}return{base:r,prev:b.call(Array(t+1),r)}}(w,i);if(void 0===u)u=[];else if(J(u,t)>=0)return"[Circular]";function ea(t,r,n){if(r&&(u=R.call(u)).push(r),n){var a={depth:w.depth};return V(w,"quoteStyle")&&(a.quoteStyle=w.quoteStyle),e(t,a,i+1,u)}return e(t,w,i+1,u)}if("function"==typeof t&&!W(t)){var eo=function(e){if(e.name)return e.name;var t=g.call(m.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),eu=ee(t,ea);return"[Function"+(eo?": "+eo:" (anonymous)")+"]"+(eu.length>0?" { "+b.call(eu,", ")+" }":"")}if(Q(t)){var es=P?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):O.call(t);return"object"!=typeof t||P?es:G(es)}if((ec=t)&&"object"==typeof ec&&("undefined"!=typeof HTMLElement&&ec instanceof HTMLElement||"string"==typeof ec.nodeName&&"function"==typeof ec.getAttribute)){for(var ec,el,ef="<"+_.call(String(t.nodeName)),ed=t.attributes||[],eh=0;eh<ed.length;eh++){ef+=" "+ed[eh].name+"="+L((el=ed[eh].value,v.call(String(el),/"/g,""")),"double",w)}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)+"]":"[ "+b.call(ep,", ")+" ]"}if("[object Error]"===z(s=t)&&M(s)){var eD=ee(t,ea);return"cause"in Error.prototype||!("cause"in t)||j.call(t,"cause")?0===eD.length?"["+String(t)+"]":"{ ["+String(t)+"] "+b.call(eD,", ")+" }":"{ ["+String(t)+"] "+b.call(C.call("[cause]: "+ea(t.cause),eD),", ")+" }"}if("object"==typeof t&&k){if(I&&"function"==typeof t[I]&&N)return N(t,{depth:en-i});else if("symbol"!==k&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!a||!e||"object"!=typeof e)return!1;try{a.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var em=[];return o&&o.call(t,function(e,r){em.push(ea(r,t,!0)+" => "+ea(e,t))}),Z("Map",a.call(t),em,ei)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var eg=[];return l&&l.call(t,function(e){eg.push(ea(e,t))}),Z("Set",c.call(t),eg,ei)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return X("WeakMap");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return X("WeakSet");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{return h.call(e),!0}catch(e){}return!1}(t))return X("WeakRef");if("[object Number]"===z(D=t)&&M(D))return G(ea(Number(t)));if(function(e){if(!e||"object"!=typeof e||!A)return!1;try{return A.call(e),!0}catch(e){}return!1}(t))return G(ea(A.call(t)));if("[object Boolean]"===z(F=t)&&M(F))return G(p.call(t));if("[object String]"===z(E=t)&&M(E))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(S=t)&&M(S))&&!W(t)){var ey=ee(t,ea),ev=B?B(t)===Object.prototype:t instanceof Object||t.constructor===Object,eF=t instanceof Object?"":"null prototype",e_=!ev&&x&&Object(t)===t&&x in t?y.call(z(t),8,-1):eF?"Object":"",eE=(ev||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(e_||eF?"["+b.call(C.call([],e_||[],eF||[]),": ")+"] ":"");return 0===ey.length?eE+"{}
1":ei?eE+"{"+Y(ey,ei)+"}":eE+"{ "+b.call(ey,", ")+" }"}return String(t)};var $=Object.prototype.hasOwnProperty||function(e){return e in this};function V(e,t){return $.call(e,t)}function z(e){return D.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":"")+F.call(t.toString(16))}function G(e){return"Object("+e+")"}function X(e){return e+" { ? }"}function Z(e,t,r,n){return e+" ("+t+") {"+(n?Y(r,n):b.call(r,", "))+"}"}function Y(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+b.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 o="function"==typeof w?w(e):[];if(P){r={};for(var u=0;u<o.length;u++)r["$"+o[u]]=o[u]}for(var s in e)if(V(e,s)&&(!n||String(Number(s))!==s||!(s<e.length)))if(P&&r["$"+s]instanceof Symbol)continue;else E.call(/[^\w$]/,s)?i.push(t(s,e)+": "+t(e[s],e)):i.push(s+": "+t(e[s],e));if("function"==typeof w)for(var c=0;c<o.length;c++)j.call(e,o[c])&&i.push("["+t(o[c])+"]: "+t(e[o[c]],e));return i}},17433:e=>{"use strict";e.exports=SyntaxError},17643:e=>{"use strict";e.exports=Function.prototype.call},17765:(e,t,r)=>{"use strict";var n=r(53104),i=r(26611),a=r(24377),o=r(23544),u=r(97017),s=r(3669),c=r(47687),l=r(78550),f=r(98414);function d(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every(function(e,r){return d(t[r],e)}):e===t}function h(e){var t=e?h._parseNumbers(e):{};void 0===t.userToken||l(t.userToken)||console.warn("[algoliasearch-helper] The `userToken` parameter is invalid. This can lead to wrong analytics.\n - Format: [a-zA-Z0-9_-]{1,64}"),this.facets=t.facets||[],this.disjunctiveFacets=t.disjunctiveFacets||[],this.hierarchicalFacets=t.hierarchicalFacets||[],this.facetsRefinements=t.facetsRefinements||{},this.facetsExcludes=t.facetsExcludes||{},this.disjunctiveFacetsRefinements=t.disjunctiveFacetsRefinements||{},this.numericRefinements=t.numericRefinements||{},this.tagRefinements=t.tagRefinements||[],this.hierarchicalFacetsRefinements=t.hierarchicalFacetsRefinements||{};var r=this;Object.keys(t).forEach(function(e){var n=-1!==h.PARAMETERS.indexOf(e),i=void 0!==t[e];!n&&i&&(r[e]=t[e])})}function p(e){var t=parseFloat(e);return isFinite(t)?t:null}h.PARAMETERS=Object.keys(new h),h._parseNumbers=function(e){if(e instanceof h)return e;var t={};if(["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","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 o(e,t)},h.make=function(e){var t=new h(e);return(e.hierarchicalFacets||[]).forEach(function(e){if(e.rootPath){var r=t.getHierarchicalRefinement(e.name);r.length>0&&0!==r[0].indexOf(e.rootPath)&&(t=t.clearRefinements(e.name)),0===(r=t.getHierarchicalRefinement(e.name)).length&&(t=t.toggleHierarchicalFacetRefinement(e.name,e.rootPath))}}),t},h.validate=function(e,t){var r=t||{};return e.tagFilters&&r.tagRefinements&&r.tagRefinements.length>0?Error("[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method."):e.tagRefinements.length>0&&r.tagFilters?Error("[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method."):e.numericFilters&&r.numericRefinements&&u(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."):u(e.numericRefinements)&&r.numericFilters?Error("[Numeric filters] Can't switch from the managed API to the advanced. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):null},h.prototype={constructor:h,clearRefinements:function(e){var t={numericRefinements:this._clearNumericRefinements(e),facetsRefinements:f.clearRefinement(this.facetsRefinements,e,"conjunctiveFacet"),facetsExcludes:f.clearRefinement(this.facetsExcludes,e,"exclude"),disjunctiveFacetsRefinements:f.clearRefinement(this.disjunctiveFacetsRefinements,e,"disjunctiveFacet"),hierarchicalFacetsRefinements:f.clearRefinement(this.hierarchicalFacetsRefinements,e,"hierarchicalFacet")};return t.numericRefinements===this.numericRefinements&&t.facetsRefinements===this.facetsRefinements&&t.facetsExcludes===this.facetsExcludes&&t.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&t.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters(t)},clearTags:function(){return void 0===this.tagFilters&&0===this.tagRefinements.length?this:this.setQueryParameters({tagFilters:void 0,tagRefinements:[]})},setIndex:function(e){return e===this.index?this:this.setQueryParameters({index:e})},setQuery:function(e){return e===this.query?this:this.setQueryParameters({query:e})},setPage:function(e){return e===this.page?this:this.setQueryParameters({page:e})},setFacets:function(e){return this.setQueryParameters({facets:e})},setDisjunctiveFacets:function(e){return this.setQueryParameters({disjunctiveFacets:e})},setHitsPerPage:function(e){return this.hitsPerPage===e?this:this.setQueryParameters({hitsPerPage:e})},setTypoTolerance:function(e){return this.typoTolerance===e?this:this.setQueryParameters({typoTolerance:e})},addNumericRefinement:function(e,t,r){var n=c(r);if(this.isNumericRefined(e,t,n))return this;var i=o({},this.numericRefinements);return i[e]=o({},i[e]),i[e][t]?(i[e][t]=i[e][t].slice(),i[e][t].push(n)):i[e][t]=[n],this.setQueryParameters({numericRefinements:i})},getConjunctiveRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsRefinements[e]||[]},getDisjunctiveRefinements:function(e){return this.isDisjunctiveFacet(e)&&this.disjunctiveFacetsRefinements[e]||[]},getHierarchicalRefinement:function(e){return this.hierarchicalFacetsRefinements[e]||[]},getExcludeRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsExcludes[e]||[]},removeNumericRefinement:function(e,t,r){return void 0!==r?this.isNumericRefined(e,t,r)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(n,i){return i===e&&n.op===t&&d(n.val,c(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 u(this.numericRefinements)?{}:this.numericRefinements;if("string"==typeof e)return s(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],o={};return Object.keys(a=a||{}
vendor: 8,277 bytes, line 1
1).forEach(function(r){var n=a[r]||[],u=[];n.forEach(function(t){e({val:t,op:r},i,"numeric")||u.push(t)}),u.length!==n.length&&(t=!0),o[r]=u}),n[i]=o,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 o=c(r),u=void 0!==(n=this.numericRefinements[e][t],i(n,function(e){return d(e,o)}));return a&&u},isTagRefined:function(e){return -1!==this.tagRefinements.indexOf(e)},getRefinedDisjunctiveFacets:function(){var e=this,t=a(Object.keys(this.numericRefinements).filter(function(t){return Object.keys(e.numericRefinements[t]).length>0}),this.disjunctiveFacets);return Object.keys(this.disjunctiveFacetsRefinements).filter(function(t){return e.disjunctiveFacetsRefinements[t].length>0}).concat(t).concat(this.getRefinedHierarchicalFacets()).sort()},getRefinedHierarchicalFacets:function(){var e=this;return a(this.hierarchicalFacets.map(function(e){return e.name}),Object.keys(this.hierarchicalFacetsRefinements).filter(function(t){return e.hierarchicalFacetsRefinements[t].length>0})).sort()},getUnrefinedDisjunctiveFacets:function(){var e=this.getRefinedDisjunctiveFacets();return this.disjunctiveFacets.filter(function(t){return -1===e.indexOf(t)})},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","hierarchicalFacets","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacetsRefinements"],getQueryParams:function(){var e=this.managedParameters,t={},r=this;
1return Object.keys(this).forEach(function(n){var i=r[n];-1===e.indexOf(n)&&void 0!==i&&(t[n]=i)}),t},setQueryParameter:function(e,t){if(this[e]===t)return this;var r={};return r[e]=t,this.setQueryParameters(r)},setQueryParameters:function(e){if(!e)return this;var t=h.validate(this,e);if(t)throw t;var r=this,n=h._parseNumbers(e),i=Object.keys(this).reduce(function(e,t){return e[t]=r[t],e},{}),a=Object.keys(n).reduce(function(e,t){var r=void 0!==e[t],i=void 0!==n[t];return r&&!i?s(e,[t]):(i&&(e[t]=n[t]),e)},i);return new this.constructor(a)},resetPage:function(){return void 0===this.page?this:this.setPage(0)},_getHierarchicalFacetSortBy:function(e){return e.sortBy||["isRefined:desc","name:asc"]},_getHierarchicalFacetSeparator:function(e){return e.separator||" > "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return"boolean"!=typeof e.showParentLevel||e.showParentLevel},getHierarchicalFacetByName:function(e){return i(this.hierarchicalFacets,function(t){return t.name===e})},getHierarchicalFacetBreadcrumb:function(e){if(!this.isHierarchicalFacet(e))return[];var t=this.getHierarchicalRefinement(e)[0];if(!t)return[];var r=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e));return t.split(r).map(function(e){return e.trim()})},toString:function(){return JSON.stringify(this,null,2)}},e.exports=h},18876:(e,t,r)=>{"use strict";r.d(t,{EN:()=>N,_q:()=>B,kS:()=>T});var n,i=r(98910),a=r(81595),o=r(71527),u=r(74436),s=r(39064),c=r(29674),l=r(55648),f=r(27728),d=r(96168),h=r(58897),p=r(1238),D=r(44070),m=r(19263),g=r(97358),y=r(80260),v=r(69633);let F=null!=(n=o.startTransition)?n:function(e){e()};var _=r(48737),E=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(E||{}),C=(e=>(e[e.ToggleDisclosure=0]="ToggleDisclosure",e[e.CloseDisclosure=1]="CloseDisclosure",e[e.SetButtonId=2]="SetButtonId",e[e.SetPanelId=3]="SetPanelId",e[e.SetButtonElement=4]="SetButtonElement",e[e.SetPanelElement=5]="SetPanelElement",e))(C||{});let b={0:e=>({...e,disclosureState:(0,g.Y)(e.disclosureState,{0:1,1:0})}),1:e=>1===e.disclosureState?e:{...e,disclosureState:1},2:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},3:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId},4:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},5:(e,t)=>e.panelElement===t.element?e:{...e,panelElement:t.element}},R=(0,o.createContext)(null);function S(e){let t=(0,o.useContext)(R);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Disclosure /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,S),t}return t}R.displayName="DisclosureContext";let A=(0,o.createContext)(null);A.displayName="DisclosureAPIContext";let w=(0,o.createContext)(null);function O(e,t){return(0,g.Y)(t.type,b,e,t)}w.displayName="DisclosurePanelContext";let P=o.Fragment,x=v.Ac.RenderStrategy|v.Ac.Static,j=(0,v.FX)(function(e,t){let{defaultOpen:r=!1,...n}=e,i=(0,o.useRef)(null),a=(0,f.P)(t,(0,f.a)(e=>{i.current=e},void 0===e.as||(0,v.zv)(e.as))),u=(0,o.useReducer)(O,{disclosureState:+!r,buttonElement:null,panelElement:null,buttonId:null,panelId:null}),[{disclosureState:c,buttonId:d},D]=u,F=(0,s._)(e=>{D({type:1});let t=(0,y.TW)(i.current);if(!t||!d)return;let r=e?m.Lk(e)?e:"current"in e&&m.Lk(e.current)?e.current:t.getElementById(d):t.getElementById(d);null==r||r.focus()}),_=(0,o.useMemo)(()=>({close:F}),[F]),E=(0,l._)({open:0===c,close:F}),C=(0,v.Ci)();return o.createElement(R.Provider,{value:u},o.createElement(A.Provider,{value:_},o.createElement(h.e,{value:F},o.createElement(p.El,{value:(0,g.Y)(c,{0:p.Uw.Open,1:p.Uw.Closed})},C({ourProps:{ref:a},theirProps:n,slot:E,defaultTag:P,name:"Disclosure"})))))}),B=(0,v.FX)(function(e,t){let r=(0,o.useId)(),{id:n="headlessui-disclosure-button-".concat(r),disabled:d=!1,autoFocus:h=!1,...p}=e,[m,g]=S("Disclosure.Button"),y=(0,o.useContext)(w),F=null!==y&&y===m.panelId,E=(0,o.useRef)(null),C=(0,f.P)(E,t,(0,s._)(e=>{if(!F)return g({type:4,element:e})}));(0,o.useEffect)(()=>{if(!F)return g({type:2,buttonId:n}),()=>{g({type:2,buttonId:null})}},[n,g,F]);let b=(0,s._)(e=>{var t;if(F){if(1===m.disclosureState)return;switch(e.key){case _.D.Space:case _.D.Enter:e.preventDefault(),e.stopPropagation(),g({type:0}
1),null==(t=m.buttonElement)||t.focus()}}else switch(e.key){case _.D.Space:case _.D.Enter:e.preventDefault(),e.stopPropagation(),g({type:0})}}),R=(0,s._)(e=>{e.key===_.D.Space&&e.preventDefault()}),A=(0,s._)(e=>{var t;(0,D.l)(e.currentTarget)||d||(F?(g({type:0}),null==(t=m.buttonElement)||t.focus()):g({type:0}))}),{isFocusVisible:O,focusProps:P}=(0,i.o)({autoFocus:h}),{isHovered:x,hoverProps:j}=(0,a.M)({isDisabled:d}),{pressed:B,pressProps:T}=(0,u.Z)({disabled:d}),N=(0,l._)({open:0===m.disclosureState,hover:x,active:B,disabled:d,focus:O,autofocus:h}),k=(0,c.c)(e,m.buttonElement),I=F?(0,v.v6)({ref:C,type:k,disabled:d||void 0,autoFocus:h,onKeyDown:b,onClick:A},P,j,T):(0,v.v6)({ref:C,id:n,type:k,"aria-expanded":0===m.disclosureState,"aria-controls":m.panelElement?m.panelId:void 0,disabled:d||void 0,autoFocus:h,onKeyDown:b,onKeyUp:R,onClick:A},P,j,T);return(0,v.Ci)()({ourProps:I,theirProps:p,slot:N,defaultTag:"button",name:"Disclosure.Button"})}),T=(0,v.FX)(function(e,t){let r=(0,o.useId)(),{id:n="headlessui-disclosure-panel-".concat(r),transition:i=!1,...a}=e,[u,c]=S("Disclosure.Panel"),{close:h}=function e(t){let r=(0,o.useContext)(A);if(null===r){let r=Error("<".concat(t," /> is missing a parent <Disclosure /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(r,e),r}return r}("Disclosure.Panel"),[D,m]=(0,o.useState)(null),g=(0,f.P)(t,(0,s._)(e=>{F(()=>c({type:5,element:e}))}),m);(0,o.useEffect)(()=>(c({type:3,panelId:n}),()=>{c({type:3,panelId:null})}),[n,c]);let y=(0,p.O_)(),[_,E]=(0,d.p)(i,D,null!==y?(y&p.Uw.Open)===p.Uw.Open:0===u.disclosureState),C=(0,l._)({open:0===u.disclosureState,close:h}),b={ref:g,id:n,...(0,d.B)(E)},R=(0,v.Ci)();return o.createElement(p.$x,null,o.createElement(w.Provider,{value:u.panelId},R({ourProps:b,theirProps:a,slot:C,defaultTag:"div",features:x,visible:_,name:"Disclosure.Panel"})))}),N=Object.assign(j,{Button:B,Panel:T})},19137:(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})},19974:(e,t,r)=>{"use strict";var n=r(84992);t.A=void 0;var i=n(r(58069)),a=n(r(85401)),o=n(r(46151)),u=n(r(94969)),s=r(63314),c=r(99174),l=r(80612),f=r(1654),d=r(39);t.A=function(){var e,t,r;return(0,u.default)(function e(t){var r=this;(0,o.default)(this,e),this.updateConfiguration(t),this.searchClient={clearCache:function(){return r.clearCache()},search:function(e){return r.searchTypesenseAndAdapt(e)},searchForFacetValues:function(e){return r.searchTypesenseForFacetValuesAndAdapt(e)}}},[{key:"searchTypesenseAndAdapt",value:(e=(0,a.default)(i.default.mark(function e(t){var r,n,a=this;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._adaptAndPerformTypesenseRequest(t);case 3:return n=(r=e.sent).results.map(function(e,n){return a._validateTypesenseResult(e),new f.SearchResponseAdapter(e,t[n],a.configuration,r.results,r).adapt()}),e.abrupt("return",{results:n});case 8:throw e.prev=8,e.t0=e.catch(0),console.error(e.t0),e.t0;case 12:case"end":return e.stop()}},e,this,[[0,8]])})),function(t){return e.apply(this,arguments)})},{key:"searchTypesenseForFacetValuesAndAdapt",value:(t=(0,a.default)(i.default.mark(function e(t){var r,n=this;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._adaptAndPerformTypesenseRequest(t);case 3:return r=e.sent.results.map(function(e,r){return n._validateTypesenseResult(e),new d.FacetSearchResponseAdapter(e,t[r],n.configuration).adapt()}),e.abrupt("return",r);case 8:throw e.prev=8,e.t0=e.catch(0),console.error(e.t0),e.t0;case 12:case"end":return e.stop()}},e,this,[[0,8]])})),function(e){return t.apply(this,arguments)})},{key:"_adaptAndPerformTypesenseRequest",value:(r=(0,a.default)(i.default.mark(function e(t){var r,n;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=new l.SearchRequestAdapter(t,this.typesenseClient,this.configuration),e.next=3,r.request();case 3:return n=e.sent,e.abrupt("return",n);case 5:case"end":return e.stop()}},e,this)})),function(e){return r.apply(this,arguments)})},{key:"clearCache",value:function(){return this.typesenseClient=new c.SearchClient(this.configuration.server),this.searchClient}},{key:"updateConfiguration",value:function(e){return this.configuration=new s.Configuration(e),this.configuration.validate(),this.typesenseClient=new c.SearchClient(this.configuration.server),
1!0}},{key:"_validateTypesenseResult",value:function(e){if(e.error)throw Error("".concat(e.code," - ").concat(e.error));if(!e.hits&&!e.grouped_hits)throw Error("Did not find any hits. ".concat(e.code," - ").concat(e.error))}}])}()},20235: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},20327:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246);t.default=function(){function e(e){this.apiCall=e,this.apiCall=e}return e.prototype.upsert=function(e,t){return n.__awaiter(this,void 0,void 0,function(){var r,i;return n.__generator(this,function(n){switch(n.label){case 0:return r=Array.isArray(t)?t.map(function(e){return JSON.stringify(e)}).join("\n"):t,[4,this.apiCall.performRequest("post",this.endpointPath("import"),{queryParameters:{id:e},bodyParameters:r,additionalHeaders:{"Content-Type":"text/plain"},skipConnectionTimeout:!0})];case 1:return i=n.sent(),[2,Array.isArray(t)?i.split("\n").map(function(e){return JSON.parse(e)}):i]}})})},e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.endpointPath=function(t){return void 0===t?"".concat(e.RESOURCEPATH):"".concat(e.RESOURCEPATH,"/").concat(encodeURIComponent(t))},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return"/stemming/dictionaries"},enumerable:!1,configurable:!0}),e}()},20427:(e,t,r)=>{"use strict";r.d(t,{default:()=>i.a});var n=r(54752),i=r.n(n)},20682:(e,t,r)=>{"use strict";r.d(t,{y:()=>i});let n=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u
10F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g;function i(e,t){return"string"!=typeof e?"":(t||(e=e.toLowerCase()),e.replace(n,"").replace(/ /g,"-"))}Object.hasOwnProperty},20846:(e,t,r)=>{"use strict";r.d(t,{m:()=>n});var n=(0,r(71527).createContext)(null)},21012:(e,t,r)=>{"use strict";var n,i=r(221),a=r(41633);try{n=[].__proto__===Array.prototype}
1catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var o=!!n&&a&&a(Object.prototype,"__proto__"),u=Object,s=u.getPrototypeOf;e.exports=o&&"function"==typeof o.get?i([o.get]):"function"==typeof s&&function(e){return s(null==e?e:u(e))}},21185:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SearchOnlyCollection=void 0;var n=r(78253);t.SearchOnlyCollection=function(){function e(e,t,r){this.name=e,this.apiCall=t,this.configuration=r,this._documents=new n.SearchOnlyDocuments(this.name,this.apiCall,this.configuration)}return e.prototype.documents=function(){return this._documents},e}()},21374:(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})},21404:e=>{!function(){"use strict";var t={114:function(e){function t(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function r(e,t){for(var r,n="",i=0,a=-1,o=0,u=0;u<=e.length;++u){if(u<e.length)r=e.charCodeAt(u);else if(47===r)break;else r=47;if(47===r){if(a===u-1||1===o);else if(a!==u-1&&2===o){if(n.length<2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2)){if(n.length>2){var s=n.lastIndexOf("/");if(s!==n.length-1){-1===s?(n="",i=0):i=(n=n.slice(0,s)).length-1-n.lastIndexOf("/"),a=u,o=0;continue}}else if(2===n.length||1===n.length){n="",i=0,a=u,o=0;continue}}t&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+e.slice(a+1,u):n=e.slice(a+1,u),i=u-a-1;a=u,o=0}else 46===r&&-1!==o?++o:o=-1}return n}var n={resolve:function(){for(var e,n,i="",a=!1,o=arguments.length-1;o>=-1&&!a;o--)o>=0?n=arguments[o]:(void 0===e&&(e=""),n=e),t(n),0!==n.length&&(i=n+"/"+i,a=47===n.charCodeAt(0));if(i=r(i,!a),a)if(i.length>0)return"/"+i;else return"/";return i.length>0?i:"."},normalize:function(e){if(t(e),0===e.length)return".";var n=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return(0!==(e=r(e,!n)).length||n||(e="."),e.length>0&&i&&(e+="/"),n)?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var e,r=0;r<arguments.length;++r){var i=arguments[r];t(i),i.length>0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":n.normalize(e)},relative:function(e,r){if(t(e),t(r),e===r||(e=n.resolve(e))===(r=n.resolve(r)))return"";for(var i=1;i<e.length&&47===e.charCodeAt(i);++i);for(var a=e.length,o=a-i,u=1;u<r.length&&47===r.charCodeAt(u);++u);for(var s=r.length-u,c=o<s?o:s,l=-1,f=0;f<=c;++f){if(f===c){if(s>c){if(47===r.charCodeAt(u+f))return r.slice(u+f+1);else if(0===f)return r.slice(u+f)}else o>c&&(47===e.charCodeAt(i+f)?l=f:0===f&&(l=0));break}var d=e.charCodeAt(i+f);if(d!==r.charCodeAt(u+f))break;47===d&&(l=f)}var h="";for(f=i+l+1;f<=a;++f)(f===a||47===e.charCodeAt(f))&&(0===h.length?h+="..":h+="/..");return h.length>0?h+r.slice(u+l):(u+=l,47===r.charCodeAt(u)&&++u,r.slice(u))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var r=e.charCodeAt(0),n=47===r,i=-1,a=!0,o=e.length-1;o>=1;--o)if(47===(r=e.charCodeAt(o))){if(!a){i=o;break}}else a=!1;return -1===i?n?"/":".":n&&1===i?"//":e.slice(0,i)},basename:function(e,r){if(void 0!==r&&"string"!=typeof r)throw TypeError('"ext" argument must be a string');t(e);var n,i=0,a=-1,o=!0;if(void 0!==r&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var u=r.length-1,s=-1;for(n=e.length-1;n>=0;--n){var c=e.charCodeAt(n);if(47===c){if(!o){i=n+1;break}}else -1===s&&(o=!1,s=n+1),u>=0&&(c===r.charCodeAt(u)?-1==--u&&(a=n):(u=-1,a=s))}return i===a?a=s:-1===a&&(a=e.length),e.slice(i,a)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!o){i=n+1;break}}else -1===a&&(o=!1,a=n+1);return -1===a?"":e.slice(i,a)},extname:function(e){t(e);for(var r=-1,n=0,i=-1,a=!0,o=0,u=e.length-1;u>=0;--u){var s=e.charCodeAt(u);
1if(47===s){if(!a){n=u+1;break}continue}-1===i&&(a=!1,i=u+1),46===s?-1===r?r=u:1!==o&&(o=1):-1!==r&&(o=-1)}return -1===r||-1===i||0===o||1===o&&r===i-1&&r===n+1?"":e.slice(r,i)},format:function(e){var t,r;if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return t=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||""),t?t===e.root?t+r:t+"/"+r:r},parse:function(e){t(e);var r,n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var i=e.charCodeAt(0),a=47===i;a?(n.root="/",r=1):r=0;for(var o=-1,u=0,s=-1,c=!0,l=e.length-1,f=0;l>=r;--l){if(47===(i=e.charCodeAt(l))){if(!c){u=l+1;break}continue}-1===s&&(c=!1,s=l+1),46===i?-1===o?o=l:1!==f&&(f=1):-1!==o&&(f=-1)}return -1===o||-1===s||0===f||1===f&&o===s-1&&o===u+1?-1!==s&&(0===u&&a?n.base=n.name=e.slice(1,s):n.base=n.name=e.slice(u,s)):(0===u&&a?(n.name=e.slice(1,o),n.base=e.slice(1,s)):(n.name=e.slice(u,o),n.base=e.slice(u,s)),n.ext=e.slice(o,s)),u>0?n.dir=e.slice(0,u-1):a&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};n.posix=n,e.exports=n}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var a=r[e]={exports:{}},o=!0;try{t[e](a,a.exports,n),o=!1}finally{o&&delete r[e]}return a.exports}n.ab="//",e.exports=n(114)}()},21828:e=>{"use strict";e.exports=Math.max},22221: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}},22232:(e,t,r)=>{"use strict";var n=r(82986),i=r(75871),a=r(17415),o=r(94158),u=n("%Map%",!0),s=i("Map.prototype.get",!0),c=i("Map.prototype.set",!0),l=i("Map.prototype.has",!0),f=i("Map.prototype.delete",!0),d=i("Map.prototype.size",!0);e.exports=!!u&&function(){var e,t={assert:function(e){if(!t.has(e))throw new o("Side channel does not contain "+a(e))},delete:function(t){if(e){var r=f(e,t);return 0===d(e)&&(e=void 0),r}return!1},get:function(t){if(e)return s(e,t)},has:function(t){return!!e&&l(e,t)},set:function(t,r){e||(e=new u),c(e,t,r)}};return t}},22683:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},23544: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],o=r[i];(void 0===o||void 0!==a)&&(t(o)&&t(a)?r[i]=e(o,a):r[i]="object"==typeof a&&null!==a?e(Array.isArray(a)?[]:{},a):a)}return r}(e,i)}return e}},24377:e=>{"use strict";e.exports=function(e,t){return e.filter(function(r,n){return t.indexOf(r)>-1&&e.indexOf(r)===n})}},24585:(e,t,r)=>{"use strict";r.d(t,{FU:()=>c,sn:()=>l,S8:()=>d});var n=r(44236);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var a=r(57906),o=r(60951),u=r(13604),s=r(2001),c={highlightPreTag:"__ais-highlight__",highlightPostTag:"__/ais-highlight__"},l={highlightPreTag:"<mark>",highlightPostTag:"</mark>"};function f(e){var t;return function(e){if((void 0===e?"undefined":(0,s._)(e))!=="object"||null===e||"[object Object]"!==(null===e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e)&&"string"!=typeof e.value?Object.keys(e).reduce(function(t,r){return(0,o._)((0,a._)({},t),(0,n._)({},r,f(e[r])))},{}):Array.isArray(e)?e.map(f):(0,o._)((0,a._)({},e),{value:(t=e.value,(0,u.i)(t).replace(RegExp(c.highlightPreTag,"g"),l.highlightPreTag).replace(RegExp(c.highlightPostTag,"g"),l.highlightPostTag))})}function d(e){return void 0===e.__escaped&&((e=e.map(function(e){var t=e;if(null==t)throw TypeError("Cannot destructure "+t);var r=i({},e);return r._highlightResult&&(r._highlightResult=f(r._highlightResult)),r._snippetResult&&(r._snippetResult=f(r._snippetResult)),r})).__escaped=!0),e}},24607: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(/^\\-/,"-")}}},24839:(e,t,r)=>{"use strict";r.d(t,{t:()=>a});var n=r(71527),i=(0,n.createContext)({countRef:{current:0},waitForResultsRef:null,resolveWaitForResultsRef:{current:null},ignoreMultipleHooksWarning:!1});function a(){return(0,n.useContext)(i)}},25152:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(62477).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
1],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},25546:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246),i=n.__importDefault(r(30023));t.default=function(){function e(e,t){this.id=e,this.apiCall=t}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.update=function(e){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.put(this.endpointPath(),e)]})})},e.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.delete(this.endpointPath())]})})},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.id))},e}()},25564:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246),i=n.__importDefault(r(61792)),a=n.__importDefault(r(41345));t.default=function(){function e(e,t,r){this.collectionName=e,this.synonymId=t,this.apiCall=r}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.delete(this.endpointPath())]})})},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.collectionName)).concat(a.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.synonymId))},e}()},26238:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246);t.default=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t}(n.__importDefault(r(82925)).default)},26525:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246);t.default=function(){function e(e){this.apiCall=e}return e.prototype.perform=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(r){return[2,this.apiCall.post("".concat("/operations","/").concat(e),{},t)]})})},e}()},26611: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]}}},26942:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246);t.default=function(){function e(e){this.apiCall=e,this.apiCall=e}return e.prototype.create=function(e){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.post(this.endpointPath(),e)]})})},e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.endpointPath=function(t){return"".concat(e.RESOURCEPATH).concat(void 0===t?"":"/"+encodeURIComponent(t))},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return"/conversations/models"},enumerable:!1,configurable:!0}),e}()},27575:(e,t,r)=>{"use strict";var n=r(22683);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},27868:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246),i=n.__importDefault(r(61792));t.default=function(){function e(e,t){this.collectionName=e,this.apiCall=t}return e.prototype.upsert=function(e,t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(r){return[2,this.apiCall.put(this.endpointPath(e),t)]})})},e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.endpointPath=function(t){return"".concat(i.default.RESOURCEPATH,"/").concat(this.collectionName).concat(e.RESOURCEPATH).concat(void 0===t?"":"/"+encodeURIComponent(t))},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return"/overrides"},enumerable:!1,configurable:!0}),e}()},27923:e=>{e.exports=function(e){return e.reduce(function(e,t){return e.concat(t)},[])}},27987:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246),i=n.__importDefault(r(20327)),a=n.__importDefault(r(80163));t.default=function(){function e(e){this.apiCall=e,this.individualStemmingDictionaries={},this.apiCall=e,this._stemmingDictionaries=new i.default(this.apiCall)}return e.prototype.dictionaries=function(e){return void 0===e?this._stemmingDictionaries:(void 0===this.individualStemmingDictionaries[e]&&(this.individualStemmingDictionaries[e]=new a.default(e,this.apiCall)),this.individualStemmingDictionaries[e])},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return"/stemming"},enumerable:!1,configurable:!0}),e}()},29081:(e,t,r)=>{"use strict";function n(e){return btoa(encodeURIComponent(JSON.stringify(e)))}r.d(t,{h:()=>n})},29850:(e,t,r)=>{"use strict";var n=r(66556);e.exports=Function.prototype.bind||n},30023:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246);t.default=function(){function e(e){this.apiCall=e}return e.prototype.create=function(e){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.post(this.endpointPath(),e)]})})},e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.endpointPath=function(){return e.RESOURCEPATH},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return"/nl_search_models"},enumerable:!1,configurable:!0}),e}()},30373:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246),i=r(43656);t.default=function(){function e(e){this.apiCall=e}return e.prototype.upsert=function(e,t){return n.__awaiter(this,void 0,void 0,function(){var r,a;return n.__generator(this,function(n){return"object"==typeof t.value&&"searches"in t.value?(r=t.value.searches.map(function(e){return(0,i.normalizeArrayableParams)(e)}),[2,this.apiCall.put(this.endpointPath(e),{value:{searches:r}})]):(a=(0,i.normalizeArrayableParams)(t.value),[2,this.apiCall.put(this.endpointPath(e),{value:a})])})})},e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.endpointPath=function(t){return"".concat(e.RESOURCEPATH).concat(void 0===t?"":"/"+encodeURIComponent(t))},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return"/presets"},enumerable:!1,configurable:!0}),e}()},30495:(e,t,r)=>{"use strict";var n=r(79081).Buffer;Object.defineProperty(t,"__esModule",{value:!0});var i=r(4246),a=r(31342),o=r(43656),u="/keys";t.default=function(){function e(e){this.apiCall=e,this.apiCall=e}return e.prototype.create=function(t){return i.__awaiter(this,void 0,void 0,function(){return i.__generator(this,function(r){return[2,this.apiCall.post(e.RESOURCEPATH,t)]})})},e.prototype.retrieve=function(){return i.__awaiter(this,void 0,void 0,function(){return i.__generator(this,function(e){return[2,this.apiCall.get(u)]})})},e.prototype.generateScopedSearchKey=function(e,t){var r=JSON.stringify((0,o.normalizeArrayableParams)(t)),i=n.from((0,a.createHmac)("sha256",e).update(r).digest("base64")),u=e.substr(0,4),s="".concat(i).concat(u).concat(r);return n.from(s).toString("base64")},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return u},enumerable:!1,configurable:!0}),e}()},31670:(e,t,r)=>{"use strict";var n=r(47280),i=r(1326),a=r(21012);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},32205:(e,t,r)=>{"use strict";r.d(t,{j:()=>function e(t,r,a){var o,u;if((null==a?void 0:a(t,r))||t===r)return!0;if(t&&r&&(o=t.constructor)===r.constructor){if(o===Date)return t.getTime()===r.getTime();if(o===RegExp)return t.toString()===r.toString();if(o===Array){if((u=t.length)===r.length)for(;u--&&e(t[u],r[u],a););return -1===u}if(!o||(void 0===t?"undefined":(0,n._)(t))==="object"){for(o in u=0,t)if(i.call(t,o)&&++u&&!i.call(r,o)||!(o in r)||!e(t[o],r[o],a))return!1;return Object.keys(r).length===u}}return t!=t&&r!=r}});var n=r(2001),i=Object.prototype.hasOwnProperty},32512: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,o,u,s;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 c=Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}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:o=Array.prototype.slice.call(arguments,1),i.apply(this,o)}else if(n(i))for(u=0,o=Array.prototype.slice.call(arguments,1),a=(s=i.slice()).length;u<a;u++)s[u].apply(this,o);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,o,u;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(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(u=o;u-- >0;)if(i[u]===t||i[u].listener&&i[u].listener===t){a=u;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)}},33248:(e,t,r)=>{"use strict";var n=r(17415),i=r(94158),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},o=function(e,t){if(e){var r=a(e,t);return r&&r.value}},u=function(e,t,r){var n=a(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},s=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=s(e,t);return r&&e&&!e.next&&(e=void 0),!!r},get:function(t){return o(e,t)},has:function(t){var r;return!!(r=e)&&!!a(r,t)},set:function(t,r){e||(e={next:void 0}),u(e,t,r)}};return t}},34106:e=>{"use strict";e.exports=Math.round},34573:(e,t,r)=>{"use strict";r.d(t,{J:()=>u});var n=r(57906),i=r(60951),a=r(51919);function o(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 u(e){var t=e.getHelper(),r=e.getResults()||o(t.state),a=e.getScopedResults().map(function(t){var a=t.indexId===e.getIndexId()?r:o(t.helper.state);return(0,i._)((0,n._)({},t),{results:t.results||a})});return{results:r,scopedResults:a,recommendResults:t.lastRecommendResults}}},36727:(e,t,r)=>{"use strict";var n=r(29850),i=r(36969),a=r(17643);e.exports=r(65040)||n.call(a,i)},36751:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246),i=n.__importDefault(r(61792)),a=n.__importDefault(r(27868));t.default=function(){function e(e,t,r){this.collectionName=e,this.overrideId=t,this.apiCall=r}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.delete(this.endpointPath())]})})},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.collectionName)).concat(a.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.overrideId))},e}()},36969:e=>{"use strict";e.exports=Function.prototype.apply},39139:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(62477).A)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]])},40059:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246);t.default=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t}(n.__importDefault(r(82925)).default)},41138:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246);t.default=function(){function e(e){this.apiCall=e}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get("/stats.json")]})})},e}()},41345:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246),i=n.__importDefault(r(61792));t.default=function(){function e(e,t){this.collectionName=e,this.apiCall=t}return e.prototype.upsert=function(e,t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(r){return[2,this.apiCall.put(this.endpointPath(e),t)]})})},e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.endpointPath=function(t){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.collectionName)).concat(e.RESOURCEPATH).concat(void 0===t?"":"/"+encodeURIComponent(t))},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return"/synonyms"},enumerable:!1,configurable:!0}),e}()},41489:(e,t,r)=>{"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,{_:()=>n})},41633:(e,t,r)=>{"use strict";var n=r(53053);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},42077:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246),i=n.__importDefault(r(26942)),a=n.__importDefault(r(2649)),o="/conversations";t.default=function(){function e(e){this.apiCall=e,this.individualConversationModels={},this.apiCall=e,this._conversationsModels=new i.default(this.apiCall)}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(o)]})})},e.prototype.models=function(e){return void 0===e?this._conversationsModels:(void 0===this.individualConversationModels[e]&&(this.individualConversationModels[e]=new a.default(e,this.apiCall)),this.individualConversationModels[e])},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return o},enumerable:!1,configurable:!0}),e}()},43034:(e,t,r)=>{"use strict";var n=r(45047),i=r(12206),a=r(68707),o=Object.prototype.hasOwnProperty,u={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},f=Date.prototype.toISOString,d=a.default,h={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:i.encode,encodeValuesOnly:!1,filter:void 0,format:d,formatter:a.formatters[d],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},p={},D=function e(t,r,a,o,u,c,f,d,D,m,g,y,v,F,_,E,C,b){for(var R,S,A=t,w=b,O=0,P=!1;void 0!==(w=w.get(p))&&!P;){var x=w.get(t);if(O+=1,void 0!==x)if(x===O)throw RangeError("Cyclic object value");else P=!0;void 0===w.get(p)&&(O=0)}if("function"==typeof m?A=m(r,A):A instanceof Date?A=v(A):"comma"===a&&s(A)&&(A=i.maybeMap(A,function(e){return e instanceof Date?v(e):e})),null===A){if(c)return _(D&&!E?D(r,h.encoder,C,"key",F):r);A=""}if("string"==typeof(R=A)||"number"==typeof R||"boolean"==typeof R||"symbol"==typeof R||"bigint"==typeof R||i.isBuffer(A))return D?[_(E?r:D(r,h.encoder,C,"key",F))+"="+_(D(A,h.encoder,C,"value",F))]:[_(r)+"="+_(String(A))];var j=[];if(void 0===A)return j;if("comma"===a&&s(A))E&&D&&(A=i.maybeMap(A,function(e){return null==e?e:D(e)})),S=[{value:A.length>0?A.join(",")||null:void 0}];else if(s(m))S=m;else{var B=Object.keys(A);S=g?B.sort(g):B}var T=d?String(r).replace(/\./g,"%2E"):String(r),N=o&&s(A)&&1===A.length?T+"[]":T;if(u&&s(A)&&0===A.length)return N+"[]";for(var k=0;k<S.length;++k){var I=S[k],H="object"==typeof I&&I&&void 0!==I.value?I.value:A[I];if(!f||null!==H){var U=y&&d?String(I).replace(/\./g,"%2E"):String(I),L=s(A)?"function"==typeof a?a(N,U):N:N+(y?"."+U:"["+U+"]");b.set(t,O);var M=n();M.set(p,b),l(j,e(H,L,a,o,u,c,f,d,"comma"===a&&E&&s(A)?null:D,m,g,y,v,F,_,E,C,M))}}return j},m=function(e){if(!e)return h;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
1if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var t,r=e.charset||h.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=a.default;if(void 0!==e.format){if(!o.call(a.formatters,e.format))throw TypeError("Unknown format option provided.");n=e.format}var i=a.formatters[n],c=h.filter;if(("function"==typeof e.filter||s(e.filter))&&(c=e.filter),t=e.arrayFormat in u?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":h.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var l=void 0===e.allowDots?!0===e.encodeDotInKeys||h.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:h.addQueryPrefix,allowDots:l,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:
1h.allowEmptyArrays,arrayFormat:t,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:h.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?h.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:h.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:h.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:h.encodeValuesOnly,filter:c,format:n,formatter:i,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:h.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:h.strictNullHandling}};e.exports=function(e,t){var r,i=e,a=m(t);"function"==typeof a.filter?i=(0,a.filter)("",i):s(a.filter)&&(r=a.filter);var o=[];if("object"!=typeof i||null===i)return"";var c=u[a.arrayFormat],f="comma"===c&&a.commaRoundTrip;r||(r=Object.keys(i)),a.sort&&r.sort(a.sort);for(var d=n(),h=0;h<r.length;++h){var p=r[h];if(null!=p){var g=i[p];a.skipNulls&&null===g||l(o,D(g,p,c,f,a.allowEmptyArrays,a.strictNullHandling,a.skipNulls,a.encodeDotInKeys,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,d))}}var y=o.join(a.delimiter),v=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?v+="utf8=%26%2310003%3B"+a.delimiter:v+="utf8=%E2%9C%93"+a.delimiter),y.length>0?v+y:""}},43063: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},{})}},43656:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toErrorWithMessage=t.normalizeArrayableParams=void 0;var n=r(4246),i=r(66604);function a(e){return Object.keys(i.arrayableParams).filter(function(t){return void 0!==e[t]}).every(function(t){return!Array.isArray(e[t])})}t.normalizeArrayableParams=function(e){var t=n.__assign({},e);if(!Object.keys(i.arrayableParams).filter(function(e){return Array.isArray(t[e])}).map(function(e){return t[e]=t[e].join(","),e}).length&&a(t))return t;if(!a(t))throw Error("Failed to normalize arrayable params: ".concat(JSON.stringify(t)));return t},t.toErrorWithMessage=function(e){if("object"==typeof e&&null!==e&&"message"in e&&"string"==typeof e.message)return e;try{if("string"==typeof e)return Error(e);return Error(JSON.stringify(e))}catch(t){return Error(String(e))}}},43688:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246);t.default=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t}(n.__importDefault(r(82925)).default)},44132:(e,t,r)=>{"use strict";var n=r(32512);function i(e,t,r){this.main=e,this.fn=t,this.recommendFn=r,this.lastResults=null,this.lastRecommendResults=null}r(88420)(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},44236:(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})},45047:(e,t,r)=>{"use strict";var n=r(94158),i=r(17415),a=r(33248),o=r(22232),u=r(74449)||o||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=u()),e.set(t,r)}};return t}},47280:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},47687: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.")}},47920:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},48637:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246);t.default=function(){function e(e){this.apiCall=e}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get("/health")]})})},e}()},48802:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8
1E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g},48858:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246);t.default=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.importResults=r,i.payload=n,i}return n.__extends(t,e),t}(n.__importDefault(r(82925)).default)},49274:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(62477).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},50011:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246);t.default=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t}(n.__importDefault(r(82925)).default)},51919:(e,t,r)=>{"use strict";var n=r(9401),i=r(20235),a=r(885),o=r(17765),u=r(70723);function s(e,t,r,i){return new n(e,t,r,i)}s.version=r(82798),s.AlgoliaSearchHelper=n,s.SearchParameters=o,s.RecommendParameters=i,s.SearchResults=u,s.RecommendResults=a,e.exports=s},52150:e=>{"use strict";e.exports=Math.min},52406: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}},53053:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},53104:e=>{"use strict";e.exports=function(){var e=Array.prototype.slice.call(arguments);return e.reduceRight(function(e,t){return Object.keys(Object(t)).forEac
1h(function(r){void 0!==t[r]&&(void 0!==e[r]&&delete e[r],e[r]=t[r])}),e},{})}},53260:(e,t,r)=>{"use strict";var n=r(12206),i=Object.prototype.hasOwnProperty,a=Array.isArray,o={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},u=function(e,t,r,n){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1){if(n&&t.throwOnLimitExceeded)for(var i=0,a=e.indexOf(",");a>-1;){if((i+=1)>=t.arrayLimit)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");a=e.indexOf(",",a+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},s=function(e,t){var r={__proto__:null},s=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;s=s.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var c=t.parameterLimit===1/0?void 0:t.parameterLimit,l=s.split(t.delimiter,t.throwOnLimitExceeded&&void 0!==c?c+1:c);if(t.throwOnLimitExceeded&&void 0!==c&&l.length>c)throw RangeError("Parameter limit exceeded. Only "+c+" parameter"+(1===c?"":"s")+" allowed.");var f=-1,d=t.charset;if(t.charsetSentinel)for(h=0;h<l.length;++h)0===l[h].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[h]?d="utf-8":"utf8=%26%2310003%3B"===l[h]&&(d="iso-8859-1"),f=h,h=l.length);for(h=0;h<l.length;++h)if(h!==f){var h,p,D,m=l[h],g=m.indexOf("]="),y=-1===g?m.indexOf("="):g+1;if(-1===y?(p=t.decoder(m,o.decoder,d,"key"),D=t.strictNullHandling?null:""):null!==(p=t.decoder(m.slice(0,y),o.decoder,d,"key"))&&(D=n.maybeMap(u(m.slice(y+1),t,a(r[p])?r[p].length:0,-1===m.indexOf("[]=")),function(e){return t.decoder(e,o.decoder,d,"value")})),D&&t.interpretNumericEntities&&"iso-8859-1"===d&&(D=String(D).replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),m.indexOf("[]=")>-1&&(D=a(D)?[D]:D),t.comma&&a(D)&&D.length>t.arrayLimit&&(D=n.combine([],D,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded)),null!==p){var v=i.call(r,p);v&&("combine"===t.duplicates||m.indexOf("[]=")>-1)?r[p]=n.combine(r[p],D,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded):v&&"last"!==t.duplicates||(r[p]=D)}}return r},c=function(e,t,r,i){var a=0;if(e.length>0&&"[]"===e[e.length-1]){var o=e.slice(0,-1).join("");a=Array.isArray(t)&&t[o]?t[o].length:0}for(var s=i?t:u(t,r,a),c=e.length-1;c>=0;--c){var l,f=e[c];if("[]"===f&&r.parseArrays)l=n.isOverflow(s)?s:r.allowEmptyArrays&&(""===s||r.strictNullHandling&&null===s)?[]:n.combine([],s,r.arrayLimit,r.plainObjects,r.throwOnLimitExceeded);else{l=r.plainObjects?{__proto__:null}:{};var d="["===f.charAt(0)&&"]"===f.charAt(f.length-1)?f.slice(1,-1):f,h=r.decodeDotInKeys?d.replace(/%2E/g,"."):d,p=parseInt(h,10),D=!isNaN(p)&&f!==h&&String(p)===h&&p>=0&&r.parseArrays;if(r.parseArrays||""!==h)if(D&&p<r.arrayLimit)(l=[])[p]=s;else if(D&&r.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(1===r.arrayLimit?"":"s")+" allowed in an array.");else D?(l[p]=s,n.markOverflow(l,p)):"__proto__"!==h&&(l[h]=s);else l={0:s}}s=l}return s},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("["),o=a>=0?r.slice(0,a):r;if(o){if(!t.plainObjects&&i.call(Object.prototype,o)&&!t.allowPrototypes)return;n[n.length]=o}for(var u=r.length,s=a,c=0;s>=0&&c<t.depth;){for(var l=1,f=s+1,d=-1;f<u&&d<0;){var h=r.charCodeAt(f);91===h?l+=1:93===h&&0==(l-=1)&&(d=f),f+=1}if(d<0)return n[n.length]="["+r.slice(s)+"]",n;var p=r.slice(s,d+1),D=p.slice(1,-1);if(!t.plainObjects&&i.call(Object.prototype,D)&&!t.allowPrototypes)return;n[n.length]=p,c+=1,s=r.indexOf("[",d+1)}if(s>=0){if(!0===t.strictDepth)throw RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");n[n.length]="["+r.slice(s)+"]"}return n},f=function(e,t,r,n){if(e){var i=l(e,r);if(i)return c(i,t,r,n)}},d=function(e){if(!e)return o;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
1if(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?o.charset:e.charset,r=void 0===e.duplicates?o.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||o.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:o.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:o.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:o.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:o.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:o.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:o.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:o.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:o.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:o.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:o.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:o.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:o.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:o.strictDepth,strictMerge:"boolean"==typeof e.strictMerge?!!e.strictMerge:o.strictMerge,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:o.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}};e.exports=function(e,t){var r=d(t);if(""===e||null==e)return r.plainObjects?{__proto__:null}:{};for(var i="string"==typeof e?s(e,r):e,a=r.plainObjects?{__proto__:null}:{},o=Object.keys(i),u=0;u<o.length;++u){var c=o[u],l=f(c,i[c],r,"string"==typeof e);a=n.merge(a,l,r)}return!0===r.allowSparse?a:n.compact(a)}},53825:(e,t,r)=>{"use strict";r.d(t,{G:()=>C});var n=r(57906),i=r(21374),a=r(3538);function o(e){return(null==e?void 0:e.status)==="submitted"||(null==e?void 0:e.status)==="streaming"}var u=r(71527),s=r(60951),c=r(69641),l=r(73650),f=r(19137),d=(0,c.V)({name:"search-box",connector:!0}),h=function(e,t){return t(e)},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.l;return(0,l.t)(e,d()),function(r){var i,a,o=(r||{}).queryHook,u=void 0===o?h:o;return{$$type:"ais.searchBox",init:function(t){var r=t.instantSearchInstance;e((0,s._)((0,n._)({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!0)},render:function(t){var r=t.instantSearchInstance;e((0,s._)((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,s._)((0,n._)({},e),{searchBox:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t=e.helper,n=e.instantSearchInstance,o=e.state;return i||(i=function(e){u(e,function(e){return t.setQuery(e).search()})},a=function(){t.setQuery("").search()}),{query:o.query||"",refine:i,clear:a,widgetParams:r,isSearchStalled:"stalled"===n.status}},getWidgetUiState:function(e,t){var r=t.searchParameters.query||"";return""===r||e&&e.query===r?e:(0,s._)((0,n._)({},e),{query:r})},getWidgetSearchParameters:function(e,t){var r=t.uiState;return e.setQueryParameter("query",r.query||"")}}}},D=r(63361),m=r(54677),g=r(57898);function y(e){var t=e.classNames;return u.createElement("svg",{className:(0,g.cx)("ais-SearchBox-submitIcon",t.submitIcon),width:"10",height:"10",viewBox:"0 0 40 40","aria-hidden":"true"},u.createElement("path",{d:"M26.804 29.01c-2.832 2.34-6.465 3.746-10.426 3.746C7.333 32.756 0 25.424 0 16.378 0 7.333 7.333 0 16.378 0c9.046 0 16.378 7.333 16.378 16.378 0 3.96-1.406 7.594-3.746 10.426l10.534 10.534c.607.607.61 1.59-.004 2.202-.61.61-1.597.61-2.202.004L26.804 29.01zm-10.426.627c7.323 0 13.26-5.936 13.26-13.26 0-7.32-5.937-13.257-13.26-13.257C9.056 3.12 3.12 9.056 3.12 16.378c0 7.323 5.936 13.26 13.258 13.26z"}))}function v(e){var t=e.classNames;return u.createElement("svg",{className:(0,g.cx)("ais-SearchBox-resetIcon",t.resetIcon),viewB
1ox:"0 0 20 20",width:"10",height:"10","aria-hidden":"true"},u.createElement("path",{d:"M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z"}))}function F(e){var t=e.classNames;return u.createElement("svg",{"aria-label":"Results are loading",width:"16",height:"16",viewBox:"0 0 38 38",stroke:"#444",className:(0,g.cx)("ais-SearchBox-loadingIcon",t.loadingIcon),"aria-hidden":"true"},u.createElement("g",{fill:"none",fillRule:"evenodd"},u.createElement("g",{transform:"translate(1 1)",strokeWidth:"2"},u.createElement("circle",{strokeOpacity:".5",cx:"18",cy:"18",r:"18"}),u.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18"},u.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})))))}function _(e){var t=e.classNames;return u.createElement("svg",{className:(0,g.cx)("ais-AiModeButton-icon",t.aiModeIcon),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",width:"16",height:"16","aria-hidden":"true"},u.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 1.875c.27 0 .51.173.594.43l1.593 4.844a1.043 1.043 0 0 0 .664.664l4.844 1.593a.625.625 0 0 1 0 1.188l-4.844 1.593a1.043 1.043 0 0 0-.664.664l-1.593 4.844a.625.625 0 0 1-1.188 0l-1.593-4.844a1.042 1.042 0 0 0-.664-.664l-4.844-1.593a.625.625 0 0 1 0-1.188l4.844-1.593a1.042 1.042 0 0 0 .664-.664l1.593-4.844a.625.625 0 0 1 .594-.43ZM9 7.539A2.292 2.292 0 0 1 7.54 9L4.5 10l3.04 1A2.292 2.292 0 0 1 9 12.46l1 3.04 1-3.04A2.293 2.293 0 0 1 12.46 11l3.04-1-3.04-1A2.292 2.292 0 0 1 11 7.54L10 4.5 9 7.54ZM4.167 1.875c.345 0 .625.28.625.625v3.333a.625.625 0 0 1-1.25 0V2.5c0-.345.28-.625.625-.625ZM15.833 13.542c.345 0 .625.28.625.625V17.5a.625.625 0 1 1-1.25 0v-3.333c0-.345.28-.625.625-.625Z",clipRule:"evenodd"}),u.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.875 4.167c0-.346.28-.625.625-.625h3.333a.625.625 0 1 1 0 1.25H2.5a.625.625 0 0 1-.625-.625ZM13.542 15.833c0-.345.28-.625.625-.625H17.5a.625.625 0 0 1 0 1.25h-3.333a.625.625 0 0 1-.625-.625Z",clipRule:"evenodd"}))}function E(e){var t=e.formRef,r=e.inputRef,a=e.inputProps,o=e.isSearchStalled,c=e.onChange,l=e.onReset,f=e.onSubmit,d=e.placeholder,h=e.value,p=e.autoFocus,D=e.resetIconComponent,m=e.submitIconComponent,E=e.loadingIconComponent,C=e.aiModeIconComponent,b=e.onAiModeClick,R=e.aiModeButtonDisabled,S=e.classNames,A=void 0===S?{}:S,w=e.translations,O=(0,i._)(e,["formRef","inputRef","inputProps","isSearchStalled","onChange","onReset","onSubmit","placeholder","value","autoFocus","resetIconComponent","submitIconComponent","loadingIconComponent","aiModeIconComponent","onAiModeClick","aiModeButtonDisabled","classNames","translations"]);return u.createElement("div",(0,s._)((0,n._)({},O),{className:(0,g.cx)("ais-SearchBox",A.root,O.className)}),u.createElement("form",{ref:t,action:"",className:(0,g.cx)("ais-SearchBox-form",A.form),noValidate:!0,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),f&&f(e),r.current&&r.current.blur()},onReset:function(e){e.preventDefault(),e.stopPropagation(),l(e),r.current&&r.current.focus()},role:"search"},u.createElement("input",(0,s._)((0,n._)({},a),{ref:r,className:(0,g.cx)("ais-SearchBox-input",A.input,null==a?void 0:a.className),"aria-label":"Search",autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",placeholder:void 0===d?"":d,spellCheck:!1,maxLength:512,type:"search",value:h,onChange:c,onCompositionEnd:c,autoFocus:p})),u.createElement("button",{className:(0,g.cx)("ais-SearchBox-submit",A.submit),type:"submit",title:w.submitButtonTitle,"aria-label":w.submitButtonTitle},u.createElement(void 0===m?y:m,{classNames:A})),u.createElement("button",{className:(0,g.cx)("ais-SearchBox-reset",A.reset),type:"reset",title:w.resetButtonTitle,"aria-label":w.resetButtonTitle,hidden:0===h.length||o},u.createElement(void 0===D?v:D,{classNames:A})),b&&u.createElement("button",{className:(0,g.cx)("ais-AiModeButton",A.aiModeButton),type:"button",title:w.aiModeButtonTitle||"AI Mode",disabled:void 0!==R&&R,onClick:function(e){e.preventDefault(),b()}},u.createElement(void 0===C?_:C,{classNames:A}),u.createElement("span",{className:"ais-AiModeButton-label"},w.aiModeButtonTitle||"AI Mode")),u.createElement("span",{className:(0,g.cx)("ais-SearchBox-loadingIndicator",A.loadingIndicator),hidden:!o},u.createElement(void 0===E?F:E,{classNames:A}))))}function C(e){var t,r,s=e.queryHook,c=e.searchAsYouType,l=void 0===c||c,f=e.ignoreCompositionEvents,d=void 0!==f&&f,h=e.aiMode,g=e.translations,y=(0,i._)(e,["queryHook","searchAsYouType","ignoreCompositionEvents","aiMode","translations"]),v=(t={queryHook:s},r=(0,n._)({$$widgetType:"ais.searchBox"},h?{opensChat:!0}:{}),(0,D.Z)(p,t,r)),F=v.query,_=v.refine,C=v.isSearchStalled,b=(0,m.J)().indexRenderState,R=(0,a._)((0,u.useState)(F),2),S=R[0],A=R[1],w=(0,u.useRef)(null);function O(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];A(e),l&&!(d&&t)&&_(e)}function P(){O(""),l||_("")}F!==S&&document.activeElement!==w.current&&A(F);var x=b.chat,j={inputRef:w,isSearchStalled:C,onChange:function(e){O(e.currentTarget.value,e.nativeEvent.isComposing)},onReset:P,onSubmit:function(e){l||_(S),y.onSubmit&&y.onSubmit(e)},onAiModeClick:h?function(){(function(e){var t,r,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=a.message,s=a.referer,c=a.turnContext;if(!e)return!1;var l=null!=(t=null==u?void 0:u.trim())?t:"";return l?(null==(r=e.setOpen)||r.call(e,!0),!o(e)&&!!e.sendMessage&&(e.sendMessage((0,n._)({text:l},c?{metadata:{turnContext:c}}:{}),s?{headers:{"x-algolia-referer":s}}:void 0),!0)):(e.focusInput?e.focusInput():null==(i=e.setOpen)||i.call(e,!0),!1)})(x,{message:S,referer:"ai-mode"})&&P()}:void 0,aiModeButtonDisabled:h?o(x):void 0,value:S,translations:(0,n._)({submitButtonTitle:"Submit the search query",resetButtonTitle:"Clear the search query",aiModeButtonTitle:"AI Mode"},g)};return u.createElement(E,(0,n._)({},y,j))}},54677:(e,t,r)=>{"use strict";r.d(t,{J:()=>f});var n=r(75241),i=r(71527),a=r(99516),o=r(16494),u=r(3538),s=r(62935),c=r(34573),l=r(6571);function f(){var e,t,r,f,d,h,p,D,m,g,y,v,F,_,E,C,b,R,S=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).catchError,A=(0,a.I)(),w=(e=(0,a.I)(),r=(t=(0,l.R)()).getIndexId(),d=(f=(0,u._)((0,i.useState)(function(){return e.getUiState()}),2))[0],h=f[1],p=d[r],m=(D=(0,u._)((0,i.useState)(function(){return e.render
1State}),2))[0],g=D[1],y=m[r]||{},v=(0,i.useCallback)(function(t){e.setUiState(t)},[e]),F=(0,i.useCallback)(function(e){t.setIndexUiState(e)},[t]),(0,i.useEffect)(function(){function t(){h(e.getUiState()),g(e.renderState)}return e.addListener("render",t),t(),function(){e.removeListener("render",t)}},[e]),{uiState:d,setUiState:v,indexUiState:p,setIndexUiState:F,renderState:m,indexRenderState:y}),O=w.uiState,P=w.setUiState,x=w.indexUiState,j=w.setIndexUiState,B=w.renderState,T=w.indexRenderState,N=(_=(0,a.I)(),E=(0,l.R)(),b=(C=(0,u._)((0,i.useState)(function(){var e=(0,c.J)(E);return{results:e.results,scopedResults:e.scopedResults}}),2))[0],R=C[1],(0,i.useEffect)(function(){function e(){var e=E.getResults();if(null!==e)R({results:e,scopedResults:E.getScopedResults()});else if(0===_.mainIndex.getIndexName().length){var t=_.mainIndex.getWidgets().find(s.l);t&&R({results:(0,c.J)(E).results,scopedResults:t.getScopedResults()})}}return _.addListener("render",e),e(),function(){_.removeListener("render",e)}},[_,E]),b),k=N.results,I=N.scopedResults,H=(0,i.useCallback)(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return A.use.apply(A,(0,n._)(t)),function(){A.unuse.apply(A,(0,n._)(t))}},[A]),U=(0,i.useCallback)(function(){A.refresh()},[A]);return(0,o.E)(function(){if(S){var e=function(){};return A.addListener("error",e),function(){return A.removeListener("error",e)}}return function(){}},[A,S]),{results:k,scopedResults:I,uiState:O,setUiState:P,indexUiState:x,setIndexUiState:j,renderState:B,indexRenderState:T,addMiddlewares:H,refresh:U,status:A.status,error:A.error}}},54752:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return s},getImageProps:function(){return u}});let n=r(49135),i=r(9540),a=r(53464),o=n._(r(58512));function u(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let s=a.Image},56369:(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})},57898:(e,t,r)=>{"use strict";function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(function(e,t){return Array.isArray(t)?e.concat(t):e.concat([t])},[]).filter(Boolean).join(" ")}r.d(t,{cx:()=>n})},57906:(e,t,r)=>{"use strict";r.d(t,{_:()=>i});var n=r(44236);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}},58616:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246),i=n.__importDefault(r(5219)),a=n.__importDefault(r(84133)),o=n.__importDefault(r(61792)),u=n.__importDefault(r(10107)),s=n.__importDefault(r(92141)),c=n.__importDefault(r(11525)),l=n.__importDefault(r(30495)),f=n.__importDefault(r(96338)),d=n.__importDefault(r(70166)),h=n.__importDefault(r(17168)),p=n.__importDefault(r(41138)),D=n.__importDefault(r(48637)),m=n.__importDefault(r(26525)),g=n.__importDefault(r(81644)),y=n.__importDefault(r(30373)),v=n.__importDefault(r(97080)),F=n.__importDefault(r(95921)),_=n.__importDefault(r(62236)),E=n.__importDefault(r(90831)),C=n.__importDefault(r(42077)),b=n.__importDefault(r(3808)),R=n.__importDefault(r(27987)),S=n.__importDefault(r(30023)),A=n.__importDefault(r(25546));t.default=function(){function e(e){var t;e.sendApiKeyAsQueryParam=null!=(t=e.sendApiKeyAsQueryParam)&&t,this.configuration=new i.default(e),this.apiCall=new a.default(this.configuration),this.debug=new d.default(this.apiCall),this.metrics=new h.default(this.apiCall),this.stats=new p.default(this.apiCall),this.health=new D.default(this.apiCall),this.operations=new m.default(this.apiCall),this.multiSearch=new g.default(this.apiCall,this.configuration),this._collections=new o.default(this.apiCall),this.individualCollections={},this._aliases=new s.default(this.apiCall),this.individualAliases={},this._keys=new l.default(this.apiCall),this.individualKeys={},this._presets=new y.default(this.apiCall),this.individualPresets={},this._stopwords=new _.default(this.apiCall),this.individualStopwords={},this.analytics=new F.default(this.apiCall),this.stemming=new R.default(this.apiCall),this._conversations=new C.default(this.apiCall),this.individualConversations={},this._nlSearchModels=new S.default(this.apiCall),this.individualNLSearchModels={}}return e.prototype.collections=function(e){return void 0===e?this._collections:(void 0===this.individualCollections[e]&&(this.individualCollections[e]=new u.default(e,this.apiCall,this.configuration)),this.individualCollections[e])},e.prototype.aliases=function(e){return void 0===e?this._aliases:(void 0===this.individualAliases[e]&&(this.individualAliases[e]=new c.default(e,this.apiCall)),this.individualAliases[e])},e.prototype.keys=function(e){return void 0===e?this._keys:(void 0===this.individualKeys[e]&&(this.individualKeys[e]=new f.default(e,this.apiCall)),this.individualKeys[e])},e.prototype.presets=function(e){return void 0===e?this._presets:(void 0===this.individualPresets[e]&&(this.individualPresets[e]=new v.default(e,this.apiCall)),this.individualPresets[e])},e.prototype.stopwords=function(e){return void 0===e?this._stopwords:(void 0===this.individualStopwords[e]&&(this.individualStopwords[e]=new E.default(e,this.apiCall)),this.individualStopwords[e])},e.prototype.conversations=function(e){return void 0===e?this._conversations:(void 0===this.individualConversations[e]&&(this.individualConversations[e]=new b.default(e,this.apiCall)),this.individualConversations[e])},e.prototype.nlSearchModels=function(e){return void 0===e?this._nlSearchModels:(void 0===this.individualNLSearchModels[e]&&(this.individualNLSearchModels[e]=new A.default(e,this.apiCall)),this.individualNLSearchModels[e])},e}()},58897:(e,t,r)=>{"use strict";r.d(t,{e:()=>a});var n=r(71527);let i=(0,n.createContext)(()=>{});function a(e){let{value:t,children:r}=e;return n.createElement(i.Provider,{value:t},r)}},59704:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246);t.default=function(){function e(e){this.apiCall=e,this.apiCall=e}return e.prototype.create=function(e){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.post(this.endpointPath(),e)]})})},e.prototype.endpointPath=function(t){return"".concat(e.RESOURCEPATH).concat(void 0===t?"":"/"+encodeURIComponent(t))},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return"/analytics/events"},enumerable:!1,configurable:!0}),e}()},60951:(e,t,r)=>{"use strict";function n(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}r.d(t,{_:()=>n})},61192:(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})},61286:(e,t,r)=>{"use strict";r.d(t,{I:()=>i});var n=r(24585);function i(e){var t=n.sn.highlightPostTag,r=n.sn.highlightPreTag,i=e.split(r),a=i.shift(),o=a?[{value:a,isHighlighted:!1}]:[];return i.forEach(function(e){var r=e.split(t);o.push({value:r[0],isHighlighted:!0}),""!==r[1]&&o.push({value:r[1],isHighlighted:!1})}),o}},61792:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246),i="/collections";t.default=function(){function e(e){this.apiCall=e}return e.prototype.create=function(e,t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(r){return[2,this.apiCall.post(i,e,t)]})})},e.prototype.retrieve=function(e){return void 0===e&&(e={}),n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(i,e)]})})},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return i},enumerable:!1,configurable:!0}),e}()},61858:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(62477).A)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]])},61945:e=>{"use strict";e.exports=function(e){return Array.isArray(e)?e.filter(Boolean):[]}},62236:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246);t.default=function(){function e(e){this.apiCall=e}return e.prototype.upsert=function(e,t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(r){return[2,this.apiCall.put(this.endpointPath(e),t)]})})},e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.endpointPath=function(t){return"".concat(e.RESOURCEPATH).concat(void 0===t?"":"/"+encodeURIComponent(t))},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return"/stopwords"},enumerable:!1,configurable:!0}),e}()},62935:(e,t,r)=>{"use strict";r.d(t,{l:()=>i});var n=["ais.index","ais.feedContainer"];function i(e){return n.includes(e.$$type)}},62960:e=>{"use strict";e.exports=Object},63314:(e,t,r)=>{"use strict";var n=r(84992);Object.defineProperty(t,"__esModule",{value:!0}),t.Configuration=void 0;var i=n(r(46151));t.Configuration=(0,n(r(94969)).default)(function e(){var t,r,n,a,o,u,s,c,l,f,d,h,p,D,m,g,y,v,F,_,E=this,C=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.default)(this,e),this.server=C.server||{nodes:[{host:"localhost",port:"8108",path:"",protocol:"http"}]},this.server.cacheSearchResultsForSeconds=null!=(t=this.server.cacheSearchResultsForSeconds)?t:120,this.additionalSearchParameters=null!=(r=C.additionalSearchParameters)?r:{},this.additionalSearchParameters.query_by=null!=(n=null!=(a=this.additionalSearchParameters.queryBy)?a:this.additionalSearchParameters.query_by)?n:"",this.additionalSearchParameters.preset=null!=(o=null!=(u=this.additionalSearchParameters.preset)?u:this.additionalSearchParameters.preset)?o:"",this.additionalSearchParameters.sort_by=null!=(s=null!=(c=this.additionalSearchParameters.sortBy)?c:this.additionalSearchParameters.sort_by)?s:"",this.additionalSearchParameters.highlight_full_fields=null!=(l=null!=(f=this.additionalSearchParameters.highlightFullFields)?f:this.additionalSearchParameters.highlight_full_fields)?l:this.additionalSearchParameters.query_by,this.geoLocationField=null!=(d=C.geoLocationField)?d:"_geoloc",this.facetableFieldsWithSpecialCharacters=null!=(h=C.facetableFieldsWithSpecialCharacters)?h:[],this.collectionSpecificSearchParameters=null!=(p=C.collectionSpecificSearchParameters)?p:{}
1,Object.keys(this.collectionSpecificSearchParameters).forEach(function(e){var t,r,n,i,a,o,u=E.collectionSpecificSearchParameters[e];u.query_by=null!=(t=u.queryBy)?t:u.query_by,u.preset=null!=(r=u.preset)?r:u.preset,u.sort_by=null!=(n=u.sortBy)?n:u.sort_by,u.highlight_full_fields=null!=(i=null!=(a=null!=(o=u.highlightFullFields)?o:u.highlight_full_fields)?a:E.additionalSearchParameters.highlight_full_fields)?i:u.query_by,Object.keys(u).forEach(function(e){return void 0===u[e]?delete u[e]:{}})}),this.renderingContent=C.renderingContent,this.flattenGroupedHits=null==(D=C.flattenGroupedHits)||D,this.facetByOptions=null!=(m=C.facetByOptions)?m:{},this.filterByOptions=null!=(g=C.filterByOptions)?g:{},this.sortByOptions=null!=(y=C.sortByOptions)?y:{},this.collectionSpecificFacetByOptions=null!=(v=C.collectionSpecificFacetByOptions)?v:{},this.collectionSpecificFilterByOptions=null!=(F=C.collectionSpecificFilterByOptions)?F:{},this.collectionSpecificSortByOptions=null!=(_=C.collectionSpecificSortByOptions)?_:{}},[{key:"validate",value:function(){if((this.additionalSearchParameters.queryBy||Object.values(this.collectionSpecificSearchParameters).some(function(e){return e.queryBy}))&&console.warn("[typesense-instantsearch-adapter] Please use snake_cased versions of parameters in additionalSearchParameters instead of camelCased parameters. For example: Use query_by instead of queryBy. camelCased parameters will be deprecated
1in a future version. We're making this change so that parameter names are identical to the ones sent to Typesense (which are all snake_cased), and to also keep the types for these parameters in sync with the types defined in typesense-js."),0===this.additionalSearchParameters.query_by.length&&0===this.additionalSearchParameters.preset.length&&(0===Object.keys(this.collectionSpecificSearchParameters).length||Object.values(this.collectionSpecificSearchParameters).some(function(e){return 0===(e.query_by||"").length&&0===(e.preset||"").length})))throw Error("[typesense-instantsearch-adapter] Missing parameter: One of additionalSearchParameters.query_by or additionalSearchParameters.preset needs to be set, or all collectionSpecificSearchParameters need to have either .query_by or .preset set.")}}])},63361:(e,t,r)=>{"use strict";r.d(t,{Z:()=>E});var n=r(57906),i=r(21374),a=r(3538),o=r(41489),u=r(56369),s=r(3452),c=r(9785),l=r(71527),f=r.t(l,2),d=r(32205),h=r(34573),p=r(6571),D=r(99516),m=r(98802),g=r(96053);function y(e){var t=(0,a._)((0,l.useState)(function(){return e}),2),r=t[0],n=t[1];return(0,d.j)(r,e)||n(e),r}var v=f.use,F=r(16494),_=r(24839);function E(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,E=(t=[r,f],(0,o._)(t)||(0,u._)(t)||(0,c._)(t)||(0,s._)()),C=E[0],b=E.slice(1),R=(0,a._)(b,1)[0],S=void 0===R?{}:R,A=S.skipSuspense,w=(0,i._)(S,["skipSuspense"]),O=(0,m.r)(),P=(0,g.m)(),x=(0,D.I)(),j=(0,p.R)(),B=y(void 0===C?{}:C),T=y(w),N=(0,l.useRef)(!0),k=(0,l.useRef)(null),I=(0,l.useRef)(x.status),H=(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,d.j)(n,k.current,function(e,t){return(null==e?void 0:e.constructor)===Function&&(null==t?void 0:t.constructor)===Function})&&r.status===I.current||(M(n),k.current=n,I.current=r.status)}},function(){N.current=!1});return(0,n._)({},t(B),T)},[e,B,T]),U=(0,a._)((0,l.useState)(function(){if(H.getWidgetRenderState){var e,t=j.getHelper(),r=j.getWidgetUiState({})[j.getIndexId()];t.state=(null==(e=H.getWidgetSearchParameters)?void 0:e.call(H,t.state,{uiState:r}))||t.state;var n=(0,h.J)(j),a=n.results,o=n.scopedResults,u=n.recommendResults,s=H.getWidgetRenderState({helper:t,parent:j,instantSearchInstance:x,results:"recommend"===H.dependsOn&&u&&P?u[P.recommendIdx.current++]:a,scopedResults:o,state:t.state,renderState:x.renderState,templatesConfig:x.templatesConfig,createURL:j.createURL,searchMetadata:{isSearchStalled:"stalled"===x.status},status:x.status,error:x.error});return s.widgetParams,(0,i._)(s,["widgetParams"])}return{}}),2),L=U[0],M=U[1];return!function(e){var t,r,n,i=e.widget,a=e.parentIndex,o=e.props,u=e.shouldSsr,s=e.skipSuspense,c=(0,_.t)(),f=c.waitForResultsRef,h=c.countRef;c.ignoreMultipleHooksWarning;var p=(0,l.useRef)(o);(0,l.useEffect)(function(){p.current=o},[o]);var m=(0,l.useRef)(i);(0,l.useEffect)(function(){m.current=i},[i]);var g=(0,l.useRef)(null),y=u&&!a.getWidgets().includes(i),E=(0,D.I)();(0,F.E)(function(){var e=m.current;return g.current?(clearTimeout(g.current),(0,d.j)(o,p.current)||(a.removeWidgets([e]),a.addWidgets([i]))):u||a.addWidgets([i]),function(){g.current=setTimeout(function(){E._schedule(function(){E._preventWidgetCleanup||a.removeWidgets([e])})})}},[a,i,u,E,o]),(y||(null==f||null==(t=f.current)?void 0:t.status)==="pending")&&a.addWidgets([i]),(null==f?void 0:f.current)&&!s&&(v(f.current),"ais.dynamicWidgets"!==i.$$type&&"ais.feeds"!==i.$$type&&(null==(n=E.helper)?void 0:n.lastResults)&&v(f.current)),(null==f||null==(r=f.current)?void 0:r.status)==="fulfilled"&&(h.current+=1)}({widget:H,parentIndex:j,props:[B,T],shouldSsr:!!O,skipSuspense:void 0!==A&&A}),L}},64097:(e,t,r)=>{"use strict";r.d(t,{f:()=>h});var n=r(57906),i=r(60951),a=r(21374),o=r(94292),u=r(61286),s=r(13604),c=r(71527),l=r(57898),f=r(77559);function d(e){var t=e.classNames,r=void 0===t?{}:t,i=(0,a._)(e,["classNames"]);return c.createElement(f.G,(0,n._)({classNames:{root:(0,l.cx)("ais-Highlight",r.root),highlighted:(0,l.cx)("ais-Highlight-highlighted",r.highlighted),nonHighlighted:(0,l.cx)("ais-Highlight-nonHighlighted",r.nonHighlighted),separator:(0,l.cx)("ais-Highlight-separator",r.separator)}},i))}function h(e){var t=e.hit,r=e.attribute,l=e.highlightedTagName,f=e.nonHighlightedTagName,h=e.separator,p=(0,a._)(e,["hit","attribute","highlightedTagName","nonHighlightedTagName","separator"]),D=(0,o.E)(t._highlightResult,r)||[],m=(Array.isArray(D)?D:[D]).map(function(e){return(0,u.I)((0,s.x)(e.value||""))});return c.createElement(d,(0,i._)((0,n._)({},p),{parts:m,highlightedTagName:l,nonHighlightedTagName:f,separator:h}))}},64494:(e,t,r)=>{var n=r(16443),i=r(1209),a=r(98558),o=r(82371);e.exports=function(e){return n(e)||i(e)||a(e)||o()},e.exports.__esModule=!0,e.exports.default=e.exports},64847:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(62477).A)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]])},65040:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},66308:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(62477).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},66543:(e,t,r)=>{"use strict";e.exports=function(e){return function(t,r){var n,c,l,f,d,h=e.hierarchicalFacets[r],p=e.hierarchicalFacetsRefinements[h.name]&&e.hierarchicalFacetsRefinements[h.name][0]||"",D=e._getHierarchicalFacetSeparator(h),m=e._getHierarchicalRootPath(h),g=e._getHierarchicalShowParentLevel(h),y=a(e._getHierarchicalFacetSortBy(h)),v=t.every(function(e){return e.exhaustive}),F=(n=y,c=D,l=m,f=g,d=p,function(e,t,r){var a=e;if(r>0){var h=0;for(a=e;h<r;)a=i(a&&Array.isArray(a.data)?a.data:[],function(e){return e.isRefined}),h++}if(a){var p=Object.keys(t.data).map(function(e){return[e,t.data[e]]}).filter(function(e){var t,r,n,i,o,u;return t=e[0],r=a.path||l,n=d,i=c,o=l,u=f,(!o||0===t.indexOf(o)&&o!==t)&&(!o&&-1===t.indexOf(i)||o&&t.split(i).length-o.split(i).length==1||-1===t.indexOf(i)&&-1===n.indexOf(i)||0===n.indexOf(t)||0===t.indexOf(r+i)&&(u||0===t.indexOf(n)))});a.data=o(p.map(function(e){var r,n,i,a,o,l,f=e[0];return r=e[1],n=f,i=c,a=s(d),o=t.exhaustive,{name:(l=n.split(i))[l.length-1].trim(),path:n,escapedValue:u(n),count:r,isRefined:a===n||0===a.indexOf(n+i),exhaustive:o,data:null}}),n[0],n[1])}return e}),_=t;return m&&(_=t.slice(m.split(D).length)),_.reduce(F,{name:e.hierarchicalFacets[r].name,count:null,isRefined:!0,path:null,escapedValue:null,exhaustive:v,data:null})}};var n=r(24607),i=r(26611),a=r(85443),o=r(3293),u=n.escapeFacetValue,s=n.unescapeFacetValue},66556: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 o,u=this;if("function"!=typeof u||"[object Function]"!==t.apply(u))throw TypeError("Function.prototype.bind called on incompatible "+u);
1for(var s=i(arguments,1),c=r(0,u.length-s.length),l=[],f=0;f<c;f++)l[f]="$"+f;if(o=Function("binder","return function ("+a(l,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof o){var t=u.apply(this,n(s,arguments));return Object(t)===t?t:this}return u.apply(e,n(s,arguments))}),u.prototype){var d=function(){};d.prototype=u.prototype,o.prototype=new d,d.prototype=null}return o}},66604:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayableParams=void 0,t.arrayableParams={query_by:"query_by",query_by_weights:"query_by_weights",facet_by:"facet_by",group_by:"group_by",include_fields:"include_fields",exclude_fields:"exclude_fields",highlight_fields:"highlight_fields",highlight_full_fields:"highlight_full_fields",pinned_hits:"pinned_hits",hidden_hits:"hidden_hits",infix:"infix",override_tags:"override_tags",num_typos:"num_typos",prefix:"prefix",sort_by:"sort_by"}},67678:(e,t,r)=>{"use strict";var n=r(23544);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),o=t.getHierarchicalRefinement(n),u=t._getHierarchicalFacetSeparator(i);if(o.length>0&&o[0].split(u).length>1){var s=o[0].split(u).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(u)})},[]);s.forEach(function(n,o){var u=a._getDisjunctiveFacetSearchParams(t,n.attribute,0===o);function c(e){return i.attributes.some(function(t){return t===e.split(":")[0]})}var l=(u.facetFilters||[]).reduce(function(e,t){if(Array.isArray(t)){var r=t.filter(function(e){return!c(e)});r.length>0&&e.push(r)}return"string"!=typeof t||c(t)||e.push(t),e},[]),f=s[o-1];o>0?u.facetFilters=l.concat(f.attribute+":"+f.value):l.length>0?u.facetFilters=l:delete u.facetFilters,r.push({indexName:e,params:u})})}}),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),o=a._getNumericFilters(e),u=a._getTagFilters(e),s={};return t.length>0&&(s.facets=t.indexOf("*")>-1?["*"]:t),u.length>0&&(s.tagFilters=u),r.length>0&&(s.facetFilters=r),o.length>0&&(s.numericFilters=o),i(n({},e.getQueryParams(),s))},_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),o=a._getNumericFilters(e),u=a._getTagFilters(e),s={};t.length>0&&(s.facets=t.indexOf("*")>-1?["*"]:t),u.length>0&&(s.tagFilters=u),r.length>0&&(s.facetFilters=r),o.length>0&&(s.numericFilters=o);var c=e.getQueryParams();return delete c.highlightPreTag,delete c.highlightPostTag,delete c.index,i(n({},c,s))},_getDisjunctiveFacetSearchParams:function(e,t,r){var o=a._getFacetFilters(e,t,r),u=a._getNumericFilters(e,t),s=a._getTagFilters(e),c={hitsPerPage:0,page:0,analytics:!1,clickAnalytics:!1};s.length>0&&(c.tagFilters=s);var l=e.getHierarchicalFacetByName(t);return l?c.facets=a._getDisjunctiveHierarchicalFacetAttribute(e,l,r):c.facets=t,u.length>0&&(c.numericFilters=u),o.length>0&&(c.facetFilters=o),i(n({},e.getQueryParams(),c))},_getNumericFilters:function(e,t){if(e.numericFilters)return e.numericFilters;var r=[];return Object.keys(e.numericRefinements).forEach(function(n){var i=e.numericRefinements[n]||{};
1Object.keys(i).forEach(function(e){var a=i[e]||[];t!==n&&a.forEach(function(t){if(Array.isArray(t)){var i=t.map(function(t){return n+e+t});r.push(i)}else r.push(n+e+t)})})}),r},_getTagFilters:function(e){return e.tagFilters?e.tagFilters:e.tagRefinements.join(",")},_getFacetFilters:function(e,t,r){var n=[],i=e.facetsRefinements||{};Object.keys(i).sort().forEach(function(e){(i[e]||[]).slice().sort().forEach(function(t){n.push(e+":"+t)})});var a=e.facetsExcludes||{};Object.keys(a).sort().forEach(function(e){(a[e]||[]).sort().forEach(function(t){n.push(e+":-"+t)})});var o=e.disjunctiveFacetsRefinements||{};Object.keys(o).sort().forEach(function(e){var r=o[e]||[];if(e!==t&&r&&0!==r.length){var i=[];r.slice().sort().forEach(function(t){i.push(e+":"+t)}),n.push(i)}});var u=e.hierarchicalFacetsRefinements||{};return Object.keys(u).sort().forEach(function(i){var a,o,s=(u[i]||[])[0];if(void 0!==s){var c=e.getHierarchicalFacetByName(i),l=e._getHierarchicalFacetSeparator(c),f=e._getHierarchicalRootPath(c);if(t===i){if(-1===s.indexOf(l)||!f&&!0===r||f&&f.split(l).length===s.split(l).length)return;f?(o=f.split(l).length-1,s=f):(o=s.split(l).length-2,s=s.slice(0,s.lastIndexOf(l))),a=c.attributes[o]}else o=s.split(l).length-1,a=c.attributes[o];a&&n.push([a+":"+s])}}),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,o=r.attributes.slice(0,a+1);return t.concat(o)},[])},_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 o=(e.getHierarchicalRefinement(t.name)[0]||"").split(n).length-1;return t.attributes.slice(0,o+1)},getSearchForFacetQuery:function(e,t,r,o){var u=o.isDisjunctiveFacet(e)?o.clearRefinements(e):o,s={facetQuery:t,facetName:e};return"number"==typeof r&&(s.maxFacetHits=r),i(n({},a._getHitsSearchParams(u),s))}};e.exports=a},68707: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}},69641:(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})},70166:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246);t.default=function(){function e(e){this.apiCall=e}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get("/debug")]})})},e}()},70471:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246),i=n.__importDefault(r(13668));t.default=function(){function e(e,t){this.name=e,this.apiCall=t}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.delete(this.endpointPath())]})})},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.name))},e}()},70723:(e,t,r)=>{"use strict";var n=r(61945),i=r(53104),a=r(24607),o=r(26611),u=r(22221),s=r(85443),c=r(43063),l=r(3293),f=a.escapeFacetValue,d=a.unescapeFacetValue,h=r(66543);function p(e){var t={};return e.forEach(function(e,r){t[e]=r}),t}function D(e,t,r){t&&t[r]&&(e.stats=t[r])}function m(e,t,r){var a=t[0]||{};this._rawResults=t;var s=this;Object.keys(a).forEach(function(e){s[e]=a[e]});var l=i(r,{persistHierarchicalRootCount:!1});Object.keys(l).forEach(function(e){s[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(),m=p(e.facets),g=p(e.disjunctiveFacets),y=1,v=a.facets||{};Object.keys(v).forEach(function(t){var r=v[t],n=(l=e.hierarchicalFacets,o(l,function(e){return(e.attributes||[]).indexOf(t)>-1}));if(n){var i=n.attributes.indexOf(t),c=u(e.hierarchicalFacets,function(e){return e.name===n.name});s.hierarchicalFacets[c][i]={attribute:t,data:r,exhaustive:a.exhaustiveFacetsCount}}else{var l,f,d=-1!==e.disjunctiveFacets.indexOf(t),h=-1!==e.facets.indexOf(t);d&&(f=g[t],s.disjunctiveFacets[f]={name:t,data:r,exhaustive:a.exhaustiveFacetsCount},D(s.disjunctiveFacets[f],a.facets_stats,t)),h&&(f=m[t],s.facets[f]={name:t,data:r,exhaustive:a.exhaustiveFacetsCount},D(s.facets[f],a.facets_stats,t))}}),this.hierarchicalFacets=n(this.hierarchicalFacets),f.forEach(function(r){var n=t[y],o=n&&n.facets?n.facets:{},l=e.getHierarchicalFacetByName(r);
1Object.keys(o).forEach(function(t){var r,f=o[t];if(l){r=u(e.hierarchicalFacets,function(e){return e.name===l.name});var h=u(s.hierarchicalFacets[r],function(e){return e.attribute===t});if(-1===h)return;s.hierarchicalFacets[r][h].data=s.persistHierarchicalRootCount?c(s.hierarchicalFacets[r][h].data,f):i(f,s.hierarchicalFacets[r][h].data)}else{r=g[t];var p=a.facets&&a.facets[t]||{};s.disjunctiveFacets[r]={name:t,data:c(p,f),exhaustive:n.exhaustiveFacetsCount},D(s.disjunctiveFacets[r],n.facets_stats,t),e.disjunctiveFacetsRefinements[t]&&e.disjunctiveFacetsRefinements[t].forEach(function(n){!s.disjunctiveFacets[r].data[n]&&e.disjunctiveFacetsRefinements[t].indexOf(d(n))>-1&&(s.disjunctiveFacets[r].data[n]=0)})}}),y++}),e.getRefinedHierarchicalFacets().forEach(function(r){var n=e.getHierarchicalFacetByName(r),a=e._getHierarchicalFacetSeparator(n),o=e.getHierarchicalRefinement(r);0===o.length||o[0].split(a).length<2||t.slice(y).forEach(function(t){var r=t&&t.facets?t.facets:{};Object.keys(r).forEach(function(t){var c=r[t],l=u(e.hierarchicalFacets,function(e){return e.name===n.name}),f=u(s.hierarchicalFacets[l],function(e){return e.attribute===t});if(-1!==f){var d={};if(o.length>0&&!s.persistHierarchicalRootCount){var h=o[0].split(a)[0];d[h]=s.hierarchicalFacets[l][f].data[h]}s.hierarchicalFacets[l][f].data=i(d,c,s.hierarchicalFacets[l][f].data)}}),y++})}),Object.keys(e.facetsExcludes).forEach(function(t){var r=e.facetsExcludes[t],n=m[t];s.facets[n]={name:t,data:v[t],exhaustive:a.exhaustiveFacetsCount},r.forEach(function(e){s.facets[n]=s.facets[n]||{name:t},s.facets[n].data=s.facets[n].data||{},s.facets[n].data[e]=0})}),this.hierarchicalFacets=this.hierarchicalFacets.map(h(e)),this.facets=n(this.facets),this.disjunctiveFacets=n(this.disjunctiveFacets),this._state=e}function g(e,t){var r=o(e,function(e){return e.name===t});return r&&r.stats}function y(e,t,r,n,i){var a=o(i,function(e){return e.name===r}),u=a&&a.data&&a.data[n]?a.data[n]:0;return{type:t,attributeName:r,name:n,count:u,exhaustive:a&&a.exhaustive||!1}}m.prototype.getFacetByName=function(e){function t(t){return t.name===e}return o(this.facets,t)||o(this.disjunctiveFacets,t)||o(this.hierarchicalFacets,t)},m.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"],m.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=o(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=o(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=o(e.hierarchicalFacets,r);if(!a)return a;var u=e._state.getHierarchicalFacetByName(t),s=e._state._getHierarchicalFacetSeparator(u),c=d(e._state.getHierarchicalRefinement(t)[0]||"");0===c.indexOf(u.rootPath)&&(c=c.replace(u.rootPath+s,""));var l=c.split(s);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:m.DEFAULT_SORT,facetOrdering:!(t&&t.sortBy)}),u=this;return r=Array.isArray(n)?[e]:u._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 o=r.data.map(function(r){return e(t,r,n,a+1)});return i({data:t(o,n[a])},r)}(function(e,t){var r,n,i,o,c,f,d,h=u.renderingContent&&u.renderingContent.facetOrdering&&u.renderingContent.facetOrdering.values&&u.renderingContent.facetOrdering.values[t];if(a.facetOrdering&&h)return n=[],i=[],o=h.hide||[],c=(h.order||[]).reduce(function(e,t,r){return e[t]=r,e},{}),e.forEach(function(e){var t=e.path||e.name,r=o.indexOf(t)>-1;r||void 0===c[t]?r||i.push(e):n[c[t]]=e}),n=n.filter(function(e){return e}),"hidden"===(f=h.sortRemainingBy)?n:(r="alpha"===f?[["path","name"],["asc","asc"]]:[["count"],["desc"]],n.concat(l(i,r[0],r[1])));if(Array.isArray(a.sortBy)){var p=s(a.sortBy,m.DEFAULT_SORT),D=l(e,p[0],p[1]),g=h&&h.hide?h.hide:[];if(g.length>0){var y=[];return D.forEach(function(e){var t=e.path||e.name;-1===g.indexOf(t)&&y.push(e)}),y}return D}if("function"==typeof a.sortBy)return d=a.sortBy,e.sort(d);throw Error("options.sortBy is optional but if defined it must be either an array of str
1ing (predicates) or a sorting function")},n,r)}},m.prototype.getFacetStats=function(e){return this._state.isConjunctiveFacet(e)?g(this.facets,e):this._state.isDisjunctiveFacet(e)?g(this.disjunctiveFacets,e):void 0},m.prototype.getRefinements=function(){var e=this._state,t=this,r=[];return Object.keys(e.facetsRefinements).forEach(function(n){e.facetsRefinements[n].forEach(function(i){r.push(y(e,"facet",n,i,t.facets))})}),Object.keys(e.facetsExcludes).forEach(function(n){e.facetsExcludes[n].forEach(function(i){r.push(y(e,"exclude",n,i,t.facets))})}),Object.keys(e.disjunctiveFacetsRefinements).forEach(function(n){e.disjunctiveFacetsRefinements[n].forEach(function(i){r.push(y(e,"disjunctive",n,i,t.disjunctiveFacets))})}),Object.keys(e.hierarchicalFacetsRefinements).forEach(function(n){e.hierarchicalFacetsRefinements[n].forEach(function(i){var a,u,s,c,l,f,d,h,p,D,m;r.push((a=e,u=n,s=i,c=t.hierarchicalFacets,l=a.getHierarchicalFacetByName(u),f=a._getHierarchicalFacetSeparator(l),d=s.split(f),h=o(c,function(e){return e.name===u}),D=(p=d.reduce(function(e,t){var r=e&&o(e.data,function(e){return e.name===t});return void 0!==r?r:e},h))&&p.count||0,m=p&&p.exhaustive||!1,{type:"hierarchical",attributeName:u,name:p&&p.path||"",count:D,exhaustive:m}))})}),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=m},71191:(e,t,r)=>{"use strict";var n=r(9100);Object.defineProperty(t,"__esModule",{value:!0});var i=r(4246),a=r(75147),o=r(78253),u=void 0!==n&&null!=n.versions&&null!=n.versions.node;t.default=function(e){function t(t,r,n){return e.call(this,t,r,n)||this}return i.__extends(t,e),t.prototype.create=function(e,t){return void 0===t&&(t={}),i.__awaiter(this,void 0,void 0,function(){return i.__generator(this,function(r){if(!e)throw Error("No document provided");return[2,this.apiCall.post(this.endpointPath(),e,t)]})})},t.prototype.upsert=function(e,t){return void 0===t&&(t={}),i.__awaiter(this,void 0,void 0,function(){return i.__generator(this,function(r){if(!e)throw Error("No document provided");return[2,this.apiCall.post(this.endpointPath(),e,Object.assign({},t,{action:"upsert"}))]})})},t.prototype.update=function(e,t){return void 0===t&&(t={}),i.__awaiter(this,void 0,void 0,function(){return i.__generator(this,function(r){if(!e)throw Error("No document provided");return null!=t.filter_by?[2,this.apiCall.patch(this.endpointPath(),e,Object.assign({},t))]:[2,this.apiCall.post(this.endpointPath(),e,Object.assign({},t,{action:"update"}))]})})},t.prototype.delete=function(e){return void 0===e&&(e={}),i.__awaiter(this,void 0,void 0,function(){return i.__generator(this,function(t){return[2,this.apiCall.delete(this.endpointPath(),e)]})})},t.prototype.createMany=function(e,t){return void 0===t&&(t={}),i.__awaiter(this,void 0,void 0,function(){return i.__generator(this,function(r){return this.configuration.logger.warn("createMany is deprecated and will be removed in a future version. Use import instead, which now takes both an array of documents or a JSONL string of documents"),[2,this.import(e,t)]})})},t.prototype.import=function(e,t){return void 0===t&&(t={}),i.__awaiter(this,void 0,void 0,function(){var r,n,o,s,c;return i.__generator(this,function(l){switch(l.label){case 0:if(r=i.__assign({throwOnFail:!0},t),Array.isArray(e)){if(0===e.length)throw new a.RequestMalformed("No documents provided");try{n=e.map(function(e){return JSON.stringify(e)}).join("\n")}catch(e){if(e instanceof RangeError&&e.message.includes("Too many properties to enumerate"))throw Error("".concat(e,"\n It looks like you have reached a Node.js limit that restricts the number of keys in an Object: https://stackoverflow.com/questions/9282869/are-there-limits-to-the-number-of-properties-in-a-javascript-object\n\n Please try reducing the number of keys in your document, or using CURL to import your data.\n "));throw Error(e)}}else{var f;if(null==(f=n=e)||""===f||0===f.length)throw new a.RequestMalformed("No documents provided")}return[4,this.apiCall.performRequest("post",this.endpointPath("import"),{queryParameters:r,bodyParameters:n,additionalHeaders:{"Content-Type":"text/plain"},skipConnectionTimeout:!0,enableKeepAlive:!!u})];case 1:if(o=l.sent(),!Array.isArray(e))return[2,o];if(!((c=(s=o.split("\n").map(function(e){return JSON.parse(e)})).filter(function(e){return!1===e.success})).length>0)||!r.throwOnFail)return[2,s];throw new a.ImportError("".concat(s.length-c.length," documents imported successfully, ").concat(c.length," documents failed during import. Use `error.importResults` from the raised exception to get a detailed error reason for each document."),s,{documentsInJSONLFormat:n,options:r,failedItems:c,successCount:s.length-c.length})}})})},t.prototype.importStream=function(e,t){return void 0===t&&(t={}),i.__awaiter(this,void 0,void 0,function(){var r,n,o;return i.__generator(this,function(s){switch(s.label){case 0:return r=i.__assign({throwOnFail:!0},t),[4,this.apiCall.performRequest("post",this.endpointPath("import"),{queryParameters:r,bodyParameters:e,additionalHeaders:{"Content-Type":"text/plain"},skipConnectionTimeout:!0,enableKeepAlive:!!u})];case 1:if(!((o=(n=s.sent().split("\n").map(function(e){return JSON.parse(e)})).filter(function(e){return!1===e.success})).length>0)||!r.throwOnFail)return[2,n];throw new a.ImportError("".concat(n.length-o.length," documents imported successfully, ").concat(o.length," documents failed during import. Use `error.importResults` from the raised exception to get a detailed error reason for each document."),n,{documentsInJSONLFormat:e,options:r,failedItems:o,successCount:n.length-o.length})}})})}
1,t.prototype.export=function(e){return void 0===e&&(e={}),i.__awaiter(this,void 0,void 0,function(){return i.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath("export"),e)]})})},t.prototype.exportStream=function(e){return void 0===e&&(e={}),i.__awaiter(this,void 0,void 0,function(){return i.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath("export"),e,{responseType:"stream"})]})})},t}(o.SearchOnlyDocuments)},71500:e=>{"use strict";e.exports=Math.pow},72681:(e,t,r)=>{"use strict";r.d(t,{G:()=>eU});var n=r(21374),i=r(71527),a=r(20846),o=r(97677),u=r(57906),s=r(75241);function c(e){return(c=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(2001);function d(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function h(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 p(e,t,r){return t&&h(e.prototype,t),r&&h(e,r),e}var D=r(44236);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(32512),v=r(51919),F=r(60951),_=r(3538);function E(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}var C="4.111.0",b=r(29081),R="ais.usage.sessionId",S=null,A="undefined"!=typeof performance?function(){return performance.now()}:function(){return Date.now()},w=r(62935);function O(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 P(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 x(e){var t=e.renderState,r=e.instantSearchInstance,n=e.parent,i=n?n.getIndexId():r.mainIndex.getIndexId();r.renderState=(0,F._)((0,u._)({},r.renderState),(0,D._)({},i,(0,u._)({},r.renderState[i],t)))}function j(e){var t=[];return Object.keys(e).forEach(function(r){var n=e[r];if(void 0!==n){var i=function(e){if(null==e)return null;var t=void 0===e?"undefined":(0,f._)(e);if("string"===t||"number"===t||"boolean"===t)return{value:String(e),type:t};if(Array.isArray(e)||"object"===t){var r=Array.isArray(e)?"array":"object";try{return{value:JSON.stringify(e),type:r}}catch(e){return{type:r}}}return"function"===t?{value:e.name,type:"function"}:null}(n);i?t.push((0,u._)({name:r},i)):t.push({name:r})}}),t}function B(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{fallback:function(){}}).fallback;return"undefined"==typeof window?t():e({window:window})}function T(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]]}function N(e,t){for(var r,n=0;n<e.length;n++)if(t(r=e[n],n,e))return r}var k=r(19137);function I(e){return e.transporter&&e.transporter.userAgent?e.transporter.userAgent.value:e._ua}var H="2.17.2",U="https://cdn.jsdelivr.net/npm/search-insights@".concat(H,"/dist/search-insights.min.js"),L=["searchClient","insightsClient","initialUiState"];function M(){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,o=e.$$automatic,c=void 0!==o&&o,l=t;t||null===t||B(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=H,t[r].shouldAddScript=!0),l=t[r])});var d=l||k.l;return function(e){var t,i,o,l=e.instantSearchInstance,h=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,s._)(h));var p=(0,_._)(T(l.client),2),D=p[0],m=p[1],g=void 0,y=void 0,v=void 0,b=d.queue;Array.isArray(b)&&(y=(t=(0,_._)(["setUserToken","init"].map(function(e){return(0,_._)(N(b.slice().reverse(),function(t){return(0,_._)(t,1)[0]===e})||[],2)[1]}),2))[0],g=t[1]),d("getUserToken",null,function(e,t){v=W(t)}),(r||!q(d))&&d("init",(0,u._)({appId:D,apiKey:m,partial:!0},r));var P=null;return{$$type:"ais.insights",$$internal:a,$$automatic:c,onStateChange:function(){},subscribe:function(){if(d.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=U,t.onerror=function(){l.emit("error",Error(e))},document.body.appendChild(t),d.shouldAddScript=!1}catch(t){d.shouldAddScript=!1,l.emit("error",Error(e))}}},started:function(){d("addAlgoliaAgent","insights-middleware"),o=l.mainHelper;var e,t,h,p,m,b,x,k,H,U,M,Q,$=d.queue;Array.isArray($)&&(y=(U=(0,_._)(["setUserToken","init"].map(function(e){return(0,_._)(N($.slice().reverse(),function(t){return(0,_._)(t,1)[0]===e})||[],2)[1]}),2))[0],g=U[1]),p=(null==(h=(e=l)._initialResults)||null==(t=h[e.indexName])?void 0:t.state)||{},m=e.mainHelper.state,i={userToken:p.userToken||m.userToken,clickAnalytics:p.clickAnalytics||m.clickAnalytics},c||o.overrideStateWithoutTriggeringChangeEvent((0,F._)((0,u._)({},o.state),{clickAnalytics:!0})),a||l.scheduleSearch();var V=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=W(e);
1if(r){var n=o.state.userToken;t?i():setTimeout(i,0)}function i(){o.overrideStateWithoutTriggeringChangeEvent((0,F._)((0,u._)({},o.state),{userToken:r})),n&&n!==r&&(o._recommendCache={},l.scheduleSearch())}};function z(e){V(e,!0),d("setUserToken",e)}var J=void 0,K=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)}}();J=K||"anonymous-".concat(E());var G=i.userToken;(null==r?void 0:r.userToken)&&(M=r.userToken),M?z(M):G?z(G):v?z(v):y?z(y):J&&(z(J),((null==r?void 0:r.useCookie)||(null==g?void 0:g.useCookie))&&(b=J,x=(null==r?void 0:r.cookieDuration)||(null==g?void 0:g.cookieDuration),(k=new Date).setTime(k.getTime()+(x||15552e6)),H="expires=".concat(k.toUTCString()),document.cookie="_ALGOLIA=".concat(b,";").concat(H,";path=/"))),d("onUserTokenChange",function(e){return V(e,!0)},{immediate:!0});var X=d;q(d)&&(X=function(e,t){var r=(0,_._)(T(l.client),2);return d(e,t,{headers:{"X-Algolia-Application-Id":r[0],"X-Algolia-API-Key":r[1]}})});var Z=new Set;l.mainHelper.derivedHelpers[0].on("result",function(e){var t=e.results;t&&(!t.queryID||t.queryID!==Q)&&(Q=t.queryID,Z.clear())}),l.sendEventToInsights=function(e){if(n)n(e,X);else if(e.insightsMethod){if("viewedObjectIDs"===e.insightsMethod){var t=e.payload,r=function(e){return t.queryID?"".concat(t.queryID,":").concat(e):e},i=t.objectIDs.filter(function(e){return!Z.has(r(e))});if(0===i.length)return;i.forEach(function(e){return Z.add(r(e))}),t.objectIDs=i}e.payload.algoliaSource=["instantsearch"],c&&e.payload.algoliaSource.push("instantsearch-automatic"),"internal"===e.eventModifier&&e.payload.algoliaSource.push("instantsearch-internal"),X(e.insightsMethod,e.payload)}},B(function(){var e=function(){if(S)return S;try{var e=sessionStorage.getItem(R);if(e)return S=e;return S=E(),sessionStorage.setItem(R,S),S}catch(e){return S=E()}}(),t=function(){try{var t,r,n,i,a,c=Math.round(A()-l._createdAt);n={eventName:"__start__",algoliaAgent:I(l.client),version:C,applicationId:D,performance:{bootstrapMs:c},widgets:[{type:"ais.instantSearch",params:l._initialOptions?j((t=l._initialOptions,r=(0,s._)(L),null==t?t:Object.keys(t).reduce(function(e,n){return r.indexOf(n)>=0||(e[n]=t[n]),e},{}))):[],children:function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.mainIndex,i=O(r,n,r._initialUiState);return t.map(function(t){var n={};if(t.getWidgetRenderState){var a=t.getWidgetRenderState(i);a&&a.widgetParams&&(n=a.widgetParams)}var o=j(n),u=(0,w.l)(t)?e(t.getWidgets(),r,t):[];return{type:t.$$widgetType||t.$$type||"unknown",params:o,children:u}})}(l.mainIndex.getWidgets(),l)}]},a=null==(i=o.state)?void 0:i.userToken,X("sendEvents",[(0,u._)({eventType:"instantsearch",timestamp:Date.now(),sessionID:e,userToken:a?String(a):void 0},n)])}catch(e){}};l.once("render",t),P=function(){return l.removeListener("render",t)}})},unsubscribe:function(){P&&P(),d("onUserTokenChange",void 0),l.sendEventToInsights=k.l,o&&i&&(o.overrideStateWithoutTriggeringChangeEvent((0,u._)({},o.state,i)),l.scheduleSearch())}}}}function q(e){var t=(0,_._)((e.version||"").split(".").map(Number),2),r=t[0],n=t[1];return r>=3||2===r&&n>=6||1===r&&n>=10}function W(e){if(e)return"number"==typeof e?e.toString():e}var Q=r(96319),$=function(e){e&&(window.document.title=e)},V=function(){function e(t){var r=this,n=t.windowTitle,i=t.writeDelay,a=t.createURL,o=t.parseURL,u=t.getLocation,s=t.start,c=t.dispose,l=t.push,f=t.cleanUrlOnDispose;d(this,e),(0,D._)(this,"$$type","ais.browser"),(0,D._)(this,"windowTitle",void 0),(0,D._)(this,"writeDelay",void 0),(0,D._)(this,"_createURL",void 0),(0,D._)(this,"parseURL",void 0),(0,D._)(this,"getLocation",void 0),(0,D._)(this,"writeTimer",void 0),(0,D._)(this,"_onPopState",void 0),(0,D._)(this,"inPopState",!1),(0,D._)(this,"isDisposed",!1),(0,D._)(this,"latestAcknowledgedHistory",0),(0,D._)(this,"_start",void 0),(0,D._)(this,"_dispose",void 0),(0,D._)(this,"_push",void 0),(0,D._)(this,"_cleanUrlOnDispose",void 0),this.windowTitle=n,this.writeTimer=void 0,this.writeDelay=void 0===i?400:i,this._createURL=a,this.parseURL=o,this.getLocation=u,this._start=s,this._dispose=c,this._push=l,this._cleanUrlOnDispose=void 0===f||f,B(function(e){var t=e.window;$(r.windowTitle&&r.windowTitle(r.read())),r.latestAcknowledgedHistory=t.history.length})}return p(e,[{key:"read",value:function(){return this.parseURL({qsModule:Q,location:this.getLocation()})}},{key:"write",value:function(e){var t=this;B(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(){$(a),t.shouldWrite(i)&&(t._push?t._push(i):n.history.pushState(e,a||"",i),t.latestAcknowledgedHistory=n.history.length),t.inPopState=!1,t.writeTimer=void 0},t.writeDelay)})}}
1,{key:"onUpdate",value:function(e){var t=this;this._start&&this._start(function(){e(t.read())}),this._onPopState=function(){t.writeTimer&&(clearTimeout(t.writeTimer),t.writeTimer=void 0),t.inPopState=!0,e(t.read())},B(function(e){e.window.addEventListener("popstate",t._onPopState)})}},{key:"createURL",value:function(e){return this._createURL({qsModule:Q,routeState:e,location:this.getLocation()})}},{key:"dispose",value:function(){var e=this;this._dispose&&this._dispose(),this.isDisposed=!0,B(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 B(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 z(e){return e.configure,(0,n._)(e,["configure"])}function J(e){return e!==Object(e)}var K=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.router,r=void 0===t?function(){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,o=n.port,u=void 0===o?"":o,s=n.pathname,c=n.hash,l=t.stringify(r),f=""===u?"":":".concat(u);return l?"".concat(i,"//").concat(a).concat(f).concat(s,"?").concat(l).concat(c):"".concat(i,"//").concat(a).concat(f).concat(s).concat(c)}: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,o=e.windowTitle,u=e.getLocation;return new V({createURL:r,parseURL:i,writeDelay:void 0===a?400:a,windowTitle:o,getLocation:void 0===u?function(){return B(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.")}})}:u,start:e.start,dispose:e.dispose,push:e.push,cleanUrlOnDispose:e.cleanUrlOnDispose})}():t,n=e.stateMapping,i=void 0===n?{$$type:"ais.simple",stateToRoute:function(e){return Object.keys(e).reduce(function(t,r){return(0,F._)((0,u._)({},t),(0,D._)({},r,z(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,F._)((0,u._)({},t),(0,D._)({},r,z(n)))},{})}}:n,a=e.$$internal,o=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,F._)((0,u._)({},t),(0,D._)({},r,e[r]))},n),o=i.stateToRoute(a);return r.createURL(o)};var n=void 0,a=t._initialUiState;return{$$type:"ais.router({router:".concat(r.$$type||"__unknown__",", stateMapping:").concat(i.$$type||"__unknown__","})"),$$internal:o,onStateChange:function(e){var t=e.uiState,a=i.stateToRoute(t);(void 0===n||!function e(t,r){if(t===r)return!0;if(J(t)||J(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 o,u=Object.keys(t)[Symbol.iterator]();!(n=(o=u.next()).done);n=!0){var s=o.value;if(!(s in r)||!e(t[s],r[s]))return!1}}catch(e){i=!0,a=e}finally{try{n||null==u.return||u.return()}finally{if(i)throw a}}return!0}(n,a))&&(r.write(a),n=a)},subscribe:function(){t._initialUiState=(0,u._)({},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()}}}},G=0,X=Promise.resolve();function Z(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=X.then(function(){if(t=null,r){r=!1;return}e.apply(void 0,(0,s._)(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 Y(e){for(var t=e.getParent(),r=[e.getHelper().state];null!==t;)r=[t.getHelper().state].concat(r),t=t.getParent();return r}var ee=r(69641),et=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,n._)(t,["facets","disjunctiveFacets","facetsRefinements","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacets","hierarchicalFacetsRefinements","ruleContexts"]);return e.setQueryParameters(r)}
1,er=function(e,t){var r=[].concat(e.ruleContexts).concat(t.ruleContexts).filter(Boolean).filter(function(e,t,r){return r.indexOf(e)===t});return r.length>0?e.setQueryParameters({ruleContexts:r}):e},en=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,n,i,a,o,s,c,l;return et((l=er((r=e.setQueryParameters({hierarchicalFacetsRefinements:(0,u._)({},e.hierarchicalFacetsRefinements,t.hierarchicalFacetsRefinements)}),n=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)}),i=t.tagRefinements.reduce(function(e,t){return e.addTagRefinement(t)},n),a=i.setQueryParameters({numericRefinements:(0,u._)({},i.numericRefinements,t.numericRefinements)}),o=a.setQueryParameters({disjunctiveFacetsRefinements:(0,u._)({},a.disjunctiveFacetsRefinements,t.disjunctiveFacetsRefinements)}),s=o.setQueryParameters({facetsExcludes:(0,u._)({},o.facetsExcludes,t.facetsExcludes)}),c=s.setQueryParameters({facetsRefinements:(0,u._)({},s.facetsRefinements,t.facetsRefinements)}),t.disjunctiveFacets.reduce(function(e,t){return e.addDisjunctiveFacet(t)},c)),t),t.facets.reduce(function(e,t){return e.addFacet(t)},l)),t)})},ei=(0,ee.V)({name:"index-widget"});function ea(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 eo(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.reduce(function(e,r){return!(0,w.l)(r)&&(r.getWidgetUiState||r.getWidgetState)?r.getWidgetUiState?r.getWidgetUiState(e,t):r.getWidgetState(e,t):e},r)}function eu(e,t){var r=t.initialSearchParameters,i=(0,n._)(t,["initialSearchParameters"]);return e.reduce(function(e,t){return!t.getWidgetSearchParameters||(0,w.l)(t)?e:"search"===t.dependsOn&&t.getWidgetParameters?t.getWidgetParameters(e,i):t.getWidgetSearchParameters(e,i)},r)}function es(e,t){var r=t.initialRecommendParameters,i=(0,n._)(t,["initialRecommendParameters"]);return e.reduce(function(e,t){return!(0,w.l)(t)&&"recommend"===t.dependsOn&&t.getWidgetParameters?t.getWidgetParameters(e,i):e},r)}var ec=function(e){if(void 0===e||void 0===e.indexName&&!e.isolated&&!e.EXPERIMENTAL_isolated)throw Error(ei("The `indexName` option is required."));var t,r=e.indexName,n=void 0===r?"":r,i=e.indexId,a=void 0===i?n:i,o=e.isolated,c=void 0===o?null!=(t=e.EXPERIMENTAL_isolated)&&t:o,l=[],f={},d=null,h=null,p=null,m=null,y=null,_=function(){var e,t,r,n;d&&(r=(t=function e(t){return t.reduce(function(t,r){if((0,w.l)(r)){if(r._isolated)return t;var n=e(r.getWidgets());return{hasSearchWidget:t.hasSearchWidget||n.hasSearchWidget,hasRecommendWidget:t.hasRecommendWidget||n.hasRecommendWidget}}return"recommend"===r.dependsOn?(0,F._)((0,u._)({},t),{hasRecommendWidget:!0}):"none"===r.dependsOn?t:(0,F._)((0,u._)({},t),{hasSearchWidget:!0})},{hasSearchWidget:!1,hasRecommendWidget:!1})}((e=d).mainIndex.getWidgets())).hasSearchWidget,n=t.hasRecommendWidget,e._hasSearchWidget=r,e._hasRecommendWidget=n)};return{$$type:"ais.index",$$widgetType:"ais.index",_isolated:c,getIndexName:function(){return n},getIndexId:function(){return a},getHelper:function(){return p},getResults:function(){return(null==m?void 0:m.lastResults)?(m.lastResults._state=p.state,m.lastResults):null},getResultsForWidget:function(e){return"recommend"!==e.dependsOn||(0,w.l)(e)||void 0===e.$$id?this.getResults():(null==p?void 0:p.lastRecommendResults)?p.lastRecommendResults[e.$$id]:null},getPreviousState:function(){return y},getScopedResults:function(){var e=this.getParent();return function e(t){return t.filter(w.l).reduce(function(t,r){return t.concat.apply(t,[{indexId:r.getIndexId(),results:r.getResults(),helper:r.getHelper()}].concat((0,s._)(e(r.getWidgets()))))},[])}(e?e.getWidgets():0===n.length?this.getWidgets():[this])},getParent:function(){return c?null:h},createURL:function(e){return"function"==typeof e?d._createURL((0,D._)({},a,e(f))):d._createURL((0,D._)({},a,eo(l,{searchParameters:e,helper:p})))},scheduleLocalSearch:Z(function(){c&&(null==p||p.search())}),getWidgets:function(){return l},addWidgets:function(e){var t=this;if(!Array.isArray(e))throw Error(ei("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(ei("The widget definition expects a `render` and/or an `init` method."));return r.forEach(function(e){e.parent=t,(0,w.l)(e)||"recommend"===e.dependsOn&&(e.$$id=G++)}),l=l.concat(r),_(),d&&r.length&&(ea(p,{state:eu(l,{uiState:f,initialSearchParameters:p.state}),recommendState:es(l,{uiState:f,initialRecommendParameters:p.recommendState}),_uiState:f}),r.forEach(function(e){e.getRenderState&&x({renderState:e.getRenderState(d.renderState[t.getIndexId()]||{},O(d,t,d._initialUiState)),instantSearchInstance:d,parent:t})}),r.forEach(function(e){e.init&&e.init(O(d,t,d._initialUiState))}),c?this.scheduleLocalSearch():d.scheduleSearch()),this},removeWidgets:function(e){var t=this;if(!Array.isArray(e))throw Error(ei("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(ei("The widget definition expects a `dispose` method."));if(l=l.filter(function(e){return -1===r.indexOf(e)}),r.forEach(function(e){e.parent=void 0}),_(),d&&r.length){var n=r.reduce(function(e,r){var n=r.dispose({helper:p,state:e.cleanedSearchState,recommendState:e.cleanedRecommendState,parent:t});return g(n,v.RecommendParameters)?e.cleanedRecommendState=n:n&&(e.cleanedSearchState=n),e},{cleanedSearchState:p.state,cleanedRecommendState:p.recommendState}),i=n.cleanedSearchState,a=n.cleanedRecommendState,o=d.future.preserveSharedStateOnUnmount?eu(l,{uiState:f,initialSearchParameters:new v.SearchParameters({index:this.getIndexName()})}):eu(l,{uiState:eo(l,{searchParameters:i,helper:p}),initialSearchParameters:i});f=eo(l,{searchParameters:o,helper:p}),p.setState(o),p.recommendState=a,l.length&&(c?this.scheduleLocalSearch():d.scheduleSearch())}return this},init:function(e){var t,r=this,i=e.instantSearchInstance,o=e.parent,D=e.uiState;if(null===p){d=i,h=o,f=D[a]||{};var g=i.mainHelper,E=eu(l,{uiState:f,initialSearchParameters:new v.SearchParameters({index:n})}),C=es(l,{uiState:f,initialRecommendParameters:new v.RecommendParameters});(p=v(g.getClient(),E.index,E)).recommendState=C,p.search=function(){return c?(i.status="loading",r.render({instantSearchInstance:i}),i.compositionID?p.searchWithComposition():p.searchOnlyWithDerivedHelpers()):i.onStateChange?(i.onStateChange({uiState:i.mainIndex.getWidgetUiState({}),setUiState:function(e){return i.setUiState(e,!1)}}),g):g.search()},p.searchWithoutTriggeringOnStateChange=function(){return g.search()},p.searchForFacetValues=function(e,t,n,i){var a=en.apply(void 0,[g.state].concat((0,s._)(Y(r)))).setQueryParameters(i);return g.searchForFacetValues(e,t,n,a)};var b=n?p:v({},"__empty_index__",{});m=(c?b:function(e,t){for(;e;){if(e._isolated)return e.getHelper();e=e.getParent()}return t}(o,g)).derive(function(){return en.apply(void 0,[g.state].concat((0,s._)(Y(r))))},function(){return function(e,t){var r=t.userToken,n=t.clickAnalytics;if(void 0===r&&void 0===n)return e;var i=(0,u._)({},void 0===n?{}:{clickAnalytics:n},void 0===r?{}:{userToken:r});return new v.RecommendParameters({params:e.params.map(function(e){var t=e.queryParameters,r=e.fallbackParameters;return(0,u._)((0,F._)((0,u._)({},e),{queryParameters:(0,u._)({},i,t)}),r&&{fallbackParameters:(0,u._)({},i,r)})})})}(r.getHelper().recommendState,g.state)});var R=null==(t=i._initialResults)?void 0:t[this.getIndexId()];if(null==R?void 0:R.results){var S=new v.SearchResults(new v.SearchParameters(R.state),R.results);m.lastResults=S,p.lastResults=S}if(null==R?void 0:R.recommendResults){var A=new v.RecommendResults(new v.RecommendParameters({params:R.recommendResults.params}),R.recommendResults.results);m.lastRecommendResults=A,p.lastRecommendResults=A}p.on("change",function(e){e.isPageReset&&function e(t){var r=t.filter(w.l);0!==r.length&&r.forEach(function(t){var r=t.getHelper();ea(r,{state:r.state.resetPage(),recommendState:r.recommendState,isPageReset:!0}
1),e(t.getWidgets())})}(l)}),m.on("search",function(){i.scheduleStalledRender()}),m.on("result",function(e){var t=e.results;i.scheduleRender(),p.lastResults=t,y=null==t?void 0:t._state}),m.on("recommend:result",function(e){var t=e.recommend;i.scheduleRender(),p.lastRecommendResults=t.results}),l.forEach(function(e){e.getRenderState&&x({renderState:e.getRenderState(i.renderState[r.getIndexId()]||{},O(i,r,D)),instantSearchInstance:i,parent:r})}),l.forEach(function(e){e.init&&e.init(O(i,r,D))}),p.on("change",function(e){var t=e.state,r=e._uiState;f=eo(l,{searchParameters:t,helper:p},r||{}),i.onStateChange||i.onInternalStateChange()}),R&&i.scheduleRender(),_()}},render:function(e){var t=this,r=e.instantSearchInstance;"error"===r.status&&!r.mainHelper.hasPendingRequests()&&y&&p.setState(y);var i=this.getResults()||(null==m?void 0:m.lastRecommendResults)||c&&!n?l:l.filter(function(e){return e.shouldRender});(i=i.filter(function(e){return!e.shouldRender||e.shouldRender({instantSearchInstance:r})})).forEach(function(e){e.getRenderState&&x({renderState:e.getRenderState(r.renderState[t.getIndexId()]||{},P(r,t,e)),instantSearchInstance:r,parent:t})}
1),i.forEach(function(e){e.render&&e.render(P(r,t,e))})},dispose:function(){var e=this;l.forEach(function(t){t.dispose&&p&&t.dispose({helper:p,state:p.state,recommendState:p.recommendState,parent:e})}),d=null,h=null,null==p||p.removeAllListeners(),p=null,null==m||m.detach(),m=null},getWidgetUiState:function(e){return l.filter(w.l).filter(function(e){return!e._isolated}).reduce(function(e,t){return t.getWidgetUiState(e)},(0,F._)((0,u._)({},e),(0,D._)({},a,(0,u._)({},e[a],f))))},getWidgetState:function(e){return this.getWidgetUiState(e)},getWidgetSearchParameters:function(e,t){var r=t.uiState;return eu(l,{uiState:r,initialSearchParameters:e})},shouldRender:function(){return!0},refreshUiState:function(){f=eo(l,{searchParameters:this.getHelper().state,helper:this.getHelper()},f)},setIndexUiState:function(e){var t="function"==typeof e?e(f):e;d.setUiState(function(e){return(0,F._)((0,u._)({},e),(0,D._)({},a,t))})}}},el=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):"")}},ef=r(94292),ed=r(24585),eh=el("Highlight");function ep(e){var t=ed.sn.highlightPreTag,r=ed.sn.highlightPostTag;return e.map(function(e){return e.isHighlighted?t+e.value+r:e.value}).join("")}var eD=r(13604),em=new RegExp(/\w/i);function eg(e){return e.some(function(e){return e.isHighlighted})?e.map(function(t,r){var n,i,a,o,s,c,l;return(0,F._)((0,u._)({},t),{isHighlighted:(s=e[r],c=null==(n=null==(a=e[r+1])?void 0:a.isHighlighted)||n,l=null==(i=null==(o=e[r-1])?void 0:o.isHighlighted)||i,em.test((0,eD.x)(s.value))||l!==c?!s.isHighlighted:!l)})}):e.map(function(e){return(0,F._)((0,u._)({},e),{isHighlighted:!1})})}var ey=r(61286),ev=el("ReverseHighlight"),eF=el("Snippet"),e_=el("ReverseSnippet");function eE(e){var t;return(null==(t=e.compositionFeedsResults)?void 0:t.length)?e.compositionFeedsResults:e.results||[]}function eC(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 eb(e,t){var r=e[t.getIndexId()]||{};t.getHelper().setState(t.getWidgetSearchParameters(t.getHelper().state,{uiState:r})),t.getWidgets().filter(w.l).forEach(function(t){return eb(e,t)})}var eR=(0,ee.V)({name:"instantsearch"});function eS(){return"#"}var eA={preserveSharedStateOnUnmount:!1,persistHierarchicalRootCount:!1},ew=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function t(e){d(this,t),r=function(e,t,r){t=c(t);var n=l()?Reflect.construct(t,[],c(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,D._)(r,"client",void 0),(0,D._)(r,"indexName",void 0),(0,D._)(r,"compositionID",void 0),(0,D._)(r,"insightsClient",void 0),(0,D._)(r,"onStateChange",null),(0,D._)(r,"future",void 0),(0,D._)(r,"helper",void 0),(0,D._)(r,"mainHelper",void 0),(0,D._)(r,"mainIndex",void 0),(0,D._)(r,"started",void 0),(0,D._)(r,"templatesConfig",void 0),(0,D._)(r,"renderState",{}),(0,D._)(r,"_stalledSearchDelay",void 0),(0,D._)(r,"_searchStalledTimer",void 0),(0,D._)(r,"_initialUiState",void 0),(0,D._)(r,"_initialResults",void 0),(0,D._)(r,"_manuallyResetScheduleSearch",!1),(0,D._)(r,"_resetScheduleSearch",void 0),(0,D._)(r,"_createURL",void 0),(0,D._)(r,"_searchFunction",void 0),(0,D._)(r,"_mainHelperSearch",void 0),(0,D._)(r,"_hasSearchWidget",!1),(0,D._)(r,"_hasRecommendWidget",!1),(0,D._)(r,"_insights",void 0),(0,D._)(r,"_initialOptions",void 0),(0,D._)(r,"middleware",[]),(0,D._)(r,"sendEventToInsights",void 0),(0,D._)(r,"_createdAt",A()),(0,D._)(r,"status","idle"),(0,D._)(r,"error",void 0),(0,D._)(r,"scheduleSearch",Z(function(){r.started&&r.mainHelper.search()})),(0,D._)(r,"scheduleRender",Z(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,D._)(r,"onInternalStateChange",Z(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,o=e.initialUiState,s=e.routing,h=void 0===s?null:s,p=e.insights,m=void 0===p?void 0:p,g=e.searchFunction,y=e.stalledSearchDelay,v=e.searchClient,_=void 0===v?null:v,E=e.insightsClient,R=void 0===E?
1null:E,S=e.onStateChange,P=e.future,x=void 0===P?(0,u._)({},eA,e.future||{}):P;if(null===_)throw Error(eR("The `searchClient` option is required."));if("function"!=typeof _.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 _.addAlgoliaAgent&&_.addAlgoliaAgent("instantsearch.js (".concat(C,")")),R&&"function"!=typeof R)throw Error(eR("The `insightsClient` option should be a function."));if(r._initialOptions=e,r.client=_,r.future=x,r.insightsClient=R,r.indexName=void 0===n?"":n,r.compositionID=i,r.helper=null,r.mainHelper=null,r.mainIndex=ec({indexName:r.compositionID||r.indexName}),r.onStateChange=void 0===S?null:S,r.started=!1,r.templatesConfig={helpers:{formatNumber:function(e,t){var r;return r=Number(t(e)),r.toLocaleString(a)},highlight:function(e,t){try{var r,n,i,a,o,s,c,l,f,d=JSON.parse(e);return t((n=(r=(0,F._)((0,u._)({},d),{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,o=r.hit,s=r.cssClasses,c=void 0===s?{}:s,l=((0,ef.E)(o._highlightResult,n)||{}).value,f=eh({descendantName:"highlighted"})+(c.highlighted?" ".concat(c.highlighted):""),(void 0===l?"":l).replace(RegExp(ed.sn.highlightPreTag,"g"),"<".concat(a,' class="').concat(f,'">')).replace(RegExp(ed.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,o,s,c,l,f,d=JSON.parse(e);return t((n=(r=(0,F._)((0,u._)({},d),{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,o=r.hit,s=r.cssClasses,c=void 0===s?{}:s,l=((0,ef.E)(o._highlightResult,n)||{}).value,f=ev({descendantName:"highlighted"})+(c.highlighted?" ".concat(c.highlighted):""),ep(eg((0,ey.I)(void 0===l?"":l))).replace(RegExp(ed.sn.highlightPreTag,"g"),"<".concat(a,' class="').concat(f,'">')).replace(RegExp(ed.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,o,s,c,l,f,d=JSON.parse(e);return t((n=(r=(0,F._)((0,u._)({},d),{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,o=r.hit,s=r.cssClasses,c=void 0===s?{}:s,l=((0,ef.E)(o._snippetResult,n)||{}).value,f=eF({descendantName:"highlighted"})+(c.highlighted?" ".concat(c.highlighted):""),(void 0===l?"":l).replace(RegExp(ed.sn.highlightPreTag,"g"),"<".concat(a,' class="').concat(f,'">')).replace(RegExp(ed.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,o,s,c,l,f,d=JSON.parse(e);return t((n=(r=(0,F._)((0,u._)({},d),{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,o=r.hit,s=r.cssClasses,c=void 0===s?{}:s,l=((0,ef.E)(o._snippetResult,n)||{}).value,f=e_({descendantName:"highlighted"})+(c.highlighted?" ".concat(c.highlighted):""),ep(eg((0,ey.I)(void 0===l?"":l))).replace(RegExp(ed.sn.highlightPreTag,"g"),"<".concat(a,' class="').concat(f,'">')).replace(RegExp(ed.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,u._)({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=(0,b.h)(n)}catch(e){throw Error("Could not JSON serialize the payload object.")}return'data-insights-method="'.concat(r,'" data-insights-payload="').concat(t,'"')}({method:i,payload:r})))}catch(e){throw Error('\nThe insights helper expects a JSON object of the format:\n{ "method": "method-name", "payload": { "eventName": "name of the event" } }')}}},compileOptions:{}},r._stalledSearchDelay=void 0===y?200:y,r._searchStalledTimer=null,r._createURL=eS,r._initialUiState=void 0===o?{}:o,r._initialResults=null,r._insights=m,g&&(r._searchFunction=g),r.sendEventToInsights=k.l,h){var j="boolean"==typeof h?{}:h;j.$$internal=!0,r.use(K(j))}if(m){var T="boolean"==typeof m?{}:m;T.$$internal=!0,r.use(M(T))}return B(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(){n.ua=I(t.client),function e(t,r,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r.mainIndex,a=O(r,i,r._initialUiState);t.forEach(function(t){var i={};
1if(t.getWidgetRenderState){var o=t.getWidgetRenderState(a);o&&o.widgetParams&&(i=o.widgetParams)}var u=Object.keys(i).filter(function(e){return void 0!==i[e]});n.widgets.push({type:t.$$type,widgetType:t.$$widgetType,params:u}),(0,w.l)(t)&&e(t.getWidgets(),r,n,t)})}(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),p(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,u._)({$$type:"__unknown__",$$internal:!1,subscribe:k.l,started:k.l,unsubscribe:k.l,onStateChange:k.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,s._)(t))}},{key:"addWidget",value:function(e){return this.addWidgets([e])}},{key:"addWidgets",value:function(e){if(!Array.isArray(e))throw Error(eR("The `addWidgets` method expects an array of widgets. Please use `addWidget`."));if(this.compositionID&&e.some(function(e){return!Array.isArray(e)&&(0,w.l)(e)&&!e._isolated}))throw Error(eR("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(eR("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(eR("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(){var r=e._hasSearchWidget||e._hasRecommendWidget;return r&&(e.status="loading"),e.scheduleRender(!r),e._hasSearchWidget&&(e.compositionID?t.searchWithComposition():t.searchOnlyWithDerivedHelpers()),e._hasRecommendWidget&&t.recommend(),t},this._searchFunction){var r={search:function(){return new Promise(k.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(!e._hasSearchWidget&&!e._hasRecommendWidget),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,o=eE(n),s=o&&i?o.map(function(e,t){return(0,u._)({indexName:i.index||e.index},(null==a?void 0:a[t])||e.params?{params:eC((null==a?void 0:a[t])||e.params.split("&").reduce(function(e,t){var r=(0,_._)(t.split("="),2),n=r[0],i=r[1];
1return e[n]=i?decodeURIComponent(i):"",e},{}))}:{})}):[];return e.concat(s)},[])],n=Object.keys(t).reduce(function(e,r){var n=eE(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 o=Array.isArray(t)?t.map(function(e){return(0,F._)((0,u._)({},e),{params:eC(e.params)})}):eC(t.requestBody.params);return e.transporter.responsesCache.get({method:"search",args:[o].concat((0,s._)(n))},function(){return i.apply(void 0,[t].concat((0,s._)(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,F._)((0,u._)({},e.cache),(0,D._)({},a,JSON.stringify({results:Object.keys(t).map(function(e){return eE(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,u._)({},e,r.recommendResults.results):e},{});var n,i=this.scheduleSearch;this.scheduleSearch=Z(k.l),this._manuallyResetScheduleSearch?this._resetScheduleSearch=function(){e.scheduleSearch=i}:Z(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(M({$$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()}),this._initialOptions=null}},{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(eR("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){eb("function"==typeof e?e(n):e,t.mainIndex),t.scheduleSearch(),t.onInternalStateChange()}}):(eb(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(eR("The `start` method needs to be called before `createURL`."));return this._createURL(e)}},{key:"refresh",value:function(){if(!this.mainHelper)throw Error(eR("The `start` method needs to be called before `refresh`."));this.mainHelper.clearCache().search()}}]),t}(y),eO=r(68320),eP="7.44.0",ex=r(32205),ej=r(98802),eB=r(96053),eT=r(24839),eN=r(9100),ek=["react (".concat(i.version,")"),"react-instantsearch (".concat(eP,")"),"react-instantsearch-core (".concat(eP,")")],eI="react-instantsearch-server (".concat(eP,")");function eH(e,t){"function"==typeof e.addAlgoliaAgent&&t.filter(Boolean).forEach(function(t){e.addAlgoliaAgent(t)})}function eU(e){var t=e.children,r=function(e){var t=(0,_._)((0,i.useReducer)(function(e){return e+1},0),2)[1],r=(0,ej.r)(),n=(0,eB.m)(),a=(0,eT.t)().waitForResultsRef,o=null==n?void 0:n.initialResults,c=(0,i.useRef)(e),l=r||o||a,f=(0,i.useRef)(null);if((null==n?void 0:n.ssrSearchRef)&&(f=n.ssrSearchRef),null===f.current){var d,h,p=new ew(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=o||{},p._manuallyResetScheduleSearch=!0),eH(e.searchClient,(0,s._)(ek).concat([r&&eI,(h="undefined"!=typeof window&&(null==(d=window.next)?void 0:d.version)||(void 0!==eN?null==eN.env?void 0:"":void 0))?"next.js (".concat(h,")"):null])),l&&p.start(),r&&r.notifyServer({search:p}
1),e.routing,f.current=p}var D,m=f.current,g=c.current;g.indexName!==e.indexName&&(m.helper.setIndex(e.indexName||"").search(),c.current=e),g.searchClient!==e.searchClient&&(eH(e.searchClient,(0,s._)(ek).concat([r&&eI])),m.mainHelper.setClient(e.searchClient).search(),c.current=e),g.onStateChange!==e.onStateChange&&(m.onStateChange=e.onStateChange,c.current=e),g.searchFunction!==e.searchFunction&&(m._searchFunction=e.searchFunction,c.current=e),g.stalledSearchDelay!==e.stalledSearchDelay&&(m._stalledSearchDelay=null!=(D=e.stalledSearchDelay)?D:200,c.current=e),(0,ex.j)(g.future,e.future)||(m.future=(0,u._)({},eA,e.future),c.current=e);var y=(0,i.useRef)(null);return(0,eO.useSyncExternalStore)((0,i.useCallback)(function(){var e=f.current;return null===y.current?e.started||(e.start(),t()):(clearTimeout(y.current),e._preventWidgetCleanup=!1),function(){null!=n&&n.ssrSearchRef||(clearTimeout(e._schedule.timer),y.current=setTimeout(function(){e.dispose()}),e._preventWidgetCleanup=!0)}},[t,n]),function(){return f.current},function(){return f.current})}((0,n._)(e,["children"]));return r.started?i.createElement(o.t.Provider,{value:r},i.createElement(a.m.Provider,{value:r.mainIndex},t,i.createElement(eL,{search:r}))):null}function eL(e){var t=e.search;return(0,i.useEffect)(function(){t._resetScheduleSearch&&t._resetScheduleSearch()},[t]),null}},73218:e=>{"use strict";e.exports=Math.abs},73650:(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})},73951:e=>{"use strict";e.exports=RangeError},74449:(e,t,r)=>{"use strict";var n=r(82986),i=r(75871),a=r(17415),o=r(22232),u=r(94158),s=n("%WeakMap%",!0),c=i("WeakMap.prototype.get",!0),l=i("WeakMap.prototype.set",!0),f=i("WeakMap.prototype.has",!0),d=i("WeakMap.prototype.delete",!0);e.exports=s?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new u("Side channel does not contain "+a(e))},delete:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return d(e,r)}else if(o&&t)return t.delete(r);return!1},get:function(r){return s&&r&&("object"==typeof r||"function"==typeof r)&&e?c(e,r):t&&t.get(r)},has:function(r){return s&&r&&("object"==typeof r||"function"==typeof r)&&e?f(e,r):!!t&&t.has(r)}
1,set:function(r,n){s&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new s),l(e,r,n)):o&&(t||(t=o()),t.set(r,n))}};return r}:o},75147:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImportError=t.TypesenseError=t.ServerError=t.RequestUnauthorized=t.RequestMalformed=t.ObjectUnprocessable=t.ObjectNotFound=t.ObjectAlreadyExists=t.MissingConfigurationError=t.HTTPError=void 0;var n=r(4246);t.HTTPError=n.__importDefault(r(13433)).default,t.MissingConfigurationError=n.__importDefault(r(50011)).default,t.ObjectAlreadyExists=n.__importDefault(r(4306)).default,t.ObjectNotFound=n.__importDefault(r(98401)).default,t.ObjectUnprocessable=n.__importDefault(r(26238)).default,t.RequestMalformed=n.__importDefault(r(40059)).default,t.RequestUnauthorized=n.__importDefault(r(9964)).default,t.ServerError=n.__importDefault(r(43688)).default,t.ImportError=n.__importDefault(r(48858)).default,t.TypesenseError=n.__importDefault(r(82925)).default},75241:(e,t,r)=>{"use strict";r.d(t,{_:()=>o});var n=r(61192),i=r(56369),a=r(9785);function o(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.")}()}},75871:(e,t,r)=>{"use strict";var n=r(82986),i=r(221),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}},76824:e=>{"use strict";e.exports=EvalError},77397:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(62477).A)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]])},77559:(e,t,r)=>{"use strict";r.d(t,{G:()=>s});var n=r(57906),i=r(60951),a=r(21374),o=r(57898),u=r(71527),s=function(e){var t=e.createElement,r=e.Fragment,u=function(e){var r=e.classNames,n=e.children,i=e.highlightedTagName,a=e.isHighlighted,o=e.nonHighlightedTagName;return t(a?i:o,{className:a?r.highlighted:r.nonHighlighted},n)};return function(e){var s=e.parts,c=e.highlightedTagName,l=void 0===c?"mark":c,f=e.nonHighlightedTagName,d=void 0===f?"span":f,h=e.separator,p=void 0===h?", ":h,D=e.className,m=e.classNames,g=void 0===m?{}:m,y=(0,a._)(e,["parts","highlightedTagName","nonHighlightedTagName","separator","className","classNames"]);return t("span",(0,i._)((0,n._)({},y),{className:(0,o.cx)(g.root,D)}),s.map(function(e,n){var i=n===s.length-1;return t(r,{key:n},e.map(function(e,r){return t(u,{key:r,classNames:g,highlightedTagName:l,nonHighlightedTagName:d,isHighlighted:e.isHighlighted},e.value)}),!i&&t("span",{className:g.separator},p))}))}}({createElement:u.createElement,Fragment:u.Fragment})},78158:(e,t,r)=>{"use strict";var n,i,a=r(9100);function o(e,t){return function(){return e.apply(t,arguments)}}let{toString:u}=Object.prototype,{getPrototypeOf:s}=Object,{iterator:c,toStringTag:l}=Symbol,f=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),d=(e,t)=>{let r=e,n=[];for(;null!=r&&r!==Object.prototype&&-1===n.indexOf(r);){if(n.push(r),f(r,t))return!0;r=s(r)}return!1},h=(e=>t=>{let r=u.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),p=e=>(e=e.toLowerCase(),t=>h(t)===e),D=e=>t=>typeof t===e,{isArray:m}=Array,g=D("undefined");function y(e){return null!==e&&!g(e)&&null!==e.constructor&&!g(e.constructor)&&_(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let v=p("ArrayBuffer"),F=D("string"),_=D("function"),E=D("number"),C=e=>null!==e&&"object"==typeof e,b=e=>{if(!C(e))return!1;let t=s(e);return(null===t||t===Object.prototype||null===s(t))&&!d(e,l)&&!d(e,c)},R=p("Date"),S=p("File"),A=p("Blob"),w=p("FileList"),O=p("Set"),P="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:{},x=void 0!==P.FormData?P.FormData:void 0,j=p("URLSearchParams"),[B,T,N,k]=["ReadableStream","Request","Response","Headers"].map(p);function I(e,t,{allOwnKeys:r=!1}={}){let n,i;if(null!=e)if("object"!=typeof e&&(e=[e]),m(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{let i;if(y(e))return;let a=r?Object.getOwnPropertyNames(e):Object.keys(e),o=a.length;for(n=0;n<o;n++)i=a[n],t.call(null,e[i],i,e)}}function H(e,t){let r;if(y(e))return null;t=t.toLowerCase();let n=Object.keys(e),i=n.length;for(;i-- >0;)if(t===(r=n[i]).toLowerCase())return r;return null}let U="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:r.g,L=e=>!g(e)&&e!==U,M=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&s(Uint8Array)),q=p("HTMLFormElement"),{propertyIsEnumerable:W}=Object.prototype,Q=p("RegExp"),$=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};I(r,(r,i)=>{let a;!1!==(a=t(r,i,e))&&(n[i]=a||r)}),Object.defineProperties(e,n)},V=p("AsyncFunction"),z=(n="function"==typeof setImmediate,i=_(U.postMessage),n?setImmediate:i?((e,t)=>
1(U.addEventListener("message",({source:r,data:n})=>{r===U&&n===e&&t.length&&t.shift()()},!1),r=>{t.push(r),U.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e)),J="undefined"!=typeof queueMicrotask?queueMicrotask.bind(U):void 0!==a&&a.nextTick||z,K=e=>null!=e&&_(e[c]);var G={isArray:m,isArrayBuffer:v,isBuffer:y,isFormData:e=>{if(!e)return!1;if(x&&e instanceof x)return!0;let t=s(e);if(!t||t===Object.prototype||!_(e.append))return!1;let r=h(e);return"formdata"===r||"object"===r&&_(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&v(e.buffer)},isString:F,isNumber:E,isBoolean:e=>!0===e||!1===e,isObject:C,isPlainObject:b,isEmptyObject:e=>{if(!C(e)||y(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:B,isRequest:T,isResponse:N,isHeaders:k,isUndefined:g,isDate:R,isFile:S,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:A,isRegExp:Q,isFunction:_,isStream:e=>C(e)&&_(e.pipe),isURLSearchParams:j,isTypedArray:M,isFileList:w,forEach:I,merge:function e(...t){let{caseless:r,skipUndefined:n}=L(this)&&this||{},i={},a=(t,a)=>{if("__proto__"===a||"constructor"===a||"prototype"===a)return;let o=r&&"string"==typeof a&&H(i,a)||a,u=f(i,o)?i[o]:void 0;b(u)&&b(t)?i[o]=e(u,t):b(t)?i[o]=e({},t):m(t)?i[o]=t.slice():n&&g(t)||(i[o]=t)};for(let e=0,r=t.length;e<r;e++){let r=t[e];if(!r||y(r)||(I(r,a),"object"!=typeof r||m(r)))continue;let n=Object.getOwnPropertySymbols(r);for(let e=0;e<n.length;e++){let t=n[e];W.call(r,t)&&a(r[t],t)}}return i},extend:(e,t,r,{allOwnKeys:n}={})=>(I(t,(t,n)=>{r&&_(t)?Object.defineProperty(e,n,{__proto__:null,value:o(t,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,n,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let i,a,o,u={};if(t=t||{},null==e)return t;do{for(a=(i=Object.getOwnPropertyNames(e)).length;a-- >0;)o=i[a],(!n||n(o,e,t))&&!u[o]&&(t[o]=e[o],u[o]=!0);e=!1!==r&&s(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:h,kindOfTest:p,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return -1!==n&&n===r},toArray:e=>{if(!e)return null;if(m(e))return e;let t=e.length;if(!E(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{let r,n=(e&&e[c]).call(e);for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let r,n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:q,hasOwnProperty:f,hasOwnProp:f,hasOwnInPrototypeChain:d,getSafeProp:(e,t)=>null!=e&&d(e,t)?e[t]:void 0,reduceDescriptors:$,freezeMethods:e=>{$(e,(t,r)=>{if(_(e)&&["arguments","caller","callee"].includes(r))return!1;if(_(e[r])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(e,t)=>{let r={};return(m(e)?e:String(e).split(t)).forEach(e=>{r[e]=!0}),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:H,global:U,isContextDefined:L,isSpecCompliantForm:function(e){return!!(e&&_(e.append)&&"FormData"===e[l]&&e[c])},toJSONObject:e=>{let t=new WeakSet,r=e=>{if(C(e)){if(t.has(e))return;if(y(e))return e;if(!("toJSON"in e)){let n;if(t.add(e),O(e))for(let t of(n=[],e)){let e=r(t);g(e)||n.push(e)}else n=m(e)?[]:{},I(e,(e,t)=>{let i=r(e);g(i)||(n[t]=i)});return t.delete(e),n}}return e};return r(e)},isAsyncFn:V,isThenable:e=>e&&(C(e)||_(e))&&_(e.then)&&_(e.catch),setImmediate:z,asap:J,isIterable:K,isSafeIterable:e=>null!=e&&d(e,c)&&K(e)};let X=G.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Z=RegExp("[\\u0000-\\u
10008\\u000a-\\u001f\\u007f]+","g"),Y=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function ee(e,t){return G.isArray(e)?e.map(e=>ee(e,t)):function(e){let t=0,r=e.length;for(;t<r;){let r=e.charCodeAt(t);if(9!==r&&32!==r)break;t+=1}for(;r>t;){let t=e.charCodeAt(r-1);if(9!==t&&32!==t)break;r-=1}return 0===t&&r===e.length?e:e.slice(t,r)}(String(e).replace(t,""))}function et(e){let t=Object.create(null);return G.forEach(e.toJSON(),(e,r)=>{t[r]=ee(e,Y)}),t}let er=Symbol("internals");function en(e){return e&&String(e).trim().toLowerCase()}function ei(e){return!1===e||null==e?e:G.isArray(e)?e.map(ei):ee(String(e),Z)}let ea=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function eo(e){let t=0,r=e.length;for(;t<r;){let r=e.charCodeAt(t);if(9!==r&&32!==r)break;t+=1}for(;r>t;){let t=e.charCodeAt(r-1);if(9!==t&&32!==t)break;r-=1}return 0===t&&r===e.length?e:e.slice(t,r)}function eu(e,t,r,n,i){if(G.isFunction(n))return n.call(this,t,r);if(i&&(t=r),G.isString(t)){if(G.isString(n))return -1!==t.indexOf(n);if(G.isRegExp(n))return n.test(t)}}class es{constructor(e){e&&this.set(e)}set(e,t,r){let n=this;function i(e,t,r){let i=en(t);if(!i)return;let a=G.findKey(n,i);a&&void 0!==n[a]&&!0!==r&&(void 0!==r||!1===n[a])||(n[a||t]=ei(e))}let a=(e,t)=>G.forEach(e,(e,r)=>i(e,r,t));if(G.isPlainObject(e)||e instanceof this.constructor)a(e,t);else{let n;if(G.isString(e)&&(e=e.trim())&&(n=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim())))a((e=>{let t,r,n,i={};return e&&e.split("\n").forEach(function(e){n=e.indexOf(":"),t=e.substring(0,n).trim().toLowerCase(),r=e.substring(n+1).trim();let a=G.hasOwnProp(i,t);!t||a&&G.hasOwnProp(X,t)||("set-cookie"===t?a?i[t].push(r):i[t]=[r]:i[t]=a?i[t]+", "+r:r)}),i})(e),t);else if(G.isObject(e)&&G.isSafeIterable(e)){let r=Object.create(null),n,i;for(let t of e){if(!G.isArray(t))throw TypeError("Object iterator must return a key-value pair");i=t[0],G.hasOwnProp(r,i)?(n=r[i],r[i]=G.isArray(n)?[...n,t[1]]:[n,t[1]]):r[i]=t[1]}a(r,t)}else null!=e&&i(t,e,r)}return this}get(e,t){if(e=en(e)){let r=G.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t){let t,r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
1for(;t=n.exec(e);)r[t[1]]=t[2];return r}if(G.isFunction(t))return t.call(this,e,r);if(G.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=en(e)){let r=G.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||eu(this,this[r],r,t)))}return!1}delete(e,t){let r=this,n=!1;function i(e){if(e=en(e)){let i=G.findKey(r,e);i&&(!t||eu(r,r[i],i,t))&&(delete r[i],n=!0)}}return G.isArray(e)?e.forEach(i):i(e),n}clear(e){let t=Object.keys(this),r=t.length,n=!1;for(;r--;){let i=t[r];(!e||eu(this,this[i],i,e,!0))&&(delete this[i],n=!0)}return n}normalize(e){let t=this,r={};return G.forEach(this,(n,i)=>{let a=G.findKey(r,i);if(a){t[a]=ei(n),delete t[i];return}let o=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(i).trim();o!==i&&delete t[i],t[o]=ei(n),r[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return G.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&G.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){let e=this.get("set-cookie");return G.isArray(e)?e:null==e||!1===e?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return function(e){let t=Object.create(null),r=String(e),n=0,i=!1,a=!1;function o(e){let i=eo(r.slice(n,e)),a=i.indexOf("=");if(a<1)return;let o=eo(i.slice(0,a));if(!ea.test(o))return;let u=o.toLowerCase();if("__proto__"===u||"constructor"===u||"prototype"===u)return;let s=eo(i.slice(a+1));t[u]=function(e){let t=e.length-1;if(t<1||34!==e.charCodeAt(0)||34!==e.charCodeAt(t))return e;let r="";for(let n=1;n<t;n++){let i=e.charCodeAt(n);if(34===i||92===i&&(n+=1)>=t)return e;r+=e[n]}return r}(s)}for(let e=0;e<r.length;e++){let t=r.charCodeAt(e);i?a?a=!1:92===t?a=!0:34===t&&(i=!1):34===t?i=!0:(44===t||59===t)&&(o(e),n=e+1)}return o(r.length),t}(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=(this[er]=this[er]={accessors:{}}).accessors,r=this.prototype;function n(e){let n=en(e);if(!t[n]){let i=G.toCamelCase(" "+e);["get","set","has"].forEach(t=>{Object.defineProperty(r,t+i,{__proto__:null,value:function(r,n,i){return this[t].call(this,e,r,n,i)},configurable:!0})}),t[n]=!0}}return G.isArray(e)?e.forEach(n):n(e),this}}es.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),G.reduceDescriptors(es.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),G.freezeMethods(es);let ec="[REDACTED ****]";function el(e){try{return String(e)}catch(e){return""}}class ef extends Error{static from(e,t,r,n,i,a){let o=e.message;!o&&G.isArray(e.errors)&&e.errors.length&&(o=e.errors.map(e=>{try{return e&&e.message?el(e.message):el(e)}catch(e){return""}}).filter(Boolean).join("; ")||e.name||"AggregateError");let u=new ef(o,t||e.code,r,n,i);return Object.defineProperty(u,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),u.name=e.name,null!=e.status&&null==u.status&&(u.status=e.status),a&&Object.assign(u,a),u}constructor(e,t,r,n,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status)}toJSON(){let e=this.config,t=e&&G.hasOwnProp(e,"redact")?e.redact:void 0,r=G.isArray(t)&&t.length>0?function(e,t){let r=new Set(t.map(e=>String(e).toLowerCase())),n=[],i=e=>{let t;if(null===e||"object"!=typeof e||G.isBuffer(e))return e;if(-1===n.indexOf(e)){if(e instanceof es&&(e=e.toJSON()),n.push(e),G.isArray(e))t=[],e.forEach((e,r)=>{let n=i(e);G.isUndefined(n)||(t[r]=n)});else{if(!G.isPlainObject(e)&&function(e){if(G.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(G.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return n.pop(),e;for(let[n,a]of(t=Object.create(null),Object.entries(e))){let e=r.has(n.toLowerCase())?ec:i(a);G.isUndefined(e)||(t[n]=e)}}return n.pop(),t}};return i(e)}(e,t):G.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}}function ed(e){return G.isPlainObject(e)||G.isArray(e)}function eh(e){return G.endsWith(e,"[]")?e.slice(0,-2):e}function ep(e,t,r){return e?e.concat(t).map(function(e,t){return e=eh(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}ef.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",ef.ERR_BAD_OPTION="ERR_BAD_OPTION",ef.ECONNABORTED="ECONNABORTED",ef.ETIMEDOUT="ETIMEDOUT",ef.ECONNREFUSED="ECONNREFUSED",ef.ERR_NETWORK="ERR_NETWORK",ef.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",ef.ERR_DEPRECATED="ERR_DEPRECATED",ef.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",ef.ERR_BAD_REQUEST="ERR_BAD_REQUEST",ef.ERR_CANCELED="ERR_CANCELED",ef.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",ef.ERR_INVALID_URL="ERR_INVALID_URL",ef.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let eD=G.toFlatObject(G,{},null,function(e){return/^is[A-Z]/.test(e)});function em(e,t,r){if(!G.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let n=(r=G.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!G.isUndefined(t[e])})).metaTokens,i=r.visitor||h,a=r.dots,o=r.indexes,u=r.Blob||"undefined"!=typeof Blob&&Blob,s=void 0===r.maxDepth?100:r.maxDepth,c=u&&G.isSpecCompliantForm(t),l=[];
1if(!G.isFunction(i))throw TypeError("visitor must be a function");function f(e){if(null===e)return"";if(G.isDate(e))return e.toISOString();if(G.isBoolean(e))return e.toString();if(!c&&G.isBlob(e))throw new ef("Blob is not supported. Use a Buffer instead.");if(G.isArrayBuffer(e)||G.isTypedArray(e)){if(c&&"function"==typeof u)return new u([e]);throw new ef("Blob is not supported. Use a Buffer instead.",ef.ERR_NOT_SUPPORT)}return e}function d(e){if(e>s)throw new ef("Object is too deeply nested ("+e+" levels). Max depth: "+s,ef.ERR_FORM_DATA_DEPTH_EXCEEDED)}function h(e,r,i){let u=e;if(G.isReactNative(t)&&G.isReactNativeBlob(e))return t.append(ep(i,r,a),f(e)),!1;if(e&&!i&&"object"==typeof e)if(G.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=function(e,t){if(s===1/0)return JSON.stringify(e);let r=[];return JSON.stringify(e,function(e,t){if(!G.isObject(t))return t;for(;r.length&&r[r.length-1]!==this;)r.pop();return r.push(t),d(1+r.length-1),t})}(e,0);else{var c;if(G.isArray(e)&&(c=e,G.isArray(c)&&!c.some(ed))||(G.isFileList(e)||G.endsWith(r,"[]"))&&(u=G.toArray(e)))return r=eh(r),u.forEach(function(e,n){G.isUndefined(e)||null===e||t.append(!0===o?ep([r],n,a):null===o?r:r+"[]",f(e))}),!1}return!!ed(e)||(t.append(ep(i,r,a),f(e)),!1)}let p=Object.assign(eD,{defaultVisitor:h,convertValue:f,isVisitable:ed});if(!G.isObject(e))throw TypeError("data must be an object");return!function e(r,n,a=0){if(!G.isUndefined(r)){if(d(a),-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),G.forEach(r,function(r,o){!0===(!(G.isUndefined(r)||null===r)&&i.call(t,r,G.isString(o)?o.trim():o,n,p))&&e(r,n?n.concat(o):[o],a+1)}),l.pop()}}(e),t}function eg(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function ey(e,t){this._pairs=[],e&&em(e,this,t)}let ev=ey.prototype;function eF(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function e_(e,t,r){let n;if(!t)return e;e=e||"";let i=G.isFunction(r)?{serialize:r}:r,a=G.getSafeProp(i,"encode")||eF,o=G.getSafeProp(i,"serialize");if(n=o?o(t,i):G.isURLSearchParams(t)?t.toString():new ey(t,i).toString(a)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}ev.append=function(e,t){this._pairs.push([e,t])},ev.toString=function(e){let t=e?t=>e.call(this,t,eg):eg;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class eE{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){G.forEach(this.handlers,function(t){null!==t&&e(t)})}}var eC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},eb="undefined"!=typeof URLSearchParams?URLSearchParams:ey,eR="undefined"!=typeof FormData?FormData:null,eS="undefined"!=typeof Blob?Blob:null;let eA="undefined"!=typeof window&&"undefined"!=typeof document,ew="object"==typeof navigator&&navigator||void 0,eO=eA&&(!ew||0>["ReactNative","NativeScript","NS"].indexOf(ew.product)),eP="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ex=eA&&window.location.href||"http://localhost";var ej={...Object.freeze({__proto__:null,hasBrowserEnv:eA,hasStandardBrowserEnv:eO,hasStandardBrowserWebWorkerEnv:eP,navigator:ew,origin:ex}),isBrowser:!0,classes:{URLSearchParams:eb,FormData:eR,Blob:eS},protocols:["http","https","file","blob","url","data"]};function eB(e){if(e>100)throw new ef("FormData field is too deeply nested ("+e+" levels). Max depth: 100",ef.ERR_FORM_DATA_DEPTH_EXCEEDED)}function eT(e){if(G.isFormData(e)&&G.isFunction(e.entries)){let t={};return G.forEachEntry(e,(e,r)=>{!function e(t,r,n,i){eB(i);let a=t[i++];if("__proto__"===a)return!0;let o=Number.isFinite(+a),u=i>=t.length;return(a=!a&&G.isArray(n)?n.length:a,u)?G.hasOwnProp(n,a)?n[a]=G.isArray(n[a])?n[a].concat(r):[n[a],r]:n[a]=r:(G.hasOwnProp(n,a)&&G.isObject(n[a])||(n[a]=[]),e(t,r,n[a],i)&&G.isArray(n[a])&&(n[a]=function(e){let t,r,n={},i=Object.keys(e),a=i.length;for(t=0;t<a;t++)n[r=i[t]]=e[r];return n}(n[a]))),!o}(function(e){let t,r=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;for(;null!==(t=n.exec(e));)eB(r.length),r.push("[]"===t[0]?"":t[1]||t[0]);return r}(e),r,t,0)}),t}return null}let eN=(e,t)=>null!=e&&G.hasOwnProp(e,t)?e[t]:void 0,ek={transitional:eC,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let r,n=t.getContentType()||"",i=n.indexOf("application/json")>-1,a=G.isObject(e);
1if(a&&G.isHTMLForm(e)&&(e=new FormData(e)),G.isFormData(e))return i?JSON.stringify(eT(e)):e;if(G.isArrayBuffer(e)||G.isBuffer(e)||G.isStream(e)||G.isFile(e)||G.isBlob(e)||G.isReadableStream(e))return e;if(G.isArrayBufferView(e))return e.buffer;if(G.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(a){let t=eN(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return em(e,new ej.classes.URLSearchParams,{visitor:function(e,t,r,n){return ej.isNode&&G.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t}).toString();if((r=G.isFileList(e))||n.indexOf("multipart/form-data")>-1){let n=eN(this,"env"),i=n&&n.FormData;return em(r?{"files[]":e}:e,i&&new i,t)}}if(a||i){t.setContentType("application/json",!1);var o=e;if(G.isString(o))try{return(0,JSON.parse)(o),G.trim(o)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(o)}return e}],transformResponse:[function(e){let t=eN(this,"transitional")||ek.transitional,r=t&&t.forcedJSONParsing,n=eN(this,"responseType"),i="json"===n;if(G.isResponse(e)||G.isReadableStream(e))return e;if(e&&G.isString(e)&&(r&&!n||i)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e,eN(this,"parseReviver"))}catch(e){if(!r&&i){if("SyntaxError"===e.name)throw ef.from(e,ef.ERR_BAD_RESPONSE,this,null,eN(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ej.classes.FormData,Blob:ej.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function eI(e,t){let r=this||ek,n=t||r,i=es.from(n.headers),a=n.data;return G.forEach(e,function(e){a=e.call(r,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function eH(e){return!!(e&&e.__CANCEL__)}G.forEach(["delete","get","head","post","put","patch","query"],e=>{ek.headers[e]={}});class eU extends ef{constructor(e,t,r){super(null==e?"canceled":e,ef.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}}function eL(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new ef("Request failed with status code "+r.status,r.status>=400&&r.status<500?ef.ERR_BAD_REQUEST:ef.ERR_BAD_RESPONSE,r.config,r.request,r))}let eM=(e,t,r=3)=>{let n=0,i=function(e,t){let r,n=Array(e=e||10),i=Array(e),a=0,o=0;return t=void 0!==t?t:1e3,function(u){let s=Date.now(),c=i[o];r||(r=s),n[a]=u,i[a]=s;let l=o,f=0;for(;l!==a;)f+=n[l++],l%=e;if((a=(a+1)%e)===o&&(o=(o+1)%e),s-r<t)return;let d=c&&s-c;return d?Math.round(1e3*f/d):void 0}}(50,250);return function(e,t){let r,n,i=0,a=1e3/t,o=(t,a=Date.now())=>{i=a,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{let t=Date.now(),u=t-i;u>=a?o(e,t):(r=e,n||(n=setTimeout(()=>{n=null,o(r)},a-u)))},()=>r&&o(r)]}(r=>{if(!r||"number"!=typeof r.loaded)return;let a=r.loaded,o=r.lengthComputable?r.total:void 0,u=Math.max(0,null!=o?Math.min(a,o):a),s=Math.max(0,u-n),c=i(s);n=Math.max(n,u),e({loaded:u,total:o,progress:o?u/o:void 0,bytes:s,rate:c||void 0,estimated:c&&o?(o-u)/c:void 0,event:r,lengthComputable:null!=o,[t?"download":"upload"]:!0})},r)},eq=(e,t)=>{let r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},eW=(e,t=G.asap)=>(...r)=>t(()=>e(...r));var eQ=ej.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,ej.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(ej.origin),ej.navigator&&/(msie|trident)/i.test(ej.navigator.userAgent)):()=>!0,e$=ej.hasStandardBrowserEnv?{write(e,t,r,n,i,a,o){if("undefined"==typeof document)return;let u=[`${e}=${encodeURIComponent(t)}`];G.isNumber(r)&&u.push(`expires=${new Date(r).toUTCString()}`),G.isString(n)&&u.push(`path=${n}`),G.isString(i)&&u.push(`domain=${i}`),!0===a&&u.push("secure"),G.isString(o)&&u.push(`SameSite=${o}`),document.cookie=u.join("; ")},read(e){if("undefined"==typeof document)return null;let t=document.cookie.split(";");for(let r=0;r<t.length;r++){let n=t[r].replace(/^\s+/,""),i=n.indexOf("=");if(-1!==i&&n.slice(0,i)===e)try{return decodeURIComponent(n.slice(i+1))}catch(e){return n.slice(i+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};let eV=/^https?:(?!\/\/)/i,ez=/[\t\n\r]/g;function eJ(e,t){if("string"==typeof e){let r=(function(e){let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t)})(e).replace(ez,"");if(eV.test(r))throw new ef(`Invalid URL ${JSON.stringify(function(e){var t;let r=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${ec}@`),n=r.indexOf("#"),i=(-1===n?r:r.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${ec}`);return -1===n?i:`${i}#${!(t=r.slice(n+1))?t:t.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,r="")=>`${t}${r}${ec}`)}`}(r))}: missing "//" after protocol`,ef.ERR_INVALID_URL,t)}}function eK(e,t,r,n){eJ(t,n);let i=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));if(e&&(i||!1===r)){eJ(e,n);if(!t)return e;let r=e.length;for(;r>0&&47===e.charCodeAt(r-1);)r--;return e.slice(0,r)+"/"+t.replace(/^\/+/,"")}return t}let eG=e=>e instanceof es?{...e}:e;function eX(e,t){var r;e=e||{},t=t||{};let n=Object.create(null);function i(e,t,r,n){return G.isPlainObject(e)&&G.isPlainObject(t)?G.merge.call({caseless:n},e,t):G.isPlainObject(t)?G.merge({},t):G.isArray(t)?t.slice():t}function a(e,t,r,n){return G.isUndefined(t)?G.isUndefined(e)?void 0:i(void 0,e,r,n):i(e,t,r,n)}function o(e,t){if(!G.isUndefined(t))return i(void 0,t)}function u(e,t){return G.isUndefined(t)?G.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function s(r,n,a){return G.hasOwnProp(t,a)?i(r,n):G.hasOwnProp(e,a)?i(void 0,r):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let c={url:o,method:o,data:o,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,allowedSocketPaths:u,responseEncoding:u,validateStatus:s,headers:(e,t,r)=>a(eG(e),eG(t),r,!0)};return G.forEach((r={...e,...t},Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(r).concat(Object.getOwnPropertySymbols(r).filter(e=>Object.getOwnPropertyDescriptor(r,e).enumerable)):Object.keys(r)),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;let i=G.hasOwnProp(c,r)?c[r]:a,o=i(G.hasOwnProp(e,r)?e[r]:void 0,G.hasOwnProp(t,r)?t[r]:void 0,r);G.isUndefined(o)&&i!==s||(n[r]=o)}),G.hasOwnProp(t,"validateStatus")&&G.isUndefined(t.validateStatus)&&!1===function(r){let n=G.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!G.isUndefined(n)){if(!G.isPlainObject(n))return;else if(G.hasOwnProp(n,r))return n[r]}let i=G.hasOwnProp(e,"transitional")?e.transitional:void 0;if(G.isPlainObject(i)&&G.hasOwnProp(i,r))return i[r]}("validateStatusUndefinedResolves")&&(G.hasOwnProp(e,"validateStatus")?n.validateStatus=i(void 0,e.validateStatus):delete n.val
1idateStatus),n}let eZ=["content-type","content-length"];function eY(e){let t=eX({},e),r=e=>G.hasOwnProp(t,e)?t[e]:void 0,n=r("data"),i=r("withXSRFToken"),a=r("xsrfHeaderName"),o=r("xsrfCookieName"),u=r("headers"),s=r("auth"),c=r("baseURL"),l=r("allowAbsoluteUrls"),f=r("url");if(t.headers=u=es.from(u),t.url=e_(eK(c,f,l,t),r("params"),r("paramsSerializer")),s){let t=G.getSafeProp(s,"username")||"",r=G.getSafeProp(s,"password")||"";try{u.set("Authorization","Basic "+btoa(t+":"+(r?encodeURIComponent(r).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}catch(t){throw ef.from(t,ef.ERR_BAD_OPTION_VALUE,e)}}if(G.isFormData(n)&&(ej.hasStandardBrowserEnv||ej.hasStandardBrowserWebWorkerEnv||G.isReactNative(n)?u.setContentType(void 0):G.isFunction(n.getHeaders)&&function(e,t,r){if("content-only"!==r)return e.set(t);Object.entries(t||{}).forEach(([t,r])=>{eZ.includes(t.toLowerCase())&&e.set(t,r)})}(u,n.getHeaders(),r("formDataHeaderPolicy"))),ej.hasStandardBrowserEnv&&(G.isFunction(i)&&(i=i(t)),!0===i||null==i&&eQ(t.url))){let e=a&&o&&e$.read(o);e&&u.set(a,e)}return t}var e0="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){let n,i,a,o,u,s=eY(e),c=s.data,l=es.from(s.headers).normalize(),{responseType:f,onUploadProgress:d,onDownloadProgress:h}=s;function p(){o&&o(),u&&u(),s.cancelToken&&s.cancelToken.unsubscribe(n),s.signal&&s.signal.removeEventListener("abort",n)}let D=new XMLHttpRequest;function m(){if(!D)return;let n=es.from("getAllResponseHeaders"in D&&D.getAllResponseHeaders());eL(function(e){t(e),p()},function(e){r(e),p()},{data:f&&"text"!==f&&"json"!==f?D.response:D.responseText,status:D.status,statusText:D.statusText,headers:n,config:e,request:D}),D=null}D.open(s.method.toUpperCase(),s.url,!0),D.timeout=s.timeout,"onloadend"in D?D.onloadend=m:D.onreadystatechange=function(){D&&4===D.readyState&&(0!==D.status||D.responseURL&&D.responseURL.startsWith("file:"))&&setTimeout(m)},D.onabort=function(){D&&(r(new ef("Request aborted",ef.ECONNABORTED,e,D)),p(),D=null)},D.onerror=function(t){let n=new ef(t&&t.message?t.message:"Network Error",ef.ERR_NETWORK,e,D);n.event=t||null,r(n),p(),D=null},D.ontimeout=function(){let t=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded",n=s.transitional||eC;s.timeoutErrorMessage&&(t=s.timeoutErrorMessage),r(new ef(t,n.clarifyTimeoutError?ef.ETIMEDOUT:ef.ECONNABORTED,e,D)),p(),D=null},void 0===c&&l.setContentType(null),"setRequestHeader"in D&&G.forEach(et(l),function(e,t){D.setRequestHeader(t,e)}),G.isUndefined(s.withCredentials)||(D.withCredentials=!!s.withCredentials),f&&"json"!==f&&(D.responseType=s.responseType),h&&([a,u]=eM(h,!0),D.addEventListener("progress",a)),d&&D.upload&&([i,o]=eM(d),D.upload.addEventListener("progress",i),D.upload.addEventListener("loadend",o)),(s.cancelToken||s.signal)&&(n=t=>{D&&(r(!t||t.type?new eU(null,e,D):t),D.abort(),p(),D=null)},s.cancelToken&&s.cancelToken.subscribe(n),s.signal&&(s.signal.aborted?n():s.signal.addEventListener("abort",n)));let g=function(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}(s.url);if(g&&!ej.protocols.includes(g)){r(new ef("Unsupported protocol "+g+":",ef.ERR_BAD_REQUEST,e)),p();return}D.send(c||null)})};let e1=function*(e,t){let r,n=e.byteLength;if(n<t)return void(yield e);let i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},e2=async function*(e,t){for await(let r of e3(e))yield*e1(r,t)},e3=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},e8=(e,t,r,n)=>{let i,a=e2(e,t),o=0,u=e=>{!i&&(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{let{done:t,value:n}=await a.next();if(t){u(),e.close();return}let i=n.byteLength;if(r){let e=o+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw u(e),e}},cancel:e=>(u(e),a.return())},{highWaterMark:2})},e6=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,e4=(e,t,r)=>t+2<r&&e6(e.charCodeAt(t+1))&&e6(e.charCodeAt(t+2)),e7=e=>e<=57?e-48:(223&e)-55,e9=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e,e5=e=>9===e||10===e||12===e||13===e||32===e,te=e=>{let t=e.length,r=0,n=0,i=!1;for(let a=0;a<t;a++){let o=e.charCodeAt(a);if(37===o&&e4(e,a,t)&&(o=16*e7(e.charCodeAt(a+1))+e7(e.charCodeAt(a+2)),a+=2),!e5(o)){if(61===o){n++;continue}if(!e9(o)||n>0){i=!0;continue}r++}}return i||n>2||n>0&&(r+n)%4!=0||r%4==1?(e=>{let t=e.length,r=0;return t>0&&61===e.charCodeAt(t-1)&&(r++,t>1&&61===e.charCodeAt(t-2)&&r++),Math.floor((t-r)*3/4)})(e):(e=>{let t=Math.floor(e/4),r=e%4;return 3*t+(2===r?1:2*(3===r))})(r)},tt="1.19.0",{isFunction:tr}=G,tn=e=>{if(!G.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},ti=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},ta=e=>{let t,r=void 0!==G.global&&null!==G.global?G.global:globalThis,{ReadableStream:n,TextEncoder:i}=r,{fetch:a,Request:o,Response:u}=e=G.merge.call({skipUndefined:!0},{Request:r.Request,Response:r.Response},e),s=a?tr(a):"function"==typeof fetch,c=tr(o),l=tr(u);
1if(!s)return!1;let f=s&&tr(n),d=s&&("function"==typeof i?(t=new i,e=>t.encode(e)):async e=>new Uint8Array(await new o(e).arrayBuffer())),h=c&&f&&ti(()=>{let e=!1,t=new o(ej.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r}),p=l&&f&&ti(()=>G.isReadableStream(new u("").body)),D={stream:p&&(e=>e.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{D[e]||(D[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new ef(`Response type '${e}' is not supported`,ef.ERR_NOT_SUPPORT,r)})});let m=async e=>{if(null==e)return 0;if(G.isBlob(e))return e.size;if(G.isSpecCompliantForm(e)){let t=new o(ej.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return G.isArrayBufferView(e)||G.isArrayBuffer(e)?e.byteLength:(G.isURLSearchParams(e)&&(e+=""),G.isString(e))?(await d(e)).byteLength:void 0},g=async(e,t)=>{let r=G.toFiniteNumber(e.getContentLength());return null==r?m(t):r};return async e=>{let t,{url:r,method:n,data:s,signal:l,cancelToken:d,timeout:y,onDownloadProgress:v,onUploadProgress:F,responseType:_,headers:E,withCredentials:C="same-origin",fetchOptions:b,maxContentLength:R,maxBodyLength:S}=eY(e),A=G.isNumber(R)&&R>-1,w=G.isNumber(S)&&S>-1,O=a||fetch;_=_?(_+"").toLowerCase():"text";let P=((e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let r=new AbortController,n=!1,i=function(e){if(!n){n=!0,o();let t=e instanceof Error?e:this.reason;r.abort(t instanceof ef?t:new eU(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new ef(`timeout of ${t}ms exceeded`,ef.ETIMEDOUT))},t),o=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>{if(!n){if(e.aborted)return void i.call(e);e.addEventListener("abort",i,{once:!0})}});let{signal:u}=r;return u.unsubscribe=()=>G.asap(o),u})([l,d&&d.toAbortSignal()],y),x=null,j=P&&P.unsubscribe&&(()=>{P.unsubscribe()}),B=null,T=()=>new ef("Request body larger than maxBodyLength limit",ef.ERR_BAD_REQUEST,e,x);try{let a,l=(t=>G.hasOwnProp(e,t)?e[t]:void 0)("auth");if(l){let e=G.getSafeProp(l,"username")||"",t=G.getSafeProp(l,"password")||"";a={username:e,password:t}}if((e=>{let t=e.indexOf("://"),r=e;return -1!==t&&(r=r.slice(t+3)),r.includes("@")||r.includes(":")})(r)){let e=new URL(r,ej.origin);if(!a&&(e.username||e.password)){let t=tn(e.username),r=tn(e.password);a={username:t,password:r}}(e.username||e.password)&&(e.username="",e.password="",r=e.href)}if(a){let e;E.delete("authorization"),E.set("Authorization","Basic "+btoa((e=(a.username||"")+":"+(a.password||""),encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))}if(A&&"string"==typeof r&&r.startsWith("data:")&&function(e){let t="string"==typeof e?e.indexOf("#"):-1;return((e,t)=>{if(!e||"string"!=typeof e||!e.startsWith("data:"))return 0;let r=e.indexOf(",");if(r<0)return 0;let n=e.slice(5,r),i=e.slice(r+1);if(/;base64/i.test(n))return t(i);let a=0;for(let e=0,t=i.length;e<t;e++){let r=i.charCodeAt(e);if(37===r&&e4(i,e,t))a+=1,e+=2;else if(r<128)a+=1;else if(r<2048)a+=2;else if(r>=55296&&r<=56319&&e+1<t){let t=i.charCodeAt(e+1);t>=56320&&t<=57343?(a+=4,e++):a+=3}else a+=3}return a})(-1===t?e:e.slice(0,t),te)}(r)>R)throw new ef("maxContentLength size of "+R+" exceeded",ef.ERR_BAD_RESPONSE,e,x);if(w&&"get"!==n&&"head"!==n){let e=await m(s);if("number"==typeof e&&isFinite(e)&&(t=e,e>S))throw T()}let d=w&&(G.isReadableStream(s)||G.isStream(s)),y=(e,t,r)=>e8(e,65536,e=>{if(w&&e>S)throw B=T();t&&t(e)},r);if(h&&"get"!==n&&"head"!==n&&(F||d)){if(t=null==t?await g(E,s):t,0!==t||d){let e,n=new o(r,{method:"POST",body:s,duplex:"half"});if(G.isFormData(s)&&(e=n.headers.get("content-type"))&&E.setContentType(e),n.body){let[e,r]=F&&eq(t,eM(eW(F)))||[];s=y(n.body,e,r)}}}else if(d&&!c&&f&&"get"!==n&&"head"!==n)s=y(s);else if(d&&c&&!h&&"get"!==n&&"head"!==n)throw new ef("Stream request bodies are not supported by the current fetch implementation",ef.ERR_NOT_SUPPORT,e,x);G.isString(C)||(C=C?"include":"omit");let N=c&&"credentials"in o.prototype;if(G.isFormData(s)){let e=E.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&E.delete("content-type")}E.set("User-Agent","axios/"+tt,!1);let k={...b,signal:P,method:n.toUpperCase(),headers:et(E.normalize()),body:s,duplex:"half",credentials:N?C:void 0};x=c&&new o(r,k);let I=await (c?O(x,b):O(r,k)),H=es.from(I.headers);if(A){let t=G.toFiniteNumber(H.getContentLength());if(null!=t&&t>R)throw new ef("maxContentLength size of "+R+" exceeded",ef.ERR_BAD_RESPONSE,e,x)}let U=p&&("stream"===_||"response"===_);if(p&&I.body&&(v||A||U&&j)){let t={};
1["status","statusText","headers"].forEach(e=>{t[e]=I[e]});let r=G.toFiniteNumber(H.getContentLength()),[n,i]=v&&eq(r,eM(eW(v),!0))||[];I=new u(e8(I.body,65536,t=>{if(A&&t>R)throw new ef("maxContentLength size of "+R+" exceeded",ef.ERR_BAD_RESPONSE,e,x);n&&n(t)},()=>{i&&i(),j&&j()}),t)}_=_||"text";let L=await D[G.findKey(D,_)||"text"](I,e);if(A&&!p&&!U){let t;if(null!=L&&("number"==typeof L.byteLength?t=L.byteLength:"number"==typeof L.size?t=L.size:"string"==typeof L&&(t="function"==typeof i?new i().encode(L).byteLength:L.length)),"number"==typeof t&&t>R)throw new ef("maxContentLength size of "+R+" exceeded",ef.ERR_BAD_RESPONSE,e,x)}return!U&&j&&j(),await new Promise((t,r)=>{eL(t,r,{data:L,headers:es.from(I.headers),status:I.status,statusText:I.statusText,config:e,request:x})})}catch(t){if(j&&j(),P&&P.aborted&&P.reason instanceof ef){let r=P.reason;throw r.config=e,x&&(r.request=x),t!==r&&Object.defineProperty(r,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),r}if(B)throw x&&!B.request&&(B.request=x),B;if(t instanceof ef)throw x&&!t.request&&(t.request=x),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let r=new ef("Network Error",ef.ERR_NETWORK,e,x,t&&t.response);throw Object.defineProperty(r,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),r}throw ef.from(t,t&&t.code,e,x,t&&t.response)}}},to=new Map,tu=e=>{let t=e&&e.env||{},{fetch:r,Request:n,Response:i}=t,a=[n,i,r],o=a.length,u,s,c=to;for(;o--;)u=a[o],void 0===(s=c.get(u))&&c.set(u,s=o?new Map:ta(t)),c=s;return s};tu();let ts={http:null,xhr:e0,fetch:{get:tu}};G.forEach(ts,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let tc=e=>`- ${e}`,tl=e=>G.isFunction(e)||null===e||!1===e;var tf={getAdapter:function(e,t){let r,n,{length:i}=e=G.isArray(e)?e:[e],a={};for(let o=0;o<i;o++){let i;if(n=r=e[o],!tl(r)&&void 0===(n=ts[(i=String(r)).toLowerCase()]))throw new ef(`Unknown adapter '${i}'`);if(n&&(G.isFunction(n)||(n=n.get(t))))break;a[i||"#"+o]=n}if(!n){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new ef("There is no suitable adapter to dispatch the request "+(i?e.length>1?"since :\n"+e.map(tc).join("\n"):" "+tc(e[0]):"as no adapter specified"),ef.ERR_NOT_SUPPORT)}return n}};function td(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eU(null,e)}function th(e){return td(e),e.headers=es.from(e.headers),e.data=eI.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tf.getAdapter(e.adapter||ek.adapter,e)(e).then(function(t){td(e),e.response=t;try{t.data=eI.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=es.from(t.headers),t},function(t){if(!eH(t)&&(td(e),t&&t.response)){e.response=t.response;try{t.response.data=eI.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=es.from(t.response.headers)}return Promise.reject(t)})}let tp={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{tp[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let tD={};tp.transitional=function(e,t,r){function n(e,t){return"[Axios v"+tt+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,a)=>{if(!1===e)throw new ef(n(i," has been removed"+(t?" in "+t:"")),ef.ERR_DEPRECATED);return t&&!tD[i]&&(tD[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,a)}},tp.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var tm={assertOptions:function(e,t,r){if("object"!=typeof e||null===e)throw new ef("options must be an object",ef.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),i=n.length;for(;i-- >0;){let a=n[i],o=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(o){let t=e[a],r=void 0===t||o(t,a,e);if(!0!==r)throw new ef("option "+a+" must be "+r,ef.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new ef("Unknown option "+a,ef.ERR_BAD_OPTION)}},validators:tp};let tg=tm.validators;class ty{constructor(e){this.defaults=e||{},this.interceptors={request:new eE,response:new eE}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let r=(()=>
1{if(!t.stack)return"";let e=t.stack.indexOf("\n");return -1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(r){let t=r.indexOf("\n"),n=-1===t?-1:r.indexOf("\n",t+1),i=-1===n?"":r.slice(n+1);String(e.stack).endsWith(i)||(e.stack+="\n"+r)}}else e.stack=r}catch(e){}}throw e}}_request(e,t){let r,n;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:i,paramsSerializer:a,headers:o}=t=eX(this.defaults,t);void 0!==i&&tm.assertOptions(i,{silentJSONParsing:tg.transitional(tg.boolean),forcedJSONParsing:tg.transitional(tg.boolean),clarifyTimeoutError:tg.transitional(tg.boolean),legacyInterceptorReqResOrdering:tg.transitional(tg.boolean),advertiseZstdAcceptEncoding:tg.transitional(tg.boolean),validateStatusUndefinedResolves:tg.transitional(tg.boolean)},!1),null!=a&&(G.isFunction(a)?t.paramsSerializer={serialize:a}:tm.assertOptions(a,{encode:tg.function,serialize:tg.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),tm.assertOptions(t,{baseUrl:tg.spelling("baseURL"),withXsrfToken:tg.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let u=o&&G.merge(o.common,o[t.method]);o&&G.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete o[e]}),t.headers=es.concat(u,o);let s=[],c=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;c=c&&e.synchronous;let r=t.transitional||eC;r&&r.legacyInterceptorReqResOrdering?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)});let l=[];this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let f=0;if(!c){let e=[th.bind(this),void 0];for(e.unshift(...s),e.push(...l),n=e.length,r=Promise.resolve(t);f<n;)r=r.then(e[f++],e[f++]);return r}n=s.length;let d=t;for(;f<n;){let e=s[f++],t=s[f++];try{d=e?e(d):d}catch(e){if(!t){r=Promise.reject(e);break}try{let n=t.call(this,e);G.isThenable(n)&&(r=Promise.resolve(n).then(()=>th.call(this,d)))}catch(e){r=Promise.reject(e)}break}}if(!r)try{r=th.call(this,d)}catch(e){r=Promise.reject(e)}for(f=0,n=l.length;f<n;)r=r.then(l[f++],l[f++]);return r}getUri(e){return e_(eK((e=eX(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}G.forEach(["delete","get","head","options"],function(e){ty.prototype[e]=function(t,r){return this.request(eX(r||{},{method:e,url:t,data:r&&G.hasOwnProp(r,"data")?r.data:void 0}))}}),G.forEach(["post","put","patch","query"],function(e){function t(t){return function(r,n,i){return this.request(eX(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}ty.prototype[e]=t(),"query"!==e&&(ty.prototype[e+"Form"]=t(!0))});class tv{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});let r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t,n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,i){r.reason||(r.reason=new eU(e,n,i),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason)return void e(this.reason);this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new tv(function(t){e=t}),cancel:e}}}let tF={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
1alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(tF).forEach(([e,t])=>{tF[t]=e});let t_=function e(t){let r=new ty(t),n=o(ty.prototype.request,r);return G.extend(n,ty.prototype,r,{allOwnKeys:!0}),G.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(eX(t,r))},n}(ek);t_.Axios=ty,t_.CanceledError=eU,t_.CancelToken=tv,t_.isCancel=eH,t_.VERSION=tt,t_.toFormData=em,t_.AxiosError=ef,t_.Cancel=t_.CanceledError,t_.all=function(e){return Promise.all(e)},t_.spread=function(e){return function(t){return e.apply(null,t)}},t_.isAxiosError=function(e){return G.isObject(e)&&!0===e.isAxiosError},t_.mergeConfig=eX,t_.AxiosHeaders=es,t_.formToJSON=e=>eT(G.isHTMLForm(e)?new FormData(e):e),t_.getAdapter=tf.getAdapter,t_.HttpStatusCode=tF,t_.default=t_,e.exports=t_},78253:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SearchOnlyDocuments=void 0;var n=r(4246),i=n.__importDefault(r(2818)),a=n.__importDefault(r(61792)),o=r(43656),u="/documents";t.SearchOnlyDocuments=function(){function e(e,t,r){this.collectionName=e,this.apiCall=t,this.configuration=r,this.requestWithCache=new i.default}return e.prototype.clearCache=function(){this.requestWithCache.clearCache()},e.prototype.search=function(e,t){var r=void 0===t?{}:t,i=r.cacheSearchResultsForSeconds,a=void 0===i?this.configuration.cacheSearchResultsForSeconds:i,u=r.abortSignal,s=void 0===u?null:u;return n.__awaiter(this,void 0,void 0,function(){var t,r,i,u,c,l;return n.__generator(this,function(f){return t={},!0===this.configuration.useServerSideSearchCache&&(t.use_cache=!0),i=(r=(0,o.normalizeArrayableParams)(e)).streamConfig,u=n.__rest(r,["streamConfig"]),l=!0===(c=n.__assign(n.__assign({},t),u)).conversation_stream,[2,this.requestWithCache.perform(this.apiCall,"get",{path:this.endpointPath("search"),queryParams:c,streamConfig:i,abortSignal:s,isStreamingRequest:l},{cacheResponseForSeconds:a})]})})},e.prototype.endpointPath=function(e){return"".concat(a.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.collectionName)).concat(u).concat(void 0===e?"":"/"+e)},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return u},enumerable:!1,configurable:!0}),e}()},78550:e=>{"use strict";e.exports=function(e){return null!==e&&/^[a-zA-Z0-9_-]{1,64}$/.test(e)}},78993:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.utils=void 0,t.utils={_adaptHighlightTag:function(e,t,r){return e.replace(RegExp("<mark>","g"),t||"<mark>").replace(RegExp("</mark>","g"),r||"</mark>")},_adaptNumberOfPages:function(){var e=this.typesenseResponse.found/this.typesenseResponse.request_params.per_page;return Number.isFinite(e)?Math.ceil(e):1}}},79099:(e,t,r)=>{"use strict";function n(e,t){if(!e)throw Error("Invariant failed")}r.d(t,{V:()=>n})},80163:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246),i=n.__importDefault(r(20327));t.default=function(){function e(e,t){this.id=e,this.apiCall=t}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.id
1))},e}()},80526:(e,t,r)=>{"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty;e.exports=r(29850).call(n,i)},80612:(e,t,r)=>{"use strict";var n=r(84992);Object.defineProperty(t,"__esModule",{value:!0}),t.SearchRequestAdapter=void 0;var i=n(r(58069)),a=n(r(96441)),o=n(r(85401)),u=n(r(54381)),s=n(r(46151)),c=n(r(94969)),l=["q","conversation","conversation_id","conversation_model_id"];t.SearchRequestAdapter=function(){var e;return(0,c.default)(function e(t,r,n){(0,s.default)(this,e),this.instantsearchRequests=t,this.typesenseClient=r,this.configuration=n,this.additionalSearchParameters=n.additionalSearchParameters,this.collectionSpecificSearchParameters=n.collectionSpecificSearchParameters},[{key:"_shouldUseExactMatchForField",value:function(e,t){var r,n;return(null==(r=this.configuration.collectionSpecificFilterByOptions)||null==(r=r[t])||null==(r=r[e])?void 0:r.exactMatch)!==!1&&(null==(n=this.configuration.filterByOptions)||null==(n=n[e])?void 0:n.exactMatch)!==!1}},{key:"_adaptFacetFilters",value:function(e,t){var r=this,n="";return e?n=e.map(function(e){if(Array.isArray(e)){var n={};e.forEach(function(e){var t=r._parseFacetFilter(e),i=t.fieldName,a=t.fieldValue;n[i]=n[i]||[],n[i].push(a)}),Object.keys(n).length>1&&console.error("[Typesense-Instantsearch-Adapter] Typesense does not support cross-field ORs at the moment. The adapter could not OR values between these fields: ".concat(Object.keys(n).join(",")));var i=Object.keys(n)[0],a=n[i].reduce(function(e,t){return t.startsWith("-")&&!r._isNumber(t)?e[0].push(t.substring(1)):e[1].push(t),e},[[],[]]),o=(0,u.default)(a,2),s=o[0],c=o[1],l=[];if(c.length>0){var f=r._shouldUseExactMatchForField(i,t)?":=":":";l.push("".concat(i).concat(f,"[").concat(c.map(function(e){return r._escapeFacetValue(e)}).join(","),"]"))}if(s.length>0){var d=r._shouldUseExactMatchForField(i,t)?":!=":":!";l.push("".concat(i).concat(d,"[").concat(s.map(function(e){return r._escapeFacetValue(e)}).join(","),"]"))}return l.filter(function(e){return e}).join(" && ")}var h,p=r._parseFacetFilter(e),D=p.fieldName,m=p.fieldValue;if(m.startsWith("-")&&!r._isNumber(m)){var g=r._shouldUseExactMatchForField(D,t)?":!=":":!";h="".concat(D).concat(g,"[").concat(r._escapeFacetValue(m.substring(1)),"]")}else{var y=r._shouldUseExactMatchForField(D,t)?":=":":";h="".concat(D).concat(y,"[").concat(r._escapeFacetValue(m),"]")}return h}).join(" && "):n}},{key:"_parseFacetFilter",value:function(e){if((null==(t=this.configuration.facetableFieldsWithSpecialCharacters)?void 0:t.length)>0){var t,r,n,i,a,o=this.configuration.facetableFieldsWithSpecialCharacters.flat().map(function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")});if(r=new RegExp("^(".concat(o.join("|"),"):(.*)$")),null!=(n=e.match(r)))return{fieldName:i="".concat(n[1]),fieldValue:a="".concat(n[2])}}return r=this.constructor.DEFAULT_FACET_FILTER_STRING_MATCHING_REGEX,null==(n=e.match(r))?console.error("[Typesense-Instantsearch-Adapter] Parsing failed for a facet filter `".concat(e,"` with the Regex `").concat(r,"`. If you have field names with special characters, be sure to add them to a parameter called `facetableFieldsWithSpecialCharacters` when instantiating the adapter.")):(i="".concat(n[1]).concat(n[2]),a="".concat(n[3])),{fieldName:i,fieldValue:a}}},{key:"_escapeFacetValue",value:function(e){return"boolean"==typeof e||"true"===e||"false"===e||this._isNumber(e)?e:"`".concat(e,"`")}},{key:"_isNumber",value:function(e){return Number.isInteger(e%1)||!!(e%1)}},{key:"_adaptNumericFilters",value:function(e){var t=this,r="";if(!e)return r;var n={};e.forEach(function(e){var r=t._parseNumericFilter(e),i=r.fieldName,a=r.operator,o=r.fieldValue;n[i]=n[i]||{},n[i][a]=o});var i=[];return Object.keys(n).forEach(function(e){null!=n[e]["<="]&&null!=n[e][">="]?i.push("".concat(e,":=[").concat(n[e][">="],"..").concat(n[e]["<="],"]")):null!=n[e]["<="]?i.push("".concat(e,":<=").concat(n[e]["<="])):null!=n[e][">="]?i.push("".concat(e,":>=").concat(n[e][">="])):null!=n[e]["="]?i.push("".concat(e,":=").concat(n[e]["="])):console.warn("[Typesense-Instantsearch-Adapter] Unsupported operator found ".concat(JSON.stringify(n[e])))}),r=i.join(" && ")}},{key:"_parseNumericFilter",value:function(e){if((null==(t=this.configuration.facetableFieldsWithSpecialCharacters)?void 0:t.length)>0){var t,r,n,i,a,o,s=this.configuration.facetableFieldsWithSpecialCharacters.map(function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")});if(r=new RegExp("^(".concat(s.join("|"),")(<=|>=|>|<|=)(.*)$")),null!=(n=e.match(r))){var c=n,l=(0,u.default)(c,4);return i=l[1],{fieldName:i,operator:a=l[2],fieldValue:o=l[3]}}}if(r=this.constructor.DEFAULT_NUMERIC_FILTER_STRING_MATCHING_REGEX,null==(n=e.match(r)))console.error("[Typesense-Instantsearch-Adapter] Parsing failed for a numeric filter `".concat(e,"` with the Regex `").concat(r,"`. If you have field names with special characters, be sure to add them to a parameter called `facetableFieldsWithSpecialCharacters` when instantiating the adapter."));else{var f=n,d=(0,u.default)(f,4);i=d[1],a=d[2],o=d[3]}return{fieldName:i,operator:a,fieldValue:o}}},{key:"_adaptGeoFilter",value:function(e){var t,r,n,i,a=e.insideBoundingBox,o=e.aroundRadius,s=e.aroundLatLng,c=e.insidePolygon;if(a){if(Array.isArray(a)){var l=a.flat(),f=(0,u.default)(l,4);t=f[0],r=f[1],n=f[2],i=f[3]}else{var d=a.split(","),h=(0,u.default)(d,4);t=h[0],r=h[1],n=h[2],i=h[3]}return"".concat(this.configuration.geoLocationField,":(").concat(t,", ").concat(r,", ").concat(t,", ").concat(i,", ").concat(n,", ").concat(i,", ").concat(n,", ").concat(r,")")}if(s||o){if(!o||"all"===o)throw Error("[Typesense-Instantsearch-Adapter] In Typesense, geo-filtering around a lat/lng also requires a numerical radius. So the `aroundRadius` parameter is required when `aroundLatLng` is used. If you intend to just geo-sort around a lat/long, you want to use the sortBy InstantSearch widget (or a virtual sortBy custom widget).");var p="".concat(parseFloat(o)/1e3," km");return"".concat(this.configuration.geoLocationField,":(").concat(s,", ").concat(p,")")}if(c){var D=c;return Array.isArray(c)&&(D=c.flat().join(",")),"".concat(this.configuration.geoLocationField,":(").concat(D,")")}}},{key:"_adaptFilters",value:function(e,t){var r=[];return e.filters&&r.push(e.filters),r.push(this._adaptFacetFilters(e.facetFilters,t)),r.push(this._adaptNumericFilters(e.numericFilters)),r.push(this._adaptGeoFilter(e)),r.filter(function(e){return e&&""!==e}).join(" && ")}},{key:"_adaptIndexName",value:function(e){return e.match(this.constructor.INDEX_NAME_MATCHING_REGEX)[1]}},{key:"_adaptSortBy",value:function(e){return e.match(this.constructor.INDEX_NAME_MATCHING_REGEX)[3]}},{key:"_adaptFacetBy",value:function(e,t){var r=this;return[e].flat().map(function(e){var n;return null!=(n=r.configuration.collectionSpecificFacetByOptions)&&null!=(n=n[t])&&n[e]?"".concat(e).concat(r.configuration.collectionSpecificFacetByOptions[t][e]):r.configuration.facetByOptions[e]?"".concat(e).concat(r.configuration.facetByOptions[e]):e}).join(",")}},{key:"_adaptRulesContextsToOverrideTags",value:function(e){return e.join(",")}},{key:"_buildSearchParameters",value:function(e){for(var t,r,n=e.params,i=e.indexName,a=this._adaptIndexName(i),o={},s=0,c=Object.entries(this.additionalSearchParameters);s<c.length;s++){var l=(0,u.default)(c[s],2),f=l[0],d=l[1];o[this._camelToSnakeCase(f)]=d}if(this.collectionSpecificSearchParameters[a])for(var h=0,p=Object.entries(this.collectionSpecificSearchParameters[a]);h<p.length;h++){var D=(0,u.default)(p[h],2),m=D[0],g=D[1];o[this._camelToSnakeCase(m)]=g}var y=Object.assign({},o),v=this._adaptSortBy(i);Object.assign(y,{collection:a,q:""===n.query||void 0===n.query?"*":n.query,facet_by:o.facet_by||this._adaptFacetBy(n.facets,a),filter_by:this._adaptFilters(n,a)||o.filter_by,sort_by:v||o.sort_by,max_facet_values:n.maxValuesPerFacet,page:(n.page||0)+1}),null!=n.hitsPerPage&&(y.per_page=n.hitsPerPage),n.facetQuery&&(y.facet_query="".concat(n.facetName,":").concat(n.facetQuery),y.per_page=0),n.ruleContexts&&n.ruleContexts.length>0&&(y.override_tags=this._adaptRulesContextsToOverrideTags(n.ruleContexts)),n.typesenseVectorQuery&&(y.vector_query=n.typesenseVectorQuery);var F=(null==(t=this.configuration.collectionSpecificSortByOptions)||null==(t=t[a])?void 0:t[y.sort_by])||
1(null==(r=this.configuration.sortByOptions)?void 0:r[y.sort_by]);return(null==F?void 0:F.enable_overrides)!=null&&(y.enable_overrides=F.enable_overrides),Object.fromEntries(Object.entries(y).filter(function(e){var t=(0,u.default)(e,2),r=(t[0],t[1]);return null!=r&&""!==r}))}},{key:"_camelToSnakeCase",value:function(e){return e.split(/(?=[A-Z])/).join("_").toLowerCase()}},{key:"request",value:(e=(0,o.default)(i.default.mark(function e(){var t,r,n,o,u,s,c,f=this;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.instantsearchRequests.map(function(e){return f._buildSearchParameters(e)}),r={},((null==(s=t[0])?void 0:s.conversation)===!0||(null==(c=t[0])?void 0:c.conversation)==="true")&&(o=(n=t[0]).q,u=n.conversation,r={q:o,conversation:u,conversation_id:n.conversation_id,conversation_model_id:n.conversation_model_id},t=t.map(function(e){return e.q,e.conversation,e.conversation_id,e.conversation_model_id,(0,a.default)(e,l)})),e.abrupt("return",this.typesenseClient.multiSearch.perform({searches:t},r));case 4:case"end":return e.stop()}},e,this)})),function(){return e.apply(this,arguments)})}],[{key:"INDEX_NAME_MATCHING_REGEX",get:function(){return RegExp("^(.+?)(?=(/sort/(.*))|$)")}},{key:"DEFAULT_FACET_FILTER_STRING_MATCHING_REGEX",get:function(){return RegExp("(.*)((?!:).):(?!:)(.*)")}},{key:"DEFAULT_NUMERIC_FILTER_STRING_MATCHING_REGEX",get:function(){return RegExp("(.*?)(<=|>=|>|<|=)(.*)")}}])}()},81644:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246),i=n.__importDefault(r(2818)),a=r(43656);t.default=function(){function e(e,t,r){void 0===r&&(r=!1),this.apiCall=e,this.configuration=t,this.useTextContentType=r,this.requestWithCache=new i.default}return e.prototype.clearCache=function(){this.requestWithCache.clearCache()},e.prototype.perform=function(e,t,r){return n.__awaiter(this,void 0,void 0,function(){var i,o,u,s,c;return n.__generator(this,function(l){return i=t?n.__assign({},t):{},!0===this.configuration.useServerSideSearchCache&&(i.use_cache=!0),o={union:e.union,searches:e.searches.map(a.normalizeArrayableParams)},u=i.streamConfig,s=n.__rest(i,["streamConfig"]),c=(0,a.normalizeArrayableParams)(s),[2,this.requestWithCache.perform(this.apiCall,"post",{path:"/multi_search",body:o,queryParams:c,headers:this.useTextContentType?{"content-type":"text/plain"}:{},streamConfig:u,abortSignal:null==r?void 0:r.abortSignal,isStreamingRequest:this.isStreamingRequest(i)},(null==r?void 0:r.cacheSearchResultsForSeconds)!==void 0?{cacheResponseForSeconds:r.cacheSearchResultsForSeconds}:void 0)]})})},e.prototype.isStreamingRequest=function(e){return void 0!==e.streamConfig},e}()},81812:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246),i=n.__importDefault(r(5219)),a=n.__importDefault(r(84133)),o=n.__importDefault(r(81644)),u=r(21185);t.default=function(){function e(e){var t;e.sendApiKeyAsQueryParam=null==(t=e.sendApiKeyAsQueryParam)||t,!0===e.sendApiKeyAsQueryParam&&(e.apiKey||"").length>2e3&&(console.warn("[typesense] API Key is longer than 2000 characters which is over the allowed limit, so disabling sending it as a query parameter."),e.sendApiKeyAsQueryParam=!1),this.configuration=new i.default(e),this.apiCall=new a.default(this.configuration),this.multiSearch=new o.default(this.apiCall,this.configuration,!0),this.individualCollections={}}return e.prototype.clearCache=function(){this.multiSearch.clearCache(),Object.entries(this.individualCollections).forEach(function(e){e[0],e[1].documents().clearCache()})},e.prototype.collections=function(e){if(e)return void 0===this.individualCollections[e]&&(this.individualCollections[e]=new u.SearchOnlyCollection(e,this.apiCall,this.configuration)),this.individualCollections[e];throw Error("Typesense.SearchClient only supports search operations, so the collectionName that needs to be searched must be specified. Use Typesense.Client if you need to access the collection object.")},e}()},82371:e=>{e.exports=function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},82798:e=>{"use strict";e.exports="3.29.3"},82810:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.Document=void 0;var n=r(4246),i=n.__importDefault(r(61792)),a=n.__importDefault(r(71191));t.Document=function(){function e(e,t,r){this.collectionName=e,this.documentId=t,this.apiCall=r}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.delete=function(e){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.delete(this.endpointPath(),e)]})})},e.prototype.update=function(e,t){return void 0===t&&(t={}),n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(r){return[2,this.apiCall.patch(this.endpointPath(),e,t)]})})},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.collectionName)).concat(a.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.documentId))},e}()},82925:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246);t.default=function(e){function t(t,r,n){var i=this.constructor,a=e.call(this,t)||this;return a.name=i.name,a.httpBody=r,a.httpStatus=n,Object.setPrototypeOf(a,i.prototype),a}return n.__extends(t,e),t}(Error)},82986:(e,t,r)=>{"use strict";var n,i=r(62960),a=r(86682),o=r(76824),u=r(73951),s=r(12759),c=r(17433),l=r(94158),f=r(85012),d=r(73218),h=r(3252),p=r(21828),D=r(52150),m=r(71500),g=r(34106),y=r(27575),v=Function,F=function(e){try{return v('"use strict"; return ('+e+").constructor;")()}catch(e){}},_=r(41633),E=r(47920),C=function(){throw new l},b=_?function(){try{return arguments.callee,C}catch(e){try{return _(arguments,"callee").get}catch(e){return C}}}():C,R=r(92676)(),S=r(31670),A=r(1326),w=r(47280),O=r(36969),P=r(17643),x={},j="undefined"!=typeof Uint8Array&&S?S(Uint8Array):n,B={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":R&&S?S([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":x,"%AsyncGenerator%":x,"%AsyncGeneratorFunction%":x,"%AsyncIteratorPrototype%":x,"%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%":o,"%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%":v,"%GeneratorFunction%":x,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
1IteratorPrototype%":R&&S?S(S([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&R&&S?S(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%":u,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&R&&S?S(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":R&&S?S(""[Symbol.iterator]()):n,"%Symbol%":R?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":b,"%TypedArray%":j,"%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%":P,"%Function.prototype.apply%":O,"%Object.defineProperty%":E,"%Object.getPrototypeOf%":A,"%Math.abs%":d,"%Math.floor%":h,"%Math.max%":p,"%Math.min%":D,"%Math.pow%":m,"%Math.round%":g,"%Math.sign%":y,"%Reflect.getPrototypeOf%":w};if(S)try{null.error}catch(e){var T=S(S(e));B["%Error.prototype%"]=T}var N=function e(t){var r;if("%AsyncFunction%"===t)r=F("async function () {}");else if("%GeneratorFunction%"===t)r=F("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=F("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&S&&(r=S(i.prototype))}return B[t]=r,r},k={__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"]},I=r(29850),H=r(80526),U=I.call(P,Array.prototype.concat),L=I.call(O,Array.prototype.splice),M=I.call(P,String.prototype.replace),q=I.call(P,String.prototype.slice),W=I.call(P,RegExp.prototype.exec),Q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,$=/\\(\\)?/g,V=function(e){var t=q(e,0,1),r=q(e,-1);if("%"===t&&"%"!==r)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var n=[];return M(e,Q,function(e,t,r,i){n[n.length]=r?M(i,$,"$1"):t||e}),n},z=function(e,t){var r,n=e;if(H(k,n)&&(n="%"+(r=k[n])[0]+"%"),H(B,n)){var i=B[n];if(i===x&&(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 c("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===W(/^%?[^%]*%?$/,e))throw new c("`%` 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,o=i.value,u=!1,s=i.alias;s&&(n=s[0],L(r,U([0,1],s)));for(var f=1,d=!0;f<r.length;f+=1){var h=r[f],p=q(h,0,1),D=q(h,-1);if(('"'===p||"'"===p||"`"===p||'"'===D||"'"===D||"`"===D)&&p!==D)throw new c("property names with quotes must have matching quotes");if("constructor"!==h&&d||(u=!0),n+="."+h,H(B,a="%"+n+"%"))o=B[a];
1else if(null!=o){if(!(h in o)){if(!t)throw new l("base intrinsic for "+e+" exists, but the property is not available.");return}if(_&&f+1>=r.length){var m=_(o,h);o=(d=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:o[h]}else d=H(o,h),o=o[h];d&&!u&&(B[a]=o)}}return o}},83714:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(62477).A)("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]])},83841:(e,t,r)=>{"use strict";var n=r(26611),i=r(27923);e.exports=function(e,t){var r,a,o={};return t.forEach(function(t){t.forEach(function(t,r){e.includes(t.objectID)||(o[t.objectID]?o[t.objectID]={indexSum:o[t.objectID].indexSum+r,count:o[t.objectID].count+1}:o[t.objectID]={indexSum:r,count:1})})}),(r=t.length,a=[],Object.keys(o).forEach(function(e){o[e].count<2&&(o[e].indexSum+=100),a.push({objectID:e,avgOfIndices:o[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},[])}},84133:(e,t,r)=>{"use strict";var n=r(9100);Object.defineProperty(t,"__esModule",{value:!0});var i=r(4246),a=i.__importDefault(r(78158)),o=r(56833),u=r(73224),s=r(75147),c=i.__importDefault(r(82925)),l=r(43656),f=void 0!==n&&null!=n.versions&&null!=n.versions.node&&"undefined"==typeof window;t.default=function(){function e(e){this.configuration=e,this.apiKey=this.configuration.apiKey,this.nodes=null==this.configuration.nodes?this.configuration.nodes:JSON.parse(JSON.stringify(this.configuration.nodes)),this.nearestNode=null==this.configuration.nearestNode?this.configuration.nearestNode:JSON.parse(JSON.stringify(this.configuration.nearestNode)),this.connectionTimeoutSeconds=this.configuration.connectionTimeoutSeconds,this.healthcheckIntervalSeconds=this.configuration.healthcheckIntervalSeconds,this.numRetriesPerRequest=this.configuration.numRetries,this.retryIntervalSeconds=this.configuration.retryIntervalSeconds,this.sendApiKeyAsQueryParam=this.configuration.sendApiKeyAsQueryParam,this.additionalUserHeaders=this.configuration.additionalHeaders,this.logger=this.configuration.logger,this.initializeMetadataForNodes(),this.currentNodeIndex=-1}return e.prototype.get=function(e,t,r){void 0===t&&(t={});var n=void 0===r?{}:r,a=n.abortSignal,o=void 0===a?null:a,u=n.responseType,s=void 0===u?void 0:u,c=n.streamConfig,l=void 0===c?void 0:c,f=n.isStreamingRequest;return i.__awaiter(this,void 0,void 0,function(){return i.__generator(this,function(r){return[2,this.performRequest("get",e,{queryParameters:t,abortSignal:o,responseType:s,streamConfig:l,isStreamingRequest:f})]})})},e.prototype.delete=function(e,t){return void 0===t&&(t={}),i.__awaiter(this,void 0,void 0,function(){return i.__generator(this,function(r){return[2,this.performRequest("delete",e,{queryParameters:t,isStreamingRequest:!1})]})})},e.prototype.post=function(e,t,r,n,a){void 0===t&&(t={}),void 0===r&&(r={}),void 0===n&&(n={});var o=void 0===a?{}:a,u=o.abortSignal,s=void 0===u?null:u,c=o.responseType,l=void 0===c?void 0:c,f=o.streamConfig,d=void 0===f?void 0:f,h=o.isStreamingRequest;return i.__awaiter(this,void 0,void 0,function(){return i.__generator(this,function(i){return[2,this.performRequest("post",e,{queryParameters:r,bodyParameters:t,additionalHeaders:n,abortSignal:s,responseType:l,streamConfig:d,isStreamingRequest:h})]})})},e.prototype.put=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),i.__awaiter(this,void 0,void 0,function(){return i.__generator(this,function(n){return[2,this.performRequest("put",e,{queryParameters:r,bodyParameters:t,isStreamingRequest:!1})]})})},e.prototype.patch=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),i.__awaiter(this,void 0,void 0,function(){return i.__generator(this,function(n){return[2,this.performRequest("patch",e,{queryParameters:r,bodyParameters:t,isStreamingRequest:!1})]})})},e.prototype.getAdapter=function(){if(this.configuration.axiosAdapter)return"function"==typeof this.configuration.axiosAdapter?this.configuration.axiosAdapter:"undefined"!=typeof navigator&&"Cloudflare-Workers"===navigator.userAgent?a.default.getAdapter(this.configuration.axiosAdapter).bind(globalThis):a.default.getAdapter(this.configuration.axiosAdapter)},e.prototype.performRequest=function(e,t,r){var n,s,c,l,d=r.queryParameters,h=void 0===d?null:d,p=r.bodyParameters,D=void 0===p?null:p,m=r.additionalHeaders,g=void 0===m?{}:m,y=r.abortSignal,v=void 0===y?null:y,F=r.responseType,_=void 0===F?void 0:F,E=r.skipConnectionTimeout,C=void 0!==E&&E,b=r.enableKeepAlive,R=void 0===b?void 0:b,S=r.streamConfig,A=void 0===S?void 0:S,w=r.isStreamingRequest;return i.__awaiter(this,void 0,void 0,function(){var r,d,p,m,y,F,E;return i.__generator(this,function(b){switch(b.label){case 0:this.configuration.validate(),w&&(this.logger.debug("Request: Performing streaming request to ".concat(t)),f||"undefined"==typeof fetch||(this.logger.debug("Using fetch adapter for browser streaming"),_="stream")),r=Date.now(),p=!1,this.logger.debug("Request #".concat(r,": Performing ").concat(e.toUpperCase()," request: ").concat(t)),m=function(m){var F,E,b,S,O,P;return i.__generator(this,function(x){switch(x.label){case 0:if(F=y.getNextNode(r),y.logger.debug("Request #".concat(r,": Attempting ").concat(e.toUpperCase()," request Try #").concat(m," to Node ").concat(F.index)),v&&v.aborted)return[2,{value:Promise.reject(Error("Request aborted by caller."))}];E=void 0,x.label=1;case 1:return x.trys.push([1,3,5,6]),(b={method:e,url:y.uriFor(t,F),headers:Object.assign({},y.defaultHeaders(),g,y.additionalUserHeaders),maxContentLength:1/0,maxBodyLength:1/0,validateStatus:function(e){return e>0},transformResponse:[function(e,t){var r=e;return void 0!==t&&"string"==typeof e&&t["content-type"]&&t["content-type"].startsWith("application/json")&&(r=JSON.parse(e)),r}]}).adapter=w&&!f?"fetch":y.getAdapter(),!0!==C&&(b.timeout=1e3*y.connectionTimeoutSeconds),h&&0!==Object.keys(h).length&&(b.params=h),y.sendApiKeyAsQueryParam&&(b.params=b.params||{},b.params["x-typesense-api-key"]=y.apiKey),y.configuration.httpAgent?(y.logger.debug("Request #".concat(r,": Using custom httpAgent")),b.httpAgent=y.configuration.httpAgent):!0===R&&(f?(y.logger.debug("Request #".concat(r,": Enabling KeepAlive")),b.httpAgent=new o.Agent({keepAlive:!0})):y.logger.warn("Request #".concat(r,": Cannot use custom httpAgent in a browser environment to enable keepAlive"))),y.configuration.httpsAgent?(y.logger.debug("Request #".concat(r,": Using custom httpsAgent")),b.httpsAgent=y.configuration.httpsAgent):!0===R&&(f?(y.logger.debug("Request #".concat(r,": Enabling keepAlive")),b.httpsAgent=new u.Agent({keepAlive:!0})):y.logger.warn("Request #".concat(r,": Cannot use custom httpAgent in a browser environment to enable keepAlive"))),y.configuration.paramsSerializer&&(y.logger.debug("Request #".concat(r,": Using custom paramsSerializer")),b.paramsSerializer
1=y.configuration.paramsSerializer),D&&("string"==typeof D&&0!==D.length||"object"==typeof D&&0!==Object.keys(D).length)&&(b.data=D),v&&(S=a.default.CancelToken.source(),E=function(){p=!0,S.cancel()},v.addEventListener("abort",E),b.cancelToken=S.token),w?(b.responseType="stream",f||(b.headers=i.__assign(i.__assign({},b.headers),{Accept:"text/event-stream"}))):_&&(b.responseType=_),[4,(0,a.default)(b)];case 2:if((O=x.sent()).status>=1&&O.status<=499&&y.setNodeHealthcheck(F,!0),y.logger.debug("Request #".concat(r,": Request to Node ").concat(F.index," was made. Response Code was ").concat(O.status,".")),O.status>=200&&O.status<300){if(w)return[2,{value:y.handleStreamingResponse(O,A)}];return[2,{value:Promise.resolve(O.data)}]}if(O.status<500)return[2,{value:Promise.reject(y.customErrorForResponse(O,null==(n=O.data)?void 0:n.message,b.data))}];throw y.customErrorForResponse(O,null==(s=O.data)?void 0:s.message,b.data);case 3:if(P=x.sent(),p||y.setNodeHealthcheck(F,!1),d=P,y.logger.warn("Request #".concat(r,": Request to Node ").concat(F.index,' failed due to "').concat(null!=(c=null==P?void 0:P.code)?c:""," ").concat(P.message).concat(null==P.response?"":" - "+JSON.stringify(null==(l=P.response)?void 0:l.data),'"')),p)return[2,{value:Promise.reject(Error("Request aborted by caller."))}];if(w&&y.invokeOnErrorCallback(P,A),!(m<y.numRetriesPerRequest+1))return y.logger.debug("Request #".concat(r,": No retries left. Raising last error")),[2,{value:Promise.reject(d)}];return y.logger.warn("Request #".concat(r,": Sleeping for ").concat(y.retryIntervalSeconds,"s and then retrying request...")),[4,y.timer(y.retryIntervalSeconds)];case 4:return x.sent(),[3,6];case 5:return v&&E&&v.removeEventListener("abort",E),[7];case 6:return[2]}})},y=this,F=1,b.label=1;case 1:if(!(F<=this.numRetriesPerRequest+1))return[3,4];return[5,m(F)];case 2:if("object"==typeof(E=b.sent()))return[2,E.value];b.label=3;case 3:return F++,[3,1];case 4:return this.logger.debug("Request #".concat(r,": No retries left. Raising last error")),[2,Promise.reject(d)]}})})},e.prototype.processStreamingLine=function(e){if(!e.trim()||"data: [DONE]"===e)return null;if(e.startsWith("data: "))return this.processDataLine(e.slice(6).trim());if(e.trim().startsWith("{"))try{var t=JSON.parse(e.trim());if(t&&"object"==typeof t)return t.conversation_id||(t.conversation_id="unknown"),t.message||""===t.message||(t.message=""),t;return{conversation_id:"unknown",message:JSON.stringify(t)}}catch(e){}return{conversation_id:"unknown",message:e.trim()}},e.prototype.processDataLine=function(e){if(!e)return null;if(e.startsWith("{"))try{var t=JSON.parse(e);if(t&&"object"==typeof t)return t.conversation_id||(t.conversation_id="unknown"),t.message||""===t.message||(t.message=""),t;return{conversation_id:"unknown",message:JSON.stringify(t)}}catch(e){}return{conversation_id:"unknown",message:e}},e.prototype.handleStreamingResponse=function(e,t){return i.__awaiter(this,void 0,void 0,function(){return i.__generator(this,function(r){return(this.logger.debug("Handling streaming response. Env
1ironment: ".concat(f?"Node.js":"Browser")),f&&e.data)?[2,this.handleNodeStreaming(e,t)]:f?(this.logger.debug("Processing non-streaming response"),this.invokeOnCompleteCallback(e.data,t),[2,Promise.resolve(e.data)]):[2,this.handleBrowserStreaming(e,t)]})})},e.prototype.handleNodeStreaming=function(e,t){var r=this;return this.logger.debug("Processing Node.js stream"),new Promise(function(n,i){var a=e.data,o=[],u="";a.on("data",function(e){var n;try{var a=e.toString(),s=(u+=a).split("\n");u=null!=(n=s.pop())?n:"",r.processStreamLines(s,o,t)}catch(e){i(e)}}),a.on("end",function(){if(u.trim().length>0){var i=u.split("\n");r.processStreamLines(i,o,t)}r.finalizeStreamResult(o,n,e,t)}),a.on("error",function(e){r.logger.error("Stream error: ".concat(e)),r.invokeOnErrorCallback(e,t),i(e)})})},e.prototype.handleBrowserStreaming=function(e,t){var r=this;return this.logger.debug("Processing browser stream"),new Promise(function(n,a){return i.__awaiter(r,void 0,void 0,function(){return i.__generator(this,function(r){try{if(e.data&&"function"==typeof e.data.getReader)return[2,this.handleBrowserReadableStream(e.data,n,a,e,t)];if("string"==typeof e.data)return[2,this.handleBrowserStringResponse(e.data,n,e,t)];if("object"==typeof e.data&&null!==e.data)return this.logger.debug("No stream found, but data object is available"),this.invokeOnCompleteCallback(e.data,t),[2,n(e.data)];return this.logger.error("No usable data found in response"),[2,a(Error("No usable data found in response"))]}catch(e){this.logger.error("Error processing streaming response: ".concat(e)),this.invokeOnErrorCallback(e,t),a(e)}return[2]})})})},e.prototype.handleBrowserReadableStream=function(e,t,r,n,a){return i.__awaiter(this,void 0,void 0,function(){var o,u,s,c,l,f,d,h,p,D;return i.__generator(this,function(i){switch(i.label){case 0:this.logger.debug("Found ReadableStream in response.data"),o=e.getReader(),u=[],s="",i.label=1;case 1:i.trys.push([1,5,,6]),i.label=2;case 2:return[4,o.read()];case 3:if(l=(c=i.sent()).done,f=c.value,l)return this.logger.debug("Stream reading complete"),s.trim()&&(d=s.split("\n"),this.processStreamLines(d,u,a)),[3,4];return h=new TextDecoder().decode(f),this.logger.debug("Received chunk: ".concat(h.length," bytes")),s+=h,s=(p=s.split("\n")).pop()||"",this.processStreamLines(p,u,a),[3,2];case 4:return this.finalizeStreamResult(u,t,n,a),[3,6];case 5:return D=i.sent(),this.logger.error("Stream error: ".concat(D)),this.invokeOnErrorCallback(D,a),r(D),[3,6];case 6:return[2]}})})},e.prototype.handleBrowserStringResponse=function(e,t,r,n){this.logger.debug("Processing text response as stream data");var i=[],a=e.split("\n");if(this.processStreamLines(a,i,n),i.length>0){var o=this.combineStreamingChunks(i);this.invokeOnCompleteCallback(o,n),t(o)}else this.logger.debug("No chunks processed, returning original API response"),this.invokeOnCompleteCallback(r.data,n),t(r.data)},e.prototype.processStreamLines=function(e,t,r){for(var n=0;n<e.length;n++){var i=e[n];if(i.trim()&&"data: [DONE]"!==i){var a=this.processStreamingLine(i);null!==a&&(this.invokeOnChunkCallback(a,r),t.push(a))}}},e.prototype.finalizeStreamResult=function(e,t,r,n){if(e.length>0){var i=this.combineStreamingChunks(e);this.logger.debug("Stream processing complete"),this.invokeOnCompleteCallback(i,n),t(i)}else this.logger.debug("No chunks processed, returning original API response"),this.invokeOnCompleteCallback(r.data,n),t(r.data)},e.prototype.combineStreamingChunks=function(e){if(0===e.length)return{};if(1===e.length)return e[0];var t=this.getMessageChunks(e);if(t.length>0)return this.combineMessageChunks(e,t);var r=e[e.length-1];if(!this.isCompleteSearchResponse(r))throw Error("Last chunk is not a complete search response");return r},e.prototype.getMessageChunks=function(e){return e.filter(this.isChunkMessage)},e.prototype.isChunkMessage=function(e){return"object"==typeof e&&null!==e&&"message"in e&&"conversation_id"in e},e.prototype.combineMessageChunks=function(e,t){this.logger.debug("Found ".concat(t.length," message chunks to combine"));var r=e[e.length-1];if(this.isCompleteSearchResponse(r))return r;var n=e.find(this.isCompleteSearchResponse);
1if(!n)throw Error("No metadata chunk found");return n},e.prototype.isCompleteSearchResponse=function(e){return"object"==typeof e&&null!==e&&Object.keys(e).length>0&&("results"in e||"found"in e||"hits"in e||"page"in e||"search_time_ms"in e)},e.prototype.getNextNode=function(e){if(void 0===e&&(e=0),null!=this.nearestNode){if(this.logger.debug("Request #".concat(e,": Nodes Health: Node ").concat(this.nearestNode.index," is ").concat(!0===this.nearestNode.isHealthy?"Healthy":"Unhealthy")),!0===this.nearestNode.isHealthy||this.nodeDueForHealthcheck(this.nearestNode,e))return this.logger.debug("Request #".concat(e,": Updated current node to Node ").concat(this.nearestNode.index)),this.nearestNode;this.logger.debug("Request #".concat(e,": Falling back to individual nodes"))}this.logger.debug("Request #".concat(e,": Nodes Health: ").concat(this.nodes.map(function(e){return"Node ".concat(e.index," is ").concat(!0===e.isHealthy?"Healthy":"Unhealthy")}).join(" || ")));for(var t=this.nodes[0],r=0;r<=this.nodes.length;r++)if(this.currentNodeIndex=(this.currentNodeIndex+1)%this.nodes.length,!0===(t=this.nodes[this.currentNodeIndex]).isHealthy||this.nodeDueForHealthcheck(t,e))return this.logger.debug("Request #".concat(e,": Updated current node to Node ").concat(t.index)),t;return this.logger.debug("Request #".concat(e,": No healthy nodes were found. Returning the next node, Node ").concat(t.index)),t},e.prototype.nodeDueForHealthcheck=function(e,t){void 0===t&&(t=0);var r=Date.now()-e.lastAccessTimestamp>1e3*this.healthcheckIntervalSeconds;return r&&this.logger.debug("Request #".concat(t,": Node ").concat(e.index," has exceeded healtcheckIntervalSeconds of ").concat(this.healthcheckIntervalSeconds,". Adding it back into rotation.")),r},e.prototype.initializeMetadataForNodes=function(){var e=this;null!=this.nearestNode&&(this.nearestNode.index="nearestNode",this.setNodeHealthcheck(this.nearestNode,!0)),this.nodes.forEach(function(t,r){t.index=r,e.setNodeHealthcheck(t,!0)})},e.prototype.setNodeHealthcheck=function(e,t){e.isHealthy=t,e.lastAccessTimestamp=Date.now()},e.prototype.uriFor=function(e,t){return null!=t.url?"".concat(t.url).concat(e):"".concat(t.protocol,"://").concat(t.host,":").concat(t.port).concat(t.path).concat(e)},e.prototype.defaultHeaders=function(){var e={};return this.sendApiKeyAsQueryParam||(e["X-TYPESENSE-API-KEY"]=this.apiKey),e["Content-Type"]="application/json",e},e.prototype.timer=function(e){return i.__awaiter(this,void 0,void 0,function(){return i.__generator(this,function(t){return[2,new Promise(function(t){return setTimeout(t,1e3*e)})]})})},e.prototype.customErrorForResponse=function(e,t,r){var n="Request failed with HTTP code ".concat(e.status);"string"==typeof t&&""!==t.trim()&&(n+=" | Server said: ".concat(t));new c.default(n,r,e.status);return 400===e.status?new s.RequestMalformed(n,r,e.status):401===e.status?new s.RequestUnauthorized(n,r,e.status):404===e.status?new s.ObjectNotFound(n,r,e.status):409===e.status?new s.ObjectAlreadyExists(n,r,e.status):422===e.status?new s.ObjectUnprocessable(n,r,e.status):e.status>=500&&e.status<=599?new s.ServerError(n,r,e.status):new s.HTTPError(n,r,e.status)},e.prototype.invokeOnChunkCallback=function(e,t){if(null==t?void 0:t.onChunk)try{t.onChunk(e)}catch(e){this.logger.warn("Error in onChunk callback: ".concat(e))}},e.prototype.invokeOnCompleteCallback=function(e,t){if(null==t?void 0:t.onComplete)try{t.onComplete(e)}catch(e){this.logger.warn("Error in onComplete callback: ".concat(e))}},e.prototype.invokeOnErrorCallback=function(e,t){if(null==t?void 0:t.onError){var r=(0,l.toErrorWithMessage)(e);try{t.onError(r)}catch(e){this.logger.warn("Error in onError callback: ".concat(e))}}},e}()},85012:e=>{"use strict";e.exports=URIError},85443:(e,t,r)=>{"use strict";var n=r(26611);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},[[],[]])}},86682:e=>{"use strict";e.exports=Error},88420:e=>{"use strict";e.exports=function(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}},90831:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246),i=n.__importDefault(r(62236));t.default=function(){function e(e,t){this.stopwordId=e,this.apiCall=t}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.delete(this.endpointPath())]})})},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.stopwordId))},e}()},92141:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246),i="/aliases";t.default=function(){function e(e){this.apiCall=e}return e.prototype.upsert=function(e,t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(r){return[2,this.apiCall.put(this.endpointPath(e),t)]})})},e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(i)]})})},e.prototype.endpointPath=function(t){return"".concat(e.RESOURCEPATH,"/").concat(encodeURIComponent(t))},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return i},enumerable:!1,configurable:!0}),e}()},92676:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(52406);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},94158:e=>{"use strict";e.exports=TypeError},94213:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(62477).A)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},94292:(e,t,r)=>{"use strict";function n(e,t){return(Array.isArray(t)?t:t.split(".")).reduce(function(e,t){return e&&e[t]},e)}r.d(t,{E:()=>n})},95921:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246),i=n.__importDefault(r(13668)),a=n.__importDefault(r(70471)),o=n.__importDefault(r(59704));t.default=function(){function e(e){this.apiCall=e,this.individualAnalyticsRules={},this.apiCall=e,this._analyticsRules=new i.default(this.apiCall),this._analyticsEvents=new o.default(this.apiCall)}return e.prototype.rules=function(e){return void 0===e?this._analyticsRules:(void 0===this.individualAnalyticsRules[e]&&(this.individualAnalyticsRules[e]=new a.default(e,this.apiCall)),this.individualAnalyticsRules[e])},e.prototype.events=function(){return this._analyticsEvents},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return"/analytics"},enumerable:!1,configurable:!0}),e}()},96053:(e,t,r)=>{"use strict";r.d(t,{m:()=>a});var n=r(71527),i=(0,n.createContext)(null);function a(){return(0,n.useContext)(i)}},96168:(e,t,r)=>{"use strict";r.d(t,{B:()=>f,p:()=>d});var n,i,a=r(71527),o=r(39516),u=r(30215),s=r(63104),c=r(9100);void 0!==c&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&(null==(n=null==c?void 0:c.env)?void 0:n.NODE_ENV)==="test"&&void 0===(null==(i=null==Element?void 0:Element.prototype)?void 0:i.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn("Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.\nPlease install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.\n\nExample usage:\n```js\nimport { mockAnimationsApi } from 'jsdom-testing-mocks'\nmockAnimationsApi()\n```"),[]});var l=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(l||{});function f(e){let t={};for(let r in e)!0===e[r]&&(t["data-".concat(r)]="");return t}function d(e,t,r,n){let[i,c]=(0,a.useState)(r),{hasFlag:l,addFlag:f,removeFlag:d}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,[t,r]=(0,a.useState)(e),n=(0,a.useCallback)(e=>r(e),[]),i=(0,a.useCallback)(e=>r(t=>t|e),[]),o=(0,a.useCallback)(e=>(t&e)===e,[t]);return{flags:t,setFlag:n,addFlag:i,hasFlag:o,removeFlag:(0,a.useCallback)(e=>r(t=>t&~e),[]),toggleFlag:(0,a.useCallback)(e=>r(t=>t^e),[])}}(e&&i?3:0),h=(0,a.useRef)(!1),p=(0,a.useRef)(!1),D=(0,u.L)();return(0,s.s)(()=>{var i;if(e){if(r&&c(!0),!t){r&&f(3);return}return null==(i=null==n?void 0:n.start)||i.call(n,r),function(e,t){let{prepare:r,run:n,done:i,inFlight:a}=t,u=(0,o.e)();return function(e,t){let{inFlight:r,prepare:n}=t;if(null!=r&&r.current)return n();let i=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=i}(e,{prepare:r,inFlight:a}),u.nextFrame(()=>{n(),u.requestAnimationFrame(()=>{u.add(function(e,t){var r,n;let i=(0,o.e)();if(!e)return i.dispose;let a=!1;i.add(()=>{a=!0});let u=null!=(n=null==(r=e.getAnimations)?void 0:r.call(e).filter(e=>e instanceof CSSTransition))?n:[];return 0===u.length?t():Promise.allSettled(u.map(e=>e.finished)).then(()=>{a||t()}),i.dispose}(e,i))})}),u.dispose}(t,{inFlight:h,prepare(){p.current?p.current=!1:p.current=h.current,h.current=!0,p.current||(r?(f(3),d(4)):(f(4),d(2)))},run(){p.current?r?(d(3),f(4)):(d(4),f(3)):r?d(1):f(1)},done(){var e,i,a,o;p.current&&(null!=(o=null==(a=(i=t).getAnimations)?void 0:a.call(i))?o:[]).some(e=>e instanceof CSSTransition&&"finished"!==e.playState)||(h.current=!1,d(7),r||c(!1),null==(e=null==n?void 0:n.end)||e.call(n,r))}})}},[e,r,t,D]),e?[i,{closed:l(1),enter:l(2),leave:l(4),transition:l(2)||l(4)}]:[r,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}},96319:(e,t,r)=>{"use strict";var n=r(43034),i=r(53260);e.exports={formats:r(68707),parse:i,stringify:n}},96338:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246),i=n.__importDefault(r(30495));t.default=function(){function e(e,t){this.id=e,this.apiCall=t}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.delete(this.endpointPath())]})})},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.id))},e}()},96441:(e,t,r)=>{var n=r(98981);e.exports=function(e,t){if(null==e)return{};var r,i,a=n(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a},e.exports.__esModule=!0,e.exports.default=e.exports},97017:e=>{"use strict";e.exports=function(e){return e&&Object.keys(e).length>0}},97080:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246),i=n.__importDefault(r(30373));t.default=function(){function e(e,t){this.presetId=e,this.apiCall=t}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.delete(this.endpointPath())]})})},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.presetId))},e}()},97677:(e,t,r)=>{"use strict";r.d(t,{t:()=>n});var n=(0,r(71527).createContext)(null)},98401:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4246);t.default=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t}(n.__importDefault(r(82925)).default)},98414:(e,t,r)=>{"use strict";var n=r(53104),i=r(97017),a=r(3669),o={addRefinement:function(e,t,r){if(o.isRefined(e,t,r))return e;var i=""+r,a=e[t]?e[t].concat(i):[i],u={};return u[t]=a,n(u,e)},removeRefinement:function(e,t,r){if(void 0===r)return o.clearRefinement(e,function(e,r){return t===r});var n=""+r;return o.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 o.isRefined(e,t,r)?o.removeRefinement(e,t,r):o.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,o=Object.keys(e).reduce(function(i,a){var o=e[a]||[],u=o.filter(function(e){return!t(e,a,r)});return u.length!==o.length&&(n=!0),i[a]=u,i},{});return n?o: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=o},98802:(e,t,r)=>{"use strict";r.d(t,{r:()=>a});var n=r(71527),i=(0,n.createContext)(null);function a(){return(0,n.useContext)(i)}},98981:e=>{e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports},99174:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Errors=t.SearchClient=t.Client=void 0;var n=r(4246),i=n.__importDefault(r(58616));t.Client=i.default;var a=n.__importDefault(r(81812));t.SearchClient=a.default;var o=n.__importStar(r(75147));t.Errors=o,t.default={Client:i.default,SearchClient:a.default,Errors:o}},99516:(e,t,r)=>{"use strict";r.d(t,{I:()=>o});var n=r(71527),i=r(97677),a=r(79099);function o(){var e=(0,n.useContext)(i.t);return(0,a.V)(null!==e),e}}}]);
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.