"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("./index.cjs119.js"),C=require("./index.cjs252.js"),I=require("./index.cjs253.js"),E=require("./index.cjs254.js"),M=require("./index.cjs122.js"),$=require("./index.cjs255.js");var y=w.utils,L=C.buildURL,c=I.InterceptorManager_1,q=E.dispatchRequest,d=M.mergeConfig,m=$.validator,n=m.validators;function p(u){this.defaults=u,this.interceptors={request:new c,response:new c}}p.prototype.request=function(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=d(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var a=e.transitional;a!==void 0&&m.assertOptions(a,{silentJSONParsing:n.transitional(n.boolean),forcedJSONParsing:n.transitional(n.boolean),clarifyTimeoutError:n.transitional(n.boolean)},!1);var o=[],f=!0;this.interceptors.request.forEach(function(s){typeof s.runWhen=="function"&&s.runWhen(e)===!1||(f=f&&s.synchronous,o.unshift(s.fulfilled,s.rejected))});var h=[];this.interceptors.response.forEach(function(s){h.push(s.fulfilled,s.rejected)});var r;if(!f){var i=[q,void 0];for(Array.prototype.unshift.apply(i,o),i=i.concat(h),r=Promise.resolve(e);i.length;)r=r.then(i.shift(),i.shift());return r}for(var v=e;o.length;){var b=o.shift(),R=o.shift();try{v=b(v)}catch(l){R(l);break}}try{r=q(v)}catch(l){return Promise.reject(l)}for(;h.length;)r=r.then(h.shift(),h.shift());return r};p.prototype.getUri=function(t){return t=d(this.defaults,t),L(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};y.forEach(["delete","get","head","options"],function(t){p.prototype[t]=function(e,a){return this.request(d(a||{},{method:t,url:e,data:(a||{}).data}))}});y.forEach(["post","put","patch"],function(t){p.prototype[t]=function(e,a,o){return this.request(d(o||{},{method:t,url:e,data:a}))}});var P=p;exports.Axios_1=P;
//# sourceMappingURL=index.cjs121.js.map
