axios 0.34.0 → 0.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/axios.min.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).axios=t()}(this,(function(){"use strict";var e,t=function(e,t){return function(){return e.apply(t,arguments)}},r=Object.prototype.toString,n=(e=Object.create(null),function(t){var n=r.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())});function o(e){return e=e.toLowerCase(),function(t){return n(t)===e}}function i(e){return Array.isArray(e)}function a(e){return void 0===e}var s=o("ArrayBuffer");function c(e){return"number"==typeof e}function u(e){return null!==e&&"object"==typeof e}function f(e){if("object"!==n(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var l=o("Date"),p=o("File"),d=o("Blob"),h=o("FileList");function m(e){return"[object Function]"===r.call(e)}var y=o("URLSearchParams");function v(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}function E(e,t,r){var n=Object.create(null);n.value=r,n.writable=!0,n.enumerable=!0,n.configurable=!0,Object.defineProperty(e,t,n)}var b,O=(b="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return b&&e instanceof b});var g,w=o("HTMLFormElement"),R=(g=Object.prototype.hasOwnProperty,function(e,t){return g.call(e,t)}),j={isArray:i,isArrayBuffer:s,isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";if(!e)return!1;if("function"==typeof FormData&&e instanceof FormData)return!0;if(!u(e))return!1;var n=Object.getPrototypeOf(e);return!(!n||n===Object.prototype)&&(!!m(e.append)&&(r.call(e)===t||m(e.toString)&&e.toString()===t))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&s(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:c,isObject:u,isPlainObject:f,isEmptyObject:function(e){if(!f(e))return!1;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},isUndefined:a,isDate:l,isFile:p,isBlob:d,isFunction:m,isStream:function(e){return u(e)&&m(e.pipe)},isURLSearchParams:y,isStandardBrowserEnv:function(){var e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:v,merge:function e(){var t=Object.create(null);function r(r,n){var o;"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(f(o=Object.prototype.hasOwnProperty.call(t,n)?t[n]:void 0)&&f(r)?t[n]=e(o,r):f(r)?t[n]=e({},r):i(r)?t[n]=r.slice():t[n]=r)}for(var n=0,o=arguments.length;n<o;n++)v(arguments[n],r);return t},extend:function(e,r,n){return v(r,(function(r,o){e[o]=n&&"function"==typeof r?t(r,n):r})),e},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,r,n){if(e.prototype=Object.create(t.prototype,n),Object.prototype.hasOwnProperty.call(e.prototype,"constructor")?e.prototype.constructor=e:E(e.prototype,"constructor",e),r){var o=Object.keys(r);Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.prototype.propertyIsEnumerable.call(r,e)})))),o.forEach((function(t){var n=r[t];Object.prototype.hasOwnProperty.call(e.prototype,t)?e.prototype[t]=n:E(e.prototype,t,n)}))}},toFlatObject:function(e,t,r,n){var o,i,a,s={};if(t=t||{},null==e)return t;do{for(i=(o=Object.getOwnPropertyNames(e)).length;i-- >0;)a=o[i],n&&!n(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==r&&Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:n,kindOfTest:o,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var n=e.indexOf(t,r);return-1!==n&&n===r},toArray:function(e){if(!e)return null;if(i(e))return e;var t=e.length;if(!c(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r},isTypedArray:O,isFileList:h,forEachEntry:function(e,t){for(var r,n=(e&&e[Symbol.iterator]).call(e);(r=n.next())&&!r.done;){var o=r.value;t.call(e,o[0],o[1])}},matchAll:function(e,t){for(var r,n=[];null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:w,hasOwnProperty:R},S=["authorization","proxy-authorization","cookie","set-cookie","x-api-key","password"];function A(e){var t=Object.create(null);return t.value=e,t}var _="[Circular]";function P(e,t,r,n){var o;return function(e,t){return"string"==typeof e&&t[e.toLowerCase()]}(r,t)?"[REDACTED ****]":j.isArray(e)?-1!==n.indexOf(e)?_:(n.push(e),o=[],j.forEach(e,(function(e,r){o[r]=P(e,t,r,n)})),n.pop(),o):j.isPlainObject(e)?-1!==n.indexOf(e)?_:(n.push(e),o={},j.forEach(e,(function(e,r){o[r]=P(e,t,r,n)})),n.pop(),o):e}function T(e){return e?P(e,function(e){var t=(e&&j.isArray(e.redact)&&e.redact.length?e.redact:null)||S,r={};return j.forEach(t,(function(e){"string"==typeof e&&(r[e.toLowerCase()]=!0)})),r}(e),void 0,[]):e}function x(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}j.inherits(x,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:T(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var D=x.prototype,C=Object.create(null);["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","ERR_FORM_DATA_DEPTH_EXCEEDED"].forEach((function(e){C[e]=A(e)})),Object.defineProperties(x,C),Object.defineProperty(D,"isAxiosError",A(!0)),x.from=function(e,t,r,n,o,i){var a=Object.create(D);return j.toFlatObject(e,a,(function(e){return e!==Error.prototype})),x.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var N=x,F="object"==typeof self?self.FormData:window.FormData;function U(e){return j.isPlainObject(e)||j.isArray(e)}function B(e){return j.endsWith(e,"[]")?e.slice(0,-2):e}function k(e,t,r){return e?e.concat(t).map((function(e,t){return e=B(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}var L=j.toFlatObject(j,{},null,(function(e){return/^is[A-Z]/.test(e)}));var M=["__proto__","constructor","prototype"];var q=function(e,t,r){if(!j.isObject(e))throw new TypeError("target must be an object");t=t||new(F||FormData);var n,o=(r=function(e){var t=Object.create(null);if(t.metaTokens=!0,t.dots=!1,t.indexes=!1,null==e)return t;for(var r=Object.getOwnPropertyNames(e),n=0;n<r.length;n++){var o=r[n];-1!==M.indexOf(o)||j.isUndefined(e[o])||(t[o]=e[o])}return t}(r)).metaTokens,i=r.visitor||h,a=r.dots,s=r.indexes,c=r.Blob||"undefined"!=typeof Blob&&Blob,u=void 0===r.maxDepth?100:r.maxDepth,f=c&&((n=t)&&j.isFunction(n.append)&&"FormData"===n[Symbol.toStringTag]&&n[Symbol.iterator]);if(!j.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(j.isDate(e))return e.toISOString();if(!f&&j.isBlob(e))throw new N("Blob is not supported. Use a Buffer instead.");return j.isArrayBuffer(e)||j.isTypedArray(e)?f&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}var p=[];function d(e,t){if(t>u)throw new N("Maximum object depth of "+u+" exceeded (got "+t+" levels)",N.ERR_FORM_DATA_DEPTH_EXCEEDED);j.isObject(e)&&-1===p.indexOf(e)&&(p.push(e),j.forEach(e,(function(e){d(e,t+1)})),p.pop())}function h(e,r,n){var i=e;if(e&&!n&&"object"==typeof e)if(j.endsWith(r,"{}"))r=o?r:r.slice(0,-2),d(e,1),e=JSON.stringify(e);else if(j.isArray(e)&&function(e){return j.isArray(e)&&!e.some(U)}(e)||j.isFileList(e)||j.endsWith(r,"[]")&&(i=j.toArray(e)))return r=B(r),i.forEach((function(e,n){!j.isUndefined(e)&&null!==e&&t.append(!0===s?k([r],n,a):null===s?r:r+"[]",l(e))})),!1;return!!U(e)||(t.append(k(n,r,a),l(e)),!1)}var m=Object.assign(L,{defaultVisitor:h,convertValue:l,isVisitable:U});if(!j.isObject(e))throw new TypeError("data must be an object");return function e(r,n,o){if(!j.isUndefined(r)){if((o=o||0)>u)throw new N("Maximum object depth of "+u+" exceeded (got "+o+" levels)",N.ERR_FORM_DATA_DEPTH_EXCEEDED);if(-1!==p.indexOf(r))throw Error("Circular reference detected in "+n.join("."));p.push(r),j.forEach(r,(function(r,a){!0===(!(j.isUndefined(r)||null===r)&&i.call(t,r,j.isString(a)?a.trim():a,n,m))&&e(r,n?n.concat(a):[a],o+1)})),p.pop()}}(e,null,0),t};function I(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'\(\)~]|%20/g,(function(e){return t[e]}))}function z(e,t){this._pairs=[],e&&q(e,this,t)}var H=z.prototype;H.append=function(e,t){this._pairs.push([e,t])},H.toString=function(e){var t=e?function(t){return e.call(this,t,I)}:I;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var J=z;function V(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var X=function(e,t,r){if(!t)return e;var n=e.indexOf("#");-1!==n&&(e=e.slice(0,n));var o,i,a=V;return r&&(j.isFunction(r)?o=r:(a=j.hasOwnProperty(r,"encode")&&r.encode||V,o=j.hasOwnProperty(r,"serialize")?r.serialize:void 0)),(i=o?o(t,r):j.isURLSearchParams(t)?t.toString():new J(t,r).toString(a))&&(e+=(-1===e.indexOf("?")?"?":"&")+i),e};function W(){this.handlers=[]}W.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},W.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},W.prototype.clear=function(){this.handlers&&(this.handlers=[])},W.prototype.forEach=function(e){j.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var $=W,K=function(e,t){j.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))},Q={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},G={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:J,FormData:FormData,Blob:Blob},protocols:["http","https","file","blob","url","data"]};var Y=function(e){function t(e,r,n,o){var i=e[o++];if("__proto__"===i)return!0;var a=Number.isFinite(+i),s=o>=e.length;return i=!i&&j.isArray(n)?n.length:i,s?(j.hasOwnProperty(n,i)?n[i]=[n[i],r]:n[i]=r,!a):(n[i]&&j.isObject(n[i])||(n[i]=[]),t(e,r,n[i],o)&&j.isArray(n[i])&&(n[i]=function(e){var t,r,n={},o=Object.keys(e),i=o.length;for(t=0;t<i;t++)n[r=o[t]]=e[r];return n}(n[i])),!a)}if(j.isFormData(e)&&j.isFunction(e.entries)){var r={};return j.forEachEntry(e,(function(e,n){var o=function(e){return j.matchAll(/\w+|\[(\w*)]/g,e).map((function(e){return"[]"===e[0]?"":e[1]||e[0]}))}(e);!function(e){var t=e.length-1;if(t>100)throw new N("Maximum object depth of 100 exceeded (got "+t+" levels)",N.ERR_FORM_DATA_DEPTH_EXCEEDED)}(o),t(o,n,r,0)})),r}return null},Z=j.isStandardBrowserEnv()?{write:function(e,t,r,n,o,i){var a=[];a.push(e+"="+encodeURIComponent(t)),j.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),j.isString(n)&&a.push("path="+n),j.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){for(var t,r=e+"=",n=document.cookie.split(";"),o=0;o<n.length;o++){for(t=n[o];" "===t.charAt(0);)t=t.substring(1);if(0===t.indexOf(r))return decodeURIComponent(t.substring(r.length))}return null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},ee=function(e,t,r){var n=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(n||!1===r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t},te=["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"],re=j.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){var r=j.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0};function ne(e,t,r){N.call(this,null==e?"canceled":e,N.ERR_CANCELED,t,r),this.name="CanceledError"}j.inherits(ne,N,{__CANCEL__:!0});var oe=ne,ie=function(e,t,r){var n=new oe(null,t,r);if(e)try{var o=e.reason;void 0!==o&&(n.reason=o)}catch(e){}return n},ae=function(e){return new Promise((function(t,r){var n,o=e.data,i=e.headers,a=e.responseType,s=j.hasOwnProperty(e,"withXSRFToken")?e.withXSRFToken:void 0;function c(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}j.isFormData(o)&&j.isStandardBrowserEnv()&&delete i["Content-Type"];var u=new XMLHttpRequest,f=j.hasOwnProperty(e,"auth")?e.auth:void 0;if(f){var l=j.hasOwnProperty(f,"username")&&f.username||"",p=j.hasOwnProperty(f,"password")&&f.password?unescape(encodeURIComponent(f.password)):"";i.Authorization="Basic "+btoa(l+":"+p)}var d=ee(e.baseURL,e.url,e.allowAbsoluteUrls);function h(){if(u){var n,o,i,s,f,l="getAllResponseHeaders"in u?(n=u.getAllResponseHeaders(),f={},n?(j.forEach(n.split("\n"),(function(e){if(s=e.indexOf(":"),o=j.trim(e.slice(0,s)).toLowerCase(),i=j.trim(e.slice(s+1)),o){if(f[o]&&te.indexOf(o)>=0)return;f[o]="set-cookie"===o?(f[o]?f[o]:[]).concat([i]):f[o]?f[o]+", "+i:i}})),f):f):null;!function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new N("Request failed with status code "+r.status,[N.ERR_BAD_REQUEST,N.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}((function(e){t(e),c()}),(function(e){r(e),c()}),{data:a&&"text"!==a&&"json"!==a?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:l,config:e,request:u}),u=null}}if(u.open(e.method.toUpperCase(),X(d,e.params,j.hasOwnProperty(e,"paramsSerializer")?e.paramsSerializer:void 0),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=h:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(h)},u.onabort=function(){u&&(r(new N("Request aborted",N.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new N("Network Error",N.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||Q;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new N(t,n.clarifyTimeoutError?N.ETIMEDOUT:N.ECONNABORTED,e,u)),u=null},j.isStandardBrowserEnv()&&(j.isFunction(s)&&(s=s(e)),!0===s||!1!==s&&re(d))){var m=e.xsrfHeaderName&&e.xsrfCookieName&&Z.read(e.xsrfCookieName);m&&(i[e.xsrfHeaderName]=m)}"setRequestHeader"in u&&j.forEach(i,(function(e,t){void 0===o&&"content-type"===t.toLowerCase()?delete i[t]:u.setRequestHeader(t,e)})),j.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),a&&"json"!==a&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(n=function(t){u&&(r(!t||t.type?ie(e.signal,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n))),o||!1===o||0===o||""===o||(o=null);var y,v=(y=/^([-+\w]{1,25})(:?\/\/|:)/.exec(d))&&y[1]||"";v&&-1===G.protocols.indexOf(v)?r(new N("Unsupported protocol "+v+":",N.ERR_BAD_REQUEST,e)):u.send(o)}))},se={"Content-Type":"application/x-www-form-urlencoded"};function ce(e,t){!j.isUndefined(e)&&j.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var ue,fe={transitional:Q,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(ue=ae),ue),transformRequest:[function(e,t){K(t,"Accept"),K(t,"Content-Type");var r,n=t&&t["Content-Type"]||"",o=n.indexOf("application/json")>-1,i=j.isObject(e);if(i&&j.isHTMLForm(e)&&(e=new FormData(e)),j.isFormData(e))return o?JSON.stringify(Y(e)):e;if(j.isArrayBuffer(e)||j.isBuffer(e)||j.isStream(e)||j.isFile(e)||j.isBlob(e))return e;if(j.isArrayBufferView(e))return e.buffer;if(j.isURLSearchParams(e))return ce(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();if(i){var a=j.hasOwnProperty(this,"formSerializer")?this.formSerializer:void 0,s=j.hasOwnProperty(this,"env")?this.env:void 0;if(-1!==n.indexOf("application/x-www-form-urlencoded"))return function(e,t){return q(e,new G.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return G.isNode&&j.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,a).toString();if((r=j.isFileList(e))||n.indexOf("multipart/form-data")>-1){var c=s&&s.FormData;return q(r?{"files[]":e}:e,c&&new c,a)}}return i||o?(ce(t,"application/json"),function(e,t,r){if(j.isString(e))try{return(t||JSON.parse)(e),j.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||fe.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&j.isString(e)&&(r&&!this.responseType||n)){var o=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw N.from(e,N.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,redact:S.slice(),env:{FormData:G.classes.FormData,Blob:G.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};j.forEach(["delete","get","head"],(function(e){fe.headers[e]={}})),j.forEach(["post","put","patch"],(function(e){fe.headers[e]=j.merge(se)}));var le=fe,pe=function(e,t,r,n){var o=this||le;return j.forEach(n,(function(n){e=n.call(o,e,t,r)})),e},de=function(e){return!(!e||!e.__CANCEL__)},he=/[^\x09\x20-\x7E\x80-\xFF]/g,me=/^[\x09\x20]+|[\x09\x20]+$/g;var ye=function e(t){return!1===t||null==t?t:j.isArray(t)?t.map(e):String(t).replace(he,"").replace(me,"")};function ve(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw ie(e.signal,e)}var Ee=function(e){ve(e),e.headers=j.hasOwnProperty(e,"headers")&&e.headers||{},e.data=pe.call(e,e.data,e.headers,null,e.transformRequest),K(e.headers,"Accept"),K(e.headers,"Content-Type");var t=j.hasOwnProperty(e.headers,"common")&&e.headers.common?e.headers.common:{},r=e.method&&j.hasOwnProperty(e.headers,e.method)&&e.headers[e.method]?e.headers[e.method]:{};return e.headers=j.merge(t,r,e.headers),j.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),j.forEach(e.headers,(function(t,r){e.headers[r]=ye(t)})),(e.adapter||le.adapter)(e).then((function(t){return ve(e),t.data=pe.call(e,t.data,t.headers,t.status,e.transformResponse),t}),(function(t){return de(t)||(ve(e),t&&t.response&&(t.response.data=pe.call(e,t.response.data,t.response.headers,t.response.status,e.transformResponse))),Promise.reject(t)}))},be=function(e,t){t=t||{};var r=Object.create(null);function n(e,t){return j.hasOwnProperty(e,t)?e[t]:void 0}function o(e,t){return j.hasOwnProperty(e,t)}function i(e,t){return j.isPlainObject(e)&&j.isPlainObject(t)?j.merge(e,t):j.isEmptyObject(t)?j.merge({},e):j.isPlainObject(t)?j.merge({},t):j.isArray(t)?t.slice():t}function a(r){return o(t,r)&&!j.isUndefined(t[r])?i(n(e,r),t[r]):o(e,r)&&!j.isUndefined(e[r])?i(void 0,e[r]):void 0}function s(e){if(o(t,e)&&!j.isUndefined(t[e]))return i(void 0,t[e])}function c(r){return o(t,r)&&!j.isUndefined(t[r])?i(void 0,t[r]):o(e,r)&&!j.isUndefined(e[r])?i(void 0,e[r]):void 0}function u(r){return o(t,r)?i(n(e,r),t[r]):o(e,r)?i(void 0,e[r]):void 0}var f={url:s,method:s,data:s,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,signal:function(r){var o=n(t,r);return j.isUndefined(o)?n(e,r):o},socketPath:c,allowedSocketPaths:c,responseEncoding:c,validateStatus:u};return j.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){if("__proto__"!==e&&"constructor"!==e&&"prototype"!==e){var t=j.hasOwnProperty(f,e)?f[e]:a,n=t(e);j.isUndefined(n)&&t!==u||(r[e]=n)}})),r},Oe="0.34.0",ge=Oe,we={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){we[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var Re={};we.transitional=function(e,t,r){function n(e,t){return"[Axios v"+ge+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,o,i){if(!1===e)throw new N(n(o," has been removed"+(t?" in "+t:"")),N.ERR_DEPRECATED);return t&&!Re[o]&&(Re[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}};var je={assertOptions:function(e,t,r){if("object"!=typeof e)throw new N("options must be an object",N.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),o=n.length;o-- >0;){var i=n[o],a=t[i];if(a){var s=e[i],c=void 0===s||a(s,i,e);if(!0!==c)throw new N("option "+i+" must be "+c,N.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new N("Unknown option "+i,N.ERR_BAD_OPTION)}},validators:we},Se=je.validators;function Ae(e,t){return t?e.then(null,(function(e){try{if(e instanceof Error||"[object Error]"===Object.prototype.toString.call(e)){var r=t.stack;if("string"==typeof r){var n=r.indexOf("\n");r=-1===n?"":r.slice(n+1);var o=e.stack;!r||null!=o&&""!==o?r&&"string"==typeof o&&-1===o.indexOf(r)&&(e.stack=o+"\n"+r):e.stack=r}}}catch(e){}return Promise.reject(e)})):e}function _e(e){return function(){return Ee(e)}}function Pe(e){this.defaults=e,this.interceptors={request:new $,response:new $}}Pe.prototype.request=function e(t,r){"string"==typeof t?(r=r||{}).url=t:r=t||{};var n=!0===(r=be(this.defaults,r)).captureCallerStack?function(e){var t={};try{Error.captureStackTrace?Error.captureStackTrace(t,e):t=new Error}catch(e){}return t}(e):null;r.method?r.method=r.method.toLowerCase():j.hasOwnProperty(this.defaults,"method")&&this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var o=r.transitional;void 0!==o&&je.assertOptions(o,{silentJSONParsing:Se.transitional(Se.boolean),forcedJSONParsing:Se.transitional(Se.boolean),clarifyTimeoutError:Se.transitional(Se.boolean)},!1);var i=r.paramsSerializer;null!=i&&(j.isFunction(i)?r.paramsSerializer={serialize:i}:je.assertOptions(i,{encode:Se.function,serialize:Se.function},!0));var a=[],s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(r)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));var c,u=[];if(this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)})),!s){var f=[Ee,void 0];for(Array.prototype.unshift.apply(f,a),f=f.concat(u),c=Promise.resolve(r);f.length;)c=c.then(f.shift(),f.shift());return Ae(c,n)}for(var l=r;a.length;){var p=a.shift(),d=a.shift();try{l=p?p(l):l}catch(e){if(!d){c=Promise.reject(e);break}try{var h=d(e);h&&"function"==typeof h.then&&(c=Promise.resolve(h).then(_e(l)))}catch(e){c=Promise.reject(e)}break}}if(!c)try{c=Ee(l)}catch(e){c=Promise.reject(e)}for(;u.length;)c=c.then(u.shift(),u.shift());return Ae(c,n)},Pe.prototype.getUri=function(e){e=be(this.defaults,e);var t=ee(e.baseURL,e.url,e.allowAbsoluteUrls);return X(t,e.params,e.paramsSerializer)},j.forEach(["delete","get","head","options"],(function(e){Pe.prototype[e]=function(t,r){var n=r||{};return this.request(be(n,{method:e,url:t,data:j.hasOwnProperty(n,"data")?n.data:void 0}))}})),j.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(be(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}Pe.prototype[e]=t(),Pe.prototype[e+"Form"]=t(!0)}));var Te=Pe;function xe(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){for(var t=r._listeners.length;t-- >0;)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,o){r.reason||(r.reason=new oe(e,n,o),t(r.reason))}))}xe.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},xe.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},xe.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},xe.source=function(){var e;return{token:new xe((function(t){e=t})),cancel:e}};var De=xe;var Ce=function e(r){var n=new Te(r),o=t(Te.prototype.request,n);return j.extend(o,Te.prototype,n),j.extend(o,n),o.create=function(t){return e(be(r,t))},o}(le);Ce.Axios=Te,Ce.CanceledError=oe,Ce.CancelToken=De,Ce.isCancel=de,Ce.VERSION=Oe,Ce.toFormData=q,Ce.AxiosError=N,Ce.Cancel=Ce.CanceledError,Ce.all=function(e){return Promise.all(e)},Ce.spread=function(e){return function(t){return e.apply(null,t)}},Ce.isAxiosError=function(e){return j.isObject(e)&&!0===e.isAxiosError},Ce.formToJSON=function(e){return Y(j.isHTMLForm(e)?new FormData(e):e)};var Ne=Ce,Fe=Ce;return Ne.default=Fe,Ne}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).axios=t()}(this,(function(){"use strict";var e,t=function(e,t){return function(){return e.apply(t,arguments)}},r=Object.prototype.toString,n=(e=Object.create(null),function(t){var n=r.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())});function o(e){return e=e.toLowerCase(),function(t){return n(t)===e}}function i(e){return Array.isArray(e)}function a(e){return void 0===e}var s=o("ArrayBuffer");function c(e){return null!==e&&"object"==typeof e}function u(e){if("object"!==n(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var f=o("Date"),l=o("File"),p=o("Blob"),h=o("FileList");function d(e){return"[object Function]"===r.call(e)}var m=o("URLSearchParams");function y(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}function v(e,t,r){var n=Object.create(null);n.value=r,n.writable=!0,n.enumerable=!0,n.configurable=!0,Object.defineProperty(e,t,n)}var O,b=(O="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return O&&e instanceof O});var g,E=o("HTMLFormElement"),w=(g=Object.prototype.hasOwnProperty,function(e,t){return g.call(e,t)}),j={isArray:i,isArrayBuffer:s,isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";if(!e)return!1;if("function"==typeof FormData&&e instanceof FormData)return!0;if(!c(e))return!1;var n=Object.getPrototypeOf(e);return!(!n||n===Object.prototype)&&(!!d(e.append)&&(r.call(e)===t||d(e.toString)&&e.toString()===t))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&s(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:c,isPlainObject:u,isEmptyObject:function(e){if(!u(e))return!1;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},isUndefined:a,isDate:f,isFile:l,isBlob:p,isFunction:d,isStream:function(e){return c(e)&&d(e.pipe)},isURLSearchParams:m,isStandardBrowserEnv:function(){var e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:y,merge:function e(){var t=Object.create(null);function r(r,n){var o;"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(u(o=Object.prototype.hasOwnProperty.call(t,n)?t[n]:void 0)&&u(r)?t[n]=e(o,r):u(r)?t[n]=e({},r):i(r)?t[n]=r.slice():t[n]=r)}for(var n=0,o=arguments.length;n<o;n++)y(arguments[n],r);return t},extend:function(e,r,n){return y(r,(function(r,o){e[o]=n&&"function"==typeof r?t(r,n):r})),e},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,r,n){if(e.prototype=Object.create(t.prototype,n),Object.prototype.hasOwnProperty.call(e.prototype,"constructor")?e.prototype.constructor=e:v(e.prototype,"constructor",e),r){var o=Object.keys(r);Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.prototype.propertyIsEnumerable.call(r,e)})))),o.forEach((function(t){var n=r[t];Object.prototype.hasOwnProperty.call(e.prototype,t)?e.prototype[t]=n:v(e.prototype,t,n)}))}},defineOwnProperty:v,toFlatObject:function(e,t,r,n){var o,i,a,s={};if(t=t||{},null==e)return t;do{for(i=(o=Object.getOwnPropertyNames(e)).length;i-- >0;)a=o[i],n&&!n(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==r&&Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:n,kindOfTest:o,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var n=e.indexOf(t,r);return-1!==n&&n===r},toArray:function(e){if(!e)return null;if(i(e))return e;var t=e.length;if("number"!=typeof t||t<0||t>4294967295||Math.floor(t)!==t)return null;if(h(e)){for(var r=[];t-- >0;){var n=e[t];if(null===n||a(n))return null;v(r,t,n)}return r}for(var o=Object(e),s=Object.create(null),c=0,u=[],f=Object.prototype.hasOwnProperty;o&&c<t;){if(-1!==u.indexOf(o))return null;if(v(u,u.length,o),o===Object.prototype)break;var l=Object.getPrototypeOf(o);if(null===l){var p=Object.getOwnPropertyDescriptor(o,"constructor"),d=p&&f.call(p,"value")&&p.value,m="function"==typeof d&&Object.getOwnPropertyDescriptor(d,"prototype");if(m&&f.call(m,"value")&&m.value===o&&Function.prototype.toString.call(d)===Function.prototype.toString.call(Object))break}for(var y=Object.getOwnPropertyNames(o),O=0;O<y.length;O++){var b=y[O],g=+b;g>=0&&g<t&&Math.floor(g)===g&&String(g)===b&&f.call(o,b)&&!s[b]&&(s[b]=!0,c++)}o=l}if(c!==t)return null;for(var E=new Array(t);t-- >0;)v(E,t,e[t]);return E},isTypedArray:b,isFileList:h,forEachEntry:function(e,t){for(var r,n=(e&&e[Symbol.iterator]).call(e);(r=n.next())&&!r.done;){var o=r.value;t.call(e,o[0],o[1])}},matchAll:function(e,t){for(var r,n=[];null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:E,hasOwnProperty:w},R=["authorization","proxy-authorization","cookie","set-cookie","x-api-key","password"];function P(e){var t=Object.create(null);return t.value=e,t}var _="[Circular]";function A(e,t,r,n){var o;return function(e,t){return"string"==typeof e&&t[e.toLowerCase()]}(r,t)?"[REDACTED ****]":j.isArray(e)?-1!==n.indexOf(e)?_:(n.push(e),o=[],j.forEach(e,(function(e,r){o[r]=A(e,t,r,n)})),n.pop(),o):j.isPlainObject(e)?-1!==n.indexOf(e)?_:(n.push(e),o={},j.forEach(e,(function(e,r){o[r]=A(e,t,r,n)})),n.pop(),o):e}function S(e){return e?A(e,function(e){var t=(e&&j.isArray(e.redact)&&e.redact.length?e.redact:null)||R,r={};return j.forEach(t,(function(e){"string"==typeof e&&(r[e.toLowerCase()]=!0)})),r}(e),void 0,[]):e}function x(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}j.inherits(x,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:S(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var T=x.prototype,D=Object.create(null);["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","ERR_FORM_DATA_DEPTH_EXCEEDED"].forEach((function(e){D[e]=P(e)})),Object.defineProperties(x,D),Object.defineProperty(T,"isAxiosError",P(!0)),x.from=function(e,t,r,n,o,i){var a=Object.create(T);return j.toFlatObject(e,a,(function(e){return e!==Error.prototype})),x.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var N=x,C="object"==typeof self?self.FormData:window.FormData;function F(e){return j.isPlainObject(e)||j.isArray(e)}function U(e){return j.endsWith(e,"[]")?e.slice(0,-2):e}function k(e,t,r){return e?e.concat(t).map((function(e,t){return e=U(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}var B=j.toFlatObject(j,{},null,(function(e){return/^is[A-Z]/.test(e)}));var L=["__proto__","constructor","prototype"];var M=function(e,t,r){if(!j.isObject(e))throw new TypeError("target must be an object");t=t||new(C||FormData);var n,o=(r=function(e){var t=Object.create(null);if(t.metaTokens=!0,t.dots=!1,t.indexes=!1,null==e)return t;for(var r=Object.getOwnPropertyNames(e),n=0;n<r.length;n++){var o=r[n];-1!==L.indexOf(o)||j.isUndefined(e[o])||(t[o]=e[o])}return t}(r)).metaTokens,i=r.visitor||d,a=r.dots,s=r.indexes,c=r.Blob||"undefined"!=typeof Blob&&Blob,u=void 0===r.maxDepth?100:r.maxDepth,f=c&&((n=t)&&j.isFunction(n.append)&&"FormData"===n[Symbol.toStringTag]&&n[Symbol.iterator]);if(!j.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(j.isDate(e))return e.toISOString();if(!f&&j.isBlob(e))throw new N("Blob is not supported. Use a Buffer instead.");return j.isArrayBuffer(e)||j.isTypedArray(e)?f&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}var p=[];function h(e,t){if(t>u)throw new N("Maximum object depth of "+u+" exceeded (got "+t+" levels)",N.ERR_FORM_DATA_DEPTH_EXCEEDED);j.isObject(e)&&-1===p.indexOf(e)&&(j.defineOwnProperty(p,p.length,e),j.forEach(e,(function(e){h(e,t+1)})),p.pop())}function d(e,r,n){var i=e;if(e&&!n&&"object"==typeof e)if(j.endsWith(r,"{}"))r=o?r:r.slice(0,-2),h(e,1),e=JSON.stringify(e);else if(j.isArray(e)&&function(e){return j.isArray(e)&&!e.some(F)}(e)||(j.isFileList(e)||j.endsWith(r,"[]"))&&(i=j.toArray(e)))return r=U(r),i.forEach((function(e,n){!j.isUndefined(e)&&null!==e&&t.append(!0===s?k([r],n,a):null===s?r:r+"[]",l(e))})),!1;return!!F(e)||(t.append(k(n,r,a),l(e)),!1)}var m=Object.assign(B,{defaultVisitor:d,convertValue:l,isVisitable:F});if(!j.isObject(e))throw new TypeError("data must be an object");return function e(r,n,o){if(!j.isUndefined(r)){if((o=o||0)>u)throw new N("Maximum object depth of "+u+" exceeded (got "+o+" levels)",N.ERR_FORM_DATA_DEPTH_EXCEEDED);if(-1!==p.indexOf(r))throw Error("Circular reference detected in "+n.join("."));j.defineOwnProperty(p,p.length,r),j.forEach(r,(function(r,a){!0===(!(j.isUndefined(r)||null===r)&&i.call(t,r,j.isString(a)?a.trim():a,n,m))&&e(r,n?n.concat(a):[a],o+1)})),p.pop()}}(e,null,0),t};function I(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'\(\)~]|%20/g,(function(e){return t[e]}))}function q(e,t){this._pairs=[],e&&M(e,this,t)}var z=q.prototype;z.append=function(e,t){this._pairs.push([e,t])},z.toString=function(e){var t=e?function(t){return e.call(this,t,I)}:I;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var H=q;function V(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var J=function(e,t,r){if(!t)return e;var n=e.indexOf("#");-1!==n&&(e=e.slice(0,n));var o,i,a=V;return r&&(j.isFunction(r)?o=r:(a=j.hasOwnProperty(r,"encode")&&r.encode||V,o=j.hasOwnProperty(r,"serialize")?r.serialize:void 0)),(i=o?o(t,r):j.isURLSearchParams(t)?t.toString():new H(t,r).toString(a))&&(e+=(-1===e.indexOf("?")?"?":"&")+i),e};function W(){this.handlers=[]}W.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},W.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},W.prototype.clear=function(){this.handlers&&(this.handlers=[])},W.prototype.forEach=function(e){j.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var X=W,$=function(e,t){j.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))},K={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Q={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:H,FormData:FormData,Blob:Blob},protocols:["http","https","file","blob","url","data"]};function G(e){var t,r,n={},o=Object.keys(e),i=o.length;for(t=0;t<i;t++)n[r=o[t]]=e[r];return n}function Y(e){var t=[e];function r(e,r){var n=e[r]=function(e){if(!j.isArray(e))return e;var t=Object.keys(e);if(t.length!==e.length)return G(e);for(var r=0;r<t.length;r++){var n=+t[r];if(n<0||n>=e.length||Math.floor(n)!==n||String(n)!==t[r])return G(e)}return e}(e[r]);(j.isArray(n)||j.isPlainObject(n))&&t.push(n)}for(;t.length;)for(var n=t.pop(),o=Object.keys(n),i=0;i<o.length;i++)r(n,o[i]);return e}var Z=function(e){function t(e,r,n,o){var i=e[o++];if("__proto__"===i)return!0;var a=isFinite(+i),s=o>=e.length;return i=!i&&j.isArray(n)?n.length:i,s?(j.hasOwnProperty(n,i)?n[i]=[n[i],r]:n[i]=r,!a):(j.hasOwnProperty(n,i)&&j.isObject(n[i])||(n[i]=[]),t(e,r,n[i],o)&&j.isArray(n[i])&&(n[i]=G(n[i])),!a)}if(j.isFormData(e)&&j.isFunction(e.entries)){var r={};return j.forEachEntry(e,(function(e,n){var o=function(e){return j.matchAll(/\w+|\[(\w*)]/g,e).map((function(e){return"[]"===e[0]?"":e[1]||e[0]}))}(e);!function(e){var t=e.length-1;if(t>100)throw new N("Maximum object depth of 100 exceeded (got "+t+" levels)",N.ERR_FORM_DATA_DEPTH_EXCEEDED)}(o),t(o,n,r,0)})),Y(r)}return null},ee=j.isStandardBrowserEnv()?{write:function(e,t,r,n,o,i){var a=[];a.push(e+"="+encodeURIComponent(t)),j.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),j.isString(n)&&a.push("path="+n),j.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){for(var t,r=e+"=",n=document.cookie.split(";"),o=0;o<n.length;o++){for(t=n[o];" "===t.charAt(0);)t=t.substring(1);if(0===t.indexOf(r))return decodeURIComponent(t.substring(r.length))}return null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},te=function(e,t,r){var n=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(n||!1===r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t},re=["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"],ne=j.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){var r=j.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0};function oe(e,t,r){N.call(this,null==e?"canceled":e,N.ERR_CANCELED,t,r),this.name="CanceledError"}j.inherits(oe,N,{__CANCEL__:!0});var ie=oe,ae=function(e,t,r){var n=new ie(null,t,r);if(e)try{var o=e.reason;void 0!==o&&(n.reason=o)}catch(e){}return n},se=function(e){return new Promise((function(t,r){var n,o=e.data,i=e.headers,a=e.responseType,s=j.hasOwnProperty(e,"withXSRFToken")?e.withXSRFToken:void 0;function c(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}j.isFormData(o)&&j.isStandardBrowserEnv()&&delete i["Content-Type"];var u=new XMLHttpRequest,f=j.hasOwnProperty(e,"auth")?e.auth:void 0;if(f){var l=j.hasOwnProperty(f,"username")&&f.username||"",p=j.hasOwnProperty(f,"password")&&f.password?unescape(encodeURIComponent(f.password)):"";i.Authorization="Basic "+btoa(l+":"+p)}var h=te(e.baseURL,e.url,e.allowAbsoluteUrls);function d(){if(u){var n,o,i,s,f,l="getAllResponseHeaders"in u?(n=u.getAllResponseHeaders(),f={},n?(j.forEach(n.split("\n"),(function(e){if(s=e.indexOf(":"),o=j.trim(e.slice(0,s)).toLowerCase(),i=j.trim(e.slice(s+1)),o){if(f[o]&&re.indexOf(o)>=0)return;f[o]="set-cookie"===o?(f[o]?f[o]:[]).concat([i]):f[o]?f[o]+", "+i:i}})),f):f):null;!function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new N("Request failed with status code "+r.status,[N.ERR_BAD_REQUEST,N.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}((function(e){t(e),c()}),(function(e){r(e),c()}),{data:a&&"text"!==a&&"json"!==a?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:l,config:e,request:u}),u=null}}if(u.open(e.method.toUpperCase(),J(h,e.params,j.hasOwnProperty(e,"paramsSerializer")?e.paramsSerializer:void 0),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(d)},u.onabort=function(){u&&(r(new N("Request aborted",N.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new N("Network Error",N.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||K;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new N(t,n.clarifyTimeoutError?N.ETIMEDOUT:N.ECONNABORTED,e,u)),u=null},j.isStandardBrowserEnv()&&(j.isFunction(s)&&(s=s(e)),!0===s||!1!==s&&ne(h))){var m=e.xsrfHeaderName&&e.xsrfCookieName&&ee.read(e.xsrfCookieName);m&&(i[e.xsrfHeaderName]=m)}"setRequestHeader"in u&&j.forEach(i,(function(e,t){void 0===o&&"content-type"===t.toLowerCase()?delete i[t]:u.setRequestHeader(t,e)})),j.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),a&&"json"!==a&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(n=function(t){u&&(r(!t||t.type?ae(e.signal,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n))),o||!1===o||0===o||""===o||(o=null);var y,v=(y=/^([-+\w]{1,25})(:?\/\/|:)/.exec(h))&&y[1]||"";v&&-1===Q.protocols.indexOf(v)?r(new N("Unsupported protocol "+v+":",N.ERR_BAD_REQUEST,e)):u.send(o)}))},ce={"Content-Type":"application/x-www-form-urlencoded"};function ue(e,t){!j.isUndefined(e)&&j.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var fe,le={transitional:K,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(fe=se),fe),transformRequest:[function(e,t){$(t,"Accept"),$(t,"Content-Type");var r,n=t&&t["Content-Type"]||"",o=n.indexOf("application/json")>-1,i=j.isObject(e);if(i&&j.isHTMLForm(e)&&(e=new FormData(e)),j.isFormData(e))return o?JSON.stringify(Z(e)):e;if(j.isArrayBuffer(e)||j.isBuffer(e)||j.isStream(e)||j.isFile(e)||j.isBlob(e))return e;if(j.isArrayBufferView(e))return e.buffer;if(j.isURLSearchParams(e))return ue(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();if(i){var a=j.hasOwnProperty(this,"formSerializer")?this.formSerializer:void 0,s=j.hasOwnProperty(this,"env")?this.env:void 0;if(-1!==n.indexOf("application/x-www-form-urlencoded"))return function(e,t){return M(e,new Q.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return Q.isNode&&j.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,a).toString();if((r=j.isFileList(e))||n.indexOf("multipart/form-data")>-1){var c=s&&s.FormData;return M(r?{"files[]":e}:e,c&&new c,a)}}return i||o?(ue(t,"application/json"),function(e,t,r){if(j.isString(e))try{return(t||JSON.parse)(e),j.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||le.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&j.isString(e)&&(r&&!this.responseType||n)){var o=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw N.from(e,N.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,redact:R.slice(),env:{FormData:Q.classes.FormData,Blob:Q.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};j.forEach(["delete","get","head"],(function(e){le.headers[e]={}})),j.forEach(["post","put","patch"],(function(e){le.headers[e]=j.merge(ce)}));var pe=le,he=function(e,t,r,n){var o=this||pe;return j.forEach(n,(function(n){e=n.call(o,e,t,r)})),e},de=function(e){return!(!e||!e.__CANCEL__)},me=/[^\x09\x20-\x7E\x80-\xFF]/g,ye=/^[\x09\x20]+|[\x09\x20]+$/g;var ve=function e(t){return!1===t||null==t?t:j.isArray(t)?t.map(e):String(t).replace(me,"").replace(ye,"")};function Oe(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw ae(e.signal,e)}var be=function(e){Oe(e),e.headers=j.hasOwnProperty(e,"headers")&&e.headers||{},e.data=he.call(e,e.data,e.headers,null,e.transformRequest),$(e.headers,"Accept"),$(e.headers,"Content-Type");var t=j.hasOwnProperty(e.headers,"common")&&e.headers.common?e.headers.common:{},r=e.method&&j.hasOwnProperty(e.headers,e.method)&&e.headers[e.method]?e.headers[e.method]:{};return e.headers=j.merge(t,r,e.headers),j.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),j.forEach(e.headers,(function(t,r){e.headers[r]=ve(t)})),(e.adapter||pe.adapter)(e).then((function(t){return Oe(e),t.data=he.call(e,t.data,t.headers,t.status,e.transformResponse),t}),(function(t){return de(t)||(Oe(e),t&&t.response&&(t.response.data=he.call(e,t.response.data,t.response.headers,t.response.status,e.transformResponse))),Promise.reject(t)}))};function ge(e){for(var t=e.length,r=Object.create(null),n=[],o=e,i=e;o;){for(var a=Object.getOwnPropertyNames(o),s=0;s<a.length;s++){var c=a[s],u=+c;u>=0&&u<t&&Math.floor(u)===u&&String(u)===c&&!r[c]&&(r[c]=!0,n.push(c))}if(o=Object.getPrototypeOf(o),i=(i=i&&Object.getPrototypeOf(i))&&Object.getPrototypeOf(i),o&&o===i)throw new N("Circular prototype chain in params",N.ERR_BAD_OPTION_VALUE)}return n.sort((function(e,t){return e-t}))}var Ee=function(e){if(j.isObject(e)){var t=[{value:e,depth:0,complete:!1}],r=[],n=null;"function"==typeof WeakMap?n=new WeakMap:"function"==typeof Map&&(n=new Map);for(var o=[],i=[],a=0;t.length;){var s,c=t.pop(),u=c.value;if(c.complete)r.pop(),n?n.set(u,c.depth):(-1===(s=o.indexOf(u))&&(s=a,a=(a+1)%128),o[s]=u,i[s]=c.depth);else if(0===c.depth?j.isObject(u):j.isPlainObject(u)||j.isArray(u)){if(c.depth>100)throw new N("params exceed the maximum depth of 100",N.ERR_BAD_OPTION_VALUE);if(-1!==r.indexOf(u))throw new N("Circular reference detected in params",N.ERR_BAD_OPTION_VALUE);if(n){if(n.has(u)&&n.get(u)>=c.depth)continue}else if(-1!==(s=o.indexOf(u))&&i[s]>=c.depth)continue;r.push(u),t.push({value:u,depth:c.depth,complete:!0});for(var f=j.isArray(u)?ge(u):Object.keys(u),l=0;l<f.length;l++){var p=f[l];"__proto__"!==p&&"constructor"!==p&&"prototype"!==p&&t.push({value:u[p],depth:c.depth+1,complete:!1})}}}}},we=function(e,t){t=t||{},Ee(j.hasOwnProperty(e,"params")?e.params:void 0),Ee(j.hasOwnProperty(t,"params")?t.params:void 0);var r=Object.create(null);function n(e,t){return j.hasOwnProperty(e,t)?e[t]:void 0}function o(e,t){return j.hasOwnProperty(e,t)}function i(e,t){return j.isPlainObject(e)&&j.isPlainObject(t)?j.merge(e,t):j.isEmptyObject(t)?j.merge({},e):j.isPlainObject(t)?j.merge({},t):j.isArray(t)?t.slice():t}function a(r){return o(t,r)&&!j.isUndefined(t[r])?i(n(e,r),t[r]):o(e,r)&&!j.isUndefined(e[r])?i(void 0,e[r]):void 0}function s(e){if(o(t,e)&&!j.isUndefined(t[e]))return i(void 0,t[e])}function c(r){return o(t,r)&&!j.isUndefined(t[r])?i(void 0,t[r]):o(e,r)&&!j.isUndefined(e[r])?i(void 0,e[r]):void 0}function u(r){return o(t,r)?i(n(e,r),t[r]):o(e,r)?i(void 0,e[r]):void 0}var f={url:s,method:s,data:s,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,signal:function(r){var o=n(t,r);return j.isUndefined(o)?n(e,r):o},socketPath:c,allowedSocketPaths:c,responseEncoding:c,validateStatus:u};return j.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){if("__proto__"!==e&&"constructor"!==e&&"prototype"!==e){var t=j.hasOwnProperty(f,e)?f[e]:a,n=t(e);j.isUndefined(n)&&t!==u||(r[e]=n)}})),r},je="0.35.0",Re=je,Pe={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Pe[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var _e={};Pe.transitional=function(e,t,r){function n(e,t){return"[Axios v"+Re+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,o,i){if(!1===e)throw new N(n(o," has been removed"+(t?" in "+t:"")),N.ERR_DEPRECATED);return t&&!_e[o]&&(_e[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}};var Ae={assertOptions:function(e,t,r){if("object"!=typeof e)throw new N("options must be an object",N.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),o=n.length;o-- >0;){var i=n[o],a=t[i];if(a){var s=e[i],c=void 0===s||a(s,i,e);if(!0!==c)throw new N("option "+i+" must be "+c,N.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new N("Unknown option "+i,N.ERR_BAD_OPTION)}},validators:Pe},Se=Ae.validators;function xe(e,t){return t?e.then(null,(function(e){try{if(e instanceof Error||"[object Error]"===Object.prototype.toString.call(e)){var r=t.stack;if("string"==typeof r){var n=r.indexOf("\n");r=-1===n?"":r.slice(n+1);var o=e.stack;!r||null!=o&&""!==o?r&&"string"==typeof o&&-1===o.indexOf(r)&&(e.stack=o+"\n"+r):e.stack=r}}}catch(e){}return Promise.reject(e)})):e}function Te(e){return function(){return be(e)}}function De(e){this.defaults=e,this.interceptors={request:new X,response:new X}}De.prototype.request=function e(t,r){"string"==typeof t?(r=r||{}).url=t:r=t||{};try{r=we(this.defaults,r)}catch(e){return Promise.reject(e)}var n=!0===r.captureCallerStack?function(e){var t={};try{Error.captureStackTrace?Error.captureStackTrace(t,e):t=new Error}catch(e){}return t}(e):null;r.method?r.method=r.method.toLowerCase():j.hasOwnProperty(this.defaults,"method")&&this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var o=r.transitional;void 0!==o&&Ae.assertOptions(o,{silentJSONParsing:Se.transitional(Se.boolean),forcedJSONParsing:Se.transitional(Se.boolean),clarifyTimeoutError:Se.transitional(Se.boolean)},!1);var i=r.paramsSerializer;null!=i&&(j.isFunction(i)?r.paramsSerializer={serialize:i}:Ae.assertOptions(i,{encode:Se.function,serialize:Se.function},!0));var a=[],s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(r)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));var c,u=[];if(this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)})),!s){var f=[be,void 0];for(Array.prototype.unshift.apply(f,a),f=f.concat(u),c=Promise.resolve(r);f.length;)c=c.then(f.shift(),f.shift());return xe(c,n)}for(var l=r;a.length;){var p=a.shift(),h=a.shift();try{l=p?p(l):l}catch(e){if(!h){c=Promise.reject(e);break}try{var d=h(e);d&&"function"==typeof d.then&&(c=Promise.resolve(d).then(Te(l)))}catch(e){c=Promise.reject(e)}break}}if(!c)try{c=be(l)}catch(e){c=Promise.reject(e)}for(;u.length;)c=c.then(u.shift(),u.shift());return xe(c,n)},De.prototype.getUri=function(e){e=we(this.defaults,e);var t=te(e.baseURL,e.url,e.allowAbsoluteUrls);return J(t,e.params,e.paramsSerializer)},j.forEach(["delete","get","head","options"],(function(e){De.prototype[e]=function(t,r){var n=r||{};try{n=we(n,{method:e,url:t,data:j.hasOwnProperty(n,"data")?n.data:void 0})}catch(e){return Promise.reject(e)}return this.request(n)}})),j.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){var i;try{i=we(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n})}catch(e){return Promise.reject(e)}return this.request(i)}}De.prototype[e]=t(),De.prototype[e+"Form"]=t(!0)}));var Ne=De;function Ce(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){for(var t=r._listeners.length;t-- >0;)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,o){r.reason||(r.reason=new ie(e,n,o),t(r.reason))}))}Ce.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Ce.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},Ce.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},Ce.source=function(){var e;return{token:new Ce((function(t){e=t})),cancel:e}};var Fe=Ce;var Ue=function e(r){var n=new Ne(r),o=t(Ne.prototype.request,n);return j.extend(o,Ne.prototype,n),j.extend(o,n),o.create=function(t){return e(we(r,t))},o}(pe);Ue.Axios=Ne,Ue.CanceledError=ie,Ue.CancelToken=Fe,Ue.isCancel=de,Ue.VERSION=je,Ue.toFormData=M,Ue.AxiosError=N,Ue.Cancel=Ue.CanceledError,Ue.all=function(e){return Promise.all(e)},Ue.spread=function(e){return function(t){return e.apply(null,t)}},Ue.isAxiosError=function(e){return j.isObject(e)&&!0===e.isAxiosError},Ue.formToJSON=function(e){return Z(j.isHTMLForm(e)?new FormData(e):e)};var ke=Ue,Be=Ue;return ke.default=Be,ke}));
2
2
  //# sourceMappingURL=axios.min.js.map