1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[275],{59666:(e,r,t)=>{"use strict";function a(e={serializable:!0}){let r={};return{get(t,a,n={miss:()=>Promise.resolve()}){let o=JSON.stringify(t);if(o in r)return Promise.resolve(e.serializable?JSON.parse(r[o]):r[o]);let s=a();return s.then(e=>n.miss(e)).then(()=>s)},set:(t,a)=>(r[JSON.stringify(t)]=e.serializable?JSON.stringify(a):a,Promise.resolve(a)),delete:e=>(delete r[JSON.stringify(e)],Promise.resolve()),clear:()=>(r={},Promise.resolve())}}function n(e,r="up"){let t=Date.now();return{...e,status:r,lastUpdate:t,isUp:function(){return"up"===r||Date.now()-t>12e4},isTimedOut:function(){return"timed out"===r&&Date.now()-t<=12e4}}}t.r(r),t.d(r,{apiClientVersion:()=>h,monitoringClient:()=>m});var o=class extends Error{name="AlgoliaError";constructor(e,r){super(e),r&&(this.name=r)}},s=class extends o{stackTrace;constructor(e,r,t){super(e,t),this.stackTrace=r}},i=class extends s{constructor(e){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")}},u=class extends s{status;constructor(e,r,t,a="ApiError"){super(e,t,a),this.status=r}},c=class extends o{response;constructor(e,r){super(e,"DeserializationError"),this.response=r}},l=class extends u{error;constructor(e,r,t,a){super(e,r,a,"DetailedApiError"),this.error=t}};function d(e){let r=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...e,request:{...e.request,headers:{...e.request.headers,...r}}}}var h="1.50.0";function m(e,r,t){if(!e||"string"!=typeof e)throw Error("`appId` is missing.");if(!r||"string"!=typeof r)throw Error("`apiKey` is missing.");let{compression:o,...s}=t||{};return function({appId:e,apiKey:r,authMode:t,algoliaAgents:a,...o}){let s=function(e,r,t="WithinHeaders"){let a={"x-algolia-api-key":r,"x-algolia-application-id":e};return{headers:()=>"WithinHeaders"===t?a:{},queryParameters:()=>"WithinQueryParameters"===t?a:{}}}(e,r,t),m=function({hosts:e,hostsCache:r,baseHeaders:t,logger:a,baseQueryParameters:o,algoliaAgent:s,timeouts:h,requester:m,requestsCache:p,responsesCache:g,compress:f,compression:P}){async function w(e){let t=await Promise.all(e.map(e=>r.get(e,()=>Promise.resolve(n(e))))),a=t.filter(e=>e.isUp()),o=t.filter(e=>e.isTimedOut()),s=[...a,...o];return{hosts:s.length>0?s:e,getTimeout:(e,r)=>(0===o.length&&0===e?1:o.length+3+e)*r}}async function q(p,g,q){let y=[],v=function(e,r){if("GET"!==e.method&&(void 0!==e.data||void 0!==r.data))return JSON.stringify(Array.isArray(e.data)?e.data:{...e.data,...r.data})}(p,g),T=function(e,r,t){let a={Accept:"application/json",...e,...r,...t},n={};return Object.keys(a).forEach(e=>{let r=a[e];n[e.toLowerCase()]=r}),n}(t,p.headers,g.headers),I="gzip"===P&&void 0!==v&&v.length>750&&("POST"===p.method||"PUT"===p.method);I&&void 0===f&&a.info("Compression is disabled because no compress method is available.");let E=I&&void 0!==f,S=E?await f(v):v;E&&(T["content-encoding"]="gzip");let D="GET"===p.method?{...p.data,...g.data}:{},k={...o,...p.queryParameters,...D};if(s.value&&(k["x-algolia-agent"]=s.value),g&&g.queryParameters)for(let e of Object.keys(g.queryParameters))g.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(g.queryParameters[e])?k[e]=g.queryParameters[e].toString():k[e]=g.queryParameters[e];let b=0,O=async(e,t)=>{let o=e.pop();if(void 0===o)throw new i(y.map(e=>d(e)));let s={...h,...g.timeouts},f={data:S,headers:T,method:p.method,url:function(e,r,t){var a;let n=Object.keys(a=t).filter(e=>void 0!==a[e]).sort().map(e=>`${e}=${encodeURIComponent("[object Array]"===Object.prototype.toString.call(a[e])?a[e].join(","):a[e]).replace(/\+/g,"%20")}`).join("&"),o=`${e.protocol}://${e.url}${e.port?`:${e.port}`:""}/${"/"===r.charAt(0)?r.substring(1):r}`;return n.length&&(o+=`?${n}`),o}(o,p.path,k),connectTimeout:t(b,s.connect),responseTimeout:t(b,q?s.read:s.write)},P=r=>{let t={request:f,response:r,host:o,triesLeft:e.length};return y.push(t),t},w=await m.send(f);if(function({isTimedOut:e,status:r}){return e||function({isTimedOut:e,status:r}){return!e&&0==~~r}({isTimedOut:e,status:r})||2!=~~(r/100)&&4!=~~(r/100)}(w)){let s=P(w);return w.isTimedOut&&b++,a.info("Retryable failure",d(s)),await r.set(o,n(o,w.isTimedOut?"timed out":"down")),O(e,t)}if(function({status:e}){return 2==~~(e/100)}(w))try{return JSON.parse(w.content)}catch(e){throw new c(e.message,w)}throw P(w),function({content:e,status:r},t){try{let a=JSON.parse(e);if("error"in a)return new l(a.message,r,a.error,t);return new u(a.message,r,t)}catch{}return new u(e,r,t)}(w,y)},C=e.filter(e=>"readWrite"===e.accept||(q?"read"===e.accept:"write"===e.accept)),R=await w(C);return O([...R.hosts].reverse(),R.getTimeout)}return{hostsCache:r,requester:m,timeouts:h,logger:a,algoliaAgent:s,baseHeaders:t,baseQueryParameters:o,hosts:e,request:function(e,r={}){let a=()=>q(e,r,n),n=e.useReadTransporter||"GET"===e.method;if(!0!==(r.cacheable||e.cacheable))return a();let s={request:e,requestOptions:r,transporter:{queryParameters:o,headers:t}};return g.get(s,()=>p.get(s,()=>p.set(s,a()).then(e=>Promise.all([p.delete(s),e]),e=>Promise.all([p.delete(s),Promise.reject(e)])).then(([e,r])=>r)),{miss:e=>g.set(s,e)})},requestsCache:p,responsesCache:g}}({hosts:[{url:"status.algolia.com",accept:"readWrite",protocol:"https"}],...o,algoliaAgent:function({algoliaAgents:e,client:r,version:t}){let a=(function(e){let r={value:`Algolia for JavaScript (${e})`,add(e){let t=`; ${e.segment}${void 0!==e.version?` (${e.version})`:""}`;return -1===r.value.indexOf(t)&&(r.value=`${r.value}${t}`),r}};return r})(t).add({segment:r,version:t});
1return e.forEach(e=>a.add(e)),a}({algoliaAgents:a,client:"Monitoring",version:h}),baseHeaders:{"content-type":"text/plain",...s.headers(),...o.baseHeaders},baseQueryParameters:{...s.queryParameters(),...o.baseQueryParameters}});return{transporter:m,appId:e,apiKey:r,clearCache:()=>Promise.all([m.requestsCache.clear(),m.responsesCache.clear()]).then(()=>void 0),get _ua(){return m.algoliaAgent.value},addAlgoliaAgent(e,r){m.algoliaAgent.add({segment:e,version:r})},setClientApiKey({apiKey:e}){t&&"WithinHeaders"!==t?m.baseQueryParameters["x-algolia-api-key"]=e:m.baseHeaders["x-algolia-api-key"]=e},customDelete({path:e,parameters:r},t){if(!e)throw Error("Parameter `path` is required when calling `customDelete`.");let a="/{path}".replace("{path}",e);return m.request({method:"DELETE",path:a,queryParameters:r||{},headers:{}},t)},customGet({path:e,parameters:r},t){if(!e)throw Error("Parameter `path` is required when calling `customGet`.");let a="/{path}".replace("{path}",e);return m.request({method:"GET",path:a,queryParameters:r||{},headers:{}},t)},customPost({path:e,parameters:r,body:t},a){if(!e)throw Error("Parameter `path` is required when calling `customPost`.");let n="/{path}".replace("{path}",e);return m.request({method:"POST",path:n,queryParameters:r||{},headers:{},data:t||{}},a)},customPut({path:e,parameters:r,body:t},a){if(!e)throw Error("Parameter `path` is required when calling `customPut`.");let n="/{path}".replace("{path}",e);return m.request({method:"PUT",path:n,queryParameters:r||{},headers:{},data:t||{}},a)},getClusterIncidents({clusters:e},r){if(!e)throw Error("Parameter `clusters` is required when calling `getClusterIncidents`.");let t="/1/incidents/{clusters}".replace("{clusters}",encodeURIComponent(e));return m.request({method:"GET",path:t,queryParameters:{},headers:{}},r)},getClusterStatus({clusters:e},r){if(!e)throw Error("Parameter `clusters` is required when calling `getClusterStatus`.");let t="/1/status/{clusters}".replace("{clusters}",encodeURIComponent(e));return m.request({method:"GET",path:t,queryParameters:{},headers:{}},r)},getIncidents:e=>m.request({method:"GET",path:"/1/incidents",queryParameters:{},headers:{}},e),getIndexingTime({clusters:e},r){if(!e)throw Error("Parameter `clusters` is required when calling `getIndexingTime`.");let t="/1/indexing/{clusters}".replace("{clusters}",encodeURIComponent(e));return m.request({method:"GET",path:t,queryParameters:{},headers:{}},r)},getLatency({clusters:e},r){if(!e)throw Error("Parameter `clusters` is required when calling `getLatency`.");let t="/1/latency/{clusters}".replace("{clusters}",encodeURIComponent(e));return m.request({method:"GET",path:t,queryParameters:{},headers:{}},r)},getMetrics({metric:e,period:r},t){if(!e)throw Error("Parameter `metric` is required when calling `getMetrics`.");if(!r)throw Error("Parameter `period` is required when calling `getMetrics`.");let a="/1/infrastructure/{metric}/period/{period}".replace("{metric}",encodeURIComponent(e)).replace("{period}",encodeURIComponent(r));return m.request({method:"GET",path:a,queryParameters:{},headers:{}},t)},getReachability({clusters:e},r){if(!e)throw Error("Parameter `clusters` is required when calling `getReachability`.");let t="/1/reachability/{clusters}/probes".replace("{clusters}",encodeURIComponent(e));return m.request({method:"GET",path:t,queryParameters:{},headers:{}},r)},getServers:e=>m.request({method:"GET",path:"/1/inventory/servers",queryParameters:{},headers:{}},e),getStatus:e=>m.request({method:"GET",path:"/1/status",queryParameters:{},headers:{}},e)}}({appId:e,apiKey:r,timeouts:{connect:1e3,read:2e3,write:3e4},logger:{debug:(e,r)=>Promise.resolve(),info:(e,r)=>Promise.resolve(),error:(e,r)=>Promise.resolve()},requester:{send:function(e){return new Promise(r=>{let t=new XMLHttpRequest;t.open(e.method,e.url,!0),Object.keys(e.headers).forEach(r=>t.setRequestHeader(r,e.headers[r]));let a=(e,a)=>setTimeout(()=>{t.abort(),r({status:0,content:a,isTimedOut:!0})},e),n=a(e.connectTimeout,"Connection timeout"),o;t.onreadystatechange=()=>{t.readyState>t.OPENED&&void 0===o&&(clearTimeout(n),o=a(e.responseTimeout,"Socket timeout"))},t.onerror=()=>{0===t.status&&(clearTimeout(n),clearTimeout(o),r({content:t.responseText||"Network request failed",status:t.status,isTimedOut:!1}))},t.onload=()=>{clearTimeout(n),clearTimeout(o),r({content:t.responseText,status:t.status,isTimedOut:!1})},t.send(e.data)})}},algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:a(),requestsCache:a({serializable:!1}),hostsCache:function e(r){let t=[...r.caches],a=t.shift();return void 0===a?{get:(e,r,t={miss:()=>Promise.resolve()})=>r().then(e=>Promise.all([e,t.miss(e)])).then(([e])=>e),set:(e,r)=>Promise.resolve(r),delete:e=>Promise.resolve(),clear:()=>Promise.resolve()}:{get:(r,n,o={miss:()=>Promise.resolve()})=>a.get(r,n,o).catch(()=>e({caches:t}).get(r,n,o)),set:(r,n)=>a.set(r,n).catch(()=>e({caches:t}).set(r,n)),delete:r=>
1a.delete(r).catch(()=>e({caches:t}).delete(r)),clear:()=>a.clear().catch(()=>e({caches:t}).clear())}}({caches:[function(e){let r,t=`algolia-client-js-${e.key}`;function a(){return void 0===r&&(r=e.localStorage||window.localStorage),r}function n(){return JSON.parse(a().getItem(t)||"{}")}function o(e){a().setItem(t,JSON.stringify(e))}return{get:(r,t,a={miss:()=>Promise.resolve()})=>Promise.resolve().then(()=>(!function(){let r=e.timeToLive?1e3*e.timeToLive:null,t=Object.fromEntries(Object.entries(n()).filter(([,e])=>void 0!==e.timestamp));o(t),r&&o(Object.fromEntries(Object.entries(t).filter(([,e])=>{let t=new Date().getTime();return!(e.timestamp+r<t)})))}(),n()[JSON.stringify(r)])).then(e=>Promise.all([e?e.value:t(),void 0!==e])).then(([e,r])=>Promise.all([e,r||a.miss(e)])).then(([e])=>e),set:(e,r)=>Promise.resolve().then(()=>{let o=n();return o[JSON.stringify(e)]={timestamp:new Date().getTime(),value:r},a().setItem(t,JSON.stringify(o)),r}),delete:e=>Promise.resolve().then(()=>{let r=n();delete r[JSON.stringify(e)],a().setItem(t,JSON.stringify(r))}),clear:()=>Promise.resolve().then(()=>{a().removeItem(t)})}}({key:`${h}-${e}`}),a()]}),...s})}},71966:(e,r,t)=>{"use strict";function a(e={serializable:!0}){let r={};return{get(t,a,n={miss:()=>Promise.resolve()}){let o=JSON.stringify(t);if(o in r)return Promise.resolve(e.serializable?JSON.parse(r[o]):r[o]);let s=a();return s.then(e=>n.miss(e)).then(()=>s)},set:(t,a)=>(r[JSON.stringify(t)]=e.serializable?JSON.stringify(a):a,Promise.resolve(a)),delete:e=>(delete r[JSON.stringify(e)],Promise.resolve()),clear:()=>(r={},Promise.resolve())}}function n(e,r="up"){let t=Date.now();return{...e,status:r,lastUpdate:t,isUp:function(){return"up"===r||Date.now()-t>12e4},isTimedOut:function(){return"timed out"===r&&Date.now()-t<=12e4}}}t.r(r),t.d(r,{apiClientVersion:()=>h,ingestionClient:()=>P,isOnDemandTrigger:()=>p,isScheduleTrigger:()=>g,isSubscriptionTrigger:()=>f});var o=class extends Error{name="AlgoliaError";constructor(e,r){super(e),r&&(this.name=r)}},s=class extends o{stackTrace;constructor(e,r,t){super(e,t),this.stackTrace=r}},i=class extends s{constructor(e){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")}},u=class extends s{status;constructor(e,r,t,a="ApiError"){super(e,t,a),this.status=r}},c=class extends o{response;constructor(e,r){super(e,"DeserializationError"),this.response=r}},l=class extends u{error;constructor(e,r,t,a){super(e,r,a,"DetailedApiError"),this.error=t}};function d(e){let r=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...e,request:{...e.request,headers:{...e.request.headers,...r}}}}var h="1.50.0",m=["eu","us"];function p(e){return"onDemand"===e.type}function g(e){return"schedule"===e.type}function f(e){return"subscription"===e.type}function P(e,r,t,o){if(!e||"string"!=typeof e)throw Error("`appId` is missing.");if(!r||"string"!=typeof r)throw Error("`apiKey` is missing.");if(!t||t&&("string"!=typeof t||!m.includes(t)))throw Error(`\`region\` is required and must be one of the following: ${m.join(", ")}`);let{compression:s,...p}=o||{};return function({appId:e,apiKey:r,authMode:t,algoliaAgents:a,region:o,...s}){let m=function(e,r,t="WithinHeaders"){let a={"x-algolia-api-key":r,"x-algolia-application-id":e};return{headers:()=>"WithinHeaders"===t?a:{},queryParameters:()=>"WithinQueryParameters"===t?a:{}}}(e,r,t),p=function({hosts:e,hostsCache:r,baseHeaders:t,logger:a,baseQueryParameters:o,algoliaAgent:s,timeouts:h,requester:m,requestsCache:p,responsesCache:g,compress:f,compression:P}){async function w(e){let t=await Promise.all(e.map(e=>r.get(e,()=>Promise.resolve(n(e))))),a=t.filter(e=>e.isUp()),o=t.filter(e=>e.isTimedOut()),s=[...a,...o];return{hosts:s.length>0?s:e,getTimeout:(e,r)=>(0===o.length&&0===e?1:o.length+3+e)*r}}async function q(p,g,q){let y=[],v=function(e,r){if("GET"!==e.method&&(void 0!==e.data||void 0!==r.data))return JSON.stringify(Array.isArray(e.data)?e.data:{...e.data,...r.data})}(p,g),T=function(e,r,t){let a={Accept:"application/json",...e,...r,...t},n={};
1return Object.keys(a).forEach(e=>{let r=a[e];n[e.toLowerCase()]=r}),n}(t,p.headers,g.headers),I="gzip"===P&&void 0!==v&&v.length>750&&("POST"===p.method||"PUT"===p.method);I&&void 0===f&&a.info("Compression is disabled because no compress method is available.");let E=I&&void 0!==f,S=E?await f(v):v;E&&(T["content-encoding"]="gzip");let D="GET"===p.method?{...p.data,...g.data}:{},k={...o,...p.queryParameters,...D};if(s.value&&(k["x-algolia-agent"]=s.value),g&&g.queryParameters)for(let e of Object.keys(g.queryParameters))g.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(g.queryParameters[e])?k[e]=g.queryParameters[e].toString():k[e]=g.queryParameters[e];let b=0,O=async(e,t)=>{let o=e.pop();if(void 0===o)throw new i(y.map(e=>d(e)));let s={...h,...g.timeouts},f={data:S,headers:T,method:p.method,url:function(e,r,t){var a;let n=Object.keys(a=t).filter(e=>void 0!==a[e]).sort().map(e=>`${e}=${encodeURIComponent("[object Array]"===Object.prototype.toString.call(a[e])?a[e].join(","):a[e]).replace(/\+/g,"%20")}`).join("&"),o=`${e.protocol}://${e.url}${e.port?`:${e.port}`:""}/${"/"===r.charAt(0)?r.substring(1):r}`;return n.length&&(o+=`?${n}`),o}(o,p.path,k),connectTimeout:t(b,s.connect),responseTimeout:t(b,q?s.read:s.write)},P=r=>{let t={request:f,response:r,host:o,triesLeft:e.length};return y.push(t),t},w=await m.send(f);if(function({isTimedOut:e,status:r}){return e||function({isTimedOut:e,status:r}){return!e&&0==~~r}({isTimedOut:e,status:r})||2!=~~(r/100)&&4!=~~(r/100)}(w)){let s=P(w);return w.isTimedOut&&b++,a.info("Retryable failure",d(s)),await r.set(o,n(o,w.isTimedOut?"timed out":"down")),O(e,t)}if(function({status:e}){return 2==~~(e/100)}(w))try{return JSON.parse(w.content)}catch(e){throw new c(e.message,w)}throw P(w),function({content:e,status:r},t){try{let a=JSON.parse(e);if("error"in a)return new l(a.message,r,a.error,t);return new u(a.message,r,t)}catch{}return new u(e,r,t)}(w,y)},C=e.filter(e=>"readWrite"===e.accept||(q?"read"===e.accept:"write"===e.accept)),R=await w(C);return O([...R.hosts].reverse(),R.getTimeout)}return{hostsCache:r,requester:m,timeouts:h,logger:a,algoliaAgent:s,baseHeaders:t,baseQueryParameters:o,hosts:e,request:function(e,r={}){let a=()=>q(e,r,n),n=e.useReadTransporter||"GET"===e.method;if(!0!==(r.cacheable||e.cacheable))return a();let s={request:e,requestOptions:r,transporter:{queryParameters:o,headers:t}};return g.get(s,()=>p.get(s,()=>p.set(s,a()).then(e=>Promise.all([p.delete(s),e]),e=>Promise.all([p.delete(s),Promise.reject(e)])).then(([e,r])=>r)),{miss:e=>g.set(s,e)})},requestsCache:p,responsesCache:g}}({hosts:[{url:"data.{region}.algolia.com".replace("{region}",o),accept:"readWrite",protocol:"https"}],...s,algoliaAgent:function({algoliaAgents:e,client:r,version:t}){let a=(function(e){let r={value:`Algolia for JavaScript (${e})`,add(e){let t=`; ${e.segment}${void 0!==e.version?` (${e.version})`:""}`;return -1===r.value.indexOf(t)&&(r.value=`${r.value}${t}`),r}};return r})(t).add({segment:r,version:t});return e.forEach(e=>a.add(e)),a}({algoliaAgents:a,client:"Ingestion",version:h}),baseHeaders:{"content-type":"text/plain",...m.headers(),...s.baseHeaders},baseQueryParameters:{...m.queryParameters(),...s.baseQueryParameters}});return{transporter:p,appId:e,apiKey:r,clearCache:()=>Promise.all([p.requestsCache.clear(),p.responsesCache.clear()]).then(()=>void 0),get _ua(){return p.algoliaAgent.value},addAlgoliaAgent(e,r){p.algoliaAgent.add({segment:e,version:r})},setClientApiKey({apiKey:e}){t&&"WithinHeaders"!==t?p.baseQueryParameters["x-algolia-api-key"]=e:p.baseHeaders["x-algolia-api-key"]=e},async chunkedPush({indexName:e,objects:r,action:t="addObject",waitForTasks:a,batchSize:n=1e3,referenceIndexName:o},s){let i=[],u=0,c=[],l=Math.floor(n/10)||n;for(let[d,h]of r.entries())if(i.push(h),(i.length===n||d===r.length-1)&&(c.push(await this.push({indexName:e,pushTaskPayload:{action:t,records:i},referenceIndexName:o},s)),i=[]),a&&c.length>0&&(c.length%l==0||d===r.length-1)){for(let e of c.slice(u,u+l)){if(!e.eventID)throw Error("received unexpected response from the push endpoint, eventID must not be undefined");let r=0;await function({func:e,validate:r,aggregator:t,error:a,timeout:n=()=>0}){let o=s=>
1new Promise((i,u)=>{e(s).then(async e=>(t&&await t(e),await r(e))?i(e):a&&await a.validate(e)?u(Error(await a.message(e))):setTimeout(()=>{o(e).then(i).catch(u)},await n())).catch(e=>{u(e)})});return o()}({func:async()=>{if(void 0===e.eventID||!e.eventID)throw Error("received unexpected response from the push endpoint, eventID must not be undefined");return this.getEvent({runID:e.runID,eventID:e.eventID}).catch(e=>{if(404!==e.status)throw e})},validate:e=>void 0!==e,aggregator:()=>r+=1,error:{validate:()=>r>=50,message:()=>`The maximum number of retries exceeded. (${r}/50)`},timeout:()=>Math.min(500*r,5e3)})}u+=l}return c},createAuthentication(e,r){if(!e)throw Error("Parameter `authenticationCreate` is required when calling `createAuthentication`.");if(!e.type)throw Error("Parameter `authenticationCreate.type` is required when calling `createAuthentication`.");if(!e.name)throw Error("Parameter `authenticationCreate.name` is required when calling `createAuthentication`.");if(!e.input)throw Error("Parameter `authenticationCreate.input` is required when calling `createAuthentication`.");return p.request({method:"POST",path:"/1/authentications",queryParameters:{},headers:{},data:e},r)},createDestination(e,r){if(!e)throw Error("Parameter `destinationCreate` is required when calling `createDestination`.");if(!e.type)throw Error("Parameter `destinationCreate.type` is required when calling `createDestination`.");if(!e.name)throw Error("Parameter `destinationCreate.name` is required when calling `createDestination`.");if(!e.input)throw Error("Parameter `destinationCreate.input` is required when calling `createDestination`.");return p.request({method:"POST",path:"/1/destinations",queryParameters:{},headers:{},data:e},r)},createSource(e,r){if(!e)throw Error("Parameter `sourceCreate` is required when calling `createSource`.");if(!e.type)throw Error("Parameter `sourceCreate.type` is required when calling `createSource`.");if(!e.name)throw Error("Parameter `sourceCreate.name` is required when calling `createSource`.");return p.request({method:"POST",path:"/1/sources",queryParameters:{},headers:{},data:e},r)},createTask(e,r){if(!e)throw Error("Parameter `taskCreate` is required when calling `createTask`.");if(!e.sourceID)throw Error("Parameter `taskCreate.sourceID` is required when calling `createTask`.");if(!e.destinationID)throw Error("Parameter `taskCreate.destinationID` is required when calling `createTask`.");if(!e.action)throw Error("Parameter `taskCreate.action` is required when calling `createTask`.");return p.request({method:"POST",path:"/2/tasks",queryParameters:{},headers:{},data:e},r)},createTaskV1(e,r){if(!e)throw Error("Parameter `taskCreate` is required when calling `createTaskV1`.");if(!e.sourceID)throw Error("Parameter `taskCreate.sourceID` is required when calling `createTaskV1`.");if(!e.destinationID)throw Error("Parameter `taskCreate.destinationID` is required when calling `createTaskV1`.");if(!e.trigger)throw Error("Parameter `taskCreate.trigger` is required when calling `createTaskV1`.");if(!e.action)throw Error("Parameter `taskCreate.action` is required when calling `createTaskV1`.");return p.request({method:"POST",path:"/1/tasks",queryParameters:{},headers:{},data:e},r)},createTransformation(e,r){if(!e)throw Error("Parameter `transformationCreate` is required when calling `createTransformation`.");if(!e.name)throw Error("Parameter `transformationCreate.name` is required when calling `createTransformation`.");return p.request({method:"POST",path:"/1/transformations",queryParameters:{},headers:{},data:e},r)},customDelete({path:e,parameters:r},t){if(!e)throw Error("Parameter `path` is required when calling `customDelete`.");let a="/{path}".replace("{path}",e);return p.request({method:"DELETE",path:a,queryParameters:r||{},headers:{}},t)},customGet({path:e,parameters:r},t){if(!e)throw Error("Parameter `path` is required when calling `customGet`.");let a="/{path}".replace("{path}",e);return p.request({method:"GET",path:a,queryParameters:r||{},headers:{}},t)},customPost({path:e,parameters:r,body:t},a){if(!e)throw Error("Parameter `path` is required when calling `customPost`.");let n="/{path}".replace("{path}",e);return p.request({method:"POST",path:n,queryParameters:r||{},headers:{},data:t||{}},a)},customPut({path:e,parameters:r,body:t},a){if(!e)throw Error("Parameter `path` is required when calling `customPut`.");let n="/{path}".replace("{path}",e);return p.request({method:"PUT",path:n,queryParameters:r||{},headers:{},data:t||{}},a)},deleteAuthentication({authenticationID:e},r){if(!e)throw Error("Parameter `authenticationID` is required when calling `deleteAuthentication`.");let t="/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e));return p.request({method:"DELETE",path:t,queryParameters:{},headers:{}},r)},deleteDestination({destinationID:e},r){if(!e)throw Error("Parameter `destinationID` is required when calling `deleteDestination`.");let t="/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e));return p.request({method:"DELETE",path:t,queryParameters:{},headers:{}},r)},deleteSource({sourceID:e},r){if(!e)throw Error("Parameter `sourceID` is required when calling `deleteSource`.");let t="/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e));return p.request({method:"DELETE",path:t,queryParameters:{},headers:{}},r)},deleteTask({taskID:e},r){if(!e)throw Error("Parameter `taskID` is required when calling `deleteTask`.");let t="/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e));return p.request({method:"DELETE",path:t,queryParameters:{},headers:{}},r)},deleteTaskV1({taskID:e},r){if(!e)throw Error("Parameter `taskID` is required when calling `deleteTaskV1`.");let t="/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e));return p.request({method:"DELETE",path:t,queryParameters:{},headers:{}},r)},deleteTransformation({transformationID:e},r){if(!e)throw Error("Parameter `transformationID` is required when calling `deleteTransformation`.");let t="/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(e));return p.request({method:"DELETE",path:t,queryParameters:{},headers:{}},r)},disableTask({taskID:e},r){if(!e)throw Error("Parameter `taskID` is required when calling `disableTask`.");let t="/2/tasks/{taskID}/disable".replace("{taskID}",encodeURIComponent(e));return p.request({method:"PUT",path:t,queryParameters:{},headers:{}},r)},disableTaskV1({taskID:e},r){if(!e)throw Error("Parameter `taskID` is required when calling `disableTaskV1`.");let t="/1/tasks/{taskID}/disable".replace("{taskID}",encodeURIComponent(e));return p.request({method:"PUT",path:t,queryParameters:{},headers:{}},r)},enableTask({taskID:e},r){if(!e)throw Error("Parameter `taskID` is required when calling `enableTask`.");let t="/2/tasks/{taskID}/enable".replace("{taskID}",encodeURIComponent(e));return p.request({method:"PUT",path:t,queryParameters:{},headers:{}},r)},enableTaskV1({taskID:e},r){if(!e)throw Error("Parameter `taskID` is required when calling `enableTaskV1`.");let t="/1/tasks/{taskID}/enable".replace("{taskID}",encodeURIComponent(e));return p.request({method:"PUT",path:t,queryParameters:{},headers:{}},r)},getAuthentication({authenticationID:e},r){if(!e)throw Error("Parameter `authenticationID` is required when calling `getAuthentication`.");let t="/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e));return p.request({method:"GET",path:t,queryParameters:{},headers:{}},r)},getDestination({destinationID:e},r){if(!e)throw Error("Parameter `destinationID` is required when calling `getDestination`.");let t="/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e));return p.request({method:"GET",path:t,queryParameters:{},headers:{}},r)},getEvent({runID:e,eventID:r},t){if(!e)throw Error("Parameter `runID` is required when calling `getEvent`.");if(!r)throw Error("Parameter `eventID` is required when calling `getEvent`.");let a="/1/runs/{runID}/events/{eventID}".replace("{runID}",encodeURIComponent(e)).replace("{eventID}",encodeURIComponent(r));return p.request({method:"GET",path:a,queryParameters:{},headers:{}},t)},getRun({runID:e},r){if(!e)throw Error("Parameter `runID` is required when calling `getRun`.");let t="/1/runs/{runID}".replace("{runID}",encodeURIComponent(e));return p.request({method:"GET",path:t,queryParameters:{},headers:{}},r)},getSource({sourceID:e},r){if(!e)throw Error("Parameter `sourceID` is required when calling `getSource`.");let t="/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e));return p.request({method:"GET",path:t,queryParameters:{},headers:{}},r)},getTask({taskID:e},r){if(!e)throw Error("Parameter `taskID` is required when calling `getTask`.");let t="/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e));return p.request({method:"GET",path:t,queryParameters:{},headers:{}},r)},getTaskV1({taskID:e},r){if(!e)throw Error("Parameter `taskID` is required when calling `getTaskV1`.");let t="/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e));return p.request({method:"GET",path:t,queryParameters:{},headers:{}},r)},getTransformation({transformationID:e},r){if(!e)throw Error("Parameter `transformationID` is required when calling `getTransformation`.");let t="/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(e));return p.request({method:"GET",path:t,queryParameters:{},headers:{}},r)},listAuthentications({itemsPerPage:e,page:r,type:t,platform:a,sort:n,order:o}={},s){let i={};return void 0!==e&&(i.itemsPerPage=e.toString()),void 0!==r&&(i.page=r.toString()),void 0!==t&&(i.type=t.toString()),void 0!==a&&(i.platform=a.toString()),void 0!==n&&(i.sort=n.toString()),void 0!==o&&(i.order=o.toString()),p.request({method:"GET",path:"/1/authentications",queryParameters:i,headers:{}},s)},listDestinations({itemsPerPage:e,page:r,type:t,authenticationID:a,transformationID:n,sort:o,order:s}={},i){let u={};return void 0!==e&&(u.itemsPerPage=e.toString()),void 0!==r&&(u.page=r.toString()),void 0!==t&&(u.type=t.toString()),void 0!==a&&(u.authenticationID=a.toString()),void 0!==n&&(u.transformationID=n.toString()),void 0!==o&&(u.sort=o.toString()),void 0!==s&&(u.order=s.toString()),p.request({method:"GET",path:"/1/destinations",queryParameters:u,headers:{}},i)},listEvents({runID:e,itemsPerPage:r,page:t,status:a,type:n,sort:o,order:s,startDate:i,endDate:u},c){if(!e)throw Error("Parameter `runID` is required when calling `listEvents`.");let l="/1/runs/{runID}/events".replace("{runID}",encodeURIComponent(e)),d={};return void 0!==r&&(d.itemsPerPage=r.toString()),void 0!==t&&(d.page=t.toString()),void 0!==a&&(d.status=a.toString()),void 0!==n&&(d.type=n.toString()),void 0!==o&&(d.sort=o.toString()),void 0!==s&&(d.order=s.toString()),void 0!==i&&(d.startDate=i.toString()),void 0!==u&&(d.endDate=u.toString()),p.request({method:"GET",path:l,queryParameters:d,headers:{}},c)}
1,listRuns({itemsPerPage:e,page:r,status:t,type:a,taskID:n,sort:o,order:s,startDate:i,endDate:u}={},c){let l={};return void 0!==e&&(l.itemsPerPage=e.toString()),void 0!==r&&(l.page=r.toString()),void 0!==t&&(l.status=t.toString()),void 0!==a&&(l.type=a.toString()),void 0!==n&&(l.taskID=n.toString()),void 0!==o&&(l.sort=o.toString()),void 0!==s&&(l.order=s.toString()),void 0!==i&&(l.startDate=i.toString()),void 0!==u&&(l.endDate=u.toString()),p.request({method:"GET",path:"/1/runs",queryParameters:l,headers:{}},c)},listSources({itemsPerPage:e,page:r,type:t,authenticationID:a,sort:n,order:o}={},s){let i={};return void 0!==e&&(i.itemsPerPage=e.toString()),void 0!==r&&(i.page=r.toString()),void 0!==t&&(i.type=t.toString()),void 0!==a&&(i.authenticationID=a.toString()),void 0!==n&&(i.sort=n.toString()),void 0!==o&&(i.order=o.toString()),p.request({method:"GET",path:"/1/sources",queryParameters:i,headers:{}},s)},listTasks({itemsPerPage:e,page:r,action:t,enabled:a,sourceID:n,sourceType:o,destinationID:s,triggerType:i,withEmailNotifications:u,sort:c,order:l}={},d){let h={};return void 0!==e&&(h.itemsPerPage=e.toString()),void 0!==r&&(h.page=r.toString()),void 0!==t&&(h.action=t.toString()),void 0!==a&&(h.enabled=a.toString()),void 0!==n&&(h.sourceID=n.toString()),void 0!==o&&(h.sourceType=o.toString()),void 0!==s&&(h.destinationID=s.toString()),void 0!==i&&(h.triggerType=i.toString()),void 0!==u&&(h.withEmailNotifications=u.toString()),void 0!==c&&(h.sort=c.toString()),void 0!==l&&(h.order=l.toString()),p.request({method:"GET",path:"/2/tasks",queryParameters:h,headers:{}},d)},listTasksV1({itemsPerPage:e,page:r,action:t,enabled:a,sourceID:n,destinationID:o,triggerType:s,sort:i,order:u}={},c){let l={};return void 0!==e&&(l.itemsPerPage=e.toString()),void 0!==r&&(l.page=r.toString()),void 0!==t&&(l.action=t.toString()),void 0!==a&&(l.enabled=a.toString()),void 0!==n&&(l.sourceID=n.toString()),void 0!==o&&(l.destinationID=o.toString()),void 0!==s&&(l.triggerType=s.toString()),void 0!==i&&(l.sort=i.toString()),void 0!==u&&(l.order=u.toString()),p.request({method:"GET",path:"/1/tasks",queryParameters:l,headers:{}},c)},listTransformations({itemsPerPage:e,page:r,sort:t,order:a,type:n}={},o){let s={};return void 0!==e&&(s.itemsPerPage=e.toString()),void 0!==r&&(s.page=r.toString()),void 0!==t&&(s.sort=t.toString()),void 0!==a&&(s.order=a.toString()),void 0!==n&&(s.type=n.toString()),p.request({method:"GET",path:"/1/transformations",queryParameters:s,headers:{}},o)},push({indexName:e,pushTaskPayload:r,watch:t,referenceIndexName:a},n){if(!e)throw Error("Parameter `indexName` is required when calling `push`.");if(!r)throw Error("Parameter `pushTaskPayload` is required when calling `push`.");if(!r.action)throw Error("Parameter `pushTaskPayload.action` is required when calling `push`.");if(!r.records)throw Error("Parameter `pushTaskPayload.records` is required when calling `push`.");let o="/1/push/{indexName}".replace("{indexName}",encodeURIComponent(e)),s={};return void 0!==t&&(s.watch=t.toString()),void 0!==a&&(s.referenceIndexName=a.toString()),n={timeouts:{connect:18e4,read:18e4,write:18e4,...n?.timeouts}},p.request({method:"POST",path:o,queryParameters:s,headers:{},data:r},n)},pushTask({taskID:e,pushTaskPayload:r,watch:t},a){if(!e)throw Error("Parameter `taskID` is required when calling `pushTask`.");if(!r)throw Error("Parameter `pushTaskPayload` is required when calling `pushTask`.");if(!r.action)throw Error("Parameter `pushTaskPayload.action` is required when calling `pushTask`.");if(!r.records)throw Error("Parameter `pushTaskPayload.records` is required when calling `pushTask`.");let n="/2/tasks/{taskID}/push".replace("{taskID}",encodeURIComponent(e)),o={};return void 0!==t&&(o.watch=t.toString()),a={timeouts:{connect:18e4,read:18e4,write:18e4,...a?.timeouts}},p.request({method:"POST",path:n,queryParameters:o,headers:{},data:r},a)},replaceTask({taskID:e,taskReplace:r},t){if(!e)throw Error("Parameter `taskID` is required when calling `replaceTask`.");if(!r)throw Error("Parameter `taskReplace` is required when calling `replaceTask`.");if(!r.destinationID)throw Error("Parameter `taskReplace.destinationID` is required when calling `replaceTask`.");if(!r.action)throw Error("Parameter `taskReplace.action` is required when calling `replaceTask`.");let a="/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e));return p.request({method:"PUT",path:a,queryParameters:{},headers:{},data:r},t)},runSource({sourceID:e,runSourcePayload:r},t){if(!e)throw Error("Parameter `sourceID` is required when calling `runSource`.");let a="/1/sources/{sourceID}/run".replace("{sourceID}",encodeURIComponent(e));return p.request({method:"POST",path:a,queryParameters:{},headers:{},data:r||{}},t)},runTask({taskID:e,runTaskPayload:r},t){if(!e)throw Error("Parameter `taskID` is required when calling `runTask`.");let a="/2/tasks/{taskID}/run".replace("{taskID}",encodeURIComponent(e));return p.request({method:"POST",path:a,queryParameters:{},headers:{},data:r||{}},t)},runTaskV1({taskID:e,runTaskPayload:r},t){if(!e)throw Error("Parameter `taskID` is required when calling `runTaskV1`.");let a="/1/tasks/{taskID}/run".replace("{taskID}",encodeURIComponent(e));return p.request({method:"POST",path:a,queryParameters:{},headers:{},data:r||{}},t)},searchAuthentications(e,r){if(!e)throw Error("Parameter `authenticationSearch` is required when calling `searchAuthentications`.");if(!e.authenticationIDs)throw Error("Parameter `authenticationSearch.authenticationIDs` is required when calling `searchAuthentications`.");return p.request({method:"POST",path:"/1/authentications/search",queryParameters:{},headers:{},data:e},r)},searchDestinations(e,r){if(!e)throw Error("Parameter `destinationSearch` is required when calling `searchDestinations`.");if(!e.destinationIDs)throw Error("Parameter `destinationSearch.destinationIDs` is required when calling `searchDestinations`.");return p.request({method:"POST",path:"/1/destinations/search",queryParameters:{},headers:{},data:e},r)},searchSources(e,r){if(!e)throw Error("Parameter `sourceSearch` is required when calling `searchSources`.");if(!e.sourceIDs)throw Error("Parameter `sourceSearch.sourceIDs` is required when calling `searchSources`.");return p.request({method:"POST",path:"/1/sources/search",queryParameters:{},headers:{},data:e},r)},searchTasks(e,r){if(!e)throw Error("Parameter `taskSearch` is required when calling `searchTasks`.");if(!e.taskIDs)throw Error("Parameter `taskSearch.taskIDs` is required when calling `searchTasks`.");return p.request({method:"POST",path:"/2/tasks/search",queryParameters:{},headers:{},data:e},r)},searchTasksV1(e,r){if(!e)throw Error("Parameter `taskSearch` is required when calling `searchTasksV1`.");if(!e.taskIDs)throw Error("Parameter `taskSearch.taskIDs` is required when calling `searchTasksV1`.");return p.request({method:"POST",path:"/1/tasks/search",queryParameters:{},headers:{},data:e},r)},searchTransformations(e,r){if(!e)throw Error("Parameter `transformationSearch` is required when calling `searchTransformations`.");if(!e.transformationIDs)throw Error("Parameter `transformationSearch.transformationIDs` is required when calling `searchTransformations`.");return p.request({method:"POST",path:"/1/transformations/search",queryParameters:{},headers:{},data:e},r)},triggerDockerSourceDiscover({sourceID:e},r){if(!e)throw Error("Parameter `sourceID` is required when calling `triggerDockerSourceDiscover`.");let t="/1/sources/{sourceID}/discover".replace("{sourceID}",encodeURIComponent(e));return r={timeouts:{connect:18e4,read:18e4,write:18e4,...r?.timeouts}},p.request({method:"POST",path:t,queryParameters:{},headers:{}},r)},tryTransformation(e,r){if(!e)throw Error("Parameter `transformationTry` is required when calling `tryTransformation`.");if(!e.sampleRecord)throw Error("Parameter `transformationTry.sampleRecord` is required when calling `tryTransformation`.");return p.request({method:"POST",path:"/1/transformations/try",queryParameters:{},headers:{},data:e},r)},tryTransformationBeforeUpdate({transformationID:e,transformationTry:r},t){if(!e)throw Error("Parameter `transformationID` is required when calling `tryTransformationBeforeUpdate`.");if(!r)throw Error("Parameter `transformationTry` is required when calling `tryTransformationBeforeUpdate`.");if(!r.sampleRecord)throw Error("Parameter `transformationTry.sampleRecord` is required when calling `tryTransformationBeforeUpdate`.");let a="/1/transformations/{transformationID}/try".replace("{transformationID}",encodeURIComponent(e));return p.request({method:"POST",path:a,queryParameters:{},headers:{},data:r},t)},updateAuthentication({authenticationID:e,authenticationUpdate:r},t){if(!e)throw Error("Parameter `authenticationID` is required when calling `updateAuthentication`.");if(!r)throw Error("Parameter `authenticationUpdate` is required when calling `updateAuthentication`.");let a="/1/authentications/{authenticationID}".replace("{authenticationID}",encodeURIComponent(e));return p.request({method:"PATCH",path:a,queryParameters:{},headers:{},data:r},t)},updateDestination({destinationID:e,destinationUpdate:r},t){if(!e)throw Error("Parameter `destinationID` is required when calling `updateDestination`.");if(!r)throw Error("Parameter `destinationUpdate` is required when calling `updateDestination`.");let a="/1/destinations/{destinationID}".replace("{destinationID}",encodeURIComponent(e));return p.request({method:"PATCH",path:a,queryParameters:{},headers:{},data:r},t)},updateSource({sourceID:e,sourceUpdate:r},t){if(!e)throw Error("Parameter `sourceID` is required when calling `updateSource`.");if(!r)throw Error("Parameter `sourceUpdate` is required when calling `updateSource`.");let a="/1/sources/{sourceID}".replace("{sourceID}",encodeURIComponent(e));return p.request({method:"PATCH",path:a,queryParameters:{},headers:{},data:r},t)},updateTask({taskID:e,taskUpdate:r},t){if(!e)throw Error("Parameter `taskID` is required when calling `updateTask`.");
1if(!r)throw Error("Parameter `taskUpdate` is required when calling `updateTask`.");let a="/2/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e));return p.request({method:"PATCH",path:a,queryParameters:{},headers:{},data:r},t)},updateTaskV1({taskID:e,taskUpdate:r},t){if(!e)throw Error("Parameter `taskID` is required when calling `updateTaskV1`.");if(!r)throw Error("Parameter `taskUpdate` is required when calling `updateTaskV1`.");let a="/1/tasks/{taskID}".replace("{taskID}",encodeURIComponent(e));return p.request({method:"PATCH",path:a,queryParameters:{},headers:{},data:r},t)},updateTransformation({transformationID:e,transformationCreate:r},t){if(!e)throw Error("Parameter `transformationID` is required when calling `updateTransformation`.");if(!r)throw Error("Parameter `transformationCreate` is required when calling `updateTransformation`.");if(!r.name)throw Error("Parameter `transformationCreate.name` is required when calling `updateTransformation`.");let a="/1/transformations/{transformationID}".replace("{transformationID}",encodeURIComponent(e));return p.request({method:"PUT",path:a,queryParameters:{},headers:{},data:r},t)},validateSource:(e,r)=>(r={timeouts:{connect:18e4,read:18e4,write:18e4,...r?.timeouts}},p.request({method:"POST",path:"/1/sources/validate",queryParameters:{},headers:{},data:e||{}},r)),validateSourceBeforeUpdate({sourceID:e,sourceUpdate:r},t){if(!e)throw Error("Parameter `sourceID` is required when calling `validateSourceBeforeUpdate`.");if(!r)throw Error("Parameter `sourceUpdate` is required when calling `validateSourceBeforeUpdate`.");let a="/1/sources/{sourceID}/validate".replace("{sourceID}",encodeURIComponent(e));return t={timeouts:{connect:18e4,read:18e4,write:18e4,...t?.timeouts}},p.request({method:"POST",path:a,queryParameters:{},headers:{},data:r},t)}}}({appId:e,apiKey:r,region:t,timeouts:{connect:25e3,read:25e3,write:25e3},logger:{debug:(e,r)=>Promise.resolve(),info:(e,r)=>Promise.resolve(),error:(e,r)=>Promise.resolve()},requester:{send:function(e){return new Promise(r=>{let t=new XMLHttpRequest;t.open(e.method,e.url,!0),Object.keys(e.headers).forEach(r=>t.setRequestHeader(r,e.headers[r]));let a=(e,a)=>setTimeout(()=>{t.abort(),r({status:0,content:a,isTimedOut:!0})},e),n=a(e.connectTimeout,"Connection timeout"),o;t.onreadystatechange=()=>{t.readyState>t.OPENED&&void 0===o&&(clearTimeout(n),o=a(e.responseTimeout,"Socket timeout"))},t.onerror=()=>{0===t.status&&(clearTimeout(n),clearTimeout(o),r({content:t.responseText||"Network request failed",status:t.status,isTimedOut:!1}))},t.onload=()=>{clearTimeout(n),clearTimeout(o),r({content:t.responseText,status:t.status,isTimedOut:!1})},t.send(e.data)})}},algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:a(),requestsCache:a({serializable:!1}),hostsCache:function e(r){let t=[...r.caches],a=t.shift();return void 0===a?{get:(e,r,t={miss:()=>Promise.resolve()})=>r().then(e=>Promise.all([e,t.miss(e)])).then(([e])=>e),set:(e,r)=>Promise.resolve(r),delete:e=>Promise.resolve(),clear:()=>Promise.resolve()}:{get:(r,n,o={miss:()=>Promise.resolve()})=>a.get(r,n,o).catch(()=>e({caches:t}).get(r,n,o)),set:(r,n)=>a.set(r,n).catch(()=>e({caches:t}).set(r,n)),delete:r=>
1a.delete(r).catch(()=>e({caches:t}).delete(r)),clear:()=>a.clear().catch(()=>e({caches:t}).clear())}}({caches:[function(e){let r,t=`algolia-client-js-${e.key}`;function a(){return void 0===r&&(r=e.localStorage||window.localStorage),r}function n(){return JSON.parse(a().getItem(t)||"{}")}function o(e){a().setItem(t,JSON.stringify(e))}return{get:(r,t,a={miss:()=>Promise.resolve()})=>Promise.resolve().then(()=>(!function(){let r=e.timeToLive?1e3*e.timeToLive:null,t=Object.fromEntries(Object.entries(n()).filter(([,e])=>void 0!==e.timestamp));o(t),r&&o(Object.fromEntries(Object.entries(t).filter(([,e])=>{let t=new Date().getTime();return!(e.timestamp+r<t)})))}(),n()[JSON.stringify(r)])).then(e=>Promise.all([e?e.value:t(),void 0!==e])).then(([e,r])=>Promise.all([e,r||a.miss(e)])).then(([e])=>e),set:(e,r)=>Promise.resolve().then(()=>{let o=n();return o[JSON.stringify(e)]={timestamp:new Date().getTime(),value:r},a().setItem(t,JSON.stringify(o)),r}),delete:e=>Promise.resolve().then(()=>{let r=n();delete r[JSON.stringify(e)],a().setItem(t,JSON.stringify(r))}),clear:()=>Promise.resolve().then(()=>{a().removeItem(t)})}}({key:`${h}-${e}`}),a()]}),...p})}},87114:function(e){e.exports=function(){"use strict";function e(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,a)}return t}function r(r){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?e(Object(a),!0).forEach(function(e){var t;t=a[e],e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(a,e))})}return r}function t(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var t=[],a=!0,n=!1,o=void 0;try{for(var s,i=e[Symbol.iterator]();!(a=(s=i.next()).done)&&(t.push(s.value),!r||t.length!==r);a=!0);}catch(e){n=!0,o=e}finally{try{a||null==i.return||i.return()}finally{if(n)throw o}}return t}}(e,r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(e){return function(e){if(Array.isArray(e)){for(var r=0,t=Array(e.length);r<e.length;r++)t[r]=e[r];return t}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance")}()}function n(){var e="undefined"!=typeof globalThis?globalThis:void 0;return e&&e.scheduler&&e.scheduler.yield?e.scheduler.yield().catch(function(e){return console.error("Failed to yield to main: ",e),new Promise(function(e){return setTimeout(e,0)})}):new Promise(function(e){return setTimeout(e,0)})}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},r={};return{get:function(t,a){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},o=JSON.stringify(t);if(o in r)return Promise.resolve(e.serializable?JSON.parse(r[o]):r[o]);var s=a(),i=n&&n.miss||function(){return Promise.resolve()};return s.then(function(e){return i(e)}).then(function(){return s})},set:function(t,a){return r[JSON.stringify(t)]=e.serializable?JSON.stringify(a):a,Promise.resolve(a)},delete:function(e){return delete r[JSON.stringify(e)],Promise.resolve()},clear:function(){return r={},Promise.resolve()}}}function s(e,r){var t=e||{},a=t.data||{};return Object.keys(t).forEach(function(e){-1===["timeout","headers","queryParameters","data","cacheable"].indexOf(e)&&(a[e]=t[e])}),{data:Object.entries(a).length>0?a:void 0,timeout:t.timeout||r,headers:t.headers||{},queryParameters:t.queryParameters||{},cacheable:t.cacheable}}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return r(r({},e),{},{status:t,lastUpdate:Date.now()})}function u(e){return"string"==typeof e?{protocol:"https",url:e,accept:3}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||3}}var c="POST";function l(e,t,n,o){var s,c,l,m=[],p=function(e,t){if("GET"!==e.method&&(void 0!==e.data||void 0!==t.data))return JSON.stringify(Array.isArray(e.data)?e.data:r(r({},e.data),t.data))}(n,o),g=(s=r(r({},e.headers),o.headers),c={}
1,Object.keys(s).forEach(function(e){var r=s[e];c[e.toLowerCase()]=r}),c),f=n.method,P="GET"!==n.method?{}:r(r({},n.data),o.data),w=r(r(r({"x-algolia-agent":e.userAgent.value},e.queryParameters),P),o.queryParameters),q=0,y=function r(t,a){var s,u,c,l,P,y=t.pop();if(void 0===y)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support .",transporterStackTrace:d(m)};var v={data:p,headers:g,method:f,url:(s=y,u=n.path,l=Object.keys(c=w).map(function(e){var r;return function(e){for(var r=arguments.length,t=Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];var n=0;return e.replace(/%s/g,function(){return encodeURIComponent(t[n++])})}("%s=%s",e,(r=c[e],"[object Object]"===Object.prototype.toString.call(r)||"[object Array]"===Object.prototype.toString.call(r)?JSON.stringify(c[e]):c[e]))}).join("&"),P="".concat(s.protocol,"://").concat(s.url,"/").concat("/"===u.charAt(0)?u.substr(1):u),l.length&&(P+="?".concat(l)),P),connectTimeout:a(q,e.timeouts.connect),responseTimeout:a(q,o.timeout)},T=function(e){var r={request:v,response:e,host:y,triesLeft:t.length};return m.push(r),r},I={onSuccess:function(e){try{return JSON.parse(e.content)}catch(r){throw{name:"DeserializationError",message:r.message,response:e}}},onRetry:function(n){var o=T(n);return n.isTimedOut&&q++,Promise.all([e.logger.info("Retryable failure",h(o)),e.hostsCache.set(y,i(y,n.isTimedOut?3:2))]).then(function(){return r(t,a)})},onFail:function(e){throw T(e),function(e,r){var t=e.content,a=e.status,n=t;try{n=JSON.parse(t).message}catch(e){}return{name:"ApiError",message:n,status:a,transporterStackTrace:r}}(e,d(m))}};return e.requester.send(v).then(function(e){var r,t,a;return(r=e.status,e.isTimedOut||(t=e.isTimedOut,a=e.status,!t&&0==~~a)||2!=~~(r/100)&&4!=~~(r/100))?I.onRetry(e):2==~~(e.status/100)?I.onSuccess(e):I.onFail(e)})};return(l=e.hostsCache,Promise.all(t.map(function(e){return l.get(e,function(){return Promise.resolve(i(e))})})).then(function(e){var r=e.filter(function(e){return 1===e.status||Date.now()-e.lastUpdate>12e4}),n=e.filter(function(e){return 3===e.status&&Date.now()-e.lastUpdate<=12e4}),o=[].concat(a(r),a(n));return{getTimeout:function(e,r){return(0===n.length&&0===e?1:n.length+3+e)*r},statelessHosts:o.length>0?o.map(function(e){return u(e)}):t}})).then(function(e){return y(a(e.statelessHosts).reverse(),e.getTimeout)})}function d(e){return e.map(function(e){return h(e)})}function h(e){var t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return r(r({},e),{},{request:r(r({},e.request),{},{headers:r(r({},e.request.headers),t)})})}var m=function(e){var a,n,o,i,c,d,h,m,p,g,f,P,w,q,y,v=e.appId,T=(a=void 0!==e.authMode?e.authMode:1,n={"x-algolia-api-key":e.apiKey,"x-algolia-application-id":v},{headers:function(){return 1===a?n:{}},queryParameters:function(){return 0===a?n:{}}}),I=(i=(o=r(r({hosts:[{url:"".concat(v,"-dsn.algolia.net"),accept:1},{url:"".concat(v,".algolia.net"),accept:2}].concat(function(e){for(var r=e.length-1;r>0;r--){var t=Math.floor(Math.random()*(r+1)),a=e[r];e[r]=e[t],e[t]=a}return e}([{url:"".concat(v,"-1.algolianet.com")},{url:"".concat(v,"-2.algolianet.com")},{url:"".concat(v,"-3.algolianet.com")}]))},e),{},{headers:r(r(r({},T.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:r(r({},T.queryParameters()),e.queryParameters)})).hostsCache,c=o.logger,d=o.requester,h=o.requestsCache,m=o.responsesCache,p=o.timeouts,g=o.userAgent,f=o.hosts,P=o.queryParameters,w={hostsCache:i,logger:c,requester:d,requestsCache:h,responsesCache:m,timeouts:p,userAgent:g,headers:o.headers,queryParameters:P,hosts:f.map(function(e){return u(e)}),read:function(e,r){var a=s(r,w.timeouts.read),n=function(){return l(w,w.hosts.filter(function(e){return 0!=(1&e.accept)}),e,a)};if(!0!==(void 0!==a.cacheable?a.cacheable:e.cacheable))return n();var o={request:e,mappedRequestOptions:a,transporter:{queryParameters:w.queryParameters,headers:w.headers}};return w.responsesCache.get(o,function(){return w.requestsCache.get(o,function(){return w.requestsCache.set(o,n()).then(function(e){return Promise.all([w.requestsCache.delete(o),e])},function(e){return Promise.all([w.requestsCache.delete(o),Promise.reject(e)])}).then(function(e){var r=t(e,2);return r[0],r[1]})})},{miss:function(e){return w.responsesCache.set(o,e)}})},write:function(e,r){return l(w,w.hosts.filter(function(e){return 0!=(2&e.accept)}),e,s(r,w.timeouts.write))}});return q={transporter:I,appId:v,addAlgoliaAgent:function(e,r){I.userAgent.add({segment:e,version:r})},clearCache:function(){return Promise.all([I.requestsCache.clear(),I.responsesCache.clear()]).then(function(){})}}
1,(y=e.methods)&&Object.keys(y).forEach(function(e){q[e]=y[e](q)}),q},p=function(e){return function(t,a){var n=t.map(function(e){return r(r({},e),{},{threshold:e.threshold||0})});return e.transporter.read({method:c,path:"1/indexes/*/recommendations",data:{requests:n},cacheable:!0},a)}},g=function(e){return function(t,a){return p(e)(t.map(function(e){return r(r({},e),{},{fallbackParameters:{},model:"bought-together"})}),a)}},f=function(e){return function(t,a){return p(e)(t.map(function(e){return r(r({},e),{},{model:"related-products"})}),a)}},P=function(e){return function(t,a){var n=t.map(function(e){return r(r({},e),{},{model:"trending-facets",threshold:e.threshold||0})});return e.transporter.read({method:c,path:"1/indexes/*/recommendations",data:{requests:n},cacheable:!0},a)}},w=function(e){return function(t,a){var n=t.map(function(e){return r(r({},e),{},{model:"trending-items",threshold:e.threshold||0})});return e.transporter.read({method:c,path:"1/indexes/*/recommendations",data:{requests:n},cacheable:!0},a)}},q=function(e){return function(t,a){return p(e)(t.map(function(e){return r(r({},e),{},{model:"looking-similar"})}),a)}},y=function(e){return function(t,a){var n=t.map(function(e){return r(r({},e),{},{model:"recommended-for-you",threshold:e.threshold||0})});return e.transporter.read({method:c,path:"1/indexes/*/recommendations",data:{requests:n},cacheable:!0},a)}};function v(e,s,i){var u,c,l,d,h,v,T,I;return m(r(r(r({},{appId:e,apiKey:s,timeouts:{connect:1,read:2,write:30},requester:{send:function(e){return new Promise(function(r){var t=new XMLHttpRequest;t.open(e.method,e.url,!0),Object.keys(e.headers).forEach(function(r){return t.setRequestHeader(r,e.headers[r])});var a,n=function(e,a){return setTimeout(function(){t.abort(),r({status:0,content:a,isTimedOut:!0})},1e3*e)},o=n(e.connectTimeout,"Connection timeout");t.onreadystatechange=function(){t.readyState>t.OPENED&&void 0===a&&(clearTimeout(o),a=n(e.responseTimeout,"Socket timeout"))},t.onerror=function(){0===t.status&&(clearTimeout(o),clearTimeout(a),r({content:t.responseText||"Network request failed",status:t.status,isTimedOut:!1}))},t.onload=function(){clearTimeout(o),clearTimeout(a),r({content:t.responseText,status:t.status,isTimedOut:!1})},t.send(e.data)})}},logger:{debug:function(e,r){return Promise.resolve()},info:function(e,r){return Promise.resolve()},error:function(e,r){return console.error(e,r),Promise.resolve()}},responsesCache:o(),requestsCache:o({serializable:!1}),hostsCache:function e(r){var n=a(r.caches),o=n.shift();return void 0===o?{get:function(e,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return r().then(function(e){return Promise.all([e,a.miss(e)])}).then(function(e){return t(e,1)[0]})},set:function(e,r){return Promise.resolve(r)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(r,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return o.get(r,t,a).catch(function(){return e({caches:n}).get(r,t,a)})},set:function(r,t){return o.set(r,t).catch(function(){return e({caches:n}).set(r,t)})}
1,delete:function(r){return o.delete(r).catch(function(){return e({caches:n}).delete(r)})},clear:function(){return o.clear().catch(function(){return e({caches:n}).clear()})}}}({caches:[(u={key:"".concat("4.26.0","-").concat(e)},l="algoliasearch-client-js-".concat(u.key),d=function(){return void 0===c&&(c=u.localStorage||window.localStorage),c},h=function(){return JSON.parse(d().getItem(l)||"{}")},v=function(e){d().setItem(l,JSON.stringify(e))},T=function(){var e=u.timeToLive?1e3*u.timeToLive:null,r=h(),a=(new Date).getTime();return Object.fromEntries(Object.entries(r).filter(function(r){var n=t(r,2)[1];return!(!n||void 0===n.timestamp)&&(!e||n.timestamp+e>=a)}))},{get:function(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return n().then(function(){var a=T(),n=a[JSON.stringify(e)];return v(a),n?n.value:r().then(function(e){return t.miss(e).then(function(){return e})})})},set:function(e,r){return n().then(function(){var t=h();return t[JSON.stringify(e)]={timestamp:(new Date).getTime(),value:r},d().setItem(l,JSON.stringify(t)),r})},delete:function(e){return n().then(function(){var r=h();delete r[JSON.stringify(e)],d().setItem(l,JSON.stringify(r))})},clear:function(){return Promise.resolve().then(function(){d().removeItem(l)})}}),o()]}),userAgent:(I={value:"Algolia for JavaScript (".concat("4.26.0",")"),add:function(e){var r="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return -1===I.value.indexOf(r)&&(I.value="".concat(I.value).concat(r)),I}}).add({segment:"Recommend",version:"4.26.0"}).add({segment:"Browser"}),authMode:0}),i),{},{methods:{getFrequentlyBoughtTogether:g,getRecommendations:p,getRelatedProducts:f,getTrendingFacets:P,getTrendingItems:w,getL
1ookingSimilar:q,getRecommendedForYou:y}}))}return v.version="4.26.0",v.getFrequentlyBoughtTogether=g,v.getRecommendations=p,v.getRelatedProducts=f,v.getTrendingFacets=P,v.getTrendingItems=w,v.getLookingSimilar=q,v.getRecommendedForYou=y,v}()}}]);
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.