"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index.cjs119.js"),h=require("./index.cjs300.js"),p=require("./index.cjs126.js"),m=require("./index.cjs123.js"),o=require("./index.cjs124.js");var u=n.utils,r=h.transformData,q=p.__require(),c=m.defaults_1,i=o.__require();function s(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new i("canceled")}var R=function(e){s(e),e.headers=e.headers||{},e.data=r.call(e,e.data,e.headers,e.transformRequest),e.headers=u.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),u.forEach(["delete","get","head","post","put","patch","common"],function(a){delete e.headers[a]});var l=e.adapter||c.adapter;return l(e).then(function(a){return s(e),a.data=r.call(e,a.data,a.headers,e.transformResponse),a},function(a){return q(a)||(s(e),a&&a.response&&(a.response.data=r.call(e,a.response.data,a.response.headers,e.transformResponse))),Promise.reject(a)})};exports.dispatchRequest=R;
//# sourceMappingURL=index.cjs254.js.map
