addsearch-js-client
Version:
AddSearch API JavaScript client
2 lines • 111 kB
JavaScript
/*! addsearch-js-client 1.1.0 */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.AddSearchClient=e():t.AddSearchClient=e()}(this,(()=>(()=>{var t={995:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.putSentimentClick=void 0,n(542);const r=n(972);e.putSentimentClick=(t,e,n,i)=>new Promise(((s,o)=>{r.aiAnswersInteractionsInstance.put("https://".concat(t,"/v2/indices/").concat(e,"/conversations/").concat(n,"/rating"),{value:"positive"===i?1:"negative"===i?-1:0}).then((t=>{200===t.status?s(!0):o(new Error(JSON.stringify({type:r.RESPONSE_SERVER_ERROR,message:"Unable to put sentiment click value."})))})).catch((t=>{console.error(t),o(new Error(JSON.stringify({type:r.RESPONSE_SERVER_ERROR,message:"Unable to put sentiment click value."})))}))}))},972:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.RESPONSE_SERVER_ERROR=e.RESPONSE_BAD_REQUEST=e.setRequestInterceptor=e.aiAnswersInteractionsInstance=e.statsInstance=e.apiInstance=void 0;const i=r(n(425)),s=i.default.create();e.apiInstance=s;const o=i.default.create();e.statsInstance=o;const a=i.default.create();e.aiAnswersInteractionsInstance=a;e.RESPONSE_BAD_REQUEST=400;e.RESPONSE_SERVER_ERROR=500;e.setRequestInterceptor=(t,e)=>{("searchApi"===e?s:o).interceptors.request.use((e=>{const n=t({url:e.url,headers:e.headers});return e=Object.assign(Object.assign({},e),n)}),(t=>Promise.reject(new Error(JSON.stringify(t)))))}},650:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(542);const r=n(972),i=n(570),s=function(t,e,n,o,a,u,c,l){var f,d,h,p,g,y,m,b;const v=function(t,e){return t||!1===t?"&"+e+"="+t:""};if("search"!==n&&"ai-answers"!==n&&"suggest"!==n&&"autocomplete"!==n&&"recommend"!==n)return void a({error:{response:r.RESPONSE_BAD_REQUEST,message:"invalid query type"}});let w="",E="",O={},S=null,A=null;if("search"===n){A=n,w=null==o?void 0:o.keyword,w=(null==o?void 0:o.enableLogicalOperators)?w.replace(/ and /g," AND ").replace(/ or /g," OR ").replace(/ not /g," NOT "):w.replace(/ AND /g," and ").replace(/ OR /g," or ").replace(/ NOT /g," not "),w=encodeURIComponent(w);let r=null==o?void 0:o.fuzzy;if("retry"===r&&(r=!0===u),E=v(null==o?void 0:o.lang,"lang")+v(r,"fuzzy")+v(null==o?void 0:o.collectAnalytics,"collectAnalytics")+v(null==o?void 0:o.postfixWildcard,"postfixWildcard")+v(null==o?void 0:o.categories,"categories")+v(null==o?void 0:o.priceFromCents,"priceFromCents")+v(null==o?void 0:o.priceToCents,"priceToCents")+v(null==o?void 0:o.dateFrom,"dateFrom")+v(null==o?void 0:o.dateTo,"dateTo")+v(null==o?void 0:o.paging.page,"page")+v(null==o?void 0:o.paging.pageSize,"limit")+v(null==o?void 0:o.shuffleAndLimitTo,"shuffleAndLimitTo")+v(null==o?void 0:o.jwt,"jwt")+v(null==o?void 0:o.resultType,"resultType")+v(null==o?void 0:o.userToken,"userToken")+v(null==o?void 0:o.numFacets,"numFacets")+v(null==o?void 0:o.cacheResponseTime,"cacheResponseWithTtlSeconds")+v(null==o?void 0:o.searchOperator,"defaultOperator")+v(null==o?void 0:o.analyticsTag,"analyticsTag"),O=Object.assign(Object.assign({},O),{language:null==o?void 0:o.lang,fuzzy:!0!==r&&!1!==r?r:JSON.stringify(r),collectAnalytics:null==o?void 0:o.collectAnalytics,postfixWildcard:null==o?void 0:o.postfixWildcard,categories:(null==o?void 0:o.categories)?null==o?void 0:o.categories.split(","):void 0,priceFromCents:(null==o?void 0:o.priceFromCents)?parseInt(null==o?void 0:o.priceFromCents,10):void 0,priceToCents:(null==o?void 0:o.priceToCents)?parseInt(null==o?void 0:o.priceToCents,10):void 0,dateFrom:null==o?void 0:o.dateFrom,dateTo:null==o?void 0:o.dateTo,paging:{page:null!==(f=null==o?void 0:o.paging.page)&&void 0!==f?f:1,pageSize:null!==(d=null==o?void 0:o.paging.pageSize)&&void 0!==d?d:10,shuffleAndLimitTo:null!==(h=null==o?void 0:o.shuffleAndLimitTo)&&void 0!==h?h:void 0,sortByField:null==o?void 0:o.paging.sortBy,sortOrder:null==o?void 0:o.paging.sortOrder},jwt:null==o?void 0:o.jwt,resultType:null==o?void 0:o.resultType,userToken:null!==(p=null==o?void 0:o.userToken)&&void 0!==p?p:void 0,numFacets:null==o?void 0:o.numFacets,cacheResponseWithTtlSeconds:null!==(g=null==o?void 0:o.cacheResponseTime)&&void 0!==g?g:void 0,defaultOperator:null!==(y=null==o?void 0:o.searchOperator)&&void 0!==y?y:void 0,analyticsTag:null==o?void 0:o.analyticsTag}),Array.isArray(null==o?void 0:o.paging.sortBy)&&(null==o?void 0:o.paging.sortBy.length)>1?null==o||o.paging.sortBy.forEach((function(t,e){E=E+v(t,"sort")+v(null==o?void 0:o.paging.sortOrder[e],"order")})):E=E+v(null==o?void 0:o.paging.sortBy,"sort")+v(null==o?void 0:o.paging.sortOrder,"order"),null==o?void 0:o.customFieldFilters){const t={};for(let e=0;e<(null==o?void 0:o.customFieldFilters.length);e++){E=E+"&customField="+(null==o?void 0:o.customFieldFilters[e]);const n=decodeURIComponent(null==o?void 0:o.customFieldFilters[e]).split("="),r=n[0],i=n[1];t[r]=i}O=Object.assign(Object.assign({},O),{customField:(0,i.isEmptyObject)(t)?void 0:t})}if(null==o?void 0:o.facetFields){const t=[];for(let e=0;e<(null==o?void 0:o.facetFields.length);e++)E=E+"&facet="+(null==o?void 0:o.facetFields[e]),t.push(null==o?void 0:o.facetFields[e]);O=Object.assign(Object.assign({},O),{facet:t.length>0?t:void 0})}if((null==o?void 0:o.rangeFacets)&&(E=E+"&rangeFacets="+encodeURIComponent(JSON.stringify(null==o?void 0:o.rangeFacets)),O=Object.assign(Object.assign({},O),{rangeFacets:null==o?void 0:o.rangeFacets})),(null==o?void 0:o.hierarchicalFacetSetting)&&(E=E+"&hierarchicalFacets="+encodeURIComponent(JSON.stringify(null==o?void 0:o.hierarchicalFacetSetting)),O=Object.assign(Object.assign({},O),{hierarchicalFacets:null==o?void 0:o.hierarchicalFacetSetting})),null==o?void 0:o.statsFields){const t=[];for(let e=0;e<(null==o?void 0:o.statsFields.length);e++)E=E+"&fieldStat="+(null==o?void 0:o.statsFields[e]),t.push(null==o?void 0:o.statsFields[e]);O=Object.assign(Object.assign({},O),{statsFields:t})}if((null==o?void 0:o.personalizationEvents)&&Array.isArray(null==o?void 0:o.personalizationEvents)){const t=[];for(let e=0;e<(null==o?void 0:o.personalizationEvents.length);e++){const n=null==o?void 0:o.personalizationEvents[e],r=Object.keys(n)[0];E=E+"&personalizationEvent="+encodeURIComponent(r+"="+n[r]),t.push(n)}O=Object.assign(Object.assign({},O),{personalizationEvents:t})}c?(E=E+"&filter="+encodeURIComponent(JSON.stringify(c)),O=Object.assign(Object.assign({},O),{filter:c})):(null==o?void 0:o.filterObject)&&(E=E+"&filter="+encodeURIComponent(JSON.stringify(null==o?void 0:o.filterObject)),O=Object.assign(Object.assign({},O),{filter:(0,i.isEmptyObject)(null==o?void 0:o.filterObject)||null==o?void 0:o.filterObject})),S="https://"+t+"/v1/"+A+"/"+e+"?term="+w+E}else"ai-answers"===n?r.apiInstance.post("https://".concat(t,"/v2/indices/").concat(e,"/conversations"),{question:null==o?void 0:o.keyword}).then((function(t){t.data.response?a(t.data.response):a({error:{response:r.RESPONSE_SERVER_ERROR,message:"Could not get ai-answers response in the expected data format"}})})).catch((function(t){console.error(t),a({error:{response:r.RESPONSE_SERVER_ERROR,message:"invalid server response"}})})):"suggest"===n?(A=n,E=v(null==o?void 0:o.suggestionsSize,"size")+v(null==o?void 0:o.lang,"language"),O=Object.assign(Object.assign({},O),{size:null==o?void 0:o.suggestionsSize,language:null==o?void 0:o.lang}),w=null==o?void 0:o.suggestionsPrefix,S="https://"+t+"/v1/"+A+"/"+e+"?term="+w+E):"autocomplete"===n?(A="autocomplete/document-field",E=v(null==o?void 0:o.autocomplete.field,"source")+v(null==o?void 0:o.autocomplete.size,"size"),w=(null==o?void 0:o.autocomplete.prefix)||"",S="https://"+t+"/v1/"+A+"/"+e+"?term="+w+E,O=Object.assign(Object.assign({},O),{source:null==o?void 0:o.autocomplete.field,size:null==o?void 0:o.autocomplete.size})):"recommend"===n&&("RELATED_ITEMS"===(null==l?void 0:l.type)?(E=v(l.itemId,"itemId"),A="recommendations/index/"+e+"/block/"+l.blockId+"?"+E,O=Object.assign(Object.assign({},O),{itemId:null!==(m=l.itemId)&&void 0!==m?m:void 0,blockId:l.blockId})):"FREQUENTLY_BOUGHT_TOGETHER"===(null==l?void 0:l.type)&&(E=v(l.itemId,"itemId"),A="recommendations/"+e+"?configurationKey="+l.configurationKey+E,O=Object.assign(Object.assign({},O),{itemId:null!==(b=l.itemId)&&void 0!==b?b:void 0,configurationKey:l.configurationKey})),S="https://"+t+"/v1/"+A);if("ai-answers"!==n){const i=function(r){var i,c,l;const f=r.data;"search"===n&&"retry"===(null==o?void 0:o.fuzzy)&&0===f.total_hits&&!0!==u?s(t,e,n,o,a,!0):(!0===u&&(f.total_hits=Math.min(null!==(i=f.total_hits)&&void 0!==i?i:1/0,null!==(l=null===(c=null==o?void 0:o.paging)||void 0===c?void 0:c.pageSize)&&void 0!==l?l:1/0)),a(f))},c=function(t){console.error(t),a({error:{response:r.RESPONSE_SERVER_ERROR,message:"invalid server response"}})};if("POST"===(null==o?void 0:o.apiMethod)&&["search","suggest","autocomplete"].includes(n)){S="https://"+t+"/v1/"+A+"/"+e;const s="search"===n?decodeURIComponent(w):w;O=Object.assign({term:s},O),r.apiInstance.post(S,O).then(i).catch(c)}else r.apiInstance.get(S).then(i).catch(c)}};e.default=s},168:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.deleteCookie=e.getCookie=e.setCookie=void 0;const i=r(n(232));e.setCookie=(t,e,n)=>{if("undefined"==typeof document)return;const r=new Date;r.setTime(r.getTime()+24*n*60*60*1e3),document.cookie=i.default.serialize(t,e,{expires:r,path:"/"})};e.getCookie=t=>{if("undefined"!=typeof document)try{return i.default.parse(document.cookie)[t]}catch(t){return void console.debug("Error parsing cookies:",t)}};e.deleteCookie=t=>{"undefined"!=typeof document&&(document.cookie=i.default.serialize(t,"",{expires:new Date(0),path:"/"}))}},740:function(t,e,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),s=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||(r=function(t){return r=Object.getOwnPropertyNames||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[e.length]=n);return e},r(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n=r(t),o=0;o<n.length;o++)"default"!==n[o]&&i(e,t,n[o]);return s(e,t),e}),a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};const u=a(n(650)),c=n(104),l=a(n(515)),f=n(995),d=a(n(219)),h=o(n(570)),p=a(n(718)),g=o(n(168)),y=n(972),m="api.addsearch.com",b="addsearchUserToken";let v=!1,w=!1,E=180;t.exports=class{constructor(t,e){this.useStatsSessionId=!1,this.sitekey=t,this.privatekey=e||"",this.apiHostname=m,this.statsApiHostname=m,this.settings=new d.default,this.sessionId="a-".concat(1e8*Math.random()).substring(0,10),this.userTokenInPersonalization=g.getCookie(b)||h.generateUUID()}search(t,e){var n;let r=null,i=null;if("string"==typeof t&&"function"==typeof e)r=t,i=e;else if("function"!=typeof t||e){if(!this.settings.getSettings().callback)throw new Error("Illegal search parameters. Should be (keyword, callbackFunction) or (callbackFunction)");r=this.settings.getSettings().keyword||null,i=this.settings.getSettings().callback}else r=this.settings.getSettings().keyword||null,i=t;this.settings.setCallback((()=>i)),this.settings.setKeyword(r),null!==(n=this.throttledSearchFetch)&&void 0!==n||(this.throttledSearchFetch=(0,p.default)(this.settings.getSettings().throttleTimeMs,u.default)),this.throttledSearchFetch(this.apiHostname,this.sitekey,"search",this.settings.getSettings(),i)}aiAnswers(t,e){var n;this.settings.setCallback((()=>e)),this.settings.setKeyword(t),null!==(n=this.throttledAiAnswersFetch)&&void 0!==n||(this.throttledAiAnswersFetch=(0,p.default)(this.settings.getSettings().throttleTimeMs,u.default)),this.throttledAiAnswersFetch(this.apiHostname,this.sitekey,"ai-answers",this.settings.getSettings(),e)}putSentimentClick(t,e){return(0,f.putSentimentClick)(this.apiHostname,this.sitekey,t,e)}suggestions(t,e){var n;if(!t||!e||!h.isFunction(e))throw new Error("Illegal suggestions parameters. Should be (prefix, callbackFunction)");this.settings.setSuggestionsPrefix(t),null!==(n=this.throttledSuggestionsFetch)&&void 0!==n||(this.throttledSuggestionsFetch=(0,p.default)(this.settings.getSettings().throttleTimeMs,u.default)),this.throttledSuggestionsFetch(this.apiHostname,this.sitekey,"suggest",this.settings.getSettings(),e)}autocomplete(t,e,n){var r;if(!(t&&e&&n&&h.isFunction(n)))throw new Error("Illegal autocomplete parameters. Should be (field, prefix, callbackFunction)");this.settings.setAutocompleteParams(t,e),null!==(r=this.throttledAutocompleteFetch)&&void 0!==r||(this.throttledAutocompleteFetch=(0,p.default)(this.settings.getSettings().throttleTimeMs,u.default)),this.throttledAutocompleteFetch(this.apiHostname,this.sitekey,"autocomplete",this.settings.getSettings(),n)}fetchCustomApi(t,e,n){var r;const i=Object.assign({},this.settings.getSettings());i.facetFields=null===(r=i.facetFields)||void 0===r?void 0:r.filter((e=>t===e)),(0,u.default)(this.apiHostname,this.sitekey,"search",i,n,null,e)}fetchRangeFacets(t,e,n){var r;const i=Object.assign({},this.settings.getSettings());null!==(r=i.rangeFacets)&&void 0!==r||(i.rangeFacets=[]),i.rangeFacets.push({field:t.field,ranges:t.ranges}),(0,u.default)(this.apiHostname,this.sitekey,"search",i,n,null,e)}recommendations(t,e){var n;if(!t||!e||!h.isFunction(e))throw new Error("Illegal recommendations parameters. Should be (options, callbackFunction)");null!==(n=this.throttledRecommendationFetch)&&void 0!==n||(this.throttledRecommendationFetch=(0,p.default)(this.settings.getSettings().throttleTimeMs,u.default)),this.throttledRecommendationFetch(this.apiHostname,this.sitekey,"recommend",this.settings.getSettings(),e,!1,null,t)}getDocument(t){return(0,c.getDocument)(this.apiHostname,this.sitekey,this.privatekey,t)}saveDocument(t){return(0,c.saveDocument)(this.apiHostname,this.sitekey,this.privatekey,t)}saveDocumentsBatch(t){if(!t||!t.documents||!Array.isArray(t.documents))throw new Error("Please provide an array of documents: {documents: []}");return(0,c.saveDocumentsBatch)(this.apiHostname,this.sitekey,this.privatekey,t)}deleteDocument(t){return(0,c.deleteDocument)(this.apiHostname,this.sitekey,this.privatekey,t)}deleteDocumentsBatch(t){if(!t||!t.documents||!Array.isArray(t.documents))throw new Error("Please provide an array of document ids: {documents: []}");return(0,c.deleteDocumentsBatch)(this.apiHostname,this.sitekey,this.privatekey,t)}setApiHostname(t,e){e&&e.statsApiRequestOnly||(this.apiHostname=t),e&&e.searchApiRequestOnly||(this.statsApiHostname=t)}getSettings(){return this.settings.getSettings()}setLanguage(t){this.settings.setLanguage(t)}setCategoryFilters(t){this.settings.setCategoryFilters(t)}addCustomFieldFilter(t,e){this.settings.addCustomFieldFilter(t,e)}removeCustomFieldFilter(t,e){this.settings.removeCustomFieldFilter(t,e)}setPriceRangeFilter(t,e){this.settings.setPriceRangeFilter(t,e)}setDateFilter(t,e){this.settings.setDateFilter(t,e)}setJWT(t){this.settings.setJWT(t)}setUserToken(t){this.settings.setUserToken(t)}setPaging(t,e,n,r){this.settings.setPaging(t,e,n,r)}nextPage(){this.settings.nextPage()}previousPage(){this.settings.previousPage()}setSuggestionsSize(t){this.settings.setSuggestionsSize(t)}setAutocompleteSize(t){this.settings.setAutocompleteSize(t)}addFacetField(t){this.settings.addFacetField(t)}addHierarchicalFacetSetting(t){this.settings.addHierarchicalFacetSetting(t)}addRangeFacet(t,e){this.settings.addRangeFacet(t,e)}addStatsField(t){this.settings.addStatsField(t)}setNumberOfFacets(t){this.settings.setNumberOfFacets(t)}setResultType(t){this.settings.setResultType(t)}setPersonalizationEvents(t){this.settings.setPersonalizationEvents(t)}setFilterObject(t){this.settings.setFilterObject(t)}setShuffleAndLimitTo(t){this.settings.setShuffleAndLimitTo(t)}setFuzzyMatch(t){this.settings.setFuzzyMatch(t)}setPostfixWildcard(t){this.settings.setPostfixWildcard(t)}setCacheResponseTime(t){this.settings.setCacheResponseTime(t)}setCollectAnalytics(t){this.settings.setCollectAnalytics(t)}setAnalyticsTag(t){this.settings.setAnalyticsTag(t)}setThrottleTime(t){this.settings.setThrottleTime(t)}setStatsSessionId(t){this.sessionId=t,this.userTokenInPersonalization=t,this.useStatsSessionId=!0}getStatsSessionId(){return this.sessionId}enableLogicalOperators(t){this.settings.enableLogicalOperators(t)}setSearchOperator(t){this.settings.setSearchOperator(t)}setApiMethod(t){this.settings.setApiMethod(t)}sendStatsEvent(t,e,n){const r=!this.useStatsSessionId&&v&&w;if(r&&!g.getCookie(b)&&g.setCookie(b,this.userTokenInPersonalization,E),"search"===t){const t={action:"search",session:r?this.userTokenInPersonalization:this.sessionId,keyword:e,numberOfResults:n.numberOfResults,tag:this.getSettings().analyticsTag};(0,l.default)(this.statsApiHostname,this.sitekey,t,this.settings.getSettings().statsRequestIntercepted)}else{if("click"!==t)throw new Error("Illegal sendStatsEvent type parameters. Should be search or click)");{const t={action:"click",session:r?this.userTokenInPersonalization:this.sessionId,keyword:e,docid:n.documentId,position:n.position,tag:this.getSettings().analyticsTag};(0,l.default)(this.statsApiHostname,this.sitekey,t,this.settings.getSettings().statsRequestIntercepted)}}}getUserTokenInPersonalization(){return this.userTokenInPersonalization}enablePersonalizationTracking(t,e){v=t,e&&(E=e)}consentAddSearchCookie(t){w=t}setApiRequestInterceptor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("function"!=typeof t)return void console.error("API interceptor must be a function");const{searchApiRequestOnly:n=!1,statsApiRequestOnly:r=!1}=e;n||r?(n&&(0,y.setRequestInterceptor)(t,"searchApi"),r&&((0,y.setRequestInterceptor)(t,"statsApi"),this.settings.setStatsRequestIntercepted(!0))):((0,y.setRequestInterceptor)(t,"searchApi"),(0,y.setRequestInterceptor)(t,"statsApi"),this.settings.setStatsRequestIntercepted(!0))}searchResultClicked(t,e){this.sendStatsEvent("click",this.settings.getSettings().keyword||"",{documentId:t,position:e})}}},104:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.deleteDocumentsBatch=e.deleteDocument=e.saveDocumentsBatch=e.saveDocument=e.getDocument=void 0;const i=r(n(425)),s=n(570),o=(t,e)=>({Authorization:"Basic "+(0,s.base64)(t+":"+e),"Content-Type":"application/json"});e.getDocument=(t,e,n,r)=>new Promise(((s,a)=>{i.default.get("https://".concat(t,"/v2/indices/").concat(e,"/documents/").concat(r),{headers:o(e,n)}).then((t=>{200===t.status?s(t.data):a(new Error(JSON.stringify({status:t.status,text:t.statusText})))})).catch((t=>{a(new Error(JSON.stringify({status:400,text:t})))}))}));e.saveDocument=(t,e,n,r)=>{const s=Boolean(r.id||r.url);return new Promise(((a,u)=>{(0,i.default)({url:"https://".concat(t,"/v2/indices/").concat(e,"/documents/"),method:s?"put":"post",headers:o(e,n),data:r}).then((t=>{202===t.status?a({status:t.status,text:t.statusText}):u(new Error(JSON.stringify({status:t.status,text:t.statusText})))})).catch((t=>{u(new Error(JSON.stringify({status:400,text:t})))}))}))};e.saveDocumentsBatch=(t,e,n,r)=>new Promise(((s,a)=>{(0,i.default)({method:"put",url:"https://".concat(t,"/v2/indices/").concat(e,"/documents:batch"),headers:o(e,n),data:r}).then((t=>{202===t.status?s({status:t.status,text:t.statusText}):a(new Error(JSON.stringify({status:t.status,text:t.statusText})))})).catch((t=>{a(new Error(JSON.stringify({status:400,text:t})))}))}));e.deleteDocument=(t,e,n,r)=>new Promise(((s,a)=>{i.default.delete("https://".concat(t,"/v2/indices/").concat(e,"/documents/").concat(r),{headers:o(e,n)}).then((t=>{202===t.status?s({status:t.status,text:t.statusText}):a(new Error(JSON.stringify({status:t.status,text:t.statusText})))})).catch((t=>{a(new Error(JSON.stringify({status:400,text:t})))}))}));e.deleteDocumentsBatch=(t,e,n,r)=>new Promise(((s,a)=>{i.default.delete("https://".concat(t,"/v2/indices/").concat(e,"/documents:batch"),{headers:o(e,n),data:r}).then((t=>{202===t.status?s({status:t.status,text:t.statusText}):a(new Error(JSON.stringify({status:t.status,text:t.statusText})))})).catch((t=>{a(new Error(JSON.stringify({status:400,text:t})))}))}))},219:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(570);e.default=class{constructor(){this.settings={keyword:"*",callback:null,throttleTimeMs:200,fuzzy:"auto",paging:{page:1,pageSize:10,sortBy:"relevance",sortOrder:"desc"},customFieldFilters:[],userToken:null,suggestionsSize:10,facetFields:[],autocomplete:{size:10},searchOperator:null,enableLogicalOperators:!1,cacheResponseTime:null,statsRequestIntercepted:!1,apiMethod:"GET"}}getSettings(){return this.settings}setKeyword(t){this.settings.keyword=t||"*"}setCallback(t){this.settings.callback=t}setThrottleTime(t){this.settings.throttleTimeMs=t}setSuggestionsPrefix(t){this.settings.suggestionsPrefix=t}setSuggestionsSize(t){this.settings.suggestionsSize=t}setAutocompleteSize(t){this.settings.autocomplete.size=t}setAutocompleteParams(t,e){this.settings.autocomplete.field=t,this.settings.autocomplete.prefix=e}setLanguage(t){let e;if(Intl&&Intl.Locale)try{e=new Intl.Locale(t).language}catch(t){throw console.debug(t),new Error('Use an accepted language code provided by the ECMAScript Internationalization API (e.g., "en", "en-GB").')}else e=t;if(e&&2!==e.length)throw new Error('Use a 2-char/4-char language code (e.g., "en", "en-GB")');this.settings.lang=e}setFuzzyMatch(t){if(!0!==t&&!1!==t&&"auto"!==t&&"retry"!==t)throw new Error("Fuzzy matching can be true, false, 'auto', or 'retry'");this.settings.fuzzy=t}enableLogicalOperators(t){this.settings.enableLogicalOperators=t}setCacheResponseTime(t){this.settings.cacheResponseTime=t}setPostfixWildcard(t){this.settings.postfixWildcard=t}setCollectAnalytics(t){this.settings.collectAnalytics=t}setAnalyticsTag(t){this.settings.analyticsTag=t}setCategoryFilters(t){this.settings.categories=t}setFilterObject(t){this.settings.filterObject=t}setPriceRangeFilter(t,e){this.settings.priceFromCents=t,this.settings.priceToCents=e}addCustomFieldFilter(t,e){const n=encodeURIComponent("".concat(t,"=").concat(e));this.settings.customFieldFilters.includes(n)||this.settings.customFieldFilters.push(n)}removeCustomFieldFilter(t,e){const n=!e,r=encodeURIComponent("".concat(t,"=").concat(e||""));this.settings.customFieldFilters=this.settings.customFieldFilters.filter((t=>n?!t.startsWith(r):t!==r))}setDateFilter(t,e){this.settings.dateFrom=t,this.settings.dateTo=e}setJWT(t){this.settings.jwt=t}setUserToken(t){this.settings.userToken=t}setPersonalizationEvents(t){Array.isArray(t)&&(this.settings.personalizationEvents=t)}setResultType(t){this.settings.resultType=t}addFacetField(t){this.settings.facetFields.includes(t)||this.settings.facetFields.push(t)}addHierarchicalFacetSetting(t){this.settings.hierarchicalFacetSetting=t}addRangeFacet(t,e){var n,r;null!==(n=(r=this.settings).rangeFacets)&&void 0!==n||(r.rangeFacets=[]),this.settings.rangeFacets.push({field:t,ranges:e})}addStatsField(t){var e,n;null!==(e=(n=this.settings).statsFields)&&void 0!==e||(n.statsFields=[]),this.settings.statsFields.includes(t)||this.settings.statsFields.push(t)}setNumberOfFacets(t){this.settings.numFacets=t}setPaging(t,e,n,i){(0,r.validateSetPagingParams)(t,e,n,i),this.settings.paging={page:t,pageSize:e,sortBy:n,sortOrder:i}}setShuffleAndLimitTo(t){this.settings.shuffleAndLimitTo=t}nextPage(){this.settings.paging.page++}previousPage(){this.settings.paging.page>0&&this.settings.paging.page--}setSearchOperator(t){if("and"!==t&&"or"!==t)throw new Error("Operator must be 'and' or 'or'");this.settings.searchOperator=t}setStatsRequestIntercepted(t){this.settings.statsRequestIntercepted=t}setApiMethod(t){if("GET"!==t&&"POST"!==t)throw new Error("API method must be 'GET' or 'POST'");this.settings.apiMethod=t}}},515:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(964),i=n(972);(0,r.polyfill)();e.default=(t,e,n,r)=>{"undefined"!=typeof window&&window.navigator&&window.navigator.sendBeacon&&!r?window.navigator.sendBeacon("https://".concat(t,"/v1/stats/").concat(e,"/"),JSON.stringify(n)):i.statsInstance.post("https://".concat(t,"/v1/stats/").concat(e,"/"),n,{headers:{"Content-Type":"text/plain"}}).then().catch((t=>{console.error(t)}))}},718:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=(t,e)=>{let n=0,r=null;return function(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];const a=Date.now()-n,u=()=>{n=Date.now(),e(...s)};null!==r&&(clearTimeout(r),r=null),a>t?u():r=setTimeout(u,t-a)}}},570:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isEmptyObject=e.generateUUID=e.validateSetPagingParams=e.base64=e.isFunction=void 0;const r=n(287),i=n(182);e.isFunction=t=>"function"==typeof t;e.base64=t=>"undefined"!=typeof window&&window.btoa?window.btoa(t):r.Buffer?r.Buffer.from(t).toString("base64"):void 0;e.validateSetPagingParams=(t,e,n,r)=>{if(t<1)throw new Error("Page must be 1 or bigger");if(e<1||e>300)throw new Error("PageSize must be between 1 and 300");if(!n||!r)throw new Error("Invalid values for sortBy or sortOrder:");if(!("string"==typeof n&&"string"==typeof r||Array.isArray(n)&&Array.isArray(r)))throw new Error("sortBy and sortOrder must have the same type: string or Array");if(Array.isArray(n)&&n.length!==r.length)throw new Error("sortBy and sortOrder must have the same size");if("string"==typeof r&&"asc"!==r&&"desc"!==r)throw new Error("sortOrder must be asc or desc");if(Array.isArray(r)&&r.some((t=>"desc"!==t&&"asc"!==t)))throw new Error("All values of sortOrder array must be asc or desc")};e.generateUUID=()=>(0,i.v4)().replace(/-/g,"");e.isEmptyObject=t=>null==t||(!(!Array.isArray(t)&&"[object Object]"===Object.prototype.toString.call(t))||0===Object.keys(t).length)},526:(t,e)=>{"use strict";e.byteLength=function(t){var e=a(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,s=a(t),o=s[0],u=s[1],c=new i(function(t,e,n){return 3*(e+n)/4-n}(0,o,u)),l=0,f=u>0?o-4:o;for(n=0;n<f;n+=4)e=r[t.charCodeAt(n)]<<18|r[t.charCodeAt(n+1)]<<12|r[t.charCodeAt(n+2)]<<6|r[t.charCodeAt(n+3)],c[l++]=e>>16&255,c[l++]=e>>8&255,c[l++]=255&e;2===u&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,c[l++]=255&e);1===u&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,c[l++]=e>>8&255,c[l++]=255&e);return c},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,s=[],o=16383,a=0,c=r-i;a<c;a+=o)s.push(u(t,a,a+o>c?c:a+o));1===i?(e=t[r-1],s.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],s.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return s.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)n[o]=s[o],r[s.charCodeAt(o)]=o;function a(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function u(t,e,r){for(var i,s,o=[],a=e;a<r;a+=3)i=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),o.push(n[(s=i)>>18&63]+n[s>>12&63]+n[s>>6&63]+n[63&s]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},287:(t,e,n)=>{"use strict";const r=n(526),i=n(251),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=u,e.SlowBuffer=function(t){+t!=t&&(t=0);return u.alloc(+t)},e.INSPECT_MAX_BYTES=50;const o=2147483647;function a(t){if(t>o)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,u.prototype),e}function u(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return f(t)}return c(t,e,n)}function c(t,e,n){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!u.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const n=0|g(t,e);let r=a(n);const i=r.write(t,e);i!==n&&(r=r.slice(0,i));return r}(t,e);if(ArrayBuffer.isView(t))return function(t){if(G(t,Uint8Array)){const e=new Uint8Array(t);return h(e.buffer,e.byteOffset,e.byteLength)}return d(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(G(t,ArrayBuffer)||t&&G(t.buffer,ArrayBuffer))return h(t,e,n);if("undefined"!=typeof SharedArrayBuffer&&(G(t,SharedArrayBuffer)||t&&G(t.buffer,SharedArrayBuffer)))return h(t,e,n);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return u.from(r,e,n);const i=function(t){if(u.isBuffer(t)){const e=0|p(t.length),n=a(e);return 0===n.length||t.copy(n,0,0,e),n}if(void 0!==t.length)return"number"!=typeof t.length||X(t.length)?a(0):d(t);if("Buffer"===t.type&&Array.isArray(t.data))return d(t.data)}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return u.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function l(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function f(t){return l(t),a(t<0?0:0|p(t))}function d(t){const e=t.length<0?0:0|p(t.length),n=a(e);for(let r=0;r<e;r+=1)n[r]=255&t[r];return n}function h(t,e,n){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===e&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,e):new Uint8Array(t,e,n),Object.setPrototypeOf(r,u.prototype),r}function p(t){if(t>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|t}function g(t,e){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||G(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return V(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(t).length;default:if(i)return r?-1:V(t).length;e=(""+e).toLowerCase(),i=!0}}function y(t,e,n){let r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return j(this,e,n);case"utf8":case"utf-8":return T(this,e,n);case"ascii":return U(this,e,n);case"latin1":case"binary":return F(this,e,n);case"base64":return R(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function m(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function b(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),X(n=+n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:v(t,e,n,r,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):v(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(t,e,n,r,i){let s,o=1,a=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;o=2,a/=2,u/=2,n/=2}function c(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){let r=-1;for(s=n;s<a;s++)if(c(t,s)===c(e,-1===r?0:s-r)){if(-1===r&&(r=s),s-r+1===u)return r*o}else-1!==r&&(s-=s-r),r=-1}else for(n+u>a&&(n=a-u),s=n;s>=0;s--){let n=!0;for(let r=0;r<u;r++)if(c(t,s+r)!==c(e,r)){n=!1;break}if(n)return s}return-1}function w(t,e,n,r){n=Number(n)||0;const i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;const s=e.length;let o;for(r>s/2&&(r=s/2),o=0;o<r;++o){const r=parseInt(e.substr(2*o,2),16);if(X(r))return o;t[n+o]=r}return o}function E(t,e,n,r){return K(V(e,t.length-n),t,n,r)}function O(t,e,n,r){return K(function(t){const e=[];for(let n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function S(t,e,n,r){return K(W(e),t,n,r)}function A(t,e,n,r){return K(function(t,e){let n,r,i;const s=[];for(let o=0;o<t.length&&!((e-=2)<0);++o)n=t.charCodeAt(o),r=n>>8,i=n%256,s.push(i),s.push(r);return s}(e,t.length-n),t,n,r)}function R(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function T(t,e,n){n=Math.min(t.length,n);const r=[];let i=e;for(;i<n;){const e=t[i];let s=null,o=e>239?4:e>223?3:e>191?2:1;if(i+o<=n){let n,r,a,u;switch(o){case 1:e<128&&(s=e);break;case 2:n=t[i+1],128==(192&n)&&(u=(31&e)<<6|63&n,u>127&&(s=u));break;case 3:n=t[i+1],r=t[i+2],128==(192&n)&&128==(192&r)&&(u=(15&e)<<12|(63&n)<<6|63&r,u>2047&&(u<55296||u>57343)&&(s=u));break;case 4:n=t[i+1],r=t[i+2],a=t[i+3],128==(192&n)&&128==(192&r)&&128==(192&a)&&(u=(15&e)<<18|(63&n)<<12|(63&r)<<6|63&a,u>65535&&u<1114112&&(s=u))}}null===s?(s=65533,o=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|1023&s),r.push(s),i+=o}return function(t){const e=t.length;if(e<=_)return String.fromCharCode.apply(String,t);let n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=_));return n}(r)}e.kMaxLength=o,u.TYPED_ARRAY_SUPPORT=function(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),u.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(t,e,n){return c(t,e,n)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(t,e,n){return function(t,e,n){return l(t),t<=0?a(t):void 0!==e?"string"==typeof n?a(t).fill(e,n):a(t).fill(e):a(t)}(t,e,n)},u.allocUnsafe=function(t){return f(t)},u.allocUnsafeSlow=function(t){return f(t)},u.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==u.prototype},u.compare=function(t,e){if(G(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),G(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let n=t.length,r=e.length;for(let i=0,s=Math.min(n,r);i<s;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);let n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;const r=u.allocUnsafe(e);let i=0;for(n=0;n<t.length;++n){let e=t[n];if(G(e,Uint8Array))i+e.length>r.length?(u.isBuffer(e)||(e=u.from(e)),e.copy(r,i)):Uint8Array.prototype.set.call(r,e,i);else{if(!u.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(r,i)}i+=e.length}return r},u.byteLength=g,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)m(this,e,e+1);return this},u.prototype.swap32=function(){const t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},u.prototype.swap64=function(){const t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},u.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?T(this,0,t):y.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){let t="";const n=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(t+=" ... "),"<Buffer "+t+">"},s&&(u.prototype[s]=u.prototype.inspect),u.prototype.compare=function(t,e,n,r,i){if(G(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;let s=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(e>>>=0);const a=Math.min(s,o),c=this.slice(r,i),l=t.slice(e,n);for(let t=0;t<a;++t)if(c[t]!==l[t]){s=c[t],o=l[t];break}return s<o?-1:o<s?1:0},u.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},u.prototype.indexOf=function(t,e,n){return b(this,t,e,n,!0)},u.prototype.lastIndexOf=function(t,e,n){return b(this,t,e,n,!1)},u.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let s=!1;for(;;)switch(r){case"hex":return w(this,t,e,n);case"utf8":case"utf-8":return E(this,t,e,n);case"ascii":case"latin1":case"binary":return O(this,t,e,n);case"base64":return S(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,e,n);default:if(s)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),s=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const _=4096;function U(t,e,n){let r="";n=Math.min(t.length,n);for(let i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function F(t,e,n){let r="";n=Math.min(t.length,n);for(let i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function j(t,e,n){const r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);let i="";for(let r=e;r<n;++r)i+=Y[t[r]];return i}function P(t,e,n){const r=t.slice(e,n);let i="";for(let t=0;t<r.length-1;t+=2)i+=String.fromCharCode(r[t]+256*r[t+1]);return i}function B(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function I(t,e,n,r,i,s){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<s)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function x(t,e,n,r,i){q(e,r,i,t,n,7);let s=Number(e&BigInt(4294967295));t[n++]=s,s>>=8,t[n++]=s,s>>=8,t[n++]=s,s>>=8,t[n++]=s;let o=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o,n}function C(t,e,n,r,i){q(e,r,i,t,n,7);let s=Number(e&BigInt(4294967295));t[n+7]=s,s>>=8,t[n+6]=s,s>>=8,t[n+5]=s,s>>=8,t[n+4]=s;let o=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=o,o>>=8,t[n+2]=o,o>>=8,t[n+1]=o,o>>=8,t[n]=o,n+8}function k(t,e,n,r,i,s){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(t,e,n,r,s){return e=+e,n>>>=0,s||k(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function L(t,e,n,r,s){return e=+e,n>>>=0,s||k(t,0,n,8),i.write(t,e,n,r,52,8),n+8}u.prototype.slice=function(t,e){const n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);const r=this.subarray(t,e);return Object.setPrototypeOf(r,u.prototype),r},u.prototype.readUintLE=u.prototype.readUIntLE=function(t,e,n){t>>>=0,e>>>=0,n||B(t,e,this.length);let r=this[t],i=1,s=0;for(;++s<e&&(i*=256);)r+=this[t+s]*i;return r},u.prototype.readUintBE=u.prototype.readUIntBE=function(t,e,n){t>>>=0,e>>>=0,n||B(t,e,this.length);let r=this[t+--e],i=1;for(;e>0&&(i*=256);)r+=this[t+--e]*i;return r},u.prototype.readUint8=u.prototype.readUInt8=function(t,e){return t>>>=0,e||B(t,1,this.length),this[t]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,e){return t>>>=0,e||B(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,e){return t>>>=0,e||B(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,e){return t>>>=0,e||B(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,e){return t>>>=0,e||B(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readBigUInt64LE=Q((function(t){$(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||H(t,this.length-8);const r=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,i=this[++t]+256*this[++t]+65536*this[++t]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))})),u.prototype.readBigUInt64BE=Q((function(t){$(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||H(t,this.length-8);const r=e*2**24+65536*this[++t]+256*this[++t]+this[++t],i=this[++t]*2**24+65536*this[++t]+256*this[++t]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)})),u.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||B(t,e,this.length);let r=this[t],i=1,s=0;for(;++s<e&&(i*=256);)r+=this[t+s]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||B(t,e,this.length);let r=e,i=1,s=this[t+--r];for(;r>0&&(i*=256);)s+=this[t+--r]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*e)),s},u.prototype.readInt8=function(t,e){return t>>>=0,e||B(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){t>>>=0,e||B(t,2,this.length);const n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){t>>>=0,e||B(t,2,this.length);const n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return t>>>=0,e||B(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return t>>>=0,e||B(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readBigInt64LE=Q((function(t){$(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||H(t,this.length-8);const r=this[t+4]+256*this[t+5]+65536*this[t+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)})),u.prototype.readBigInt64BE=Q((function(t){$(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||H(t,this.length-8);const r=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(r)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+n)})),u.prototype.readFloatLE=function(t,e){return t>>>=0,e||B(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t>>>=0,e||B(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t>>>=0,e||B(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t>>>=0,e||B(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e>>>=0,n>>>=0,!r){I(this,t,e,n,Math.pow(2,8*n)-1,0)}let i=1,s=0;for(this[e]=255&t;++s<n&&(i*=256);)this[e+s]=t/i&255;return e+n},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,e,n,r){if(t=+t,e>>>=0,n>>>=0,!r){I(this,t,e,n,Math.pow(2,8*n)-1,0)}let i=n-1,s=1;for(this[e+i]=255&t;--i>=0&&(s*=256);)this[e+i]=t/s&255;return e+n},u.prototype.writeUint8=u.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||I(this,t,e,1,255,0),this[e]=255&t,e+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||I(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||I(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||I(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||I(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeBigUInt64LE=Q((function(t,e=0){return x(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeBigUInt64BE=Q((function(t,e=0){return C(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);I(this,t,e,n,r-1,-r)}let i=0,s=1,o=0;for(this[e]=255&t;++i<n&&(s*=256);)t<0&&0===o&&0!==this[e+i-1]&&(o=1),this[e+i]=(t/s|0)-o&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);I(this,t,e,n,r-1,-r)}let i=n-1,s=1,o=0;for(this[e+i]=255&t;--i>=0&&(s*=256);)t<0&&0===o&&0!==this[e+i+1]&&(o=1),this[e+i]=(t/s|0)-o&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||I(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||I(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||I(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||I(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||I(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeBigInt64LE=Q((function(t,e=0){return x(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeBigInt64BE=Q((function(t,e=0){return C(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeFloatLE=function(t,e,n){return N(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return N(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return L(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return L(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);const i=r-n;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,n,r):Uint8Array.prototype.set.call(t,this.subarray(n,r),e),i},u.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===t.length){const e=t.charCodeAt(0);("utf8"===r&&e<128||"latin1"===r)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;let i;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(i=e;i<n;++i)this[i]=t;else{const s=u.isBuffer(t)?t:u.from(t,r),o=s.length;if(0===o)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<n-e;++i)this[i+e]=s[i%o]}return this};const D={};function M(t,e,n){D[t]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function z(t){let e="",n=t.length;const r="-"===t[0]?1:0;for(;n>=r+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function q(t,e,n,r,i,s){if(t>n||t<e){const r="bigint"==typeof e?"n":"";let i;throw i=s>3?0===e||e===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(s+1)}${r}`:`>= -(2${r} ** ${8*(s+1)-1}${r}) and < 2 ** ${8*(s+1)-1}${r}`:`>= ${e}${r} and <= ${n}${r}`,new D.ERR_OUT_OF_RANGE("value",i,t)}!function(t,e,n){$(e,"offset"),void 0!==t[e]&&void 0!==t[e+n]||H(e,t.length-(n+1))}(r,i,s)}function $(t,e){if("number"!=typeof t)throw new D.ERR_INVALID_ARG_TYPE(e,"number",t)}function H(t,e,n){if(Math.floor(t)!==t)throw $(t,n),new D.ERR_OUT_OF_RANGE(n||"offset","an integer",t);if(e<0)throw new D.ERR_BUFFER_OUT_OF_BOUNDS;throw new D.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${e}`,t)}M("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),M("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),M("ERR_OUT_OF_RANGE",(function(t,e,n){let r=`The value of "${t}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=z(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=z(i)),i+="n"),r+=` It must be ${e}. Received ${i}`,r}),RangeError);const J=/[^+/0-9A-Za-z-_]/g;function V(t,e){let n;e=e||1/0;const r=t.length;let i=null;const s=[];for(let o=0;o<r;++o){if(n=t.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&s.push(239,191,189);continue}if(o+1===r){(e-=3)>-1&&s.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&s.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&s.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;s.push(n)}else if(n<2048){if((e-=2)<0)break;s.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;s.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return s}function W(t){return r.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(J,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function K(t,e,n,r){let i;for(i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function G(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function X(t){return t!=t}const Y=function(){const t="0123456789abcdef",e=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)e[r+i]=t[n]+t[i]}return e}();function Q(t){return"undefined"==typeof BigInt?Z:t}function Z(){throw new Error("BigInt not supported")}},232:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parse=function(t,e){const n=new a,r=t.length;if(r<2)return n;const i=e?.decode||l;let s=0;do{const e=t.indexOf("=",s);if(-1===e)break;const o=t.indexOf(";",s),a=-1===o?r:o;if(e>a){s=t.lastIndexOf(";",e-1)+1;continue}const l=u(t,s,e),f=c(t,e,l),d=t.slice(l,f);if(void 0===n[d]){let r=u(t,e+1,a),s=c(t,a,r);const o=i(t.slice(r,s));n[d]=o}s=a+1}while(s<r);return n},e.serialize=function(t,e,a){const u=a?.encode||encodeURIComponent;if(!n.test(t))throw new TypeError(`argument name is invalid: ${t}`);const c=u(e);if(!r.test(c))throw new TypeError(`argument val is invalid: ${e}`);let l=t+"="+c;if(!a)return l;if(void 0!==a.maxAge){if(!Number.isInteger(a.maxAge))throw new TypeError(`option maxAge is invalid: ${a.maxAge}`);l+="; Max-Age="+a.maxAge}if(a.domain){if(!i.test(a.domain))throw new TypeError(`option domain is invalid: ${a.domain}`);l+="; Domain="+a.domain}if(a.path){if(!s.test(a.path))throw new TypeError(`option path is invalid: ${a.path}`);l+="; Path="+a.path}if(a.expires){if(!function(t){return"[object Date]"===o.call(t)}(a.expires)||!Number.isFinite(a.expires.valueOf()))throw new TypeError(`option expires is invalid: ${a.expires}`);l+="; Expires="+a.expires.toUTCString()}a.httpOnly&&(l+="; HttpOnly");a.secure&&(l+="; Secure");a.partitioned&&(l+="; Partitioned");if(a.priority){switch("string"==typeof a.priority?a.priority.toLowerCase():void 0){case"low":l+="; Priority=Low";break;case"medium":l+="; Priority=Medium";break;case"high":l+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${a.priority}`)}}if(a.sameSite){switch("string"==typeof a.sameSite?a.sameSite.toLowerCase():a.sameSite){case!0:case"strict":l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"none":l+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${a.sameSite}`)}}return l};const n=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,r=/^[\u0021-\u003A\u003C-\u007E]*$/,i=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,s=/^[\u0020-\u003A\u003D-\u007E]*$/,o=Object.prototype.toString,a=(()=>{const t=function(){};return t.prototype=Object.create(null),t})();function u(t,e,n){do{const n=t.charCodeAt(e);if(32!==n&&9!==n)return e}while(++e<n);return n}function c(t,e,n){for(;e>n;){const n=t.charCodeAt(--e);if(32!==n&&9!==n)return e+1}return n}function l(t){if(-1===t.indexOf("%"))return t;try{return decodeURIComponent(t)}catch(e){return t}}},542:(t,e,n)=>{"use strict";t.exports=n(964).polyfill()},964:function(t,e,n){t.exports=function(){"use strict";function t(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)}function e(t){return"function"==typeof t}var r=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},i=0,s=void 0,o=void 0,a=function(t,e){w[i]=t,w[i+1]=e,2===(i+=2)&&(o?o(E):S())};function u(t){o=t}function c(t){a=t}var l="undefined"!=typeof window?window:void 0,f=l||{},d=f.MutationObserver||f.WebKitMutationObserver,h="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),p="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function g(){return function(){return process.nextTick(E)}}function y(){return void 0!==s?function(){s(E)}:v()}function m(){var t=0,e=new d(E),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function b(){var t=new MessageChannel;return t.port1.onmessage=E,function(){return t.port2.postMessage(0)}}function v(){var t=setTimeout;return function(){return t(E,1)}}var w=new Array(1e3);function E(){for(var t=0;t<i;t+=2)(0,w[t])(w[t+1]),w[t]=void 0,w[t+1]=void 0;i=0}function O(){try{var t=Function("return this")().require("vertx");return s=t.runOnLoop||t.runOnContext,y()}catch(t){return v()}}var S=void 0;function A(t,e){var n=this,r=new this.constructor(_);void 0===r[T]&&W(r);var i=n._state;if(i){var s=arguments[i-1];a((function(){return $(i,r,s,n._result)}))}else z(n,r,t,e);return r}function R(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(_);return N(n,t),n}S=h?g():d?m():p?b():void 0===l?O():v();var T=Math.random().toString(36).substring(2);function _(){}var U=void 0,F=1,j=2;function P(){return new TypeError("You cannot resolve a promise with itself")}function B(){return new TypeError("A promises callback cannot return that same promise.")}function I(t,e,n,r){try{t.call(e,n,r)}catch(t){return t}}function x(t,e,n){a((function(t){var r=!1,i=I(n,e,(function(n){r||(r=!0,e!==n?N(t,n):D(t,n))}),(function(e){r||(r=!0,M(t,e))}),"Settle: "+(t._label||" unknown promise"));!r&&i&&(r=!0,M(t,i))}),t)}function C(t,e){e._state===F?D(t,e._result):e._state===j?M(t,e._result):z(e,void 0,(function(e){return N(t,e)}),(function(e){return M(t,e)}))}function k(t,n,r){n.constructor===t.constructor&&r===A&&n.constructor.resolve===R?C(t,n):void 0===r?D(t,n):e(r)?x(t,n,r):D(t,n)}function N(e,n){if(e===n)M(e,P());else if(t(n)){var r=void 0;try{r=n.then}catch(t){return void M(e,t)}k(e,n,r)}else D(e,n)}function L(t){t._onerror&&t._onerror(t._result),q(t)}function D(t,e){t._state===U&&(t._result=e,t._state=F,0!==t._subscribers.length&&a(q,t))}function M(t,e){t._state===U&&(t._state=j,t._result=e,a(L,t))}function z(t,e,n,r){var i=t._subscribers,s=i.length;t._onerror=null,i[s]=e,i[s+F]=n,i[s+j]=r,0===s&&t._state&&a(q,t)}function q(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r=void 0,i=void 0,s=t._result,o=0;o<e.length;o+=3)r=e[o],i=e[o+n],r?$(n,r,i,s):i(s);t._subscribers.length=0}}function $(t,n,r,i){var s=e(r),o=void 0,a=void 0,u=!0;if(s){try{o=r(i)}catch(t){u=!1,a=t}if(n===o)return void M(n,B())}else o=i;n._state!==U||(s&&u?N(n,o):!1===u?M(n,a):t===F?D(n,o):t===j&&M(n,o))}function H(t,e){try{e((function(e){N(t,e)}),(function(e){M(t,e)}))}catch(e){M(t,e)}}var J=0;function V(){return J++}function W(t){t[T]=J++,t._state=void 0,t._result=void 0,t._subscribers=[]}function K(){return new Error("Array Methods must be provided an Array")}var G=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(_),this.promise[T]||W(this.promise),r(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?D(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&D(this.promise,this._result))):M(this.promise,K())}return t.prototype._enumerate=function(t){for(var e=0;this._state===U&&e<t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,r=n.resolve;if(r===R){var i=void 0,s=void 0,o=!1;try{i=t.then}catch(t){o=!0,s=t}if(i===A&&t._state!==U)this._settledAt(t._state,e,t._result);else if("function"!=typeof i)this._remaining--,this._result[e]=t;else if(n===et){var a=new n(_);o?M(a,s):k(a,t,i),this._willSettleAt(a,e)}else this._willSettleAt(new n((function(e){return e(t)})),e)}else this._willSettleAt(r(t),e)},t.prototype._settledAt=function(t,e,n){var r=this.promise;r._state===U&&(this._remaining--,t===j?M(r,n):this._result[e]=n),0===this._remaining&&D(r,this._result)},t.prototype._willSettleAt=function(t,e){var n=this;z(t,void 0,(function(t){return n._settledAt(F,e,t)}),(function(t){return n._settledAt(j,e,t)}))},t}();function X(t){return new G(this,t).promise}function Y(t){var e=this;return r(t)?new e((function(n,r){for(var i=t.length,s=0;s<i;s++)e.resolve(t[s]).then(n,r)})):new e((function(t,e){return e(new TypeError("You must pass an array to race."))}))}function Q(t){var e=new this(_);return M(e,t),e}function Z(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function tt(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var et=function(){function t(e){this[T]=V(),this._result=this._state=void 0,this._subscribers=[],_!==e&&("function"!=typeof e&&Z(),this instanceof t?H(this,e):tt())}return t.prototype.catch=function(t){return this.then(null,t)},t.prototype.finally=function(t){var n=this,r=n.constructor;return e(t)?n.then((function(e){return r.resolve(t()).then((function(){return e}))}),(function(e){return r.resolve(t()).then((function(){throw e}))})):n.then(t,t)},t}();function nt(){var t=void 0;if(void 0!==n.g)t=n.g;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var r=null;try{r=Object.prototype.toString.call(e.resolve())}catch(t){}if("[object Promise]"===r&&!e.cast)return}t.Promise=et}return et.prototype.then=A,et.all=X,et.race=Y,et.resolve=R,et.reject=Q,et._setScheduler=u,et._setAsap=c,et._asap=a,et.polyfill=nt,et.Promise=et,et}()},251:(t,e)=>{e.read=function(t,e,n,r,i){var s,o,a=8*i-r-1,u=(1<<a)-1,c=u>>1,l=-7,f=n?i-1:0,d=n?-1:1,h=t[e+f];for(f+=d,s=h&(1<<-l)-1,h>>=-l,l+=a;l>0;s=256*s+t[e+f],f+=d,l-=8);for(o=s&(1<<-l)-1,s>>=-l,l+=r;l>0;o=256*o+t[e+f],f+=d,l-=8);if(0===s)s=1-c;else{if(s===u)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,r),s-=c}return(h?-1:1)*o*Math.pow(2,s-r)},e.write=function(t,e,n,r,i,s){var o,a,u,c=8*s-i-1,l=(1<<c)-1,f=l>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:s-1,p=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=l):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),(e+=o+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(o++,u/=2),o+f>=l?(a=0,o=l):o+f>=1?(a=(e*u-1)*Math.pow(2,i),o+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;t[n+h]=255&a,h+=p,a/=256,i-=8);for(o=o<<i|a,c+=i;c>0;t[n+h]=255&o,h+=p,o/=256,c-=8);t[n+h-p]|=128*g}},425:(t,e,n)=>{"use strict";function r(t,e){return function(){return t.apply(e,arguments)}}const{toString:i}=Object.prototype,{getPrototypeOf:s}=Object,o=(a=Object.create(null),t=>{const e=i.call(t);return a[e]||(a[e]=e.slice(8,-1).toLowerCase())});var a;const u=t=>(t=t.toLowerCase(),e=>o(e)===t),c=t=>e=>typeof e===t,{isArray:l}=Array,f=c("undefined");const d=u("ArrayBuffer");const h=c("string"),p=c("function"),g=c("number"),y=t=>null!==t&&"object"==typeof t,m=t=>{if("object"!==o(t))return!1;const e=s(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},b=u("Date"),v=u("File"),w=u("Blob"),E=u("FileList"),O=u("URLSearchParams"),[S,A,R,T]=["ReadableStream","Request","Response","Headers"].map(u);function _(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,i;if("object"!=typeof t&&(t=[t]),l(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),s=i.length;let o;for(r=0;r<s;r++)o=i[r],e.call(null,t[o],o,t)}}function U(t,e){e=e.toLowerCase();const n=Object.keys(t);let r,i=n.length;for(;i-- >0;)if(r=n[i],e===r.toLowerCase())return r;return null}const F="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,j=t=>!f(t)&&t!==F;const P=(B="undefined"!=typeof Uint8Array&&s(Uint8Array),t=>B&&t instanceof B);var B;const I=u("HTMLFormElement"),x=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),C=u("RegExp"),k=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};_(n,((n,i)=>{let s;!1!==(s=e(n,i,t))&&(r[i]=s||n)})),Object.defineProperties(t,r)};const N=u("AsyncFunction"),L=(D="function"==typeof setImmediate,M=p(F.postMessage),D?setImmediate:M?(z=`axios@${Math.random()}`,q=[],F.addEventListener("message",(({source:t,data:e})=>{t===F&&e===z&&q.length&&q.shift()()}),!1),t=>{q.push(t),F.postMessage(z,"*")}):t=>setTimeout(t));var D,M,z,q;const $="undefined"!=typeof queueMicrotask?queueMicrotask.bind(F):"undefined"!=typeof process&&process.nextTick||L;var H={isArray:l,isArrayBuffer:d,isBuffer:function(t){return null!==t&&!f(t)&&null!==t.constructor&&!f(t.constructor)&&p(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||p(t.append)&&("formdata"===(e=o(t))||"object"===e&&p(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&d(t.buffer),e},isString:h,isNumber:g,isBoolean:t=>!0===t||!1===t,isObject:y,isPlainObject:m,isReadableStream:S,isRequest:A,isResponse:R,isHeaders:T,isUndefined:f,isDate:b,isFile:v,isBlob:w,isRegExp:C,isFunction:p,isStream:t=>y(t)&&p(t.pipe),isURLSearchParams:O,isTypedArray:P,isFileList:E,forEach:_,merge:function t(){const{caseless:e}=j(this)&&this||{},n={},r=(r,i)=>{const s=e&&U(n,i)||i;m(n[s])&&m(r)?n[s]=t(n[s],r):m(r)?n[s]=t({},r):l(r)?n[s]=r.slice():n[s]=r};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&_(arguments[t],r);return n},extend:(t,e,n,{allOwnKeys:i}={})=>(_(e,((e,i)=>{n&&p(e)?t[i]=r(e,n):t[i]=e}),{allOwnKeys:i}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,r)=>{let i,o,a;const u={};if(e=e||{},null==t)return e;do{for(i=Object.getOwnPropertyNames(t),o=i.length;o-- >0;)a=i[o],r&&!r(a,t,e)||u[a]||(e[a]=t[a],u[a]=!0);t=!1!==n&&s(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:o,kindOfTest:u,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return-1!==r&&r===n},toArray:t=>{if(!t)return null;if(l(t))return t;let e=t.length;if(!g(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=n.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const r=[];for(;null!==(n=t.exec(e));)r.push(n);return r},isHTMLForm:I,hasOwnProperty:x,hasOwnProp:x,reduceDescriptors:k,freezeMethods:t=>{k(t,((e,n)=>{if(p(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=t[n];p(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(t,e)=>{const n={},r=t=>{t.forEach((t=>{n[t]=!0}))};return l(t)?r(t):r(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:U,global:F,isContextDefined:j,isSpecCompliantForm:function(t){return!!(t&&p(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),n=(t,r)=>{if(y(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[r]=t;const i=l(t)?[]:{};return _(t,((t,e)=>{const s=n(t,r+1);!f(s)&&(i[e]=s)})),e[r]=void 0,i}}return t};return n(t,0)},isAsyncFn:N,isThenable:t=>t&&(y(t)||p(t))&&p(t.then)&&p(t.catch),setImmediate:L,asap:$};function J(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}H.inherits(J,Error,{toJSON:function(){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:H.toJSONObject(this.config),code:this.code,status:this.status}}});const V=J.prototype,W={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{W[t]={value:t}})),Object.defineProperties(J,W),Object.defineProperty(V,"isAxiosError",{value:!0}),J.from=(t,e,n,r,i,s)=>{const o=Object.create(V);return H.toFlatObject(t,o,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),J.call(o,t.message,e,n,r,i),o.cause=t,o.name=t.name,s&&Object.assign(o,s),o};function K(t){return H.isPlainObject(t)||H.isArray(t)}function G(t){return H.endsWith(t,"[]")?t.slice(0,-2):t}function X(t,e,n){return t?t.concat(e).map((function(t,e){return t=G(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}const Y=H.toFlatObject(H,{},null,(function(t){return/^is[A-Z]/.test(t)}));function Q(t,e,n){if(!H.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const r=(n=H.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!H.isUndefined(e[t])}))).metaTokens,i=n.visitor||c,s=n.dots,o=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&H.isSpecCompliantForm(e);if(!H.isFunction(i))throw new TypeError("visitor must be a function");function u(t){if(null===t)return"";if(H.isDate(t))return t.toISOString();if(!a&&H.isBlob(t))throw new J("Blob is not supported. Use a Buffer instead.");return H.isArrayBuffer(t)||H.isTypedArray(t)?a&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function c(t,n,i){let a=t;if(t&&!i&&"object"==typeof t)if(H.endsWith(n,"{}"))n=r?n:n.slice(0,-2),t=JSON.stringify(t);else if(H.isArray(t)&&function(t){return H.isArray(t)&&!t.some(K)}(t)||(H.isFileList(t)||H.endsWith(n,"[]"))&&(a=H.toArray(t)))return n=G(n),a.forEach((function(t,r){!H.isUndefined(t)&&null!==t&&e.append(!0===o?X([n],r,s):null===o?n:n+"[]",u(t))})),!1;return!!K(t)||(e.append(X(i,n,s),u(t)),!1)}const l=[],f=Object.assign(Y,{defaultVisitor:c,convertValue:u,isVisitable:K});if(!H.isObject(t))throw new TypeError("data must be an object");return function t(n,r){if(!H.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),H.forEach(n,(function(n,s){!0===(!(H.isUndefined(n)||null===n)&&i.call(e,n,H.isString(s)?s.trim():s,r,f))&&t(n,r?r.concat(s):[s])})),l.pop()}}(t),e}function Z(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function tt(t,e){this._pairs=[],t&&Q(t,this,e)}const et=tt.prototype;function nt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rt(t,e,n){if(!e)return t;const r=n&&n.encode||nt;H.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let s;if(s=i?i(e,n):H.isURLSearchParams(e)?e.toString():new tt(e,n).toString(r),s){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+s}return t}et.append=function(t,e){this._pairs.push([t,e])},et.toString=function(t){const e=t?function(e){return t.call(this,e,Z)}:Z;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};var it=class{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){H.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},st={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ot={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:tt,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const at="undefined"!=typeof window&&"undefined"!=typeof document,ut="object"==typeof navigator&&navigator||void 0,ct=at&&(!ut||["ReactNative","NativeScript","NS"].indexOf(ut.product)<0),lt="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ft=at&&window.location.href||"http://localhost";var dt={...Object.freeze({__proto__:null,hasBrowserEnv:at,hasStandardBrowserWebWorkerEnv:lt,hasStandardBrowserEnv:ct,navigator:ut,origin:ft}),...ot};function ht(t){function e(t,n,r,i){let s=t[i++];if("__proto__"===s)return!0;const o=Number.isFinite(+s),a=i>=t.length;if(s=!s&&H.isArray(r)?r.length:s,a)return H.hasOwnProp(r,s)?r[s]=[r[s],n]:r[s]=n,!o;r[s]&&H.isObject(r[s])||(r[s]=[]);return e(t,n,r[s],i)&&H.isArray(r[s])&&(r[s]=function(t){const e={},n=Object.keys(t);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],e[s]=t[s];return e}(r[s])),!o}if(H.isFormData(t)&&H.isFunction(t.entries)){const n={};return H.forEachEntry(t,((t,r)=>{e(function(t){return H.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),r,n,0)})),n}return null}const pt={transitional:st,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,i=H.isObject(t);i&&H.isHTMLForm(t)&&(t=new FormData(t));if(H.isFormData(t))return r?JSON.stringify(ht(t)):t;if(H.isArrayBuffer(t)||H.isBuffer(t)||H.isStream(t)||H.isFile(t)||H.isBlob(t)||H.isReadableStream(t))return t;if(H.isArrayBufferView(t))return t.buffer;if(H.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return Q(t,new dt.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,r){return dt.isNode&&H.isBuffer(t)?(this.append(e,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((s=H.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return Q(s?{"files[]":t}:t,e&&new e,this.formSerializer)}}return i||r?(e.setContentType("application/json",!1),function(t,e,n){if(H.isString(t))try{return(e||JSON.parse)(t),H.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||pt.transitional,n=e&&e.forcedJSONParsing,r="json"===this.responseType;if(H.isResponse(t)||H.isReadableStream(t))return t;if(t&&H.isString(t)&&(n&&!this.responseType||r)){const n=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(t){if(n){if("SyntaxError"===t.name)throw J.from(t,J.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:dt.classes.FormData,Blob:dt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};H.forEach(["delete","get","head","post","put","patch"],(t=>{pt.headers[t]={}}));var gt=pt;const yt=H.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"]);const mt=Symbol("internals");function bt(t){return t&&String(t).trim().toLowerCase()}function vt(t){return!1===t||null==t?t:H.isArray(t)?t.map(vt):String(t)}function wt(t,e,n,r,i){return H.isFunction(r)?r.call(this,e,n):(i&&(e=n),H.isString(e)?H.isString(r)?-1!==e.indexOf(r):H.isRegExp(r)?r.test(e):void 0:void 0)}class Et{constructor(t){t&&this.set(t)}set(t,e,n){const r=this;function i(t,e,n){const i=bt(e);if(!i)throw new Error("header name must be a non-empty string");const s=H.findKey(r,i);(!s||void 0===r[s]||!0===n||void 0===n&&!1!==r[s])&&(r[s||e]=vt(t))}const s=(t,e)=>H.forEach(t,((t,n)=>i(t,n,e)));if(H.isPlainObject(t)||t instanceof this.constructor)s(t,e);else if(H.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))s((t=>{const e={};let n,r,i;return t&&t.split("\n").forEach((function(t){i=t.indexOf(":"),n=t.substring(0,i).trim().toLowerCase(),r=t.substring(i+1).trim(),!n||e[n]&&yt[n]||("set-cookie"===n?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)})),e})(t),e);else if(H.isHeaders(t))for(const[e,r]of t.entries())i(r,e,n);else null!=t&&i(e,t,n);return this}get(t,e){if(t=bt(t)){const n=H.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}(t);if(H.isFunction(e))return e.call(this,t,n);if(H.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=bt(t)){const n=H.findKey(this,t);return!(!n||void 0===this[n]||e&&!wt(0,this[n],n,e))}return!1}delete(t,e){const n=this;let r=!1;function i(t){if(t=bt(t)){const i=H.findKey(n,t);!i||e&&!wt(0,n[i],i,e)||(delete n[i],r=!0)}}return H.isArray(t)?t.forEach(i):i(t),r}clear(t){const e=Object.keys(this);let n=e.length,r=!1;for(;n--;){const i=e[n];t&&!wt(0,this[i],i,t,!0)||(delete this[i],r=!0)}return r}normalize(t){const e=this,n={};return H.forEach(this,((r,i)=>{const s=H.findKey(n,i);if(s)return e[s]=vt(r),void delete e[i];const o=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,n)=>e.toUpperCase()+n))}(i):String(i).trim();o!==i&&delete e[i],e[o]=vt(r),n[o]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return H.forEach(this,((n,r)=>{null!=n&&!1!==n&&(e[r]=t&&H.isArray(n)?n.join(", "):n)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach((t=>n.set(t))),n}static accessor(t){const e=(this[mt]=this[mt]={accessors:{}}).accessors,n=this.prototype;function r(t){const r=bt(t);e[r]||(!function(t,e){const n=H.toCamelCase(" "+e);["get","set","has"].forEach((r=>{Object.defineProperty(t,r+n,{value:function(t,n,i){return this[r].call(this,e,t,n,i)},configurable:!0})}))}(n,t),e[r]=!0)}return H.isArray(t)?t.forEach(r):r(t),this}}Et.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),H.reduceDescriptors(Et.prototype,(({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}})),H.freezeMethods(Et);var Ot=Et;function St(t,e){const n=this||gt,r=e||n,i=Ot.from(r.headers);let s=r.data;return H.forEach(t,(function(t){s=t.call(n,s,i.normalize(),e?e.status:void 0)})),i.normalize(),s}function At(t){return!(!t||!t.__CANCEL__)}function Rt(t,e,n){J.call(this,null==t?"canceled":t,J.ERR_CANCELED,e,n),this.name="CanceledError"}function Tt(t,e,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(new J("Request failed with status code "+n.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}H.inherits(Rt,J,{__CANCEL__:!0});const _t=(t,e,n=3)=>{let r=0;const i=function(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i,s=0,o=0;return e=void 0!==e?e:1e3,function(a){const u=Date.now(),c=r[o];i||(i=u),n[s]=a,r[s]=u;let l=o,f=0;for(;l!==s;)f+=n[l++],l%=t;if(s=(s+1)%t,s===o&&(o=(o+1)%t),u-i<e)return;const d=c&&u-c;return d?Math.round(1e3*f/d):void 0}}(50,250);return function(t,e){let n,r,i=0,s=1e3/e;const o=(e,s=Date.now())=>{i=s,n=null,r&&(clearTimeout(r),r=null),t.apply(null,e)};return[(...t)=>{const e=Date.now(),a=e-i;a>=s?o(t,e):(n=t,r||(r=setTimeout((()=>{r=null,o(n)}),s-a)))},()=>n&&o(n)]}((n=>{const s=n.loaded,o=n.lengthComputable?n.total:void 0,a=s-r,u=i(a);r=s;t({loaded:s,total:o,progress:o?s/o:void 0,bytes:a,rate:u||void 0,estimated:u&&o&&s<=o?(o-s)/u:void 0,event:n,lengthComputable:null!=o,[e?"download":"upload"]:!0})}),n)},Ut=(t,e)=>{const n=null!=t;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Ft=t=>(...e)=>H.asap((()=>t(...e)));var jt=dt.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,dt.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(dt.origin),dt.navigator&&/(msie|trident)/i.test(dt.navigator.userAgent)):()=>!0,Pt=dt.hasStandardBrowserEnv?{write(t,e,n,r,i,s){const o=[t+"="+encodeURIComponent(e)];H.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),H.isString(r)&&o.push("path="+r),H.isString(i)&&o.push("domain="+i),!0===s&&o.push("secure"),document.cookie=o.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Bt(t,e,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);return t&&r||0==n?function(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}const It=t=>t instanceof Ot?{...t}:t;function xt(t,e){e=e||{};const n={};function r(t,e,n,r){return H.isPlainObject(t)&&H.isPlainObject(e)?H.merge.call({caseless:r},t,e):H.isPlainObject(e)?H.merge({},e):H.isArray(e)?e.slice():e}function i(t,e,n,i){return H.isUndefined(e)?H.isUndefined(t)?void 0:r(void 0,t,0,i):r(t,e,0,i)}function s(t,e){if(!H.isUndefined(e))return r(void 0,e)}function o(t,e){return H.isUndefined(e)?H.isUndefined(t)?void 0:r(void 0,t):r(void 0,e)}function a(n,i,s){return s in e?r(n,i):s in t?r(void 0,n):void 0}const u={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(t,e,n)=>i(It(t),It(e),0,!0)};return H.forEach(Object.keys(Object.assign({},t,e)),(function(r){const s=u[r]||i,o=s(t[r],e[r],r);H.isUndefined(o)&&s!==a||(n[r]=o)})),n}var Ct=t=>{const e=xt({},t);let n,{data:r,withXSRFToken:i,xsrfHeaderName:s,xsrfCookieName:o,headers:a,auth:u}=e;if(e.headers=a=Ot.from(a),e.url=rt(Bt(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),u&&a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),H.isFormData(r))if(dt.hasStandardBrowserEnv||dt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(n=a.getContentType())){const[t,...e]=n?n.split(";").map((t=>t.trim())).filter(Boolean):[];a.setContentType([t||"multipart/form-data",...e].join("; "))}if(dt.hasStandardBrowserEnv&&(i&&H.isFunction(i)&&(i=i(e)),i||!1!==i&&jt(e.url))){const t=s&&o&&Pt.read(o);t&&a.set(s,t)}return e};var kt="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,n){const r=Ct(t);let i=r.data;const s=Ot.from(r.headers).normalize();let o,a,u,c,l,{responseType:f,onUploadProgress:d,onDownloadProgress:h}=r;function p(){c&&c(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(o),r.signal&&r.signal.removeEventListener("abort",o)}let g=new XMLHttpRequest;function y(){if(!g)return;const r=Ot.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());Tt((function(t){e(t),p()}),(function(t){n(t),p()}),{data:f&&"text"!==f&&"json"!==f?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:t,request:g}),g=null}g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout,"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(y)},g.onabort=function(){g&&(n(new J("Request aborted",J.ECONNABORTED,t,g)),g=null)},g.onerror=function(){n(new J("Network Error",J.ERR_NETWORK,t,g)),g=null},g.ontimeout=function(){let e=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||st;r.timeoutErrorMessage&&(e=r.timeoutErrorMessage),n(new J(e,i.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,t,g)),g=null},void 0===i&&s.setContentType(null),"setRequestHeader"in g&&H.forEach(s.toJSON(),(function(t,e){g.setRequestHeader(e,t)})),H.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),f&&"json"!==f&&(g.responseType=r.responseType),h&&([u,l]=_t(h,!0),g.addEventListener("progress",u)),d&&g.upload&&([a,c]=_t(d),g.upload.addEventListener("progress",a),g.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(o=e=>{g&&(n(!e||e.type?new Rt(null,t,g):e),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(o),r.signal&&(r.signal.aborted?o():r.signal.addEventListener("abort",o)));const m=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(r.url);m&&-1===dt.protocols.indexOf(m)?n(new J("Unsupported protocol "+m+":",J.ERR_BAD_REQUEST,t)):g.send(i||null)}))};var Nt=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let n,r=new AbortController;const i=function(t){if(!n){n=!0,o();const e=t instanceof Error?t:this.reason;r.abort(e instanceof J?e:new Rt(e instanceof Error?e.message:e))}};let s=e&&setTimeout((()=>{s=null,i(new J(`timeout ${e} of ms exceeded`,J.ETIMEDOUT))}),e);const o=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach((t=>{t.unsubscribe?t.unsubscribe(i):t.removeEventListener("abort",i)})),t=null)};t.forEach((t=>t.addEventListener("abort",i)));const{signal:a}=r;return a.unsubscribe=()=>H.asap(o),a}};const Lt=function*(t,e){let n=t.byteLength;if(!e||n<e)return void(yield t);let r,i=0;for(;i<n;)r=i+e,yield t.slice(i,r),i=r},Dt=async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);const e=t.getReader();try{for(;;){const{done:t,value:n}=await e.read();if(t)break;yield n}}finally{await e.cancel()}},Mt=(t,e,n,r)=>{const i=async function*(t,e){for await(const n of Dt(t))yield*Lt(n,e)}(t,e);let s,o=0,a=t=>{s||(s=!0,r&&r(t))};return new ReadableStream({async pull(t){try{const{done:e,value:r}=await i.next();if(e)return a(),void t.close();let s=r.byteLength;if(n){let t=o+=s;n(t)}t.enqueue(new Uint8Array(r))}catch(t){throw a(t),t}},cancel:t=>(a(t),i.return())},{highWaterMark:2})},zt="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,qt=zt&&"function"==typeof ReadableStream,$t=zt&&("function"==typeof TextEncoder?(Ht=new TextEncoder,t=>Ht.encode(t)):async t=>new Uint8Array(await new Response(t).arrayBuffer()));var Ht;const Jt=(t,...e)=>{try{return!!t(...e)}catch(t){return!1}},Vt=qt&&Jt((()=>{let t=!1;const e=new Request(dt.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e})),Wt=qt&&Jt((()=>H.isReadableStream(new Response("").body))),Kt={stream:Wt&&(t=>t.body)};var Gt;zt&&(Gt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!Kt[t]&&(Kt[t]=H.isFunction(Gt[t])?e=>e[t]():(e,n)=>{throw new J(`Response type '${t}' is not supported`,J.ERR_NOT_SUPPORT,n)})})));const Xt=async(t,e)=>{const n=H.toFiniteNumber(t.getContentLength());return null==n?(async t=>{if(null==t)return 0;if(H.isBlob(t))return t.size;if(H.isSpecCompliantForm(t)){const e=new Request(dt.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength}return H.isArrayBufferView(t)||H.isArrayBuffer(t)?t.byteLength:(H.isURLSearchParams(t)&&(t+=""),H.isString(t)?(await $t(t)).byteLength:void 0)})(e):n};const Yt={http:null,xhr:kt,fetch:zt&&(async t=>{let{url:e,method:n,data:r,signal:i,cancelToken:s,timeout:o,onDownloadProgress:a,onUploadProgress:u,responseType:c,headers:l,withCredentials:f="same-origin",fetchOptions:d}=Ct(t);c=c?(c+"").toLowerCase():"text";let h,p=Nt([i,s&&s.toAbortSignal()],o);const g=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let y;try{if(u&&Vt&&"get"!==n&&"head"!==n&&0!==(y=await Xt(l,r))){let t,n=new Request(e,{method:"POST",body:r,duplex:"half"});if(H.isFormData(r)&&(t=n.headers.get("content-type"))&&l.setContentType(t),n.body){const[t,e]=Ut(y,_t(Ft(u)));r=Mt(n.body,65536,t,e)}}H.isString(f)||(f=f?"include":"omit");const i="credentials"in Request.prototype;h=new Request(e,{...d,signal:p,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:i?f:void 0});let s=await fetch(h);const o=Wt&&("stream"===c||"response"===c);if(Wt&&(a||o&&g)){const t={};["status","statusText","headers"].forEach((e=>{t[e]=s[e]}));const e=H.toFiniteNumber(s.headers.get("content-length")),[n,r]=a&&Ut(e,_t(Ft(a),!0))||[];s=new Response(Mt(s.body,65536,n,(()=>{r&&r(),g&&g()})),t)}c=c||"text";let m=await Kt[H.findKey(Kt,c)||"text"](s,t);return!o&&g&&g(),await new Promise(((e,n)=>{Tt(e,n,{data:m,headers:Ot.from(s.headers),status:s.status,statusText:s.statusText,config:t,request:h})}))}catch(e){if(g&&g(),e&&"TypeError"===e.name&&/fetch/i.test(e.message))throw Object.assign(new J("Network Error",J.ERR_NETWORK,t,h),{cause:e.cause||e});throw J.from(e,e&&e.code,t,h)}})};H.forEach(Yt,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));const Qt=t=>`- ${t}`,Zt=t=>H.isFunction(t)||null===t||!1===t;var te=t=>{t=H.isArray(t)?t:[t];const{length:e}=t;let n,r;const i={};for(let s=0;s<e;s++){let e;if(n=t[s],r=n,!Zt(n)&&(r=Yt[(e=String(n)).toLowerCase()],void 0===r))throw new J(`Unknown adapter '${e}'`);if(r)break;i[e||"#"+s]=r}if(!r){const t=Object.entries(i).map((([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build")));throw new J("There is no suitable adapter to dispatch the request "+(e?t.length>1?"since :\n"+t.map(Qt).join("\n"):" "+Qt(t[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function ee(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Rt(null,t)}function ne(t){ee(t),t.headers=Ot.from(t.headers),t.data=St.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return te(t.adapter||gt.adapter)(t).then((function(e){return ee(t),e.data=St.call(t,t.transformResponse,e),e.headers=Ot.from(e.headers),e}),(function(e){return At(e)||(ee(t),e&&e.response&&(e.response.data=St.call(t,t.transformResponse,e.response),e.response.headers=Ot.from(e.response.headers))),Promise.reject(e)}))}const re="1.8.3",ie={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{ie[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const se={};ie.transitional=function(t,e,n){function r(t,e){return"[Axios v1.8.3] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,i,s)=>{if(!1===t)throw new J(r(i," has been removed"+(e?" in "+e:"")),J.ERR_DEPRECATED);return e&&!se[i]&&(se[i]=!0,console.warn(r(i," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,i,s)}},ie.spelling=function(t){return(e,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};var oe={assertOptions:function(t,e,n){if("object"!=typeof t)throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const s=r[i],o=e[s];if(o){const e=t[s],n=void 0===e||o(e,s,t);if(!0!==n)throw new J("option "+s+" must be "+n,J.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new J("Unknown option "+s,J.ERR_BAD_OPTION)}},validators:ie};const ae=oe.validators;class ue{constructor(t){this.defaults=t,this.interceptors={request:new it,response:new it}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const n=e.stack?e.stack.replace(/^.+\n/,""):"";try{t.stack?n&&!String(t.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+n):t.stack=n}catch(t){}}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=xt(this.defaults,e);const{transitional:n,paramsSerializer:r,headers:i}=e;void 0!==n&&oe.assertOptions(n,{silentJSONParsing:ae.transitional(ae.boolean),forcedJSONParsing:ae.transitional(ae.boolean),clarifyTimeoutError:ae.transitional(ae.boolean)},!1),null!=r&&(H.isFunction(r)?e.paramsSerializer={serialize:r}:oe.assertOptions(r,{encode:ae.function,serialize:ae.function},!0)),void 0!==e.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),oe.assertOptions(e,{baseUrl:ae.spelling("baseURL"),withXsrfToken:ae.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let s=i&&H.merge(i.common,i[e.method]);i&&H.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete i[t]})),e.headers=Ot.concat(s,i);const o=[];let a=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(a=a&&t.synchronous,o.unshift(t.fulfilled,t.rejected))}));const u=[];let c;this.interceptors.response.forEach((function(t){u.push(t.fulfilled,t.rejected)}));let l,f=0;if(!a){const t=[ne.bind(this),void 0];for(t.unshift.apply(t,o),t.push.apply(t,u),l=t.length,c=Promise.resolve(e);f<l;)c=c.then(t[f++],t[f++]);return c}l=o.length;let d=e;for(f=0;f<l;){const t=o[f++],e=o[f++];try{d=t(d)}catch(t){e.call(this,t);break}}try{c=ne.call(this,d)}catch(t){return Promise.reject(t)}for(f=0,l=u.length;f<l;)c=c.then(u[f++],u[f++]);return c}getUri(t){return rt(Bt((t=xt(this.defaults,t)).baseURL,t.url,t.allowAbsoluteUrls),t.params,t.paramsSerializer)}}H.forEach(["delete","get","head","options"],(function(t){ue.prototype[t]=function(e,n){return this.request(xt(n||{},{method:t,url:e,data:(n||{}).data}))}})),H.forEach(["post","put","patch"],(function(t){function e(e){return function(n,r,i){return this.request(xt(i||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ue.prototype[t]=e(),ue.prototype[t+"Form"]=e(!0)}));var ce=ue;class le{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const n=this;this.promise.then((t=>{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null})),this.promise.then=t=>{let e;const r=new Promise((t=>{n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t,r,i){n.reason||(n.reason=new Rt(t,r,i),e(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=e=>{t.abort(e)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new le((function(e){t=e})),cancel:t}}}var fe=le;const de={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent: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};Object.entries(de).forEach((([t,e])=>{de[e]=t}));var he=de;const pe=function t(e){const n=new ce(e),i=r(ce.prototype.request,n);return H.extend(i,ce.prototype,n,{allOwnKeys:!0}),H.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return t(xt(e,n))},i}(gt);pe.Axios=ce,pe.CanceledError=Rt,pe.CancelToken=fe,pe.isCancel=At,pe.VERSION=re,pe.toFormData=Q,pe.AxiosError=J,pe.Cancel=pe.CanceledError,pe.all=function(t){return Promise.all(t)},pe.spread=function(t){return function(e){return t.apply(null,e)}},pe.isAxiosError=function(t){return H.isObject(t)&&!0===t.isAxiosError},pe.mergeConfig=xt,pe.AxiosHeaders=Ot,pe.formToJSON=t=>ht(H.isHTMLForm(t)?new FormData(t):t),pe.getAdapter=te,pe.HttpStatusCode=he,pe.default=pe,t.exports=pe},182:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.validate=e.v7=e.v6ToV1=e.v6=e.v5=e.v4=e.v3=e.v1ToV6=e.v1=e.stringify=e.parse=e.NIL=e.MAX=void 0;var r=n(196);Object.defineProperty(e,"MAX",{enumerable:!0,get:function(){return r.default}});var i=n(465);Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return i.default}});var s=n(797);Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return s.default}});var o=n(11);Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return o.default}});var a=n(806);Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return a.default}});var u=n(568);Object.defineProperty(e,"v1ToV6",{enumerable:!0,get:function(){return u.default}});var c=n(591);Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return c.default}});var l=n(286);Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return l.default}});var f=n(557);Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return f.default}});var d=n(356);Object.defineProperty(e,"v6",{enumerable:!0,get:function(){return d.default}});var h=n(268);Object.defineProperty(e,"v6ToV1",{enumerable:!0,get:function(){return h.default}});var p=n(299);Object.defineProperty(e,"v7",{enumerable:!0,get:function(){return p.default}});var g=n(746);Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return g.default}});var y=n(770);Object.defineProperty(e,"version",{enumerable:!0,get:function(){return y.default}})},196:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default="ffffffff-ffff-ffff-ffff-ffffffffffff"},338:(t,e)=>{"use strict";function n(t){return 14+(t+64>>>9<<4)+1}function r(t,e){const n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function i(t,e,n,i,s,o){return r((a=r(r(e,t),r(i,o)))<<(u=s)|a>>>32-u,n);var a,u}function s(t,e,n,r,s,o,a){return i(e&n|~e&r,t,e,s,o,a)}function o(t,e,n,r,s,o,a){return i(e&r|n&~r,t,e,s,o,a)}function a(t,e,n,r,s,o,a){return i(e^n^r,t,e,s,o,a)}function u(t,e,n,r,s,o,a){return i(n^(e|~r),t,e,s,o,a)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(t){const e=new Uint8Array(4*t.length);for(let n=0;n<4*t.length;n++)e[n]=t[n>>2]>>>n%4*8&255;return e}(function(t,e){const i=new Uint32Array(n(e)).fill(0);i.set(t),i[e>>5]|=128<<e%32,i[i.length-1]=e,t=i;let c=1732584193,l=-271733879,f=-1732584194,d=271733878;for(let e=0;e<t.length;e+=16){const n=c,i=l,h=f,p=d;c=s(c,l,f,d,t[e],7,-680876936),d=s(d,c,l,f,t[e+1],12,-389564586),f=s(f,d,c,l,t[e+2],17,606105819),l=s(l,f,d,c,t[e+3],22,-1044525330),c=s(c,l,f,d,t[e+4],7,-176418897),d=s(d,c,l,f,t[e+5],12,1200080426),f=s(f,d,c,l,t[e+6],17,-1473231341),l=s(l,f,d,c,t[e+7],22,-45705983),c=s(c,l,f,d,t[e+8],7,1770035416),d=s(d,c,l,f,t[e+9],12,-1958414417),f=s(f,d,c,l,t[e+10],17,-42063),l=s(l,f,d,c,t[e+11],22,-1990404162),c=s(c,l,f,d,t[e+12],7,1804603682),d=s(d,c,l,f,t[e+13],12,-40341101),f=s(f,d,c,l,t[e+14],17,-1502002290),l=s(l,f,d,c,t[e+15],22,1236535329),c=o(c,l,f,d,t[e+1],5,-165796510),d=o(d,c,l,f,t[e+6],9,-1069501632),f=o(f,d,c,l,t[e+11],14,643717713),l=o(l,f,d,c,t[e],20,-373897302),c=o(c,l,f,d,t[e+5],5,-701558691),d=o(d,c,l,f,t[e+10],9,38016083),f=o(f,d,c,l,t[e+15],14,-660478335),l=o(l,f,d,c,t[e+4],20,-405537848),c=o(c,l,f,d,t[e+9],5,568446438),d=o(d,c,l,f,t[e+14],9,-1019803690),f=o(f,d,c,l,t[e+3],14,-187363961),l=o(l,f,d,c,t[e+8],20,1163531501),c=o(c,l,f,d,t[e+13],5,-1444681467),d=o(d,c,l,f,t[e+2],9,-51403784),f=o(f,d,c,l,t[e+7],14,1735328473),l=o(l,f,d,c,t[e+12],20,-1926607734),c=a(c,l,f,d,t[e+5],4,-378558),d=a(d,c,l,f,t[e+8],11,-2022574463),f=a(f,d,c,l,t[e+11],16,1839030562),l=a(l,f,d,c,t[e+14],23,-35309556),c=a(c,l,f,d,t[e+1],4,-1530992060),d=a(d,c,l,f,t[e+4],11,1272893353),f=a(f,d,c,l,t[e+7],16,-155497632),l=a(l,f,d,c,t[e+10],23,-1094730640),c=a(c,l,f,d,t[e+13],4,681279174),d=a(d,c,l,f,t[e],11,-358537222),f=a(f,d,c,l,t[e+3],16,-722521979),l=a(l,f,d,c,t[e+6],23,76029189),c=a(c,l,f,d,t[e+9],4,-640364487),d=a(d,c,l,f,t[e+12],11,-421815835),f=a(f,d,c,l,t[e+15],16,530742520),l=a(l,f,d,c,t[e+2],23,-995338651),c=u(c,l,f,d,t[e],6,-198630844),d=u(d,c,l,f,t[e+7],10,1126891415),f=u(f,d,c,l,t[e+14],15,-1416354905),l=u(l,f,d,c,t[e+5],21,-57434055),c=u(c,l,f,d,t[e+12],6,1700485571),d=u(d,c,l,f,t[e+3],10,-1894986606),f=u(f,d,c,l,t[e+10],15,-1051523),l=u(l,f,d,c,t[e+1],21,-2054922799),c=u(c,l,f,d,t[e+8],6,1873313359),d=u(d,c,l,f,t[e+15],10,-30611744),f=u(f,d,c,l,t[e+6],15,-1560198380),l=u(l,f,d,c,t[e+13],21,1309151649),c=u(c,l,f,d,t[e+4],6,-145523070),d=u(d,c,l,f,t[e+11],10,-1120210379),f=u(f,d,c,l,t[e+2],15,718787259),l=u(l,f,d,c,t[e+9],21,-343485551),c=r(c,n),l=r(l,i),f=r(f,h),d=r(d,p)}return Uint32Array.of(c,l,f,d)}(function(t){if(0===t.length)return new Uint32Array;const e=new Uint32Array(n(8*t.length)).fill(0);for(let n=0;n<t.length;n++)e[n>>2]|=(255&t[n])<<n%4*8;return e}(t),8*t.length))}},779:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);e.default={randomUUID:n}},465:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default="00000000-0000-0000-0000-000000000000"},797:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(746);e.default=function(t){if(!(0,r.default)(t))throw TypeError("Invalid UUID");let e;return Uint8Array.of((e=parseInt(t.slice(0,8),16))>>>24,e>>>16&255,e>>>8&255,255&e,(e=parseInt(t.slice(9,13),16))>>>8,255&e,(e=parseInt(t.slice(14,18),16))>>>8,255&e,(e=parseInt(t.slice(19,23),16))>>>8,255&e,(e=parseInt(t.slice(24,36),16))/1099511627776&255,e/4294967296&255,e>>>24&255,e>>>16&255,e>>>8&255,255&e)}},697:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i},291:(t,e)=>{"use strict";let n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){if(!n){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");n=crypto.getRandomValues.bind(crypto)}return n(r)};const r=new Uint8Array(16)},829:(t,e)=>{"use strict";function n(t,e,n,r){switch(t){case 0:return e&n^~e&r;case 1:case 3:return e^n^r;case 2:return e&n^e&r^n&r}}function r(t,e){return t<<e|t>>>32-e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){const e=[1518500249,1859775393,2400959708,3395469782],i=[1732584193,4023233417,2562383102,271733878,3285377520],s=new Uint8Array(t.length+1);s.set(t),s[t.length]=128;const o=(t=s).length/4+2,a=Math.ceil(o/16),u=new Array(a);for(let e=0;e<a;++e){const n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=t[64*e+4*r]<<24|t[64*e+4*r+1]<<16|t[64*e+4*r+2]<<8|t[64*e+4*r+3];u[e]=n}u[a-1][14]=8*(t.length-1)/Math.pow(2,32),u[a-1][14]=Math.floor(u[a-1][14]),u[a-1][15]=8*(t.length-1)&4294967295;for(let t=0;t<a;++t){const s=new Uint32Array(80);for(let e=0;e<16;++e)s[e]=u[t][e];for(let t=16;t<80;++t)s[t]=r(s[t-3]^s[t-8]^s[t-14]^s[t-16],1);let o=i[0],a=i[1],c=i[2],l=i[3],f=i[4];for(let t=0;t<80;++t){const i=Math.floor(t/20),u=r(o,5)+n(i,a,c,l)+f+e[i]+s[t]>>>0;f=l,l=c,c=r(a,30)>>>0,a=o,o=u}i[0]=i[0]+o>>>0,i[1]=i[1]+a>>>0,i[2]=i[2]+c>>>0,i[3]=i[3]+l>>>0,i[4]=i[4]+f>>>0}return Uint8Array.of(i[0]>>24,i[0]>>16,i[0]>>8,i[0],i[1]>>24,i[1]>>16,i[1]>>8,i[1],i[2]>>24,i[2]>>16,i[2]>>8,i[2],i[3]>>24,i[3]>>16,i[3]>>8,i[3],i[4]>>24,i[4]>>16,i[4]>>8,i[4])}},11:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unsafeStringify=s;const r=n(746),i=[];for(let t=0;t<256;++t)i.push((t+256).toString(16).slice(1));function s(t,e=0){return(i[t[e+0]]+i[t[e+1]]+i[t[e+2]]+i[t[e+3]]+"-"+i[t[e+4]]+i[t[e+5]]+"-"+i[t[e+6]]+i[t[e+7]]+"-"+i[t[e+8]]+i[t[e+9]]+"-"+i[t[e+10]]+i[t[e+11]]+i[t[e+12]]+i[t[e+13]]+i[t[e+14]]+i[t[e+15]]).toLowerCase()}e.default=function(t,e=0){const n=s(t,e);if(!(0,r.default)(n))throw TypeError("Stringified UUID is invalid");return n}},806:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.updateV1State=o;const r=n(291),i=n(11),s={};function o(t,e,n){return t.msecs??=-1/0,t.nsecs??=0,e===t.msecs?(t.nsecs++,t.nsecs>=1e4&&(t.node=void 0,t.nsecs=0)):e>t.msecs?t.nsecs=0:e<t.msecs&&(t.node=void 0),t.node||(t.node=n.slice(10,16),t.node[0]|=1,t.clockseq=16383&(n[8]<<8|n[9])),t.msecs=e,t}function a(t,e,n,r,i,s,o=0){s||(s=new Uint8Array(16),o=0),e??=Date.now(),n??=0,r??=16383&(t[8]<<8|t[9]),i??=t.slice(10,16);const a=(1e4*(268435455&(e+=122192928e5))+n)%4294967296;s[o++]=a>>>24&255,s[o++]=a>>>16&255,s[o++]=a>>>8&255,s[o++]=255&a;const u=e/4294967296*1e4&268435455;s[o++]=u>>>8&255,s[o++]=255&u,s[o++]=u>>>24&15|16,s[o++]=u>>>16&255,s[o++]=r>>>8|128,s[o++]=255&r;for(let t=0;t<6;++t)s[o++]=i[t];return s}e.default=function(t,e,n){let u;const c=t?._v6??!1;if(t){const e=Object.keys(t);1===e.length&&"_v6"===e[0]&&(t=void 0)}if(t)u=a(t.random??t.rng?.()??(0,r.default)(),t.msecs,t.nsecs,t.clockseq,t.node,e,n);else{const t=Date.now(),i=(0,r.default)();o(s,t,i),u=a(i,s.msecs,s.nsecs,c?void 0:s.clockseq,c?void 0:s.node,e,n)}return e?u:(0,i.unsafeStringify)(u)}},568:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){const e=function(t){return Uint8Array.of((15&t[6])<<4|t[7]>>4&15,(15&t[7])<<4|(240&t[4])>>4,(15&t[4])<<4|(240&t[5])>>4,(15&t[5])<<4|(240&t[0])>>4,(15&t[0])<<4|(240&t[1])>>4,(15&t[1])<<4|(240&t[2])>>4,96|15&t[2],t[3],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}("string"==typeof t?(0,r.default)(t):t);return"string"==typeof t?(0,i.unsafeStringify)(e):e};const r=n(797),i=n(11)},591:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.URL=e.DNS=void 0;const r=n(338),i=n(988);var s=n(988);function o(t,e,n,s){return(0,i.default)(48,r.default,t,e,n,s)}Object.defineProperty(e,"DNS",{enumerable:!0,get:function(){return s.DNS}}),Object.defineProperty(e,"URL",{enumerable:!0,get:function(){return s.URL}}),o.DNS=i.DNS,o.URL=i.URL,e.default=o},988:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.URL=e.DNS=void 0,e.stringToBytes=s,e.default=function(t,e,n,o,a,u){const c="string"==typeof n?s(n):n,l="string"==typeof o?(0,r.default)(o):o;"string"==typeof o&&(o=(0,r.default)(o));if(16!==o?.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let f=new Uint8Array(16+c.length);if(f.set(l),f.set(c,l.length),f=e(f),f[6]=15&f[6]|t,f[8]=63&f[8]|128,a){u=u||0;for(let t=0;t<16;++t)a[u+t]=f[t];return a}return(0,i.unsafeStringify)(f)};const r=n(797),i=n(11);function s(t){t=unescape(encodeURIComponent(t));const e=new Uint8Array(t.length);for(let n=0;n<t.length;++n)e[n]=t.charCodeAt(n);return e}e.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",e.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8"},286:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(779),i=n(291),s=n(11);e.default=function(t,e,n){if(r.default.randomUUID&&!e&&!t)return r.default.randomUUID();const o=(t=t||{}).random||(t.rng||i.default)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e){n=n||0;for(let t=0;t<16;++t)e[n+t]=o[t];return e}return(0,s.unsafeStringify)(o)}},557:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.URL=e.DNS=void 0;const r=n(829),i=n(988);var s=n(988);function o(t,e,n,s){return(0,i.default)(80,r.default,t,e,n,s)}Object.defineProperty(e,"DNS",{enumerable:!0,get:function(){return s.DNS}}),Object.defineProperty(e,"URL",{enumerable:!0,get:function(){return s.URL}}),o.DNS=i.DNS,o.URL=i.URL,e.default=o},356:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(11),i=n(806),s=n(568);e.default=function(t,e,n){t??={},n??=0;let o=(0,i.default)({...t,_v6:!0},new Uint8Array(16));if(o=(0,s.default)(o),e){for(let t=0;t<16;t++)e[n+t]=o[t];return e}return(0,r.unsafeStringify)(o)}},268:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){const e=function(t){return Uint8Array.of((15&t[3])<<4|t[4]>>4&15,(15&t[4])<<4|(240&t[5])>>4,(15&t[5])<<4|15&t[6],t[7],(15&t[1])<<4|(240&t[2])>>4,(15&t[2])<<4|(240&t[3])>>4,16|(240&t[0])>>4,(15&t[0])<<4|(240&t[1])>>4,t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}("string"==typeof t?(0,r.default)(t):t);return"string"==typeof t?(0,i.unsafeStringify)(e):e};const r=n(797),i=n(11)},299:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.updateV7State=o;const r=n(291),i=n(11),s={};function o(t,e,n){return t.msecs??=-1/0,t.seq??=0,e>t.msecs?(t.seq=n[6]<<23|n[7]<<16|n[8]<<8|n[9],t.msecs=e):(t.seq=t.seq+1|0,0===t.seq&&t.msecs++),t}function a(t,e,n,r,i=0){return r||(r=new Uint8Array(16),i=0),e??=Date.now(),n??=127*t[6]<<24|t[7]<<16|t[8]<<8|t[9],r[i++]=e/1099511627776&255,r[i++]=e/4294967296&255,r[i++]=e/16777216&255,r[i++]=e/65536&255,r[i++]=e/256&255,r[i++]=255&e,r[i++]=112|n>>>28&15,r[i++]=n>>>20&255,r[i++]=128|n>>>14&63,r[i++]=n>>>6&255,r[i++]=n<<2&255|3&t[10],r[i++]=t[11],r[i++]=t[12],r[i++]=t[13],r[i++]=t[14],r[i++]=t[15],r}e.default=function(t,e,n){let u;if(t)u=a(t.random??t.rng?.()??(0,r.default)(),t.msecs,t.seq,e,n);else{const t=Date.now(),i=(0,r.default)();o(s,t,i),u=a(i,s.msecs,s.seq,e,n)}return e?u:(0,i.unsafeStringify)(u)}},746:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(697);e.default=function(t){return"string"==typeof t&&r.default.test(t)}},770:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(746);e.default=function(t){if(!(0,r.default)(t))throw TypeError("Invalid UUID");return parseInt(t.slice(14,15),16)}}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={exports:{}};return t[r].call(s.exports,s,s.exports,n),s.exports}return n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n(740)})()));