gant-core 0.2.32 → 0.2.33
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/lib/cli/i18n/index.js +1 -1
- package/lib/cli/i18n/utils.js +1 -1
- package/package.json +2 -2
package/lib/cli/i18n/index.js
CHANGED
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
7
7
|
* MIT Licensed
|
|
8
8
|
*/
|
|
9
|
-
!function(e){var a,i,n,s=ke,o=d.extname,t=/^\s*([^;\s]*)(?:;|\s|$)/,r=/^text\//i;function c(e){if(!e||"string"!=typeof e)return!1;var a=t.exec(e),i=a&&s[a[1].toLowerCase()];return i&&i.charset?i.charset:!(!a||!r.test(a[1]))&&"UTF-8"}e.charset=c,e.charsets={lookup:c},e.contentType=function(a){if(!a||"string"!=typeof a)return!1;var i=-1===a.indexOf("/")?e.lookup(a):a;if(!i)return!1;if(-1===i.indexOf("charset")){var n=e.charset(i);n&&(i+="; charset="+n.toLowerCase())}return i},e.extension=function(a){if(!a||"string"!=typeof a)return!1;var i=t.exec(a),n=i&&e.extensions[i[1].toLowerCase()];if(!n||!n.length)return!1;return n[0]},e.extensions=Object.create(null),e.lookup=function(a){if(!a||"string"!=typeof a)return!1;var i=o("x."+a).toLowerCase().substr(1);if(!i)return!1;return e.types[i]||!1},e.types=Object.create(null),a=e.extensions,i=e.types,n=["nginx","apache",void 0,"iana"],Object.keys(s).forEach((function(e){var o=s[e],t=o.extensions;if(t&&t.length){a[e]=t;for(var r=0;r<t.length;r++){var c=t[r];if(i[c]){var p=n.indexOf(s[i[c]].source),l=n.indexOf(o.source);if("application/octet-stream"!==i[c]&&(p>l||p===l&&"application/"===i[c].substr(0,12)))continue}i[c]=e}}}))}(we);var je=function(e){var a="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;a?a(e):setTimeout(e,0)},_e=function(e){var a=!1;return je((function(){a=!0})),function(i,n){a?e(i,n):je((function(){e(i,n)}))}};var Te=function(e){Object.keys(e.jobs).forEach(Ee.bind(e)),e.jobs={}};function Ee(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}var Re=_e,Se=Te,Oe=function(e,a,i,n){var s=i.keyedList?i.keyedList[i.index]:i.index;i.jobs[s]=function(e,a,i,n){var s;s=2==e.length?e(i,Re(n)):e(i,a,Re(n));return s}(a,s,e[s],(function(e,a){s in i.jobs&&(delete i.jobs[s],e?Se(i):i.results[s]=a,n(e,i.results))}))};var Ce=function(e,a){var i=!Array.isArray(e),n={index:0,keyedList:i||a?Object.keys(e):null,jobs:{},results:i?{}:[],size:i?Object.keys(e).length:e.length};a&&n.keyedList.sort(i?a:function(i,n){return a(e[i],e[n])});return n};var ze=Te,Be=_e,Le=function(e){if(!Object.keys(this.jobs).length)return;this.index=this.size,ze(this),Be(e)(null,this.results)};var Ae=Oe,qe=Ce,Ue=Le,Ne=function(e,a,i){var n=qe(e);for(;n.index<(n.keyedList||e).length;)Ae(e,a,n,(function(e,a){e?i(e,a):0!==Object.keys(n.jobs).length||i(null,n.results)})),n.index++;return Ue.bind(n,i)};var Fe={exports:{}},De=Oe,Pe=Ce,Ie=Le;function Me(e,a){return e<a?-1:e>a?1:0}Fe.exports=function(e,a,i,n){var s=Pe(e,i);return De(e,a,s,(function i(o,t){o?n(o,t):(s.index++,s.index<(s.keyedList||e).length?De(e,a,s,i):n(null,s.results))})),Ie.bind(s,n)},Fe.exports.ascending=Me,Fe.exports.descending=function(e,a){return-1*Me(e,a)};var He=Fe.exports,We=He;var Ye={parallel:Ne,serial:function(e,a,i){return We(e,a,null,i)},serialOrdered:He},Ge=ge,$e=o,Ve=d,Je=e,Ke=a,Xe=i.parse,Ze=t,Qe=f.Stream,ea=we,aa=Ye,ia=function(e,a){return Object.keys(a).forEach((function(i){e[i]=e[i]||a[i]})),e},na=sa;function sa(e){if(!(this instanceof sa))return new sa(e);for(var a in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Ge.call(this),e=e||{})this[a]=e[a]}$e.inherits(sa,Ge),sa.LINE_BREAK="\r\n",sa.DEFAULT_CONTENT_TYPE="application/octet-stream",sa.prototype.append=function(e,a,i){"string"==typeof(i=i||{})&&(i={filename:i});var n=Ge.prototype.append.bind(this);if("number"==typeof a&&(a=""+a),$e.isArray(a))this._error(new Error("Arrays are not supported."));else{var s=this._multiPartHeader(e,a,i),o=this._multiPartFooter();n(s),n(a),n(o),this._trackLength(s,a,i)}},sa.prototype._trackLength=function(e,a,i){var n=0;null!=i.knownLength?n+=+i.knownLength:Buffer.isBuffer(a)?n=a.length:"string"==typeof a&&(n=Buffer.byteLength(a)),this._valueLength+=n,this._overheadLength+=Buffer.byteLength(e)+sa.LINE_BREAK.length,a&&(a.path||a.readable&&a.hasOwnProperty("httpVersion")||a instanceof Qe)&&(i.knownLength||this._valuesToMeasure.push(a))},sa.prototype._lengthRetriever=function(e,a){e.hasOwnProperty("fd")?null!=e.end&&e.end!=1/0&&null!=e.start?a(null,e.end+1-(e.start?e.start:0)):Ze.stat(e.path,(function(i,n){var s;i?a(i):(s=n.size-(e.start?e.start:0),a(null,s))})):e.hasOwnProperty("httpVersion")?a(null,+e.headers["content-length"]):e.hasOwnProperty("httpModule")?(e.on("response",(function(i){e.pause(),a(null,+i.headers["content-length"])})),e.resume()):a("Unknown stream")},sa.prototype._multiPartHeader=function(e,a,i){if("string"==typeof i.header)return i.header;var n,s=this._getContentDisposition(a,i),o=this._getContentType(a,i),t="",r={"Content-Disposition":["form-data",'name="'+e+'"'].concat(s||[]),"Content-Type":[].concat(o||[])};for(var c in"object"==typeof i.header&&ia(r,i.header),r)r.hasOwnProperty(c)&&null!=(n=r[c])&&(Array.isArray(n)||(n=[n]),n.length&&(t+=c+": "+n.join("; ")+sa.LINE_BREAK));return"--"+this.getBoundary()+sa.LINE_BREAK+t+sa.LINE_BREAK},sa.prototype._getContentDisposition=function(e,a){var i,n;return"string"==typeof a.filepath?i=Ve.normalize(a.filepath).replace(/\\/g,"/"):a.filename||e.name||e.path?i=Ve.basename(a.filename||e.name||e.path):e.readable&&e.hasOwnProperty("httpVersion")&&(i=Ve.basename(e.client._httpMessage.path||"")),i&&(n='filename="'+i+'"'),n},sa.prototype._getContentType=function(e,a){var i=a.contentType;return!i&&e.name&&(i=ea.lookup(e.name)),!i&&e.path&&(i=ea.lookup(e.path)),!i&&e.readable&&e.hasOwnProperty("httpVersion")&&(i=e.headers["content-type"]),i||!a.filepath&&!a.filename||(i=ea.lookup(a.filepath||a.filename)),i||"object"!=typeof e||(i=sa.DEFAULT_CONTENT_TYPE),i},sa.prototype._multiPartFooter=function(){return function(e){var a=sa.LINE_BREAK;0===this._streams.length&&(a+=this._lastBoundary()),e(a)}.bind(this)},sa.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+sa.LINE_BREAK},sa.prototype.getHeaders=function(e){var a,i={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(a in e)e.hasOwnProperty(a)&&(i[a.toLowerCase()]=e[a]);return i},sa.prototype.setBoundary=function(e){this._boundary=e},sa.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},sa.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),a=this.getBoundary(),i=0,n=this._streams.length;i<n;i++)"function"!=typeof this._streams[i]&&(e=Buffer.isBuffer(this._streams[i])?Buffer.concat([e,this._streams[i]]):Buffer.concat([e,Buffer.from(this._streams[i])]),"string"==typeof this._streams[i]&&this._streams[i].substring(2,a.length+2)===a||(e=Buffer.concat([e,Buffer.from(sa.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},sa.prototype._generateBoundary=function(){for(var e="--------------------------",a=0;a<24;a++)e+=Math.floor(10*Math.random()).toString(16);this._boundary=e},sa.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e},sa.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},sa.prototype.getLength=function(e){var a=this._overheadLength+this._valueLength;this._streams.length&&(a+=this._lastBoundary().length),this._valuesToMeasure.length?aa.parallel(this._valuesToMeasure,this._lengthRetriever,(function(i,n){i?e(i):(n.forEach((function(e){a+=e})),e(null,a))})):process.nextTick(e.bind(this,null,a))},sa.prototype.submit=function(e,a){var i,n,s={method:"post"};return"string"==typeof e?(e=Xe(e),n=ia({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},s)):(n=ia(e,s)).port||(n.port="https:"==n.protocol?443:80),n.headers=this.getHeaders(e.headers),i="https:"==n.protocol?Ke.request(n):Je.request(n),this.getLength(function(e,n){if(e&&"Unknown stream"!==e)this._error(e);else if(n&&i.setHeader("Content-Length",n),this.pipe(i),a){var s,o=function(e,n){return i.removeListener("error",o),i.removeListener("response",s),a.call(this,e,n)};s=o.bind(this,null),i.on("error",o),i.on("response",s)}}.bind(this)),i},sa.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},sa.prototype.toString=function(){return"[object FormData]"};var oa=x.getDefaultExportFromCjs(na);function ta(e){return pe.isPlainObject(e)||pe.isArray(e)}function ra(e){return pe.endsWith(e,"[]")?e.slice(0,-2):e}function ca(e,a,i){return e?e.concat(a).map((function(e,a){return e=ra(e),!i&&a?"["+e+"]":e})).join(i?".":""):a}const pa=pe.toFlatObject(pe,{},null,(function(e){return/^is[A-Z]/.test(e)}));function la(e,a,i){if(!pe.isObject(e))throw new TypeError("target must be an object");a=a||new(oa||FormData);const n=(i=pe.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,a){return!pe.isUndefined(a[e])}))).metaTokens,s=i.visitor||p,o=i.dots,t=i.indexes,r=(i.Blob||"undefined"!=typeof Blob&&Blob)&&pe.isSpecCompliantForm(a);if(!pe.isFunction(s))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(pe.isDate(e))return e.toISOString();if(!r&&pe.isBlob(e))throw new le("Blob is not supported. Use a Buffer instead.");return pe.isArrayBuffer(e)||pe.isTypedArray(e)?r&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function p(e,i,s){let r=e;if(e&&!s&&"object"==typeof e)if(pe.endsWith(i,"{}"))i=n?i:i.slice(0,-2),e=JSON.stringify(e);else if(pe.isArray(e)&&function(e){return pe.isArray(e)&&!e.some(ta)}(e)||(pe.isFileList(e)||pe.endsWith(i,"[]"))&&(r=pe.toArray(e)))return i=ra(i),r.forEach((function(e,n){!pe.isUndefined(e)&&null!==e&&a.append(!0===t?ca([i],n,o):null===t?i:i+"[]",c(e))})),!1;return!!ta(e)||(a.append(ca(s,i,o),c(e)),!1)}const l=[],u=Object.assign(pa,{defaultVisitor:p,convertValue:c,isVisitable:ta});if(!pe.isObject(e))throw new TypeError("data must be an object");return function e(i,n){if(!pe.isUndefined(i)){if(-1!==l.indexOf(i))throw Error("Circular reference detected in "+n.join("."));l.push(i),pe.forEach(i,(function(i,o){!0===(!(pe.isUndefined(i)||null===i)&&s.call(a,i,pe.isString(o)?o.trim():o,n,u))&&e(i,n?n.concat(o):[o])})),l.pop()}}(e),a}function ua(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return a[e]}))}function ma(e,a){this._pairs=[],e&&la(e,this,a)}const da=ma.prototype;function xa(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function fa(e,a,i){if(!a)return e;const n=i&&i.encode||xa,s=i&&i.serialize;let o;if(o=s?s(a,i):pe.isURLSearchParams(a)?a.toString():new ma(a,i).toString(n),o){const a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}da.append=function(e,a){this._pairs.push([e,a])},da.toString=function(e){const a=e?function(a){return e.call(this,a,ua)}:ua;return this._pairs.map((function(e){return a(e[0])+"="+a(e[1])}),"").join("&")};class ha{constructor(){this.handlers=[]}use(e,a,i){return this.handlers.push({fulfilled:e,rejected:a,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){pe.forEach(this.handlers,(function(a){null!==a&&e(a)}))}}var va={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ba={isNode:!0,classes:{URLSearchParams:i.URLSearchParams,FormData:oa,Blob:"undefined"!=typeof Blob&&Blob||null},protocols:["http","https","file","data"]};const ga="undefined"!=typeof window&&"undefined"!=typeof document,ya=(wa="undefined"!=typeof navigator&&navigator.product,ga&&["ReactNative","NativeScript","NS"].indexOf(wa)<0);var wa;const ka="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var ja={...Object.freeze({__proto__:null,hasBrowserEnv:ga,hasStandardBrowserEnv:ya,hasStandardBrowserWebWorkerEnv:ka}),...ba};function _a(e){function a(e,i,n,s){let o=e[s++];if("__proto__"===o)return!0;const t=Number.isFinite(+o),r=s>=e.length;if(o=!o&&pe.isArray(n)?n.length:o,r)return pe.hasOwnProp(n,o)?n[o]=[n[o],i]:n[o]=i,!t;n[o]&&pe.isObject(n[o])||(n[o]=[]);return a(e,i,n[o],s)&&pe.isArray(n[o])&&(n[o]=function(e){const a={},i=Object.keys(e);let n;const s=i.length;let o;for(n=0;n<s;n++)o=i[n],a[o]=e[o];return a}(n[o])),!t}if(pe.isFormData(e)&&pe.isFunction(e.entries)){const i={};return pe.forEachEntry(e,((e,n)=>{a(function(e){return pe.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,i,0)})),i}return null}const Ta={transitional:va,adapter:["xhr","http"],transformRequest:[function(e,a){const i=a.getContentType()||"",n=i.indexOf("application/json")>-1,s=pe.isObject(e);s&&pe.isHTMLForm(e)&&(e=new FormData(e));if(pe.isFormData(e))return n?JSON.stringify(_a(e)):e;if(pe.isArrayBuffer(e)||pe.isBuffer(e)||pe.isStream(e)||pe.isFile(e)||pe.isBlob(e))return e;if(pe.isArrayBufferView(e))return e.buffer;if(pe.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(s){if(i.indexOf("application/x-www-form-urlencoded")>-1)return function(e,a){return la(e,new ja.classes.URLSearchParams,Object.assign({visitor:function(e,a,i,n){return ja.isNode&&pe.isBuffer(e)?(this.append(a,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},a))}(e,this.formSerializer).toString();if((o=pe.isFileList(e))||i.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return la(o?{"files[]":e}:e,a&&new a,this.formSerializer)}}return s||n?(a.setContentType("application/json",!1),function(e,a,i){if(pe.isString(e))try{return(a||JSON.parse)(e),pe.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(i||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const a=this.transitional||Ta.transitional,i=a&&a.forcedJSONParsing,n="json"===this.responseType;if(e&&pe.isString(e)&&(i&&!this.responseType||n)){const i=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw le.from(e,le.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ja.classes.FormData,Blob:ja.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};pe.forEach(["delete","get","head","post","put","patch"],(e=>{Ta.headers[e]={}}));var Ea=Ta;const Ra=pe.toObjectSet(["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"]);const Sa=Symbol("internals");function Oa(e){return e&&String(e).trim().toLowerCase()}function Ca(e){return!1===e||null==e?e:pe.isArray(e)?e.map(Ca):String(e)}function za(e,a,i,n,s){return pe.isFunction(n)?n.call(this,a,i):(s&&(a=i),pe.isString(a)?pe.isString(n)?-1!==a.indexOf(n):pe.isRegExp(n)?n.test(a):void 0:void 0)}class Ba{constructor(e){e&&this.set(e)}set(e,a,i){const n=this;function s(e,a,i){const s=Oa(a);if(!s)throw new Error("header name must be a non-empty string");const o=pe.findKey(n,s);(!o||void 0===n[o]||!0===i||void 0===i&&!1!==n[o])&&(n[o||a]=Ca(e))}const o=(e,a)=>pe.forEach(e,((e,i)=>s(e,i,a)));return pe.isPlainObject(e)||e instanceof this.constructor?o(e,a):pe.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?o((e=>{const a={};let i,n,s;return e&&e.split("\n").forEach((function(e){s=e.indexOf(":"),i=e.substring(0,s).trim().toLowerCase(),n=e.substring(s+1).trim(),!i||a[i]&&Ra[i]||("set-cookie"===i?a[i]?a[i].push(n):a[i]=[n]:a[i]=a[i]?a[i]+", "+n:n)})),a})(e),a):null!=e&&s(a,e,i),this}get(e,a){if(e=Oa(e)){const i=pe.findKey(this,e);if(i){const e=this[i];if(!a)return e;if(!0===a)return function(e){const a=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=i.exec(e);)a[n[1]]=n[2];return a}(e);if(pe.isFunction(a))return a.call(this,e,i);if(pe.isRegExp(a))return a.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,a){if(e=Oa(e)){const i=pe.findKey(this,e);return!(!i||void 0===this[i]||a&&!za(0,this[i],i,a))}return!1}delete(e,a){const i=this;let n=!1;function s(e){if(e=Oa(e)){const s=pe.findKey(i,e);!s||a&&!za(0,i[s],s,a)||(delete i[s],n=!0)}}return pe.isArray(e)?e.forEach(s):s(e),n}clear(e){const a=Object.keys(this);let i=a.length,n=!1;for(;i--;){const s=a[i];e&&!za(0,this[s],s,e,!0)||(delete this[s],n=!0)}return n}normalize(e){const a=this,i={};return pe.forEach(this,((n,s)=>{const o=pe.findKey(i,s);if(o)return a[o]=Ca(n),void delete a[s];const t=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,a,i)=>a.toUpperCase()+i))}(s):String(s).trim();t!==s&&delete a[s],a[t]=Ca(n),i[t]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const a=Object.create(null);return pe.forEach(this,((i,n)=>{null!=i&&!1!==i&&(a[n]=e&&pe.isArray(i)?i.join(", "):i)})),a}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,a])=>e+": "+a)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...a){const i=new this(e);return a.forEach((e=>i.set(e))),i}static accessor(e){const a=(this[Sa]=this[Sa]={accessors:{}}).accessors,i=this.prototype;function n(e){const n=Oa(e);a[n]||(!function(e,a){const i=pe.toCamelCase(" "+a);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+i,{value:function(e,i,s){return this[n].call(this,a,e,i,s)},configurable:!0})}))}(i,e),a[n]=!0)}return pe.isArray(e)?e.forEach(n):n(e),this}}Ba.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),pe.reduceDescriptors(Ba.prototype,(({value:e},a)=>{let i=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(e){this[i]=e}}})),pe.freezeMethods(Ba);var La=Ba;function Aa(e,a){const i=this||Ea,n=a||i,s=La.from(n.headers);let o=n.data;return pe.forEach(e,(function(e){o=e.call(i,o,s.normalize(),a?a.status:void 0)})),s.normalize(),o}function qa(e){return!(!e||!e.__CANCEL__)}function Ua(e,a,i){le.call(this,null==e?"canceled":e,le.ERR_CANCELED,a,i),this.name="CanceledError"}function Na(e,a,i){const n=i.config.validateStatus;i.status&&n&&!n(i.status)?a(new le("Request failed with status code "+i.status,[le.ERR_BAD_REQUEST,le.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i)):e(i)}function Fa(e,a){return e&&!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(a)?function(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}(e,a):a}pe.inherits(Ua,le,{__CANCEL__:!0});var Da=i.parse,Pa={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},Ia=String.prototype.endsWith||function(e){return e.length<=this.length&&-1!==this.indexOf(e,this.length-e.length)};function Ma(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}var Ha,Wa,Ya,Ga,$a=function(e){var a="string"==typeof e?Da(e):e||{},i=a.protocol,n=a.host,s=a.port;if("string"!=typeof n||!n||"string"!=typeof i)return"";if(i=i.split(":",1)[0],!function(e,a){var i=(Ma("npm_config_no_proxy")||Ma("no_proxy")).toLowerCase();if(!i)return!0;if("*"===i)return!1;return i.split(/[,\s]/).every((function(i){if(!i)return!0;var n=i.match(/^(.+):(\d+)$/),s=n?n[1]:i,o=n?parseInt(n[2]):0;return!(!o||o===a)||(/^[.*]/.test(s)?("*"===s.charAt(0)&&(s=s.slice(1)),!Ia.call(e,s)):e!==s)}))}(n=n.replace(/:\d*$/,""),s=parseInt(s)||Pa[i]||0))return"";var o=Ma("npm_config_"+i+"_proxy")||Ma(i+"_proxy")||Ma("npm_config_proxy")||Ma("all_proxy");return o&&-1===o.indexOf("://")&&(o=i+"://"+o),o},Va={exports:{}},Ja={exports:{}},Ka={exports:{}},Xa={exports:{}};function Za(){if(Wa)return Ha;Wa=1;var e=1e3,a=60*e,i=60*a,n=24*i,s=365.25*n;function o(e,a,i){if(!(e<a))return e<1.5*a?Math.floor(e/a)+" "+i:Math.ceil(e/a)+" "+i+"s"}return Ha=function(t,r){r=r||{};var c=typeof t;if("string"===c&&t.length>0)return function(o){if((o=String(o)).length>100)return;var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(o);if(!t)return;var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return r*s;case"days":case"day":case"d":return r*n;case"hours":case"hour":case"hrs":case"hr":case"h":return r*i;case"minutes":case"minute":case"mins":case"min":case"m":return r*a;case"seconds":case"second":case"secs":case"sec":case"s":return r*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}(t);if("number"===c&&!1===isNaN(t))return r.long?function(s){return o(s,n,"day")||o(s,i,"hour")||o(s,a,"minute")||o(s,e,"second")||s+" ms"}(t):function(s){if(s>=n)return Math.round(s/n)+"d";if(s>=i)return Math.round(s/i)+"h";if(s>=a)return Math.round(s/a)+"m";if(s>=e)return Math.round(s/e)+"s";return s+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))},Ha}function Qa(){return Ya||(Ya=1,function(e,a){var i;function n(e){function n(){if(n.enabled){var e=n,s=+new Date,o=s-(i||s);e.diff=o,e.prev=i,e.curr=s,i=s;for(var t=new Array(arguments.length),r=0;r<t.length;r++)t[r]=arguments[r];t[0]=a.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");var c=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(function(i,n){if("%%"===i)return i;c++;var s=a.formatters[n];if("function"==typeof s){var o=t[c];i=s.call(e,o),t.splice(c,1),c--}return i})),a.formatArgs.call(e,t),(n.log||a.log||console.log.bind(console)).apply(e,t)}}return n.namespace=e,n.enabled=a.enabled(e),n.useColors=a.useColors(),n.color=function(e){var i,n=0;for(i in e)n=(n<<5)-n+e.charCodeAt(i),n|=0;return a.colors[Math.abs(n)%a.colors.length]}(e),"function"==typeof a.init&&a.init(n),n}(a=e.exports=n.debug=n.default=n).coerce=function(e){return e instanceof Error?e.stack||e.message:e},a.disable=function(){a.enable("")},a.enable=function(e){a.save(e),a.names=[],a.skips=[];for(var i=("string"==typeof e?e:"").split(/[\s,]+/),n=i.length,s=0;s<n;s++)i[s]&&("-"===(e=i[s].replace(/\*/g,".*?"))[0]?a.skips.push(new RegExp("^"+e.substr(1)+"$")):a.names.push(new RegExp("^"+e+"$")))},a.enabled=function(e){var i,n;for(i=0,n=a.skips.length;i<n;i++)if(a.skips[i].test(e))return!1;for(i=0,n=a.names.length;i<n;i++)if(a.names[i].test(e))return!0;return!1},a.humanize=Za(),a.names=[],a.skips=[],a.formatters={}}(Xa,Xa.exports)),Xa.exports}var ei,ai,ii,ni={exports:{}};function si(){return ai||(ai=1,"undefined"!=typeof process&&"renderer"===process.type?Ja.exports=(Ga||(Ga=1,function(e,a){function i(){var e;try{e=a.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(a=e.exports=Qa()).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},a.formatArgs=function(e){var i=this.useColors;if(e[0]=(i?"%c":"")+this.namespace+(i?" %c":" ")+e[0]+(i?"%c ":" ")+"+"+a.humanize(this.diff),i){var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var s=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(s++,"%c"===e&&(o=s))})),e.splice(o,0,n)}},a.save=function(e){try{null==e?a.storage.removeItem("debug"):a.storage.debug=e}catch(e){}},a.load=i,a.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},a.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),a.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],a.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},a.enable(i())}(Ka,Ka.exports)),Ka.exports):Ja.exports=(ei||(ei=1,function(e,a){var i=s,r=o;(a=e.exports=Qa()).init=function(e){e.inspectOpts={};for(var i=Object.keys(a.inspectOpts),n=0;n<i.length;n++)e.inspectOpts[i[n]]=a.inspectOpts[i[n]]},a.log=function(){return p.write(r.format.apply(r,arguments)+"\n")},a.formatArgs=function(e){var i=this.namespace;if(this.useColors){var n=this.color,s=" [3"+n+";1m"+i+" [0m";e[0]=s+e[0].split("\n").join("\n"+s),e.push("[3"+n+"m+"+a.humanize(this.diff)+"[0m")}else e[0]=(new Date).toUTCString()+" "+i+" "+e[0]},a.save=function(e){null==e?delete process.env.DEBUG:process.env.DEBUG=e},a.load=l,a.useColors=function(){return"colors"in a.inspectOpts?Boolean(a.inspectOpts.colors):i.isatty(c)},a.colors=[6,2,3,4,5,1],a.inspectOpts=Object.keys(process.env).filter((function(e){return/^debug_/i.test(e)})).reduce((function(e,a){var i=a.substring(6).toLowerCase().replace(/_([a-z])/g,(function(e,a){return a.toUpperCase()})),n=process.env[a];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[i]=n,e}),{});var c=parseInt(process.env.DEBUG_FD,10)||2;1!==c&&2!==c&&r.deprecate((function(){}),"except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)")();var p=1===c?process.stdout:2===c?process.stderr:function(e){var a;switch(process.binding("tty_wrap").guessHandleType(e)){case"TTY":(a=new i.WriteStream(e))._type="tty",a._handle&&a._handle.unref&&a._handle.unref();break;case"FILE":(a=new t.SyncWriteStream(e,{autoClose:!1}))._type="fs";break;case"PIPE":case"TCP":(a=new n.Socket({fd:e,readable:!1,writable:!0})).readable=!1,a.read=null,a._type="pipe",a._handle&&a._handle.unref&&a._handle.unref();break;default:throw new Error("Implement me. Unknown stream file type!")}return a.fd=e,a._isStdio=!0,a}(c);function l(){return process.env.DEBUG}a.formatters.o=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts).split("\n").map((function(e){return e.trim()})).join(" ")},a.formatters.O=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts)},a.enable(l())}(ni,ni.exports)),ni.exports)),Ja.exports}var oi=i,ti=oi.URL,ri=e,ci=a,pi=f.Writable,li=h,ui=function(){if(!ii){try{ii=si()("follow-redirects")}catch(e){}"function"!=typeof ii&&(ii=function(){})}ii.apply(null,arguments)},mi=!1;try{li(new ti)}catch(e){mi="ERR_INVALID_URL"===e.code}var di=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],xi=["abort","aborted","connect","error","socket","timeout"],fi=Object.create(null);xi.forEach((function(e){fi[e]=function(a,i,n){this._redirectable.emit(e,a,i,n)}}));var hi=Oi("ERR_INVALID_URL","Invalid URL",TypeError),vi=Oi("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),bi=Oi("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",vi),gi=Oi("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),yi=Oi("ERR_STREAM_WRITE_AFTER_END","write after end"),wi=pi.prototype.destroy||_i;function ki(e,a){pi.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],a&&this.on("response",a);var i=this;this._onNativeResponse=function(e){try{i._processResponse(e)}catch(e){i.emit("error",e instanceof vi?e:new vi({cause:e}))}},this._performRequest()}function ji(e){var a={maxRedirects:21,maxBodyLength:10485760},i={};return Object.keys(e).forEach((function(n){var s=n+":",o=i[s]=e[n],t=a[n]=Object.create(o);Object.defineProperties(t,{request:{value:function(e,n,o){var t;return t=e,ti&&t instanceof ti?e=Ri(e):zi(e)?e=Ri(Ti(e)):(o=n,n=Ei(e),e={protocol:s}),Bi(n)&&(o=n,n=null),(n=Object.assign({maxRedirects:a.maxRedirects,maxBodyLength:a.maxBodyLength},e,n)).nativeProtocols=i,zi(n.host)||zi(n.hostname)||(n.hostname="::1"),li.equal(n.protocol,s,"protocol mismatch"),ui("options",n),new ki(n,o)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,a,i){var n=t.request(e,a,i);return n.end(),n},configurable:!0,enumerable:!0,writable:!0}})})),a}function _i(){}function Ti(e){var a;if(mi)a=new ti(e);else if(!zi((a=Ei(oi.parse(e))).protocol))throw new hi({input:e});return a}function Ei(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new hi({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new hi({input:e.href||e});return e}function Ri(e,a){var i=a||{};for(var n of di)i[n]=e[n];return i.hostname.startsWith("[")&&(i.hostname=i.hostname.slice(1,-1)),""!==i.port&&(i.port=Number(i.port)),i.path=i.search?i.pathname+i.search:i.pathname,i}function Si(e,a){var i;for(var n in a)e.test(n)&&(i=a[n],delete a[n]);return null==i?void 0:String(i).trim()}function Oi(e,a,i){function n(i){Error.captureStackTrace(this,this.constructor),Object.assign(this,i||{}),this.code=e,this.message=this.cause?a+": "+this.cause.message:a}return n.prototype=new(i||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),n}function Ci(e,a){for(var i of xi)e.removeListener(i,fi[i]);e.on("error",_i),e.destroy(a)}function zi(e){return"string"==typeof e||e instanceof String}function Bi(e){return"function"==typeof e}ki.prototype=Object.create(pi.prototype),ki.prototype.abort=function(){Ci(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},ki.prototype.destroy=function(e){return Ci(this._currentRequest,e),wi.call(this,e),this},ki.prototype.write=function(e,a,i){if(this._ending)throw new yi;if(!zi(e)&&("object"!=typeof(n=e)||!("length"in n)))throw new TypeError("data should be a string, Buffer or Uint8Array");var n;Bi(a)&&(i=a,a=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:a}),this._currentRequest.write(e,a,i)):(this.emit("error",new gi),this.abort()):i&&i()},ki.prototype.end=function(e,a,i){if(Bi(e)?(i=e,e=a=null):Bi(a)&&(i=a,a=null),e){var n=this,s=this._currentRequest;this.write(e,a,(function(){n._ended=!0,s.end(null,null,i)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,i)},ki.prototype.setHeader=function(e,a){this._options.headers[e]=a,this._currentRequest.setHeader(e,a)},ki.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},ki.prototype.setTimeout=function(e,a){var i=this;function n(a){a.setTimeout(e),a.removeListener("timeout",a.destroy),a.addListener("timeout",a.destroy)}function s(a){i._timeout&&clearTimeout(i._timeout),i._timeout=setTimeout((function(){i.emit("timeout"),o()}),e),n(a)}function o(){i._timeout&&(clearTimeout(i._timeout),i._timeout=null),i.removeListener("abort",o),i.removeListener("error",o),i.removeListener("response",o),i.removeListener("close",o),a&&i.removeListener("timeout",a),i.socket||i._currentRequest.removeListener("socket",s)}return a&&this.on("timeout",a),this.socket?s(this.socket):this._currentRequest.once("socket",s),this.on("socket",n),this.on("abort",o),this.on("error",o),this.on("response",o),this.on("close",o),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){ki.prototype[e]=function(a,i){return this._currentRequest[e](a,i)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(ki.prototype,e,{get:function(){return this._currentRequest[e]}})})),ki.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var a=e.path.indexOf("?");a<0?e.pathname=e.path:(e.pathname=e.path.substring(0,a),e.search=e.path.substring(a))}},ki.prototype._performRequest=function(){var e=this._options.protocol,a=this._options.nativeProtocols[e];if(!a)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var i=e.slice(0,-1);this._options.agent=this._options.agents[i]}var n=this._currentRequest=a.request(this._options,this._onNativeResponse);for(var s of(n._redirectable=this,xi))n.on(s,fi[s]);if(this._currentUrl=/^\//.test(this._options.path)?oi.format(this._options):this._options.path,this._isRedirect){var o=0,t=this,r=this._requestBodyBuffers;!function e(a){if(n===t._currentRequest)if(a)t.emit("error",a);else if(o<r.length){var i=r[o++];n.finished||n.write(i.data,i.encoding,e)}else t._ended&&n.end()}()}},ki.prototype._processResponse=function(e){var a=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:a});var i,n=e.headers.location;if(!n||!1===this._options.followRedirects||a<300||a>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(Ci(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new bi;var s=this._options.beforeRedirect;s&&(i=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var o=this._options.method;((301===a||302===a)&&"POST"===this._options.method||303===a&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],Si(/^content-/i,this._options.headers));var t,r,c=Si(/^host$/i,this._options.headers),p=Ti(this._currentUrl),l=c||p.host,u=/^\w+:/.test(n)?this._currentUrl:oi.format(Object.assign(p,{host:l})),m=(t=n,r=u,mi?new ti(t,r):Ti(oi.resolve(r,t)));if(ui("redirecting to",m.href),this._isRedirect=!0,Ri(m,this._options),(m.protocol!==p.protocol&&"https:"!==m.protocol||m.host!==l&&!function(e,a){li(zi(e)&&zi(a));var i=e.length-a.length-1;return i>0&&"."===e[i]&&e.endsWith(a)}(m.host,l))&&Si(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),Bi(s)){var d={headers:e.headers,statusCode:a},x={url:u,method:o,headers:i};s(this._options,d,x),this._sanitizeOptions(this._options)}this._performRequest()},Va.exports=ji({http:ri,https:ci}),Va.exports.wrap=ji;var Li=Va.exports,Ai=x.getDefaultExportFromCjs(Li);const qi="1.6.8";function Ui(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}const Ni=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function Fi(e,a){e=e||10;const i=new Array(e),n=new Array(e);let s,o=0,t=0;return a=void 0!==a?a:1e3,function(r){const c=Date.now(),p=n[t];s||(s=c),i[o]=r,n[o]=c;let l=t,u=0;for(;l!==o;)u+=i[l++],l%=e;if(o=(o+1)%e,o===t&&(t=(t+1)%e),c-s<a)return;const m=p&&c-p;return m?Math.round(1e3*u/m):void 0}}const Di=Symbol("internals");class Pi extends f.Transform{constructor(e){super({readableHighWaterMark:(e=pe.toFlatObject(e,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,((e,a)=>!pe.isUndefined(a[e])))).chunkSize});const a=this,i=this[Di]={length:e.length,timeWindow:e.timeWindow,ticksRate:e.ticksRate,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null},n=Fi(i.ticksRate*e.samplesCount,i.timeWindow);this.on("newListener",(e=>{"progress"===e&&(i.isCaptured||(i.isCaptured=!0))}));let s=0;i.updateProgress=function(e,a){let i=0;const n=1e3/a;let s=null;return function(a,o){const t=Date.now();if(a||t-i>n)return s&&(clearTimeout(s),s=null),i=t,e.apply(null,o);s||(s=setTimeout((()=>(s=null,i=Date.now(),e.apply(null,o))),n-(t-i)))}}((function(){const e=i.length,o=i.bytesSeen,t=o-s;if(!t||a.destroyed)return;const r=n(t);s=o,process.nextTick((()=>{a.emit("progress",{loaded:o,total:e,progress:e?o/e:void 0,bytes:t,rate:r||void 0,estimated:r&&e&&o<=e?(e-o)/r:void 0})}))}),i.ticksRate);const o=()=>{i.updateProgress(!0)};this.once("end",o),this.once("error",o)}_read(e){const a=this[Di];return a.onReadCallback&&a.onReadCallback(),super._read(e)}_transform(e,a,i){const n=this,s=this[Di],o=s.maxRate,t=this.readableHighWaterMark,r=s.timeWindow,c=o/(1e3/r),p=!1!==s.minChunkSize?Math.max(s.minChunkSize,.01*c):0;const l=(e,a)=>{const i=Buffer.byteLength(e);let l,u=null,m=t,d=0;if(o){const e=Date.now();(!s.ts||(d=e-s.ts)>=r)&&(s.ts=e,l=c-s.bytes,s.bytes=l<0?-l:0,d=0),l=c-s.bytes}if(o){if(l<=0)return setTimeout((()=>{a(null,e)}),r-d);l<m&&(m=l)}m&&i>m&&i-m>p&&(u=e.subarray(m),e=e.subarray(0,m)),function(e,a){const i=Buffer.byteLength(e);s.bytesSeen+=i,s.bytes+=i,s.isCaptured&&s.updateProgress(),n.push(e)?process.nextTick(a):s.onReadCallback=()=>{s.onReadCallback=null,process.nextTick(a)}}(e,u?()=>{process.nextTick(a,null,u)}:a)};l(e,(function e(a,n){if(a)return i(a);n?l(n,e):i(null)}))}setLength(e){return this[Di].length=+e,this}}var Ii=Pi;const{asyncIterator:Mi}=Symbol,Hi=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[Mi]?yield*e[Mi]():yield e},Wi=pe.ALPHABET.ALPHA_DIGIT+"-_",Yi=new o.TextEncoder,Gi="\r\n",$i=Yi.encode(Gi);class Vi{constructor(e,a){const{escapeName:i}=this.constructor,n=pe.isString(a);let s=`Content-Disposition: form-data; name="${i(e)}"${!n&&a.name?`; filename="${i(a.name)}"`:""}${Gi}`;n?a=Yi.encode(String(a).replace(/\r?\n|\r\n?/g,Gi)):s+=`Content-Type: ${a.type||"application/octet-stream"}${Gi}`,this.headers=Yi.encode(s+Gi),this.contentLength=n?a.byteLength:a.size,this.size=this.headers.byteLength+this.contentLength+2,this.name=e,this.value=a}async*encode(){yield this.headers;const{value:e}=this;pe.isTypedArray(e)?yield e:yield*Hi(e),yield $i}static escapeName(e){return String(e).replace(/[\r\n"]/g,(e=>({"\r":"%0D","\n":"%0A",'"':"%22"}[e])))}}class Ji extends f.Transform{__transform(e,a,i){this.push(e),i()}_transform(e,a,i){if(0!==e.length&&(this._transform=this.__transform,120!==e[0])){const e=Buffer.alloc(2);e[0]=120,e[1]=156,this.push(e,a)}this.__transform(e,a,i)}}const Ki=(e,a)=>pe.isAsyncFn(e)?function(...i){const n=i.pop();e.apply(this,i).then((e=>{try{a?n(null,...a(e)):n(null,e)}catch(e){n(e)}}),n)}:e,Xi={flush:v.constants.Z_SYNC_FLUSH,finishFlush:v.constants.Z_SYNC_FLUSH},Zi={flush:v.constants.BROTLI_OPERATION_FLUSH,finishFlush:v.constants.BROTLI_OPERATION_FLUSH},Qi=pe.isFunction(v.createBrotliDecompress),{http:en,https:an}=Ai,nn=/https:?/,sn=ja.protocols.map((e=>e+":"));function on(e,a){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,a)}function tn(e,a,i){let n=a;if(!n&&!1!==n){const e=$a(i);e&&(n=new URL(e))}if(n){if(n.username&&(n.auth=(n.username||"")+":"+(n.password||"")),n.auth){(n.auth.username||n.auth.password)&&(n.auth=(n.auth.username||"")+":"+(n.auth.password||""));const a=Buffer.from(n.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+a}e.headers.host=e.hostname+(e.port?":"+e.port:"");const a=n.hostname||n.host;e.hostname=a,e.host=a,e.port=n.port,e.path=i,n.protocol&&(e.protocol=n.protocol.includes(":")?n.protocol:`${n.protocol}:`)}e.beforeRedirects.proxy=function(e){tn(e,a,e.href)}}const rn="undefined"!=typeof process&&"process"===pe.kindOf(process),cn=(e,a)=>(({address:e,family:a})=>{if(!pe.isString(e))throw TypeError("address must be a string");return{address:e,family:a||(e.indexOf(".")<0?6:4)}})(pe.isObject(e)?e:{address:e,family:a});var pn=rn&&function(i){return n=async function(n,s,t){let{data:r,lookup:c,family:l}=i;const{responseType:u,responseEncoding:m}=i,d=i.method.toUpperCase();let x,h,b=!1;if(c){const e=Ki(c,(e=>pe.isArray(e)?e:[e]));c=(a,i,n)=>{e(a,i,((e,a,s)=>{if(e)return n(e);const o=pe.isArray(a)?a.map((e=>cn(e))):[cn(a,s)];i.all?n(e,o):n(e,o[0].address,o[0].family)}))}}const g=new p.EventEmitter,y=()=>{i.cancelToken&&i.cancelToken.unsubscribe(w),i.signal&&i.signal.removeEventListener("abort",w),g.removeAllListeners()};function w(e){g.emit("abort",!e||e.type?new Ua(null,i,h):e)}t(((e,a)=>{x=!0,a&&(b=!0,y())})),g.once("abort",s),(i.cancelToken||i.signal)&&(i.cancelToken&&i.cancelToken.subscribe(w),i.signal&&(i.signal.aborted?w():i.signal.addEventListener("abort",w)));const k=Fa(i.baseURL,i.url),j=new URL(k,"http://localhost"),_=j.protocol||sn[0];if("data:"===_){let e;if("GET"!==d)return Na(n,s,{status:405,statusText:"method not allowed",headers:{},config:i});try{e=function(e,a,i){const n=i&&i.Blob||ja.classes.Blob,s=Ui(e);if(void 0===a&&n&&(a=!0),"data"===s){e=s.length?e.slice(s.length+1):e;const i=Ni.exec(e);if(!i)throw new le("Invalid URL",le.ERR_INVALID_URL);const o=i[1],t=i[2],r=i[3],c=Buffer.from(decodeURIComponent(r),t?"base64":"utf8");if(a){if(!n)throw new le("Blob is not supported",le.ERR_NOT_SUPPORT);return new n([c],{type:o})}return c}throw new le("Unsupported protocol "+s,le.ERR_NOT_SUPPORT)}(i.url,"blob"===u,{Blob:i.env&&i.env.Blob})}catch(e){throw le.from(e,le.ERR_BAD_REQUEST,i)}return"text"===u?(e=e.toString(m),m&&"utf8"!==m||(e=pe.stripBOM(e))):"stream"===u&&(e=f.Readable.from(e)),Na(n,s,{data:e,status:200,statusText:"OK",headers:new La,config:i})}if(-1===sn.indexOf(_))return s(new le("Unsupported protocol "+_,le.ERR_BAD_REQUEST,i));const T=La.from(i.headers).normalize();T.set("User-Agent","axios/"+qi,!1);const E=i.onDownloadProgress,R=i.onUploadProgress,S=i.maxRate;let O,C;if(pe.isSpecCompliantForm(r)){const e=T.getContentType(/boundary=([-_\w\d]{10,70})/i);r=((e,a,i)=>{const{tag:n="form-data-boundary",size:s=25,boundary:o=n+"-"+pe.generateString(s,Wi)}=i||{};if(!pe.isFormData(e))throw TypeError("FormData instance required");if(o.length<1||o.length>70)throw Error("boundary must be 10-70 characters long");const t=Yi.encode("--"+o+Gi),r=Yi.encode("--"+o+"--"+Gi+Gi);let c=r.byteLength;const p=Array.from(e.entries()).map((([e,a])=>{const i=new Vi(e,a);return c+=i.size,i}));c+=t.byteLength*p.length,c=pe.toFiniteNumber(c);const l={"Content-Type":`multipart/form-data; boundary=${o}`};return Number.isFinite(c)&&(l["Content-Length"]=c),a&&a(l),f.Readable.from(async function*(){for(const e of p)yield t,yield*e.encode();yield r}())})(r,(e=>{T.set(e)}),{tag:`axios-${qi}-boundary`,boundary:e&&e[1]||void 0})}else if(pe.isFormData(r)&&pe.isFunction(r.getHeaders)){if(T.set(r.getHeaders()),!T.hasContentLength())try{const e=await o.promisify(r.getLength).call(r);Number.isFinite(e)&&e>=0&&T.setContentLength(e)}catch(e){}}else if(pe.isBlob(r))r.size&&T.setContentType(r.type||"application/octet-stream"),T.setContentLength(r.size||0),r=f.Readable.from(Hi(r));else if(r&&!pe.isStream(r)){if(Buffer.isBuffer(r));else if(pe.isArrayBuffer(r))r=Buffer.from(new Uint8Array(r));else{if(!pe.isString(r))return s(new le("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",le.ERR_BAD_REQUEST,i));r=Buffer.from(r,"utf-8")}if(T.setContentLength(r.length,!1),i.maxBodyLength>-1&&r.length>i.maxBodyLength)return s(new le("Request body larger than maxBodyLength limit",le.ERR_BAD_REQUEST,i))}const z=pe.toFiniteNumber(T.getContentLength());let B,L;pe.isArray(S)?(O=S[0],C=S[1]):O=C=S,r&&(R||O)&&(pe.isStream(r)||(r=f.Readable.from(r,{objectMode:!1})),r=f.pipeline([r,new Ii({length:z,maxRate:pe.toFiniteNumber(O)})],pe.noop),R&&r.on("progress",(e=>{R(Object.assign(e,{upload:!0}))}))),i.auth&&(B=(i.auth.username||"")+":"+(i.auth.password||"")),!B&&j.username&&(B=j.username+":"+j.password),B&&T.delete("authorization");try{L=fa(j.pathname+j.search,i.params,i.paramsSerializer).replace(/^\?/,"")}catch(e){const a=new Error(e.message);return a.config=i,a.url=i.url,a.exists=!0,s(a)}T.set("Accept-Encoding","gzip, compress, deflate"+(Qi?", br":""),!1);const A={path:L,method:d,headers:T.toJSON(),agents:{http:i.httpAgent,https:i.httpsAgent},auth:B,protocol:_,family:l,beforeRedirect:on,beforeRedirects:{}};let q;!pe.isUndefined(c)&&(A.lookup=c),i.socketPath?A.socketPath=i.socketPath:(A.hostname=j.hostname,A.port=j.port,tn(A,i.proxy,_+"//"+j.hostname+(j.port?":"+j.port:"")+A.path));const U=nn.test(A.protocol);if(A.agent=U?i.httpsAgent:i.httpAgent,i.transport?q=i.transport:0===i.maxRedirects?q=U?a:e:(i.maxRedirects&&(A.maxRedirects=i.maxRedirects),i.beforeRedirect&&(A.beforeRedirects.config=i.beforeRedirect),q=U?an:en),i.maxBodyLength>-1?A.maxBodyLength=i.maxBodyLength:A.maxBodyLength=1/0,i.insecureHTTPParser&&(A.insecureHTTPParser=i.insecureHTTPParser),h=q.request(A,(function(e){if(h.destroyed)return;const a=[e],o=+e.headers["content-length"];if(E){const e=new Ii({length:pe.toFiniteNumber(o),maxRate:pe.toFiniteNumber(C)});E&&e.on("progress",(e=>{E(Object.assign(e,{download:!0}))})),a.push(e)}let t=e;const r=e.req||h;if(!1!==i.decompress&&e.headers["content-encoding"])switch("HEAD"!==d&&204!==e.statusCode||delete e.headers["content-encoding"],(e.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":a.push(v.createUnzip(Xi)),delete e.headers["content-encoding"];break;case"deflate":a.push(new Ji),a.push(v.createUnzip(Xi)),delete e.headers["content-encoding"];break;case"br":Qi&&(a.push(v.createBrotliDecompress(Zi)),delete e.headers["content-encoding"])}t=a.length>1?f.pipeline(a,pe.noop):a[0];const c=f.finished(t,(()=>{c(),y()})),p={status:e.statusCode,statusText:e.statusMessage,headers:new La(e.headers),config:i,request:r};if("stream"===u)p.data=t,Na(n,s,p);else{const e=[];let a=0;t.on("data",(function(n){e.push(n),a+=n.length,i.maxContentLength>-1&&a>i.maxContentLength&&(b=!0,t.destroy(),s(new le("maxContentLength size of "+i.maxContentLength+" exceeded",le.ERR_BAD_RESPONSE,i,r)))})),t.on("aborted",(function(){if(b)return;const e=new le("maxContentLength size of "+i.maxContentLength+" exceeded",le.ERR_BAD_RESPONSE,i,r);t.destroy(e),s(e)})),t.on("error",(function(e){h.destroyed||s(le.from(e,null,i,r))})),t.on("end",(function(){try{let a=1===e.length?e[0]:Buffer.concat(e);"arraybuffer"!==u&&(a=a.toString(m),m&&"utf8"!==m||(a=pe.stripBOM(a))),p.data=a}catch(e){return s(le.from(e,null,i,p.request,p))}Na(n,s,p)}))}g.once("abort",(e=>{t.destroyed||(t.emit("error",e),t.destroy())}))})),g.once("abort",(e=>{s(e),h.destroy(e)})),h.on("error",(function(e){s(le.from(e,null,i,h))})),h.on("socket",(function(e){e.setKeepAlive(!0,6e4)})),i.timeout){const e=parseInt(i.timeout,10);if(Number.isNaN(e))return void s(new le("error trying to parse `config.timeout` to int",le.ERR_BAD_OPTION_VALUE,i,h));h.setTimeout(e,(function(){if(x)return;let e=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const a=i.transitional||va;i.timeoutErrorMessage&&(e=i.timeoutErrorMessage),s(new le(e,a.clarifyTimeoutError?le.ETIMEDOUT:le.ECONNABORTED,i,h)),w()}))}if(pe.isStream(r)){let e=!1,a=!1;r.on("end",(()=>{e=!0})),r.once("error",(e=>{a=!0,h.destroy(e)})),r.on("close",(()=>{e||a||w(new Ua("Request stream has been aborted",i,h))})),r.pipe(h)}else h.end(r)},new Promise(((e,a)=>{let i,s;const o=(e,a)=>{s||(s=!0,i&&i(e,a))},t=e=>{o(e,!0),a(e)};n((a=>{o(a),e(a)}),t,(e=>i=e)).catch(t)}));var n},ln=ja.hasStandardBrowserEnv?{write(e,a,i,n,s,o){const t=[e+"="+encodeURIComponent(a)];pe.isNumber(i)&&t.push("expires="+new Date(i).toGMTString()),pe.isString(n)&&t.push("path="+n),pe.isString(s)&&t.push("domain="+s),!0===o&&t.push("secure"),document.cookie=t.join("; ")},read(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}},un=ja.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let i;function n(i){let n=i;return e&&(a.setAttribute("href",n),n=a.href),a.setAttribute("href",n),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:"/"===a.pathname.charAt(0)?a.pathname:"/"+a.pathname}}return i=n(window.location.href),function(e){const a=pe.isString(e)?n(e):e;return a.protocol===i.protocol&&a.host===i.host}}():function(){return!0};function mn(e,a){let i=0;const n=Fi(50,250);return s=>{const o=s.loaded,t=s.lengthComputable?s.total:void 0,r=o-i,c=n(r);i=o;const p={loaded:o,total:t,progress:t?o/t:void 0,bytes:r,rate:c||void 0,estimated:c&&t&&o<=t?(t-o)/c:void 0,event:s};p[a?"download":"upload"]=!0,e(p)}}const dn={http:pn,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(a,i){let n=e.data;const s=La.from(e.headers).normalize();let o,t,{responseType:r,withXSRFToken:c}=e;function p(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener("abort",o)}if(pe.isFormData(n))if(ja.hasStandardBrowserEnv||ja.hasStandardBrowserWebWorkerEnv)s.setContentType(!1);else if(!1!==(t=s.getContentType())){const[e,...a]=t?t.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...a].join("; "))}let l=new XMLHttpRequest;if(e.auth){const a=e.auth.username||"",i=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(a+":"+i))}const u=Fa(e.baseURL,e.url);function m(){if(!l)return;const n=La.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());Na((function(e){a(e),p()}),(function(e){i(e),p()}),{data:r&&"text"!==r&&"json"!==r?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:n,config:e,request:l}),l=null}if(l.open(e.method.toUpperCase(),fa(u,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=m:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(m)},l.onabort=function(){l&&(i(new le("Request aborted",le.ECONNABORTED,e,l)),l=null)},l.onerror=function(){i(new le("Network Error",le.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let a=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const n=e.transitional||va;e.timeoutErrorMessage&&(a=e.timeoutErrorMessage),i(new le(a,n.clarifyTimeoutError?le.ETIMEDOUT:le.ECONNABORTED,e,l)),l=null},ja.hasStandardBrowserEnv&&(c&&pe.isFunction(c)&&(c=c(e)),c||!1!==c&&un(u))){const a=e.xsrfHeaderName&&e.xsrfCookieName&&ln.read(e.xsrfCookieName);a&&s.set(e.xsrfHeaderName,a)}void 0===n&&s.setContentType(null),"setRequestHeader"in l&&pe.forEach(s.toJSON(),(function(e,a){l.setRequestHeader(a,e)})),pe.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),r&&"json"!==r&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",mn(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",mn(e.onUploadProgress)),(e.cancelToken||e.signal)&&(o=a=>{l&&(i(!a||a.type?new Ua(null,e,l):a),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener("abort",o)));const d=Ui(u);d&&-1===ja.protocols.indexOf(d)?i(new le("Unsupported protocol "+d+":",le.ERR_BAD_REQUEST,e)):l.send(n||null)}))}};pe.forEach(dn,((e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch(e){}Object.defineProperty(e,"adapterName",{value:a})}}));const xn=e=>`- ${e}`,fn=e=>pe.isFunction(e)||null===e||!1===e;var hn=e=>{e=pe.isArray(e)?e:[e];const{length:a}=e;let i,n;const s={};for(let o=0;o<a;o++){let a;if(i=e[o],n=i,!fn(i)&&(n=dn[(a=String(i)).toLowerCase()],void 0===n))throw new le(`Unknown adapter '${a}'`);if(n)break;s[a||"#"+o]=n}if(!n){const e=Object.entries(s).map((([e,a])=>`adapter ${e} `+(!1===a?"is not supported by the environment":"is not available in the build")));throw new le("There is no suitable adapter to dispatch the request "+(a?e.length>1?"since :\n"+e.map(xn).join("\n"):" "+xn(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function vn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ua(null,e)}function bn(e){vn(e),e.headers=La.from(e.headers),e.data=Aa.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return hn(e.adapter||Ea.adapter)(e).then((function(a){return vn(e),a.data=Aa.call(e,e.transformResponse,a),a.headers=La.from(a.headers),a}),(function(a){return qa(a)||(vn(e),a&&a.response&&(a.response.data=Aa.call(e,e.transformResponse,a.response),a.response.headers=La.from(a.response.headers))),Promise.reject(a)}))}const gn=e=>e instanceof La?{...e}:e;function yn(e,a){a=a||{};const i={};function n(e,a,i){return pe.isPlainObject(e)&&pe.isPlainObject(a)?pe.merge.call({caseless:i},e,a):pe.isPlainObject(a)?pe.merge({},a):pe.isArray(a)?a.slice():a}function s(e,a,i){return pe.isUndefined(a)?pe.isUndefined(e)?void 0:n(void 0,e,i):n(e,a,i)}function o(e,a){if(!pe.isUndefined(a))return n(void 0,a)}function t(e,a){return pe.isUndefined(a)?pe.isUndefined(e)?void 0:n(void 0,e):n(void 0,a)}function r(i,s,o){return o in a?n(i,s):o in e?n(void 0,i):void 0}const c={url:o,method:o,data:o,baseURL:t,transformRequest:t,transformResponse:t,paramsSerializer:t,timeout:t,timeoutMessage:t,withCredentials:t,withXSRFToken:t,adapter:t,responseType:t,xsrfCookieName:t,xsrfHeaderName:t,onUploadProgress:t,onDownloadProgress:t,decompress:t,maxContentLength:t,maxBodyLength:t,beforeRedirect:t,transport:t,httpAgent:t,httpsAgent:t,cancelToken:t,socketPath:t,responseEncoding:t,validateStatus:r,headers:(e,a)=>s(gn(e),gn(a),!0)};return pe.forEach(Object.keys(Object.assign({},e,a)),(function(n){const o=c[n]||s,t=o(e[n],a[n],n);pe.isUndefined(t)&&o!==r||(i[n]=t)})),i}const wn={};["object","boolean","number","function","string","symbol"].forEach(((e,a)=>{wn[e]=function(i){return typeof i===e||"a"+(a<1?"n ":" ")+e}}));const kn={};wn.transitional=function(e,a,i){function n(e,a){return"[Axios v1.6.8] Transitional option '"+e+"'"+a+(i?". "+i:"")}return(i,s,o)=>{if(!1===e)throw new le(n(s," has been removed"+(a?" in "+a:"")),le.ERR_DEPRECATED);return a&&!kn[s]&&(kn[s]=!0,console.warn(n(s," has been deprecated since v"+a+" and will be removed in the near future"))),!e||e(i,s,o)}};var jn={assertOptions:function(e,a,i){if("object"!=typeof e)throw new le("options must be an object",le.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const o=n[s],t=a[o];if(t){const a=e[o],i=void 0===a||t(a,o,e);if(!0!==i)throw new le("option "+o+" must be "+i,le.ERR_BAD_OPTION_VALUE)}else if(!0!==i)throw new le("Unknown option "+o,le.ERR_BAD_OPTION)}},validators:wn};const _n=jn.validators;class Tn{constructor(e){this.defaults=e,this.interceptors={request:new ha,response:new ha}}async request(e,a){try{return await this._request(e,a)}catch(e){if(e instanceof Error){let a;Error.captureStackTrace?Error.captureStackTrace(a={}):a=new Error;const i=a.stack?a.stack.replace(/^.+\n/,""):"";e.stack?i&&!String(e.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+i):e.stack=i}throw e}}_request(e,a){"string"==typeof e?(a=a||{}).url=e:a=e||{},a=yn(this.defaults,a);const{transitional:i,paramsSerializer:n,headers:s}=a;void 0!==i&&jn.assertOptions(i,{silentJSONParsing:_n.transitional(_n.boolean),forcedJSONParsing:_n.transitional(_n.boolean),clarifyTimeoutError:_n.transitional(_n.boolean)},!1),null!=n&&(pe.isFunction(n)?a.paramsSerializer={serialize:n}:jn.assertOptions(n,{encode:_n.function,serialize:_n.function},!0)),a.method=(a.method||this.defaults.method||"get").toLowerCase();let o=s&&pe.merge(s.common,s[a.method]);s&&pe.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete s[e]})),a.headers=La.concat(o,s);const t=[];let r=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(a)||(r=r&&e.synchronous,t.unshift(e.fulfilled,e.rejected))}));const c=[];let p;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,u=0;if(!r){const e=[bn.bind(this),void 0];for(e.unshift.apply(e,t),e.push.apply(e,c),l=e.length,p=Promise.resolve(a);u<l;)p=p.then(e[u++],e[u++]);return p}l=t.length;let m=a;for(u=0;u<l;){const e=t[u++],a=t[u++];try{m=e(m)}catch(e){a.call(this,e);break}}try{p=bn.call(this,m)}catch(e){return Promise.reject(e)}for(u=0,l=c.length;u<l;)p=p.then(c[u++],c[u++]);return p}getUri(e){return fa(Fa((e=yn(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}pe.forEach(["delete","get","head","options"],(function(e){Tn.prototype[e]=function(a,i){return this.request(yn(i||{},{method:e,url:a,data:(i||{}).data}))}})),pe.forEach(["post","put","patch"],(function(e){function a(a){return function(i,n,s){return this.request(yn(s||{},{method:e,headers:a?{"Content-Type":"multipart/form-data"}:{},url:i,data:n}))}}Tn.prototype[e]=a(),Tn.prototype[e+"Form"]=a(!0)}));var En=Tn;class Rn{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let a;this.promise=new Promise((function(e){a=e}));const i=this;this.promise.then((e=>{if(!i._listeners)return;let a=i._listeners.length;for(;a-- >0;)i._listeners[a](e);i._listeners=null})),this.promise.then=e=>{let a;const n=new Promise((e=>{i.subscribe(e),a=e})).then(e);return n.cancel=function(){i.unsubscribe(a)},n},e((function(e,n,s){i.reason||(i.reason=new Ua(e,n,s),a(i.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const a=this._listeners.indexOf(e);-1!==a&&this._listeners.splice(a,1)}static source(){let e;return{token:new Rn((function(a){e=a})),cancel:e}}}var Sn=Rn;const On={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(On).forEach((([e,a])=>{On[a]=e}));var Cn=On;const zn=function e(a){const i=new En(a),n=O(En.prototype.request,i);return pe.extend(n,En.prototype,i,{allOwnKeys:!0}),pe.extend(n,i,null,{allOwnKeys:!0}),n.create=function(i){return e(yn(a,i))},n}(Ea);zn.Axios=En,zn.CanceledError=Ua,zn.CancelToken=Sn,zn.isCancel=qa,zn.VERSION=qi,zn.toFormData=la,zn.AxiosError=le,zn.Cancel=zn.CanceledError,zn.all=function(e){return Promise.all(e)},zn.spread=function(e){return function(a){return e.apply(null,a)}},zn.isAxiosError=function(e){return pe.isObject(e)&&!0===e.isAxiosError},zn.mergeConfig=yn,zn.AxiosHeaders=La,zn.formToJSON=e=>_a(pe.isHTMLForm(e)?new FormData(e):e),zn.getAdapter=hn,zn.HttpStatusCode=Cn,zn.default=zn;var Bn=class{constructor(e,a,i){this.etaBufferLength=e||100,this.valueBuffer=[i],this.timeBuffer=[a],this.eta="0"}update(e,a,i){this.valueBuffer.push(a),this.timeBuffer.push(e),this.calculate(i-a)}getTime(){return this.eta}calculate(e){const a=this.valueBuffer.length,i=Math.min(this.etaBufferLength,a),n=(this.valueBuffer[a-1]-this.valueBuffer[a-i])/(this.timeBuffer[a-1]-this.timeBuffer[a-i]);this.valueBuffer=this.valueBuffer.slice(-this.etaBufferLength),this.timeBuffer=this.timeBuffer.slice(-this.etaBufferLength);const s=Math.ceil(e/n/1e3);isNaN(s)?this.eta="NULL":isFinite(s)?this.eta=s>1e7?"INF":s<0?0:s:this.eta="INF"}};const Ln=r;var An=class{constructor(e){this.stream=e,this.linewrap=!0,this.dy=0}cursorSave(){this.stream.isTTY&&this.stream.write("7")}cursorRestore(){this.stream.isTTY&&this.stream.write("8")}cursor(e){this.stream.isTTY&&(e?this.stream.write("[?25h"):this.stream.write("[?25l"))}cursorTo(e=null,a=null){this.stream.isTTY&&Ln.cursorTo(this.stream,e,a)}cursorRelative(e=null,a=null){this.stream.isTTY&&(this.dy=this.dy+a,Ln.moveCursor(this.stream,e,a))}cursorRelativeReset(){this.stream.isTTY&&(Ln.moveCursor(this.stream,0,-this.dy),Ln.cursorTo(this.stream,0,null),this.dy=0)}clearRight(){this.stream.isTTY&&Ln.clearLine(this.stream,1)}clearLine(){this.stream.isTTY&&Ln.clearLine(this.stream,0)}clearBottom(){this.stream.isTTY&&Ln.clearScreenDown(this.stream)}newline(){this.stream.write("\n"),this.dy++}write(e,a=!1){!0===this.linewrap&&!1===a?this.stream.write(e.substr(0,this.getWidth())):this.stream.write(e)}lineWrapping(e){this.stream.isTTY&&(this.linewrap=e,e?this.stream.write("[?7h"):this.stream.write("[?7l"))}isTTY(){return!0===this.stream.isTTY}getWidth(){return this.stream.columns||(this.stream.isTTY?80:200)}},qn=function(e,a,i){if(!0!==a.autopadding)return e;return"percentage"===i?(n=e,s=3,(a.autopaddingChar+n).slice(-s)):e;var n,s},Un=function(e,a){const i=Math.round(e*a.barsize),n=a.barsize-i;return a.barCompleteString.substr(0,i)+a.barGlue+a.barIncompleteString.substr(0,n)},Nn=function(e,a,i){function n(e){return i?i*Math.round(e/i):e}function s(e){return(a.autopaddingChar+e).slice(-2)}return e>3600?s(Math.floor(e/3600))+"h"+s(n(e%3600/60))+"m":e>60?s(Math.floor(e/60))+"m"+s(n(e%60))+"s":e>10?s(n(e))+"s":s(e)+"s"};const Fn=c.stringWidthExports,Dn=qn,Pn=Un,In=Nn;var Mn=function(e,a,i){let n=e.format;const s=e.formatTime||In,o=e.formatValue||Dn,t=e.formatBar||Pn,r=Math.floor(100*a.progress)+"",c=a.stopTime||Date.now(),p=Math.round((c-a.startTime)/1e3),l=Object.assign({},i,{bar:t(a.progress,e),percentage:o(r,e,"percentage"),total:o(a.total,e,"total"),value:o(a.value,e,"value"),eta:o(a.eta,e,"eta"),eta_formatted:s(a.eta,e,5),duration:o(p,e,"duration"),duration_formatted:s(p,e,1)});n=n.replace(/\{(\w+)\}/g,(function(e,a){return void 0!==l[a]?l[a]:e}));const u=Math.max(0,a.maxWidth-Fn(n)-2),m=Math.floor(u/2);switch(e.align){case"right":n=u>0?" ".repeat(u)+n:n;break;case"center":n=m>0?" ".repeat(m)+n:n}return n};function Hn(e,a){return null==e?a:e}var Wn={parse:function(e,a){const i={},n=Object.assign({},a,e);return i.throttleTime=1e3/Hn(n.fps,10),i.stream=Hn(n.stream,process.stderr),i.terminal=Hn(n.terminal,null),i.clearOnComplete=Hn(n.clearOnComplete,!1),i.stopOnComplete=Hn(n.stopOnComplete,!1),i.barsize=Hn(n.barsize,40),i.align=Hn(n.align,"left"),i.hideCursor=Hn(n.hideCursor,!1),i.linewrap=Hn(n.linewrap,!1),i.barGlue=Hn(n.barGlue,""),i.barCompleteChar=Hn(n.barCompleteChar,"="),i.barIncompleteChar=Hn(n.barIncompleteChar,"-"),i.format=Hn(n.format,"progress [{bar}] {percentage}% | ETA: {eta}s | {value}/{total}"),i.formatTime=Hn(n.formatTime,null),i.formatValue=Hn(n.formatValue,null),i.formatBar=Hn(n.formatBar,null),i.etaBufferLength=Hn(n.etaBuffer,10),i.etaAsynchronousUpdate=Hn(n.etaAsynchronousUpdate,!1),i.progressCalculationRelative=Hn(n.progressCalculationRelative,!1),i.synchronousUpdate=Hn(n.synchronousUpdate,!0),i.noTTYOutput=Hn(n.noTTYOutput,!1),i.notTTYSchedule=Hn(n.notTTYSchedule,2e3),i.emptyOnZero=Hn(n.emptyOnZero,!1),i.forceRedraw=Hn(n.forceRedraw,!1),i.autopadding=Hn(n.autopadding,!1),i.gracefulExit=Hn(n.gracefulExit,!1),i},assignDerivedOptions:function(e){return e.barCompleteString=e.barCompleteChar.repeat(e.barsize+1),e.barIncompleteString=e.barIncompleteChar.repeat(e.barsize+1),e.autopaddingChar=e.autopadding?Hn(e.autopaddingChar," "):"",e}};const Yn=Bn,Gn=An,$n=Mn,Vn=Wn,Jn=p;var Kn=class extends Jn{constructor(e){super(),this.options=Vn.assignDerivedOptions(e),this.terminal=this.options.terminal?this.options.terminal:new Gn(this.options.stream),this.value=0,this.startValue=0,this.total=100,this.lastDrawnString=null,this.startTime=null,this.stopTime=null,this.lastRedraw=Date.now(),this.eta=new Yn(this.options.etaBufferLength,0,0),this.payload={},this.isActive=!1,this.formatter="function"==typeof this.options.format?this.options.format:$n}render(e=!1){const a={progress:this.getProgress(),eta:this.eta.getTime(),startTime:this.startTime,stopTime:this.stopTime,total:this.total,value:this.value,maxWidth:this.terminal.getWidth()};this.options.etaAsynchronousUpdate&&this.updateETA();const i=this.formatter(this.options,a,this.payload);(e||this.options.forceRedraw||this.options.noTTYOutput&&!this.terminal.isTTY()||this.lastDrawnString!=i)&&(this.emit("redraw-pre"),this.terminal.cursorTo(0,null),this.terminal.write(i),this.terminal.clearRight(),this.lastDrawnString=i,this.lastRedraw=Date.now(),this.emit("redraw-post"))}start(e,a,i){this.value=a||0,this.total=void 0!==e&&e>=0?e:100,this.startValue=a||0,this.payload=i||{},this.startTime=Date.now(),this.stopTime=null,this.lastDrawnString="",this.eta=new Yn(this.options.etaBufferLength,this.startTime,this.value),this.isActive=!0,this.emit("start",e,a)}stop(){this.isActive=!1,this.stopTime=Date.now(),this.emit("stop",this.total,this.value)}update(e,a={}){"number"==typeof e&&(this.value=e,this.eta.update(Date.now(),e,this.total));const i=("object"==typeof e?e:a)||{};this.emit("update",this.total,this.value);for(const e in i)this.payload[e]=i[e];this.value>=this.getTotal()&&this.options.stopOnComplete&&this.stop()}getProgress(){let e=this.value/this.total;return this.options.progressCalculationRelative&&(e=(this.value-this.startValue)/(this.total-this.startValue)),isNaN(e)&&(e=this.options&&this.options.emptyOnZero?0:1),e=Math.min(Math.max(e,0),1),e}increment(e=1,a={}){"object"==typeof e?this.update(this.value+1,e):this.update(this.value+e,a)}getTotal(){return this.total}setTotal(e){void 0!==e&&e>=0&&(this.total=e)}updateETA(){this.eta.update(Date.now(),this.value,this.total)}};const Xn=Kn,Zn=Wn;const Qn=An,es=Kn,as=Wn,is=p;var ns={legacy:{format:"progress [{bar}] {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"=",barIncompleteChar:"-"},shades_classic:{format:" {bar} {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"█",barIncompleteChar:"░"},shades_grey:{format:" [90m{bar}[0m {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"█",barIncompleteChar:"░"},rect:{format:" {bar}■ {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"■",barIncompleteChar:" "}};const ss=class extends Xn{constructor(e,a){super(Zn.parse(e,a)),this.timer=null,this.options.noTTYOutput&&!1===this.terminal.isTTY()&&(this.options.synchronousUpdate=!1),this.schedulingRate=this.terminal.isTTY()?this.options.throttleTime:this.options.notTTYSchedule,this.sigintCallback=null}render(){this.timer&&(clearTimeout(this.timer),this.timer=null),super.render(),this.options.noTTYOutput&&!1===this.terminal.isTTY()&&this.terminal.newline(),this.timer=setTimeout(this.render.bind(this),this.schedulingRate)}update(e,a){this.timer&&(super.update(e,a),this.options.synchronousUpdate&&this.lastRedraw+2*this.options.throttleTime<Date.now()&&this.render())}start(e,a,i){!1===this.options.noTTYOutput&&!1===this.terminal.isTTY()||(null===this.sigintCallback&&this.options.gracefulExit&&(this.sigintCallback=this.stop.bind(this),process.once("SIGINT",this.sigintCallback),process.once("SIGTERM",this.sigintCallback)),this.terminal.cursorSave(),!0===this.options.hideCursor&&this.terminal.cursor(!1),!1===this.options.linewrap&&this.terminal.lineWrapping(!1),super.start(e,a,i),this.render())}stop(){this.timer&&(this.sigintCallback&&(process.removeListener("SIGINT",this.sigintCallback),process.removeListener("SIGTERM",this.sigintCallback),this.sigintCallback=null),this.render(),super.stop(),clearTimeout(this.timer),this.timer=null,!0===this.options.hideCursor&&this.terminal.cursor(!0),!1===this.options.linewrap&&this.terminal.lineWrapping(!0),this.terminal.cursorRestore(),this.options.clearOnComplete?(this.terminal.cursorTo(0,null),this.terminal.clearLine()):this.terminal.newline())}},os=class extends is{constructor(e,a){super(),this.bars=[],this.options=as.parse(e,a),this.options.synchronousUpdate=!1,this.terminal=this.options.terminal?this.options.terminal:new Qn(this.options.stream),this.timer=null,this.isActive=!1,this.schedulingRate=this.terminal.isTTY()?this.options.throttleTime:this.options.notTTYSchedule,this.loggingBuffer=[],this.sigintCallback=null}create(e,a,i,n={}){const s=new es(Object.assign({},this.options,{terminal:this.terminal},n));return this.bars.push(s),!1===this.options.noTTYOutput&&!1===this.terminal.isTTY()||(null===this.sigintCallback&&this.options.gracefulExit&&(this.sigintCallback=this.stop.bind(this),process.once("SIGINT",this.sigintCallback),process.once("SIGTERM",this.sigintCallback)),this.isActive||(!0===this.options.hideCursor&&this.terminal.cursor(!1),!1===this.options.linewrap&&this.terminal.lineWrapping(!1),this.timer=setTimeout(this.update.bind(this),this.schedulingRate)),this.isActive=!0,s.start(e,a,i),this.emit("start")),s}remove(e){const a=this.bars.indexOf(e);return!(a<0)&&(this.bars.splice(a,1),this.update(),this.terminal.newline(),this.terminal.clearBottom(),!0)}update(){if(this.timer&&(clearTimeout(this.timer),this.timer=null),this.emit("update-pre"),this.terminal.cursorRelativeReset(),this.emit("redraw-pre"),this.loggingBuffer.length>0)for(this.terminal.clearLine();this.loggingBuffer.length>0;)this.terminal.write(this.loggingBuffer.shift(),!0);for(let e=0;e<this.bars.length;e++)e>0&&this.terminal.newline(),this.bars[e].render();this.emit("redraw-post"),this.options.noTTYOutput&&!1===this.terminal.isTTY()&&(this.terminal.newline(),this.terminal.newline()),this.timer=setTimeout(this.update.bind(this),this.schedulingRate),this.emit("update-post"),this.options.stopOnComplete&&!this.bars.find((e=>e.isActive))&&this.stop()}stop(){if(clearTimeout(this.timer),this.timer=null,this.sigintCallback&&(process.removeListener("SIGINT",this.sigintCallback),process.removeListener("SIGTERM",this.sigintCallback),this.sigintCallback=null),this.isActive=!1,!0===this.options.hideCursor&&this.terminal.cursor(!0),!1===this.options.linewrap&&this.terminal.lineWrapping(!0),this.terminal.cursorRelativeReset(),this.emit("stop-pre-clear"),this.options.clearOnComplete)this.terminal.clearBottom();else{for(let e=0;e<this.bars.length;e++)e>0&&this.terminal.newline(),this.bars[e].render(),this.bars[e].stop();this.terminal.newline()}this.emit("stop")}log(e){this.loggingBuffer.push(e)}};var ts={Bar:ss,SingleBar:ss,MultiBar:os,Presets:ns,Format:{Formatter:Mn,BarFormat:Un,ValueFormat:qn,TimeFormat:Nn}};function rs(e,a){var i=(65535&e)+(65535&a);return(e>>16)+(a>>16)+(i>>16)<<16|65535&i}function cs(e,a,i,n,s,o){return rs((t=rs(rs(a,e),rs(n,o)))<<(r=s)|t>>>32-r,i);var t,r}function ps(e,a,i,n,s,o,t){return cs(a&i|~a&n,e,a,s,o,t)}function ls(e,a,i,n,s,o,t){return cs(a&n|i&~n,e,a,s,o,t)}function us(e,a,i,n,s,o,t){return cs(a^i^n,e,a,s,o,t)}function ms(e,a,i,n,s,o,t){return cs(i^(a|~n),e,a,s,o,t)}function ds(e,a){e[a>>5]|=128<<a%32,e[14+(a+64>>>9<<4)]=a;var i,n,s,o,t,r=1732584193,c=-271733879,p=-1732584194,l=271733878;for(i=0;i<e.length;i+=16)n=r,s=c,o=p,t=l,r=ps(r,c,p,l,e[i],7,-680876936),l=ps(l,r,c,p,e[i+1],12,-389564586),p=ps(p,l,r,c,e[i+2],17,606105819),c=ps(c,p,l,r,e[i+3],22,-1044525330),r=ps(r,c,p,l,e[i+4],7,-176418897),l=ps(l,r,c,p,e[i+5],12,1200080426),p=ps(p,l,r,c,e[i+6],17,-1473231341),c=ps(c,p,l,r,e[i+7],22,-45705983),r=ps(r,c,p,l,e[i+8],7,1770035416),l=ps(l,r,c,p,e[i+9],12,-1958414417),p=ps(p,l,r,c,e[i+10],17,-42063),c=ps(c,p,l,r,e[i+11],22,-1990404162),r=ps(r,c,p,l,e[i+12],7,1804603682),l=ps(l,r,c,p,e[i+13],12,-40341101),p=ps(p,l,r,c,e[i+14],17,-1502002290),r=ls(r,c=ps(c,p,l,r,e[i+15],22,1236535329),p,l,e[i+1],5,-165796510),l=ls(l,r,c,p,e[i+6],9,-1069501632),p=ls(p,l,r,c,e[i+11],14,643717713),c=ls(c,p,l,r,e[i],20,-373897302),r=ls(r,c,p,l,e[i+5],5,-701558691),l=ls(l,r,c,p,e[i+10],9,38016083),p=ls(p,l,r,c,e[i+15],14,-660478335),c=ls(c,p,l,r,e[i+4],20,-405537848),r=ls(r,c,p,l,e[i+9],5,568446438),l=ls(l,r,c,p,e[i+14],9,-1019803690),p=ls(p,l,r,c,e[i+3],14,-187363961),c=ls(c,p,l,r,e[i+8],20,1163531501),r=ls(r,c,p,l,e[i+13],5,-1444681467),l=ls(l,r,c,p,e[i+2],9,-51403784),p=ls(p,l,r,c,e[i+7],14,1735328473),r=us(r,c=ls(c,p,l,r,e[i+12],20,-1926607734),p,l,e[i+5],4,-378558),l=us(l,r,c,p,e[i+8],11,-2022574463),p=us(p,l,r,c,e[i+11],16,1839030562),c=us(c,p,l,r,e[i+14],23,-35309556),r=us(r,c,p,l,e[i+1],4,-1530992060),l=us(l,r,c,p,e[i+4],11,1272893353),p=us(p,l,r,c,e[i+7],16,-155497632),c=us(c,p,l,r,e[i+10],23,-1094730640),r=us(r,c,p,l,e[i+13],4,681279174),l=us(l,r,c,p,e[i],11,-358537222),p=us(p,l,r,c,e[i+3],16,-722521979),c=us(c,p,l,r,e[i+6],23,76029189),r=us(r,c,p,l,e[i+9],4,-640364487),l=us(l,r,c,p,e[i+12],11,-421815835),p=us(p,l,r,c,e[i+15],16,530742520),r=ms(r,c=us(c,p,l,r,e[i+2],23,-995338651),p,l,e[i],6,-198630844),l=ms(l,r,c,p,e[i+7],10,1126891415),p=ms(p,l,r,c,e[i+14],15,-1416354905),c=ms(c,p,l,r,e[i+5],21,-57434055),r=ms(r,c,p,l,e[i+12],6,1700485571),l=ms(l,r,c,p,e[i+3],10,-1894986606),p=ms(p,l,r,c,e[i+10],15,-1051523),c=ms(c,p,l,r,e[i+1],21,-2054922799),r=ms(r,c,p,l,e[i+8],6,1873313359),l=ms(l,r,c,p,e[i+15],10,-30611744),p=ms(p,l,r,c,e[i+6],15,-1560198380),c=ms(c,p,l,r,e[i+13],21,1309151649),r=ms(r,c,p,l,e[i+4],6,-145523070),l=ms(l,r,c,p,e[i+11],10,-1120210379),p=ms(p,l,r,c,e[i+2],15,718787259),c=ms(c,p,l,r,e[i+9],21,-343485551),r=rs(r,n),c=rs(c,s),p=rs(p,o),l=rs(l,t);return[r,c,p,l]}function xs(e){var a,i="";for(a=0;a<32*e.length;a+=8)i+=String.fromCharCode(e[a>>5]>>>a%32&255);return i}function fs(e){var a,i=[];for(i[(e.length>>2)-1]=void 0,a=0;a<i.length;a+=1)i[a]=0;for(a=0;a<8*e.length;a+=8)i[a>>5]|=(255&e.charCodeAt(a/8))<<a%32;return i}function hs(e){var a,i,n="0123456789abcdef",s="";for(i=0;i<e.length;i+=1)a=e.charCodeAt(i),s+=n.charAt(a>>>4&15)+n.charAt(15&a);return s}function vs(e){return unescape(encodeURIComponent(e))}function bs(e){return function(e){return xs(ds(fs(e),8*e.length))}(vs(e))}function gs(e,a){return function(e,a){var i,n,s=fs(e),o=[],t=[];for(o[15]=t[15]=void 0,s.length>16&&(s=ds(s,8*e.length)),i=0;i<16;i+=1)o[i]=909522486^s[i],t[i]=1549556828^s[i];return n=ds(o.concat(fs(a)),512+8*a.length),xs(ds(t.concat(n),640))}(vs(e),vs(a))}var ys=function(e,a,i){return a?i?gs(a,e):hs(gs(a,e)):i?bs(e):hs(bs(e))},ws=x.getDefaultExportFromCjs(ys);const ks=[".gant","dist","config","node_modules","public","locales",".d.ts",".json",".md"];const js="locales",_s=async(e,a,i)=>{const n=r(a),s=r(i),o=await m.getFileList(e,ks);if(o.length<1)return;function r(a){t.existsSync(d.resolve(e,js))||t.mkdirSync(d.resolve(e,js),{recursive:!0});const i=d.resolve(e,js,`${a}.ts`);t.existsSync(i)||t.writeFileSync(i,"export default {}","utf-8");return b.getJavascriptfile(i)}function c(a,i){const n=d.resolve(e,js,`${a}.ts`);u.writeFileToJS(n,`export default ${JSON.stringify(i)}`)}console.log(S.bgYellow("翻译模块:"+e)+"\n");const p=new ts.SingleBar({format:"进度 {bar} {percentage}% total:{value}/{total} 耗时:{duration};",barCompleteChar:"█",barIncompleteChar:"░",stopOnComplete:!0});p.start(o.length,0);let l={},x={};for(let e=0;e<o.length;e++){const n=o[e];p.update(e+1);const s=m.getFileTr(n),t=Object.keys(s).map((e=>({key:s[e],keyword:s[e]})));for(const{key:e,keyword:n}of t){const s=await Es(n,a,i);x[e]=s}l={...l,...m.getFileTr(n)}}l=u.mergeConfig(l,n),x=u.mergeConfig(x,s),c(a,l),c(i,x),p.stop(),console.log(S.green(e+"\n翻译完成")+"\n")},Ts={appid:"20190222000269988",key:"LGFk8C3pgW8GBvyG5MrS"};function Es(e,a,i){const n=e.split(/\${\d+}/g).filter((e=>!!e.replace(/s+/g,""))),s=(new Date).getTime(),o=n.join("\n"),t=Ts.appid+o+s+Ts.key,r=ws(t);return zn.post("http://api.fanyi.baidu.com/api/trans/vip/translate",{q:o,from:a,to:i,appid:Ts.appid,salt:s,sign:r,domain:"machinery"},{headers:{"content-type":"application/x-www-form-urlencoded;charset=utf-8"}}).then((e=>e.data)).then((a=>{if(console.log("data",a),a.error_msg)throw new Error(a.error_code+":"+a.error_msg);return function(){const i=e.match(/\${\d+}/g),s=[];for(let e=0;e<a?.trans_result.length;e++)""!==n[e]&&s.push(a?.trans_result?.[e].dst),i&&e<i?.length&&s.push(i[e]);return s}().join("")}))}exports.color=S,exports.i18n=(e="zh",a="en")=>{if(!Object.keys(m.languages).includes(e)||!Object.keys(m.languages).includes(a))return void console.warn("Error: i18n args error",e,a);const i=process.cwd();let n=new l.Config({cwd:i}).getUserConfig(),s=[i];s=[...s,...n.locales||[]];for(const i of s)_s(i,e,a)};
|
|
9
|
+
!function(e){var a,i,n,s=ke,o=d.extname,t=/^\s*([^;\s]*)(?:;|\s|$)/,r=/^text\//i;function c(e){if(!e||"string"!=typeof e)return!1;var a=t.exec(e),i=a&&s[a[1].toLowerCase()];return i&&i.charset?i.charset:!(!a||!r.test(a[1]))&&"UTF-8"}e.charset=c,e.charsets={lookup:c},e.contentType=function(a){if(!a||"string"!=typeof a)return!1;var i=-1===a.indexOf("/")?e.lookup(a):a;if(!i)return!1;if(-1===i.indexOf("charset")){var n=e.charset(i);n&&(i+="; charset="+n.toLowerCase())}return i},e.extension=function(a){if(!a||"string"!=typeof a)return!1;var i=t.exec(a),n=i&&e.extensions[i[1].toLowerCase()];if(!n||!n.length)return!1;return n[0]},e.extensions=Object.create(null),e.lookup=function(a){if(!a||"string"!=typeof a)return!1;var i=o("x."+a).toLowerCase().substr(1);if(!i)return!1;return e.types[i]||!1},e.types=Object.create(null),a=e.extensions,i=e.types,n=["nginx","apache",void 0,"iana"],Object.keys(s).forEach((function(e){var o=s[e],t=o.extensions;if(t&&t.length){a[e]=t;for(var r=0;r<t.length;r++){var c=t[r];if(i[c]){var p=n.indexOf(s[i[c]].source),l=n.indexOf(o.source);if("application/octet-stream"!==i[c]&&(p>l||p===l&&"application/"===i[c].substr(0,12)))continue}i[c]=e}}}))}(we);var je=function(e){var a="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;a?a(e):setTimeout(e,0)},_e=function(e){var a=!1;return je((function(){a=!0})),function(i,n){a?e(i,n):je((function(){e(i,n)}))}};var Te=function(e){Object.keys(e.jobs).forEach(Ee.bind(e)),e.jobs={}};function Ee(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}var Re=_e,Se=Te,Oe=function(e,a,i,n){var s=i.keyedList?i.keyedList[i.index]:i.index;i.jobs[s]=function(e,a,i,n){var s;s=2==e.length?e(i,Re(n)):e(i,a,Re(n));return s}(a,s,e[s],(function(e,a){s in i.jobs&&(delete i.jobs[s],e?Se(i):i.results[s]=a,n(e,i.results))}))};var Ce=function(e,a){var i=!Array.isArray(e),n={index:0,keyedList:i||a?Object.keys(e):null,jobs:{},results:i?{}:[],size:i?Object.keys(e).length:e.length};a&&n.keyedList.sort(i?a:function(i,n){return a(e[i],e[n])});return n};var ze=Te,Be=_e,Le=function(e){if(!Object.keys(this.jobs).length)return;this.index=this.size,ze(this),Be(e)(null,this.results)};var Ae=Oe,qe=Ce,Ue=Le,Ne=function(e,a,i){var n=qe(e);for(;n.index<(n.keyedList||e).length;)Ae(e,a,n,(function(e,a){e?i(e,a):0!==Object.keys(n.jobs).length||i(null,n.results)})),n.index++;return Ue.bind(n,i)};var Fe={exports:{}},De=Oe,Pe=Ce,Ie=Le;function Me(e,a){return e<a?-1:e>a?1:0}Fe.exports=function(e,a,i,n){var s=Pe(e,i);return De(e,a,s,(function i(o,t){o?n(o,t):(s.index++,s.index<(s.keyedList||e).length?De(e,a,s,i):n(null,s.results))})),Ie.bind(s,n)},Fe.exports.ascending=Me,Fe.exports.descending=function(e,a){return-1*Me(e,a)};var He=Fe.exports,We=He;var Ye={parallel:Ne,serial:function(e,a,i){return We(e,a,null,i)},serialOrdered:He},Ge=ge,$e=o,Ve=d,Je=e,Ke=a,Xe=i.parse,Ze=t,Qe=f.Stream,ea=we,aa=Ye,ia=function(e,a){return Object.keys(a).forEach((function(i){e[i]=e[i]||a[i]})),e},na=sa;function sa(e){if(!(this instanceof sa))return new sa(e);for(var a in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Ge.call(this),e=e||{})this[a]=e[a]}$e.inherits(sa,Ge),sa.LINE_BREAK="\r\n",sa.DEFAULT_CONTENT_TYPE="application/octet-stream",sa.prototype.append=function(e,a,i){"string"==typeof(i=i||{})&&(i={filename:i});var n=Ge.prototype.append.bind(this);if("number"==typeof a&&(a=""+a),$e.isArray(a))this._error(new Error("Arrays are not supported."));else{var s=this._multiPartHeader(e,a,i),o=this._multiPartFooter();n(s),n(a),n(o),this._trackLength(s,a,i)}},sa.prototype._trackLength=function(e,a,i){var n=0;null!=i.knownLength?n+=+i.knownLength:Buffer.isBuffer(a)?n=a.length:"string"==typeof a&&(n=Buffer.byteLength(a)),this._valueLength+=n,this._overheadLength+=Buffer.byteLength(e)+sa.LINE_BREAK.length,a&&(a.path||a.readable&&a.hasOwnProperty("httpVersion")||a instanceof Qe)&&(i.knownLength||this._valuesToMeasure.push(a))},sa.prototype._lengthRetriever=function(e,a){e.hasOwnProperty("fd")?null!=e.end&&e.end!=1/0&&null!=e.start?a(null,e.end+1-(e.start?e.start:0)):Ze.stat(e.path,(function(i,n){var s;i?a(i):(s=n.size-(e.start?e.start:0),a(null,s))})):e.hasOwnProperty("httpVersion")?a(null,+e.headers["content-length"]):e.hasOwnProperty("httpModule")?(e.on("response",(function(i){e.pause(),a(null,+i.headers["content-length"])})),e.resume()):a("Unknown stream")},sa.prototype._multiPartHeader=function(e,a,i){if("string"==typeof i.header)return i.header;var n,s=this._getContentDisposition(a,i),o=this._getContentType(a,i),t="",r={"Content-Disposition":["form-data",'name="'+e+'"'].concat(s||[]),"Content-Type":[].concat(o||[])};for(var c in"object"==typeof i.header&&ia(r,i.header),r)r.hasOwnProperty(c)&&null!=(n=r[c])&&(Array.isArray(n)||(n=[n]),n.length&&(t+=c+": "+n.join("; ")+sa.LINE_BREAK));return"--"+this.getBoundary()+sa.LINE_BREAK+t+sa.LINE_BREAK},sa.prototype._getContentDisposition=function(e,a){var i,n;return"string"==typeof a.filepath?i=Ve.normalize(a.filepath).replace(/\\/g,"/"):a.filename||e.name||e.path?i=Ve.basename(a.filename||e.name||e.path):e.readable&&e.hasOwnProperty("httpVersion")&&(i=Ve.basename(e.client._httpMessage.path||"")),i&&(n='filename="'+i+'"'),n},sa.prototype._getContentType=function(e,a){var i=a.contentType;return!i&&e.name&&(i=ea.lookup(e.name)),!i&&e.path&&(i=ea.lookup(e.path)),!i&&e.readable&&e.hasOwnProperty("httpVersion")&&(i=e.headers["content-type"]),i||!a.filepath&&!a.filename||(i=ea.lookup(a.filepath||a.filename)),i||"object"!=typeof e||(i=sa.DEFAULT_CONTENT_TYPE),i},sa.prototype._multiPartFooter=function(){return function(e){var a=sa.LINE_BREAK;0===this._streams.length&&(a+=this._lastBoundary()),e(a)}.bind(this)},sa.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+sa.LINE_BREAK},sa.prototype.getHeaders=function(e){var a,i={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(a in e)e.hasOwnProperty(a)&&(i[a.toLowerCase()]=e[a]);return i},sa.prototype.setBoundary=function(e){this._boundary=e},sa.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},sa.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),a=this.getBoundary(),i=0,n=this._streams.length;i<n;i++)"function"!=typeof this._streams[i]&&(e=Buffer.isBuffer(this._streams[i])?Buffer.concat([e,this._streams[i]]):Buffer.concat([e,Buffer.from(this._streams[i])]),"string"==typeof this._streams[i]&&this._streams[i].substring(2,a.length+2)===a||(e=Buffer.concat([e,Buffer.from(sa.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},sa.prototype._generateBoundary=function(){for(var e="--------------------------",a=0;a<24;a++)e+=Math.floor(10*Math.random()).toString(16);this._boundary=e},sa.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e},sa.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},sa.prototype.getLength=function(e){var a=this._overheadLength+this._valueLength;this._streams.length&&(a+=this._lastBoundary().length),this._valuesToMeasure.length?aa.parallel(this._valuesToMeasure,this._lengthRetriever,(function(i,n){i?e(i):(n.forEach((function(e){a+=e})),e(null,a))})):process.nextTick(e.bind(this,null,a))},sa.prototype.submit=function(e,a){var i,n,s={method:"post"};return"string"==typeof e?(e=Xe(e),n=ia({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},s)):(n=ia(e,s)).port||(n.port="https:"==n.protocol?443:80),n.headers=this.getHeaders(e.headers),i="https:"==n.protocol?Ke.request(n):Je.request(n),this.getLength(function(e,n){if(e&&"Unknown stream"!==e)this._error(e);else if(n&&i.setHeader("Content-Length",n),this.pipe(i),a){var s,o=function(e,n){return i.removeListener("error",o),i.removeListener("response",s),a.call(this,e,n)};s=o.bind(this,null),i.on("error",o),i.on("response",s)}}.bind(this)),i},sa.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},sa.prototype.toString=function(){return"[object FormData]"};var oa=x.getDefaultExportFromCjs(na);function ta(e){return pe.isPlainObject(e)||pe.isArray(e)}function ra(e){return pe.endsWith(e,"[]")?e.slice(0,-2):e}function ca(e,a,i){return e?e.concat(a).map((function(e,a){return e=ra(e),!i&&a?"["+e+"]":e})).join(i?".":""):a}const pa=pe.toFlatObject(pe,{},null,(function(e){return/^is[A-Z]/.test(e)}));function la(e,a,i){if(!pe.isObject(e))throw new TypeError("target must be an object");a=a||new(oa||FormData);const n=(i=pe.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,a){return!pe.isUndefined(a[e])}))).metaTokens,s=i.visitor||p,o=i.dots,t=i.indexes,r=(i.Blob||"undefined"!=typeof Blob&&Blob)&&pe.isSpecCompliantForm(a);if(!pe.isFunction(s))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(pe.isDate(e))return e.toISOString();if(!r&&pe.isBlob(e))throw new le("Blob is not supported. Use a Buffer instead.");return pe.isArrayBuffer(e)||pe.isTypedArray(e)?r&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function p(e,i,s){let r=e;if(e&&!s&&"object"==typeof e)if(pe.endsWith(i,"{}"))i=n?i:i.slice(0,-2),e=JSON.stringify(e);else if(pe.isArray(e)&&function(e){return pe.isArray(e)&&!e.some(ta)}(e)||(pe.isFileList(e)||pe.endsWith(i,"[]"))&&(r=pe.toArray(e)))return i=ra(i),r.forEach((function(e,n){!pe.isUndefined(e)&&null!==e&&a.append(!0===t?ca([i],n,o):null===t?i:i+"[]",c(e))})),!1;return!!ta(e)||(a.append(ca(s,i,o),c(e)),!1)}const l=[],u=Object.assign(pa,{defaultVisitor:p,convertValue:c,isVisitable:ta});if(!pe.isObject(e))throw new TypeError("data must be an object");return function e(i,n){if(!pe.isUndefined(i)){if(-1!==l.indexOf(i))throw Error("Circular reference detected in "+n.join("."));l.push(i),pe.forEach(i,(function(i,o){!0===(!(pe.isUndefined(i)||null===i)&&s.call(a,i,pe.isString(o)?o.trim():o,n,u))&&e(i,n?n.concat(o):[o])})),l.pop()}}(e),a}function ua(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return a[e]}))}function ma(e,a){this._pairs=[],e&&la(e,this,a)}const da=ma.prototype;function xa(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function fa(e,a,i){if(!a)return e;const n=i&&i.encode||xa,s=i&&i.serialize;let o;if(o=s?s(a,i):pe.isURLSearchParams(a)?a.toString():new ma(a,i).toString(n),o){const a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}da.append=function(e,a){this._pairs.push([e,a])},da.toString=function(e){const a=e?function(a){return e.call(this,a,ua)}:ua;return this._pairs.map((function(e){return a(e[0])+"="+a(e[1])}),"").join("&")};class ha{constructor(){this.handlers=[]}use(e,a,i){return this.handlers.push({fulfilled:e,rejected:a,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){pe.forEach(this.handlers,(function(a){null!==a&&e(a)}))}}var va={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ba={isNode:!0,classes:{URLSearchParams:i.URLSearchParams,FormData:oa,Blob:"undefined"!=typeof Blob&&Blob||null},protocols:["http","https","file","data"]};const ga="undefined"!=typeof window&&"undefined"!=typeof document,ya=(wa="undefined"!=typeof navigator&&navigator.product,ga&&["ReactNative","NativeScript","NS"].indexOf(wa)<0);var wa;const ka="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var ja={...Object.freeze({__proto__:null,hasBrowserEnv:ga,hasStandardBrowserEnv:ya,hasStandardBrowserWebWorkerEnv:ka}),...ba};function _a(e){function a(e,i,n,s){let o=e[s++];if("__proto__"===o)return!0;const t=Number.isFinite(+o),r=s>=e.length;if(o=!o&&pe.isArray(n)?n.length:o,r)return pe.hasOwnProp(n,o)?n[o]=[n[o],i]:n[o]=i,!t;n[o]&&pe.isObject(n[o])||(n[o]=[]);return a(e,i,n[o],s)&&pe.isArray(n[o])&&(n[o]=function(e){const a={},i=Object.keys(e);let n;const s=i.length;let o;for(n=0;n<s;n++)o=i[n],a[o]=e[o];return a}(n[o])),!t}if(pe.isFormData(e)&&pe.isFunction(e.entries)){const i={};return pe.forEachEntry(e,((e,n)=>{a(function(e){return pe.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,i,0)})),i}return null}const Ta={transitional:va,adapter:["xhr","http"],transformRequest:[function(e,a){const i=a.getContentType()||"",n=i.indexOf("application/json")>-1,s=pe.isObject(e);s&&pe.isHTMLForm(e)&&(e=new FormData(e));if(pe.isFormData(e))return n?JSON.stringify(_a(e)):e;if(pe.isArrayBuffer(e)||pe.isBuffer(e)||pe.isStream(e)||pe.isFile(e)||pe.isBlob(e))return e;if(pe.isArrayBufferView(e))return e.buffer;if(pe.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(s){if(i.indexOf("application/x-www-form-urlencoded")>-1)return function(e,a){return la(e,new ja.classes.URLSearchParams,Object.assign({visitor:function(e,a,i,n){return ja.isNode&&pe.isBuffer(e)?(this.append(a,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},a))}(e,this.formSerializer).toString();if((o=pe.isFileList(e))||i.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return la(o?{"files[]":e}:e,a&&new a,this.formSerializer)}}return s||n?(a.setContentType("application/json",!1),function(e,a,i){if(pe.isString(e))try{return(a||JSON.parse)(e),pe.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(i||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const a=this.transitional||Ta.transitional,i=a&&a.forcedJSONParsing,n="json"===this.responseType;if(e&&pe.isString(e)&&(i&&!this.responseType||n)){const i=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw le.from(e,le.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ja.classes.FormData,Blob:ja.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};pe.forEach(["delete","get","head","post","put","patch"],(e=>{Ta.headers[e]={}}));var Ea=Ta;const Ra=pe.toObjectSet(["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"]);const Sa=Symbol("internals");function Oa(e){return e&&String(e).trim().toLowerCase()}function Ca(e){return!1===e||null==e?e:pe.isArray(e)?e.map(Ca):String(e)}function za(e,a,i,n,s){return pe.isFunction(n)?n.call(this,a,i):(s&&(a=i),pe.isString(a)?pe.isString(n)?-1!==a.indexOf(n):pe.isRegExp(n)?n.test(a):void 0:void 0)}class Ba{constructor(e){e&&this.set(e)}set(e,a,i){const n=this;function s(e,a,i){const s=Oa(a);if(!s)throw new Error("header name must be a non-empty string");const o=pe.findKey(n,s);(!o||void 0===n[o]||!0===i||void 0===i&&!1!==n[o])&&(n[o||a]=Ca(e))}const o=(e,a)=>pe.forEach(e,((e,i)=>s(e,i,a)));return pe.isPlainObject(e)||e instanceof this.constructor?o(e,a):pe.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?o((e=>{const a={};let i,n,s;return e&&e.split("\n").forEach((function(e){s=e.indexOf(":"),i=e.substring(0,s).trim().toLowerCase(),n=e.substring(s+1).trim(),!i||a[i]&&Ra[i]||("set-cookie"===i?a[i]?a[i].push(n):a[i]=[n]:a[i]=a[i]?a[i]+", "+n:n)})),a})(e),a):null!=e&&s(a,e,i),this}get(e,a){if(e=Oa(e)){const i=pe.findKey(this,e);if(i){const e=this[i];if(!a)return e;if(!0===a)return function(e){const a=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=i.exec(e);)a[n[1]]=n[2];return a}(e);if(pe.isFunction(a))return a.call(this,e,i);if(pe.isRegExp(a))return a.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,a){if(e=Oa(e)){const i=pe.findKey(this,e);return!(!i||void 0===this[i]||a&&!za(0,this[i],i,a))}return!1}delete(e,a){const i=this;let n=!1;function s(e){if(e=Oa(e)){const s=pe.findKey(i,e);!s||a&&!za(0,i[s],s,a)||(delete i[s],n=!0)}}return pe.isArray(e)?e.forEach(s):s(e),n}clear(e){const a=Object.keys(this);let i=a.length,n=!1;for(;i--;){const s=a[i];e&&!za(0,this[s],s,e,!0)||(delete this[s],n=!0)}return n}normalize(e){const a=this,i={};return pe.forEach(this,((n,s)=>{const o=pe.findKey(i,s);if(o)return a[o]=Ca(n),void delete a[s];const t=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,a,i)=>a.toUpperCase()+i))}(s):String(s).trim();t!==s&&delete a[s],a[t]=Ca(n),i[t]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const a=Object.create(null);return pe.forEach(this,((i,n)=>{null!=i&&!1!==i&&(a[n]=e&&pe.isArray(i)?i.join(", "):i)})),a}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,a])=>e+": "+a)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...a){const i=new this(e);return a.forEach((e=>i.set(e))),i}static accessor(e){const a=(this[Sa]=this[Sa]={accessors:{}}).accessors,i=this.prototype;function n(e){const n=Oa(e);a[n]||(!function(e,a){const i=pe.toCamelCase(" "+a);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+i,{value:function(e,i,s){return this[n].call(this,a,e,i,s)},configurable:!0})}))}(i,e),a[n]=!0)}return pe.isArray(e)?e.forEach(n):n(e),this}}Ba.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),pe.reduceDescriptors(Ba.prototype,(({value:e},a)=>{let i=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(e){this[i]=e}}})),pe.freezeMethods(Ba);var La=Ba;function Aa(e,a){const i=this||Ea,n=a||i,s=La.from(n.headers);let o=n.data;return pe.forEach(e,(function(e){o=e.call(i,o,s.normalize(),a?a.status:void 0)})),s.normalize(),o}function qa(e){return!(!e||!e.__CANCEL__)}function Ua(e,a,i){le.call(this,null==e?"canceled":e,le.ERR_CANCELED,a,i),this.name="CanceledError"}function Na(e,a,i){const n=i.config.validateStatus;i.status&&n&&!n(i.status)?a(new le("Request failed with status code "+i.status,[le.ERR_BAD_REQUEST,le.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i)):e(i)}function Fa(e,a){return e&&!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(a)?function(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}(e,a):a}pe.inherits(Ua,le,{__CANCEL__:!0});var Da=i.parse,Pa={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},Ia=String.prototype.endsWith||function(e){return e.length<=this.length&&-1!==this.indexOf(e,this.length-e.length)};function Ma(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}var Ha,Wa,Ya,Ga,$a=function(e){var a="string"==typeof e?Da(e):e||{},i=a.protocol,n=a.host,s=a.port;if("string"!=typeof n||!n||"string"!=typeof i)return"";if(i=i.split(":",1)[0],!function(e,a){var i=(Ma("npm_config_no_proxy")||Ma("no_proxy")).toLowerCase();if(!i)return!0;if("*"===i)return!1;return i.split(/[,\s]/).every((function(i){if(!i)return!0;var n=i.match(/^(.+):(\d+)$/),s=n?n[1]:i,o=n?parseInt(n[2]):0;return!(!o||o===a)||(/^[.*]/.test(s)?("*"===s.charAt(0)&&(s=s.slice(1)),!Ia.call(e,s)):e!==s)}))}(n=n.replace(/:\d*$/,""),s=parseInt(s)||Pa[i]||0))return"";var o=Ma("npm_config_"+i+"_proxy")||Ma(i+"_proxy")||Ma("npm_config_proxy")||Ma("all_proxy");return o&&-1===o.indexOf("://")&&(o=i+"://"+o),o},Va={exports:{}},Ja={exports:{}},Ka={exports:{}},Xa={exports:{}};function Za(){if(Wa)return Ha;Wa=1;var e=1e3,a=60*e,i=60*a,n=24*i,s=365.25*n;function o(e,a,i){if(!(e<a))return e<1.5*a?Math.floor(e/a)+" "+i:Math.ceil(e/a)+" "+i+"s"}return Ha=function(t,r){r=r||{};var c=typeof t;if("string"===c&&t.length>0)return function(o){if((o=String(o)).length>100)return;var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(o);if(!t)return;var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return r*s;case"days":case"day":case"d":return r*n;case"hours":case"hour":case"hrs":case"hr":case"h":return r*i;case"minutes":case"minute":case"mins":case"min":case"m":return r*a;case"seconds":case"second":case"secs":case"sec":case"s":return r*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}(t);if("number"===c&&!1===isNaN(t))return r.long?function(s){return o(s,n,"day")||o(s,i,"hour")||o(s,a,"minute")||o(s,e,"second")||s+" ms"}(t):function(s){if(s>=n)return Math.round(s/n)+"d";if(s>=i)return Math.round(s/i)+"h";if(s>=a)return Math.round(s/a)+"m";if(s>=e)return Math.round(s/e)+"s";return s+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))},Ha}function Qa(){return Ya||(Ya=1,function(e,a){var i;function n(e){function n(){if(n.enabled){var e=n,s=+new Date,o=s-(i||s);e.diff=o,e.prev=i,e.curr=s,i=s;for(var t=new Array(arguments.length),r=0;r<t.length;r++)t[r]=arguments[r];t[0]=a.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");var c=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(function(i,n){if("%%"===i)return i;c++;var s=a.formatters[n];if("function"==typeof s){var o=t[c];i=s.call(e,o),t.splice(c,1),c--}return i})),a.formatArgs.call(e,t),(n.log||a.log||console.log.bind(console)).apply(e,t)}}return n.namespace=e,n.enabled=a.enabled(e),n.useColors=a.useColors(),n.color=function(e){var i,n=0;for(i in e)n=(n<<5)-n+e.charCodeAt(i),n|=0;return a.colors[Math.abs(n)%a.colors.length]}(e),"function"==typeof a.init&&a.init(n),n}(a=e.exports=n.debug=n.default=n).coerce=function(e){return e instanceof Error?e.stack||e.message:e},a.disable=function(){a.enable("")},a.enable=function(e){a.save(e),a.names=[],a.skips=[];for(var i=("string"==typeof e?e:"").split(/[\s,]+/),n=i.length,s=0;s<n;s++)i[s]&&("-"===(e=i[s].replace(/\*/g,".*?"))[0]?a.skips.push(new RegExp("^"+e.substr(1)+"$")):a.names.push(new RegExp("^"+e+"$")))},a.enabled=function(e){var i,n;for(i=0,n=a.skips.length;i<n;i++)if(a.skips[i].test(e))return!1;for(i=0,n=a.names.length;i<n;i++)if(a.names[i].test(e))return!0;return!1},a.humanize=Za(),a.names=[],a.skips=[],a.formatters={}}(Xa,Xa.exports)),Xa.exports}var ei,ai,ii,ni={exports:{}};function si(){return ai||(ai=1,"undefined"!=typeof process&&"renderer"===process.type?Ja.exports=(Ga||(Ga=1,function(e,a){function i(){var e;try{e=a.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(a=e.exports=Qa()).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},a.formatArgs=function(e){var i=this.useColors;if(e[0]=(i?"%c":"")+this.namespace+(i?" %c":" ")+e[0]+(i?"%c ":" ")+"+"+a.humanize(this.diff),i){var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var s=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(s++,"%c"===e&&(o=s))})),e.splice(o,0,n)}},a.save=function(e){try{null==e?a.storage.removeItem("debug"):a.storage.debug=e}catch(e){}},a.load=i,a.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},a.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),a.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],a.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},a.enable(i())}(Ka,Ka.exports)),Ka.exports):Ja.exports=(ei||(ei=1,function(e,a){var i=s,r=o;(a=e.exports=Qa()).init=function(e){e.inspectOpts={};for(var i=Object.keys(a.inspectOpts),n=0;n<i.length;n++)e.inspectOpts[i[n]]=a.inspectOpts[i[n]]},a.log=function(){return p.write(r.format.apply(r,arguments)+"\n")},a.formatArgs=function(e){var i=this.namespace;if(this.useColors){var n=this.color,s=" [3"+n+";1m"+i+" [0m";e[0]=s+e[0].split("\n").join("\n"+s),e.push("[3"+n+"m+"+a.humanize(this.diff)+"[0m")}else e[0]=(new Date).toUTCString()+" "+i+" "+e[0]},a.save=function(e){null==e?delete process.env.DEBUG:process.env.DEBUG=e},a.load=l,a.useColors=function(){return"colors"in a.inspectOpts?Boolean(a.inspectOpts.colors):i.isatty(c)},a.colors=[6,2,3,4,5,1],a.inspectOpts=Object.keys(process.env).filter((function(e){return/^debug_/i.test(e)})).reduce((function(e,a){var i=a.substring(6).toLowerCase().replace(/_([a-z])/g,(function(e,a){return a.toUpperCase()})),n=process.env[a];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[i]=n,e}),{});var c=parseInt(process.env.DEBUG_FD,10)||2;1!==c&&2!==c&&r.deprecate((function(){}),"except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)")();var p=1===c?process.stdout:2===c?process.stderr:function(e){var a;switch(process.binding("tty_wrap").guessHandleType(e)){case"TTY":(a=new i.WriteStream(e))._type="tty",a._handle&&a._handle.unref&&a._handle.unref();break;case"FILE":(a=new t.SyncWriteStream(e,{autoClose:!1}))._type="fs";break;case"PIPE":case"TCP":(a=new n.Socket({fd:e,readable:!1,writable:!0})).readable=!1,a.read=null,a._type="pipe",a._handle&&a._handle.unref&&a._handle.unref();break;default:throw new Error("Implement me. Unknown stream file type!")}return a.fd=e,a._isStdio=!0,a}(c);function l(){return process.env.DEBUG}a.formatters.o=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts).split("\n").map((function(e){return e.trim()})).join(" ")},a.formatters.O=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts)},a.enable(l())}(ni,ni.exports)),ni.exports)),Ja.exports}var oi=i,ti=oi.URL,ri=e,ci=a,pi=f.Writable,li=h,ui=function(){if(!ii){try{ii=si()("follow-redirects")}catch(e){}"function"!=typeof ii&&(ii=function(){})}ii.apply(null,arguments)},mi=!1;try{li(new ti)}catch(e){mi="ERR_INVALID_URL"===e.code}var di=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],xi=["abort","aborted","connect","error","socket","timeout"],fi=Object.create(null);xi.forEach((function(e){fi[e]=function(a,i,n){this._redirectable.emit(e,a,i,n)}}));var hi=Oi("ERR_INVALID_URL","Invalid URL",TypeError),vi=Oi("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),bi=Oi("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",vi),gi=Oi("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),yi=Oi("ERR_STREAM_WRITE_AFTER_END","write after end"),wi=pi.prototype.destroy||_i;function ki(e,a){pi.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],a&&this.on("response",a);var i=this;this._onNativeResponse=function(e){try{i._processResponse(e)}catch(e){i.emit("error",e instanceof vi?e:new vi({cause:e}))}},this._performRequest()}function ji(e){var a={maxRedirects:21,maxBodyLength:10485760},i={};return Object.keys(e).forEach((function(n){var s=n+":",o=i[s]=e[n],t=a[n]=Object.create(o);Object.defineProperties(t,{request:{value:function(e,n,o){var t;return t=e,ti&&t instanceof ti?e=Ri(e):zi(e)?e=Ri(Ti(e)):(o=n,n=Ei(e),e={protocol:s}),Bi(n)&&(o=n,n=null),(n=Object.assign({maxRedirects:a.maxRedirects,maxBodyLength:a.maxBodyLength},e,n)).nativeProtocols=i,zi(n.host)||zi(n.hostname)||(n.hostname="::1"),li.equal(n.protocol,s,"protocol mismatch"),ui("options",n),new ki(n,o)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,a,i){var n=t.request(e,a,i);return n.end(),n},configurable:!0,enumerable:!0,writable:!0}})})),a}function _i(){}function Ti(e){var a;if(mi)a=new ti(e);else if(!zi((a=Ei(oi.parse(e))).protocol))throw new hi({input:e});return a}function Ei(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new hi({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new hi({input:e.href||e});return e}function Ri(e,a){var i=a||{};for(var n of di)i[n]=e[n];return i.hostname.startsWith("[")&&(i.hostname=i.hostname.slice(1,-1)),""!==i.port&&(i.port=Number(i.port)),i.path=i.search?i.pathname+i.search:i.pathname,i}function Si(e,a){var i;for(var n in a)e.test(n)&&(i=a[n],delete a[n]);return null==i?void 0:String(i).trim()}function Oi(e,a,i){function n(i){Error.captureStackTrace(this,this.constructor),Object.assign(this,i||{}),this.code=e,this.message=this.cause?a+": "+this.cause.message:a}return n.prototype=new(i||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),n}function Ci(e,a){for(var i of xi)e.removeListener(i,fi[i]);e.on("error",_i),e.destroy(a)}function zi(e){return"string"==typeof e||e instanceof String}function Bi(e){return"function"==typeof e}ki.prototype=Object.create(pi.prototype),ki.prototype.abort=function(){Ci(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},ki.prototype.destroy=function(e){return Ci(this._currentRequest,e),wi.call(this,e),this},ki.prototype.write=function(e,a,i){if(this._ending)throw new yi;if(!zi(e)&&("object"!=typeof(n=e)||!("length"in n)))throw new TypeError("data should be a string, Buffer or Uint8Array");var n;Bi(a)&&(i=a,a=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:a}),this._currentRequest.write(e,a,i)):(this.emit("error",new gi),this.abort()):i&&i()},ki.prototype.end=function(e,a,i){if(Bi(e)?(i=e,e=a=null):Bi(a)&&(i=a,a=null),e){var n=this,s=this._currentRequest;this.write(e,a,(function(){n._ended=!0,s.end(null,null,i)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,i)},ki.prototype.setHeader=function(e,a){this._options.headers[e]=a,this._currentRequest.setHeader(e,a)},ki.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},ki.prototype.setTimeout=function(e,a){var i=this;function n(a){a.setTimeout(e),a.removeListener("timeout",a.destroy),a.addListener("timeout",a.destroy)}function s(a){i._timeout&&clearTimeout(i._timeout),i._timeout=setTimeout((function(){i.emit("timeout"),o()}),e),n(a)}function o(){i._timeout&&(clearTimeout(i._timeout),i._timeout=null),i.removeListener("abort",o),i.removeListener("error",o),i.removeListener("response",o),i.removeListener("close",o),a&&i.removeListener("timeout",a),i.socket||i._currentRequest.removeListener("socket",s)}return a&&this.on("timeout",a),this.socket?s(this.socket):this._currentRequest.once("socket",s),this.on("socket",n),this.on("abort",o),this.on("error",o),this.on("response",o),this.on("close",o),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){ki.prototype[e]=function(a,i){return this._currentRequest[e](a,i)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(ki.prototype,e,{get:function(){return this._currentRequest[e]}})})),ki.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var a=e.path.indexOf("?");a<0?e.pathname=e.path:(e.pathname=e.path.substring(0,a),e.search=e.path.substring(a))}},ki.prototype._performRequest=function(){var e=this._options.protocol,a=this._options.nativeProtocols[e];if(!a)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var i=e.slice(0,-1);this._options.agent=this._options.agents[i]}var n=this._currentRequest=a.request(this._options,this._onNativeResponse);for(var s of(n._redirectable=this,xi))n.on(s,fi[s]);if(this._currentUrl=/^\//.test(this._options.path)?oi.format(this._options):this._options.path,this._isRedirect){var o=0,t=this,r=this._requestBodyBuffers;!function e(a){if(n===t._currentRequest)if(a)t.emit("error",a);else if(o<r.length){var i=r[o++];n.finished||n.write(i.data,i.encoding,e)}else t._ended&&n.end()}()}},ki.prototype._processResponse=function(e){var a=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:a});var i,n=e.headers.location;if(!n||!1===this._options.followRedirects||a<300||a>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(Ci(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new bi;var s=this._options.beforeRedirect;s&&(i=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var o=this._options.method;((301===a||302===a)&&"POST"===this._options.method||303===a&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],Si(/^content-/i,this._options.headers));var t,r,c=Si(/^host$/i,this._options.headers),p=Ti(this._currentUrl),l=c||p.host,u=/^\w+:/.test(n)?this._currentUrl:oi.format(Object.assign(p,{host:l})),m=(t=n,r=u,mi?new ti(t,r):Ti(oi.resolve(r,t)));if(ui("redirecting to",m.href),this._isRedirect=!0,Ri(m,this._options),(m.protocol!==p.protocol&&"https:"!==m.protocol||m.host!==l&&!function(e,a){li(zi(e)&&zi(a));var i=e.length-a.length-1;return i>0&&"."===e[i]&&e.endsWith(a)}(m.host,l))&&Si(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),Bi(s)){var d={headers:e.headers,statusCode:a},x={url:u,method:o,headers:i};s(this._options,d,x),this._sanitizeOptions(this._options)}this._performRequest()},Va.exports=ji({http:ri,https:ci}),Va.exports.wrap=ji;var Li=Va.exports,Ai=x.getDefaultExportFromCjs(Li);const qi="1.6.8";function Ui(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}const Ni=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function Fi(e,a){e=e||10;const i=new Array(e),n=new Array(e);let s,o=0,t=0;return a=void 0!==a?a:1e3,function(r){const c=Date.now(),p=n[t];s||(s=c),i[o]=r,n[o]=c;let l=t,u=0;for(;l!==o;)u+=i[l++],l%=e;if(o=(o+1)%e,o===t&&(t=(t+1)%e),c-s<a)return;const m=p&&c-p;return m?Math.round(1e3*u/m):void 0}}const Di=Symbol("internals");class Pi extends f.Transform{constructor(e){super({readableHighWaterMark:(e=pe.toFlatObject(e,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,((e,a)=>!pe.isUndefined(a[e])))).chunkSize});const a=this,i=this[Di]={length:e.length,timeWindow:e.timeWindow,ticksRate:e.ticksRate,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null},n=Fi(i.ticksRate*e.samplesCount,i.timeWindow);this.on("newListener",(e=>{"progress"===e&&(i.isCaptured||(i.isCaptured=!0))}));let s=0;i.updateProgress=function(e,a){let i=0;const n=1e3/a;let s=null;return function(a,o){const t=Date.now();if(a||t-i>n)return s&&(clearTimeout(s),s=null),i=t,e.apply(null,o);s||(s=setTimeout((()=>(s=null,i=Date.now(),e.apply(null,o))),n-(t-i)))}}((function(){const e=i.length,o=i.bytesSeen,t=o-s;if(!t||a.destroyed)return;const r=n(t);s=o,process.nextTick((()=>{a.emit("progress",{loaded:o,total:e,progress:e?o/e:void 0,bytes:t,rate:r||void 0,estimated:r&&e&&o<=e?(e-o)/r:void 0})}))}),i.ticksRate);const o=()=>{i.updateProgress(!0)};this.once("end",o),this.once("error",o)}_read(e){const a=this[Di];return a.onReadCallback&&a.onReadCallback(),super._read(e)}_transform(e,a,i){const n=this,s=this[Di],o=s.maxRate,t=this.readableHighWaterMark,r=s.timeWindow,c=o/(1e3/r),p=!1!==s.minChunkSize?Math.max(s.minChunkSize,.01*c):0;const l=(e,a)=>{const i=Buffer.byteLength(e);let l,u=null,m=t,d=0;if(o){const e=Date.now();(!s.ts||(d=e-s.ts)>=r)&&(s.ts=e,l=c-s.bytes,s.bytes=l<0?-l:0,d=0),l=c-s.bytes}if(o){if(l<=0)return setTimeout((()=>{a(null,e)}),r-d);l<m&&(m=l)}m&&i>m&&i-m>p&&(u=e.subarray(m),e=e.subarray(0,m)),function(e,a){const i=Buffer.byteLength(e);s.bytesSeen+=i,s.bytes+=i,s.isCaptured&&s.updateProgress(),n.push(e)?process.nextTick(a):s.onReadCallback=()=>{s.onReadCallback=null,process.nextTick(a)}}(e,u?()=>{process.nextTick(a,null,u)}:a)};l(e,(function e(a,n){if(a)return i(a);n?l(n,e):i(null)}))}setLength(e){return this[Di].length=+e,this}}var Ii=Pi;const{asyncIterator:Mi}=Symbol,Hi=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[Mi]?yield*e[Mi]():yield e},Wi=pe.ALPHABET.ALPHA_DIGIT+"-_",Yi=new o.TextEncoder,Gi="\r\n",$i=Yi.encode(Gi);class Vi{constructor(e,a){const{escapeName:i}=this.constructor,n=pe.isString(a);let s=`Content-Disposition: form-data; name="${i(e)}"${!n&&a.name?`; filename="${i(a.name)}"`:""}${Gi}`;n?a=Yi.encode(String(a).replace(/\r?\n|\r\n?/g,Gi)):s+=`Content-Type: ${a.type||"application/octet-stream"}${Gi}`,this.headers=Yi.encode(s+Gi),this.contentLength=n?a.byteLength:a.size,this.size=this.headers.byteLength+this.contentLength+2,this.name=e,this.value=a}async*encode(){yield this.headers;const{value:e}=this;pe.isTypedArray(e)?yield e:yield*Hi(e),yield $i}static escapeName(e){return String(e).replace(/[\r\n"]/g,(e=>({"\r":"%0D","\n":"%0A",'"':"%22"}[e])))}}class Ji extends f.Transform{__transform(e,a,i){this.push(e),i()}_transform(e,a,i){if(0!==e.length&&(this._transform=this.__transform,120!==e[0])){const e=Buffer.alloc(2);e[0]=120,e[1]=156,this.push(e,a)}this.__transform(e,a,i)}}const Ki=(e,a)=>pe.isAsyncFn(e)?function(...i){const n=i.pop();e.apply(this,i).then((e=>{try{a?n(null,...a(e)):n(null,e)}catch(e){n(e)}}),n)}:e,Xi={flush:v.constants.Z_SYNC_FLUSH,finishFlush:v.constants.Z_SYNC_FLUSH},Zi={flush:v.constants.BROTLI_OPERATION_FLUSH,finishFlush:v.constants.BROTLI_OPERATION_FLUSH},Qi=pe.isFunction(v.createBrotliDecompress),{http:en,https:an}=Ai,nn=/https:?/,sn=ja.protocols.map((e=>e+":"));function on(e,a){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,a)}function tn(e,a,i){let n=a;if(!n&&!1!==n){const e=$a(i);e&&(n=new URL(e))}if(n){if(n.username&&(n.auth=(n.username||"")+":"+(n.password||"")),n.auth){(n.auth.username||n.auth.password)&&(n.auth=(n.auth.username||"")+":"+(n.auth.password||""));const a=Buffer.from(n.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+a}e.headers.host=e.hostname+(e.port?":"+e.port:"");const a=n.hostname||n.host;e.hostname=a,e.host=a,e.port=n.port,e.path=i,n.protocol&&(e.protocol=n.protocol.includes(":")?n.protocol:`${n.protocol}:`)}e.beforeRedirects.proxy=function(e){tn(e,a,e.href)}}const rn="undefined"!=typeof process&&"process"===pe.kindOf(process),cn=(e,a)=>(({address:e,family:a})=>{if(!pe.isString(e))throw TypeError("address must be a string");return{address:e,family:a||(e.indexOf(".")<0?6:4)}})(pe.isObject(e)?e:{address:e,family:a});var pn=rn&&function(i){return n=async function(n,s,t){let{data:r,lookup:c,family:l}=i;const{responseType:u,responseEncoding:m}=i,d=i.method.toUpperCase();let x,h,b=!1;if(c){const e=Ki(c,(e=>pe.isArray(e)?e:[e]));c=(a,i,n)=>{e(a,i,((e,a,s)=>{if(e)return n(e);const o=pe.isArray(a)?a.map((e=>cn(e))):[cn(a,s)];i.all?n(e,o):n(e,o[0].address,o[0].family)}))}}const g=new p.EventEmitter,y=()=>{i.cancelToken&&i.cancelToken.unsubscribe(w),i.signal&&i.signal.removeEventListener("abort",w),g.removeAllListeners()};function w(e){g.emit("abort",!e||e.type?new Ua(null,i,h):e)}t(((e,a)=>{x=!0,a&&(b=!0,y())})),g.once("abort",s),(i.cancelToken||i.signal)&&(i.cancelToken&&i.cancelToken.subscribe(w),i.signal&&(i.signal.aborted?w():i.signal.addEventListener("abort",w)));const k=Fa(i.baseURL,i.url),j=new URL(k,"http://localhost"),_=j.protocol||sn[0];if("data:"===_){let e;if("GET"!==d)return Na(n,s,{status:405,statusText:"method not allowed",headers:{},config:i});try{e=function(e,a,i){const n=i&&i.Blob||ja.classes.Blob,s=Ui(e);if(void 0===a&&n&&(a=!0),"data"===s){e=s.length?e.slice(s.length+1):e;const i=Ni.exec(e);if(!i)throw new le("Invalid URL",le.ERR_INVALID_URL);const o=i[1],t=i[2],r=i[3],c=Buffer.from(decodeURIComponent(r),t?"base64":"utf8");if(a){if(!n)throw new le("Blob is not supported",le.ERR_NOT_SUPPORT);return new n([c],{type:o})}return c}throw new le("Unsupported protocol "+s,le.ERR_NOT_SUPPORT)}(i.url,"blob"===u,{Blob:i.env&&i.env.Blob})}catch(e){throw le.from(e,le.ERR_BAD_REQUEST,i)}return"text"===u?(e=e.toString(m),m&&"utf8"!==m||(e=pe.stripBOM(e))):"stream"===u&&(e=f.Readable.from(e)),Na(n,s,{data:e,status:200,statusText:"OK",headers:new La,config:i})}if(-1===sn.indexOf(_))return s(new le("Unsupported protocol "+_,le.ERR_BAD_REQUEST,i));const T=La.from(i.headers).normalize();T.set("User-Agent","axios/"+qi,!1);const E=i.onDownloadProgress,R=i.onUploadProgress,S=i.maxRate;let O,C;if(pe.isSpecCompliantForm(r)){const e=T.getContentType(/boundary=([-_\w\d]{10,70})/i);r=((e,a,i)=>{const{tag:n="form-data-boundary",size:s=25,boundary:o=n+"-"+pe.generateString(s,Wi)}=i||{};if(!pe.isFormData(e))throw TypeError("FormData instance required");if(o.length<1||o.length>70)throw Error("boundary must be 10-70 characters long");const t=Yi.encode("--"+o+Gi),r=Yi.encode("--"+o+"--"+Gi+Gi);let c=r.byteLength;const p=Array.from(e.entries()).map((([e,a])=>{const i=new Vi(e,a);return c+=i.size,i}));c+=t.byteLength*p.length,c=pe.toFiniteNumber(c);const l={"Content-Type":`multipart/form-data; boundary=${o}`};return Number.isFinite(c)&&(l["Content-Length"]=c),a&&a(l),f.Readable.from(async function*(){for(const e of p)yield t,yield*e.encode();yield r}())})(r,(e=>{T.set(e)}),{tag:`axios-${qi}-boundary`,boundary:e&&e[1]||void 0})}else if(pe.isFormData(r)&&pe.isFunction(r.getHeaders)){if(T.set(r.getHeaders()),!T.hasContentLength())try{const e=await o.promisify(r.getLength).call(r);Number.isFinite(e)&&e>=0&&T.setContentLength(e)}catch(e){}}else if(pe.isBlob(r))r.size&&T.setContentType(r.type||"application/octet-stream"),T.setContentLength(r.size||0),r=f.Readable.from(Hi(r));else if(r&&!pe.isStream(r)){if(Buffer.isBuffer(r));else if(pe.isArrayBuffer(r))r=Buffer.from(new Uint8Array(r));else{if(!pe.isString(r))return s(new le("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",le.ERR_BAD_REQUEST,i));r=Buffer.from(r,"utf-8")}if(T.setContentLength(r.length,!1),i.maxBodyLength>-1&&r.length>i.maxBodyLength)return s(new le("Request body larger than maxBodyLength limit",le.ERR_BAD_REQUEST,i))}const z=pe.toFiniteNumber(T.getContentLength());let B,L;pe.isArray(S)?(O=S[0],C=S[1]):O=C=S,r&&(R||O)&&(pe.isStream(r)||(r=f.Readable.from(r,{objectMode:!1})),r=f.pipeline([r,new Ii({length:z,maxRate:pe.toFiniteNumber(O)})],pe.noop),R&&r.on("progress",(e=>{R(Object.assign(e,{upload:!0}))}))),i.auth&&(B=(i.auth.username||"")+":"+(i.auth.password||"")),!B&&j.username&&(B=j.username+":"+j.password),B&&T.delete("authorization");try{L=fa(j.pathname+j.search,i.params,i.paramsSerializer).replace(/^\?/,"")}catch(e){const a=new Error(e.message);return a.config=i,a.url=i.url,a.exists=!0,s(a)}T.set("Accept-Encoding","gzip, compress, deflate"+(Qi?", br":""),!1);const A={path:L,method:d,headers:T.toJSON(),agents:{http:i.httpAgent,https:i.httpsAgent},auth:B,protocol:_,family:l,beforeRedirect:on,beforeRedirects:{}};let q;!pe.isUndefined(c)&&(A.lookup=c),i.socketPath?A.socketPath=i.socketPath:(A.hostname=j.hostname,A.port=j.port,tn(A,i.proxy,_+"//"+j.hostname+(j.port?":"+j.port:"")+A.path));const U=nn.test(A.protocol);if(A.agent=U?i.httpsAgent:i.httpAgent,i.transport?q=i.transport:0===i.maxRedirects?q=U?a:e:(i.maxRedirects&&(A.maxRedirects=i.maxRedirects),i.beforeRedirect&&(A.beforeRedirects.config=i.beforeRedirect),q=U?an:en),i.maxBodyLength>-1?A.maxBodyLength=i.maxBodyLength:A.maxBodyLength=1/0,i.insecureHTTPParser&&(A.insecureHTTPParser=i.insecureHTTPParser),h=q.request(A,(function(e){if(h.destroyed)return;const a=[e],o=+e.headers["content-length"];if(E){const e=new Ii({length:pe.toFiniteNumber(o),maxRate:pe.toFiniteNumber(C)});E&&e.on("progress",(e=>{E(Object.assign(e,{download:!0}))})),a.push(e)}let t=e;const r=e.req||h;if(!1!==i.decompress&&e.headers["content-encoding"])switch("HEAD"!==d&&204!==e.statusCode||delete e.headers["content-encoding"],(e.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":a.push(v.createUnzip(Xi)),delete e.headers["content-encoding"];break;case"deflate":a.push(new Ji),a.push(v.createUnzip(Xi)),delete e.headers["content-encoding"];break;case"br":Qi&&(a.push(v.createBrotliDecompress(Zi)),delete e.headers["content-encoding"])}t=a.length>1?f.pipeline(a,pe.noop):a[0];const c=f.finished(t,(()=>{c(),y()})),p={status:e.statusCode,statusText:e.statusMessage,headers:new La(e.headers),config:i,request:r};if("stream"===u)p.data=t,Na(n,s,p);else{const e=[];let a=0;t.on("data",(function(n){e.push(n),a+=n.length,i.maxContentLength>-1&&a>i.maxContentLength&&(b=!0,t.destroy(),s(new le("maxContentLength size of "+i.maxContentLength+" exceeded",le.ERR_BAD_RESPONSE,i,r)))})),t.on("aborted",(function(){if(b)return;const e=new le("maxContentLength size of "+i.maxContentLength+" exceeded",le.ERR_BAD_RESPONSE,i,r);t.destroy(e),s(e)})),t.on("error",(function(e){h.destroyed||s(le.from(e,null,i,r))})),t.on("end",(function(){try{let a=1===e.length?e[0]:Buffer.concat(e);"arraybuffer"!==u&&(a=a.toString(m),m&&"utf8"!==m||(a=pe.stripBOM(a))),p.data=a}catch(e){return s(le.from(e,null,i,p.request,p))}Na(n,s,p)}))}g.once("abort",(e=>{t.destroyed||(t.emit("error",e),t.destroy())}))})),g.once("abort",(e=>{s(e),h.destroy(e)})),h.on("error",(function(e){s(le.from(e,null,i,h))})),h.on("socket",(function(e){e.setKeepAlive(!0,6e4)})),i.timeout){const e=parseInt(i.timeout,10);if(Number.isNaN(e))return void s(new le("error trying to parse `config.timeout` to int",le.ERR_BAD_OPTION_VALUE,i,h));h.setTimeout(e,(function(){if(x)return;let e=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const a=i.transitional||va;i.timeoutErrorMessage&&(e=i.timeoutErrorMessage),s(new le(e,a.clarifyTimeoutError?le.ETIMEDOUT:le.ECONNABORTED,i,h)),w()}))}if(pe.isStream(r)){let e=!1,a=!1;r.on("end",(()=>{e=!0})),r.once("error",(e=>{a=!0,h.destroy(e)})),r.on("close",(()=>{e||a||w(new Ua("Request stream has been aborted",i,h))})),r.pipe(h)}else h.end(r)},new Promise(((e,a)=>{let i,s;const o=(e,a)=>{s||(s=!0,i&&i(e,a))},t=e=>{o(e,!0),a(e)};n((a=>{o(a),e(a)}),t,(e=>i=e)).catch(t)}));var n},ln=ja.hasStandardBrowserEnv?{write(e,a,i,n,s,o){const t=[e+"="+encodeURIComponent(a)];pe.isNumber(i)&&t.push("expires="+new Date(i).toGMTString()),pe.isString(n)&&t.push("path="+n),pe.isString(s)&&t.push("domain="+s),!0===o&&t.push("secure"),document.cookie=t.join("; ")},read(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}},un=ja.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let i;function n(i){let n=i;return e&&(a.setAttribute("href",n),n=a.href),a.setAttribute("href",n),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:"/"===a.pathname.charAt(0)?a.pathname:"/"+a.pathname}}return i=n(window.location.href),function(e){const a=pe.isString(e)?n(e):e;return a.protocol===i.protocol&&a.host===i.host}}():function(){return!0};function mn(e,a){let i=0;const n=Fi(50,250);return s=>{const o=s.loaded,t=s.lengthComputable?s.total:void 0,r=o-i,c=n(r);i=o;const p={loaded:o,total:t,progress:t?o/t:void 0,bytes:r,rate:c||void 0,estimated:c&&t&&o<=t?(t-o)/c:void 0,event:s};p[a?"download":"upload"]=!0,e(p)}}const dn={http:pn,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(a,i){let n=e.data;const s=La.from(e.headers).normalize();let o,t,{responseType:r,withXSRFToken:c}=e;function p(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener("abort",o)}if(pe.isFormData(n))if(ja.hasStandardBrowserEnv||ja.hasStandardBrowserWebWorkerEnv)s.setContentType(!1);else if(!1!==(t=s.getContentType())){const[e,...a]=t?t.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...a].join("; "))}let l=new XMLHttpRequest;if(e.auth){const a=e.auth.username||"",i=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(a+":"+i))}const u=Fa(e.baseURL,e.url);function m(){if(!l)return;const n=La.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());Na((function(e){a(e),p()}),(function(e){i(e),p()}),{data:r&&"text"!==r&&"json"!==r?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:n,config:e,request:l}),l=null}if(l.open(e.method.toUpperCase(),fa(u,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=m:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(m)},l.onabort=function(){l&&(i(new le("Request aborted",le.ECONNABORTED,e,l)),l=null)},l.onerror=function(){i(new le("Network Error",le.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let a=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const n=e.transitional||va;e.timeoutErrorMessage&&(a=e.timeoutErrorMessage),i(new le(a,n.clarifyTimeoutError?le.ETIMEDOUT:le.ECONNABORTED,e,l)),l=null},ja.hasStandardBrowserEnv&&(c&&pe.isFunction(c)&&(c=c(e)),c||!1!==c&&un(u))){const a=e.xsrfHeaderName&&e.xsrfCookieName&&ln.read(e.xsrfCookieName);a&&s.set(e.xsrfHeaderName,a)}void 0===n&&s.setContentType(null),"setRequestHeader"in l&&pe.forEach(s.toJSON(),(function(e,a){l.setRequestHeader(a,e)})),pe.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),r&&"json"!==r&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",mn(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",mn(e.onUploadProgress)),(e.cancelToken||e.signal)&&(o=a=>{l&&(i(!a||a.type?new Ua(null,e,l):a),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener("abort",o)));const d=Ui(u);d&&-1===ja.protocols.indexOf(d)?i(new le("Unsupported protocol "+d+":",le.ERR_BAD_REQUEST,e)):l.send(n||null)}))}};pe.forEach(dn,((e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch(e){}Object.defineProperty(e,"adapterName",{value:a})}}));const xn=e=>`- ${e}`,fn=e=>pe.isFunction(e)||null===e||!1===e;var hn=e=>{e=pe.isArray(e)?e:[e];const{length:a}=e;let i,n;const s={};for(let o=0;o<a;o++){let a;if(i=e[o],n=i,!fn(i)&&(n=dn[(a=String(i)).toLowerCase()],void 0===n))throw new le(`Unknown adapter '${a}'`);if(n)break;s[a||"#"+o]=n}if(!n){const e=Object.entries(s).map((([e,a])=>`adapter ${e} `+(!1===a?"is not supported by the environment":"is not available in the build")));throw new le("There is no suitable adapter to dispatch the request "+(a?e.length>1?"since :\n"+e.map(xn).join("\n"):" "+xn(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function vn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ua(null,e)}function bn(e){vn(e),e.headers=La.from(e.headers),e.data=Aa.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return hn(e.adapter||Ea.adapter)(e).then((function(a){return vn(e),a.data=Aa.call(e,e.transformResponse,a),a.headers=La.from(a.headers),a}),(function(a){return qa(a)||(vn(e),a&&a.response&&(a.response.data=Aa.call(e,e.transformResponse,a.response),a.response.headers=La.from(a.response.headers))),Promise.reject(a)}))}const gn=e=>e instanceof La?{...e}:e;function yn(e,a){a=a||{};const i={};function n(e,a,i){return pe.isPlainObject(e)&&pe.isPlainObject(a)?pe.merge.call({caseless:i},e,a):pe.isPlainObject(a)?pe.merge({},a):pe.isArray(a)?a.slice():a}function s(e,a,i){return pe.isUndefined(a)?pe.isUndefined(e)?void 0:n(void 0,e,i):n(e,a,i)}function o(e,a){if(!pe.isUndefined(a))return n(void 0,a)}function t(e,a){return pe.isUndefined(a)?pe.isUndefined(e)?void 0:n(void 0,e):n(void 0,a)}function r(i,s,o){return o in a?n(i,s):o in e?n(void 0,i):void 0}const c={url:o,method:o,data:o,baseURL:t,transformRequest:t,transformResponse:t,paramsSerializer:t,timeout:t,timeoutMessage:t,withCredentials:t,withXSRFToken:t,adapter:t,responseType:t,xsrfCookieName:t,xsrfHeaderName:t,onUploadProgress:t,onDownloadProgress:t,decompress:t,maxContentLength:t,maxBodyLength:t,beforeRedirect:t,transport:t,httpAgent:t,httpsAgent:t,cancelToken:t,socketPath:t,responseEncoding:t,validateStatus:r,headers:(e,a)=>s(gn(e),gn(a),!0)};return pe.forEach(Object.keys(Object.assign({},e,a)),(function(n){const o=c[n]||s,t=o(e[n],a[n],n);pe.isUndefined(t)&&o!==r||(i[n]=t)})),i}const wn={};["object","boolean","number","function","string","symbol"].forEach(((e,a)=>{wn[e]=function(i){return typeof i===e||"a"+(a<1?"n ":" ")+e}}));const kn={};wn.transitional=function(e,a,i){function n(e,a){return"[Axios v1.6.8] Transitional option '"+e+"'"+a+(i?". "+i:"")}return(i,s,o)=>{if(!1===e)throw new le(n(s," has been removed"+(a?" in "+a:"")),le.ERR_DEPRECATED);return a&&!kn[s]&&(kn[s]=!0,console.warn(n(s," has been deprecated since v"+a+" and will be removed in the near future"))),!e||e(i,s,o)}};var jn={assertOptions:function(e,a,i){if("object"!=typeof e)throw new le("options must be an object",le.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const o=n[s],t=a[o];if(t){const a=e[o],i=void 0===a||t(a,o,e);if(!0!==i)throw new le("option "+o+" must be "+i,le.ERR_BAD_OPTION_VALUE)}else if(!0!==i)throw new le("Unknown option "+o,le.ERR_BAD_OPTION)}},validators:wn};const _n=jn.validators;class Tn{constructor(e){this.defaults=e,this.interceptors={request:new ha,response:new ha}}async request(e,a){try{return await this._request(e,a)}catch(e){if(e instanceof Error){let a;Error.captureStackTrace?Error.captureStackTrace(a={}):a=new Error;const i=a.stack?a.stack.replace(/^.+\n/,""):"";e.stack?i&&!String(e.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+i):e.stack=i}throw e}}_request(e,a){"string"==typeof e?(a=a||{}).url=e:a=e||{},a=yn(this.defaults,a);const{transitional:i,paramsSerializer:n,headers:s}=a;void 0!==i&&jn.assertOptions(i,{silentJSONParsing:_n.transitional(_n.boolean),forcedJSONParsing:_n.transitional(_n.boolean),clarifyTimeoutError:_n.transitional(_n.boolean)},!1),null!=n&&(pe.isFunction(n)?a.paramsSerializer={serialize:n}:jn.assertOptions(n,{encode:_n.function,serialize:_n.function},!0)),a.method=(a.method||this.defaults.method||"get").toLowerCase();let o=s&&pe.merge(s.common,s[a.method]);s&&pe.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete s[e]})),a.headers=La.concat(o,s);const t=[];let r=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(a)||(r=r&&e.synchronous,t.unshift(e.fulfilled,e.rejected))}));const c=[];let p;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,u=0;if(!r){const e=[bn.bind(this),void 0];for(e.unshift.apply(e,t),e.push.apply(e,c),l=e.length,p=Promise.resolve(a);u<l;)p=p.then(e[u++],e[u++]);return p}l=t.length;let m=a;for(u=0;u<l;){const e=t[u++],a=t[u++];try{m=e(m)}catch(e){a.call(this,e);break}}try{p=bn.call(this,m)}catch(e){return Promise.reject(e)}for(u=0,l=c.length;u<l;)p=p.then(c[u++],c[u++]);return p}getUri(e){return fa(Fa((e=yn(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}pe.forEach(["delete","get","head","options"],(function(e){Tn.prototype[e]=function(a,i){return this.request(yn(i||{},{method:e,url:a,data:(i||{}).data}))}})),pe.forEach(["post","put","patch"],(function(e){function a(a){return function(i,n,s){return this.request(yn(s||{},{method:e,headers:a?{"Content-Type":"multipart/form-data"}:{},url:i,data:n}))}}Tn.prototype[e]=a(),Tn.prototype[e+"Form"]=a(!0)}));var En=Tn;class Rn{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let a;this.promise=new Promise((function(e){a=e}));const i=this;this.promise.then((e=>{if(!i._listeners)return;let a=i._listeners.length;for(;a-- >0;)i._listeners[a](e);i._listeners=null})),this.promise.then=e=>{let a;const n=new Promise((e=>{i.subscribe(e),a=e})).then(e);return n.cancel=function(){i.unsubscribe(a)},n},e((function(e,n,s){i.reason||(i.reason=new Ua(e,n,s),a(i.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const a=this._listeners.indexOf(e);-1!==a&&this._listeners.splice(a,1)}static source(){let e;return{token:new Rn((function(a){e=a})),cancel:e}}}var Sn=Rn;const On={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(On).forEach((([e,a])=>{On[a]=e}));var Cn=On;const zn=function e(a){const i=new En(a),n=O(En.prototype.request,i);return pe.extend(n,En.prototype,i,{allOwnKeys:!0}),pe.extend(n,i,null,{allOwnKeys:!0}),n.create=function(i){return e(yn(a,i))},n}(Ea);zn.Axios=En,zn.CanceledError=Ua,zn.CancelToken=Sn,zn.isCancel=qa,zn.VERSION=qi,zn.toFormData=la,zn.AxiosError=le,zn.Cancel=zn.CanceledError,zn.all=function(e){return Promise.all(e)},zn.spread=function(e){return function(a){return e.apply(null,a)}},zn.isAxiosError=function(e){return pe.isObject(e)&&!0===e.isAxiosError},zn.mergeConfig=yn,zn.AxiosHeaders=La,zn.formToJSON=e=>_a(pe.isHTMLForm(e)?new FormData(e):e),zn.getAdapter=hn,zn.HttpStatusCode=Cn,zn.default=zn;var Bn=class{constructor(e,a,i){this.etaBufferLength=e||100,this.valueBuffer=[i],this.timeBuffer=[a],this.eta="0"}update(e,a,i){this.valueBuffer.push(a),this.timeBuffer.push(e),this.calculate(i-a)}getTime(){return this.eta}calculate(e){const a=this.valueBuffer.length,i=Math.min(this.etaBufferLength,a),n=(this.valueBuffer[a-1]-this.valueBuffer[a-i])/(this.timeBuffer[a-1]-this.timeBuffer[a-i]);this.valueBuffer=this.valueBuffer.slice(-this.etaBufferLength),this.timeBuffer=this.timeBuffer.slice(-this.etaBufferLength);const s=Math.ceil(e/n/1e3);isNaN(s)?this.eta="NULL":isFinite(s)?this.eta=s>1e7?"INF":s<0?0:s:this.eta="INF"}};const Ln=r;var An=class{constructor(e){this.stream=e,this.linewrap=!0,this.dy=0}cursorSave(){this.stream.isTTY&&this.stream.write("7")}cursorRestore(){this.stream.isTTY&&this.stream.write("8")}cursor(e){this.stream.isTTY&&(e?this.stream.write("[?25h"):this.stream.write("[?25l"))}cursorTo(e=null,a=null){this.stream.isTTY&&Ln.cursorTo(this.stream,e,a)}cursorRelative(e=null,a=null){this.stream.isTTY&&(this.dy=this.dy+a,Ln.moveCursor(this.stream,e,a))}cursorRelativeReset(){this.stream.isTTY&&(Ln.moveCursor(this.stream,0,-this.dy),Ln.cursorTo(this.stream,0,null),this.dy=0)}clearRight(){this.stream.isTTY&&Ln.clearLine(this.stream,1)}clearLine(){this.stream.isTTY&&Ln.clearLine(this.stream,0)}clearBottom(){this.stream.isTTY&&Ln.clearScreenDown(this.stream)}newline(){this.stream.write("\n"),this.dy++}write(e,a=!1){!0===this.linewrap&&!1===a?this.stream.write(e.substr(0,this.getWidth())):this.stream.write(e)}lineWrapping(e){this.stream.isTTY&&(this.linewrap=e,e?this.stream.write("[?7h"):this.stream.write("[?7l"))}isTTY(){return!0===this.stream.isTTY}getWidth(){return this.stream.columns||(this.stream.isTTY?80:200)}},qn=function(e,a,i){if(!0!==a.autopadding)return e;return"percentage"===i?(n=e,s=3,(a.autopaddingChar+n).slice(-s)):e;var n,s},Un=function(e,a){const i=Math.round(e*a.barsize),n=a.barsize-i;return a.barCompleteString.substr(0,i)+a.barGlue+a.barIncompleteString.substr(0,n)},Nn=function(e,a,i){function n(e){return i?i*Math.round(e/i):e}function s(e){return(a.autopaddingChar+e).slice(-2)}return e>3600?s(Math.floor(e/3600))+"h"+s(n(e%3600/60))+"m":e>60?s(Math.floor(e/60))+"m"+s(n(e%60))+"s":e>10?s(n(e))+"s":s(e)+"s"};const Fn=c.stringWidthExports,Dn=qn,Pn=Un,In=Nn;var Mn=function(e,a,i){let n=e.format;const s=e.formatTime||In,o=e.formatValue||Dn,t=e.formatBar||Pn,r=Math.floor(100*a.progress)+"",c=a.stopTime||Date.now(),p=Math.round((c-a.startTime)/1e3),l=Object.assign({},i,{bar:t(a.progress,e),percentage:o(r,e,"percentage"),total:o(a.total,e,"total"),value:o(a.value,e,"value"),eta:o(a.eta,e,"eta"),eta_formatted:s(a.eta,e,5),duration:o(p,e,"duration"),duration_formatted:s(p,e,1)});n=n.replace(/\{(\w+)\}/g,(function(e,a){return void 0!==l[a]?l[a]:e}));const u=Math.max(0,a.maxWidth-Fn(n)-2),m=Math.floor(u/2);switch(e.align){case"right":n=u>0?" ".repeat(u)+n:n;break;case"center":n=m>0?" ".repeat(m)+n:n}return n};function Hn(e,a){return null==e?a:e}var Wn={parse:function(e,a){const i={},n=Object.assign({},a,e);return i.throttleTime=1e3/Hn(n.fps,10),i.stream=Hn(n.stream,process.stderr),i.terminal=Hn(n.terminal,null),i.clearOnComplete=Hn(n.clearOnComplete,!1),i.stopOnComplete=Hn(n.stopOnComplete,!1),i.barsize=Hn(n.barsize,40),i.align=Hn(n.align,"left"),i.hideCursor=Hn(n.hideCursor,!1),i.linewrap=Hn(n.linewrap,!1),i.barGlue=Hn(n.barGlue,""),i.barCompleteChar=Hn(n.barCompleteChar,"="),i.barIncompleteChar=Hn(n.barIncompleteChar,"-"),i.format=Hn(n.format,"progress [{bar}] {percentage}% | ETA: {eta}s | {value}/{total}"),i.formatTime=Hn(n.formatTime,null),i.formatValue=Hn(n.formatValue,null),i.formatBar=Hn(n.formatBar,null),i.etaBufferLength=Hn(n.etaBuffer,10),i.etaAsynchronousUpdate=Hn(n.etaAsynchronousUpdate,!1),i.progressCalculationRelative=Hn(n.progressCalculationRelative,!1),i.synchronousUpdate=Hn(n.synchronousUpdate,!0),i.noTTYOutput=Hn(n.noTTYOutput,!1),i.notTTYSchedule=Hn(n.notTTYSchedule,2e3),i.emptyOnZero=Hn(n.emptyOnZero,!1),i.forceRedraw=Hn(n.forceRedraw,!1),i.autopadding=Hn(n.autopadding,!1),i.gracefulExit=Hn(n.gracefulExit,!1),i},assignDerivedOptions:function(e){return e.barCompleteString=e.barCompleteChar.repeat(e.barsize+1),e.barIncompleteString=e.barIncompleteChar.repeat(e.barsize+1),e.autopaddingChar=e.autopadding?Hn(e.autopaddingChar," "):"",e}};const Yn=Bn,Gn=An,$n=Mn,Vn=Wn,Jn=p;var Kn=class extends Jn{constructor(e){super(),this.options=Vn.assignDerivedOptions(e),this.terminal=this.options.terminal?this.options.terminal:new Gn(this.options.stream),this.value=0,this.startValue=0,this.total=100,this.lastDrawnString=null,this.startTime=null,this.stopTime=null,this.lastRedraw=Date.now(),this.eta=new Yn(this.options.etaBufferLength,0,0),this.payload={},this.isActive=!1,this.formatter="function"==typeof this.options.format?this.options.format:$n}render(e=!1){const a={progress:this.getProgress(),eta:this.eta.getTime(),startTime:this.startTime,stopTime:this.stopTime,total:this.total,value:this.value,maxWidth:this.terminal.getWidth()};this.options.etaAsynchronousUpdate&&this.updateETA();const i=this.formatter(this.options,a,this.payload);(e||this.options.forceRedraw||this.options.noTTYOutput&&!this.terminal.isTTY()||this.lastDrawnString!=i)&&(this.emit("redraw-pre"),this.terminal.cursorTo(0,null),this.terminal.write(i),this.terminal.clearRight(),this.lastDrawnString=i,this.lastRedraw=Date.now(),this.emit("redraw-post"))}start(e,a,i){this.value=a||0,this.total=void 0!==e&&e>=0?e:100,this.startValue=a||0,this.payload=i||{},this.startTime=Date.now(),this.stopTime=null,this.lastDrawnString="",this.eta=new Yn(this.options.etaBufferLength,this.startTime,this.value),this.isActive=!0,this.emit("start",e,a)}stop(){this.isActive=!1,this.stopTime=Date.now(),this.emit("stop",this.total,this.value)}update(e,a={}){"number"==typeof e&&(this.value=e,this.eta.update(Date.now(),e,this.total));const i=("object"==typeof e?e:a)||{};this.emit("update",this.total,this.value);for(const e in i)this.payload[e]=i[e];this.value>=this.getTotal()&&this.options.stopOnComplete&&this.stop()}getProgress(){let e=this.value/this.total;return this.options.progressCalculationRelative&&(e=(this.value-this.startValue)/(this.total-this.startValue)),isNaN(e)&&(e=this.options&&this.options.emptyOnZero?0:1),e=Math.min(Math.max(e,0),1),e}increment(e=1,a={}){"object"==typeof e?this.update(this.value+1,e):this.update(this.value+e,a)}getTotal(){return this.total}setTotal(e){void 0!==e&&e>=0&&(this.total=e)}updateETA(){this.eta.update(Date.now(),this.value,this.total)}};const Xn=Kn,Zn=Wn;const Qn=An,es=Kn,as=Wn,is=p;var ns={legacy:{format:"progress [{bar}] {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"=",barIncompleteChar:"-"},shades_classic:{format:" {bar} {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"█",barIncompleteChar:"░"},shades_grey:{format:" [90m{bar}[0m {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"█",barIncompleteChar:"░"},rect:{format:" {bar}■ {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"■",barIncompleteChar:" "}};const ss=class extends Xn{constructor(e,a){super(Zn.parse(e,a)),this.timer=null,this.options.noTTYOutput&&!1===this.terminal.isTTY()&&(this.options.synchronousUpdate=!1),this.schedulingRate=this.terminal.isTTY()?this.options.throttleTime:this.options.notTTYSchedule,this.sigintCallback=null}render(){this.timer&&(clearTimeout(this.timer),this.timer=null),super.render(),this.options.noTTYOutput&&!1===this.terminal.isTTY()&&this.terminal.newline(),this.timer=setTimeout(this.render.bind(this),this.schedulingRate)}update(e,a){this.timer&&(super.update(e,a),this.options.synchronousUpdate&&this.lastRedraw+2*this.options.throttleTime<Date.now()&&this.render())}start(e,a,i){!1===this.options.noTTYOutput&&!1===this.terminal.isTTY()||(null===this.sigintCallback&&this.options.gracefulExit&&(this.sigintCallback=this.stop.bind(this),process.once("SIGINT",this.sigintCallback),process.once("SIGTERM",this.sigintCallback)),this.terminal.cursorSave(),!0===this.options.hideCursor&&this.terminal.cursor(!1),!1===this.options.linewrap&&this.terminal.lineWrapping(!1),super.start(e,a,i),this.render())}stop(){this.timer&&(this.sigintCallback&&(process.removeListener("SIGINT",this.sigintCallback),process.removeListener("SIGTERM",this.sigintCallback),this.sigintCallback=null),this.render(),super.stop(),clearTimeout(this.timer),this.timer=null,!0===this.options.hideCursor&&this.terminal.cursor(!0),!1===this.options.linewrap&&this.terminal.lineWrapping(!0),this.terminal.cursorRestore(),this.options.clearOnComplete?(this.terminal.cursorTo(0,null),this.terminal.clearLine()):this.terminal.newline())}},os=class extends is{constructor(e,a){super(),this.bars=[],this.options=as.parse(e,a),this.options.synchronousUpdate=!1,this.terminal=this.options.terminal?this.options.terminal:new Qn(this.options.stream),this.timer=null,this.isActive=!1,this.schedulingRate=this.terminal.isTTY()?this.options.throttleTime:this.options.notTTYSchedule,this.loggingBuffer=[],this.sigintCallback=null}create(e,a,i,n={}){const s=new es(Object.assign({},this.options,{terminal:this.terminal},n));return this.bars.push(s),!1===this.options.noTTYOutput&&!1===this.terminal.isTTY()||(null===this.sigintCallback&&this.options.gracefulExit&&(this.sigintCallback=this.stop.bind(this),process.once("SIGINT",this.sigintCallback),process.once("SIGTERM",this.sigintCallback)),this.isActive||(!0===this.options.hideCursor&&this.terminal.cursor(!1),!1===this.options.linewrap&&this.terminal.lineWrapping(!1),this.timer=setTimeout(this.update.bind(this),this.schedulingRate)),this.isActive=!0,s.start(e,a,i),this.emit("start")),s}remove(e){const a=this.bars.indexOf(e);return!(a<0)&&(this.bars.splice(a,1),this.update(),this.terminal.newline(),this.terminal.clearBottom(),!0)}update(){if(this.timer&&(clearTimeout(this.timer),this.timer=null),this.emit("update-pre"),this.terminal.cursorRelativeReset(),this.emit("redraw-pre"),this.loggingBuffer.length>0)for(this.terminal.clearLine();this.loggingBuffer.length>0;)this.terminal.write(this.loggingBuffer.shift(),!0);for(let e=0;e<this.bars.length;e++)e>0&&this.terminal.newline(),this.bars[e].render();this.emit("redraw-post"),this.options.noTTYOutput&&!1===this.terminal.isTTY()&&(this.terminal.newline(),this.terminal.newline()),this.timer=setTimeout(this.update.bind(this),this.schedulingRate),this.emit("update-post"),this.options.stopOnComplete&&!this.bars.find((e=>e.isActive))&&this.stop()}stop(){if(clearTimeout(this.timer),this.timer=null,this.sigintCallback&&(process.removeListener("SIGINT",this.sigintCallback),process.removeListener("SIGTERM",this.sigintCallback),this.sigintCallback=null),this.isActive=!1,!0===this.options.hideCursor&&this.terminal.cursor(!0),!1===this.options.linewrap&&this.terminal.lineWrapping(!0),this.terminal.cursorRelativeReset(),this.emit("stop-pre-clear"),this.options.clearOnComplete)this.terminal.clearBottom();else{for(let e=0;e<this.bars.length;e++)e>0&&this.terminal.newline(),this.bars[e].render(),this.bars[e].stop();this.terminal.newline()}this.emit("stop")}log(e){this.loggingBuffer.push(e)}};var ts={Bar:ss,SingleBar:ss,MultiBar:os,Presets:ns,Format:{Formatter:Mn,BarFormat:Un,ValueFormat:qn,TimeFormat:Nn}};function rs(e,a){var i=(65535&e)+(65535&a);return(e>>16)+(a>>16)+(i>>16)<<16|65535&i}function cs(e,a,i,n,s,o){return rs((t=rs(rs(a,e),rs(n,o)))<<(r=s)|t>>>32-r,i);var t,r}function ps(e,a,i,n,s,o,t){return cs(a&i|~a&n,e,a,s,o,t)}function ls(e,a,i,n,s,o,t){return cs(a&n|i&~n,e,a,s,o,t)}function us(e,a,i,n,s,o,t){return cs(a^i^n,e,a,s,o,t)}function ms(e,a,i,n,s,o,t){return cs(i^(a|~n),e,a,s,o,t)}function ds(e,a){e[a>>5]|=128<<a%32,e[14+(a+64>>>9<<4)]=a;var i,n,s,o,t,r=1732584193,c=-271733879,p=-1732584194,l=271733878;for(i=0;i<e.length;i+=16)n=r,s=c,o=p,t=l,r=ps(r,c,p,l,e[i],7,-680876936),l=ps(l,r,c,p,e[i+1],12,-389564586),p=ps(p,l,r,c,e[i+2],17,606105819),c=ps(c,p,l,r,e[i+3],22,-1044525330),r=ps(r,c,p,l,e[i+4],7,-176418897),l=ps(l,r,c,p,e[i+5],12,1200080426),p=ps(p,l,r,c,e[i+6],17,-1473231341),c=ps(c,p,l,r,e[i+7],22,-45705983),r=ps(r,c,p,l,e[i+8],7,1770035416),l=ps(l,r,c,p,e[i+9],12,-1958414417),p=ps(p,l,r,c,e[i+10],17,-42063),c=ps(c,p,l,r,e[i+11],22,-1990404162),r=ps(r,c,p,l,e[i+12],7,1804603682),l=ps(l,r,c,p,e[i+13],12,-40341101),p=ps(p,l,r,c,e[i+14],17,-1502002290),r=ls(r,c=ps(c,p,l,r,e[i+15],22,1236535329),p,l,e[i+1],5,-165796510),l=ls(l,r,c,p,e[i+6],9,-1069501632),p=ls(p,l,r,c,e[i+11],14,643717713),c=ls(c,p,l,r,e[i],20,-373897302),r=ls(r,c,p,l,e[i+5],5,-701558691),l=ls(l,r,c,p,e[i+10],9,38016083),p=ls(p,l,r,c,e[i+15],14,-660478335),c=ls(c,p,l,r,e[i+4],20,-405537848),r=ls(r,c,p,l,e[i+9],5,568446438),l=ls(l,r,c,p,e[i+14],9,-1019803690),p=ls(p,l,r,c,e[i+3],14,-187363961),c=ls(c,p,l,r,e[i+8],20,1163531501),r=ls(r,c,p,l,e[i+13],5,-1444681467),l=ls(l,r,c,p,e[i+2],9,-51403784),p=ls(p,l,r,c,e[i+7],14,1735328473),r=us(r,c=ls(c,p,l,r,e[i+12],20,-1926607734),p,l,e[i+5],4,-378558),l=us(l,r,c,p,e[i+8],11,-2022574463),p=us(p,l,r,c,e[i+11],16,1839030562),c=us(c,p,l,r,e[i+14],23,-35309556),r=us(r,c,p,l,e[i+1],4,-1530992060),l=us(l,r,c,p,e[i+4],11,1272893353),p=us(p,l,r,c,e[i+7],16,-155497632),c=us(c,p,l,r,e[i+10],23,-1094730640),r=us(r,c,p,l,e[i+13],4,681279174),l=us(l,r,c,p,e[i],11,-358537222),p=us(p,l,r,c,e[i+3],16,-722521979),c=us(c,p,l,r,e[i+6],23,76029189),r=us(r,c,p,l,e[i+9],4,-640364487),l=us(l,r,c,p,e[i+12],11,-421815835),p=us(p,l,r,c,e[i+15],16,530742520),r=ms(r,c=us(c,p,l,r,e[i+2],23,-995338651),p,l,e[i],6,-198630844),l=ms(l,r,c,p,e[i+7],10,1126891415),p=ms(p,l,r,c,e[i+14],15,-1416354905),c=ms(c,p,l,r,e[i+5],21,-57434055),r=ms(r,c,p,l,e[i+12],6,1700485571),l=ms(l,r,c,p,e[i+3],10,-1894986606),p=ms(p,l,r,c,e[i+10],15,-1051523),c=ms(c,p,l,r,e[i+1],21,-2054922799),r=ms(r,c,p,l,e[i+8],6,1873313359),l=ms(l,r,c,p,e[i+15],10,-30611744),p=ms(p,l,r,c,e[i+6],15,-1560198380),c=ms(c,p,l,r,e[i+13],21,1309151649),r=ms(r,c,p,l,e[i+4],6,-145523070),l=ms(l,r,c,p,e[i+11],10,-1120210379),p=ms(p,l,r,c,e[i+2],15,718787259),c=ms(c,p,l,r,e[i+9],21,-343485551),r=rs(r,n),c=rs(c,s),p=rs(p,o),l=rs(l,t);return[r,c,p,l]}function xs(e){var a,i="";for(a=0;a<32*e.length;a+=8)i+=String.fromCharCode(e[a>>5]>>>a%32&255);return i}function fs(e){var a,i=[];for(i[(e.length>>2)-1]=void 0,a=0;a<i.length;a+=1)i[a]=0;for(a=0;a<8*e.length;a+=8)i[a>>5]|=(255&e.charCodeAt(a/8))<<a%32;return i}function hs(e){var a,i,n="0123456789abcdef",s="";for(i=0;i<e.length;i+=1)a=e.charCodeAt(i),s+=n.charAt(a>>>4&15)+n.charAt(15&a);return s}function vs(e){return unescape(encodeURIComponent(e))}function bs(e){return function(e){return xs(ds(fs(e),8*e.length))}(vs(e))}function gs(e,a){return function(e,a){var i,n,s=fs(e),o=[],t=[];for(o[15]=t[15]=void 0,s.length>16&&(s=ds(s,8*e.length)),i=0;i<16;i+=1)o[i]=909522486^s[i],t[i]=1549556828^s[i];return n=ds(o.concat(fs(a)),512+8*a.length),xs(ds(t.concat(n),640))}(vs(e),vs(a))}var ys=function(e,a,i){return a?i?gs(a,e):hs(gs(a,e)):i?bs(e):hs(bs(e))},ws=x.getDefaultExportFromCjs(ys);const ks=[".gant","dist","config","node_modules","public","locales",".d.ts",".json",".md"];const js="locales",_s=async(e,a,i,n)=>{function s(e){t.existsSync(d.resolve(a,js))||t.mkdirSync(d.resolve(a,js),{recursive:!0});const i=d.resolve(a,js,`${e}.ts`);t.existsSync(i)||t.writeFileSync(i,"export default {}","utf-8");return b.getJavascriptfile(i)}function o(e,i){const n=d.resolve(a,js,`${e}.ts`);u.writeFileToJS(n,`export default ${JSON.stringify(i)}`)}const r=s(i);let c={};const p=[];for(const a of e){const e=await m.getFileList(a,ks);if(e.length<1)break;console.log(S.bgYellow("获取文件模块:"+a)+"\n"),p.push(...e);const i=new ts.SingleBar({format:"进度 {bar} {percentage}% total:{value}/{total} 耗时:{duration};",barCompleteChar:"█",barIncompleteChar:"░",stopOnComplete:!0});i.start(e.length,0);for(let a=0;a<e.length;a++){const n=e[a];i.update(a+1);const s=m.getFileTr(n);c={...c,...s}}i.stop(),console.log(S.green(a+"\n完成")+"\n")}c=u.mergeConfig(c,r),o(i,c),n&&await async function(e){console.log(S.bgYellow("翻译目标语言:"+e)+"\n");const a=s(e);let n={};const t=new ts.SingleBar({format:"进度 {bar} {percentage}% total:{value}/{total} 耗时:{duration};",barCompleteChar:"█",barIncompleteChar:"░",stopOnComplete:!0});t.start(p.length,0);try{for(let a=0;a<p.length;a++){const s=p[a];t.update(a+1);const o=m.getFileTr(s),r=Object.keys(o).map((e=>({key:o[e],keyword:o[e]})));for(const{key:a,keyword:s}of r){const o=await Es(s,i,e);n[a]=o}}n=u.mergeConfig(n,a),o(e,n),t.stop(),console.log(S.green("翻译完成")+"\n")}catch(e){console.warn("Error: i18n translate error",e)}}(n)},Ts={appid:"20190222000269988",key:"LGFk8C3pgW8GBvyG5MrS"};function Es(e,a,i){const n=e.split(/\${\d+}/g).filter((e=>!!e.replace(/s+/g,""))),s=(new Date).getTime(),o=n.join("\n"),t=Ts.appid+o+s+Ts.key,r=ws(t);return zn.post("http://api.fanyi.baidu.com/api/trans/vip/translate",{q:o,from:a,to:i,appid:Ts.appid,salt:s,sign:r,domain:"machinery"},{headers:{"content-type":"application/x-www-form-urlencoded;charset=utf-8"}}).then((e=>e.data)).then((a=>{if(console.log("data",a),a.error_msg)throw new Error(a.error_code+":"+a.error_msg);return function(){const i=e.match(/\${\d+}/g),s=[];for(let e=0;e<a?.trans_result.length;e++)""!==n[e]&&s.push(a?.trans_result?.[e].dst),i&&e<i?.length&&s.push(i[e]);return s}().join("")}))}exports.color=S,exports.i18n=(e="zh",a)=>{const i=process.cwd();let n=new l.Config({cwd:i}).getUserConfig(),s=[i];s=[...s,...n.locales||[]],s=Array.from(new Set(s.flat()));const o=d.resolve(i);_s(s,o,e,a)};
|
package/lib/cli/i18n/utils.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";var
|
|
2
|
+
"use strict";var r=require("../create/config/index.js"),e=require("fs"),t=require("path"),i={exports:{}};const s=e.promises,a=t,o=new Error("skip this directory"),n={withFileTypes:!0},c=r=>r,l=async(r,e,t)=>{let i;if(!t){let e=a.basename(a.resolve(r));(t=await s.lstat(r).catch(c))instanceof Error?i=t:t.name=e}if(i=await e(i,r,t).catch(c),!1===i||o===i)return;if(i instanceof Error)throw i;if(!t.isDirectory())return;let f=await s.readdir(r,n).catch(c);if(f instanceof Error)return e(f,r,t);for(let t of f)await l(a.join(r,t.name),e,t)};var f={walk:l,skipDir:o};const u=e.promises,p=f,m=t,w={withFileTypes:!0},h={},x=r=>r;p.create=function(r){r||(r=h);const e=async(t,i,s)=>{let a,o;if(s||(s=t),"string"==typeof s){let r=m.basename(m.resolve(t));(s=await u.lstat(t).catch(x))instanceof Error?a=s:s.name=r}if(a=await i(a,t,s).catch(x),!1===a||p.skipDir===a)return;if(a instanceof Error)throw a;if(!s||!s.isDirectory())return;r.withFileStats||(o=w);let n=await u.readdir(t,o).catch(x);if(n instanceof Error)return i(n,t,s);r.sort&&(n=r.sort(n));for(let r of n)await e(m.join(t,r.name||r),i,r)};return e};var y=p;i.exports=f,i.exports.create=y.create;var d=i.exports,g=r.getDefaultExportFromCjs(d);exports.getFileList=function(r,e=[]){const t=[...e],i=g.create({sort:r=>r.filter((r=>!t.includes(r.name)))});return new Promise((e=>{let t=[];i(r,((r,e,i)=>r?(console.log("err: ",r),t):(!i.isDirectory()&&/\.[j|t]sx?$/.test(i.name)&&t.push(e),Promise.resolve(t)))).then((()=>e(t)))}))},exports.getFileTr=function(r){const t=e.readFileSync(r,"utf8"),i=/\btr\s*\(([^)]*)\)/g;let s;const a={};for(;null!==(s=i.exec(t));){const r=s[1].trim().split(",").map((r=>r.trim()))[0].replace(/\'/g,"");a[r]=r}return a};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gant-core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.33",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/core/index.js",
|
|
6
6
|
"types": "lib/types/index.d.ts",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "cross-env NODE_ENV=production rollup --config rollup.config.js",
|
|
12
12
|
"dev": "cross-env NODE_ENV=development rollup --config rollup.config.js --watch",
|
|
13
|
-
"tag-publish": "NPM_TOKEN=
|
|
13
|
+
"tag-publish": "NPM_TOKEN=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 npm publish"
|
|
14
14
|
},
|
|
15
15
|
"author": "vvey",
|
|
16
16
|
"license": "ISC",
|