/**
 * Minified by jsDelivr using Terser v5.48.0.
 * Original file: /npm/@algolia/abtesting@1.25.0/dist/builds/browser.umd.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@algolia/abtesting"]={})}(this,function(e){"use strict";function t(e){let t,r=`algolia-client-js-${e.key}`;function s(){return void 0===t&&(t=e.localStorage||window.localStorage),t}function a(){return JSON.parse(s().getItem(r)||"{}")}function i(){return new Promise(e=>setTimeout(e,0))}return{get:(t,n,o={miss:()=>Promise.resolve()})=>i().then(()=>{let{namespace:i,changed:l}=function(){let t=e.timeToLive?1e3*e.timeToLive:null,r=a(),s=(new Date).getTime(),i=!1;return{namespace:Object.fromEntries(Object.entries(r).filter(([,e])=>!(!e||void 0===e.timestamp||t&&e.timestamp+t<s)||(i=!0,!1))),changed:i}}(),u=i[JSON.stringify(t)];return l&&function(e){s().setItem(r,JSON.stringify(e))}(i),u?u.value:n().then(e=>o.miss(e).then(()=>e))}),set:(e,t)=>i().then(()=>{let i=a();return i[JSON.stringify(e)]={timestamp:(new Date).getTime(),value:t},s().setItem(r,JSON.stringify(i)),t}),delete:e=>i().then(()=>{let t=a();delete t[JSON.stringify(e)],s().setItem(r,JSON.stringify(t))}),clear:()=>Promise.resolve().then(()=>{s().removeItem(r)})}}function r(e){let t=[...e.caches],s=t.shift();return void 0===s?{get:(e,t,r={miss:()=>Promise.resolve()})=>t().then(e=>Promise.all([e,r.miss(e)])).then(([e])=>e),set:(e,t)=>Promise.resolve(t),delete:e=>Promise.resolve(),clear:()=>Promise.resolve()}:{get:(e,a,i={miss:()=>Promise.resolve()})=>s.get(e,a,i).catch(()=>r({caches:t}).get(e,a,i)),set:(e,a)=>s.set(e,a).catch(()=>r({caches:t}).set(e,a)),delete:e=>s.delete(e).catch(()=>r({caches:t}).delete(e)),clear:()=>s.clear().catch(()=>r({caches:t}).clear())}}function s(e={serializable:!0}){let t={};return{get(r,s,a={miss:()=>Promise.resolve()}){let i=JSON.stringify(r);if(i in t)return Promise.resolve(e.serializable?JSON.parse(t[i]):t[i]);let n=s();return n.then(e=>a.miss(e)).then(()=>n)},set:(r,s)=>(t[JSON.stringify(r)]=e.serializable?JSON.stringify(s):s,Promise.resolve(s)),delete:e=>(delete t[JSON.stringify(e)],Promise.resolve()),clear:()=>(t={},Promise.resolve())}}function a({algoliaAgents:e,client:t,version:r}){let s=function(e){let t={value:`Algolia for JavaScript (${e})`,add(e){let r=`; ${e.segment}${void 0!==e.version?` (${e.version})`:""}`;return-1===t.value.indexOf(r)&&(t.value=`${t.value}${r}`),t}};return t}(r).add({segment:t,version:r});return e.forEach(e=>s.add(e)),s}async function*i(e){let t=new TextDecoder("utf-8"),r=[],s=0,a=!1,i=!0;for await(let n of function(e){return Symbol.asyncIterator in e?e:async function*(e){let t=e.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)return;yield r}}finally{t.releaseLock()}}(e)}(e)){let e=t.decode(n,{stream:!0}),o=0;for(a&&(a=!1,e.length>0&&"\n"===e[0]&&(o=1));o<e.length;){let t,n,l=e.indexOf("\r",o),u=e.indexOf("\n",o);if(-1===l&&-1===u){let t=e.slice(o);if(r.push(t),s+=t.length,s>10485760)throw new Error("SSE line buffer exceeded 10MB");break}-1!==l&&(-1===u||l<u)?(t=l,l+1<e.length?n="\n"===e[l+1]?2:1:(a=!0,n=1)):(t=u,n=1);let d=e.slice(o,t);r.push(d);let c=1===r.length?r[0]:r.join("");r.length=0,s=0,i&&(c.startsWith("\ufeff")&&(c=c.slice(1)),i=!1),yield c,o=t+n}}let n=t.decode();if(n&&r.push(n),r.length>0){let e=r.join("");i&&e.startsWith("\ufeff")&&(e=e.slice(1)),yield e}}var n=class{data=[];eventType="";lastEventId=null;retry=null;decode(e){if(""===e)return this.dispatch();if(":"===e[0])return null;let t,r,s=e.indexOf(":");switch(-1===s?(t=e,r=""):(t=e.slice(0,s),r=e.slice(s+1)," "===r[0]&&(r=r.slice(1))),t){case"data":this.data.push(r);break;case"event":this.eventType=r;break;case"id":r.includes("\0")||(this.lastEventId=r);break;case"retry":/^[0-9]+$/.test(r)&&(this.retry=parseInt(r,10))}return null}dispatch(){let e=this.eventType;if(this.eventType="",0===this.data.length)return null;let t={data:this.data.join("\n"),event:e,id:this.lastEventId,retry:this.retry};return this.data=[],t}};async function*o(e){let t=new n;for await(let r of i(e)){let e=t.decode(r);null!==e&&(yield e)}}var l=12e4;function u(e,t="up"){let r=Date.now();return{...e,status:t,lastUpdate:r,isUp:function(){return"up"===t||Date.now()-r>l},isTimedOut:function(){return"timed out"===t&&Date.now()-r<=l}}}var d=class extends Error{name="AlgoliaError";constructor(e,t){super(e),t&&(this.name=t)}},c=class extends d{stackTrace;correlationId;constructor(e,t,r,s){super(s?`${e} (Correlation-ID: ${s})`:e,r),this.stackTrace=t,this.correlationId=s}},h=class extends c{constructor(e,t){super("Unreachable hosts - your application id may be incorrect. If the error persists, please visit our help center https://alg.li/support-unreachable-hosts or reach out to the Algolia Support team: https://alg.li/support",e,"RetryError",t)}},m=class extends c{status;constructor(e,t,r,s="ApiError",a){super(e,r,s,a),this.status=t}},p=class extends d{response;correlationId;constructor(e,t,r){super(r?`${e} (Correlation-ID: ${r})`:e,"DeserializationError"),this.response=t,this.correlationId=r}},f=class extends m{error;constructor(e,t,r,s,a){super(e,t,s,"DetailedApiError",a),this.error=r}};function T(e,t,r){let s=function(e){return Object.keys(e).filter(t=>void 0!==e[t]).sort().map(t=>`${t}=${encodeURIComponent("[object Array]"===Object.prototype.toString.call(e[t])?e[t].join(","):e[t]).replace(/\+/g,"%20")}`).join("&")}(r),a=`${e.protocol}://${e.url}${e.port?`:${e.port}`:""}/${"/"===t.charAt(0)?t.substring(1):t}`;return s.length&&(a+=`?${s}`),a}function g(e,t){if("GET"===e.method||void 0===e.data&&void 0===t.data)return;let r=Array.isArray(e.data)?e.data:{...e.data,...t.data};return JSON.stringify(r)}function y(e,t,r){let s={Accept:"application/json",...e,...t,...r},a={};return Object.keys(s).forEach(e=>{let t=s[e];a[e.toLowerCase()]=t}),a}function P(e){if(204!==e.status&&0!==e.content.length)try{return JSON.parse(e.content)}catch(t){throw new p(t.message,e,v(e.headers))}}function v(e){if(!e)return;if(void 0!==e["correlation-id"])return e["correlation-id"];let t=Object.keys(e).find(e=>"correlation-id"===e.toLowerCase());return void 0===t?void 0:e[t]}var q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";function b(){var e;let t="";if("function"==typeof(null==(e=globalThis.crypto)?void 0:e.getRandomValues)){let e=new Uint8Array(11);globalThis.crypto.getRandomValues(e);for(let r of e)t+=q[r%62];return t}for(let e=0;e<11;e++)t+=q[Math.floor(62*Math.random())];return t}function A({status:e}){return 429===~~e}var I=/^HTTP 429(?:\D|$)/;function w(e){return"object"==typeof e&&null!==e&&"status"in e?A(e):e instanceof Error&&I.test(e.message)}function S(e){if("object"==typeof e&&null!==e&&"headers"in e)return e.headers}function O(e){var t;let r=null==(t=e?.["retry-after"])?void 0:t.trim();if(void 0===r||0===r.length||!/^\d+$/.test(r))return 1e3;let s=Number.parseInt(r,10);return s<=0?1e3:1e3*s}function B(e){let t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...e,request:{...e.request,headers:{...e.request.headers,...t}}}}function E({hosts:e,hostsCache:t,baseHeaders:r,logger:s,baseQueryParameters:a,algoliaAgent:i,timeouts:n,requester:l,requestsCache:d,responsesCache:c,compress:p,compression:q,requestIdChannel:I,maxRateLimitRetries:E=3}){function H(e,t){void 0===I||void 0!==e["request-id"]||Object.keys(t).some(e=>"x-algolia-request-id"===e.toLowerCase())||("headers"===I?e["request-id"]=b():t["x-algolia-request-id"]=b())}let W=e=>new Promise(t=>{setTimeout(t,e)});async function x(e){let r=await Promise.all(e.map(e=>t.get(e,()=>Promise.resolve(u(e))))),s=r.filter(e=>e.isUp()),a=r.filter(e=>e.isTimedOut()),i=[...s,...a];return{hosts:i.length>0?i:e,getTimeout:(e,t)=>(0===a.length&&0===e?1:a.length+3+e)*t}}async function R(o,d,c){let P=[],b=g(o,d),I=y(r,o.headers,d.headers),w="gzip"===q&&void 0!==b&&b.length>750&&("POST"===o.method||"PUT"===o.method);w&&void 0===p&&s.info("Compression is disabled because no compress method is available.");let S=w&&void 0!==p,R=S?await p(b):b;S&&(I["content-encoding"]="gzip");let C="GET"===o.method?{...o.data,...d.data}:{},j={...a,...o.queryParameters,...C};if(i.value&&(j["x-algolia-agent"]=i.value),d&&d.queryParameters)for(let e of Object.keys(d.queryParameters))d.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(d.queryParameters[e])?j[e]=d.queryParameters[e].toString():j[e]=d.queryParameters[e];H(I,j);let D=0,$=E,k=async(e,r)=>{let a=e.pop();if(void 0===a)throw new h(function(e){return e.map(e=>B(e))}(P),function(e){for(let t=e.length-1;t>=0;t--){let r=v(e[t].response.headers);if(void 0!==r)return r}}(P));let i={...n,...d.timeouts},p={data:R,headers:I,method:o.method,url:T(a,o.path,j),connectTimeout:r(D,i.connect),responseTimeout:r(D,c?i.read:i.write)},g=t=>{let r={request:p,response:t,host:a,triesLeft:e.length};return P.push(r),r},y=await l.send(p);if(A(y)&&$>0){$--,e.push(a);let t=g(y),i=O(y.headers);return s.info("Retryable failure",{...B(t),wait:i,rateLimitRetriesLeft:$}),await W(i),k(e,r)}if(function({isTimedOut:e,status:t}){return e||function({isTimedOut:e,status:t}){return!e&&0===~~t}({isTimedOut:e,status:t})||2!=~~(t/100)&&4!=~~(t/100)}(y)){let i=g(y);return y.isTimedOut&&D++,s.info("Retryable failure",B(i)),await t.set(a,u(a,y.isTimedOut?"timed out":"down")),k(e,r)}if(function({status:e}){return 2==~~(e/100)}(y))return y;throw g(y),function(e,t){let{content:r,status:s}=e,a=v(e.headers);try{let e=JSON.parse(r);return"error"in e?new f(e.message,s,e.error,t,a):new m(e.message,s,t,"ApiError",a)}catch{}return new m(r,s,t,"ApiError",a)}(y,P)},L=e.filter(e=>"readWrite"===e.accept||(c?"read"===e.accept:"write"===e.accept)),G=await x(L);return k([...G.hosts].reverse(),G.getTimeout)}return{hostsCache:t,requester:l,timeouts:n,logger:s,algoliaAgent:i,baseHeaders:r,baseQueryParameters:a,requestIdChannel:I,hosts:e,maxRateLimitRetries:E,request:function(e,t={}){let s=()=>R(e,t,i).then(e=>P(e)),i=e.useReadTransporter||"GET"===e.method;if(!0!==(t.cacheable||e.cacheable))return s();let n={request:e,requestOptions:t,transporter:{queryParameters:a,headers:r}};return c.get(n,()=>d.get(n,()=>d.set(n,s()).then(e=>Promise.all([d.delete(n),e]),e=>Promise.all([d.delete(n),Promise.reject(e)])).then(([e,t])=>t)),{miss:e=>c.set(n,e)})},requestWithHttpInfo:function(e,t={}){return R(e,t,e.useReadTransporter||"GET"===e.method).then(e=>function(e){return{status:e.status,headers:e.headers,content:e.content,data:P(e)}}(e))},requestStream:async function*(t,u={}){if(!l.sendStream)throw new Error("This requester does not support streaming");let d=g(t,u),c=y(r,t.headers,u.headers);c.accept="text/event-stream";let m="GET"===t.method?{...t.data,...u.data}:{},p={...a,...t.queryParameters,...m};if(i.value&&(p["x-algolia-agent"]=i.value),u&&u.queryParameters)for(let e of Object.keys(u.queryParameters))u.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(u.queryParameters[e])?p[e]=u.queryParameters[e].toString():p[e]=u.queryParameters[e];H(c,p);let f=t.useReadTransporter||"GET"===t.method,P=e.filter(e=>"readWrite"===e.accept||(f?"read"===e.accept:"write"===e.accept)),v=(await x(P)).hosts[0];if(!v)throw new h([]);let q={...n,...u.timeouts},b={data:d,headers:c,method:t.method,url:T(v,t.path,p),connectTimeout:q.connect,responseTimeout:f?q.read:q.write},A=E;for(;;){let e;try{e=await l.sendStream(b)}catch(e){if(w(e)&&A>0){A--;let t=O(S(e));s.info("Retryable failure",{wait:t,rateLimitRetriesLeft:A,host:v}),await W(t);continue}throw e}return void(yield*o(e))}},requestsCache:d,responsesCache:c}}function H(e,t,r){if(null==r||"string"==typeof r&&0===r.length)throw new Error(`Parameter \`${e}\` is required when calling \`${t}\`.`)}function W(e){let t={};for(let r of e.trim().split(/[\r\n]+/)){let e=r.indexOf(": ");e>0&&(t[r.slice(0,e).toLowerCase()]=r.slice(e+2))}return t}var x="1.25.0",R=["de","us"];function C(e){return[{url:e?"analytics.{region}.algolia.com".replace("{region}",e):"analytics.algolia.com",accept:"readWrite",protocol:"https"}]}e.abtestingV3Client=function(e,i,n,o){if(!e||"string"!=typeof e)throw new Error("`appId` is missing.");if(!i||"string"!=typeof i)throw new Error("`apiKey` is missing.");if(n&&("string"!=typeof n||!R.includes(n)))throw new Error(`\`region\` must be one of the following: ${R.join(", ")}`);let{compression:l,...u}=o||{};return function({appId:e,apiKey:t,authMode:r,algoliaAgents:s,region:i,...n}){let o=function(e,t,r="WithinHeaders"){let s={"x-algolia-api-key":t,"x-algolia-application-id":e};return{headers:()=>"WithinHeaders"===r?s:{},queryParameters:()=>"WithinQueryParameters"===r?s:{}}}(e,t,r),l=E({hosts:C(i),...n,algoliaAgent:a({algoliaAgents:s,client:"AbtestingV3",version:x}),baseHeaders:{"content-type":"text/plain",...o.headers(),...n.baseHeaders},baseQueryParameters:{...o.queryParameters(),...n.baseQueryParameters}});return{transporter:l,appId:e,apiKey:t,clearCache:()=>Promise.all([l.requestsCache.clear(),l.responsesCache.clear()]).then(()=>{}),get _ua(){return l.algoliaAgent.value},addAlgoliaAgent(e,t){l.algoliaAgent.add({segment:e,version:t})},setClientApiKey({apiKey:e}){r&&"WithinHeaders"!==r?l.baseQueryParameters["x-algolia-api-key"]=e:l.baseHeaders["x-algolia-api-key"]=e},addABTests(e,t){H("addABTestsRequest","addABTests",e),H("addABTestsRequest.name","addABTests",e.name),H("addABTestsRequest.variants","addABTests",e.variants),H("addABTestsRequest.metrics","addABTests",e.metrics),H("addABTestsRequest.endAt","addABTests",e.endAt);let r={method:"POST",path:"/3/abtests",queryParameters:{},headers:{},data:e};return l.request(r,t)},addABTestsWithHTTPInfo(e,t){H("addABTestsRequest","addABTestsWithHTTPInfo",e),H("addABTestsRequest.name","addABTestsWithHTTPInfo",e.name),H("addABTestsRequest.variants","addABTestsWithHTTPInfo",e.variants),H("addABTestsRequest.metrics","addABTestsWithHTTPInfo",e.metrics),H("addABTestsRequest.endAt","addABTestsWithHTTPInfo",e.endAt);let r={method:"POST",path:"/3/abtests",queryParameters:{},headers:{},data:e};return l.requestWithHttpInfo(r,t)},customDelete({path:e,parameters:t},r){H("path","customDelete",e);let s={method:"DELETE",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return l.request(s,r)},customDeleteWithHTTPInfo({path:e,parameters:t},r){H("path","customDeleteWithHTTPInfo",e);let s={method:"DELETE",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return l.requestWithHttpInfo(s,r)},customGet({path:e,parameters:t},r){H("path","customGet",e);let s={method:"GET",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return l.request(s,r)},customGetWithHTTPInfo({path:e,parameters:t},r){H("path","customGetWithHTTPInfo",e);let s={method:"GET",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return l.requestWithHttpInfo(s,r)},customPost({path:e,parameters:t,body:r},s){H("path","customPost",e);let a={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return l.request(a,s)},customPostWithHTTPInfo({path:e,parameters:t,body:r},s){H("path","customPostWithHTTPInfo",e);let a={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return l.requestWithHttpInfo(a,s)},customPut({path:e,parameters:t,body:r},s){H("path","customPut",e);let a={method:"PUT",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return l.request(a,s)},customPutWithHTTPInfo({path:e,parameters:t,body:r},s){H("path","customPutWithHTTPInfo",e);let a={method:"PUT",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return l.requestWithHttpInfo(a,s)},deleteABTest({id:e},t){H("id","deleteABTest",e);let r={method:"DELETE",path:"/3/abtests/{id}".replace("{id}",encodeURIComponent(e)),queryParameters:{},headers:{}};return l.request(r,t)},deleteABTestWithHTTPInfo({id:e},t){H("id","deleteABTestWithHTTPInfo",e);let r={method:"DELETE",path:"/3/abtests/{id}".replace("{id}",encodeURIComponent(e)),queryParameters:{},headers:{}};return l.requestWithHttpInfo(r,t)},estimateABTest(e,t){H("estimateABTestRequest","estimateABTest",e),H("estimateABTestRequest.configuration","estimateABTest",e.configuration),H("estimateABTestRequest.variants","estimateABTest",e.variants);let r={method:"POST",path:"/3/abtests/estimate",queryParameters:{},headers:{},data:e};return l.request(r,t)},estimateABTestWithHTTPInfo(e,t){H("estimateABTestRequest","estimateABTestWithHTTPInfo",e),H("estimateABTestRequest.configuration","estimateABTestWithHTTPInfo",e.configuration),H("estimateABTestRequest.variants","estimateABTestWithHTTPInfo",e.variants);let r={method:"POST",path:"/3/abtests/estimate",queryParameters:{},headers:{},data:e};return l.requestWithHttpInfo(r,t)},getABTest({id:e},t){H("id","getABTest",e);let r={method:"GET",path:"/3/abtests/{id}".replace("{id}",encodeURIComponent(e)),queryParameters:{},headers:{}};return l.request(r,t)},getABTestWithHTTPInfo({id:e},t){H("id","getABTestWithHTTPInfo",e);let r={method:"GET",path:"/3/abtests/{id}".replace("{id}",encodeURIComponent(e)),queryParameters:{},headers:{}};return l.requestWithHttpInfo(r,t)},getTimeseries({id:e,startDate:t,endDate:r,metric:s},a){H("id","getTimeseries",e);let i="/3/abtests/{id}/timeseries".replace("{id}",encodeURIComponent(e)),n={};void 0!==t&&(n.startDate=t.toString()),void 0!==r&&(n.endDate=r.toString()),void 0!==s&&(n.metric=s.toString());let o={method:"GET",path:i,queryParameters:n,headers:{}};return l.request(o,a)},getTimeseriesWithHTTPInfo({id:e,startDate:t,endDate:r,metric:s},a){H("id","getTimeseriesWithHTTPInfo",e);let i="/3/abtests/{id}/timeseries".replace("{id}",encodeURIComponent(e)),n={};void 0!==t&&(n.startDate=t.toString()),void 0!==r&&(n.endDate=r.toString()),void 0!==s&&(n.metric=s.toString());let o={method:"GET",path:i,queryParameters:n,headers:{}};return l.requestWithHttpInfo(o,a)},listABTests({offset:e,limit:t,indexPrefix:r,indexSuffix:s,direction:a}={},i=void 0){let n={};void 0!==e&&(n.offset=e.toString()),void 0!==t&&(n.limit=t.toString()),void 0!==r&&(n.indexPrefix=r.toString()),void 0!==s&&(n.indexSuffix=s.toString()),void 0!==a&&(n.direction=a.toString());let o={method:"GET",path:"/3/abtests",queryParameters:n,headers:{}};return l.request(o,i)},listABTestsWithHTTPInfo({offset:e,limit:t,indexPrefix:r,indexSuffix:s,direction:a}={},i=void 0){let n={};void 0!==e&&(n.offset=e.toString()),void 0!==t&&(n.limit=t.toString()),void 0!==r&&(n.indexPrefix=r.toString()),void 0!==s&&(n.indexSuffix=s.toString()),void 0!==a&&(n.direction=a.toString());let o={method:"GET",path:"/3/abtests",queryParameters:n,headers:{}};return l.requestWithHttpInfo(o,i)},stopABTest({id:e},t){H("id","stopABTest",e);let r={method:"POST",path:"/3/abtests/{id}/stop".replace("{id}",encodeURIComponent(e)),queryParameters:{},headers:{}};return l.request(r,t)},stopABTestWithHTTPInfo({id:e},t){H("id","stopABTestWithHTTPInfo",e);let r={method:"POST",path:"/3/abtests/{id}/stop".replace("{id}",encodeURIComponent(e)),queryParameters:{},headers:{}};return l.requestWithHttpInfo(r,t)}}}({appId:e,apiKey:i,region:n,timeouts:{connect:1e3,read:2e3,write:3e4},logger:{debug:(e,t)=>Promise.resolve(),info:(e,t)=>Promise.resolve(),error:(e,t)=>Promise.resolve()},requester:{send:function(e){return new Promise(t=>{let r=new XMLHttpRequest;r.open(e.method,e.url,!0),Object.keys(e.headers).forEach(t=>r.setRequestHeader(t,e.headers[t]));let s,a=(e,s)=>setTimeout(()=>{r.abort(),t({status:0,content:s,isTimedOut:!0})},e),i=a(e.connectTimeout,"Connection timeout");r.onreadystatechange=()=>{r.readyState>r.OPENED&&void 0===s&&(clearTimeout(i),s=a(e.responseTimeout,"Socket timeout"))},r.onerror=()=>{0===r.status&&(clearTimeout(i),clearTimeout(s),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=()=>{clearTimeout(i),clearTimeout(s),t({content:r.responseText,headers:W(r.getAllResponseHeaders()),status:r.status,isTimedOut:!1})},r.send(e.data)})}},algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:s(),requestsCache:s({serializable:!1}),hostsCache:r({caches:[t({key:`${x}-${e}`}),s()]}),...u})},e.apiClientVersion=x});
//# sourceMappingURL=/sm/9e533581db62889116a20efb54c05116cbfef2b40a236d6ca5c3add2afcee6f1.map