"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("./index.cjs119.js"),$=require("./index.cjs318.js"),k=require("./index.cjs319.js"),N=require("./index.cjs252.js"),A=require("./index.cjs320.js"),S=require("./index.cjs321.js"),c=require("./index.cjs322.js"),M=require("./index.cjs323.js"),B=require("./index.cjs258.js"),X=require("./index.cjs124.js");var q,E;function F(){if(E)return q;E=1;var d=P.utils,R=$.__require(),_=k.__require(),C=N.buildURL,L=A.__require(),w=S.__require(),U=c.__require(),p=M.__require(),y=B.transitional,x=X.__require();return q=function(e){return new Promise(function(H,u){var o=e.data,i=e.headers,l=e.responseType,s;function h(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}d.isFormData(o)&&delete i["Content-Type"];var r=new XMLHttpRequest;if(e.auth){var f=e.auth.username||"",D=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.Authorization="Basic "+btoa(f+":"+D)}var m=L(e.baseURL,e.url);r.open(e.method.toUpperCase(),C(m,e.params,e.paramsSerializer),!0),r.timeout=e.timeout;function T(){if(r){var t="getAllResponseHeaders"in r?w(r.getAllResponseHeaders()):null,n=!l||l==="text"||l==="json"?r.responseText:r.response,a={data:n,status:r.status,statusText:r.statusText,headers:t,config:e,request:r};R(function(v){H(v),h()},function(v){u(v),h()},a),r=null}}if("onloadend"in r?r.onloadend=T:r.onreadystatechange=function(){!r||r.readyState!==4||r.status===0&&!(r.responseURL&&r.responseURL.indexOf("file:")===0)||setTimeout(T)},r.onabort=function(){r&&(u(p("Request aborted",e,"ECONNABORTED",r)),r=null)},r.onerror=function(){u(p("Network Error",e,null,r)),r=null},r.ontimeout=function(){var n=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",a=e.transitional||y;e.timeoutErrorMessage&&(n=e.timeoutErrorMessage),u(p(n,e,a.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",r)),r=null},d.isStandardBrowserEnv()){var b=(e.withCredentials||U(m))&&e.xsrfCookieName?_.read(e.xsrfCookieName):void 0;b&&(i[e.xsrfHeaderName]=b)}"setRequestHeader"in r&&d.forEach(i,function(n,a){typeof o>"u"&&a.toLowerCase()==="content-type"?delete i[a]:r.setRequestHeader(a,n)}),d.isUndefined(e.withCredentials)||(r.withCredentials=!!e.withCredentials),l&&l!=="json"&&(r.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&r.addEventListener("progress",e.onDownloadProgress),typeof e.onUploadProgress=="function"&&r.upload&&r.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(s=function(t){r&&(u(!t||t&&t.type?new x("canceled"):t),r.abort(),r=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s))),o||(o=null),r.send(o)})},q}exports.__require=F;
//# sourceMappingURL=index.cjs259.js.map
