@robotical/martyblocks
Version:
MartyBlocks based on Scratch for Marty the Robot by Robotical
1 lines • 290 kB
JavaScript
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.transifexApi=n():e.transifexApi=n()}(global,(()=>(()=>{var e={717:(e,n,a)=>{var i;global,i=()=>(()=>{var e={9118:(e,n,a)=>{e.exports={parallel:a(9162),serial:a(1357),serialOrdered:a(9087)}},7651:e=>{function n(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}e.exports=function(e){Object.keys(e.jobs).forEach(n.bind(e)),e.jobs={}}},5912:(e,n,a)=>{var i=a(9265);e.exports=function(e){var n=!1;return i((function(){n=!0})),function(a,t){n?e(a,t):i((function(){e(a,t)}))}}},9265:e=>{e.exports=function(e){var n="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;n?n(e):setTimeout(e,0)}},7594:(e,n,a)=>{var i=a(5912),t=a(7651);e.exports=function(e,n,a,o){var s=a.keyedList?a.keyedList[a.index]:a.index;a.jobs[s]=function(e,n,a,t){return 2==e.length?e(a,i(t)):e(a,n,i(t))}(n,s,e[s],(function(e,n){s in a.jobs&&(delete a.jobs[s],e?t(a):a.results[s]=n,o(e,a.results))}))}},4528:e=>{e.exports=function(e,n){var a=!Array.isArray(e),i={index:0,keyedList:a||n?Object.keys(e):null,jobs:{},results:a?{}:[],size:a?Object.keys(e).length:e.length};return n&&i.keyedList.sort(a?n:function(a,i){return n(e[a],e[i])}),i}},5353:(e,n,a)=>{var i=a(7651),t=a(5912);e.exports=function(e){Object.keys(this.jobs).length&&(this.index=this.size,i(this),t(e)(null,this.results))}},9162:(e,n,a)=>{var i=a(7594),t=a(4528),o=a(5353);e.exports=function(e,n,a){for(var s=t(e);s.index<(s.keyedList||e).length;)i(e,n,s,(function(e,n){e?a(e,n):0!==Object.keys(s.jobs).length||a(null,s.results)})),s.index++;return o.bind(s,a)}},1357:(e,n,a)=>{var i=a(9087);e.exports=function(e,n,a){return i(e,n,null,a)}},9087:(e,n,a)=>{var i=a(7594),t=a(4528),o=a(5353);function s(e,n){return e<n?-1:e>n?1:0}e.exports=function(e,n,a,s){var r=t(e,a);return i(e,n,r,(function a(t,o){t?s(t,o):(r.index++,r.index<(r.keyedList||e).length?i(e,n,r,a):s(null,r.results))})),o.bind(r,s)},e.exports.ascending=s,e.exports.descending=function(e,n){return-1*s(e,n)}},9669:(e,n,a)=>{e.exports=a(1609)},7970:(e,n,a)=>{"use strict";var i=a(4867),t=a(6026),o=a(4097),s=a(5327),r=a(3685),c=a(5687),p=a(938).http,u=a(938).https,l=a(7310),d=a(9796),m=a(7288).version,f=a(7874),x=a(2648),v=a(644),h=/https:?/,b=["http:","https:","file:"];function g(e,n,a){if(e.hostname=n.host,e.host=n.host,e.port=n.port,e.path=a,n.auth){var i=Buffer.from(n.auth.username+":"+n.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+i}e.beforeRedirect=function(e){e.headers.host=e.host,g(e,n,e.href)}}e.exports=function(e){return new Promise((function(n,a){var y;function _(){e.cancelToken&&e.cancelToken.unsubscribe(y),e.signal&&e.signal.removeEventListener("abort",y)}var w=function(e){_(),n(e)},j=!1,k=function(e){_(),j=!0,a(e)},E=e.data,R=e.headers,O={};if(Object.keys(R).forEach((function(e){O[e.toLowerCase()]=e})),"user-agent"in O?R[O["user-agent"]]||delete R[O["user-agent"]]:R["User-Agent"]="axios/"+m,i.isFormData(E)&&i.isFunction(E.getHeaders))Object.assign(R,E.getHeaders());else if(E&&!i.isStream(E)){if(Buffer.isBuffer(E));else if(i.isArrayBuffer(E))E=Buffer.from(new Uint8Array(E));else{if(!i.isString(E))return k(new x("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",x.ERR_BAD_REQUEST,e));E=Buffer.from(E,"utf-8")}if(e.maxBodyLength>-1&&E.length>e.maxBodyLength)return k(new x("Request body larger than maxBodyLength limit",x.ERR_BAD_REQUEST,e));O["content-length"]||(R["Content-Length"]=E.length)}var C=void 0;e.auth&&(C=(e.auth.username||"")+":"+(e.auth.password||""));var A=o(e.baseURL,e.url),T=l.parse(A),z=T.protocol||b[0];if(-1===b.indexOf(z))return k(new x("Unsupported protocol "+z,x.ERR_BAD_REQUEST,e));if(!C&&T.auth){var S=T.auth.split(":");C=(S[0]||"")+":"+(S[1]||"")}C&&O.authorization&&delete R[O.authorization];var P=h.test(z),q=P?e.httpsAgent:e.httpAgent;try{s(T.path,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(n){var I=new Error(n.message);I.config=e,I.url=e.url,I.exists=!0,k(I)}var L={path:s(T.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:R,agent:q,agents:{http:e.httpAgent,https:e.httpsAgent},auth:C};e.socketPath?L.socketPath=e.socketPath:(L.hostname=T.hostname,L.port=T.port);var F,B=e.proxy;if(!B&&!1!==B){var U=z.slice(0,-1)+"_proxy",D=process.env[U]||process.env[U.toUpperCase()];if(D){var N=l.parse(D),M=process.env.no_proxy||process.env.NO_PROXY,$=!0;if(M&&($=!M.split(",").map((function(e){return e.trim()})).some((function(e){return!!e&&("*"===e||"."===e[0]&&T.hostname.substr(T.hostname.length-e.length)===e||T.hostname===e)}))),$&&(B={host:N.hostname,port:N.port,protocol:N.protocol},N.auth)){var W=N.auth.split(":");B.auth={username:W[0],password:W[1]}}}}B&&(L.headers.host=T.hostname+(T.port?":"+T.port:""),g(L,B,z+"//"+T.hostname+(T.port?":"+T.port:"")+L.path));var Y=P&&(!B||h.test(B.protocol));e.transport?F=e.transport:0===e.maxRedirects?F=Y?c:r:(e.maxRedirects&&(L.maxRedirects=e.maxRedirects),e.beforeRedirect&&(L.beforeRedirect=e.beforeRedirect),F=Y?u:p),e.maxBodyLength>-1&&(L.maxBodyLength=e.maxBodyLength),e.insecureHTTPParser&&(L.insecureHTTPParser=e.insecureHTTPParser);var H=F.request(L,(function(n){if(!H.aborted){var a=n,o=n.req||H;if(204!==n.statusCode&&"HEAD"!==o.method&&!1!==e.decompress)switch(n.headers["content-encoding"]){case"gzip":case"compress":case"deflate":a=a.pipe(d.createUnzip()),delete n.headers["content-encoding"]}var s={status:n.statusCode,statusText:n.statusMessage,headers:n.headers,config:e,request:o};if("stream"===e.responseType)s.data=a,t(w,k,s);else{var r=[],c=0;a.on("data",(function(n){r.push(n),c+=n.length,e.maxContentLength>-1&&c>e.maxContentLength&&(j=!0,a.destroy(),k(new x("maxContentLength size of "+e.maxContentLength+" exceeded",x.ERR_BAD_RESPONSE,e,o)))})),a.on("aborted",(function(){j||(a.destroy(),k(new x("maxContentLength size of "+e.maxContentLength+" exceeded",x.ERR_BAD_RESPONSE,e,o)))})),a.on("error",(function(n){H.aborted||k(x.from(n,null,e,o))})),a.on("end",(function(){try{var n=1===r.length?r[0]:Buffer.concat(r);"arraybuffer"!==e.responseType&&(n=n.toString(e.responseEncoding),e.responseEncoding&&"utf8"!==e.responseEncoding||(n=i.stripBOM(n))),s.data=n}catch(n){k(x.from(n,null,e,s.request,s))}t(w,k,s)}))}}}));if(H.on("error",(function(n){k(x.from(n,null,e,H))})),H.on("socket",(function(e){e.setKeepAlive(!0,6e4)})),e.timeout){var J=parseInt(e.timeout,10);if(isNaN(J))return void k(new x("error trying to parse `config.timeout` to int",x.ERR_BAD_OPTION_VALUE,e,H));H.setTimeout(J,(function(){H.abort();var n=e.transitional||f;k(new x("timeout of "+J+"ms exceeded",n.clarifyTimeoutError?x.ETIMEDOUT:x.ECONNABORTED,e,H))}))}(e.cancelToken||e.signal)&&(y=function(e){H.aborted||(H.abort(),k(!e||e&&e.type?new v:e))},e.cancelToken&&e.cancelToken.subscribe(y),e.signal&&(e.signal.aborted?y():e.signal.addEventListener("abort",y))),i.isStream(E)?E.on("error",(function(n){k(x.from(n,e,null,H))})).pipe(H):H.end(E)}))}},5448:(e,n,a)=>{"use strict";var i=a(4867),t=a(6026),o=a(4372),s=a(5327),r=a(4097),c=a(4109),p=a(7985),u=a(7874),l=a(2648),d=a(644),m=a(205);e.exports=function(e){return new Promise((function(n,a){var f,x=e.data,v=e.headers,h=e.responseType;function b(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}i.isFormData(x)&&i.isStandardBrowserEnv()&&delete v["Content-Type"];var g=new XMLHttpRequest;if(e.auth){var y=e.auth.username||"",_=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(y+":"+_)}var w=r(e.baseURL,e.url);function j(){if(g){var i="getAllResponseHeaders"in g?c(g.getAllResponseHeaders()):null,o={data:h&&"text"!==h&&"json"!==h?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:i,config:e,request:g};t((function(e){n(e),b()}),(function(e){a(e),b()}),o),g=null}}if(g.open(e.method.toUpperCase(),s(w,e.params,e.paramsSerializer),!0),g.timeout=e.timeout,"onloadend"in g?g.onloadend=j:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(j)},g.onabort=function(){g&&(a(new l("Request aborted",l.ECONNABORTED,e,g)),g=null)},g.onerror=function(){a(new l("Network Error",l.ERR_NETWORK,e,g,g)),g=null},g.ontimeout=function(){var n=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",i=e.transitional||u;e.timeoutErrorMessage&&(n=e.timeoutErrorMessage),a(new l(n,i.clarifyTimeoutError?l.ETIMEDOUT:l.ECONNABORTED,e,g)),g=null},i.isStandardBrowserEnv()){var k=(e.withCredentials||p(w))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;k&&(v[e.xsrfHeaderName]=k)}"setRequestHeader"in g&&i.forEach(v,(function(e,n){void 0===x&&"content-type"===n.toLowerCase()?delete v[n]:g.setRequestHeader(n,e)})),i.isUndefined(e.withCredentials)||(g.withCredentials=!!e.withCredentials),h&&"json"!==h&&(g.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&g.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&g.upload&&g.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(f=function(e){g&&(a(!e||e&&e.type?new d:e),g.abort(),g=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f))),x||(x=null);var E=m(w);E&&-1===["http","https","file"].indexOf(E)?a(new l("Unsupported protocol "+E+":",l.ERR_BAD_REQUEST,e)):g.send(x)}))}},1609:(e,n,a)=>{"use strict";var i=a(4867),t=a(1849),o=a(321),s=a(7185),r=function e(n){var a=new o(n),r=t(o.prototype.request,a);return i.extend(r,o.prototype,a),i.extend(r,a),r.create=function(a){return e(s(n,a))},r}(a(5546));r.Axios=o,r.CanceledError=a(644),r.CancelToken=a(4972),r.isCancel=a(6502),r.VERSION=a(7288).version,r.toFormData=a(7675),r.AxiosError=a(2648),r.Cancel=r.CanceledError,r.all=function(e){return Promise.all(e)},r.spread=a(8713),r.isAxiosError=a(6268),e.exports=r,e.exports.default=r},4972:(e,n,a)=>{"use strict";var i=a(644);function t(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var n;this.promise=new Promise((function(e){n=e}));var a=this;this.promise.then((function(e){if(a._listeners){var n,i=a._listeners.length;for(n=0;n<i;n++)a._listeners[n](e);a._listeners=null}})),this.promise.then=function(e){var n,i=new Promise((function(e){a.subscribe(e),n=e})).then(e);return i.cancel=function(){a.unsubscribe(n)},i},e((function(e){a.reason||(a.reason=new i(e),n(a.reason))}))}t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},t.prototype.unsubscribe=function(e){if(this._listeners){var n=this._listeners.indexOf(e);-1!==n&&this._listeners.splice(n,1)}},t.source=function(){var e;return{token:new t((function(n){e=n})),cancel:e}},e.exports=t},644:(e,n,a)=>{"use strict";var i=a(2648);function t(e){i.call(this,null==e?"canceled":e,i.ERR_CANCELED),this.name="CanceledError"}a(4867).inherits(t,i,{__CANCEL__:!0}),e.exports=t},6502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,n,a)=>{"use strict";var i=a(4867),t=a(5327),o=a(782),s=a(3572),r=a(7185),c=a(4097),p=a(4875),u=p.validators;function l(e){this.defaults=e,this.interceptors={request:new o,response:new o}}l.prototype.request=function(e,n){"string"==typeof e?(n=n||{}).url=e:n=e||{},(n=r(this.defaults,n)).method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var a=n.transitional;void 0!==a&&p.assertOptions(a,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var i=[],t=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(n)||(t=t&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));var o,c=[];if(this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)})),!t){var l=[s,void 0];for(Array.prototype.unshift.apply(l,i),l=l.concat(c),o=Promise.resolve(n);l.length;)o=o.then(l.shift(),l.shift());return o}for(var d=n;i.length;){var m=i.shift(),f=i.shift();try{d=m(d)}catch(e){f(e);break}}try{o=s(d)}catch(e){return Promise.reject(e)}for(;c.length;)o=o.then(c.shift(),c.shift());return o},l.prototype.getUri=function(e){e=r(this.defaults,e);var n=c(e.baseURL,e.url);return t(n,e.params,e.paramsSerializer)},i.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(n,a){return this.request(r(a||{},{method:e,url:n,data:(a||{}).data}))}})),i.forEach(["post","put","patch"],(function(e){function n(n){return function(a,i,t){return this.request(r(t||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}l.prototype[e]=n(),l.prototype[e+"Form"]=n(!0)})),e.exports=l},2648:(e,n,a)=>{"use strict";var i=a(4867);function t(e,n,a,i,t){Error.call(this),this.message=e,this.name="AxiosError",n&&(this.code=n),a&&(this.config=a),i&&(this.request=i),t&&(this.response=t)}i.inherits(t,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var o=t.prototype,s={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){s[e]={value:e}})),Object.defineProperties(t,s),Object.defineProperty(o,"isAxiosError",{value:!0}),t.from=function(e,n,a,s,r,c){var p=Object.create(o);return i.toFlatObject(e,p,(function(e){return e!==Error.prototype})),t.call(p,e.message,n,a,s,r),p.name=e.name,c&&Object.assign(p,c),p},e.exports=t},782:(e,n,a)=>{"use strict";var i=a(4867);function t(){this.handlers=[]}t.prototype.use=function(e,n,a){return this.handlers.push({fulfilled:e,rejected:n,synchronous:!!a&&a.synchronous,runWhen:a?a.runWhen:null}),this.handlers.length-1},t.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},t.prototype.forEach=function(e){i.forEach(this.handlers,(function(n){null!==n&&e(n)}))},e.exports=t},4097:(e,n,a)=>{"use strict";var i=a(1793),t=a(7303);e.exports=function(e,n){return e&&!i(n)?t(e,n):n}},3572:(e,n,a)=>{"use strict";var i=a(4867),t=a(8527),o=a(6502),s=a(5546),r=a(644);function c(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new r}e.exports=function(e){return c(e),e.headers=e.headers||{},e.data=t.call(e,e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),i.forEach(["delete","get","head","post","put","patch","common"],(function(n){delete e.headers[n]})),(e.adapter||s.adapter)(e).then((function(n){return c(e),n.data=t.call(e,n.data,n.headers,e.transformResponse),n}),(function(n){return o(n)||(c(e),n&&n.response&&(n.response.data=t.call(e,n.response.data,n.response.headers,e.transformResponse))),Promise.reject(n)}))}},7185:(e,n,a)=>{"use strict";var i=a(4867);e.exports=function(e,n){n=n||{};var a={};function t(e,n){return i.isPlainObject(e)&&i.isPlainObject(n)?i.merge(e,n):i.isPlainObject(n)?i.merge({},n):i.isArray(n)?n.slice():n}function o(a){return i.isUndefined(n[a])?i.isUndefined(e[a])?void 0:t(void 0,e[a]):t(e[a],n[a])}function s(e){if(!i.isUndefined(n[e]))return t(void 0,n[e])}function r(a){return i.isUndefined(n[a])?i.isUndefined(e[a])?void 0:t(void 0,e[a]):t(void 0,n[a])}function c(a){return a in n?t(e[a],n[a]):a in e?t(void 0,e[a]):void 0}var p={url:s,method:s,data:s,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:c};return i.forEach(Object.keys(e).concat(Object.keys(n)),(function(e){var n=p[e]||o,t=n(e);i.isUndefined(t)&&n!==c||(a[e]=t)})),a}},6026:(e,n,a)=>{"use strict";var i=a(2648);e.exports=function(e,n,a){var t=a.config.validateStatus;a.status&&t&&!t(a.status)?n(new i("Request failed with status code "+a.status,[i.ERR_BAD_REQUEST,i.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a)):e(a)}},8527:(e,n,a)=>{"use strict";var i=a(4867),t=a(5546);e.exports=function(e,n,a){var o=this||t;return i.forEach(a,(function(a){e=a.call(o,e,n)})),e}},3784:(e,n,a)=>{e.exports=a(6882)},5546:(e,n,a)=>{"use strict";var i=a(4867),t=a(6016),o=a(2648),s=a(7874),r=a(7675),c={"Content-Type":"application/x-www-form-urlencoded"};function p(e,n){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=n)}var u,l={transitional:s,adapter:("undefined"!=typeof XMLHttpRequest?u=a(5448):"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(u=a(7970)),u),transformRequest:[function(e,n){if(t(n,"Accept"),t(n,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e))return e;if(i.isArrayBufferView(e))return e.buffer;if(i.isURLSearchParams(e))return p(n,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var a,o=i.isObject(e),s=n&&n["Content-Type"];if((a=i.isFileList(e))||o&&"multipart/form-data"===s){var c=this.env&&this.env.FormData;return r(a?{"files[]":e}:e,c&&new c)}return o||"application/json"===s?(p(n,"application/json"),function(e,n,a){if(i.isString(e))try{return(0,JSON.parse)(e),i.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var n=this.transitional||l.transitional,a=n&&n.silentJSONParsing,t=n&&n.forcedJSONParsing,s=!a&&"json"===this.responseType;if(s||t&&i.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(s){if("SyntaxError"===e.name)throw o.from(e,o.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:a(3784)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),i.forEach(["post","put","patch"],(function(e){l.headers[e]=i.merge(c)})),e.exports=l},7874:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},7288:e=>{e.exports={version:"0.27.2"}},1849:e=>{"use strict";e.exports=function(e,n){return function(){for(var a=new Array(arguments.length),i=0;i<a.length;i++)a[i]=arguments[i];return e.apply(n,a)}}},5327:(e,n,a)=>{"use strict";var i=a(4867);function t(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,n,a){if(!n)return e;var o;if(a)o=a(n);else if(i.isURLSearchParams(n))o=n.toString();else{var s=[];i.forEach(n,(function(e,n){null!=e&&(i.isArray(e)?n+="[]":e=[e],i.forEach(e,(function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),s.push(t(n)+"="+t(e))})))})),o=s.join("&")}if(o){var r=e.indexOf("#");-1!==r&&(e=e.slice(0,r)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},7303:e=>{"use strict";e.exports=function(e,n){return n?e.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):e}},4372:(e,n,a)=>{"use strict";var i=a(4867);e.exports=i.isStandardBrowserEnv()?{write:function(e,n,a,t,o,s){var r=[];r.push(e+"="+encodeURIComponent(n)),i.isNumber(a)&&r.push("expires="+new Date(a).toGMTString()),i.isString(t)&&r.push("path="+t),i.isString(o)&&r.push("domain="+o),!0===s&&r.push("secure"),document.cookie=r.join("; ")},read:function(e){var n=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},6268:(e,n,a)=>{"use strict";var i=a(4867);e.exports=function(e){return i.isObject(e)&&!0===e.isAxiosError}},7985:(e,n,a)=>{"use strict";var i=a(4867);e.exports=i.isStandardBrowserEnv()?function(){var e,n=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");function t(e){var i=e;return n&&(a.setAttribute("href",i),i=a.href),a.setAttribute("href",i),{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 e=t(window.location.href),function(n){var a=i.isString(n)?t(n):n;return a.protocol===e.protocol&&a.host===e.host}}():function(){return!0}},6016:(e,n,a)=>{"use strict";var i=a(4867);e.exports=function(e,n){i.forEach(e,(function(a,i){i!==n&&i.toUpperCase()===n.toUpperCase()&&(e[n]=a,delete e[i])}))}},4109:(e,n,a)=>{"use strict";var i=a(4867),t=["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"];e.exports=function(e){var n,a,o,s={};return e?(i.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),n=i.trim(e.substr(0,o)).toLowerCase(),a=i.trim(e.substr(o+1)),n){if(s[n]&&t.indexOf(n)>=0)return;s[n]="set-cookie"===n?(s[n]?s[n]:[]).concat([a]):s[n]?s[n]+", "+a:a}})),s):s}},205:e=>{"use strict";e.exports=function(e){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}},8713:e=>{"use strict";e.exports=function(e){return function(n){return e.apply(null,n)}}},7675:(e,n,a)=>{"use strict";var i=a(4867);e.exports=function(e,n){n=n||new FormData;var a=[];function t(e){return null===e?"":i.isDate(e)?e.toISOString():i.isArrayBuffer(e)||i.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(o,s){if(i.isPlainObject(o)||i.isArray(o)){if(-1!==a.indexOf(o))throw Error("Circular reference detected in "+s);a.push(o),i.forEach(o,(function(a,o){if(!i.isUndefined(a)){var r,c=s?s+"."+o:o;if(a&&!s&&"object"==typeof a)if(i.endsWith(o,"{}"))a=JSON.stringify(a);else if(i.endsWith(o,"[]")&&(r=i.toArray(a)))return void r.forEach((function(e){!i.isUndefined(e)&&n.append(c,t(e))}));e(a,c)}})),a.pop()}else n.append(s,t(o))}(e),n}},4875:(e,n,a)=>{"use strict";var i=a(7288).version,t=a(2648),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,n){o[e]=function(a){return typeof a===e||"a"+(n<1?"n ":" ")+e}}));var s={};o.transitional=function(e,n,a){function o(e,n){return"[Axios v"+i+"] Transitional option '"+e+"'"+n+(a?". "+a:"")}return function(a,i,r){if(!1===e)throw new t(o(i," has been removed"+(n?" in "+n:"")),t.ERR_DEPRECATED);return n&&!s[i]&&(s[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),!e||e(a,i,r)}},e.exports={assertOptions:function(e,n,a){if("object"!=typeof e)throw new t("options must be an object",t.ERR_BAD_OPTION_VALUE);for(var i=Object.keys(e),o=i.length;o-- >0;){var s=i[o],r=n[s];if(r){var c=e[s],p=void 0===c||r(c,s,e);if(!0!==p)throw new t("option "+s+" must be "+p,t.ERR_BAD_OPTION_VALUE)}else if(!0!==a)throw new t("Unknown option "+s,t.ERR_BAD_OPTION)}},validators:o}},4867:(e,n,a)=>{"use strict";var i,t=a(1849),o=Object.prototype.toString,s=(i=Object.create(null),function(e){var n=o.call(e);return i[n]||(i[n]=n.slice(8,-1).toLowerCase())});function r(e){return e=e.toLowerCase(),function(n){return s(n)===e}}function c(e){return Array.isArray(e)}function p(e){return void 0===e}var u=r("ArrayBuffer");function l(e){return null!==e&&"object"==typeof e}function d(e){if("object"!==s(e))return!1;var n=Object.getPrototypeOf(e);return null===n||n===Object.prototype}var m=r("Date"),f=r("File"),x=r("Blob"),v=r("FileList");function h(e){return"[object Function]"===o.call(e)}var b=r("URLSearchParams");function g(e,n){if(null!=e)if("object"!=typeof e&&(e=[e]),c(e))for(var a=0,i=e.length;a<i;a++)n.call(null,e[a],a,e);else for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.call(null,e[t],t,e)}var y,_=(y="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return y&&e instanceof y});e.exports={isArray:c,isArrayBuffer:u,isBuffer:function(e){return null!==e&&!p(e)&&null!==e.constructor&&!p(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var n="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||o.call(e)===n||h(e.toString)&&e.toString()===n)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&u(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:l,isPlainObject:d,isUndefined:p,isDate:m,isFile:f,isBlob:x,isFunction:h,isStream:function(e){return l(e)&&h(e.pipe)},isURLSearchParams:b,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:g,merge:function e(){var n={};function a(a,i){d(n[i])&&d(a)?n[i]=e(n[i],a):d(a)?n[i]=e({},a):c(a)?n[i]=a.slice():n[i]=a}for(var i=0,t=arguments.length;i<t;i++)g(arguments[i],a);return n},extend:function(e,n,a){return g(n,(function(n,i){e[i]=a&&"function"==typeof n?t(n,a):n})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,n,a,i){e.prototype=Object.create(n.prototype,i),e.prototype.constructor=e,a&&Object.assign(e.prototype,a)},toFlatObject:function(e,n,a){var i,t,o,s={};n=n||{};do{for(t=(i=Object.getOwnPropertyNames(e)).length;t-- >0;)s[o=i[t]]||(n[o]=e[o],s[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!a||a(e,n))&&e!==Object.prototype);return n},kindOf:s,kindOfTest:r,endsWith:function(e,n,a){e=String(e),(void 0===a||a>e.length)&&(a=e.length),a-=n.length;var i=e.indexOf(n,a);return-1!==i&&i===a},toArray:function(e){if(!e)return null;var n=e.length;if(p(n))return null;for(var a=new Array(n);n-- >0;)a[n]=e[n];return a},isTypedArray:_,isFileList:v}},9779:(e,n,a)=>{var i=a(3837),t=a(2781).Stream,o=a(3463);function s(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}e.exports=s,i.inherits(s,t),s.create=function(e){var n=new this;for(var a in e=e||{})n[a]=e[a];return n},s.isStreamLike=function(e){return"function"!=typeof e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e&&!Buffer.isBuffer(e)},s.prototype.append=function(e){if(s.isStreamLike(e)){if(!(e instanceof o)){var n=o.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=n}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this},s.prototype.pipe=function(e,n){return t.prototype.pipe.call(this,e,n),this.resume(),e},s.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop)this._pendingNext=!0;else{this._insideLoop=!0;try{do{this._pendingNext=!1,this._realGetNext()}while(this._pendingNext)}finally{this._insideLoop=!1}}},s.prototype._realGetNext=function(){var e=this._streams.shift();void 0!==e?"function"==typeof e?e(function(e){s.isStreamLike(e)&&(e.on("data",this._checkDataSize.bind(this)),this._handleErrors(e)),this._pipeNext(e)}.bind(this)):this._pipeNext(e):this.end()},s.prototype._pipeNext=function(e){if(this._currentStream=e,s.isStreamLike(e))return e.on("end",this._getNext.bind(this)),void e.pipe(this,{end:!1});var n=e;this.write(n),this._getNext()},s.prototype._handleErrors=function(e){var n=this;e.on("error",(function(e){n._emitError(e)}))},s.prototype.write=function(e){this.emit("data",e)},s.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.pause&&this._currentStream.pause(),this.emit("pause"))},s.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.resume&&this._currentStream.resume(),this.emit("resume")},s.prototype.end=function(){this._reset(),this.emit("end")},s.prototype.destroy=function(){this._reset(),this.emit("close")},s.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},s.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}},s.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach((function(n){n.dataSize&&(e.dataSize+=n.dataSize)})),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},s.prototype._emitError=function(e){this._reset(),this.emit("error",e)}},1227:(e,n,a)=>{n.formatArgs=function(n){if(n[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+n[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const a="color: "+this.color;n.splice(1,0,a,"color: inherit");let i=0,t=0;n[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(i++,"%c"===e&&(t=i))})),n.splice(t,0,a)},n.save=function(e){try{e?n.storage.setItem("debug",e):n.storage.removeItem("debug")}catch(e){}},n.load=function(){let e;try{e=n.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},n.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("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+)/))},n.storage=function(){try{return localStorage}catch(e){}}(),n.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],n.log=console.debug||console.log||(()=>{}),e.exports=a(2447)(n);const{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2447:(e,n,a)=>{e.exports=function(e){function n(e){let a,t,o,s=null;function r(...e){if(!r.enabled)return;const i=r,t=Number(new Date),o=t-(a||t);i.diff=o,i.prev=a,i.curr=t,a=t,e[0]=n.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((a,t)=>{if("%%"===a)return"%";s++;const o=n.formatters[t];if("function"==typeof o){const n=e[s];a=o.call(i,n),e.splice(s,1),s--}return a})),n.formatArgs.call(i,e),(i.log||n.log).apply(i,e)}return r.namespace=e,r.useColors=n.useColors(),r.color=n.selectColor(e),r.extend=i,r.destroy=n.destroy,Object.defineProperty(r,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(t!==n.namespaces&&(t=n.namespaces,o=n.enabled(e)),o),set:e=>{s=e}}),"function"==typeof n.init&&n.init(r),r}function i(e,a){const i=n(this.namespace+(void 0===a?":":a)+e);return i.log=this.log,i}function t(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return n.debug=n,n.default=n,n.coerce=function(e){return e instanceof Error?e.stack||e.message:e},n.disable=function(){const e=[...n.names.map(t),...n.skips.map(t).map((e=>"-"+e))].join(",");return n.enable(""),e},n.enable=function(e){let a;n.save(e),n.namespaces=e,n.names=[],n.skips=[];const i=("string"==typeof e?e:"").split(/[\s,]+/),t=i.length;for(a=0;a<t;a++)i[a]&&("-"===(e=i[a].replace(/\*/g,".*?"))[0]?n.skips.push(new RegExp("^"+e.slice(1)+"$")):n.names.push(new RegExp("^"+e+"$")))},n.enabled=function(e){if("*"===e[e.length-1])return!0;let a,i;for(a=0,i=n.skips.length;a<i;a++)if(n.skips[a].test(e))return!1;for(a=0,i=n.names.length;a<i;a++)if(n.names[a].test(e))return!0;return!1},n.humanize=a(7824),n.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((a=>{n[a]=e[a]})),n.names=[],n.skips=[],n.formatters={},n.selectColor=function(e){let a=0;for(let n=0;n<e.length;n++)a=(a<<5)-a+e.charCodeAt(n),a|=0;return n.colors[Math.abs(a)%n.colors.length]},n.enable(n.load()),n}},5158:(e,n,a)=>{"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=a(1227):e.exports=a(39)},39:(e,n,a)=>{const i=a(6224),t=a(3837);n.init=function(e){e.inspectOpts={};const a=Object.keys(n.inspectOpts);for(let i=0;i<a.length;i++)e.inspectOpts[a[i]]=n.inspectOpts[a[i]]},n.log=function(...e){return process.stderr.write(t.format(...e)+"\n")},n.formatArgs=function(a){const{namespace:i,useColors:t}=this;if(t){const n=this.color,t="[3"+(n<8?n:"8;5;"+n),o=` ${t};1m${i} [0m`;a[0]=o+a[0].split("\n").join("\n"+o),a.push(t+"m+"+e.exports.humanize(this.diff)+"[0m")}else a[0]=(n.inspectOpts.hideDate?"":(new Date).toISOString()+" ")+i+" "+a[0]},n.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},n.load=function(){return process.env.DEBUG},n.useColors=function(){return"colors"in n.inspectOpts?Boolean(n.inspectOpts.colors):i.isatty(process.stderr.fd)},n.destroy=t.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),n.colors=[6,2,3,4,5,1];try{const e=a(2130);e&&(e.stderr||e).level>=2&&(n.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}n.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,n)=>{const a=n.substring(6).toLowerCase().replace(/_([a-z])/g,((e,n)=>n.toUpperCase()));let i=process.env[n];return i=!!/^(yes|on|true|enabled)$/i.test(i)||!/^(no|off|false|disabled)$/i.test(i)&&("null"===i?null:Number(i)),e[a]=i,e}),{}),e.exports=a(2447)(n);const{formatters:o}=e.exports;o.o=function(e){return this.inspectOpts.colors=this.useColors,t.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},o.O=function(e){return this.inspectOpts.colors=this.useColors,t.inspect(e,this.inspectOpts)}},3463:(e,n,a)=>{var i=a(2781).Stream,t=a(3837);function o(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}e.exports=o,t.inherits(o,i),o.create=function(e,n){var a=new this;for(var i in n=n||{})a[i]=n[i];a.source=e;var t=e.emit;return e.emit=function(){return a._handleEmit(arguments),t.apply(e,arguments)},e.on("error",(function(){})),a.pauseStream&&e.pause(),a},Object.defineProperty(o.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),o.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},o.prototype.resume=function(){this._released||this.release(),this.source.resume()},o.prototype.pause=function(){this.source.pause()},o.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]},o.prototype.pipe=function(){var e=i.prototype.pipe.apply(this,arguments);return this.resume(),e},o.prototype._handleEmit=function(e){this._released?this.emit.apply(this,e):("data"===e[0]&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e))},o.prototype._checkIfMaxDataSizeExceeded=function(){if(!(this._maxDataSizeExceeded||this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}}},2261:(e,n,a)=>{var i;e.exports=function(){if(!i){try{i=a(5158)("follow-redirects")}catch(e){}"function"!=typeof i&&(i=function(){})}i.apply(null,arguments)}},938:(e,n,a)=>{var i=a(7310),t=i.URL,o=a(3685),s=a(5687),r=a(2781).Writable,c=a(9491),p=a(2261),u=["abort","aborted","connect","error","socket","timeout"],l=Object.create(null);u.forEach((function(e){l[e]=function(n,a,i){this._redirectable.emit(e,n,a,i)}}));var d=w("ERR_INVALID_URL","Invalid URL",TypeError),m=w("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),f=w("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),x=w("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),v=w("ERR_STREAM_WRITE_AFTER_END","write after end");function h(e,n){r.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],n&&this.on("response",n);var a=this;this._onNativeResponse=function(e){a._processResponse(e)},this._performRequest()}function b(e){var n={maxRedirects:21,maxBodyLength:10485760},a={};return Object.keys(e).forEach((function(o){var s=o+":",r=a[s]=e[o],u=n[o]=Object.create(r);Object.defineProperties(u,{request:{value:function(e,o,r){if(k(e)){var u;try{u=y(new t(e))}catch(n){u=i.parse(e)}if(!k(u.protocol))throw new d({input:e});e=u}else t&&e instanceof t?e=y(e):(r=o,o=e,e={protocol:s});return E(o)&&(r=o,o=null),(o=Object.assign({maxRedirects:n.maxRedirects,maxBodyLength:n.maxBodyLength},e,o)).nativeProtocols=a,k(o.host)||k(o.hostname)||(o.hostname="::1"),c.equal(o.protocol,s,"protocol mismatch"),p("options",o),new h(o,r)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,n,a){var i=u.request(e,n,a);return i.end(),i},configurable:!0,enumerable:!0,writable:!0}})})),n}function g(){}function y(e){var n={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return""!==e.port&&(n.port=Number(e.port)),n}function _(e,n){var a;for(var i in n)e.test(i)&&(a=n[i],delete n[i]);return null==a?void 0:String(a).trim()}function w(e,n,a){function i(a){Error.captureStackTrace(this,this.constructor),Object.assign(this,a||{}),this.code=e,this.message=this.cause?n+": "+this.cause.message:n}return i.prototype=new(a||Error),i.prototype.constructor=i,i.prototype.name="Error ["+e+"]",i}function j(e){for(var n of u)e.removeListener(n,l[n]);e.on("error",g),e.abort()}function k(e){return"string"==typeof e||e instanceof String}function E(e){return"function"==typeof e}h.prototype=Object.create(r.prototype),h.prototype.abort=function(){j(this._currentRequest),this.emit("abort")},h.prototype.write=function(e,n,a){if(this._ending)throw new v;if(!(k(e)||"object"==typeof(i=e)&&"length"in i))throw new TypeError("data should be a string, Buffer or Uint8Array");var i;E(n)&&(a=n,n=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:n}),this._currentRequest.write(e,n,a)):(this.emit("error",new x),this.abort()):a&&a()},h.prototype.end=function(e,n,a){if(E(e)?(a=e,e=n=null):E(n)&&(a=n,n=null),e){var i=this,t=this._currentRequest;this.write(e,n,(function(){i._ended=!0,t.end(null,null,a)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,a)},h.prototype.setHeader=function(e,n){this._options.headers[e]=n,this._currentRequest.setHeader(e,n)},h.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},h.prototype.setTimeout=function(e,n){var a=this;function i(n){n.setTimeout(e),n.removeListener("timeout",n.destroy),n.addListener("timeout",n.destroy)}function t(n){a._timeout&&clearTimeout(a._timeout),a._timeout=setTimeout((function(){a.emit("timeout"),o()}),e),i(n)}function o(){a._timeout&&(clearTimeout(a._timeout),a._timeout=null),a.removeListener("abort",o),a.removeListener("error",o),a.removeListener("response",o),n&&a.removeListener("timeout",n),a.socket||a._currentRequest.removeListener("socket",t)}return n&&this.on("timeout",n),this.socket?t(this.socket):this._currentRequest.once("socket",t),this.on("socket",i),this.on("abort",o),this.on("error",o),this.on("response",o),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){h.prototype[e]=function(n,a){return this._currentRequest[e](n,a)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(h.prototype,e,{get:function(){return this._currentRequest[e]}})})),h.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 n=e.path.indexOf("?");n<0?e.pathname=e.path:(e.pathname=e.path.substring(0,n),e.search=e.path.substring(n))}},h.prototype._performRequest=function(){var e=this._options.protocol,n=this._options.nativeProtocols[e];if(n){if(this._options.agents){var a=e.slice(0,-1);this._options.agent=this._options.agents[a]}var t=this._currentRequest=n.request(this._options,this._onNativeResponse);for(var o of(t._redirectable=this,u))t.on(o,l[o]);if(this._currentUrl=/^\//.test(this._options.path)?i.format(this._options):this._options.path,this._isRedirect){var s=0,r=this,c=this._requestBodyBuffers;!function e(n){if(t===r._currentRequest)if(n)r.emit("error",n);else if(s<c.length){var a=c[s++];t.finished||t.write(a.data,a.encoding,e)}else r._ended&&t.end()}()}}else this.emit("error",new TypeError("Unsupported protocol "+e))},h.prototype._processResponse=function(e){var n=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:n});var a=e.headers.location;if(!a||!1===this._options.followRedirects||n<300||n>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(j(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)this.emit("error",new f);else{var t,o=this._options.beforeRedirect;o&&(t=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var s=this._options.method;((301===n||302===n)&&"POST"===this._options.method||303===n&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],_(/^content-/i,this._options.headers));var r,u=_(/^host$/i,this._options.headers),l=i.parse(this._currentUrl),d=u||l.host,x=/^\w+:/.test(a)?this._currentUrl:i.format(Object.assign(l,{host:d}));try{r=i.resolve(x,a)}catch(e){return void this.emit("error",new m({cause:e}))}p("redirecting to",r),this._isRedirect=!0;var v=i.parse(r);if(Object.assign(this._options,v),(v.protocol!==l.protocol&&"https:"!==v.protocol||v.host!==d&&!function(e,n){c(k(e)&&k(n));var a=e.length-n.length-1;return a>0&&"."===e[a]&&e.endsWith(n)}(v.host,d))&&_(/^(?:authorization|cookie)$/i,this._options.headers),E(o)){var h={headers:e.headers,statusCode:n},b={url:x,method:s,headers:t};try{o(this._options,h,b)}catch(e){return void this.emit("error",e)}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){this.emit("error",new m({cause:e}))}}},e.exports=b({http:o,https:s}),e.exports.wrap=b},6882:(e,n,a)=>{var i=a(9779),t=a(3837),o=a(1017),s=a(3685),r=a(5687),c=a(7310).parse,p=a(7147),u=a(2781).Stream,l=a(983),d=a(9118),m=a(2275);function f(e){if(!(this instanceof f))return new f(e);for(var n in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],i.call(this),e=e||{})this[n]=e[n]}e.exports=f,t.inherits(f,i),f.LINE_BREAK="\r\n",f.DEFAULT_CONTENT_TYPE="application/octet-stream",f.prototype.append=function(e,n,a){"string"==typeof(a=a||{})&&(a={filename:a});var o=i.prototype.append.bind(this);if("number"==typeof n&&(n=""+n),t.isArray(n))this._error(new Error("Arrays are not supported."));else{var s=this._multiPartHeader(e,n,a),r=this._multiPartFooter();o(s),o(n),o(r),this._trackLength(s,n,a)}},f.prototype._trackLength=function(e,n,a){var i=0;null!=a.knownLength?i+=+a.knownLength:Buffer.isBuffer(n)?i=n.length:"string"==typeof n&&(i=Buffer.byteLength(n)),this._valueLength+=i,this._overheadLength+=Buffer.byteLength(e)+f.LINE_BREAK.length,n&&(n.path||n.readable&&n.hasOwnProperty("httpVersion")||n instanceof u)&&(a.knownLength||this._valuesToMeasure.push(n))},f.prototype._lengthRetriever=function(e,n){e.hasOwnProperty("fd")?null!=e.end&&e.end!=1/0&&null!=e.start?n(null,e.end+1-(e.start?e.start:0)):p.stat(e.path,(function(a,i){var t;a?n(a):(t=i.size-(e.start?e.start:0),n(null,t))})):e.hasOwnProperty("httpVersion")?n(null,+e.headers["content-length"]):e.hasOwnProperty("httpModule")?(e.on("response",(function(a){e.pause(),n(null,+a.headers["content-length"])})),e.resume()):n("Unknown stream")},f.prototype._multiPartHeader=function(e,n,a){if("string"==typeof a.header)return a.header;var i,t=this._getContentDisposition(n,a),o=this._getContentType(n,a),s="",r={"Content-Disposition":["form-data",'name="'+e+'"'].concat(t||[]),"Content-Type":[].concat(o||[])};for(var c in"object"==typeof a.header&&m(r,a.header),r)r.hasOwnProperty(c)&&null!=(i=r[c])&&(Array.isArray(i)||(i=[i]),i.length&&(s+=c+": "+i.join("; ")+f.LINE_BREAK));return"--"+this.getBoundary()+f.LINE_BREAK+s+f.LINE_BREAK},f.prototype._getContentDisposition=function(e,n){var a,i;return"string"==typeof n.filepath?a=o.normalize(n.filepath).replace(/\\/g,"/"):n.filename||e.name||e.path?a=o.basename(n.filename||e.name||e.path):e.readable&&e.hasOwnProperty("httpVersion")&&(a=o.basename(e.client._httpMessage.path||"")),a&&(i='filename="'+a+'"'),i},f.prototype._getContentType=function(e,n){var a=n.contentType;return!a&&e.name&&(a=l.lookup(e.name)),!a&&e.path&&(a=l.lookup(e.path)),!a&&e.readable&&e.hasOwnProperty("httpVersion")&&(a=e.headers["content-type"]),a||!n.filepath&&!n.filename||(a=l.lookup(n.filepath||n.filename)),a||"object"!=typeof e||(a=f.DEFAULT_CONTENT_TYPE),a},f.prototype._multiPartFooter=function(){return function(e){var n=f.LINE_BREAK;0===this._streams.length&&(n+=this._lastBoundary()),e(n)}.bind(this)},f.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+f.LINE_BREAK},f.prototype.getHeaders=function(e){var n,a={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(n in e)e.hasOwnProperty(n)&&(a[n.toLowerCase()]=e[n]);return a},f.prototype.setBoundary=function(e){this._boundary=e},f.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},f.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),n=this.getBoundary(),a=0,i=this._streams.length;a<i;a++)"function"!=typeof this._streams[a]&&(e=Buffer.isBuffer(this._streams[a])?Buffer.concat([e,this._streams[a]]):Buffer.concat([e,Buffer.from(this._streams[a])]),"string"==typeof this._streams[a]&&this._streams[a].substring(2,n.length+2)===n||(e=Buffer.concat([e,Buffer.from(f.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},f.prototype._generateBoundary=function(){for(var e="--------------------------",n=0;n<24;n++)e+=Math.floor(10*Math.random()).toString(16);this._boundary=e},f.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},f.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},f.prototype.getLength=function(e){var n=this._overheadLength+this._valueLength;this._streams.length&&(n+=this._lastBoundary().length),this._valuesToMeasure.length?d.parallel(this._valuesToMeasure,this._lengthRetriever,(function(a,i){a?e(a):(i.forEach((function(e){n+=e})),e(null,n))})):process.nextTick(e.bind(this,null,n))},f.prototype.submit=function(e,n){var a,i,t={method:"post"};return"string"==typeof e?(e=c(e),i=m({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},t)):(i=m(e,t)).port||(i.port="https:"==i.protocol?443:80),i.headers=this.getHeaders(e.headers),a="https:"==i.protocol?r.request(i):s.request(i),this.getLength(function(e,i){if(e&&"Unknown stream"!==e)this._error(e);else if(i&&a.setHeader("