"use strict";const c=require("./index.cjs226.js");function e(t,i,o,E,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",i&&(this.code=i),o&&(this.config=o),E&&(this.request=E),s&&(this.response=s,this.status=s.status?s.status:null)}c.inherits(e,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:c.toJSONObject(this.config),code:this.code,status:this.status}}});const u=e.prototype,R={};["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=>{R[t]={value:t}});Object.defineProperties(e,R);Object.defineProperty(u,"isAxiosError",{value:!0});e.from=(t,i,o,E,s,a)=>{const r=Object.create(u);return c.toFlatObject(t,r,function(h){return h!==Error.prototype},n=>n!=="isAxiosError"),e.call(r,t.message,i,o,E,s),r.cause=t,r.name=t.name,a&&Object.assign(r,a),r};module.exports=e;
//# sourceMappingURL=index.cjs237.js.map
