@coze/cli 0.2.0-alpha.9f6611 → 0.2.0-alpha.bdb5d3

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.
@@ -1 +0,0 @@
1
- "use strict";const e=require("form-data"),t=require("crypto"),r=require("url"),n=require("http"),o=require("https"),s=require("http2"),i=require("util"),a=require("stream"),c=require("assert"),u=require("tty"),l=require("zlib"),f=require("events"),p=require("undici"),d=require("lodash");var h="object"==typeof global&&global&&global.Object===Object&&global,m="object"==typeof self&&self&&self.Object===Object&&self,y=h||m||Function("return this")(),g=y.Symbol,b=Object.prototype,E=b.hasOwnProperty,_=b.toString,R=g?g.toStringTag:void 0;var w=Object.prototype.toString;var O=g?g.toStringTag:void 0;function v(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":O&&O in Object(e)?function(e){var t=E.call(e,R),r=e[R];try{e[R]=void 0;var n=!0}catch(e){}var o=_.call(e);return n&&(t?e[R]=r:delete e[R]),o}(e):function(e){return w.call(e)}(e)}function C(e){return null!=e&&"object"==typeof e}function A(e){return"symbol"==typeof e||C(e)&&"[object Symbol]"==v(e)}function T(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var S=Array.isArray,x=g?g.prototype:void 0,j=x?x.toString:void 0;function N(e){if("string"==typeof e)return e;if(S(e))return T(e,N)+"";if(A(e))return j?j.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function L(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function F(e){if(!L(e))return!1;var t=v(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var U,P=y["__core-js_shared__"],D=(U=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||""))?"Symbol(src)_1."+U:"";var I=Function.prototype.toString;function B(e){if(null!=e){try{return I.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var k=/^\[object .+?Constructor\]$/,q=Function.prototype,M=Object.prototype,z=q.toString,H=M.hasOwnProperty,$=RegExp("^"+z.call(H).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function W(e){return!(!L(e)||(t=e,D&&D in t))&&(F(e)?$:k).test(B(e));var t}function G(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return W(r)?r:void 0}var V=G(y,"WeakMap"),J=Object.create,K=function(){function e(){}return function(t){if(!L(t))return{};if(J)return J(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),X=function(){try{var e=G(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var Y=/^(?:0|[1-9]\d*)$/;function Q(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&Y.test(e))&&e>-1&&e%1==0&&e<t}function Z(e,t,r){"__proto__"==t&&X?X(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function ee(e,t){return e===t||e!=e&&t!=t}var te=Object.prototype.hasOwnProperty;function re(e,t,r){var n=e[t];te.call(e,t)&&ee(n,r)&&(void 0!==r||t in e)||Z(e,t,r)}function ne(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function oe(e){return null!=e&&ne(e.length)&&!F(e)}var se=Object.prototype;function ie(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||se)}function ae(e){return C(e)&&"[object Arguments]"==v(e)}var ce=Object.prototype,ue=ce.hasOwnProperty,le=ce.propertyIsEnumerable,fe=ae(function(){return arguments}())?ae:function(e){return C(e)&&ue.call(e,"callee")&&!le.call(e,"callee")};var pe="object"==typeof exports&&exports&&!exports.nodeType&&exports,de=pe&&"object"==typeof module&&module&&!module.nodeType&&module,he=de&&de.exports===pe?y.Buffer:void 0,me=(he?he.isBuffer:void 0)||function(){return!1},ye={};function ge(e){return function(t){return e(t)}}ye["[object Float32Array]"]=ye["[object Float64Array]"]=ye["[object Int8Array]"]=ye["[object Int16Array]"]=ye["[object Int32Array]"]=ye["[object Uint8Array]"]=ye["[object Uint8ClampedArray]"]=ye["[object Uint16Array]"]=ye["[object Uint32Array]"]=!0,ye["[object Arguments]"]=ye["[object Array]"]=ye["[object ArrayBuffer]"]=ye["[object Boolean]"]=ye["[object DataView]"]=ye["[object Date]"]=ye["[object Error]"]=ye["[object Function]"]=ye["[object Map]"]=ye["[object Number]"]=ye["[object Object]"]=ye["[object RegExp]"]=ye["[object Set]"]=ye["[object String]"]=ye["[object WeakMap]"]=!1;var be="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ee=be&&"object"==typeof module&&module&&!module.nodeType&&module,_e=Ee&&Ee.exports===be&&h.process,Re=function(){try{var e=Ee&&Ee.require&&Ee.require("util").types;return e||_e&&_e.binding&&_e.binding("util")}catch(e){}}(),we=Re&&Re.isTypedArray,Oe=we?ge(we):function(e){return C(e)&&ne(e.length)&&!!ye[v(e)]},ve=Object.prototype.hasOwnProperty;function Ce(e,t){var r=S(e),n=!r&&fe(e),o=!r&&!n&&me(e),s=!r&&!n&&!o&&Oe(e),i=r||n||o||s,a=i?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=a.length;for(var u in e)!t&&!ve.call(e,u)||i&&("length"==u||o&&("offset"==u||"parent"==u)||s&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Q(u,c))||a.push(u);return a}function Ae(e,t){return function(r){return e(t(r))}}var Te=Ae(Object.keys,Object),Se=Object.prototype.hasOwnProperty;function xe(e){return oe(e)?Ce(e):function(e){if(!ie(e))return Te(e);var t=[];for(var r in Object(e))Se.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)}var je=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ne=/^\w*$/;function Le(e,t){if(S(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!A(e))||(Ne.test(e)||!je.test(e)||null!=t&&e in Object(t))}var Fe=G(Object,"create");var Ue=Object.prototype.hasOwnProperty;var Pe=Object.prototype.hasOwnProperty;function De(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Ie(e,t){for(var r=e.length;r--;)if(ee(e[r][0],t))return r;return-1}De.prototype.clear=function(){this.__data__=Fe?Fe(null):{},this.size=0},De.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},De.prototype.get=function(e){var t=this.__data__;if(Fe){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return Ue.call(t,e)?t[e]:void 0},De.prototype.has=function(e){var t=this.__data__;return Fe?void 0!==t[e]:Pe.call(t,e)},De.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Fe&&void 0===t?"__lodash_hash_undefined__":t,this};var Be=Array.prototype.splice;function ke(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ke.prototype.clear=function(){this.__data__=[],this.size=0},ke.prototype.delete=function(e){var t=this.__data__,r=Ie(t,e);return!(r<0)&&(r==t.length-1?t.pop():Be.call(t,r,1),--this.size,!0)},ke.prototype.get=function(e){var t=this.__data__,r=Ie(t,e);return r<0?void 0:t[r][1]},ke.prototype.has=function(e){return Ie(this.__data__,e)>-1},ke.prototype.set=function(e,t){var r=this.__data__,n=Ie(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var qe=G(y,"Map");function Me(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function ze(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ze.prototype.clear=function(){this.size=0,this.__data__={hash:new De,map:new(qe||ke),string:new De}},ze.prototype.delete=function(e){var t=Me(this,e).delete(e);return this.size-=t?1:0,t},ze.prototype.get=function(e){return Me(this,e).get(e)},ze.prototype.has=function(e){return Me(this,e).has(e)},ze.prototype.set=function(e,t){var r=Me(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function He(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],s=r.cache;if(s.has(o))return s.get(o);var i=e.apply(this,n);return r.cache=s.set(o,i)||s,i};return r.cache=new(He.Cache||ze),r}He.Cache=ze;var $e,We,Ge,Ve=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Je=/\\(\\)?/g,Ke=($e=function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ve,(function(e,r,n,o){t.push(n?o.replace(Je,"$1"):r||e)})),t},We=He($e,(function(e){return 500===Ge.size&&Ge.clear(),e})),Ge=We.cache,We);function Xe(e,t){return S(e)?e:Le(e,t)?[e]:Ke(function(e){return null==e?"":N(e)}(e))}function Ye(e){if("string"==typeof e||A(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Qe(e,t){for(var r=0,n=(t=Xe(t,e)).length;null!=e&&r<n;)e=e[Ye(t[r++])];return r&&r==n?e:void 0}function Ze(e,t,r){var n=null==e?void 0:Qe(e,t);return void 0===n?r:n}function et(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var tt=Ae(Object.getPrototypeOf,Object);function rt(e){var t=this.__data__=new ke(e);this.size=t.size}rt.prototype.clear=function(){this.__data__=new ke,this.size=0},rt.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},rt.prototype.get=function(e){return this.__data__.get(e)},rt.prototype.has=function(e){return this.__data__.has(e)},rt.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ke){var n=r.__data__;if(!qe||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ze(n)}return r.set(e,t),this.size=r.size,this};var nt="object"==typeof exports&&exports&&!exports.nodeType&&exports,ot=nt&&"object"==typeof module&&module&&!module.nodeType&&module,st=ot&&ot.exports===nt?y.Buffer:void 0,it=st?st.allocUnsafe:void 0;function at(e,t){if(t)return e.slice();var r=e.length,n=it?it(r):new e.constructor(r);return e.copy(n),n}function ct(){return[]}var ut=Object.prototype.propertyIsEnumerable,lt=Object.getOwnPropertySymbols,ft=lt?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,s=[];++r<n;){var i=e[r];t(i,r,e)&&(s[o++]=i)}return s}(lt(e),(function(t){return ut.call(e,t)})))}:ct;function pt(e,t,r){var n=t(e);return S(e)?n:et(n,r(e))}function dt(e){return pt(e,xe,ft)}var ht=G(y,"DataView"),mt=G(y,"Promise"),yt=G(y,"Set"),gt="[object Map]",bt="[object Promise]",Et="[object Set]",_t="[object WeakMap]",Rt="[object DataView]",wt=B(ht),Ot=B(qe),vt=B(mt),Ct=B(yt),At=B(V);exports.getTag=v,(ht&&exports.getTag(new ht(new ArrayBuffer(1)))!=Rt||qe&&exports.getTag(new qe)!=gt||mt&&exports.getTag(mt.resolve())!=bt||yt&&exports.getTag(new yt)!=Et||V&&exports.getTag(new V)!=_t)&&(exports.getTag=function(e){var t=v(e),r="[object Object]"==t?e.constructor:void 0,n=r?B(r):"";if(n)switch(n){case wt:return Rt;case Ot:return gt;case vt:return bt;case Ct:return Et;case At:return _t}return t});var Tt=Object.prototype.hasOwnProperty;var St=y.Uint8Array;function xt(e){var t=new e.constructor(e.byteLength);return new St(t).set(new St(e)),t}var jt=/\w*$/;var Nt=g?g.prototype:void 0,Lt=Nt?Nt.valueOf:void 0;function Ft(e,t){var r=t?xt(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Ut(e,t,r){var n,o,s,i=e.constructor;switch(t){case"[object ArrayBuffer]":return xt(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return s=xt((o=e).buffer),new o.constructor(s,o.byteOffset,o.byteLength);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Ft(e,r);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return function(e){var t=new e.constructor(e.source,jt.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Symbol]":return n=e,Lt?Object(Lt.call(n)):{}}}function Pt(e){return"function"!=typeof e.constructor||ie(e)?{}:K(tt(e))}var Dt=Re&&Re.isMap,It=Dt?ge(Dt):function(e){return C(e)&&"[object Map]"==exports.getTag(e)};var Bt=Re&&Re.isSet,kt=Bt?ge(Bt):function(e){return C(e)&&"[object Set]"==exports.getTag(e)},qt="[object Arguments]",Mt="[object Function]",zt="[object Object]",Ht={};function $t(e,t,r,n,o,s){var i,a=1&t;if(void 0!==i)return i;if(!L(e))return e;var c=S(e);if(c)i=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&Tt.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e);else{var u=exports.getTag(e),l=u==Mt||"[object GeneratorFunction]"==u;if(me(e))return at(e,a);if(u==zt||u==qt||l&&!o)i=l?{}:Pt(e);else{if(!Ht[u])return o?e:{};i=Ut(e,u,a)}}s||(s=new rt);var f=s.get(e);if(f)return f;s.set(e,i),kt(e)?e.forEach((function(n){i.add($t(n,t,r,n,e,s))})):It(e)&&e.forEach((function(n,o){i.set(o,$t(n,t,r,o,e,s))}));var p=c?void 0:dt(e);return function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););}(p||e,(function(n,o){p&&(n=e[o=n]),re(i,o,$t(n,t,r,o,e,s))})),i}Ht[qt]=Ht["[object Array]"]=Ht["[object ArrayBuffer]"]=Ht["[object DataView]"]=Ht["[object Boolean]"]=Ht["[object Date]"]=Ht["[object Float32Array]"]=Ht["[object Float64Array]"]=Ht["[object Int8Array]"]=Ht["[object Int16Array]"]=Ht["[object Int32Array]"]=Ht["[object Map]"]=Ht["[object Number]"]=Ht[zt]=Ht["[object RegExp]"]=Ht["[object Set]"]=Ht["[object String]"]=Ht["[object Symbol]"]=Ht["[object Uint8Array]"]=Ht["[object Uint8ClampedArray]"]=Ht["[object Uint16Array]"]=Ht["[object Uint32Array]"]=!0,Ht["[object Error]"]=Ht[Mt]=Ht["[object WeakMap]"]=!1;function Wt(e){return $t(e,5)}function Gt(e,t,r,n){if(!L(e))return e;for(var o=-1,s=(t=Xe(t,e)).length,i=s-1,a=e;null!=a&&++o<s;){var c=Ye(t[o]),u=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=i){var l=a[c];void 0===(u=void 0)&&(u=L(l)?l:Q(t[o+1])?[]:{})}re(a,c,u),a=a[c]}return e}function Vt(e,t,r){return null==e?e:Gt(e,t,r)}function Jt(e){let t,r=e[0],n=1;for(;n<e.length;){const o=e[n],s=e[n+1];if(n+=2,("optionalAccess"===o||"optionalCall"===o)&&null==r)return;"access"===o||"optionalAccess"===o?(t=r,r=s(r)):"call"!==o&&"optionalCall"!==o||(r=s(((...e)=>r.call(t,...e))),t=void 0)}return r}class Kt extends Error{constructor(e,t={}){super(e),this.name="HttpError",this.status=t.status,this.code=t.code,this.config=t.config,this.response=t.response,this.data=t.data,Error.captureStackTrace&&Error.captureStackTrace(this,Kt)}toString(){const e=[];let t=this.name;if(this.status||this.code){const e=[];this.status&&e.push(String(this.status)),this.code&&e.push(String(this.code)),t+=` [${e.join(" ")}]`}if(t+=`: ${this.message}`,e.push(t),this.config){const t=Jt([this,"access",e=>e.config,"access",e=>e.method,"optionalAccess",e=>e.toUpperCase,"call",e=>e()])||"GET",r=this.config.url||"unknown",n=(this.config.baseURL?`${this.config.baseURL}`:"")+r;e.push(` URL: ${t} ${n}`)}if(this.data)try{const t=JSON.stringify(this.data);t.length<200?e.push(` Data: ${t}`):e.push(` Data: [${t.length} bytes]`)}catch(t){const r=t instanceof Error?t.constructor.name:"unknown";e.push(` Data: [non-serializable: ${r}]`)}return e.join("\n")}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code,data:this.data,url:Jt([this,"access",e=>e.config,"optionalAccess",e=>e.url]),method:Jt([this,"access",e=>e.config,"optionalAccess",e=>e.method]),baseURL:Jt([this,"access",e=>e.config,"optionalAccess",e=>e.baseURL])}}}function Xt(e,t){return function(){return e.apply(t,arguments)}}const{toString:Yt}=Object.prototype,{getPrototypeOf:Qt}=Object,{iterator:Zt,toStringTag:er}=Symbol,tr=(e=>t=>{const r=Yt.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),rr=e=>(e=e.toLowerCase(),t=>tr(t)===e),nr=e=>t=>typeof t===e,{isArray:or}=Array,sr=nr("undefined");function ir(e){return null!==e&&!sr(e)&&null!==e.constructor&&!sr(e.constructor)&&ur(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ar=rr("ArrayBuffer");const cr=nr("string"),ur=nr("function"),lr=nr("number"),fr=e=>null!==e&&"object"==typeof e,pr=e=>{if("object"!==tr(e))return!1;const t=Qt(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||er in e||Zt in e)},dr=rr("Date"),hr=rr("File"),mr=rr("Blob"),yr=rr("FileList");const gr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},br=void 0!==gr.FormData?gr.FormData:void 0,Er=rr("URLSearchParams"),[_r,Rr,wr,Or]=["ReadableStream","Request","Response","Headers"].map(rr);function vr(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),or(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(ir(e))return;const o=r?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(n=0;n<s;n++)i=o[n],t.call(null,e[i],i,e)}}function Cr(e,t){if(ir(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n,o=r.length;for(;o-- >0;)if(n=r[o],t===n.toLowerCase())return n;return null}const Ar="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Tr=e=>!sr(e)&&e!==Ar;const Sr=(xr="undefined"!=typeof Uint8Array&&Qt(Uint8Array),e=>xr&&e instanceof xr);var xr;const jr=rr("HTMLFormElement"),Nr=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Lr=rr("RegExp"),Fr=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};vr(r,((r,o)=>{let s;!1!==(s=t(r,o,e))&&(n[o]=s||r)})),Object.defineProperties(e,n)};const Ur=rr("AsyncFunction"),Pr=(Dr="function"==typeof setImmediate,Ir=ur(Ar.postMessage),Dr?setImmediate:Ir?(Br=`axios@${Math.random()}`,kr=[],Ar.addEventListener("message",(({source:e,data:t})=>{e===Ar&&t===Br&&kr.length&&kr.shift()()}),!1),e=>{kr.push(e),Ar.postMessage(Br,"*")}):e=>setTimeout(e));var Dr,Ir,Br,kr;const qr="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Ar):"undefined"!=typeof process&&process.nextTick||Pr,Mr={isArray:or,isArrayBuffer:ar,isBuffer:ir,isFormData:e=>{let t;return e&&(br&&e instanceof br||ur(e.append)&&("formdata"===(t=tr(e))||"object"===t&&ur(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ar(e.buffer),t},isString:cr,isNumber:lr,isBoolean:e=>!0===e||!1===e,isObject:fr,isPlainObject:pr,isEmptyObject:e=>{if(!fr(e)||ir(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:_r,isRequest:Rr,isResponse:wr,isHeaders:Or,isUndefined:sr,isDate:dr,isFile:hr,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:mr,isRegExp:Lr,isFunction:ur,isStream:e=>fr(e)&&ur(e.pipe),isURLSearchParams:Er,isTypedArray:Sr,isFileList:yr,forEach:vr,merge:function e(){const{caseless:t,skipUndefined:r}=Tr(this)&&this||{},n={},o=(o,s)=>{if("__proto__"===s||"constructor"===s||"prototype"===s)return;const i=t&&Cr(n,s)||s;pr(n[i])&&pr(o)?n[i]=e(n[i],o):pr(o)?n[i]=e({},o):or(o)?n[i]=o.slice():r&&sr(o)||(n[i]=o)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&vr(arguments[e],o);return n},extend:(e,t,r,{allOwnKeys:n}={})=>(vr(t,((t,n)=>{r&&ur(t)?Object.defineProperty(e,n,{value:Xt(t,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,n,{value:t,writable:!0,enumerable:!0,configurable:!0})}),{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,s,i;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],n&&!n(i,e,t)||a[i]||(t[i]=e[i],a[i]=!0);e=!1!==r&&Qt(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:tr,kindOfTest:rr,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(or(e))return e;let t=e.length;if(!lr(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Zt]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:jr,hasOwnProperty:Nr,hasOwnProp:Nr,reduceDescriptors:Fr,freezeMethods:e=>{Fr(e,((t,r)=>{if(ur(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];ur(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return or(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Cr,global:Ar,isContextDefined:Tr,isSpecCompliantForm:function(e){return!!(e&&ur(e.append)&&"FormData"===e[er]&&e[Zt])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(fr(e)){if(t.indexOf(e)>=0)return;if(ir(e))return e;if(!("toJSON"in e)){t[n]=e;const o=or(e)?[]:{};return vr(e,((e,t)=>{const s=r(e,n+1);!sr(s)&&(o[t]=s)})),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:Ur,isThenable:e=>e&&(fr(e)||ur(e))&&ur(e.then)&&ur(e.catch),setImmediate:Pr,asap:qr,isIterable:e=>null!=e&&ur(e[Zt])};let zr=class e extends Error{static from(t,r,n,o,s,i){const a=new e(t.message,r||t.code,n,o,s);return a.cause=t,a.name=t.name,null!=t.status&&null==a.status&&(a.status=t.status),i&&Object.assign(a,i),a}constructor(e,t,r,n,o){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status)}toJSON(){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:Mr.toJSONObject(this.config),code:this.code,status:this.status}}};function Hr(e){return Mr.isPlainObject(e)||Mr.isArray(e)}function $r(e){return Mr.endsWith(e,"[]")?e.slice(0,-2):e}function Wr(e,t,r){return e?e.concat(t).map((function(e,t){return e=$r(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}zr.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",zr.ERR_BAD_OPTION="ERR_BAD_OPTION",zr.ECONNABORTED="ECONNABORTED",zr.ETIMEDOUT="ETIMEDOUT",zr.ERR_NETWORK="ERR_NETWORK",zr.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",zr.ERR_DEPRECATED="ERR_DEPRECATED",zr.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",zr.ERR_BAD_REQUEST="ERR_BAD_REQUEST",zr.ERR_CANCELED="ERR_CANCELED",zr.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",zr.ERR_INVALID_URL="ERR_INVALID_URL";const Gr=Mr.toFlatObject(Mr,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Vr(t,r,n){if(!Mr.isObject(t))throw new TypeError("target must be an object");r=r||new(e||FormData);const o=(n=Mr.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Mr.isUndefined(t[e])}))).metaTokens,s=n.visitor||l,i=n.dots,a=n.indexes,c=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Mr.isSpecCompliantForm(r);if(!Mr.isFunction(s))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(Mr.isDate(e))return e.toISOString();if(Mr.isBoolean(e))return e.toString();if(!c&&Mr.isBlob(e))throw new zr("Blob is not supported. Use a Buffer instead.");return Mr.isArrayBuffer(e)||Mr.isTypedArray(e)?c&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,t,n){let s=e;if(Mr.isReactNative(r)&&Mr.isReactNativeBlob(e))return r.append(Wr(n,t,i),u(e)),!1;if(e&&!n&&"object"==typeof e)if(Mr.endsWith(t,"{}"))t=o?t:t.slice(0,-2),e=JSON.stringify(e);else if(Mr.isArray(e)&&function(e){return Mr.isArray(e)&&!e.some(Hr)}(e)||(Mr.isFileList(e)||Mr.endsWith(t,"[]"))&&(s=Mr.toArray(e)))return t=$r(t),s.forEach((function(e,n){!Mr.isUndefined(e)&&null!==e&&r.append(!0===a?Wr([t],n,i):null===a?t:t+"[]",u(e))})),!1;return!!Hr(e)||(r.append(Wr(n,t,i),u(e)),!1)}const f=[],p=Object.assign(Gr,{defaultVisitor:l,convertValue:u,isVisitable:Hr});if(!Mr.isObject(t))throw new TypeError("data must be an object");return function e(t,n){if(!Mr.isUndefined(t)){if(-1!==f.indexOf(t))throw Error("Circular reference detected in "+n.join("."));f.push(t),Mr.forEach(t,(function(t,o){!0===(!(Mr.isUndefined(t)||null===t)&&s.call(r,t,Mr.isString(o)?o.trim():o,n,p))&&e(t,n?n.concat(o):[o])})),f.pop()}}(t),r}function Jr(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Kr(e,t){this._pairs=[],e&&Vr(e,this,t)}const Xr=Kr.prototype;function Yr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Qr(e,t,r){if(!t)return e;const n=r&&r.encode||Yr,o=Mr.isFunction(r)?{serialize:r}:r,s=o&&o.serialize;let i;if(i=s?s(t,o):Mr.isURLSearchParams(t)?t.toString():new Kr(t,o).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}Xr.append=function(e,t){this._pairs.push([e,t])},Xr.toString=function(e){const t=e?function(t){return e.call(this,t,Jr)}:Jr;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class Zr{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Mr.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const en={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},tn=r.URLSearchParams,rn="abcdefghijklmnopqrstuvwxyz",nn="0123456789",on={DIGIT:nn,ALPHA:rn,ALPHA_DIGIT:rn+rn.toUpperCase()+nn},sn={isNode:!0,classes:{URLSearchParams:tn,FormData:e,Blob:"undefined"!=typeof Blob&&Blob||null},ALPHABET:on,generateString:(e=16,r=on.ALPHA_DIGIT)=>{let n="";const{length:o}=r,s=new Uint32Array(e);t.randomFillSync(s);for(let t=0;t<e;t++)n+=r[s[t]%o];return n},protocols:["http","https","file","data"]},an="undefined"!=typeof window&&"undefined"!=typeof document,cn="object"==typeof navigator&&navigator||void 0,un=an&&(!cn||["ReactNative","NativeScript","NS"].indexOf(cn.product)<0),ln="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,fn=an&&window.location.href||"http://localhost",pn={...Object.freeze({__proto__:null,hasBrowserEnv:an,hasStandardBrowserEnv:un,hasStandardBrowserWebWorkerEnv:ln,navigator:cn,origin:fn}),...sn};function dn(e){function t(e,r,n,o){let s=e[o++];if("__proto__"===s)return!0;const i=Number.isFinite(+s),a=o>=e.length;if(s=!s&&Mr.isArray(n)?n.length:s,a)return Mr.hasOwnProp(n,s)?n[s]=[n[s],r]:n[s]=r,!i;n[s]&&Mr.isObject(n[s])||(n[s]=[]);return t(e,r,n[s],o)&&Mr.isArray(n[s])&&(n[s]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let s;for(n=0;n<o;n++)s=r[n],t[s]=e[s];return t}(n[s])),!i}if(Mr.isFormData(e)&&Mr.isFunction(e.entries)){const r={};return Mr.forEachEntry(e,((e,n)=>{t(function(e){return Mr.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}const hn={transitional:en,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=Mr.isObject(e);o&&Mr.isHTMLForm(e)&&(e=new FormData(e));if(Mr.isFormData(e))return n?JSON.stringify(dn(e)):e;if(Mr.isArrayBuffer(e)||Mr.isBuffer(e)||Mr.isStream(e)||Mr.isFile(e)||Mr.isBlob(e)||Mr.isReadableStream(e))return e;if(Mr.isArrayBufferView(e))return e.buffer;if(Mr.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Vr(e,new pn.classes.URLSearchParams,{visitor:function(e,t,r,n){return pn.isNode&&Mr.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((s=Mr.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Vr(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if(Mr.isString(e))try{return(t||JSON.parse)(e),Mr.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||hn.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(Mr.isResponse(e)||Mr.isReadableStream(e))return e;if(e&&Mr.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e,this.parseReviver)}catch(e){if(r){if("SyntaxError"===e.name)throw zr.from(e,zr.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:pn.classes.FormData,Blob:pn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Mr.forEach(["delete","get","head","post","put","patch"],(e=>{hn.headers[e]={}}));const mn=Mr.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"]),yn=Symbol("internals");function gn(e){return e&&String(e).trim().toLowerCase()}function bn(e){return!1===e||null==e?e:Mr.isArray(e)?e.map(bn):String(e).replace(/[\r\n]+$/,"")}function En(e,t,r,n,o){return Mr.isFunction(n)?n.call(this,t,r):(o&&(t=r),Mr.isString(t)?Mr.isString(n)?-1!==t.indexOf(n):Mr.isRegExp(n)?n.test(t):void 0:void 0)}let _n=class{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=gn(t);if(!o)throw new Error("header name must be a non-empty string");const s=Mr.findKey(n,o);(!s||void 0===n[s]||!0===r||void 0===r&&!1!==n[s])&&(n[s||t]=bn(e))}const s=(e,t)=>Mr.forEach(e,((e,r)=>o(e,r,t)));if(Mr.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(Mr.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s((e=>{const t={};let r,n,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&mn[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t);else if(Mr.isObject(e)&&Mr.isIterable(e)){let r,n,o={};for(const t of e){if(!Mr.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[n=t[0]]=(r=o[n])?Mr.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}s(o,t)}else null!=e&&o(t,e,r);return this}get(e,t){if(e=gn(e)){const r=Mr.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(Mr.isFunction(t))return t.call(this,e,r);if(Mr.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=gn(e)){const r=Mr.findKey(this,e);return!(!r||void 0===this[r]||t&&!En(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=gn(e)){const o=Mr.findKey(r,e);!o||t&&!En(0,r[o],o,t)||(delete r[o],n=!0)}}return Mr.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!En(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return Mr.forEach(this,((n,o)=>{const s=Mr.findKey(r,o);if(s)return t[s]=bn(n),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(o):String(o).trim();i!==o&&delete t[o],t[i]=bn(n),r[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Mr.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&Mr.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[yn]=this[yn]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=gn(e);t[n]||(!function(e,t){const r=Mr.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})}))}(r,e),t[n]=!0)}return Mr.isArray(e)?e.forEach(n):n(e),this}};function Rn(e,t){const r=this||hn,n=t||r,o=_n.from(n.headers);let s=n.data;return Mr.forEach(e,(function(e){s=e.call(r,s,o.normalize(),t?t.status:void 0)})),o.normalize(),s}function wn(e){return!(!e||!e.__CANCEL__)}_n.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Mr.reduceDescriptors(_n.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),Mr.freezeMethods(_n);let On=class extends zr{constructor(e,t,r){super(null==e?"canceled":e,zr.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}};function vn(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new zr("Request failed with status code "+r.status,[zr.ERR_BAD_REQUEST,zr.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}function Cn(e,t,r){let n=!function(e){return"string"==typeof e&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t);return e&&(n||0==r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var An={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};function Tn(e){var t=("string"==typeof e?function(e){try{return new URL(e)}catch(e){return null}}(e):e)||{},r=t.protocol,n=t.host,o=t.port;if("string"!=typeof n||!n||"string"!=typeof r)return"";if(r=r.split(":",1)[0],!function(e,t){var r=Sn("no_proxy").toLowerCase();if(!r)return!0;if("*"===r)return!1;return r.split(/[,\s]/).every((function(r){if(!r)return!0;var n=r.match(/^(.+):(\d+)$/),o=n?n[1]:r,s=n?parseInt(n[2]):0;return!(!s||s===t)||(/^[.*]/.test(o)?("*"===o.charAt(0)&&(o=o.slice(1)),!e.endsWith(o)):e!==o)}))}(n=n.replace(/:\d*$/,""),o=parseInt(o)||An[r]||0))return"";var s=Sn(r+"_proxy")||Sn("all_proxy");return s&&-1===s.indexOf("://")&&(s=r+"://"+s),s}function Sn(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}function xn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function jn(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var r=function e(){var r=!1;try{r=this instanceof e}catch{}return r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var Nn,Ln,Fn,Un,Pn,Dn={exports:{}},In={exports:{}},Bn={exports:{}};function kn(){if(Ln)return Nn;Ln=1;var e=1e3,t=60*e,r=60*t,n=24*r,o=7*n,s=365.25*n;function i(e,t,r,n){var o=t>=1.5*r;return Math.round(e/r)+" "+n+(o?"s":"")}return Nn=function(a,c){c=c||{};var u=typeof a;if("string"===u&&a.length>0)return function(i){if((i=String(i)).length>100)return;var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(!a)return;var c=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*n;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;case"minutes":case"minute":case"mins":case"min":case"m":return c*t;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(a);if("number"===u&&isFinite(a))return c.long?function(o){var s=Math.abs(o);if(s>=n)return i(o,s,n,"day");if(s>=r)return i(o,s,r,"hour");if(s>=t)return i(o,s,t,"minute");if(s>=e)return i(o,s,e,"second");return o+" ms"}(a):function(o){var s=Math.abs(o);if(s>=n)return Math.round(o/n)+"d";if(s>=r)return Math.round(o/r)+"h";if(s>=t)return Math.round(o/t)+"m";if(s>=e)return Math.round(o/e)+"s";return o+"ms"}(a);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(a))}}function qn(){if(Un)return Fn;return Un=1,Fn=function(e){function t(e){let n,o,s,i=null;function a(...e){if(!a.enabled)return;const r=a,o=Number(new Date),s=o-(n||o);r.diff=s,r.prev=n,r.curr=o,n=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,o)=>{if("%%"===n)return"%";i++;const s=t.formatters[o];if("function"==typeof s){const t=e[i];n=s.call(r,t),e.splice(i,1),i--}return n})),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=r,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(o!==t.namespaces&&(o=t.namespaces,s=t.enabled(e)),s),set:e=>{i=e}}),"function"==typeof t.init&&t.init(a),a}function r(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function n(e,t){let r=0,n=0,o=-1,s=0;for(;r<e.length;)if(n<t.length&&(t[n]===e[r]||"*"===t[n]))"*"===t[n]?(o=n,s=r,n++):(r++,n++);else{if(-1===o)return!1;n=o+1,s++,r=s}for(;n<t.length&&"*"===t[n];)n++;return n===t.length}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names,...t.skips.map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of r)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const r of t.skips)if(n(e,r))return!1;for(const r of t.names)if(n(e,r))return!0;return!1},t.humanize=kn(),t.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((r=>{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t},Fn}var Mn={exports:{}};const zn=(()=>{if(navigator.userAgentData){if(function(e){let t,r=e[0],n=1;for(;n<e.length;){const o=e[n],s=e[n+1];if(n+=2,("optionalAccess"===o||"optionalCall"===o)&&null==r)return;"access"===o||"optionalAccess"===o?(t=r,r=s(r)):"call"!==o&&"optionalCall"!==o||(r=s(((...e)=>r.call(t,...e))),t=void 0)}return r}([navigator.userAgentData.brands.find((({brand:e})=>"Chromium"===e)),"optionalAccess",e=>e.version])>93)return 3}return/\b(Chrome|Chromium)\//.test(navigator.userAgent)?1:0})(),Hn=0!==zn&&{level:zn,hasBasic:!0,has256:zn>=2,has16m:zn>=3},$n={stdout:Hn,stderr:Hn},Wn=jn(Object.freeze({__proto__:null,default:$n}));var Gn,Vn,Jn,Kn,Xn;function Yn(){return Gn||(Gn=1,function(e,t){const r=u,n=i;t.init=function(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let n=0;n<r.length;n++)e.inspectOpts[r[n]]=t.inspectOpts[r[n]]},t.log=function(...e){return process.stderr.write(n.formatWithOptions(t.inspectOpts,...e)+"\n")},t.formatArgs=function(r){const{namespace:n,useColors:o}=this;if(o){const t=this.color,o="[3"+(t<8?t:"8;5;"+t),s=` ${o};1m${n} `;r[0]=s+r[0].split("\n").join("\n"+s),r.push(o+"m+"+e.exports.humanize(this.diff)+"")}else r[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+n+" "+r[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):r.isatty(process.stderr.fd)},t.destroy=n.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=Wn;e&&(e.stderr||e).level>=2&&(t.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){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let n=process.env[t];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[r]=n,e}),{}),e.exports=qn()(t);const{formatters:o}=e.exports;o.o=function(e){return this.inspectOpts.colors=this.useColors,n.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},o.O=function(e){return this.inspectOpts.colors=this.useColors,n.inspect(e,this.inspectOpts)}}(Mn,Mn.exports)),Mn.exports}function Qn(){return Vn||(Vn=1,"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?In.exports=(Pn||(Pn=1,function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(o=n))})),t.splice(o,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"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&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.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`."))}})(),t.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"],t.log=console.debug||console.log||(()=>{}),e.exports=qn()(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(Bn,Bn.exports)),Bn.exports):In.exports=Yn()),In.exports}var Zn=function(){if(Xn)return Dn.exports;Xn=1;var e,t,s,i=r,u=i.URL,l=n,f=o,p=a.Writable,d=c,h=function(){return Kn||(Kn=1,Jn=function(){if(!e){try{e=Qn()("follow-redirects")}catch(e){}"function"!=typeof e&&(e=function(){})}e.apply(null,arguments)}),Jn;var e}();e="undefined"!=typeof process,t="undefined"!=typeof window&&"undefined"!=typeof document,s=P(Error.captureStackTrace),e||!t&&s||console.warn("The follow-redirects package should be excluded from browser builds.");var m=!1;try{d(new u(""))}catch(e){m="ERR_INVALID_URL"===e.code}var y=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],g=["abort","aborted","connect","error","socket","timeout"],b=Object.create(null);g.forEach((function(e){b[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}}));var E=L("ERR_INVALID_URL","Invalid URL",TypeError),_=L("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),R=L("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",_),w=L("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),O=L("ERR_STREAM_WRITE_AFTER_END","write after end"),v=p.prototype.destroy||T;function C(e,t){p.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(e){try{r._processResponse(e)}catch(e){r.emit("error",e instanceof _?e:new _({cause:e}))}},this._performRequest()}function A(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach((function(n){var o=n+":",s=r[o]=e[n],i=t[n]=Object.create(s);Object.defineProperties(i,{request:{value:function(e,n,s){var i;return i=e,u&&i instanceof u?e=j(e):U(e)?e=j(S(e)):(s=n,n=x(e),e={protocol:o}),P(n)&&(s=n,n=null),(n=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,n)).nativeProtocols=r,U(n.host)||U(n.hostname)||(n.hostname="::1"),d.equal(n.protocol,o,"protocol mismatch"),h("options",n),new C(n,s)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,r){var n=i.request(e,t,r);return n.end(),n},configurable:!0,enumerable:!0,writable:!0}})})),t}function T(){}function S(e){var t;if(m)t=new u(e);else if(!U((t=x(i.parse(e))).protocol))throw new E({input:e});return t}function x(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new E({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new E({input:e.href||e});return e}function j(e,t){var r=t||{};for(var n of y)r[n]=e[n];return r.hostname.startsWith("[")&&(r.hostname=r.hostname.slice(1,-1)),""!==r.port&&(r.port=Number(r.port)),r.path=r.search?r.pathname+r.search:r.pathname,r}function N(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return null==r?void 0:String(r).trim()}function L(e,t,r){function n(r){P(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,r||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return n.prototype=new(r||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),n}function F(e,t){for(var r of g)e.removeListener(r,b[r]);e.on("error",T),e.destroy(t)}function U(e){return"string"==typeof e||e instanceof String}function P(e){return"function"==typeof e}return C.prototype=Object.create(p.prototype),C.prototype.abort=function(){F(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},C.prototype.destroy=function(e){return F(this._currentRequest,e),v.call(this,e),this},C.prototype.write=function(e,t,r){if(this._ending)throw new O;if(!U(e)&&("object"!=typeof(n=e)||!("length"in n)))throw new TypeError("data should be a string, Buffer or Uint8Array");var n;P(t)&&(r=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new w),this.abort()):r&&r()},C.prototype.end=function(e,t,r){if(P(e)?(r=e,e=t=null):P(t)&&(r=t,t=null),e){var n=this,o=this._currentRequest;this.write(e,t,(function(){n._ended=!0,o.end(null,null,r)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,r)},C.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},C.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},C.prototype.setTimeout=function(e,t){var r=this;function n(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function o(t){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout((function(){r.emit("timeout"),s()}),e),n(t)}function s(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",s),r.removeListener("error",s),r.removeListener("response",s),r.removeListener("close",s),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",o)}return t&&this.on("timeout",t),this.socket?o(this.socket):this._currentRequest.once("socket",o),this.on("socket",n),this.on("abort",s),this.on("error",s),this.on("response",s),this.on("close",s),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){C.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(C.prototype,e,{get:function(){return this._currentRequest[e]}})})),C.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 t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},C.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var o of(n._redirectable=this,g))n.on(o,b[o]);if(this._currentUrl=/^\//.test(this._options.path)?i.format(this._options):this._options.path,this._isRedirect){var s=0,a=this,c=this._requestBodyBuffers;!function e(t){if(n===a._currentRequest)if(t)a.emit("error",t);else if(s<c.length){var r=c[s++];n.finished||n.write(r.data,r.encoding,e)}else a._ended&&n.end()}()}},C.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r,n=e.headers.location;if(!n||!1===this._options.followRedirects||t<300||t>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(F(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new R;var o=this._options.beforeRedirect;o&&(r=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var s=this._options.method;((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],N(/^content-/i,this._options.headers));var a,c,l=N(/^host$/i,this._options.headers),f=S(this._currentUrl),p=l||f.host,y=/^\w+:/.test(n)?this._currentUrl:i.format(Object.assign(f,{host:p})),g=(a=n,c=y,m?new u(a,c):S(i.resolve(c,a)));if(h("redirecting to",g.href),this._isRedirect=!0,j(g,this._options),(g.protocol!==f.protocol&&"https:"!==g.protocol||g.host!==p&&!function(e,t){d(U(e)&&U(t));var r=e.length-t.length-1;return r>0&&"."===e[r]&&e.endsWith(t)}(g.host,p))&&N(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),P(o)){var b={headers:e.headers,statusCode:t},E={url:y,method:s,headers:r};o(this._options,b,E),this._sanitizeOptions(this._options)}this._performRequest()},Dn.exports=A({http:l,https:f}),Dn.exports.wrap=A,Dn.exports}();const eo=xn(Zn),to="1.14.0";function ro(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const no=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;const oo=Symbol("internals");class so extends a.Transform{constructor(e){super({readableHighWaterMark:(e=Mr.toFlatObject(e,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,((e,t)=>!Mr.isUndefined(t[e])))).chunkSize});const t=this[oo]={timeWindow:e.timeWindow,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",(e=>{"progress"===e&&(t.isCaptured||(t.isCaptured=!0))}))}_read(e){const t=this[oo];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,r){const n=this[oo],o=n.maxRate,s=this.readableHighWaterMark,i=n.timeWindow,a=o/(1e3/i),c=!1!==n.minChunkSize?Math.max(n.minChunkSize,.01*a):0,u=(e,t)=>{const r=Buffer.byteLength(e);n.bytesSeen+=r,n.bytes+=r,n.isCaptured&&this.emit("progress",n.bytesSeen),this.push(e)?process.nextTick(t):n.onReadCallback=()=>{n.onReadCallback=null,process.nextTick(t)}},l=(e,t)=>{const r=Buffer.byteLength(e);let l,f=null,p=s,d=0;if(o){const e=Date.now();(!n.ts||(d=e-n.ts)>=i)&&(n.ts=e,l=a-n.bytes,n.bytes=l<0?-l:0,d=0),l=a-n.bytes}if(o){if(l<=0)return setTimeout((()=>{t(null,e)}),i-d);l<p&&(p=l)}p&&r>p&&r-p>c&&(f=e.subarray(p),e=e.subarray(0,p)),u(e,f?()=>{process.nextTick(t,null,f)}:t)};l(e,(function e(t,n){if(t)return r(t);n?l(n,e):r(null)}))}}const{asyncIterator:io}=Symbol,ao=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[io]?yield*e[io]():yield e},co=pn.ALPHABET.ALPHA_DIGIT+"-_",uo="function"==typeof TextEncoder?new TextEncoder:new i.TextEncoder,lo="\r\n",fo=uo.encode(lo);class po{constructor(e,t){const{escapeName:r}=this.constructor,n=Mr.isString(t);let o=`Content-Disposition: form-data; name="${r(e)}"${!n&&t.name?`; filename="${r(t.name)}"`:""}${lo}`;n?t=uo.encode(String(t).replace(/\r?\n|\r\n?/g,lo)):o+=`Content-Type: ${t.type||"application/octet-stream"}${lo}`,this.headers=uo.encode(o+lo),this.contentLength=n?t.byteLength:t.size,this.size=this.headers.byteLength+this.contentLength+2,this.name=e,this.value=t}async*encode(){yield this.headers;const{value:e}=this;Mr.isTypedArray(e)?yield e:yield*ao(e),yield fo}static escapeName(e){return String(e).replace(/[\r\n"]/g,(e=>({"\r":"%0D","\n":"%0A",'"':"%22"}[e])))}}class ho extends a.Transform{__transform(e,t,r){this.push(e),r()}_transform(e,t,r){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,t)}this.__transform(e,t,r)}}const mo=(e,t)=>Mr.isAsyncFn(e)?function(...r){const n=r.pop();e.apply(this,r).then((e=>{try{t?n(null,...t(e)):n(null,e)}catch(e){n(e)}}),n)}:e;const yo=(e,t,r=3)=>{let n=0;const o=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,s=0,i=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=n[i];o||(o=c),r[s]=a,n[s]=c;let l=i,f=0;for(;l!==s;)f+=r[l++],l%=e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o<t)return;const p=u&&c-u;return p?Math.round(1e3*f/p):void 0}}(50,250);return function(e,t){let r,n,o=0,s=1e3/t;const i=(t,s=Date.now())=>{o=s,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=s?i(e,t):(r=e,n||(n=setTimeout((()=>{n=null,i(r)}),s-a)))},()=>r&&i(r)]}((r=>{const s=r.loaded,i=r.lengthComputable?r.total:void 0,a=s-n,c=o(a);n=s;e({loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:c||void 0,estimated:c&&i&&s<=i?(i-s)/c:void 0,event:r,lengthComputable:null!=i,[t?"download":"upload"]:!0})}),r)},go=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},bo=e=>(...t)=>Mr.asap((()=>e(...t)));const Eo={flush:l.constants.Z_SYNC_FLUSH,finishFlush:l.constants.Z_SYNC_FLUSH},_o={flush:l.constants.BROTLI_OPERATION_FLUSH,finishFlush:l.constants.BROTLI_OPERATION_FLUSH},Ro=Mr.isFunction(l.createBrotliDecompress),{http:wo,https:Oo}=eo,vo=/https:?/,Co=pn.protocols.map((e=>e+":")),Ao=(e,[t,r])=>(e.on("end",r).on("error",r),t);const To=new class{constructor(){this.sessions=Object.create(null)}getSession(e,t){t=Object.assign({sessionTimeout:1e3},t);let r=this.sessions[e];if(r){let e=r.length;for(let n=0;n<e;n++){const[e,o]=r[n];if(!e.destroyed&&!e.closed&&i.isDeepStrictEqual(o,t))return e}}const n=s.connect(e,t);let o;const a=()=>{if(o)return;o=!0;let t=r,s=t.length,i=s;for(;i--;)if(t[i][0]===n)return 1===s?delete this.sessions[e]:t.splice(i,1),void(n.closed||n.close())},c=n.request,{sessionTimeout:u}=t;if(null!=u){let e,t=0;n.request=function(){const r=c.apply(this,arguments);return t++,e&&(clearTimeout(e),e=null),r.once("close",(()=>{--t||(e=setTimeout((()=>{e=null,a()}),u))})),r}}n.once("close",a);let l=[n,t];return r?r.push(l):r=this.sessions[e]=[l],n}};function So(e,t){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t)}function xo(e,t,r){let n=t;if(!n&&!1!==n){const e=Tn(r);e&&(n=new URL(e))}if(n){if(n.username&&(n.auth=(n.username||"")+":"+(n.password||"")),n.auth){if(Boolean(n.auth.username||n.auth.password))n.auth=(n.auth.username||"")+":"+(n.auth.password||"");else if("object"==typeof n.auth)throw new zr("Invalid proxy authorization",zr.ERR_BAD_OPTION,{proxy:n});const t=Buffer.from(n.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+t}e.headers.host=e.hostname+(e.port?":"+e.port:"");const t=n.hostname||n.host;e.hostname=t,e.host=t,e.port=n.port,e.path=r,n.protocol&&(e.protocol=n.protocol.includes(":")?n.protocol:`${n.protocol}:`)}e.beforeRedirects.proxy=function(e){xo(e,t,e.href)}}const jo="undefined"!=typeof process&&"process"===Mr.kindOf(process),No=(e,t)=>(({address:e,family:t})=>{if(!Mr.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}})(Mr.isObject(e)?e:{address:e,family:t}),Lo={request(e,t){const r=e.protocol+"//"+e.hostname+":"+(e.port||("https:"===e.protocol?443:80)),{http2Options:n,headers:o}=e,i=To.getSession(r,n),{HTTP2_HEADER_SCHEME:a,HTTP2_HEADER_METHOD:c,HTTP2_HEADER_PATH:u,HTTP2_HEADER_STATUS:l}=s.constants,f={[a]:e.protocol.replace(":",""),[c]:e.method,[u]:e.path};Mr.forEach(o,((e,t)=>{":"!==t.charAt(0)&&(f[t]=e)}));const p=i.request(f);return p.once("response",(e=>{const r=p,n=(e=Object.assign({},e))[l];delete e[l],r.headers=e,r.statusCode=+n,t(r)})),p}},Fo=jo&&function(e){return t=async function(t,r,s){let{data:c,lookup:u,family:p,httpVersion:d=1,http2Options:h}=e;const{responseType:m,responseEncoding:y}=e,g=e.method.toUpperCase();let b,E,_=!1;if(d=+d,Number.isNaN(d))throw TypeError(`Invalid protocol version: '${e.httpVersion}' is not a number`);if(1!==d&&2!==d)throw TypeError(`Unsupported protocol version '${d}'`);const R=2===d;if(u){const e=mo(u,(e=>Mr.isArray(e)?e:[e]));u=(t,r,n)=>{e(t,r,((e,t,o)=>{if(e)return n(e);const s=Mr.isArray(t)?t.map((e=>No(e))):[No(t,o)];r.all?n(e,s):n(e,s[0].address,s[0].family)}))}}const w=new f.EventEmitter;function O(t){try{w.emit("abort",!t||t.type?new On(null,e,E):t)}catch(e){console.warn("emit error",e)}}w.once("abort",r);const v=()=>{e.cancelToken&&e.cancelToken.unsubscribe(O),e.signal&&e.signal.removeEventListener("abort",O),w.removeAllListeners()};(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(O),e.signal&&(e.signal.aborted?O():e.signal.addEventListener("abort",O))),s(((e,t)=>{if(b=!0,t)return _=!0,void v();const{data:r}=e;if(r instanceof a.Readable||r instanceof a.Duplex){const e=a.finished(r,(()=>{e(),v()}))}else v()}));const C=Cn(e.baseURL,e.url,e.allowAbsoluteUrls),A=new URL(C,pn.hasBrowserEnv?pn.origin:void 0),T=A.protocol||Co[0];if("data:"===T){if(e.maxContentLength>-1){const t=function(e){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const r=e.slice(5,t),n=e.slice(t+1);if(/;base64/i.test(r)){let e=n.length;const t=n.length;for(let r=0;r<t;r++)if(37===n.charCodeAt(r)&&r+2<t){const t=n.charCodeAt(r+1),o=n.charCodeAt(r+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(o>=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102)&&(e-=2,r+=2)}let r=0,o=t-1;const s=e=>e>=2&&37===n.charCodeAt(e-2)&&51===n.charCodeAt(e-1)&&(68===n.charCodeAt(e)||100===n.charCodeAt(e));o>=0&&(61===n.charCodeAt(o)?(r++,o--):s(o)&&(r++,o-=3)),1===r&&o>=0&&(61===n.charCodeAt(o)||s(o))&&r++;const i=3*Math.floor(e/4)-(r||0);return i>0?i:0}return Buffer.byteLength(n,"utf8")}(String(e.url||C||""));if(t>e.maxContentLength)return r(new zr("maxContentLength size of "+e.maxContentLength+" exceeded",zr.ERR_BAD_RESPONSE,e))}let n;if("GET"!==g)return vn(t,r,{status:405,statusText:"method not allowed",headers:{},config:e});try{n=function(e,t,r){const n=r&&r.Blob||pn.classes.Blob,o=ro(e);if(void 0===t&&n&&(t=!0),"data"===o){e=o.length?e.slice(o.length+1):e;const r=no.exec(e);if(!r)throw new zr("Invalid URL",zr.ERR_INVALID_URL);const s=r[1],i=r[2],a=r[3],c=Buffer.from(decodeURIComponent(a),i?"base64":"utf8");if(t){if(!n)throw new zr("Blob is not supported",zr.ERR_NOT_SUPPORT);return new n([c],{type:s})}return c}throw new zr("Unsupported protocol "+o,zr.ERR_NOT_SUPPORT)}(e.url,"blob"===m,{Blob:e.env&&e.env.Blob})}catch(t){throw zr.from(t,zr.ERR_BAD_REQUEST,e)}return"text"===m?(n=n.toString(y),y&&"utf8"!==y||(n=Mr.stripBOM(n))):"stream"===m&&(n=a.Readable.from(n)),vn(t,r,{data:n,status:200,statusText:"OK",headers:new _n,config:e})}if(-1===Co.indexOf(T))return r(new zr("Unsupported protocol "+T,zr.ERR_BAD_REQUEST,e));const S=_n.from(e.headers).normalize();S.set("User-Agent","axios/"+to,!1);const{onUploadProgress:x,onDownloadProgress:j}=e,N=e.maxRate;let L,F;if(Mr.isSpecCompliantForm(c)){const e=S.getContentType(/boundary=([-_\w\d]{10,70})/i);c=((e,t,r)=>{const{tag:n="form-data-boundary",size:o=25,boundary:s=n+"-"+pn.generateString(o,co)}=r||{};if(!Mr.isFormData(e))throw TypeError("FormData instance required");if(s.length<1||s.length>70)throw Error("boundary must be 10-70 characters long");const i=uo.encode("--"+s+lo),c=uo.encode("--"+s+"--"+lo);let u=c.byteLength;const l=Array.from(e.entries()).map((([e,t])=>{const r=new po(e,t);return u+=r.size,r}));u+=i.byteLength*l.length,u=Mr.toFiniteNumber(u);const f={"Content-Type":`multipart/form-data; boundary=${s}`};return Number.isFinite(u)&&(f["Content-Length"]=u),t&&t(f),a.Readable.from(async function*(){for(const e of l)yield i,yield*e.encode();yield c}())})(c,(e=>{S.set(e)}),{tag:`axios-${to}-boundary`,boundary:e&&e[1]||void 0})}else if(Mr.isFormData(c)&&Mr.isFunction(c.getHeaders)){if(S.set(c.getHeaders()),!S.hasContentLength())try{const e=await i.promisify(c.getLength).call(c);Number.isFinite(e)&&e>=0&&S.setContentLength(e)}catch(e){}}else if(Mr.isBlob(c)||Mr.isFile(c))c.size&&S.setContentType(c.type||"application/octet-stream"),S.setContentLength(c.size||0),c=a.Readable.from(ao(c));else if(c&&!Mr.isStream(c)){if(Buffer.isBuffer(c));else if(Mr.isArrayBuffer(c))c=Buffer.from(new Uint8Array(c));else{if(!Mr.isString(c))return r(new zr("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",zr.ERR_BAD_REQUEST,e));c=Buffer.from(c,"utf-8")}if(S.setContentLength(c.length,!1),e.maxBodyLength>-1&&c.length>e.maxBodyLength)return r(new zr("Request body larger than maxBodyLength limit",zr.ERR_BAD_REQUEST,e))}const U=Mr.toFiniteNumber(S.getContentLength());let P,D;Mr.isArray(N)?(L=N[0],F=N[1]):L=F=N,c&&(x||L)&&(Mr.isStream(c)||(c=a.Readable.from(c,{objectMode:!1})),c=a.pipeline([c,new so({maxRate:Mr.toFiniteNumber(L)})],Mr.noop),x&&c.on("progress",Ao(c,go(U,yo(bo(x),!1,3))))),e.auth&&(P=(e.auth.username||"")+":"+(e.auth.password||"")),!P&&A.username&&(P=A.username+":"+A.password),P&&S.delete("authorization");try{D=Qr(A.pathname+A.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(t){const n=new Error(t.message);return n.config=e,n.url=e.url,n.exists=!0,r(n)}S.set("Accept-Encoding","gzip, compress, deflate"+(Ro?", br":""),!1);const I={path:D,method:g,headers:S.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:P,protocol:T,family:p,beforeRedirect:So,beforeRedirects:{},http2Options:h};let B;!Mr.isUndefined(u)&&(I.lookup=u),e.socketPath?I.socketPath=e.socketPath:(I.hostname=A.hostname.startsWith("[")?A.hostname.slice(1,-1):A.hostname,I.port=A.port,xo(I,e.proxy,T+"//"+A.hostname+(A.port?":"+A.port:"")+I.path));const k=vo.test(I.protocol);if(I.agent=k?e.httpsAgent:e.httpAgent,R?B=Lo:e.transport?B=e.transport:0===e.maxRedirects?B=k?o:n:(e.maxRedirects&&(I.maxRedirects=e.maxRedirects),e.beforeRedirect&&(I.beforeRedirects.config=e.beforeRedirect),B=k?Oo:wo),e.maxBodyLength>-1?I.maxBodyLength=e.maxBodyLength:I.maxBodyLength=1/0,e.insecureHTTPParser&&(I.insecureHTTPParser=e.insecureHTTPParser),E=B.request(I,(function(n){if(E.destroyed)return;const o=[n],s=Mr.toFiniteNumber(n.headers["content-length"]);if(j||F){const e=new so({maxRate:Mr.toFiniteNumber(F)});j&&e.on("progress",Ao(e,go(s,yo(bo(j),!0,3)))),o.push(e)}let i=n;const c=n.req||E;if(!1!==e.decompress&&n.headers["content-encoding"])switch("HEAD"!==g&&204!==n.statusCode||delete n.headers["content-encoding"],(n.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":o.push(l.createUnzip(Eo)),delete n.headers["content-encoding"];break;case"deflate":o.push(new ho),o.push(l.createUnzip(Eo)),delete n.headers["content-encoding"];break;case"br":Ro&&(o.push(l.createBrotliDecompress(_o)),delete n.headers["content-encoding"])}i=o.length>1?a.pipeline(o,Mr.noop):o[0];const u={status:n.statusCode,statusText:n.statusMessage,headers:new _n(n.headers),config:e,request:c};if("stream"===m)u.data=i,vn(t,r,u);else{const n=[];let o=0;i.on("data",(function(t){n.push(t),o+=t.length,e.maxContentLength>-1&&o>e.maxContentLength&&(_=!0,i.destroy(),O(new zr("maxContentLength size of "+e.maxContentLength+" exceeded",zr.ERR_BAD_RESPONSE,e,c)))})),i.on("aborted",(function(){if(_)return;const t=new zr("stream has been aborted",zr.ERR_BAD_RESPONSE,e,c);i.destroy(t),r(t)})),i.on("error",(function(t){E.destroyed||r(zr.from(t,null,e,c))})),i.on("end",(function(){try{let e=1===n.length?n[0]:Buffer.concat(n);"arraybuffer"!==m&&(e=e.toString(y),y&&"utf8"!==y||(e=Mr.stripBOM(e))),u.data=e}catch(t){return r(zr.from(t,null,e,u.request,u))}vn(t,r,u)}))}w.once("abort",(e=>{i.destroyed||(i.emit("error",e),i.destroy())}))})),w.once("abort",(e=>{E.close?E.close():E.destroy(e)})),E.on("error",(function(t){r(zr.from(t,null,e,E))})),E.on("socket",(function(e){e.setKeepAlive(!0,6e4)})),e.timeout){const t=parseInt(e.timeout,10);if(Number.isNaN(t))return void O(new zr("error trying to parse `config.timeout` to int",zr.ERR_BAD_OPTION_VALUE,e,E));E.setTimeout(t,(function(){if(b)return;let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||en;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),O(new zr(t,r.clarifyTimeoutError?zr.ETIMEDOUT:zr.ECONNABORTED,e,E))}))}else E.setTimeout(0);if(Mr.isStream(c)){let t=!1,r=!1;c.on("end",(()=>{t=!0})),c.once("error",(e=>{r=!0,E.destroy(e)})),c.on("close",(()=>{t||r||O(new On("Request stream has been aborted",e,E))})),c.pipe(E)}else c&&E.write(c),E.end()},new Promise(((e,r)=>{let n,o;const s=(e,t)=>{o||(o=!0,n&&n(e,t))},i=e=>{s(e,!0),r(e)};t((t=>{s(t),e(t)}),i,(e=>n=e)).catch(i)}));var t},Uo=pn.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,pn.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(pn.origin),pn.navigator&&/(msie|trident)/i.test(pn.navigator.userAgent)):()=>!0,Po=pn.hasStandardBrowserEnv?{write(e,t,r,n,o,s,i){if("undefined"==typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];Mr.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),Mr.isString(n)&&a.push(`path=${n}`),Mr.isString(o)&&a.push(`domain=${o}`),!0===s&&a.push("secure"),Mr.isString(i)&&a.push(`SameSite=${i}`),document.cookie=a.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},Do=e=>e instanceof _n?{...e}:e;function Io(e,t){t=t||{};const r={};function n(e,t,r,n){return Mr.isPlainObject(e)&&Mr.isPlainObject(t)?Mr.merge.call({caseless:n},e,t):Mr.isPlainObject(t)?Mr.merge({},t):Mr.isArray(t)?t.slice():t}function o(e,t,r,o){return Mr.isUndefined(t)?Mr.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function s(e,t){if(!Mr.isUndefined(t))return n(void 0,t)}function i(e,t){return Mr.isUndefined(t)?Mr.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,o,s){return s in t?n(r,o):s in e?n(void 0,r):void 0}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(e,t,r)=>o(Do(e),Do(t),0,!0)};return Mr.forEach(Object.keys({...e,...t}),(function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;const s=Mr.hasOwnProp(c,n)?c[n]:o,i=s(e[n],t[n],n);Mr.isUndefined(i)&&s!==a||(r[n]=i)})),r}const Bo=e=>{const t=Io({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:a}=t;if(t.headers=i=_n.from(i),t.url=Qr(Cn(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),Mr.isFormData(r))if(pn.hasStandardBrowserEnv||pn.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(Mr.isFunction(r.getHeaders)){const e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach((([e,r])=>{t.includes(e.toLowerCase())&&i.set(e,r)}))}if(pn.hasStandardBrowserEnv&&(n&&Mr.isFunction(n)&&(n=n(t)),n||!1!==n&&Uo(t.url))){const e=o&&s&&Po.read(s);e&&i.set(o,e)}return t},ko="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){const n=Bo(e);let o=n.data;const s=_n.from(n.headers).normalize();let i,a,c,u,l,{responseType:f,onUploadProgress:p,onDownloadProgress:d}=n;function h(){u&&u(),l&&l(),n.cancelToken&&n.cancelToken.unsubscribe(i),n.signal&&n.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;function y(){if(!m)return;const n=_n.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());vn((function(e){t(e),h()}),(function(e){r(e),h()}),{data:f&&"text"!==f&&"json"!==f?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:n,config:e,request:m}),m=null}m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout,"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(y)},m.onabort=function(){m&&(r(new zr("Request aborted",zr.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const n=t&&t.message?t.message:"Network Error",o=new zr(n,zr.ERR_NETWORK,e,m);o.event=t||null,r(o),m=null},m.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||en;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new zr(t,o.clarifyTimeoutError?zr.ETIMEDOUT:zr.ECONNABORTED,e,m)),m=null},void 0===o&&s.setContentType(null),"setRequestHeader"in m&&Mr.forEach(s.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),Mr.isUndefined(n.withCredentials)||(m.withCredentials=!!n.withCredentials),f&&"json"!==f&&(m.responseType=n.responseType),d&&([c,l]=yo(d,!0),m.addEventListener("progress",c)),p&&m.upload&&([a,u]=yo(p),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(i=t=>{m&&(r(!t||t.type?new On(null,e,m):t),m.abort(),m=null)},n.cancelToken&&n.cancelToken.subscribe(i),n.signal&&(n.signal.aborted?i():n.signal.addEventListener("abort",i)));const g=ro(n.url);g&&-1===pn.protocols.indexOf(g)?r(new zr("Unsupported protocol "+g+":",zr.ERR_BAD_REQUEST,e)):m.send(o||null)}))},qo=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController;const o=function(e){if(!r){r=!0,i();const t=e instanceof Error?e:this.reason;n.abort(t instanceof zr?t:new On(t instanceof Error?t.message:t))}};let s=t&&setTimeout((()=>{s=null,o(new zr(`timeout of ${t}ms exceeded`,zr.ETIMEDOUT))}),t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:a}=n;return a.unsubscribe=()=>Mr.asap(i),a}},Mo=function*(e,t){let r=e.byteLength;if(r<t)return void(yield e);let n,o=0;for(;o<r;)n=o+t,yield e.slice(o,n),o=n},zo=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},Ho=(e,t,r,n)=>{const o=async function*(e,t){for await(const r of zo(e))yield*Mo(r,t)}(e,t);let s,i=0,a=e=>{s||(s=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await o.next();if(t)return a(),void e.close();let s=n.byteLength;if(r){let e=i+=s;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},{isFunction:$o}=Mr,Wo=(({Request:e,Response:t})=>({Request:e,Response:t}))(Mr.global),{ReadableStream:Go,TextEncoder:Vo}=Mr.global,Jo=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Ko=e=>{e=Mr.merge.call({skipUndefined:!0},Wo,e);const{fetch:t,Request:r,Response:n}=e,o=t?$o(t):"function"==typeof fetch,s=$o(r),i=$o(n);if(!o)return!1;const a=o&&$o(Go),c=o&&("function"==typeof Vo?(u=new Vo,e=>u.encode(e)):async e=>new Uint8Array(await new r(e).arrayBuffer()));var u;const l=s&&a&&Jo((()=>{let e=!1;const t=new Go,n=new r(pn.origin,{body:t,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return t.cancel(),e&&!n})),f=i&&a&&Jo((()=>Mr.isReadableStream(new n("").body))),p={stream:f&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!p[e]&&(p[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new zr(`Response type '${e}' is not supported`,zr.ERR_NOT_SUPPORT,r)})}));const d=async(e,t)=>{const n=Mr.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(Mr.isBlob(e))return e.size;if(Mr.isSpecCompliantForm(e)){const t=new r(pn.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Mr.isArrayBufferView(e)||Mr.isArrayBuffer(e)?e.byteLength:(Mr.isURLSearchParams(e)&&(e+=""),Mr.isString(e)?(await c(e)).byteLength:void 0)})(t):n};return async e=>{let{url:o,method:i,data:a,signal:c,cancelToken:u,timeout:h,onDownloadProgress:m,onUploadProgress:y,responseType:g,headers:b,withCredentials:E="same-origin",fetchOptions:_}=Bo(e),R=t||fetch;g=g?(g+"").toLowerCase():"text";let w=qo([c,u&&u.toAbortSignal()],h),O=null;const v=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let C;try{if(y&&l&&"get"!==i&&"head"!==i&&0!==(C=await d(b,a))){let e,t=new r(o,{method:"POST",body:a,duplex:"half"});if(Mr.isFormData(a)&&(e=t.headers.get("content-type"))&&b.setContentType(e),t.body){const[e,r]=go(C,yo(bo(y)));a=Ho(t.body,65536,e,r)}}Mr.isString(E)||(E=E?"include":"omit");const t=s&&"credentials"in r.prototype,c={..._,signal:w,method:i.toUpperCase(),headers:b.normalize().toJSON(),body:a,duplex:"half",credentials:t?E:void 0};O=s&&new r(o,c);let u=await(s?R(O,_):R(o,c));const h=f&&("stream"===g||"response"===g);if(f&&(m||h&&v)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=u[t]}));const t=Mr.toFiniteNumber(u.headers.get("content-length")),[r,o]=m&&go(t,yo(bo(m),!0))||[];u=new n(Ho(u.body,65536,r,(()=>{o&&o(),v&&v()})),e)}g=g||"text";let A=await p[Mr.findKey(p,g)||"text"](u,e);return!h&&v&&v(),await new Promise(((t,r)=>{vn(t,r,{data:A,headers:_n.from(u.headers),status:u.status,statusText:u.statusText,config:e,request:O})}))}catch(t){if(v&&v(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new zr("Network Error",zr.ERR_NETWORK,e,O,t&&t.response),{cause:t.cause||t});throw zr.from(t,t&&t.code,e,O,t&&t.response)}}},Xo=new Map,Yo=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,s=[n,o,r];let i,a,c=s.length,u=Xo;for(;c--;)i=s[c],a=u.get(i),void 0===a&&u.set(i,a=c?new Map:Ko(t)),u=a;return a};Yo();const Qo={http:Fo,xhr:ko,fetch:{get:Yo}};Mr.forEach(Qo,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Zo=e=>`- ${e}`,es=e=>Mr.isFunction(e)||null===e||!1===e;const ts={getAdapter:function(e,t){e=Mr.isArray(e)?e:[e];const{length:r}=e;let n,o;const s={};for(let i=0;i<r;i++){let r;if(n=e[i],o=n,!es(n)&&(o=Qo[(r=String(n)).toLowerCase()],void 0===o))throw new zr(`Unknown adapter '${r}'`);if(o&&(Mr.isFunction(o)||(o=o.get(t))))break;s[r||"#"+i]=o}if(!o){const e=Object.entries(s).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let t=r?e.length>1?"since :\n"+e.map(Zo).join("\n"):" "+Zo(e[0]):"as no adapter specified";throw new zr("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return o},adapters:Qo};function rs(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new On(null,e)}function ns(e){rs(e),e.headers=_n.from(e.headers),e.data=Rn.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return ts.getAdapter(e.adapter||hn.adapter,e)(e).then((function(t){return rs(e),t.data=Rn.call(e,e.transformResponse,t),t.headers=_n.from(t.headers),t}),(function(t){return wn(t)||(rs(e),t&&t.response&&(t.response.data=Rn.call(e,e.transformResponse,t.response),t.response.headers=_n.from(t.response.headers))),Promise.reject(t)}))}const os={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{os[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const ss={};os.transitional=function(e,t,r){function n(e,t){return"[Axios v"+to+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,s)=>{if(!1===e)throw new zr(n(o," has been removed"+(t?" in "+t:"")),zr.ERR_DEPRECATED);return t&&!ss[o]&&(ss[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,s)}},os.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};const is={assertOptions:function(e,t,r){if("object"!=typeof e)throw new zr("options must be an object",zr.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const s=n[o],i=t[s];if(i){const t=e[s],r=void 0===t||i(t,s,e);if(!0!==r)throw new zr("option "+s+" must be "+r,zr.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new zr("Unknown option "+s,zr.ERR_BAD_OPTION)}},validators:os},as=is.validators;let cs=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Zr,response:new Zr}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Io(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&is.assertOptions(r,{silentJSONParsing:as.transitional(as.boolean),forcedJSONParsing:as.transitional(as.boolean),clarifyTimeoutError:as.transitional(as.boolean),legacyInterceptorReqResOrdering:as.transitional(as.boolean)},!1),null!=n&&(Mr.isFunction(n)?t.paramsSerializer={serialize:n}:is.assertOptions(n,{encode:as.function,serialize:as.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),is.assertOptions(t,{baseUrl:as.spelling("baseURL"),withXsrfToken:as.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=o&&Mr.merge(o.common,o[t.method]);o&&Mr.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=_n.concat(s,o);const i=[];let a=!0;this.interceptors.request.forEach((function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;a=a&&e.synchronous;const r=t.transitional||en;r&&r.legacyInterceptorReqResOrdering?i.unshift(e.fulfilled,e.rejected):i.push(e.fulfilled,e.rejected)}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,f=0;if(!a){const e=[ns.bind(this),void 0];for(e.unshift(...i),e.push(...c),l=e.length,u=Promise.resolve(t);f<l;)u=u.then(e[f++],e[f++]);return u}l=i.length;let p=t;for(;f<l;){const e=i[f++],t=i[f++];try{p=e(p)}catch(e){t.call(this,e);break}}try{u=ns.call(this,p)}catch(e){return Promise.reject(e)}for(f=0,l=c.length;f<l;)u=u.then(c[f++],c[f++]);return u}getUri(e){return Qr(Cn((e=Io(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};Mr.forEach(["delete","get","head","options"],(function(e){cs.prototype[e]=function(t,r){return this.request(Io(r||{},{method:e,url:t,data:(r||{}).data}))}})),Mr.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(Io(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}cs.prototype[e]=t(),cs.prototype[e+"Form"]=t(!0)}));const us={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(us).forEach((([e,t])=>{us[t]=e}));const ls=function e(t){const r=new cs(t),n=Xt(cs.prototype.request,r);return Mr.extend(n,cs.prototype,r,{allOwnKeys:!0}),Mr.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(Io(t,r))},n}(hn);ls.Axios=cs,ls.CanceledError=On,ls.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,o){r.reason||(r.reason=new On(e,n,o),t(r.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 t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e((function(e){t=e})),cancel:t}}},ls.isCancel=wn,ls.VERSION=to,ls.toFormData=Vr,ls.AxiosError=zr,ls.Cancel=ls.CanceledError,ls.all=function(e){return Promise.all(e)},ls.spread=function(e){return function(t){return e.apply(null,t)}},ls.isAxiosError=function(e){return Mr.isObject(e)&&!0===e.isAxiosError},ls.mergeConfig=Io,ls.AxiosHeaders=_n,ls.formToJSON=e=>dn(Mr.isHTMLForm(e)?new FormData(e):e),ls.getAdapter=ts.getAdapter,ls.HttpStatusCode=us,ls.default=ls;const{Axios:fs,AxiosError:ps,CanceledError:ds,isCancel:hs,CancelToken:ms,VERSION:ys,all:gs,Cancel:bs,isAxiosError:Es,spread:_s,toFormData:Rs,AxiosHeaders:ws,HttpStatusCode:Os,formToJSON:vs,getAdapter:Cs,mergeConfig:As}=ls;function Ts(e){let t,r=e[0],n=1;for(;n<e.length;){const o=e[n],s=e[n+1];if(n+=2,("optionalAccess"===o||"optionalCall"===o)&&null==r)return;"access"===o||"optionalAccess"===o?(t=r,r=s(r)):"call"!==o&&"optionalCall"!==o||(r=s(((...e)=>r.call(t,...e))),t=void 0)}return r}function Ss(){return function(e={}){const{isSuccess:t=e=>0===e,getCode:r=e=>Ts([e,"access",e=>e.data,"optionalAccess",e=>e.code]),getMessage:n=e=>Ts([e,"access",e=>e.data,"optionalAccess",e=>e.message])||Ts([e,"access",e=>e.data,"optionalAccess",e=>e.msg]),getData:o=e=>Ts([e,"access",e=>e.data,"optionalAccess",e=>e.data]),throwOnError:s=!0,onError:i}=e;return{name:"response-validator",onResponse:e=>{const a=r(e);if(void 0===a)return e;if(t(a))return o(e);const c=n(e)||"Request failed";if(i&&!1===i(a,c,e))return e;if(s)throw new Kt(c,{status:e.status,code:a,config:e.config,response:e,data:e.data});return e}}}({isSuccess:e=>0===e,getCode:e=>Ts([e,"access",e=>e.data,"optionalAccess",e=>e.code]),getMessage:e=>Ts([e,"access",e=>e.data,"optionalAccess",e=>e.message])||Ts([e,"access",e=>e.data,"optionalAccess",e=>e.msg]),getData:e=>e.data})}function xs(e){let t,r=e[0],n=1;for(;n<e.length;){const o=e[n],s=e[n+1];if(n+=2,("optionalAccess"===o||"optionalCall"===o)&&null==r)return;"access"===o||"optionalAccess"===o?(t=r,r=s(r)):"call"!==o&&"optionalCall"!==o||(r=s(((...e)=>r.call(t,...e))),t=void 0)}return r}const js={"/api/marketplace/trade/benefit/user/extra/create":{fields:["extra_benefit.item_info.start_at","extra_benefit.item_info.end_at"]},"/api/memory/volcano_database/list_instance":{fields:["page_num","page_size"]},"/api/memory/volcano_database/list_database":{fields:["page_num","page_size"]},"/api/memory/volcano_database/list_table":{fields:["page_num","page_size"]}};function Ns(e){const{config:t}=e;return{name:"i64-transform",onRequest:e=>{const r=function(e,t){return r=t[e],n=()=>null,null!=r?r:n();var r,n}(e.url||"",t);return r?(e.data&&(e.data=function(e,t){if(null==e)return e;const r=Wt(e);for(const e of t){const t=Ze(r,e);if("string"==typeof t){const n=Number(t);Number.isInteger(n)&&Vt(r,e,n)}else Array.isArray(t)&&Vt(r,e,t.map((e=>{if("string"==typeof e){const t=Number(e);if(Number.isInteger(t))return t}return e})))}return r}(e.data,r.fields)),e):e}}}function Ls(e={}){const t=ls.create({baseURL:e.baseURL,timeout:e.timeout,headers:e.headers,...e.axiosConfig}),r=[];return!1!==e.useDefaultPlugins&&r.push(function(e={}){const{xRequestedWith:t="XMLHttpRequest",autoContentTypeMethods:r=["post","get"],contentType:n="application/json",setEmptyDataForContentType:o=!0}=e;return{name:"request-headers",onRequest:e=>{const s=(t,r)=>{"function"==typeof xs([e,"access",e=>e.headers,"optionalAccess",e=>e.set])?e.headers.set(t,r):e.headers&&(e.headers[t]=r)};!1!==t&&s("x-requested-with",t);const i=xs([e,"access",e=>e.method,"optionalAccess",e=>e.toLowerCase,"call",e=>e()])||"get";var a;return r.includes(i)&&(a="content-type",!("function"==typeof xs([e,"access",e=>e.headers,"optionalAccess",e=>e.get])?e.headers.get(a):xs([e,"access",e=>e.headers,"optionalAccess",e=>e[a]])))&&(s("content-type",n),o&&!e.data&&(e.data={})),e}}}(),Ns({config:js}),Ss(),function(e={}){const t=new Set(e.interceptors||[]),r={name:"interceptor-chain",onResponse:e=>{let r=e;for(const e of t)r=e(r);return r}};return{plugin:r,add:e=>(t.add(e),()=>{t.delete(e)}),remove:e=>{t.delete(e)},clear:()=>{t.clear()},size:()=>t.size}}().plugin),e.plugins&&e.plugins.length>0&&r.push(...e.plugins),r.forEach((e=>{e.onRequest&&t.interceptors.request.use(e.onRequest,e.onError),(e.onResponse||e.onError)&&t.interceptors.response.use(e.onResponse,e.onError)})),t}const Fs=Ls({baseURL:"/",headers:{"Agw-Js-Conv":"str"}}),Us=Fs;function Ps(e){let t,r=e[0],n=1;for(;n<e.length;){const o=e[n],s=e[n+1];if(n+=2,("optionalAccess"===o||"optionalCall"===o)&&null==r)return;"access"===o||"optionalAccess"===o?(t=r,r=s(r)):"call"!==o&&"optionalCall"!==o||(r=s(((...e)=>r.call(t,...e))),t=void 0)}return r}const Ds={E1000:"INVALID_ARGUMENT",E1001:"MISSING_PROJECT_ID",E1002:"MISSING_MESSAGE",E1003:"MISSING_SPACE_ID",E1004:"INVALID_DOMAIN",E1005:"INVALID_PROJECT_TYPE",E1006:"UNSUPPORTED_PROJECT_TYPE",E1007:"DB_SQL_DANGEROUS",E1008:"MISSING_IMPORT_SOURCE",E1009:"MISSING_REPO",E1010:"MISSING_FILE",E1011:"INVALID_FILE_FORMAT",E1012:"FILE_TOO_LARGE",E1013:"MISSING_REPO_NAME",E1014:"MISSING_REPO_CREATION_NAME",E1015:"INVALID_PROVIDER",E1100:"UNKNOWN_OPTION",E1101:"UNKNOWN_COMMAND",E1102:"MISSING_ARGUMENT",E1103:"MISSING_OPTION",E2001:"AUTH_FAILED",E2002:"MINIPROGRAM_NOT_AUTHORIZED",E2003:"PERMISSION_DENIED",E2004:"GIT_NOT_AUTHORIZED",E2005:"OAUTH_TIMEOUT",E2006:"OAUTH_CANCELLED",E2007:"NOT_AUTHORIZED",E3000:"RESOURCE_NOT_FOUND",E3001:"PROJECT_NOT_FOUND",E3002:"SKILL_NOT_FOUND",E3003:"SECRET_NOT_FOUND",E3004:"SKILL_NOT_INSTALLED",E3005:"DELETE_FAILED",E3006:"NO_DEPLOYMENT_HISTORY",E3007:"MISSING_COMMIT_HASH",E3008:"SKILL_PROJECT_NOT_SUPPORTED",E3009:"CONFLICT",E3010:"DB_NOT_FOUND",E3011:"DB_CREATING",E3012:"DB_RESTORE_WINDOW_EXCEEDED",E3013:"DB_RESTORE_IN_PROGRESS",E3014:"REPO_NOT_BOUND",E3015:"REPO_NOT_EMPTY",E3016:"REPO_ALREADY_BOUND",E3017:"NOTHING_TO_PUSH",E3018:"REMOTE_HAS_UPDATES",E3019:"MERGE_CONFLICT",E3020:"WOULD_OVERWRITE",E4001:"QUOTA_EXCEEDED",E4002:"DB_QUOTA_EXCEEDED",E5000:"UNEXPECTED_ERROR",E5001:"NETWORK_ERROR",E5002:"SERVER_ERROR",E5003:"TIMEOUT",E5004:"DB_SQL_EXECUTION_FAILED",E5005:"DB_CONNECTION_FAILED",E5006:"DB_GEN_TYPES_FAILED",E5007:"DB_DUMP_FAILED"};function Is(e,t){return null!=e?e:t()}function Bs(e){let t,r=e[0],n=1;for(;n<e.length;){const o=e[n],s=e[n+1];if(n+=2,("optionalAccess"===o||"optionalCall"===o)&&null==r)return;"access"===o||"optionalAccess"===o?(t=r,r=s(r)):"call"!==o&&"optionalCall"!==o||(r=s(((...e)=>r.call(t,...e))),t=void 0)}return r}exports.ExitCode=void 0,function(e){e[e.SUCCESS=0]="SUCCESS";e[e.FAILURE=1]="FAILURE";e[e.AUTH_ERROR=2]="AUTH_ERROR";e[e.INPUT_ERROR=4]="INPUT_ERROR"}(exports.ExitCode||(exports.ExitCode={}));class ks extends Error{constructor(e,t,r,n){const o=Is(Ds[e],(()=>"UNKNOWN_ERROR")),s=Is(t,(()=>o));super(s),this.name="CozeError",this.code=e,this.errorName=o,this.desc=s,this.details=r,this.trigger=Bs([n,"optionalAccess",e=>e.trigger]),this.fix=Bs([n,"optionalAccess",e=>e.fix]),this.example=Bs([n,"optionalAccess",e=>e.example]),this.isMessageExplicit=void 0!==t,Object.setPrototypeOf(this,ks.prototype)}}class qs{constructor(){qs.prototype.__init.call(this),qs.prototype.__init2.call(this)}__init(){this.headers={}}__init2(){this.scopedHeadersProviders=new Map}setHeaders(e){this.headers=d.merge({},this.headers,e)}getHeaders(){return this.headers}setScopedHeadersProvider(e,t){this.scopedHeadersProviders.set(e,t)}removeScopedHeadersProvider(e){this.scopedHeadersProviders.delete(e)}getRequestHeaders(e,t){const r={};return[...this.scopedHeadersProviders.values()].forEach((n=>{d.merge(r,n(e,t))})),d.merge({},this.headers,function(e){let t,r=e[0],n=1;for(;n<e.length;){const o=e[n],s=e[n+1];if(n+=2,("optionalAccess"===o||"optionalCall"===o)&&null==r)return;"access"===o||"optionalAccess"===o?(t=r,r=s(r)):"call"!==o&&"optionalCall"!==o||(r=s(((...e)=>r.call(t,...e))),t=void 0)}return r}([t,"optionalAccess",e=>e.headers]),r)}resetHeaders(){this.headers={}}setDispatcher(e){this.dispatcher=e}clearDispatcher(){this.dispatcher=void 0}async fetch(e,t){return p.fetch(e,{...t,headers:this.getRequestHeaders(e,t),dispatcher:this.dispatcher})}}const Ms=new qs;exports.CozeError=ks,exports.ErrorCode={E1000:"E1000",E1001:"E1001",E1002:"E1002",E1003:"E1003",E1004:"E1004",E1005:"E1005",E1006:"E1006",E1007:"E1007",E1008:"E1008",E1009:"E1009",E1010:"E1010",E1011:"E1011",E1012:"E1012",E1013:"E1013",E1014:"E1014",E1015:"E1015",E1100:"E1100",E1101:"E1101",E1102:"E1102",E1103:"E1103",E2001:"E2001",E2002:"E2002",E2003:"E2003",E2004:"E2004",E2005:"E2005",E2006:"E2006",E2007:"E2007",E3000:"E3000",E3001:"E3001",E3002:"E3002",E3003:"E3003",E3004:"E3004",E3005:"E3005",E3006:"E3006",E3007:"E3007",E3008:"E3008",E3009:"E3009",E3010:"E3010",E3011:"E3011",E3012:"E3012",E3013:"E3013",E3014:"E3014",E3015:"E3015",E3016:"E3016",E3017:"E3017",E3018:"E3018",E3019:"E3019",E3020:"E3020",E4001:"E4001",E4002:"E4002",E5000:"E5000",E5001:"E5001",E5002:"E5002",E5003:"E5003",E5004:"E5004",E5005:"E5005",E5006:"E5006",E5007:"E5007"},exports.ErrorNameByCode=Ds,exports.HttpError=Kt,exports.MapCache=ze,exports.Stack=rt,exports.Symbol=g,exports.Uint8Array=St,exports.arrayLikeKeys=Ce,exports.arrayMap=T,exports.arrayPush=et,exports.assignValue=re,exports.axiosInstance=Us,exports.axiosInstance$1=Fs,exports.baseAssignValue=Z,exports.baseGet=Qe,exports.baseGetAllKeys=pt,exports.baseGetTag=v,exports.baseSet=Gt,exports.castPath=Xe,exports.cloneBuffer=at,exports.cloneDeep=Wt,exports.cloneTypedArray=Ft,exports.createRequestClient=Ls,exports.customFetch=Ms,exports.defineProperty=X,exports.eq=ee,exports.exitCodeForError=function(e){const t=Number.parseInt(e.slice(1),10);return t>=1e3&&t<2e3?exports.ExitCode.INPUT_ERROR:t>=2e3&&t<3e3?exports.ExitCode.AUTH_ERROR:exports.ExitCode.FAILURE},exports.get=Ze,exports.getAllKeys=dt,exports.getDefaultExportFromCjs=xn,exports.getPrototype=tt,exports.getSymbols=ft,exports.initCloneObject=Pt,exports.isArguments=fe,exports.isArray=S,exports.isArrayLike=oe,exports.isBuffer=me,exports.isFunction=F,exports.isHttpError=function(e){return e instanceof Kt},exports.isIndex=Q,exports.isKey=Le,exports.isLength=ne,exports.isObject=L,exports.isObjectLike=C,exports.isPrototype=ie,exports.isTypedArray=Oe,exports.keys=xe,exports.request=(e,t)=>Us({...e,...t}),exports.requireSrc=Qn,exports.safeJsonParse=function(e,t,r){let n,o;if(2===arguments.length?t&&"object"==typeof t&&("onError"in t||"validate"in t||"throwOnValidationError"in t)?(o=t,n=void 0):(n=t,o=void 0):3===arguments.length&&(n=t,o=r),"object"==typeof e&&null!==e)return e;try{const t=JSON.parse(String(e));if(Ps([o,"optionalAccess",e=>e.validate])){if(o.validate(t))return t;{const t=new Error("JSON validation failed");if(Ps([o,"access",e=>e.onError,"optionalCall",r=>r(t,e)]),o.throwOnValidationError)throw t;return n}}return t}catch(t){if(t instanceof Error&&"JSON validation failed"===t.message&&Ps([o,"optionalAccess",e=>e.throwOnValidationError]))throw t;return Ps([o,"optionalAccess",e=>e.onError,"optionalCall",r=>r(t,e)]),n}},exports.stubArray=ct,exports.toKey=Ye;