UNPKG

harperdb

Version:

HarperDB is a distributed database, caching service, streaming broker, and application development platform focused on performance and ease of use.

9 lines 1.67 MB
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.lazy-C7Y8KaC7.js","assets/react-redux-LHAYowSO.js","assets/index-CVjGhoEG.css","assets/index-JYy8fJSs.js"])))=>i.map(i=>d[i]); function FY(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var SPe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var p_={exports:{}},Dp={};var aD;function UY(){if(aD)return Dp;aD=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,o){var a=null;if(o!==void 0&&(a=""+o),i.key!==void 0&&(a=""+i.key),"key"in i){o={};for(var l in i)l!=="key"&&(o[l]=i[l])}else o=i;return i=o.ref,{$$typeof:e,type:r,key:a,ref:i!==void 0?i:null,props:o}}return Dp.Fragment=t,Dp.jsx=n,Dp.jsxs=n,Dp}var sD;function VY(){return sD||(sD=1,p_.exports=UY()),p_.exports}var c=VY();const ml=!0,BY="/",Vd=9925,nC="HDB_ADMIN",Ea="/",Gk="../",HY=1024*1024*1024,qY=100*1024*1024;function gz(e,t){return function(){return e.apply(t,arguments)}}const{toString:KY}=Object.prototype,{getPrototypeOf:Zk}=Object,{iterator:Ob,toStringTag:vz}=Symbol,Db=(e=>t=>{const n=KY.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),oa=e=>(e=e.toLowerCase(),t=>Db(t)===e),$b=e=>t=>typeof t===e,{isArray:gf}=Array,Bd=$b("undefined");function Xm(e){return e!==null&&!Bd(e)&&e.constructor!==null&&!Bd(e.constructor)&&Ci(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const yz=oa("ArrayBuffer");function GY(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&yz(e.buffer),t}const ZY=$b("string"),Ci=$b("function"),bz=$b("number"),Jm=e=>e!==null&&typeof e=="object",YY=e=>e===!0||e===!1,cy=e=>{if(Db(e)!=="object")return!1;const t=Zk(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(vz in e)&&!(Ob in e)},WY=e=>{if(!Jm(e)||Xm(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},XY=oa("Date"),JY=oa("File"),QY=oa("Blob"),eW=oa("FileList"),tW=e=>Jm(e)&&Ci(e.pipe),nW=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ci(e.append)&&((t=Db(e))==="formdata"||t==="object"&&Ci(e.toString)&&e.toString()==="[object FormData]"))},rW=oa("URLSearchParams"),[iW,oW,aW,sW]=["ReadableStream","Request","Response","Headers"].map(oa),lW=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Qm(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),gf(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(Xm(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let l;for(r=0;r<a;r++)l=o[r],t.call(null,e[l],l,e)}}function xz(e,t){if(Xm(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const xc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,wz=e=>!Bd(e)&&e!==xc;function rC(){const{caseless:e,skipUndefined:t}=wz(this)&&this||{},n={},r=(i,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const a=e&&xz(n,o)||o;cy(n[a])&&cy(i)?n[a]=rC(n[a],i):cy(i)?n[a]=rC({},i):gf(i)?n[a]=i.slice():(!t||!Bd(i))&&(n[a]=i)};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&Qm(arguments[i],r);return n}const cW=(e,t,n,{allOwnKeys:r}={})=>(Qm(t,(i,o)=>{n&&Ci(i)?Object.defineProperty(e,o,{value:gz(i,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),uW=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),dW=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},fW=(e,t,n,r)=>{let i,o,a;const l={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=n!==!1&&Zk(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},pW=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},mW=e=>{if(!e)return null;if(gf(e))return e;let t=e.length;if(!bz(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},hW=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Zk(Uint8Array)),gW=(e,t)=>{const r=(e&&e[Ob]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},vW=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},yW=oa("HTMLFormElement"),bW=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),lD=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),xW=oa("RegExp"),Sz=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Qm(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},wW=e=>{Sz(e,(t,n)=>{if(Ci(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ci(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},SW=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return gf(e)?r(e):r(String(e).split(t)),n},_W=()=>{},CW=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function kW(e){return!!(e&&Ci(e.append)&&e[vz]==="FormData"&&e[Ob])}const EW=e=>{const t=new Array(10),n=(r,i)=>{if(Jm(r)){if(t.indexOf(r)>=0)return;if(Xm(r))return r;if(!("toJSON"in r)){t[i]=r;const o=gf(r)?[]:{};return Qm(r,(a,l)=>{const d=n(a,i+1);!Bd(d)&&(o[l]=d)}),t[i]=void 0,o}}return r};return n(e,0)},jW=oa("AsyncFunction"),RW=e=>e&&(Jm(e)||Ci(e))&&Ci(e.then)&&Ci(e.catch),_z=((e,t)=>e?setImmediate:t?((n,r)=>(xc.addEventListener("message",({source:i,data:o})=>{i===xc&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),xc.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ci(xc.postMessage)),IW=typeof queueMicrotask<"u"?queueMicrotask.bind(xc):typeof process<"u"&&process.nextTick||_z,TW=e=>e!=null&&Ci(e[Ob]),pe={isArray:gf,isArrayBuffer:yz,isBuffer:Xm,isFormData:nW,isArrayBufferView:GY,isString:ZY,isNumber:bz,isBoolean:YY,isObject:Jm,isPlainObject:cy,isEmptyObject:WY,isReadableStream:iW,isRequest:oW,isResponse:aW,isHeaders:sW,isUndefined:Bd,isDate:XY,isFile:JY,isBlob:QY,isRegExp:xW,isFunction:Ci,isStream:tW,isURLSearchParams:rW,isTypedArray:hW,isFileList:eW,forEach:Qm,merge:rC,extend:cW,trim:lW,stripBOM:uW,inherits:dW,toFlatObject:fW,kindOf:Db,kindOfTest:oa,endsWith:pW,toArray:mW,forEachEntry:gW,matchAll:vW,isHTMLForm:yW,hasOwnProperty:lD,hasOwnProp:lD,reduceDescriptors:Sz,freezeMethods:wW,toObjectSet:SW,toCamelCase:bW,noop:_W,toFiniteNumber:CW,findKey:xz,global:xc,isContextDefined:wz,isSpecCompliantForm:kW,toJSONObject:EW,isAsyncFn:jW,isThenable:RW,setImmediate:_z,asap:IW,isIterable:TW};let lt=class Cz extends Error{static from(t,n,r,i,o,a){const l=new Cz(t.message,n||t.code,r,i,o);return l.cause=t,l.name=t.name,a&&Object.assign(l,a),l}constructor(t,n,r,i,o){super(t),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),i&&(this.request=i),o&&(this.response=o,this.status=o.status)}toJSON(){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:pe.toJSONObject(this.config),code:this.code,status:this.status}}};lt.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";lt.ERR_BAD_OPTION="ERR_BAD_OPTION";lt.ECONNABORTED="ECONNABORTED";lt.ETIMEDOUT="ETIMEDOUT";lt.ERR_NETWORK="ERR_NETWORK";lt.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";lt.ERR_DEPRECATED="ERR_DEPRECATED";lt.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";lt.ERR_BAD_REQUEST="ERR_BAD_REQUEST";lt.ERR_CANCELED="ERR_CANCELED";lt.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";lt.ERR_INVALID_URL="ERR_INVALID_URL";const NW=null;function iC(e){return pe.isPlainObject(e)||pe.isArray(e)}function kz(e){return pe.endsWith(e,"[]")?e.slice(0,-2):e}function cD(e,t,n){return e?e.concat(t).map(function(i,o){return i=kz(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function AW(e){return pe.isArray(e)&&!e.some(iC)}const OW=pe.toFlatObject(pe,{},null,function(t){return/^is[A-Z]/.test(t)});function Pb(e,t,n){if(!pe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=pe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,C){return!pe.isUndefined(C[S])});const r=n.metaTokens,i=n.visitor||m,o=n.dots,a=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&pe.isSpecCompliantForm(t);if(!pe.isFunction(i))throw new TypeError("visitor must be a function");function f(x){if(x===null)return"";if(pe.isDate(x))return x.toISOString();if(pe.isBoolean(x))return x.toString();if(!d&&pe.isBlob(x))throw new lt("Blob is not supported. Use a Buffer instead.");return pe.isArrayBuffer(x)||pe.isTypedArray(x)?d&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function m(x,S,C){let k=x;if(x&&!C&&typeof x=="object"){if(pe.endsWith(S,"{}"))S=r?S:S.slice(0,-2),x=JSON.stringify(x);else if(pe.isArray(x)&&AW(x)||(pe.isFileList(x)||pe.endsWith(S,"[]"))&&(k=pe.toArray(x)))return S=kz(S),k.forEach(function(j,I){!(pe.isUndefined(j)||j===null)&&t.append(a===!0?cD([S],I,o):a===null?S:S+"[]",f(j))}),!1}return iC(x)?!0:(t.append(cD(C,S,o),f(x)),!1)}const h=[],v=Object.assign(OW,{defaultVisitor:m,convertValue:f,isVisitable:iC});function y(x,S){if(!pe.isUndefined(x)){if(h.indexOf(x)!==-1)throw Error("Circular reference detected in "+S.join("."));h.push(x),pe.forEach(x,function(k,E){(!(pe.isUndefined(k)||k===null)&&i.call(t,k,pe.isString(E)?E.trim():E,S,v))===!0&&y(k,S?S.concat(E):[E])}),h.pop()}}if(!pe.isObject(e))throw new TypeError("data must be an object");return y(e),t}function uD(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Yk(e,t){this._pairs=[],e&&Pb(e,this,t)}const Ez=Yk.prototype;Ez.append=function(t,n){this._pairs.push([t,n])};Ez.toString=function(t){const n=t?function(r){return t.call(this,r,uD)}:uD;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function DW(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function jz(e,t,n){if(!t)return e;const r=n&&n.encode||DW,i=pe.isFunction(n)?{serialize:n}:n,o=i&&i.serialize;let a;if(o?a=o(t,i):a=pe.isURLSearchParams(t)?t.toString():new Yk(t,i).toString(r),a){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class dD{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){pe.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Wk={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},$W=typeof URLSearchParams<"u"?URLSearchParams:Yk,PW=typeof FormData<"u"?FormData:null,MW=typeof Blob<"u"?Blob:null,zW={isBrowser:!0,classes:{URLSearchParams:$W,FormData:PW,Blob:MW},protocols:["http","https","file","blob","url","data"]},Xk=typeof window<"u"&&typeof document<"u",oC=typeof navigator=="object"&&navigator||void 0,LW=Xk&&(!oC||["ReactNative","NativeScript","NS"].indexOf(oC.product)<0),FW=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",UW=Xk&&window.location.href||"http://localhost",VW=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Xk,hasStandardBrowserEnv:LW,hasStandardBrowserWebWorkerEnv:FW,navigator:oC,origin:UW},Symbol.toStringTag,{value:"Module"})),Pr={...VW,...zW};function BW(e,t){return Pb(e,new Pr.classes.URLSearchParams,{visitor:function(n,r,i,o){return Pr.isNode&&pe.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function HW(e){return pe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function qW(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function Rz(e){function t(n,r,i,o){let a=n[o++];if(a==="__proto__")return!0;const l=Number.isFinite(+a),d=o>=n.length;return a=!a&&pe.isArray(i)?i.length:a,d?(pe.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!l):((!i[a]||!pe.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&pe.isArray(i[a])&&(i[a]=qW(i[a])),!l)}if(pe.isFormData(e)&&pe.isFunction(e.entries)){const n={};return pe.forEachEntry(e,(r,i)=>{t(HW(r),i,n,0)}),n}return null}function KW(e,t,n){if(pe.isString(e))try{return(t||JSON.parse)(e),pe.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const eh={transitional:Wk,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=pe.isObject(t);if(o&&pe.isHTMLForm(t)&&(t=new FormData(t)),pe.isFormData(t))return i?JSON.stringify(Rz(t)):t;if(pe.isArrayBuffer(t)||pe.isBuffer(t)||pe.isStream(t)||pe.isFile(t)||pe.isBlob(t)||pe.isReadableStream(t))return t;if(pe.isArrayBufferView(t))return t.buffer;if(pe.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return BW(t,this.formSerializer).toString();if((l=pe.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return Pb(l?{"files[]":t}:t,d&&new d,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),KW(t)):t}],transformResponse:[function(t){const n=this.transitional||eh.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(pe.isResponse(t)||pe.isReadableStream(t))return t;if(t&&pe.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(l){if(a)throw l.name==="SyntaxError"?lt.from(l,lt.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Pr.classes.FormData,Blob:Pr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};pe.forEach(["delete","get","head","post","put","patch"],e=>{eh.headers[e]={}});const GW=pe.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"]),ZW=e=>{const t={};let n,r,i;return e&&e.split(` `).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&GW[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},fD=Symbol("internals");function $p(e){return e&&String(e).trim().toLowerCase()}function uy(e){return e===!1||e==null?e:pe.isArray(e)?e.map(uy):String(e)}function YW(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const WW=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function m_(e,t,n,r,i){if(pe.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!pe.isString(t)){if(pe.isString(r))return t.indexOf(r)!==-1;if(pe.isRegExp(r))return r.test(t)}}function XW(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function JW(e,t){const n=pe.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}let ki=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(l,d,f){const m=$p(d);if(!m)throw new Error("header name must be a non-empty string");const h=pe.findKey(i,m);(!h||i[h]===void 0||f===!0||f===void 0&&i[h]!==!1)&&(i[h||d]=uy(l))}const a=(l,d)=>pe.forEach(l,(f,m)=>o(f,m,d));if(pe.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(pe.isString(t)&&(t=t.trim())&&!WW(t))a(ZW(t),n);else if(pe.isObject(t)&&pe.isIterable(t)){let l={},d,f;for(const m of t){if(!pe.isArray(m))throw TypeError("Object iterator must return a key-value pair");l[f=m[0]]=(d=l[f])?pe.isArray(d)?[...d,m[1]]:[d,m[1]]:m[1]}a(l,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=$p(t),t){const r=pe.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return YW(i);if(pe.isFunction(n))return n.call(this,i,r);if(pe.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=$p(t),t){const r=pe.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||m_(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=$p(a),a){const l=pe.findKey(r,a);l&&(!n||m_(r,r[l],l,n))&&(delete r[l],i=!0)}}return pe.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||m_(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return pe.forEach(this,(i,o)=>{const a=pe.findKey(r,o);if(a){n[a]=uy(i),delete n[o];return}const l=t?XW(o):String(o).trim();l!==o&&delete n[o],n[l]=uy(i),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return pe.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&pe.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[fD]=this[fD]={accessors:{}}).accessors,i=this.prototype;function o(a){const l=$p(a);r[l]||(JW(i,a),r[l]=!0)}return pe.isArray(t)?t.forEach(o):o(t),this}};ki.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);pe.reduceDescriptors(ki.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});pe.freezeMethods(ki);function h_(e,t){const n=this||eh,r=t||n,i=ki.from(r.headers);let o=r.data;return pe.forEach(e,function(l){o=l.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Iz(e){return!!(e&&e.__CANCEL__)}let th=class extends lt{constructor(t,n,r){super(t??"canceled",lt.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function Tz(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new lt("Request failed with status code "+n.status,[lt.ERR_BAD_REQUEST,lt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function QW(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function eX(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(d){const f=Date.now(),m=r[o];a||(a=f),n[i]=d,r[i]=f;let h=o,v=0;for(;h!==i;)v+=n[h++],h=h%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),f-a<t)return;const y=m&&f-m;return y?Math.round(v*1e3/y):void 0}}function tX(e,t){let n=0,r=1e3/t,i,o;const a=(f,m=Date.now())=>{n=m,i=null,o&&(clearTimeout(o),o=null),e(...f)};return[(...f)=>{const m=Date.now(),h=m-n;h>=r?a(f,m):(i=f,o||(o=setTimeout(()=>{o=null,a(i)},r-h)))},()=>i&&a(i)]}const Iy=(e,t,n=3)=>{let r=0;const i=eX(50,250);return tX(o=>{const a=o.loaded,l=o.lengthComputable?o.total:void 0,d=a-r,f=i(d),m=a<=l;r=a;const h={loaded:a,total:l,progress:l?a/l:void 0,bytes:d,rate:f||void 0,estimated:f&&l&&m?(l-a)/f:void 0,event:o,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(h)},n)},pD=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},mD=e=>(...t)=>pe.asap(()=>e(...t)),nX=Pr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Pr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Pr.origin),Pr.navigator&&/(msie|trident)/i.test(Pr.navigator.userAgent)):()=>!0,rX=Pr.hasStandardBrowserEnv?{write(e,t,n,r,i,o,a){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];pe.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),pe.isString(r)&&l.push(`path=${r}`),pe.isString(i)&&l.push(`domain=${i}`),o===!0&&l.push("secure"),pe.isString(a)&&l.push(`SameSite=${a}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function iX(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function oX(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Nz(e,t,n){let r=!iX(t);return e&&(r||n==!1)?oX(e,t):t}const hD=e=>e instanceof ki?{...e}:e;function $c(e,t){t=t||{};const n={};function r(f,m,h,v){return pe.isPlainObject(f)&&pe.isPlainObject(m)?pe.merge.call({caseless:v},f,m):pe.isPlainObject(m)?pe.merge({},m):pe.isArray(m)?m.slice():m}function i(f,m,h,v){if(pe.isUndefined(m)){if(!pe.isUndefined(f))return r(void 0,f,h,v)}else return r(f,m,h,v)}function o(f,m){if(!pe.isUndefined(m))return r(void 0,m)}function a(f,m){if(pe.isUndefined(m)){if(!pe.isUndefined(f))return r(void 0,f)}else return r(void 0,m)}function l(f,m,h){if(h in t)return r(f,m);if(h in e)return r(void 0,f)}const d={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(f,m,h)=>i(hD(f),hD(m),h,!0)};return pe.forEach(Object.keys({...e,...t}),function(m){if(m==="__proto__"||m==="constructor"||m==="prototype")return;const h=pe.hasOwnProp(d,m)?d[m]:i,v=h(e[m],t[m],m);pe.isUndefined(v)&&h!==l||(n[m]=v)}),n}const Az=e=>{const t=$c({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:l}=t;if(t.headers=a=ki.from(a),t.url=jz(Nz(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),pe.isFormData(n)){if(Pr.hasStandardBrowserEnv||Pr.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(pe.isFunction(n.getHeaders)){const d=n.getHeaders(),f=["content-type","content-length"];Object.entries(d).forEach(([m,h])=>{f.includes(m.toLowerCase())&&a.set(m,h)})}}if(Pr.hasStandardBrowserEnv&&(r&&pe.isFunction(r)&&(r=r(t)),r||r!==!1&&nX(t.url))){const d=i&&o&&rX.read(o);d&&a.set(i,d)}return t},aX=typeof XMLHttpRequest<"u",sX=aX&&function(e){return new Promise(function(n,r){const i=Az(e);let o=i.data;const a=ki.from(i.headers).normalize();let{responseType:l,onUploadProgress:d,onDownloadProgress:f}=i,m,h,v,y,x;function S(){y&&y(),x&&x(),i.cancelToken&&i.cancelToken.unsubscribe(m),i.signal&&i.signal.removeEventListener("abort",m)}let C=new XMLHttpRequest;C.open(i.method.toUpperCase(),i.url,!0),C.timeout=i.timeout;function k(){if(!C)return;const j=ki.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),A={data:!l||l==="text"||l==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:j,config:e,request:C};Tz(function(N){n(N),S()},function(N){r(N),S()},A),C=null}"onloadend"in C?C.onloadend=k:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(k)},C.onabort=function(){C&&(r(new lt("Request aborted",lt.ECONNABORTED,e,C)),C=null)},C.onerror=function(I){const A=I&&I.message?I.message:"Network Error",T=new lt(A,lt.ERR_NETWORK,e,C);T.event=I||null,r(T),C=null},C.ontimeout=function(){let I=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const A=i.transitional||Wk;i.timeoutErrorMessage&&(I=i.timeoutErrorMessage),r(new lt(I,A.clarifyTimeoutError?lt.ETIMEDOUT:lt.ECONNABORTED,e,C)),C=null},o===void 0&&a.setContentType(null),"setRequestHeader"in C&&pe.forEach(a.toJSON(),function(I,A){C.setRequestHeader(A,I)}),pe.isUndefined(i.withCredentials)||(C.withCredentials=!!i.withCredentials),l&&l!=="json"&&(C.responseType=i.responseType),f&&([v,x]=Iy(f,!0),C.addEventListener("progress",v)),d&&C.upload&&([h,y]=Iy(d),C.upload.addEventListener("progress",h),C.upload.addEventListener("loadend",y)),(i.cancelToken||i.signal)&&(m=j=>{C&&(r(!j||j.type?new th(null,e,C):j),C.abort(),C=null)},i.cancelToken&&i.cancelToken.subscribe(m),i.signal&&(i.signal.aborted?m():i.signal.addEventListener("abort",m)));const E=QW(i.url);if(E&&Pr.protocols.indexOf(E)===-1){r(new lt("Unsupported protocol "+E+":",lt.ERR_BAD_REQUEST,e));return}C.send(o||null)})},lX=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(f){if(!i){i=!0,l();const m=f instanceof Error?f:this.reason;r.abort(m instanceof lt?m:new th(m instanceof Error?m.message:m))}};let a=t&&setTimeout(()=>{a=null,o(new lt(`timeout of ${t}ms exceeded`,lt.ETIMEDOUT))},t);const l=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(o):f.removeEventListener("abort",o)}),e=null)};e.forEach(f=>f.addEventListener("abort",o));const{signal:d}=r;return d.unsubscribe=()=>pe.asap(l),d}},cX=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},uX=async function*(e,t){for await(const n of dX(e))yield*cX(n,t)},dX=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},gD=(e,t,n,r)=>{const i=uX(e,t);let o=0,a,l=d=>{a||(a=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:f,value:m}=await i.next();if(f){l(),d.close();return}let h=m.byteLength;if(n){let v=o+=h;n(v)}d.enqueue(new Uint8Array(m))}catch(f){throw l(f),f}},cancel(d){return l(d),i.return()}},{highWaterMark:2})},vD=64*1024,{isFunction:xv}=pe,fX=(({Request:e,Response:t})=>({Request:e,Response:t}))(pe.global),{ReadableStream:yD,TextEncoder:bD}=pe.global,xD=(e,...t)=>{try{return!!e(...t)}catch{return!1}},pX=e=>{e=pe.merge.call({skipUndefined:!0},fX,e);const{fetch:t,Request:n,Response:r}=e,i=t?xv(t):typeof fetch=="function",o=xv(n),a=xv(r);if(!i)return!1;const l=i&&xv(yD),d=i&&(typeof bD=="function"?(x=>S=>x.encode(S))(new bD):async x=>new Uint8Array(await new n(x).arrayBuffer())),f=o&&l&&xD(()=>{let x=!1;const S=new n(Pr.origin,{body:new yD,method:"POST",get duplex(){return x=!0,"half"}}).headers.has("Content-Type");return x&&!S}),m=a&&l&&xD(()=>pe.isReadableStream(new r("").body)),h={stream:m&&(x=>x.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(x=>{!h[x]&&(h[x]=(S,C)=>{let k=S&&S[x];if(k)return k.call(S);throw new lt(`Response type '${x}' is not supported`,lt.ERR_NOT_SUPPORT,C)})});const v=async x=>{if(x==null)return 0;if(pe.isBlob(x))return x.size;if(pe.isSpecCompliantForm(x))return(await new n(Pr.origin,{method:"POST",body:x}).arrayBuffer()).byteLength;if(pe.isArrayBufferView(x)||pe.isArrayBuffer(x))return x.byteLength;if(pe.isURLSearchParams(x)&&(x=x+""),pe.isString(x))return(await d(x)).byteLength},y=async(x,S)=>{const C=pe.toFiniteNumber(x.getContentLength());return C??v(S)};return async x=>{let{url:S,method:C,data:k,signal:E,cancelToken:j,timeout:I,onDownloadProgress:A,onUploadProgress:T,responseType:N,headers:D,withCredentials:L="same-origin",fetchOptions:H}=Az(x),ee=t||fetch;N=N?(N+"").toLowerCase():"text";let G=lX([E,j&&j.toAbortSignal()],I),K=null;const B=G&&G.unsubscribe&&(()=>{G.unsubscribe()});let q;try{if(T&&f&&C!=="get"&&C!=="head"&&(q=await y(D,k))!==0){let P=new n(S,{method:"POST",body:k,duplex:"half"}),V;if(pe.isFormData(k)&&(V=P.headers.get("content-type"))&&D.setContentType(V),P.body){const[O,X]=pD(q,Iy(mD(T)));k=gD(P.body,vD,O,X)}}pe.isString(L)||(L=L?"include":"omit");const z=o&&"credentials"in n.prototype,W={...H,signal:G,method:C.toUpperCase(),headers:D.normalize().toJSON(),body:k,duplex:"half",credentials:z?L:void 0};K=o&&new n(S,W);let F=await(o?ee(K,H):ee(S,W));const ne=m&&(N==="stream"||N==="response");if(m&&(A||ne&&B)){const P={};["status","statusText","headers"].forEach(de=>{P[de]=F[de]});const V=pe.toFiniteNumber(F.headers.get("content-length")),[O,X]=A&&pD(V,Iy(mD(A),!0))||[];F=new r(gD(F.body,vD,O,()=>{X&&X(),B&&B()}),P)}N=N||"text";let $=await h[pe.findKey(h,N)||"text"](F,x);return!ne&&B&&B(),await new Promise((P,V)=>{Tz(P,V,{data:$,headers:ki.from(F.headers),status:F.status,statusText:F.statusText,config:x,request:K})})}catch(z){throw B&&B(),z&&z.name==="TypeError"&&/Load failed|fetch/i.test(z.message)?Object.assign(new lt("Network Error",lt.ERR_NETWORK,x,K,z&&z.response),{cause:z.cause||z}):lt.from(z,z&&z.code,x,K,z&&z.response)}}},mX=new Map,Oz=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,o=[r,i,n];let a=o.length,l=a,d,f,m=mX;for(;l--;)d=o[l],f=m.get(d),f===void 0&&m.set(d,f=l?new Map:pX(t)),m=f;return f};Oz();const Jk={http:NW,xhr:sX,fetch:{get:Oz}};pe.forEach(Jk,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const wD=e=>`- ${e}`,hX=e=>pe.isFunction(e)||e===null||e===!1;function gX(e,t){e=pe.isArray(e)?e:[e];const{length:n}=e;let r,i;const o={};for(let a=0;a<n;a++){r=e[a];let l;if(i=r,!hX(r)&&(i=Jk[(l=String(r)).toLowerCase()],i===void 0))throw new lt(`Unknown adapter '${l}'`);if(i&&(pe.isFunction(i)||(i=i.get(t))))break;o[l||"#"+a]=i}if(!i){const a=Object.entries(o).map(([d,f])=>`adapter ${d} `+(f===!1?"is not supported by the environment":"is not available in the build"));let l=n?a.length>1?`since : `+a.map(wD).join(` `):" "+wD(a[0]):"as no adapter specified";throw new lt("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return i}const Dz={getAdapter:gX,adapters:Jk};function g_(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new th(null,e)}function SD(e){return g_(e),e.headers=ki.from(e.headers),e.data=h_.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Dz.getAdapter(e.adapter||eh.adapter,e)(e).then(function(r){return g_(e),r.data=h_.call(e,e.transformResponse,r),r.headers=ki.from(r.headers),r},function(r){return Iz(r)||(g_(e),r&&r.response&&(r.response.data=h_.call(e,e.transformResponse,r.response),r.response.headers=ki.from(r.response.headers))),Promise.reject(r)})}const $z="1.13.5",Mb={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Mb[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const _D={};Mb.transitional=function(t,n,r){function i(o,a){return"[Axios v"+$z+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,l)=>{if(t===!1)throw new lt(i(a," has been removed"+(n?" in "+n:"")),lt.ERR_DEPRECATED);return n&&!_D[a]&&(_D[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,l):!0}};Mb.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function vX(e,t,n){if(typeof e!="object")throw new lt("options must be an object",lt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const l=e[o],d=l===void 0||a(l,o,e);if(d!==!0)throw new lt("option "+o+" must be "+d,lt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new lt("Unknown option "+o,lt.ERR_BAD_OPTION)}}const dy={assertOptions:vX,validators:Mb},yo=dy.validators;let Ec=class{constructor(t){this.defaults=t||{},this.interceptors={request:new dD,response:new dD}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` `+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=$c(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&dy.assertOptions(r,{silentJSONParsing:yo.transitional(yo.boolean),forcedJSONParsing:yo.transitional(yo.boolean),clarifyTimeoutError:yo.transitional(yo.boolean),legacyInterceptorReqResOrdering:yo.transitional(yo.boolean)},!1),i!=null&&(pe.isFunction(i)?n.paramsSerializer={serialize:i}:dy.assertOptions(i,{encode:yo.function,serialize:yo.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),dy.assertOptions(n,{baseUrl:yo.spelling("baseURL"),withXsrfToken:yo.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&pe.merge(o.common,o[n.method]);o&&pe.forEach(["delete","get","head","post","put","patch","common"],x=>{delete o[x]}),n.headers=ki.concat(a,o);const l=[];let d=!0;this.interceptors.request.forEach(function(S){if(typeof S.runWhen=="function"&&S.runWhen(n)===!1)return;d=d&&S.synchronous;const C=n.transitional||Wk;C&&C.legacyInterceptorReqResOrdering?l.unshift(S.fulfilled,S.rejected):l.push(S.fulfilled,S.rejected)});const f=[];this.interceptors.response.forEach(function(S){f.push(S.fulfilled,S.rejected)});let m,h=0,v;if(!d){const x=[SD.bind(this),void 0];for(x.unshift(...l),x.push(...f),v=x.length,m=Promise.resolve(n);h<v;)m=m.then(x[h++],x[h++]);return m}v=l.length;let y=n;for(;h<v;){const x=l[h++],S=l[h++];try{y=x(y)}catch(C){S.call(this,C);break}}try{m=SD.call(this,y)}catch(x){return Promise.reject(x)}for(h=0,v=f.length;h<v;)m=m.then(f[h++],f[h++]);return m}getUri(t){t=$c(this.defaults,t);const n=Nz(t.baseURL,t.url,t.allowAbsoluteUrls);return jz(n,t.params,t.paramsSerializer)}};pe.forEach(["delete","get","head","options"],function(t){Ec.prototype[t]=function(n,r){return this.request($c(r||{},{method:t,url:n,data:(r||{}).data}))}});pe.forEach(["post","put","patch"],function(t){function n(r){return function(o,a,l){return this.request($c(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}Ec.prototype[t]=n(),Ec.prototype[t+"Form"]=n(!0)});let yX=class Pz{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(l=>{r.subscribe(l),o=l}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,l){r.reason||(r.reason=new th(o,a,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Pz(function(i){t=i}),cancel:t}}};function bX(e){return function(n){return e.apply(null,n)}}function xX(e){return pe.isObject(e)&&e.isAxiosError===!0}const aC={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(aC).forEach(([e,t])=>{aC[t]=e});function Mz(e){const t=new Ec(e),n=gz(Ec.prototype.request,t);return pe.extend(n,Ec.prototype,t,{allOwnKeys:!0}),pe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Mz($c(e,i))},n}const Hn=Mz(eh);Hn.Axios=Ec;Hn.CanceledError=th;Hn.CancelToken=yX;Hn.isCancel=Iz;Hn.VERSION=$z;Hn.toFormData=Pb;Hn.AxiosError=lt;Hn.Cancel=Hn.CanceledError;Hn.all=function(t){return Promise.all(t)};Hn.spread=bX;Hn.isAxiosError=xX;Hn.mergeConfig=$c;Hn.AxiosHeaders=ki;Hn.formToJSON=e=>Rz(pe.isHTMLForm(e)?new FormData(e):e);Hn.getAdapter=Dz.getAdapter;Hn.HttpStatusCode=aC;Hn.default=Hn;const{Axios:EPe,AxiosError:jPe,CanceledError:RPe,isCancel:IPe,CancelToken:TPe,VERSION:NPe,all:APe,Cancel:OPe,isAxiosError:DPe,spread:$Pe,toFormData:PPe,AxiosHeaders:MPe,HttpStatusCode:zPe,formToJSON:LPe,getAdapter:FPe,mergeConfig:UPe}=Hn,$t=Hn.create({withCredentials:!0,baseURL:"/",timeout:15e3,headers:{"Content-Type":"application/json"}});function Mr(e,t,n){return e===1||e==="1"?`${e} ${t}`:`${e} ${n}`}function wX(e){return e.replicated?.some(t=>zz(t))??!1}function SX(e){return e.status!=="failed"}function zz(e){return e.status==="failed"}function _X(e){if(wX(e.data)){const t=e.data.replicated.filter(SX),n=e.data.replicated.filter(zz),r=t.length?`The operation partially succeeded, but ${Mr(n.length,"node","nodes")} failed:`:n.length===1?"The operation failed on the single node:":`The operation failed on all ${n.length} nodes:`,i=n.map(o=>`${o.node}: ${o.reason}`).join(` `);return Promise.reject(r+` `+i)}return e}function Qc(e=1e3){return new Promise(t=>{setTimeout(()=>{t(!0)},e)})}function CX(e){return async t=>{const n=t?.response?.status,r=t?.config;if(!r||!(n===502||n===503||n===504))return Promise.reject(t);const o=3;if(r.__retryCount=r.__retryCount||0,r.__retryCount>=o)return Promise.reject(t);r.__retryCount+=1;const l=5e3*Math.pow(2,r.__retryCount-1);return await Qc(l),e.request(r)}}function ls({id:e=Mn,operationsUrl:t,port:n,secure:r,forceFabricConnect:i}={}){let o=t||Ct.getOperationsUrl(e);if(o&&(n||r!==void 0)){const f=new URL(o);n&&(f.port=String(n)),r!==void 0&&(f.protocol=r?"https:":"http:"),o=f.toString()}const a=i||Ct.checkForFabricConnect(e);a&&(e.startsWith("clu-")?o=$t.defaults.baseURL+`/Cluster/${e}/operation`:e.startsWith("ins-")&&(o=$t.defaults.baseURL+`/HDBInstance/${e}/operation`));const l=Ct.checkForBasicAuth(e),d=Hn.create({auth:a?void 0:l,withCredentials:a||!l,timeout:15e3,headers:{"Content-Type":"application/json"},baseURL:o});return d.interceptors.response.use(_X,CX(d)),d}var vf=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},kX={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},EX=class{#e=kX;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},wc=new EX;function jX(e){setTimeout(e,0)}var Pc=typeof window>"u"||"Deno"in globalThis;function Wr(){}function RX(e,t){return typeof e=="function"?e(t):e}function sC(e){return typeof e=="number"&&e>=0&&e!==1/0}function Lz(e,t){return Math.max(e+(t||0)-Date.now(),0)}function hl(e,t){return typeof e=="function"?e(t):e}function So(e,t){return typeof e=="function"?e(t):e}function CD(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:l}=e;if(a){if(r){if(t.queryHash!==Qk(a,t.options))return!1}else if(!Rm(t.queryKey,a))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||i&&i!==t.state.fetchStatus||o&&!o(t))}function kD(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Mc(t.options.mutationKey)!==Mc(o))return!1}else if(!Rm(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Qk(e,t){return(t?.queryKeyHashFn||Mc)(e)}function Mc(e){return JSON.stringify(e,(t,n)=>lC(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Rm(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Rm(e[n],t[n])):!1}var IX=Object.prototype.hasOwnProperty;function Fz(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=ED(e)&&ED(t);if(!r&&!(lC(e)&&lC(t)))return t;const o=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),l=a.length,d=r?new Array(l):{};let f=0;for(let m=0;m<l;m++){const h=r?m:a[m],v=e[h],y=t[h];if(v===y){d[h]=v,(r?m<o:IX.call(e,h))&&f++;continue}if(v===null||y===null||typeof v!="object"||typeof y!="object"){d[h]=y;continue}const x=Fz(v,y,n+1);d[h]=x,x===v&&f++}return o===l&&f===o?e:d}function Ty(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function ED(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function lC(e){if(!jD(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!jD(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function jD(e){return Object.prototype.toString.call(e)==="[object Object]"}function TX(e){return new Promise(t=>{wc.setTimeout(t,e)})}function cC(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Fz(e,t):t}function NX(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function AX(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var eE=Symbol();function Uz(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===eE?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function tE(e,t){return typeof e=="function"?e(...t):!!e}function OX(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r||(r=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),e}var DX=class extends vf{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Pc&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},nE=new DX;function uC(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var $X=jX;function PX(){let e=[],t=0,n=l=>{l()},r=l=>{l()},i=$X;const o=l=>{t?e.push(l):i(()=>{n(l)})},a=()=>{const l=e;e=[],l.length&&i(()=>{r(()=>{l.forEach(d=>{n(d)})})})};return{batch:l=>{let d;t++;try{d=l()}finally{t--,t||a()}return d},batchCalls:l=>(...d)=>{o(()=>{l(...d)})},schedule:o,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{i=l}}}var pr=PX(),MX=class extends vf{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Pc&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},Ny=new MX;function zX(e){return Math.min(1e3*2**e,3e4)}function Vz(e){return(e??"online")==="online"?Ny.isOnline():!0}var dC=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Bz(e){let t=!1,n=0,r;const i=uC(),o=()=>i.status!=="pending",a=S=>{if(!o()){const C=new dC(S);v(C),e.onCancel?.(C)}},l=()=>{t=!0},d=()=>{t=!1},f=()=>nE.isFocused()&&(e.networkMode==="always"||Ny.isOnline())&&e.canRun(),m=()=>Vz(e.networkMode)&&e.canRun(),h=S=>{o()||(r?.(),i.resolve(S))},v=S=>{o()||(r?.(),i.reject(S))},y=()=>new Promise(S=>{r=C=>{(o()||f())&&S(C)},e.onPause?.()}).then(()=>{r=void 0,o()||e.onContinue?.()}),x=()=>{if(o())return;let S;const C=n===0?e.initialPromise:void 0;try{S=C??e.fn()}catch(k){S=Promise.reject(k)}Promise.resolve(S).then(h).catch(k=>{if(o())return;const E=e.retry??(Pc?0:3),j=e.retryDelay??zX,I=typeof j=="function"?j(n,k):j,A=E===!0||typeof E=="number"&&n<E||typeof E=="function"&&E(n,k);if(t||!A){v(k);return}n++,e.onFail?.(n,k),TX(I).then(()=>f()?void 0:y()).then(()=>{t?v(k):x()})})};return{promise:i,status:()=>i.status,cancel:a,continue:()=>(r?.(),i),cancelRetry:l,continueRetry:d,canStart:m,start:()=>(m()?x():y().then(x),i)}}var Hz=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),sC(this.gcTime)&&(this.#e=wc.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Pc?1/0:300*1e3))}clearGcTimeout(){this.#e&&(wc.clearTimeout(this.#e),this.#e=void 0)}},LX=class extends Hz{#e;#t;#n;#i;#r;#a;#s;constructor(e){super(),this.#s=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#n=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=ID(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=ID(this.options);t.data!==void 0&&(this.setState(RD(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=cC(this.state.data,e,this.options);return this.#o({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#o({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(Wr).catch(Wr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>So(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===eE||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>hl(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!Lz(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers