varAlgoliaAnalytics=function(e){"use strict";vart="2.17.3";functions(e){returne.reduce(function(e,t){varn=e.events,e=e.additionalParams;return"index"int?{additionalParams:e,events:n.concat([t])}:{events:n,additionalParams:t}},{events:[],additionalParams:void0})}functionn(){try{returnBoolean(navigator.cookieEnabled)}catch(e){return}}functioni(){}i.get=function(e){vart=null==(t=this.store)?void0:t.getItem(e);if(!t)returnnull;try{returnJSON.parse(t)}catch(e){returnnull}},i.set=function(t,e){varn;try{null!=(n=this.store)&&n.setItem(t,JSON.stringify(e))}catch(e){console.error("Unable to set "+t+" in localStorage, storage may be full.")}},i.remove=function(e){vart;null!=(t=this.store)&&t.removeItem(e)},i.store=function(){try{vare="__test_localStorage__";returnglobalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),globalThis.localStorage}catch(e){}}();varr="AlgoliaObjectQueryCache",o=5e3,a=1e3;functionv(){vare;returnnull!=(e=i.get(r))?e:{}}functiong(e){i.set(r,(e=e,Object.keys(e).length>o?function(e){e=Object.entries(e).sort(function(e,t){e=e[1][1];returnt[1][1]-e});returne.slice(0,e.length-a-1).reduce(function(e,t){varn=t[0],t=t[1];returnObject.assign(Object.assign({},e),((e={})[n]=t,e))},{})}(e):e))}functionp(e,t){returne+"_"+t}functionu(e,t,n){vari=v();i[p(e,t)]=[n,Date.now()],g(i)}functionb(e){returnvoid0===e}functionc(e){return"number"==typeofe}functionh(e){return"function"==typeofe}functionk(e){return"function"==typeof(null==e?void0:e.then)}functionl(e){varn,i,t=e.AlgoliaAnalyticsObject;t&&(i=this,n=function(e){for(vart=[],n=arguments.length-1;0<n--;)t[n]=arguments[n+1];if(e&&h(i[e]))returni[e].apply(i,t);console.warn("The method `"+e+"` doesn't exist.")},(e=e[t]).queue=e.queue||[],(t=e.queue).forEach(function(e){vare=[].slice.call(e),t=e[0],e=e.slice(1);n.apply(void0,[t].concat(e))}),t.push=function(e){vare=[].slice.call(e),t=e[0],e=e.slice(1);n.apply(void0,[t].concat(e))})}vard=["insights-js ("+t+")","insights-js-browser-iife ("+t+")"];functiony(e,t){varn={};for(rine)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeofObject.getOwnPropertySymbols)for(vari=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);returnn}functionT(e){returne.map(function(r){varo,e;return(e=r).queryID||"conversion"!==e.eventType||(o=[],e=null==(e=r.objectIDs)?void0:e.map(function(e,t){varn,i=null==(i=r.objectData)?void0:i[t];returnnull!=i&&i.queryID?i:((n=(null!==(t=r.index,n=e,t=v()[p(t,n)])&&void0!==t?t:[])[0])&&o.push(e),Object.assign(Object.assign({},i),{queryID:n}))}),0===o.length)?r:Object.assign(Object.assign({},r),{objectData:e,objectIDsWithInferredQueryID:o})})}functionf(f){returnfunction(e,t){vari=this;if(this._userHasOptedOut)returnPromise.resolve(!1);if(!(!b(this._apiKey)&&!b(this._appId)||(null==(d=null==t?void0:t.headers)?void0:d["X-Algolia-Application-Id"])&&(null==(d=null==t?void0:t.headers)?void0:d["X-Algolia-API-Key"])))thrownewError("Before calling any methods on the analytics, you first need to call the 'init' function with appId and apiKey parameters or provide custom credentials in additional parameters.");!this._userToken&&this._anonymousUserToken&&this.setAnonymousUserToken(!0);varn,r,o,s,a,u,c,h,l,d=(null!=t&&t.inferQueryID?T(e):e).map(function(e){vart=e.filters,n=y(e,["filters"]),e=Object.assign(Object.assign({},n),{userToken:null!=(n=null==e?void0:e.userToken)?n:i._userToken,authenticatedUserToken:null!=(n=null==e?void0:e.authenticatedUserToken)?n:i._authenticatedUserToken});returnb(t)||(e.filters=t.map(encodeURIComponent)),e});return0===d.length?Promise.resolve(!1):(e=f,n=this._ua,r=this._endpointOrigin,o=d,s=this._appId,a=this._apiKey,t=null==t?void0:t.headers,u=(t=void0===t?{}:t)["X-Algolia-Application-Id"],c=t["X-Algolia-API-Key"],t=y(t,["X-Algolia-Application-Id","X-Algolia-API-Key"]),h=Object.assign({"X-Algolia-Application-Id":null!=u?u:s,"X-Algolia-API-Key":null!=c?c:a,"X-Al