@qlover/fe-corekit 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -24
- package/dist/index.d.ts +337 -536
- package/dist/index.js +1 -0
- package/dist/index.umd.js +1 -1
- package/package.json +7 -15
- package/dist/index.es.js +0 -1
- package/dist/interface/index.d.ts +0 -947
- package/dist/interface/index.es.js +0 -1
- package/dist/interface/index.umd.js +0 -1
- package/dist/server/index.cjs.js +0 -1
- package/dist/server/index.d.ts +0 -152
- package/dist/server/index.es.js +0 -1
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t=function(r,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},t(r,n)};function r(r,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=r}t(r,n),r.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}var n=function(){return n=Object.assign||function(t){for(var r,n=1,e=arguments.length;n<e;n++)for(var o in r=arguments[n])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},n.apply(this,arguments)};function e(t,r,n,e){return new(n||(n=Promise))((function(o,i){function u(t){try{c(e.next(t))}catch(t){i(t)}}function a(t){try{c(e.throw(t))}catch(t){i(t)}}function c(t){var r;t.done?o(t.value):(r=t.value,r instanceof n?r:new n((function(t){t(r)}))).then(u,a)}c((e=e.apply(t,r||[])).next())}))}function o(t,r){var n,e,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},u=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return u.next=a(0),u.throw=a(1),u.return=a(2),"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;u&&(u=0,a[0]&&(i=0)),i;)try{if(n=1,e&&(o=2&a[0]?e.return:a[0]?e.throw||((o=e.return)&&o.call(e),0):e.next)&&!(o=o.call(e,a[1])).done)return o;switch(e=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,e=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=r.call(t,i)}catch(t){a=[6,t],e=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}function i(t,r,n){if(n||2===arguments.length)for(var e,o=0,i=r.length;o<i;o++)!e&&o in r||(e||(e=Array.prototype.slice.call(r,0,o)),e[o]=r[o]);return t.concat(e||Array.prototype.slice.call(r))}"function"==typeof SuppressedError&&SuppressedError;var u,a=function(){function t(t){this.config=t,this.plugins=[]}return t.prototype.use=function(t){this.plugins.find((function(r){return r===t||r.pluginName===t.pluginName||r.constructor===t.constructor}))&&t.onlyOne?console.warn("Plugin ".concat(t.pluginName," is already used, skip adding")):this.plugins.push(t)},t}(),c=function(t){function n(r,n){var e=this.constructor,o=t.call(this,n instanceof Error?n.message:n||r)||this;return o.id=r,n instanceof Error&&"stack"in n&&(o.stack=n.stack),Object.setPrototypeOf(o,e.prototype),o}return r(n,t),n}(Error),s=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n.prototype.runHooks=function(t,r,n){for(var u=[],a=3;a<arguments.length;a++)u[a-3]=arguments[a];return e(this,void 0,void 0,(function(){var e,a,c,s,f,p,l,h;return o(this,(function(o){switch(o.label){case 0:e=-1,(c=n||{parameters:void 0,hooksRuntimes:{}}).hooksRuntimes.times=0,c.hooksRuntimes.index=void 0,s=0,f=t,o.label=1;case 1:return s<f.length?(p=f[s],e++,"function"!=typeof p[r]||"function"==typeof p.enabled&&!p.enabled(r,n)?[3,3]:(null===(h=c.hooksRuntimes)||void 0===h?void 0:h.breakChain)?[3,4]:(c.hooksRuntimes.pluginName=p.pluginName,c.hooksRuntimes.hookName=r,c.hooksRuntimes.times++,c.hooksRuntimes.index=e,[4,p[r].apply(p,i([n],u,!1))])):[3,4];case 2:if(void 0!==(l=o.sent())&&(a=l,c.hooksRuntimes.returnValue=l,c.hooksRuntimes.returnBreakChain))return[2,a];o.label=3;case 3:return s++,[3,1];case 4:return[2,a]}}))}))},n.prototype.execNoError=function(t,r){return e(this,void 0,void 0,(function(){var n;return o(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.exec(t,r)];case 1:return[2,e.sent()];case 2:return(n=e.sent())instanceof c?[2,n]:[2,new c("UNKNOWN_ASYNC_ERROR",n)];case 3:return[2]}}))}))},n.prototype.exec=function(t,r){var n=r||t,e=r?t:void 0;if("function"!=typeof n)throw new Error("Task must be a async function!");return this.run(e,n)},n.prototype.run=function(t,r){return e(this,void 0,void 0,(function(){var n,i,u,a=this;return o(this,(function(s){switch(s.label){case 0:n={parameters:t,returnValue:void 0,error:void 0,hooksRuntimes:{pluginName:"",hookName:"",returnValue:void 0,returnBreakChain:!1,times:0}},i=function(t){return e(a,void 0,void 0,(function(){var n;return o(this,(function(e){switch(e.label){case 0:return[4,this.runHooks(this.plugins,"onExec",t,r)];case 1:return e.sent(),0!==t.hooksRuntimes.times?[3,3]:(n=t,[4,r(t)]);case 2:return n.returnValue=e.sent(),[2];case 3:return t.returnValue=t.hooksRuntimes.returnValue,[2]}}))}))},s.label=1;case 1:return s.trys.push([1,5,7,8]),[4,this.runHooks(this.plugins,"onBefore",n)];case 2:return s.sent(),[4,i(n)];case 3:return s.sent(),[4,this.runHooks(this.plugins,"onSuccess",n)];case 4:return s.sent(),[2,n.returnValue];case 5:return u=s.sent(),n.error=u,[4,this.runHooks(this.plugins,"onError",n)];case 6:if(s.sent(),n.hooksRuntimes.returnValue&&(n.error=n.hooksRuntimes.returnValue),n.error instanceof c)throw n.error;throw new c("UNKNOWN_ASYNC_ERROR",n.error);case 7:return n.hooksRuntimes={pluginName:"",hookName:"",returnValue:void 0,returnBreakChain:!1,times:0},[7];case 8:return[2]}}))}))},n}(a),f=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n.prototype.runHooks=function(t,r,n){for(var e,o=[],u=3;u<arguments.length;u++)o[u-3]=arguments[u];var a,c=-1,s=n||{parameters:void 0,hooksRuntimes:{}};s.hooksRuntimes.times=0,s.hooksRuntimes.index=void 0;for(var f=0,p=t;f<p.length;f++){var l=p[f];if(c++,"function"==typeof l[r]&&("function"!=typeof l.enabled||l.enabled(r,s))){if(null===(e=s.hooksRuntimes)||void 0===e?void 0:e.breakChain)break;s.hooksRuntimes.pluginName=l.pluginName,s.hooksRuntimes.hookName=r,s.hooksRuntimes.times++,s.hooksRuntimes.index=c;var h=l[r].apply(l,i([n],o,!1));if(void 0!==h&&(a=h,s.hooksRuntimes.returnValue=h,s.hooksRuntimes.returnBreakChain))return a}}return a},n.prototype.execNoError=function(t,r){try{return this.exec(t,r)}catch(t){return t instanceof c?t:new c("UNKNOWN_SYNC_ERROR",t)}},n.prototype.exec=function(t,r){var n=r||t,e=r?t:void 0;if("function"!=typeof n)throw new Error("Task must be a function!");return this.run(e,n)},n.prototype.run=function(t,r){var n,e=this,o={parameters:t,returnValue:void 0,error:void 0,hooksRuntimes:{pluginName:"",hookName:"",returnValue:void 0,returnBreakChain:!1,times:0}};try{return this.runHooks(this.plugins,"onBefore",o),n=o,e.runHooks(e.plugins,"onExec",n,r),n.returnValue=n.hooksRuntimes.times?n.hooksRuntimes.returnValue:r(n),this.runHooks(this.plugins,"onSuccess",o),o.returnValue}catch(t){if(o.error=t,this.runHooks(this.plugins,"onError",o),o.hooksRuntimes.returnValue&&(o.error=o.hooksRuntimes.returnValue),o.error instanceof c)throw o.error;throw new c("UNKNOWN_SYNC_ERROR",o.error)}finally{o.hooksRuntimes={pluginName:"",hookName:"",returnValue:void 0,returnBreakChain:!1,times:0}}},n}(a),p=function(){return!0},l=function(){function t(t){var r;void 0===t&&(t={}),this.pluginName="RetryPlugin",this.onlyOne=!0,this.options=n(n({retryDelay:1e3,useExponentialBackoff:!1,shouldRetry:p},t),{maxRetries:Math.min(Math.max(1,null!==(r=t.maxRetries)&&void 0!==r?r:3),16)})}return t.prototype.delay=function(t){return e(this,void 0,void 0,(function(){var r;return o(this,(function(n){return r=this.options.useExponentialBackoff?this.options.retryDelay*Math.pow(2,t):this.options.retryDelay,[2,new Promise((function(t){return setTimeout(t,r)}))]}))}))},t.prototype.onExec=function(t,r){return e(this,void 0,void 0,(function(){return o(this,(function(n){return this.options.maxRetries<1?[2,r(t)]:[2,this.retry(r,t,this.options,this.options.maxRetries)]}))}))},t.prototype.shouldRetry=function(t){var r=t.error;return t.retryCount>0&&this.options.shouldRetry(r)},t.prototype.retry=function(t,r,n,i){return e(this,void 0,void 0,(function(){var e;return o(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,4]),[4,t(r)];case 1:return[2,o.sent()];case 2:if(e=o.sent(),!this.shouldRetry({error:e,retryCount:i}))throw new c("RETRY_ERROR","All ".concat(n.maxRetries," attempts failed: ").concat(e.message));return[4,this.delay(n.maxRetries-i)];case 3:return o.sent(),i--,[2,this.retry(t,r,n,i)];case 4:return[2]}}))}))},t}(),h=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n}(c);!function(t){t.REQUEST_ERROR="REQUEST_ERROR",t.ENV_FETCH_NOT_SUPPORT="ENV_FETCH_NOT_SUPPORT",t.FETCHER_NONE="FETCHER_NONE",t.RESPONSE_NOT_OK="RESPONSE_NOT_OK",t.ABORT_ERROR="ABORT_ERROR",t.URL_NONE="URL_NONE"}(u||(u={}));var v="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function y(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var d,g={exports:{}};var b,m,_,O,R,w,E,j,k,x,N,T,S,A,P,C,U,q,z,B,V,H,F,I,L,K,$,D,M,W,J,G,Q,Y,Z,X,tt,rt,nt,et,ot,it,ut,at,ct,st,ft,pt,lt,ht,vt,yt,dt,gt,bt,mt,_t,Ot,Rt,wt,Et,jt,kt,xt,Nt,Tt,St,At,Pt,Ct,Ut,qt,zt,Bt,Vt,Ht,Ft,It,Lt,Kt,$t,Dt,Mt,Wt,Jt,Gt,Qt,Yt,Zt,Xt,tr,rr,nr,er,or,ir,ur,ar,cr,sr,fr,pr,lr,hr,vr,yr,dr,gr,br,mr,_r,Or,Rr,wr,Er,jr,kr,xr,Nr,Tr,Sr,Ar,Pr,Cr,Ur,qr,zr,Br,Vr,Hr,Fr,Ir,Lr,Kr,$r,Dr,Mr,Wr,Jr,Gr,Qr,Yr,Zr,Xr,tn,rn,nn,en,on,un,an,cn,sn,fn,pn=(d||(d=1,function(t,r){function n(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.apply(void 0,t)}function e(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return c(!0===t[0],!1,t)}function o(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return c(!0===t[0],!0,t)}function i(t){if(Array.isArray(t)){for(var r=[],n=0;n<t.length;++n)r.push(i(t[n]));return r}if(u(t)){for(var n in r={},t)r[n]=i(t[n]);return r}return t}function u(t){return t&&"object"==typeof t&&!Array.isArray(t)}function a(t,r){if(!u(t))return r;for(var n in r)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(t[n]=u(t[n])&&u(r[n])?a(t[n],r[n]):r[n]);return t}function c(t,r,n){var e;!t&&u(e=n.shift())||(e={});for(var o=0;o<n.length;++o){var c=n[o];if(u(c))for(var s in c)if("__proto__"!==s&&"constructor"!==s&&"prototype"!==s){var f=t?i(c[s]):c[s];e[s]=r?a(e[s],f):f}}return e}Object.defineProperty(r,"__esModule",{value:!0}),r.isPlainObject=r.clone=r.recursive=r.merge=r.main=void 0,t.exports=r=n,r.default=n,r.main=n,n.clone=i,n.isPlainObject=u,n.recursive=o,r.merge=e,r.recursive=o,r.clone=i,r.isPlainObject=u}(g,g.exports)),g.exports);function ln(){if(m)return b;m=1;var t=Array.isArray;return b=t}function hn(){if(O)return _;O=1;var t="object"==typeof v&&v&&v.Object===Object&&v;return _=t}function vn(){if(w)return R;w=1;var t=hn(),r="object"==typeof self&&self&&self.Object===Object&&self,n=t||r||Function("return this")();return R=n}function yn(){if(j)return E;j=1;var t=vn().Symbol;return E=t}function dn(){if(A)return S;A=1;var t=yn(),r=function(){if(x)return k;x=1;var t=yn(),r=Object.prototype,n=r.hasOwnProperty,e=r.toString,o=t?t.toStringTag:void 0;return k=function(t){var r=n.call(t,o),i=t[o];try{t[o]=void 0;var u=!0}catch(t){}var a=e.call(t);return u&&(r?t[o]=i:delete t[o]),a}}(),n=function(){if(T)return N;T=1;var t=Object.prototype.toString;return N=function(r){return t.call(r)}}(),e=t?t.toStringTag:void 0;return S=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":e&&e in Object(t)?r(t):n(t)}}function gn(){if(C)return P;return C=1,P=function(t){return null!=t&&"object"==typeof t}}function bn(){if(q)return U;q=1;var t=dn(),r=gn();return U=function(n){return"symbol"==typeof n||r(n)&&"[object Symbol]"==t(n)}}function mn(){if(H)return V;return H=1,V=function(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}}function _n(){if(I)return F;I=1;var t=dn(),r=mn();return F=function(n){if(!r(n))return!1;var e=t(n);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}}function On(){if(D)return $;D=1;var t,r=function(){if(K)return L;K=1;var t=vn()["__core-js_shared__"];return L=t}(),n=(t=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"";return $=function(t){return!!n&&n in t}}function Rn(){if(G)return J;G=1;var t=_n(),r=On(),n=mn(),e=function(){if(W)return M;W=1;var t=Function.prototype.toString;return M=function(r){if(null!=r){try{return t.call(r)}catch(t){}try{return r+""}catch(t){}}return""}}(),o=/^\[object .+?Constructor\]$/,i=Function.prototype,u=Object.prototype,a=i.toString,c=u.hasOwnProperty,s=RegExp("^"+a.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return J=function(i){return!(!n(i)||r(i))&&(t(i)?s:o).test(e(i))}}function wn(){if(X)return Z;X=1;var t=Rn(),r=Y?Q:(Y=1,Q=function(t,r){return null==t?void 0:t[r]});return Z=function(n,e){var o=r(n,e);return t(o)?o:void 0}}function En(){if(rt)return tt;rt=1;var t=wn()(Object,"create");return tt=t}function jn(){if(ht)return lt;ht=1;var t=function(){if(et)return nt;et=1;var t=En();return nt=function(){this.__data__=t?t(null):{},this.size=0}}(),r=it?ot:(it=1,ot=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}),n=function(){if(at)return ut;at=1;var t=En(),r=Object.prototype.hasOwnProperty;return ut=function(n){var e=this.__data__;if(t){var o=e[n];return"__lodash_hash_undefined__"===o?void 0:o}return r.call(e,n)?e[n]:void 0}}(),e=function(){if(st)return ct;st=1;var t=En(),r=Object.prototype.hasOwnProperty;return ct=function(n){var e=this.__data__;return t?void 0!==e[n]:r.call(e,n)}}(),o=function(){if(pt)return ft;pt=1;var t=En();return ft=function(r,n){var e=this.__data__;return this.size+=this.has(r)?0:1,e[r]=t&&void 0===n?"__lodash_hash_undefined__":n,this}}();function i(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}return i.prototype.clear=t,i.prototype.delete=r,i.prototype.get=n,i.prototype.has=e,i.prototype.set=o,lt=i}function kn(){if(gt)return dt;return gt=1,dt=function(t,r){return t===r||t!=t&&r!=r}}function xn(){if(mt)return bt;mt=1;var t=kn();return bt=function(r,n){for(var e=r.length;e--;)if(t(r[e][0],n))return e;return-1}}function Nn(){if(Tt)return Nt;Tt=1;var t=yt?vt:(yt=1,vt=function(){this.__data__=[],this.size=0}),r=function(){if(Ot)return _t;Ot=1;var t=xn(),r=Array.prototype.splice;return _t=function(n){var e=this.__data__,o=t(e,n);return!(o<0||(o==e.length-1?e.pop():r.call(e,o,1),--this.size,0))}}(),n=function(){if(wt)return Rt;wt=1;var t=xn();return Rt=function(r){var n=this.__data__,e=t(n,r);return e<0?void 0:n[e][1]}}(),e=function(){if(jt)return Et;jt=1;var t=xn();return Et=function(r){return t(this.__data__,r)>-1}}(),o=function(){if(xt)return kt;xt=1;var t=xn();return kt=function(r,n){var e=this.__data__,o=t(e,r);return o<0?(++this.size,e.push([r,n])):e[o][1]=n,this}}();function i(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}return i.prototype.clear=t,i.prototype.delete=r,i.prototype.get=n,i.prototype.has=e,i.prototype.set=o,Nt=i}function Tn(){if(At)return St;At=1;var t=wn()(vn(),"Map");return St=t}function Sn(){if(Bt)return zt;Bt=1;var t=qt?Ut:(qt=1,Ut=function(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t});return zt=function(r,n){var e=r.__data__;return t(n)?e["string"==typeof n?"string":"hash"]:e.map}}function An(){if(Wt)return Mt;Wt=1;var t=function(){if(Ct)return Pt;Ct=1;var t=jn(),r=Nn(),n=Tn();return Pt=function(){this.size=0,this.__data__={hash:new t,map:new(n||r),string:new t}}}(),r=function(){if(Ht)return Vt;Ht=1;var t=Sn();return Vt=function(r){var n=t(this,r).delete(r);return this.size-=n?1:0,n}}(),n=function(){if(It)return Ft;It=1;var t=Sn();return Ft=function(r){return t(this,r).get(r)}}(),e=function(){if(Kt)return Lt;Kt=1;var t=Sn();return Lt=function(r){return t(this,r).has(r)}}(),o=function(){if(Dt)return $t;Dt=1;var t=Sn();return $t=function(r,n){var e=t(this,r),o=e.size;return e.set(r,n),this.size+=e.size==o?0:1,this}}();function i(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}return i.prototype.clear=t,i.prototype.delete=r,i.prototype.get=n,i.prototype.has=e,i.prototype.set=o,Mt=i}function Pn(){if(Yt)return Qt;Yt=1;var t=function(){if(Gt)return Jt;Gt=1;var t=An();function r(n,e){if("function"!=typeof n||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var o=function(){var t=arguments,r=e?e.apply(this,t):t[0],i=o.cache;if(i.has(r))return i.get(r);var u=n.apply(this,t);return o.cache=i.set(r,u)||i,u};return o.cache=new(r.Cache||t),o}return r.Cache=t,Jt=r}();return Qt=function(r){var n=t(r,(function(t){return 500===e.size&&e.clear(),t})),e=n.cache;return n}}function Cn(){if(er)return nr;er=1;var t=yn(),r=rr?tr:(rr=1,tr=function(t,r){for(var n=-1,e=null==t?0:t.length,o=Array(e);++n<e;)o[n]=r(t[n],n,t);return o}),n=ln(),e=bn(),o=t?t.prototype:void 0,i=o?o.toString:void 0;return nr=function t(o){if("string"==typeof o)return o;if(n(o))return r(o,t)+"";if(e(o))return i?i.call(o):"";var u=o+"";return"0"==u&&1/o==-1/0?"-0":u},nr}function Un(){if(ar)return ur;ar=1;var t=ln(),r=function(){if(B)return z;B=1;var t=ln(),r=bn(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,e=/^\w*$/;return z=function(o,i){if(t(o))return!1;var u=typeof o;return!("number"!=u&&"symbol"!=u&&"boolean"!=u&&null!=o&&!r(o))||e.test(o)||!n.test(o)||null!=i&&o in Object(i)}}(),n=function(){if(Xt)return Zt;Xt=1;var t=Pn(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,e=t((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(r,(function(t,r,o,i){e.push(o?i.replace(n,"$1"):r||t)})),e}));return Zt=e}(),e=function(){if(ir)return or;ir=1;var t=Cn();return or=function(r){return null==r?"":t(r)}}();return ur=function(o,i){return t(o)?o:r(o,i)?[o]:n(e(o))}}function qn(){if(sr)return cr;sr=1;var t=bn();return cr=function(r){if("string"==typeof r||t(r))return r;var n=r+"";return"0"==n&&1/r==-1/0?"-0":n}}function zn(){if(hr)return lr;hr=1;var t=wn(),r=function(){try{var r=t(Object,"defineProperty");return r({},"",{}),r}catch(t){}}();return lr=r}function Bn(){if(yr)return vr;yr=1;var t=zn();return vr=function(r,n,e){"__proto__"==n&&t?t(r,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):r[n]=e}}function Vn(){if(gr)return dr;gr=1;var t=Bn(),r=kn(),n=Object.prototype.hasOwnProperty;return dr=function(e,o,i){var u=e[o];n.call(e,o)&&r(u,i)&&(void 0!==i||o in e)||t(e,o,i)}}function Hn(){if(mr)return br;mr=1;var t=/^(?:0|[1-9]\d*)$/;return br=function(r,n){var e=typeof r;return!!(n=null==n?9007199254740991:n)&&("number"==e||"symbol"!=e&&t.test(r))&&r>-1&&r%1==0&&r<n}}function Fn(){if(wr)return Rr;wr=1;var t=function(){if(pr)return fr;pr=1;var t=Un(),r=qn();return fr=function(n,e){for(var o=0,i=(e=t(e,n)).length;null!=n&&o<i;)n=n[r(e[o++])];return o&&o==i?n:void 0}}(),r=function(){if(Or)return _r;Or=1;var t=Vn(),r=Un(),n=Hn(),e=mn(),o=qn();return _r=function(i,u,a,c){if(!e(i))return i;for(var s=-1,f=(u=r(u,i)).length,p=f-1,l=i;null!=l&&++s<f;){var h=o(u[s]),v=a;if("__proto__"===h||"constructor"===h||"prototype"===h)return i;if(s!=p){var y=l[h];void 0===(v=c?c(y,h,l):void 0)&&(v=e(y)?y:n(u[s+1])?[]:{})}t(l,h,v),l=l[h]}return i}}(),n=Un();return Rr=function(e,o,i){for(var u=-1,a=o.length,c={};++u<a;){var s=o[u],f=t(e,s);i(f,s)&&r(c,n(s,e),f)}return c}}function In(){if(Tr)return Nr;Tr=1;var t=function(){if(xr)return kr;xr=1;var t=dn(),r=gn();return kr=function(n){return r(n)&&"[object Arguments]"==t(n)}}(),r=gn(),n=Object.prototype,e=n.hasOwnProperty,o=n.propertyIsEnumerable,i=t(function(){return arguments}())?t:function(t){return r(t)&&e.call(t,"callee")&&!o.call(t,"callee")};return Nr=i}function Ln(){if(Ar)return Sr;Ar=1;return Sr=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}}function Kn(){if(qr)return Ur;qr=1;var t=jr?Er:(jr=1,Er=function(t,r){return null!=t&&r in Object(t)}),r=function(){if(Cr)return Pr;Cr=1;var t=Un(),r=In(),n=ln(),e=Hn(),o=Ln(),i=qn();return Pr=function(u,a,c){for(var s=-1,f=(a=t(a,u)).length,p=!1;++s<f;){var l=i(a[s]);if(!(p=null!=u&&c(u,l)))break;u=u[l]}return p||++s!=f?p:!!(f=null==u?0:u.length)&&o(f)&&e(l,f)&&(n(u)||r(u))}}();return Ur=function(n,e){return null!=n&&r(n,e,t)}}function $n(){if(Kr)return Lr;Kr=1;var t=Hr?Vr:(Hr=1,Vr=function(t,r){for(var n=-1,e=r.length,o=t.length;++n<e;)t[o+n]=r[n];return t}),r=function(){if(Ir)return Fr;Ir=1;var t=yn(),r=In(),n=ln(),e=t?t.isConcatSpreadable:void 0;return Fr=function(t){return n(t)||r(t)||!!(e&&t&&t[e])}}();return Lr=function n(e,o,i,u,a){var c=-1,s=e.length;for(i||(i=r),a||(a=[]);++c<s;){var f=e[c];o>0&&i(f)?o>1?n(f,o-1,i,u,a):t(a,f):u||(a[a.length]=f)}return a},Lr}function Dn(){if(Gr)return Jr;Gr=1;var t=Wr?Mr:(Wr=1,Mr=function(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}),r=Math.max;return Jr=function(n,e,o){return e=r(void 0===e?n.length-1:e,0),function(){for(var i=arguments,u=-1,a=r(i.length-e,0),c=Array(a);++u<a;)c[u]=i[e+u];u=-1;for(var s=Array(e+1);++u<e;)s[u]=i[u];return s[e]=o(c),t(n,this,s)}},Jr}function Mn(){if(Xr)return Zr;return Xr=1,Zr=function(t){return t}}function Wn(){if(rn)return tn;rn=1;var t=Yr?Qr:(Yr=1,Qr=function(t){return function(){return t}}),r=zn(),n=Mn();return tn=r?function(n,e){return r(n,"toString",{configurable:!0,enumerable:!1,value:t(e),writable:!0})}:n}function Jn(){if(un)return on;un=1;var t=Wn(),r=function(){if(en)return nn;en=1;var t=Date.now;return nn=function(r){var n=0,e=0;return function(){var o=t(),i=16-(o-e);if(e=o,i>0){if(++n>=800)return arguments[0]}else n=0;return r.apply(void 0,arguments)}},nn}(),n=r(t);return on=n}function Gn(){if(cn)return an;cn=1;var t=function(){if(Dr)return $r;Dr=1;var t=$n();return $r=function(r){return null!=r&&r.length?t(r,1):[]}}(),r=Dn(),n=Jn();return an=function(e){return n(r(e,void 0,t),e+"")}}var Qn,Yn,Zn,Xn,te,re,ne,ee,oe,ie,ue,ae,ce,se,fe,pe,le,he,ve=function(){if(fn)return sn;fn=1;var t=function(){if(Br)return zr;Br=1;var t=Fn(),r=Kn();return zr=function(n,e){return t(n,e,(function(t,e){return r(n,e)}))}}(),r=Gn()((function(r,n){return null==r?{}:t(r,n)}));return sn=r}(),ye=y(ve),de=["cache","credentials","headers","integrity","keepalive","mode","priority","redirect","referrer","referrerPolicy","signal"],ge=function(){function t(t){if(void 0===t&&(t={}),!t.fetcher){if("function"!=typeof fetch)throw new c(u.ENV_FETCH_NOT_SUPPORT);t.fetcher=fetch}this.executor=new s,this.config=t}return t.prototype.getConfig=function(){return this.config},t.prototype.usePlugin=function(t){this.executor.use(t)},t.prototype.request=function(t){return e(this,void 0,void 0,(function(){var r,n,i,a,s,f=this;return o(this,(function(p){if(r=this.getConfig(),n=pn.merge({},r,t),i=n.fetcher,a=function(t,r){var n={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&r.indexOf(e)<0&&(n[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(e=Object.getOwnPropertySymbols(t);o<e.length;o++)r.indexOf(e[o])<0&&Object.prototype.propertyIsEnumerable.call(t,e[o])&&(n[e[o]]=t[e[o]])}return n}(n,["fetcher"]),"function"!=typeof i)throw new c(u.FETCHER_NONE);if(!a.url)throw new c(u.URL_NONE);return s=function(t){return e(f,void 0,void 0,(function(){var r;return o(this,(function(n){switch(n.label){case 0:return[4,i(this.parametersToRequest(t.parameters))];case 1:return r=n.sent(),[2,this.toAdapterResponse(r,r,t.parameters)]}}))}))},[2,this.executor.exec(a,s)]}))}))},t.prototype.parametersToRequest=function(t){var r=t.url,n=void 0===r?"/":r,e=t.method,o=void 0===e?"GET":e,i=t.data,u=ye(t,de);return new Request(n,Object.assign(u,{body:i,method:o.toUpperCase()}))},t.prototype.toAdapterResponse=function(t,r,n){return{data:t,status:r.status,statusText:r.statusText,headers:this.getResponseHeaders(r),config:n,response:r}},t.prototype.getResponseHeaders=function(t){var r={};return t.headers.forEach((function(t,n){r[n]=t})),r},t}(),be=function(){function t(t,r){void 0===r&&(r={}),this.config=r,this.axiosInstance=t.create(r)}return t.prototype.getConfig=function(){return this.config},t.prototype.request=function(t){return e(this,void 0,void 0,(function(){return o(this,(function(r){return[2,this.axiosInstance.request(t)]}))}))},t}(),me=function(){function t(){this.pluginName="FetchAbortPlugin",this.onlyOne=!0,this.controllers=new Map}return t.prototype.generateRequestKey=function(t){if(t.requestId)return t.requestId;var r=t.params?JSON.stringify(t.params):"",n=t.body?JSON.stringify(t.body):"";return"".concat(t.method||"GET","-").concat(t.url,"-").concat(r,"-").concat(n)},t.prototype.onBefore=function(t){var r=this.generateRequestKey(t.parameters);if(this.controllers.has(r)&&this.abort(t.parameters),!t.parameters.signal){var n=new AbortController;this.controllers.set(r,n),t.parameters.signal=n.signal}},t.prototype.onSuccess=function(t){var r=t.parameters;r&&this.controllers.delete(this.generateRequestKey(r))},t.prototype.onError=function(t){var r=t.error,n=t.parameters;if(this.isSameAbortError(r)&&n){var e=this.generateRequestKey(n),o=this.controllers.get(e);return this.controllers.delete(e),new h(u.ABORT_ERROR,(null==o?void 0:o.signal.reason)||r)}},t.prototype.isSameAbortError=function(t){return t instanceof Error&&"AbortError"===t.name||(t instanceof DOMException&&"AbortError"===t.name||t instanceof Event&&"abort"===t.type)},t.prototype.abort=function(t){var r="string"==typeof t?t:this.generateRequestKey(t),n=this.controllers.get(r);n&&(n.abort(new h(u.ABORT_ERROR,"The operation was aborted")),this.controllers.delete(r),"string"!=typeof t&&"function"==typeof t.onAbort&&t.onAbort.call(t,t))},t.prototype.abortAll=function(){this.controllers.forEach((function(t){return t.abort()})),this.controllers.clear()},t}(),_e=function(){function t(){this.pluginName="FetchURLPlugin"}return t.prototype.isFullURL=function(t){return t.startsWith("http://")||t.startsWith("https://")},t.prototype.appendQueryParams=function(t,r){void 0===r&&(r={});var n=t.split("?"),e=n[0],o=n[1];(void 0===o?"":o).split("&").forEach((function(t){var n=t.split("="),e=n[0],o=n[1];e&&o&&(r[e]=o)}));var i=Object.entries(r).map((function(t){var r=t[0],n=t[1];return"".concat(r,"=").concat(n)})).join("&");return[e,i].join("?")},t.prototype.connectBaseURL=function(t,r){return"".concat(r,"/").concat(t)},t.prototype.buildUrl=function(t){var r=t.url,n=void 0===r?"":r,e=t.baseURL,o=void 0===e?"":e,i=t.params;if(!this.isFullURL(n)){var u=n.startsWith("/")?n.slice(1):n,a=o.endsWith("/")?o.slice(0,-1):o;n=this.connectBaseURL(u,a)}return i&&Object.keys(i).length>0&&(n=this.appendQueryParams(n,i)),n},t.prototype.onBefore=function(t){var r=t.parameters;r.url=this.buildUrl(r)},t.prototype.onSuccess=function(t){var r=t.returnValue;if(!r.response.ok){var n=new h(u.RESPONSE_NOT_OK,"Request failed with status: ".concat(r.status," ").concat(r.statusText));throw n.response=r.response,n}},t.prototype.onError=function(t){var r=t.error;return r instanceof h?r:new h(u.REQUEST_ERROR,r)},t}();function Oe(){if(ae)return ue;ae=1;var t=Nn(),r=function(){if(Yn)return Qn;Yn=1;var t=Nn();return Qn=function(){this.__data__=new t,this.size=0}}(),n=Xn?Zn:(Xn=1,Zn=function(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}),e=re?te:(re=1,te=function(t){return this.__data__.get(t)}),o=ee?ne:(ee=1,ne=function(t){return this.__data__.has(t)}),i=function(){if(ie)return oe;ie=1;var t=Nn(),r=Tn(),n=An();return oe=function(e,o){var i=this.__data__;if(i instanceof t){var u=i.__data__;if(!r||u.length<199)return u.push([e,o]),this.size=++i.size,this;i=this.__data__=new n(u)}return i.set(e,o),this.size=i.size,this}}();function u(r){var n=this.__data__=new t(r);this.size=n.size}return u.prototype.clear=r,u.prototype.delete=n,u.prototype.get=e,u.prototype.has=o,u.prototype.set=i,ue=u}function Re(){if(se)return ce;se=1;var t=Bn(),r=kn();return ce=function(n,e,o){(void 0!==o&&!r(n[e],o)||void 0===o&&!(e in n))&&t(n,e,o)}}function we(){if(he)return le;he=1;var t=(pe?fe:(pe=1,fe=function(t){return function(r,n,e){for(var o=-1,i=Object(r),u=e(r),a=u.length;a--;){var c=u[t?a:++o];if(!1===n(i[c],c,i))break}return r}}))();return le=t}var Ee,je,ke,xe,Ne,Te,Se,Ae,Pe,Ce,Ue,qe,ze,Be,Ve,He,Fe,Ie,Le,Ke,$e,De,Me,We={exports:{}};function Je(){if(Ne)return xe;Ne=1;var t=function(){if(ke)return je;ke=1;var t=vn().Uint8Array;return je=t}();return xe=function(r){var n=new r.constructor(r.byteLength);return new t(n).set(new t(r)),n}}function Ge(){if(Ve)return Be;Ve=1;var t=(ze?qe:(ze=1,qe=function(t,r){return function(n){return t(r(n))}}))(Object.getPrototypeOf,Object);return Be=t}function Qe(){if(Fe)return He;Fe=1;var t=Object.prototype;return He=function(r){var n=r&&r.constructor;return r===("function"==typeof n&&n.prototype||t)}}function Ye(){if(Le)return Ie;Le=1;var t=function(){if(Ue)return Ce;Ue=1;var t=mn(),r=Object.create,n=function(){function n(){}return function(e){if(!t(e))return{};if(r)return r(e);n.prototype=e;var o=new n;return n.prototype=void 0,o}}();return Ce=n}(),r=Ge(),n=Qe();return Ie=function(e){return"function"!=typeof e.constructor||n(e)?{}:t(r(e))}}function Ze(){if($e)return Ke;$e=1;var t=_n(),r=Ln();return Ke=function(n){return null!=n&&r(n.length)&&!t(n)}}var Xe,to,ro,no,eo,oo,io,uo,ao,co={exports:{}};function so(){return ro||(ro=1,function(t,r){var n=vn(),e=to?Xe:(to=1,Xe=function(){return!1}),o=r&&!r.nodeType&&r,i=o&&t&&!t.nodeType&&t,u=i&&i.exports===o?n.Buffer:void 0,a=(u?u.isBuffer:void 0)||e;t.exports=a}(co,co.exports)),co.exports}var fo,po,lo,ho,vo,yo,go,bo,mo,_o,Oo,Ro,wo,Eo,jo,ko,xo,No,To,So,Ao,Po,Co,Uo,qo,zo,Bo,Vo,Ho,Fo,Io,Lo={exports:{}};function Ko(){if(lo)return po;lo=1;var t=function(){if(io)return oo;io=1;var t=dn(),r=Ln(),n=gn(),e={};return e["[object Float32Array]"]=e["[object Float64Array]"]=e["[object Int8Array]"]=e["[object Int16Array]"]=e["[object Int32Array]"]=e["[object Uint8Array]"]=e["[object Uint8ClampedArray]"]=e["[object Uint16Array]"]=e["[object Uint32Array]"]=!0,e["[object Arguments]"]=e["[object Array]"]=e["[object ArrayBuffer]"]=e["[object Boolean]"]=e["[object DataView]"]=e["[object Date]"]=e["[object Error]"]=e["[object Function]"]=e["[object Map]"]=e["[object Number]"]=e["[object Object]"]=e["[object RegExp]"]=e["[object Set]"]=e["[object String]"]=e["[object WeakMap]"]=!1,oo=function(o){return n(o)&&r(o.length)&&!!e[t(o)]}}(),r=ao?uo:(ao=1,uo=function(t){return function(r){return t(r)}}),n=function(){return fo||(fo=1,t=Lo,r=Lo.exports,n=hn(),e=r&&!r.nodeType&&r,o=e&&t&&!t.nodeType&&t,i=o&&o.exports===e&&n.process,u=function(){try{return o&&o.require&&o.require("util").types||i&&i.binding&&i.binding("util")}catch(t){}}(),t.exports=u),Lo.exports;var t,r,n,e,o,i,u}(),e=n&&n.isTypedArray,o=e?r(e):t;return po=o}function $o(){if(vo)return ho;return vo=1,ho=function(t,r){if(("constructor"!==r||"function"!=typeof t[r])&&"__proto__"!=r)return t[r]}}function Do(){if(Oo)return _o;Oo=1;var t=mo?bo:(mo=1,bo=function(t,r){for(var n=-1,e=Array(t);++n<t;)e[n]=r(n);return e}),r=In(),n=ln(),e=so(),o=Hn(),i=Ko(),u=Object.prototype.hasOwnProperty;return _o=function(a,c){var s=n(a),f=!s&&r(a),p=!s&&!f&&e(a),l=!s&&!f&&!p&&i(a),h=s||f||p||l,v=h?t(a.length,String):[],y=v.length;for(var d in a)!c&&!u.call(a,d)||h&&("length"==d||p&&("offset"==d||"parent"==d)||l&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||o(d,y))||v.push(d);return v}}function Mo(){if(jo)return Eo;jo=1;var t=mn(),r=Qe(),n=wo?Ro:(wo=1,Ro=function(t){var r=[];if(null!=t)for(var n in Object(t))r.push(n);return r}),e=Object.prototype.hasOwnProperty;return Eo=function(o){if(!t(o))return n(o);var i=r(o),u=[];for(var a in o)("constructor"!=a||!i&&e.call(o,a))&&u.push(a);return u}}function Wo(){if(xo)return ko;xo=1;var t=Do(),r=Mo(),n=Ze();return ko=function(e){return n(e)?t(e,!0):r(e)}}function Jo(){if(To)return No;To=1;var t=function(){if(go)return yo;go=1;var t=Vn(),r=Bn();return yo=function(n,e,o,i){var u=!o;o||(o={});for(var a=-1,c=e.length;++a<c;){var s=e[a],f=i?i(o[s],n[s],s,o,n):void 0;void 0===f&&(f=n[s]),u?r(o,s,f):t(o,s,f)}return o}}(),r=Wo();return No=function(n){return t(n,r(n))}}function Go(){if(Ao)return So;Ao=1;var t=Re(),r=(Ee||(Ee=1,function(t,r){var n=vn(),e=r&&!r.nodeType&&r,o=e&&t&&!t.nodeType&&t,i=o&&o.exports===e?n.Buffer:void 0,u=i?i.allocUnsafe:void 0;t.exports=function(t,r){if(r)return t.slice();var n=t.length,e=u?u(n):new t.constructor(n);return t.copy(e),e}}(We,We.exports)),We.exports),n=function(){if(Se)return Te;Se=1;var t=Je();return Te=function(r,n){var e=n?t(r.buffer):r.buffer;return new r.constructor(e,r.byteOffset,r.length)}}(),e=Pe?Ae:(Pe=1,Ae=function(t,r){var n=-1,e=t.length;for(r||(r=Array(e));++n<e;)r[n]=t[n];return r}),o=Ye(),i=In(),u=ln(),a=function(){if(Me)return De;Me=1;var t=Ze(),r=gn();return De=function(n){return r(n)&&t(n)}}(),c=so(),s=_n(),f=mn(),p=function(){if(eo)return no;eo=1;var t=dn(),r=Ge(),n=gn(),e=Function.prototype,o=Object.prototype,i=e.toString,u=o.hasOwnProperty,a=i.call(Object);return no=function(e){if(!n(e)||"[object Object]"!=t(e))return!1;var o=r(e);if(null===o)return!0;var c=u.call(o,"constructor")&&o.constructor;return"function"==typeof c&&c instanceof c&&i.call(c)==a}}(),l=Ko(),h=$o(),v=Jo();return So=function(y,d,g,b,m,_,O){var R=h(y,g),w=h(d,g),E=O.get(w);if(E)t(y,g,E);else{var j=_?_(R,w,g+"",y,d,O):void 0,k=void 0===j;if(k){var x=u(w),N=!x&&c(w),T=!x&&!N&&l(w);j=w,x||N||T?u(R)?j=R:a(R)?j=e(R):N?(k=!1,j=r(w,!0)):T?(k=!1,j=n(w,!0)):j=[]:p(w)||i(w)?(j=R,i(R)?j=v(R):f(R)&&!s(R)||(j=o(w))):k=!1}k&&(O.set(w,j),m(j,w,b,_,O),O.delete(w)),t(y,g,j)}}}function Qo(){if(Ho)return Vo;Ho=1;var t=function(){if(qo)return Uo;qo=1;var t=Mn(),r=Dn(),n=Jn();return Uo=function(e,o){return n(r(e,o,t),e+"")}}(),r=function(){if(Bo)return zo;Bo=1;var t=kn(),r=Ze(),n=Hn(),e=mn();return zo=function(o,i,u){if(!e(u))return!1;var a=typeof i;return!!("number"==a?r(u)&&n(i,u.length):"string"==a&&i in u)&&t(u[i],o)}}();return Vo=function(n){return t((function(t,e){var o=-1,i=e.length,u=i>1?e[i-1]:void 0,a=i>2?e[2]:void 0;for(u=n.length>3&&"function"==typeof u?(i--,u):void 0,a&&r(e[0],e[1],a)&&(u=i<3?void 0:u,i=1),t=Object(t);++o<i;){var c=e[o];c&&n(t,c,o,u)}return t}))}}var Yo,Zo=function(){if(Io)return Fo;Io=1;var t=function(){if(Co)return Po;Co=1;var t=Oe(),r=Re(),n=we(),e=Go(),o=mn(),i=Wo(),u=$o();return Po=function a(c,s,f,p,l){c!==s&&n(s,(function(n,i){if(l||(l=new t),o(n))e(c,s,i,f,a,p,l);else{var h=p?p(u(c,i),n,i+"",c,s,l):void 0;void 0===h&&(h=n),r(c,i,h)}}),i)},Po}(),r=Qo()((function(r,n,e){t(r,n,e)}));return Fo=r}(),Xo=y(Zo),ti=function(){function t(t,r){void 0===r&&(r=new s),this.adapter=t,this.executor=r}return t.prototype.usePlugin=function(t){var r=this;return Array.isArray(t)?t.forEach((function(t){return r.executor.use(t)})):this.executor.use(t),this},t.prototype.request=function(t){var r=this,n=Xo({},this.adapter.getConfig(),t);return this.executor.exec(n,(function(t){return r.adapter.request(t.parameters)}))},t}(),ri=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return r(i,t),i.prototype.request=function(r){return t.prototype.request.call(this,r)},i.prototype.get=function(t,r){return e(this,void 0,void 0,(function(){return o(this,(function(e){return[2,this.request(n(n({url:t},r),{method:"GET"}))]}))}))},i.prototype.post=function(t,r){return e(this,void 0,void 0,(function(){return o(this,(function(e){return[2,this.request(n(n({url:t},r),{method:"POST"}))]}))}))},i.prototype.put=function(t,r){return e(this,void 0,void 0,(function(){return o(this,(function(e){return[2,this.request(n(n({url:t},r),{method:"PUT"}))]}))}))},i.prototype.delete=function(t,r){return e(this,void 0,void 0,(function(){return o(this,(function(e){return[2,this.request(n(n({url:t},r),{method:"DELETE"}))]}))}))},i.prototype.patch=function(t,r){return e(this,void 0,void 0,(function(){return o(this,(function(e){return[2,this.request(n(n({url:t},r),{method:"PATCH"}))]}))}))},i.prototype.head=function(t,r){return e(this,void 0,void 0,(function(){return o(this,(function(e){return[2,this.request(n(n({url:t},r),{method:"HEAD"}))]}))}))},i.prototype.options=function(t,r){return e(this,void 0,void 0,(function(){return o(this,(function(e){return[2,this.request(n(n({url:t},r),{method:"OPTIONS"}))]}))}))},i.prototype.trace=function(t,r){return e(this,void 0,void 0,(function(){return o(this,(function(e){return[2,this.request(n(n({url:t},r),{method:"TRACE"}))]}))}))},i.prototype.connect=function(t,r){return e(this,void 0,void 0,(function(){return o(this,(function(e){return[2,this.request(n(n({url:t},r),{method:"CONNECT"}))]}))}))},i}(ti),ni=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.request=function(r){return t.prototype.request.call(this,r)},e.prototype.get=function(t,r){return this.request(n(n({},r),{url:t,method:"GET"}))},e.prototype.post=function(t,r,e){return this.request(n(n({},e),{url:t,method:"POST",data:r}))},e.prototype.put=function(t,r,e){return this.request(n(n({},e),{url:t,method:"PUT",data:r}))},e.prototype.delete=function(t,r){return this.request(n(n({},r),{url:t,method:"DELETE"}))},e.prototype.patch=function(t,r,e){return this.request(n(n({},e),{url:t,method:"PATCH",data:r}))},e}(ti),ei=function(){function t(t){void 0===t&&(t={}),this.options=t,this[Yo]="JSONSerializer"}return t.prototype.createReplacer=function(t){return Array.isArray(t)?t:null===t?function(t,r){return"string"==typeof r?r.replace(/\r\n/g,"\n"):r}:"function"==typeof t?function(r,n){var e="string"==typeof n?n.replace(/\r\n/g,"\n"):n;return t.call(this,r,e)}:function(t,r){return"string"==typeof r?r.replace(/\r\n/g,"\n"):r}},t.prototype.stringify=function(t,r,n){try{var e=this.createReplacer(r);return Array.isArray(e)?JSON.stringify(t,e,n):JSON.stringify(t,e,null!=n?n:this.options.pretty?this.options.indent||2:void 0)}catch(t){if(t instanceof TypeError&&t.message.includes("circular"))throw new TypeError("Cannot stringify data with circular references");throw t}},t.prototype.parse=function(t,r){return JSON.parse(t,r)},t.prototype.serialize=function(t){return this.stringify(t,this.options.replacer||null,this.options.pretty?this.options.indent||2:void 0)},t.prototype.deserialize=function(t,r){try{return this.parse(t)}catch(t){return r}},t.prototype.serializeArray=function(t){return"["+t.map((function(t){return JSON.stringify(t)})).join(",")+"]"},t}();Yo=Symbol.toStringTag;var oi=function(){function t(t){void 0===t&&(t={}),this.options=t}return t.prototype.serialize=function(t){var r=Buffer.from(t,"utf8").toString("base64");return this.options.urlSafe?this.makeUrlSafe(r):r},t.prototype.deserialize=function(t,r){try{return/^[A-Za-z0-9+/]*={0,2}$/.test(t)?(this.options.urlSafe&&(t=this.makeUrlUnsafe(t)),Buffer.from(t,"base64").toString("utf8")):null!=r?r:""}catch(t){return null!=r?r:""}},t.prototype.makeUrlSafe=function(t){return t.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},t.prototype.makeUrlUnsafe=function(t){for(t=t.replace(/-/g,"+").replace(/_/g,"/");t.length%4;)t+="=";return t},t}(),ii=function(){function t(t,r){void 0===r&&(r=new ei),this.storage=t,this.serializer=r,this.store={}}return Object.defineProperty(t.prototype,"length",{get:function(){return this.storage?this.storage.length:Object.keys(this.store).length},enumerable:!1,configurable:!0}),t.prototype.setItem=function(t,r,n){var e={key:t,value:r,expire:n};"number"==typeof n&&n>0&&(e.expire=n);var o=this.serializer.serialize(e);this.storage?this.storage.setItem(t,o):this.store[t]=o},t.prototype.getItem=function(t,r){var n,e=this.storage?this.storage.getItem(t):this.store[t],o=null!=r?r:null;if(!e)return o;var i=this.serializer.deserialize(e,o);return"object"==typeof i?"number"==typeof i.expire&&i.expire<Date.now()?(this.removeItem(t),o):null!==(n=null==i?void 0:i.value)&&void 0!==n?n:o:o},t.prototype.removeItem=function(t){this.storage?this.storage.removeItem(t):delete this.store[t]},t.prototype.clear=function(){this.storage?this.storage.clear():this.store={}},t}();export{s as AsyncExecutor,oi as Base64Serializer,a as Executor,c as ExecutorError,me as FetchAbortPlugin,_e as FetchURLPlugin,ei as JSONSerializer,ii as JSONStorage,be as RequestAdapterAxios,ge as RequestAdapterFetch,h as RequestError,u as RequestErrorID,ti as RequestManager,ri as RequestScheduler,ni as RequestTransaction,l as RetryPlugin,f as SyncExecutor};
|
package/dist/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r((t="undefined"!=typeof globalThis?globalThis:t||self).FeUtilsCommon={})}(this,(function(t){"use strict";var r=function(){function t(t){this.config=t,this.plugins=[]}return t.prototype.use=function(t){this.plugins.find((function(r){return r===t||r.pluginName===t.pluginName||r.constructor===t.constructor}))&&t.onlyOne?console.warn("Plugin ".concat(t.pluginName," is already used, skip adding")):this.plugins.push(t)},t}(),n=function(t,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},n(t,r)};function e(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function e(){this.constructor=t}n(t,r),t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}var o=function(){return o=Object.assign||function(t){for(var r,n=1,e=arguments.length;n<e;n++)for(var o in r=arguments[n])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},o.apply(this,arguments)};function i(t,r,n,e){return new(n||(n=Promise))((function(o,i){function u(t){try{a(e.next(t))}catch(t){i(t)}}function s(t){try{a(e.throw(t))}catch(t){i(t)}}function a(t){var r;t.done?o(t.value):(r=t.value,r instanceof n?r:new n((function(t){t(r)}))).then(u,s)}a((e=e.apply(t,r||[])).next())}))}function u(t,r){var n,e,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},u=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return u.next=s(0),u.throw=s(1),u.return=s(2),"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function s(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;u&&(u=0,s[0]&&(i=0)),i;)try{if(n=1,e&&(o=2&s[0]?e.return:s[0]?e.throw||((o=e.return)&&o.call(e),0):e.next)&&!(o=o.call(e,s[1])).done)return o;switch(e=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,e=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=r.call(t,i)}catch(t){s=[6,t],e=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}}function s(t,r,n){if(n||2===arguments.length)for(var e,o=0,i=r.length;o<i;o++)!e&&o in r||(e||(e=Array.prototype.slice.call(r,0,o)),e[o]=r[o]);return t.concat(e||Array.prototype.slice.call(r))}"function"==typeof SuppressedError&&SuppressedError;var a,c=function(t){function r(r,n){var e=this.constructor,o=t.call(this,n instanceof Error?n.message:n||r)||this;return o.id=r,n instanceof Error&&"stack"in n&&(o.stack=n.stack),Object.setPrototypeOf(o,e.prototype),o}return e(r,t),r}(Error),f=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return e(r,t),r}(c);t.RequestErrorID=void 0,(a=t.RequestErrorID||(t.RequestErrorID={})).REQUEST_ERROR="REQUEST_ERROR",a.ENV_FETCH_NOT_SUPPORT="ENV_FETCH_NOT_SUPPORT",a.FETCHER_NONE="FETCHER_NONE",a.RESPONSE_NOT_OK="RESPONSE_NOT_OK",a.ABORT_ERROR="ABORT_ERROR",a.URL_NONE="URL_NONE";var p,l,h,v,y=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return e(r,t),r.prototype.runHooks=function(t,r,n){for(var e=[],o=3;o<arguments.length;o++)e[o-3]=arguments[o];return i(this,void 0,void 0,(function(){var o,i,a,c,f,p,l,h;return u(this,(function(u){switch(u.label){case 0:o=-1,(a=n||{parameters:void 0,hooksRuntimes:{}}).hooksRuntimes.times=0,a.hooksRuntimes.index=void 0,c=0,f=t,u.label=1;case 1:return c<f.length?(p=f[c],o++,"function"!=typeof p[r]||"function"==typeof p.enabled&&!p.enabled(r,n)?[3,3]:(null===(h=a.hooksRuntimes)||void 0===h?void 0:h.breakChain)?[3,4]:(a.hooksRuntimes.pluginName=p.pluginName,a.hooksRuntimes.hookName=r,a.hooksRuntimes.times++,a.hooksRuntimes.index=o,[4,p[r].apply(p,s([n],e,!1))])):[3,4];case 2:if(void 0!==(l=u.sent())&&(i=l,a.hooksRuntimes.returnValue=l,a.hooksRuntimes.returnBreakChain))return[2,i];u.label=3;case 3:return c++,[3,1];case 4:return[2,i]}}))}))},r.prototype.execNoError=function(t,r){return i(this,void 0,void 0,(function(){var n;return u(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.exec(t,r)];case 1:return[2,e.sent()];case 2:return(n=e.sent())instanceof c?[2,n]:[2,new c("UNKNOWN_ASYNC_ERROR",n)];case 3:return[2]}}))}))},r.prototype.exec=function(t,r){var n=r||t,e=r?t:void 0;if("function"!=typeof n)throw new Error("Task must be a async function!");return this.run(e,n)},r.prototype.run=function(t,r){return i(this,void 0,void 0,(function(){var n,e,o,s=this;return u(this,(function(a){switch(a.label){case 0:n={parameters:t,returnValue:void 0,error:void 0,hooksRuntimes:{pluginName:"",hookName:"",returnValue:void 0,returnBreakChain:!1,times:0}},e=function(t){return i(s,void 0,void 0,(function(){var n;return u(this,(function(e){switch(e.label){case 0:return[4,this.runHooks(this.plugins,"onExec",t,r)];case 1:return e.sent(),0!==t.hooksRuntimes.times?[3,3]:(n=t,[4,r(t)]);case 2:return n.returnValue=e.sent(),[2];case 3:return t.returnValue=t.hooksRuntimes.returnValue,[2]}}))}))},a.label=1;case 1:return a.trys.push([1,5,7,8]),[4,this.runHooks(this.plugins,"onBefore",n)];case 2:return a.sent(),[4,e(n)];case 3:return a.sent(),[4,this.runHooks(this.plugins,"onSuccess",n)];case 4:return a.sent(),[2,n.returnValue];case 5:return o=a.sent(),n.error=o,[4,this.runHooks(this.plugins,"onError",n)];case 6:if(a.sent(),n.hooksRuntimes.returnValue&&(n.error=n.hooksRuntimes.returnValue),n.error instanceof c)throw n.error;throw new c("UNKNOWN_ASYNC_ERROR",n.error);case 7:return n.hooksRuntimes={pluginName:"",hookName:"",returnValue:void 0,returnBreakChain:!1,times:0},[7];case 8:return[2]}}))}))},r}(r),d=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return e(r,t),r.prototype.runHooks=function(t,r,n){for(var e,o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var u,a=-1,c=n||{parameters:void 0,hooksRuntimes:{}};c.hooksRuntimes.times=0,c.hooksRuntimes.index=void 0;for(var f=0,p=t;f<p.length;f++){var l=p[f];if(a++,"function"==typeof l[r]&&("function"!=typeof l.enabled||l.enabled(r,c))){if(null===(e=c.hooksRuntimes)||void 0===e?void 0:e.breakChain)break;c.hooksRuntimes.pluginName=l.pluginName,c.hooksRuntimes.hookName=r,c.hooksRuntimes.times++,c.hooksRuntimes.index=a;var h=l[r].apply(l,s([n],o,!1));if(void 0!==h&&(u=h,c.hooksRuntimes.returnValue=h,c.hooksRuntimes.returnBreakChain))return u}}return u},r.prototype.execNoError=function(t,r){try{return this.exec(t,r)}catch(t){return t instanceof c?t:new c("UNKNOWN_SYNC_ERROR",t)}},r.prototype.exec=function(t,r){var n=r||t,e=r?t:void 0;if("function"!=typeof n)throw new Error("Task must be a function!");return this.run(e,n)},r.prototype.run=function(t,r){var n,e=this,o={parameters:t,returnValue:void 0,error:void 0,hooksRuntimes:{pluginName:"",hookName:"",returnValue:void 0,returnBreakChain:!1,times:0}};try{return this.runHooks(this.plugins,"onBefore",o),n=o,e.runHooks(e.plugins,"onExec",n,r),n.returnValue=n.hooksRuntimes.times?n.hooksRuntimes.returnValue:r(n),this.runHooks(this.plugins,"onSuccess",o),o.returnValue}catch(t){if(o.error=t,this.runHooks(this.plugins,"onError",o),o.hooksRuntimes.returnValue&&(o.error=o.hooksRuntimes.returnValue),o.error instanceof c)throw o.error;throw new c("UNKNOWN_SYNC_ERROR",o.error)}finally{o.hooksRuntimes={pluginName:"",hookName:"",returnValue:void 0,returnBreakChain:!1,times:0}}},r}(r),g=function(){return!0},b=function(){function t(t){var r;void 0===t&&(t={}),this.pluginName="RetryPlugin",this.onlyOne=!0,this.options=o(o({retryDelay:1e3,useExponentialBackoff:!1,shouldRetry:g},t),{maxRetries:Math.min(Math.max(1,null!==(r=t.maxRetries)&&void 0!==r?r:3),16)})}return t.prototype.delay=function(t){return i(this,void 0,void 0,(function(){var r;return u(this,(function(n){return r=this.options.useExponentialBackoff?this.options.retryDelay*Math.pow(2,t):this.options.retryDelay,[2,new Promise((function(t){return setTimeout(t,r)}))]}))}))},t.prototype.onExec=function(t,r){return i(this,void 0,void 0,(function(){return u(this,(function(n){return this.options.maxRetries<1?[2,r(t)]:[2,this.retry(r,t,this.options,this.options.maxRetries)]}))}))},t.prototype.shouldRetry=function(t){var r=t.error;return t.retryCount>0&&this.options.shouldRetry(r)},t.prototype.retry=function(t,r,n,e){return i(this,void 0,void 0,(function(){var o;return u(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,4]),[4,t(r)];case 1:return[2,i.sent()];case 2:if(o=i.sent(),!this.shouldRetry({error:o,retryCount:e}))throw new c("RETRY_ERROR","All ".concat(n.maxRetries," attempts failed: ").concat(o.message));return[4,this.delay(n.maxRetries-e)];case 3:return i.sent(),e--,[2,this.retry(t,r,n,e)];case 4:return[2]}}))}))},t}(),m="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function _(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var R,O,E=_(v?h:(v=1,h=l?p:(l=1,p=function(t){return t&&t.length?t[0]:void 0})));var w,j,x,N,k,S,A,T,P,q,C,U,I,z,D,B,F,V,H,L,G=_(O?R:(O=1,R=function(t){var r=null==t?0:t.length;return r?t[r-1]:void 0}));function W(){if(j)return w;j=1;var t="object"==typeof m&&m&&m.Object===Object&&m;return w=t}function $(){if(N)return x;N=1;var t=W(),r="object"==typeof self&&self&&self.Object===Object&&self,n=t||r||Function("return this")();return x=n}function K(){if(S)return k;S=1;var t=$().Symbol;return k=t}function M(){if(U)return C;U=1;var t=K(),r=function(){if(T)return A;T=1;var t=K(),r=Object.prototype,n=r.hasOwnProperty,e=r.toString,o=t?t.toStringTag:void 0;return A=function(t){var r=n.call(t,o),i=t[o];try{t[o]=void 0;var u=!0}catch(t){}var s=e.call(t);return u&&(r?t[o]=i:delete t[o]),s}}(),n=function(){if(q)return P;q=1;var t=Object.prototype.toString;return P=function(r){return t.call(r)}}(),e=t?t.toStringTag:void 0;return C=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":e&&e in Object(t)?r(t):n(t)}}function J(){if(B)return D;B=1;var t=(z?I:(z=1,I=function(t,r){return function(n){return t(r(n))}}))(Object.getPrototypeOf,Object);return D=t}function Q(){if(V)return F;return V=1,F=function(t){return null!=t&&"object"==typeof t}}function Y(){if(L)return H;L=1;var t=M(),r=J(),n=Q(),e=Function.prototype,o=Object.prototype,i=e.toString,u=o.hasOwnProperty,s=i.call(Object);return H=function(e){if(!n(e)||"[object Object]"!=t(e))return!1;var o=r(e);if(null===o)return!0;var a=u.call(o,"constructor")&&o.constructor;return"function"==typeof a&&a instanceof a&&i.call(a)==s}}var Z,X,tt,rt,nt=_(Y());function et(){if(X)return Z;X=1;var t=Array.isArray;return Z=t}var ot,it,ut=function(){if(rt)return tt;rt=1;var t=M(),r=et(),n=Q();return tt=function(e){return"string"==typeof e||!r(e)&&n(e)&&"[object String]"==t(e)}}(),st=_(ut),at=_(et());function ct(){if(it)return ot;return it=1,ot=function(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}}var ft,pt=_(ct()),lt={LOG:"LOG",INFO:"INFO",ERROR:"ERROR",WARN:"WARN",DEBUG:"DEBUG"},ht=function(){function t(t){var r=void 0===t?{}:t,n=r.isCI,e=void 0!==n&&n,o=r.dryRun,i=void 0!==o&&o,u=r.debug,s=void 0!==u&&u,a=r.silent,c=void 0!==a&&a;this.isCI=e,this.isDryRun=i,this.isDebug=s,this.isSilent=c}return t.prototype.print=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];this.isSilent||console.log.apply(console,r)},t.prototype.prefix=function(t,r){return t},t.prototype.log=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.print.apply(this,s([lt.LOG],t,!1))},t.prototype.info=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.print.apply(this,s([lt.INFO,this.prefix(lt.INFO)],t,!1))},t.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.print.apply(this,s([lt.WARN,this.prefix(lt.WARN)],t,!1))},t.prototype.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.print.apply(this,s([lt.ERROR,this.prefix(lt.ERROR)],t,!1))},t.prototype.debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDebug){var n=E(t),e=pt(n)?JSON.stringify(n):String(n);this.print.apply(this,s([lt.DEBUG,this.prefix(lt.DEBUG),e],t.slice(1),!1))}},t.prototype.verbose=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.isDebug&&this.print.apply(this,s([lt.DEBUG],t,!1))},t.prototype.exec=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=nt(G(t))?G(t):void 0,e=n||{},o=e.isDryRun,i=e.isExternal;if(o||this.isDryRun){var u=[null==i?"$":"!",t.slice(0,null==n?void 0:-1).map((function(t){return st(t)?t:at(t)?t.join(" "):String(t)})).join(" ")].join(" ").trim();this.log(u)}},t.prototype.obtrusive=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.isCI||this.log(),this.log.apply(this,t),this.isCI||this.log()},t}(),vt={exports:{}};var yt,dt,gt,bt,mt,_t,Rt,Ot,Et,wt,jt,xt,Nt,kt,St,At,Tt,Pt,qt,Ct,Ut,It,zt,Dt,Bt,Ft,Vt,Ht,Lt,Gt,Wt,$t,Kt,Mt,Jt,Qt,Yt,Zt,Xt,tr,rr,nr,er,or,ir,ur,sr,ar,cr,fr,pr,lr,hr,vr,yr,dr,gr,br,mr,_r,Rr,Or,Er,wr,jr,xr,Nr,kr,Sr,Ar,Tr,Pr,qr,Cr,Ur,Ir,zr,Dr,Br,Fr,Vr,Hr,Lr,Gr,Wr,$r,Kr,Mr,Jr,Qr,Yr,Zr,Xr,tn,rn,nn,en,on,un,sn,an,cn,fn,pn,ln,hn,vn,yn,dn,gn,bn,mn,_n,Rn,On,En,wn,jn,xn,Nn,kn,Sn,An,Tn,Pn,qn,Cn,Un,In,zn,Dn,Bn,Fn,Vn,Hn,Ln,Gn=(ft||(ft=1,function(t,r){function n(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.apply(void 0,t)}function e(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return a(!0===t[0],!1,t)}function o(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return a(!0===t[0],!0,t)}function i(t){if(Array.isArray(t)){for(var r=[],n=0;n<t.length;++n)r.push(i(t[n]));return r}if(u(t)){for(var n in r={},t)r[n]=i(t[n]);return r}return t}function u(t){return t&&"object"==typeof t&&!Array.isArray(t)}function s(t,r){if(!u(t))return r;for(var n in r)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(t[n]=u(t[n])&&u(r[n])?s(t[n],r[n]):r[n]);return t}function a(t,r,n){var e;!t&&u(e=n.shift())||(e={});for(var o=0;o<n.length;++o){var a=n[o];if(u(a))for(var c in a)if("__proto__"!==c&&"constructor"!==c&&"prototype"!==c){var f=t?i(a[c]):a[c];e[c]=r?s(e[c],f):f}}return e}Object.defineProperty(r,"__esModule",{value:!0}),r.isPlainObject=r.clone=r.recursive=r.merge=r.main=void 0,t.exports=r=n,r.default=n,r.main=n,n.clone=i,n.isPlainObject=u,n.recursive=o,r.merge=e,r.recursive=o,r.clone=i,r.isPlainObject=u}(vt,vt.exports)),vt.exports);function Wn(){if(dt)return yt;dt=1;var t=M(),r=Q();return yt=function(n){return"symbol"==typeof n||r(n)&&"[object Symbol]"==t(n)}}function $n(){if(_t)return mt;_t=1;var t=M(),r=ct();return mt=function(n){if(!r(n))return!1;var e=t(n);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}}function Kn(){if(wt)return Et;wt=1;var t,r=function(){if(Ot)return Rt;Ot=1;var t=$()["__core-js_shared__"];return Rt=t}(),n=(t=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"";return Et=function(t){return!!n&&n in t}}function Mn(){if(kt)return Nt;kt=1;var t=$n(),r=Kn(),n=ct(),e=function(){if(xt)return jt;xt=1;var t=Function.prototype.toString;return jt=function(r){if(null!=r){try{return t.call(r)}catch(t){}try{return r+""}catch(t){}}return""}}(),o=/^\[object .+?Constructor\]$/,i=Function.prototype,u=Object.prototype,s=i.toString,a=u.hasOwnProperty,c=RegExp("^"+s.call(a).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return Nt=function(i){return!(!n(i)||r(i))&&(t(i)?c:o).test(e(i))}}function Jn(){if(Pt)return Tt;Pt=1;var t=Mn(),r=At?St:(At=1,St=function(t,r){return null==t?void 0:t[r]});return Tt=function(n,e){var o=r(n,e);return t(o)?o:void 0}}function Qn(){if(Ct)return qt;Ct=1;var t=Jn()(Object,"create");return qt=t}function Yn(){if($t)return Wt;$t=1;var t=function(){if(It)return Ut;It=1;var t=Qn();return Ut=function(){this.__data__=t?t(null):{},this.size=0}}(),r=Dt?zt:(Dt=1,zt=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}),n=function(){if(Ft)return Bt;Ft=1;var t=Qn(),r=Object.prototype.hasOwnProperty;return Bt=function(n){var e=this.__data__;if(t){var o=e[n];return"__lodash_hash_undefined__"===o?void 0:o}return r.call(e,n)?e[n]:void 0}}(),e=function(){if(Ht)return Vt;Ht=1;var t=Qn(),r=Object.prototype.hasOwnProperty;return Vt=function(n){var e=this.__data__;return t?void 0!==e[n]:r.call(e,n)}}(),o=function(){if(Gt)return Lt;Gt=1;var t=Qn();return Lt=function(r,n){var e=this.__data__;return this.size+=this.has(r)?0:1,e[r]=t&&void 0===n?"__lodash_hash_undefined__":n,this}}();function i(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}return i.prototype.clear=t,i.prototype.delete=r,i.prototype.get=n,i.prototype.has=e,i.prototype.set=o,Wt=i}function Zn(){if(Qt)return Jt;return Qt=1,Jt=function(t,r){return t===r||t!=t&&r!=r}}function Xn(){if(Zt)return Yt;Zt=1;var t=Zn();return Yt=function(r,n){for(var e=r.length;e--;)if(t(r[e][0],n))return e;return-1}}function te(){if(ar)return sr;ar=1;var t=Mt?Kt:(Mt=1,Kt=function(){this.__data__=[],this.size=0}),r=function(){if(tr)return Xt;tr=1;var t=Xn(),r=Array.prototype.splice;return Xt=function(n){var e=this.__data__,o=t(e,n);return!(o<0||(o==e.length-1?e.pop():r.call(e,o,1),--this.size,0))}}(),n=function(){if(nr)return rr;nr=1;var t=Xn();return rr=function(r){var n=this.__data__,e=t(n,r);return e<0?void 0:n[e][1]}}(),e=function(){if(or)return er;or=1;var t=Xn();return er=function(r){return t(this.__data__,r)>-1}}(),o=function(){if(ur)return ir;ur=1;var t=Xn();return ir=function(r,n){var e=this.__data__,o=t(e,r);return o<0?(++this.size,e.push([r,n])):e[o][1]=n,this}}();function i(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}return i.prototype.clear=t,i.prototype.delete=r,i.prototype.get=n,i.prototype.has=e,i.prototype.set=o,sr=i}function re(){if(fr)return cr;fr=1;var t=Jn()($(),"Map");return cr=t}function ne(){if(dr)return yr;dr=1;var t=vr?hr:(vr=1,hr=function(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t});return yr=function(r,n){var e=r.__data__;return t(n)?e["string"==typeof n?"string":"hash"]:e.map}}function ee(){if(xr)return jr;xr=1;var t=function(){if(lr)return pr;lr=1;var t=Yn(),r=te(),n=re();return pr=function(){this.size=0,this.__data__={hash:new t,map:new(n||r),string:new t}}}(),r=function(){if(br)return gr;br=1;var t=ne();return gr=function(r){var n=t(this,r).delete(r);return this.size-=n?1:0,n}}(),n=function(){if(_r)return mr;_r=1;var t=ne();return mr=function(r){return t(this,r).get(r)}}(),e=function(){if(Or)return Rr;Or=1;var t=ne();return Rr=function(r){return t(this,r).has(r)}}(),o=function(){if(wr)return Er;wr=1;var t=ne();return Er=function(r,n){var e=t(this,r),o=e.size;return e.set(r,n),this.size+=e.size==o?0:1,this}}();function i(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}return i.prototype.clear=t,i.prototype.delete=r,i.prototype.get=n,i.prototype.has=e,i.prototype.set=o,jr=i}function oe(){if(Ar)return Sr;Ar=1;var t=function(){if(kr)return Nr;kr=1;var t=ee();function r(n,e){if("function"!=typeof n||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var o=function(){var t=arguments,r=e?e.apply(this,t):t[0],i=o.cache;if(i.has(r))return i.get(r);var u=n.apply(this,t);return o.cache=i.set(r,u)||i,u};return o.cache=new(r.Cache||t),o}return r.Cache=t,Nr=r}();return Sr=function(r){var n=t(r,(function(t){return 500===e.size&&e.clear(),t})),e=n.cache;return n}}function ie(){if(Ir)return Ur;Ir=1;var t=K(),r=Cr?qr:(Cr=1,qr=function(t,r){for(var n=-1,e=null==t?0:t.length,o=Array(e);++n<e;)o[n]=r(t[n],n,t);return o}),n=et(),e=Wn(),o=t?t.prototype:void 0,i=o?o.toString:void 0;return Ur=function t(o){if("string"==typeof o)return o;if(n(o))return r(o,t)+"";if(e(o))return i?i.call(o):"";var u=o+"";return"0"==u&&1/o==-1/0?"-0":u},Ur}function ue(){if(Fr)return Br;Fr=1;var t=et(),r=function(){if(bt)return gt;bt=1;var t=et(),r=Wn(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,e=/^\w*$/;return gt=function(o,i){if(t(o))return!1;var u=typeof o;return!("number"!=u&&"symbol"!=u&&"boolean"!=u&&null!=o&&!r(o))||e.test(o)||!n.test(o)||null!=i&&o in Object(i)}}(),n=function(){if(Pr)return Tr;Pr=1;var t=oe(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,e=t((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(r,(function(t,r,o,i){e.push(o?i.replace(n,"$1"):r||t)})),e}));return Tr=e}(),e=function(){if(Dr)return zr;Dr=1;var t=ie();return zr=function(r){return null==r?"":t(r)}}();return Br=function(o,i){return t(o)?o:r(o,i)?[o]:n(e(o))}}function se(){if(Hr)return Vr;Hr=1;var t=Wn();return Vr=function(r){if("string"==typeof r||t(r))return r;var n=r+"";return"0"==n&&1/r==-1/0?"-0":n}}function ae(){if($r)return Wr;$r=1;var t=Jn(),r=function(){try{var r=t(Object,"defineProperty");return r({},"",{}),r}catch(t){}}();return Wr=r}function ce(){if(Mr)return Kr;Mr=1;var t=ae();return Kr=function(r,n,e){"__proto__"==n&&t?t(r,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):r[n]=e}}function fe(){if(Qr)return Jr;Qr=1;var t=ce(),r=Zn(),n=Object.prototype.hasOwnProperty;return Jr=function(e,o,i){var u=e[o];n.call(e,o)&&r(u,i)&&(void 0!==i||o in e)||t(e,o,i)}}function pe(){if(Zr)return Yr;Zr=1;var t=/^(?:0|[1-9]\d*)$/;return Yr=function(r,n){var e=typeof r;return!!(n=null==n?9007199254740991:n)&&("number"==e||"symbol"!=e&&t.test(r))&&r>-1&&r%1==0&&r<n}}function le(){if(nn)return rn;nn=1;var t=function(){if(Gr)return Lr;Gr=1;var t=ue(),r=se();return Lr=function(n,e){for(var o=0,i=(e=t(e,n)).length;null!=n&&o<i;)n=n[r(e[o++])];return o&&o==i?n:void 0}}(),r=function(){if(tn)return Xr;tn=1;var t=fe(),r=ue(),n=pe(),e=ct(),o=se();return Xr=function(i,u,s,a){if(!e(i))return i;for(var c=-1,f=(u=r(u,i)).length,p=f-1,l=i;null!=l&&++c<f;){var h=o(u[c]),v=s;if("__proto__"===h||"constructor"===h||"prototype"===h)return i;if(c!=p){var y=l[h];void 0===(v=a?a(y,h,l):void 0)&&(v=e(y)?y:n(u[c+1])?[]:{})}t(l,h,v),l=l[h]}return i}}(),n=ue();return rn=function(e,o,i){for(var u=-1,s=o.length,a={};++u<s;){var c=o[u],f=t(e,c);i(f,c)&&r(a,n(c,e),f)}return a}}function he(){if(cn)return an;cn=1;var t=function(){if(sn)return un;sn=1;var t=M(),r=Q();return un=function(n){return r(n)&&"[object Arguments]"==t(n)}}(),r=Q(),n=Object.prototype,e=n.hasOwnProperty,o=n.propertyIsEnumerable,i=t(function(){return arguments}())?t:function(t){return r(t)&&e.call(t,"callee")&&!o.call(t,"callee")};return an=i}function ve(){if(pn)return fn;pn=1;return fn=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}}function ye(){if(yn)return vn;yn=1;var t=on?en:(on=1,en=function(t,r){return null!=t&&r in Object(t)}),r=function(){if(hn)return ln;hn=1;var t=ue(),r=he(),n=et(),e=pe(),o=ve(),i=se();return ln=function(u,s,a){for(var c=-1,f=(s=t(s,u)).length,p=!1;++c<f;){var l=i(s[c]);if(!(p=null!=u&&a(u,l)))break;u=u[l]}return p||++c!=f?p:!!(f=null==u?0:u.length)&&o(f)&&e(l,f)&&(n(u)||r(u))}}();return vn=function(n,e){return null!=n&&r(n,e,t)}}function de(){if(En)return On;En=1;var t=mn?bn:(mn=1,bn=function(t,r){for(var n=-1,e=r.length,o=t.length;++n<e;)t[o+n]=r[n];return t}),r=function(){if(Rn)return _n;Rn=1;var t=K(),r=he(),n=et(),e=t?t.isConcatSpreadable:void 0;return _n=function(t){return n(t)||r(t)||!!(e&&t&&t[e])}}();return On=function n(e,o,i,u,s){var a=-1,c=e.length;for(i||(i=r),s||(s=[]);++a<c;){var f=e[a];o>0&&i(f)?o>1?n(f,o-1,i,u,s):t(s,f):u||(s[s.length]=f)}return s},On}function ge(){if(Sn)return kn;Sn=1;var t=Nn?xn:(Nn=1,xn=function(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}),r=Math.max;return kn=function(n,e,o){return e=r(void 0===e?n.length-1:e,0),function(){for(var i=arguments,u=-1,s=r(i.length-e,0),a=Array(s);++u<s;)a[u]=i[e+u];u=-1;for(var c=Array(e+1);++u<e;)c[u]=i[u];return c[e]=o(a),t(n,this,c)}},kn}function be(){if(qn)return Pn;return qn=1,Pn=function(t){return t}}function me(){if(Un)return Cn;Un=1;var t=Tn?An:(Tn=1,An=function(t){return function(){return t}}),r=ae(),n=be();return Cn=r?function(n,e){return r(n,"toString",{configurable:!0,enumerable:!1,value:t(e),writable:!0})}:n}function _e(){if(Bn)return Dn;Bn=1;var t=me(),r=function(){if(zn)return In;zn=1;var t=Date.now;return In=function(r){var n=0,e=0;return function(){var o=t(),i=16-(o-e);if(e=o,i>0){if(++n>=800)return arguments[0]}else n=0;return r.apply(void 0,arguments)}},In}(),n=r(t);return Dn=n}function Re(){if(Vn)return Fn;Vn=1;var t=function(){if(jn)return wn;jn=1;var t=de();return wn=function(r){return null!=r&&r.length?t(r,1):[]}}(),r=ge(),n=_e();return Fn=function(e){return n(r(e,void 0,t),e+"")}}var Oe,Ee,we,je,xe,Ne,ke,Se,Ae,Te,Pe,qe,Ce,Ue,Ie,ze,De,Be,Fe=function(){if(Ln)return Hn;Ln=1;var t=function(){if(gn)return dn;gn=1;var t=le(),r=ye();return dn=function(n,e){return t(n,e,(function(t,e){return r(n,e)}))}}(),r=Re()((function(r,n){return null==r?{}:t(r,n)}));return Hn=r}(),Ve=_(Fe),He=["cache","credentials","headers","integrity","keepalive","mode","priority","redirect","referrer","referrerPolicy","signal"],Le=function(){function r(r){if(void 0===r&&(r={}),!r.fetcher){if("function"!=typeof fetch)throw new c(t.RequestErrorID.ENV_FETCH_NOT_SUPPORT);r.fetcher=fetch}this.executor=new y,this.config=r}return r.prototype.getConfig=function(){return this.config},r.prototype.usePlugin=function(t){this.executor.use(t)},r.prototype.request=function(r){return i(this,void 0,void 0,(function(){var n,e,o,s,a,f=this;return u(this,(function(p){if(n=this.getConfig(),e=Gn.merge({},n,r),o=e.fetcher,s=function(t,r){var n={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&r.indexOf(e)<0&&(n[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(e=Object.getOwnPropertySymbols(t);o<e.length;o++)r.indexOf(e[o])<0&&Object.prototype.propertyIsEnumerable.call(t,e[o])&&(n[e[o]]=t[e[o]])}return n}(e,["fetcher"]),"function"!=typeof o)throw new c(t.RequestErrorID.FETCHER_NONE);if(!s.url)throw new c(t.RequestErrorID.URL_NONE);return a=function(t){return i(f,void 0,void 0,(function(){var r;return u(this,(function(n){switch(n.label){case 0:return[4,o(this.parametersToRequest(t.parameters))];case 1:return r=n.sent(),[2,this.toAdapterResponse(r,r,t.parameters)]}}))}))},[2,this.executor.exec(s,a)]}))}))},r.prototype.parametersToRequest=function(t){var r=t.url,n=void 0===r?"/":r,e=t.method,o=void 0===e?"GET":e,i=t.data,u=Ve(t,He);return new Request(n,Object.assign(u,{body:i,method:o.toUpperCase()}))},r.prototype.toAdapterResponse=function(t,r,n){return{data:t,status:r.status,statusText:r.statusText,headers:this.getResponseHeaders(r),config:n,response:r}},r.prototype.getResponseHeaders=function(t){var r={};return t.headers.forEach((function(t,n){r[n]=t})),r},r}(),Ge=function(){function t(t,r){void 0===r&&(r={}),this.config=r,this.axiosInstance=t.create(r)}return t.prototype.getConfig=function(){return this.config},t.prototype.request=function(t){return i(this,void 0,void 0,(function(){return u(this,(function(r){return[2,this.axiosInstance.request(t)]}))}))},t}(),We=function(){function r(){this.pluginName="FetchAbortPlugin",this.onlyOne=!0,this.controllers=new Map}return r.prototype.generateRequestKey=function(t){if(t.requestId)return t.requestId;var r=t.params?JSON.stringify(t.params):"",n=t.body?JSON.stringify(t.body):"";return"".concat(t.method||"GET","-").concat(t.url,"-").concat(r,"-").concat(n)},r.prototype.onBefore=function(t){var r=this.generateRequestKey(t.parameters);if(this.controllers.has(r)&&this.abort(t.parameters),!t.parameters.signal){var n=new AbortController;this.controllers.set(r,n),t.parameters.signal=n.signal}},r.prototype.onSuccess=function(t){var r=t.parameters;r&&this.controllers.delete(this.generateRequestKey(r))},r.prototype.onError=function(r){var n=r.error,e=r.parameters;if(this.isSameAbortError(n)&&e){var o=this.generateRequestKey(e),i=this.controllers.get(o);return this.controllers.delete(o),new f(t.RequestErrorID.ABORT_ERROR,(null==i?void 0:i.signal.reason)||n)}},r.prototype.isSameAbortError=function(t){return t instanceof Error&&"AbortError"===t.name||(t instanceof DOMException&&"AbortError"===t.name||t instanceof Event&&"abort"===t.type)},r.prototype.abort=function(r){var n="string"==typeof r?r:this.generateRequestKey(r),e=this.controllers.get(n);e&&(e.abort(new f(t.RequestErrorID.ABORT_ERROR,"The operation was aborted")),this.controllers.delete(n),"string"!=typeof r&&"function"==typeof r.onAbort&&r.onAbort.call(r,r))},r.prototype.abortAll=function(){this.controllers.forEach((function(t){return t.abort()})),this.controllers.clear()},r}(),$e=function(){function r(){this.pluginName="FetchURLPlugin"}return r.prototype.isFullURL=function(t){return t.startsWith("http://")||t.startsWith("https://")},r.prototype.appendQueryParams=function(t,r){void 0===r&&(r={});var n=t.split("?"),e=n[0],o=n[1];(void 0===o?"":o).split("&").forEach((function(t){var n=t.split("="),e=n[0],o=n[1];e&&o&&(r[e]=o)}));var i=Object.entries(r).map((function(t){var r=t[0],n=t[1];return"".concat(r,"=").concat(n)})).join("&");return[e,i].join("?")},r.prototype.connectBaseURL=function(t,r){return"".concat(r,"/").concat(t)},r.prototype.buildUrl=function(t){var r=t.url,n=void 0===r?"":r,e=t.baseURL,o=void 0===e?"":e,i=t.params;if(!this.isFullURL(n)){var u=n.startsWith("/")?n.slice(1):n,s=o.endsWith("/")?o.slice(0,-1):o;n=this.connectBaseURL(u,s)}return i&&Object.keys(i).length>0&&(n=this.appendQueryParams(n,i)),n},r.prototype.onBefore=function(t){var r=t.parameters;r.url=this.buildUrl(r)},r.prototype.onSuccess=function(r){var n=r.returnValue;if(!n.response.ok){var e=new f(t.RequestErrorID.RESPONSE_NOT_OK,"Request failed with status: ".concat(n.status," ").concat(n.statusText));throw e.response=n.response,e}},r.prototype.onError=function(r){var n=r.error;return n instanceof f?n:new f(t.RequestErrorID.REQUEST_ERROR,n)},r}();function Ke(){if(qe)return Pe;qe=1;var t=te(),r=function(){if(Ee)return Oe;Ee=1;var t=te();return Oe=function(){this.__data__=new t,this.size=0}}(),n=je?we:(je=1,we=function(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}),e=Ne?xe:(Ne=1,xe=function(t){return this.__data__.get(t)}),o=Se?ke:(Se=1,ke=function(t){return this.__data__.has(t)}),i=function(){if(Te)return Ae;Te=1;var t=te(),r=re(),n=ee();return Ae=function(e,o){var i=this.__data__;if(i instanceof t){var u=i.__data__;if(!r||u.length<199)return u.push([e,o]),this.size=++i.size,this;i=this.__data__=new n(u)}return i.set(e,o),this.size=i.size,this}}();function u(r){var n=this.__data__=new t(r);this.size=n.size}return u.prototype.clear=r,u.prototype.delete=n,u.prototype.get=e,u.prototype.has=o,u.prototype.set=i,Pe=u}function Me(){if(Ue)return Ce;Ue=1;var t=ce(),r=Zn();return Ce=function(n,e,o){(void 0!==o&&!r(n[e],o)||void 0===o&&!(e in n))&&t(n,e,o)}}function Je(){if(Be)return De;Be=1;var t=(ze?Ie:(ze=1,Ie=function(t){return function(r,n,e){for(var o=-1,i=Object(r),u=e(r),s=u.length;s--;){var a=u[t?s:++o];if(!1===n(i[a],a,i))break}return r}}))();return De=t}var Qe,Ye,Ze,Xe,to,ro,no,eo,oo,io,uo,so,ao,co,fo,po,lo,ho,vo,yo={exports:{}};function go(){if(to)return Xe;to=1;var t=function(){if(Ze)return Ye;Ze=1;var t=$().Uint8Array;return Ye=t}();return Xe=function(r){var n=new r.constructor(r.byteLength);return new t(n).set(new t(r)),n}}function bo(){if(ao)return so;ao=1;var t=Object.prototype;return so=function(r){var n=r&&r.constructor;return r===("function"==typeof n&&n.prototype||t)}}function mo(){if(fo)return co;fo=1;var t=function(){if(uo)return io;uo=1;var t=ct(),r=Object.create,n=function(){function n(){}return function(e){if(!t(e))return{};if(r)return r(e);n.prototype=e;var o=new n;return n.prototype=void 0,o}}();return io=n}(),r=J(),n=bo();return co=function(e){return"function"!=typeof e.constructor||n(e)?{}:t(r(e))}}function _o(){if(lo)return po;lo=1;var t=$n(),r=ve();return po=function(n){return null!=n&&r(n.length)&&!t(n)}}var Ro,Oo,Eo,wo,jo,xo,No,ko={exports:{}};function So(){return Eo||(Eo=1,function(t,r){var n=$(),e=Oo?Ro:(Oo=1,Ro=function(){return!1}),o=r&&!r.nodeType&&r,i=o&&t&&!t.nodeType&&t,u=i&&i.exports===o?n.Buffer:void 0,s=(u?u.isBuffer:void 0)||e;t.exports=s}(ko,ko.exports)),ko.exports}var Ao,To,Po,qo,Co,Uo,Io,zo,Do,Bo,Fo,Vo,Ho,Lo,Go,Wo,$o,Ko,Mo,Jo,Qo,Yo,Zo,Xo,ti,ri,ni,ei,oi,ii,ui,si={exports:{}};function ai(){if(Po)return To;Po=1;var t=function(){if(jo)return wo;jo=1;var t=M(),r=ve(),n=Q(),e={};return e["[object Float32Array]"]=e["[object Float64Array]"]=e["[object Int8Array]"]=e["[object Int16Array]"]=e["[object Int32Array]"]=e["[object Uint8Array]"]=e["[object Uint8ClampedArray]"]=e["[object Uint16Array]"]=e["[object Uint32Array]"]=!0,e["[object Arguments]"]=e["[object Array]"]=e["[object ArrayBuffer]"]=e["[object Boolean]"]=e["[object DataView]"]=e["[object Date]"]=e["[object Error]"]=e["[object Function]"]=e["[object Map]"]=e["[object Number]"]=e["[object Object]"]=e["[object RegExp]"]=e["[object Set]"]=e["[object String]"]=e["[object WeakMap]"]=!1,wo=function(o){return n(o)&&r(o.length)&&!!e[t(o)]}}(),r=No?xo:(No=1,xo=function(t){return function(r){return t(r)}}),n=(Ao||(Ao=1,function(t,r){var n=W(),e=r&&!r.nodeType&&r,o=e&&t&&!t.nodeType&&t,i=o&&o.exports===e&&n.process,u=function(){try{return o&&o.require&&o.require("util").types||i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=u}(si,si.exports)),si.exports),e=n&&n.isTypedArray,o=e?r(e):t;return To=o}function ci(){if(Co)return qo;return Co=1,qo=function(t,r){if(("constructor"!==r||"function"!=typeof t[r])&&"__proto__"!=r)return t[r]}}function fi(){if(Fo)return Bo;Fo=1;var t=Do?zo:(Do=1,zo=function(t,r){for(var n=-1,e=Array(t);++n<t;)e[n]=r(n);return e}),r=he(),n=et(),e=So(),o=pe(),i=ai(),u=Object.prototype.hasOwnProperty;return Bo=function(s,a){var c=n(s),f=!c&&r(s),p=!c&&!f&&e(s),l=!c&&!f&&!p&&i(s),h=c||f||p||l,v=h?t(s.length,String):[],y=v.length;for(var d in s)!a&&!u.call(s,d)||h&&("length"==d||p&&("offset"==d||"parent"==d)||l&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||o(d,y))||v.push(d);return v}}function pi(){if(Go)return Lo;Go=1;var t=ct(),r=bo(),n=Ho?Vo:(Ho=1,Vo=function(t){var r=[];if(null!=t)for(var n in Object(t))r.push(n);return r}),e=Object.prototype.hasOwnProperty;return Lo=function(o){if(!t(o))return n(o);var i=r(o),u=[];for(var s in o)("constructor"!=s||!i&&e.call(o,s))&&u.push(s);return u}}function li(){if($o)return Wo;$o=1;var t=fi(),r=pi(),n=_o();return Wo=function(e){return n(e)?t(e,!0):r(e)}}function hi(){if(Mo)return Ko;Mo=1;var t=function(){if(Io)return Uo;Io=1;var t=fe(),r=ce();return Uo=function(n,e,o,i){var u=!o;o||(o={});for(var s=-1,a=e.length;++s<a;){var c=e[s],f=i?i(o[c],n[c],c,o,n):void 0;void 0===f&&(f=n[c]),u?r(o,c,f):t(o,c,f)}return o}}(),r=li();return Ko=function(n){return t(n,r(n))}}function vi(){if(Qo)return Jo;Qo=1;var t=Me(),r=(Qe||(Qe=1,function(t,r){var n=$(),e=r&&!r.nodeType&&r,o=e&&t&&!t.nodeType&&t,i=o&&o.exports===e?n.Buffer:void 0,u=i?i.allocUnsafe:void 0;t.exports=function(t,r){if(r)return t.slice();var n=t.length,e=u?u(n):new t.constructor(n);return t.copy(e),e}}(yo,yo.exports)),yo.exports),n=function(){if(no)return ro;no=1;var t=go();return ro=function(r,n){var e=n?t(r.buffer):r.buffer;return new r.constructor(e,r.byteOffset,r.length)}}(),e=oo?eo:(oo=1,eo=function(t,r){var n=-1,e=t.length;for(r||(r=Array(e));++n<e;)r[n]=t[n];return r}),o=mo(),i=he(),u=et(),s=function(){if(vo)return ho;vo=1;var t=_o(),r=Q();return ho=function(n){return r(n)&&t(n)}}(),a=So(),c=$n(),f=ct(),p=Y(),l=ai(),h=ci(),v=hi();return Jo=function(y,d,g,b,m,_,R){var O=h(y,g),E=h(d,g),w=R.get(E);if(w)t(y,g,w);else{var j=_?_(O,E,g+"",y,d,R):void 0,x=void 0===j;if(x){var N=u(E),k=!N&&a(E),S=!N&&!k&&l(E);j=E,N||k||S?u(O)?j=O:s(O)?j=e(O):k?(x=!1,j=r(E,!0)):S?(x=!1,j=n(E,!0)):j=[]:p(E)||i(E)?(j=O,i(O)?j=v(O):f(O)&&!c(O)||(j=o(E))):x=!1}x&&(R.set(E,j),m(j,E,b,_,R),R.delete(E)),t(y,g,j)}}}function yi(){if(oi)return ei;oi=1;var t=function(){if(ti)return Xo;ti=1;var t=be(),r=ge(),n=_e();return Xo=function(e,o){return n(r(e,o,t),e+"")}}(),r=function(){if(ni)return ri;ni=1;var t=Zn(),r=_o(),n=pe(),e=ct();return ri=function(o,i,u){if(!e(u))return!1;var s=typeof i;return!!("number"==s?r(u)&&n(i,u.length):"string"==s&&i in u)&&t(u[i],o)}}();return ei=function(n){return t((function(t,e){var o=-1,i=e.length,u=i>1?e[i-1]:void 0,s=i>2?e[2]:void 0;for(u=n.length>3&&"function"==typeof u?(i--,u):void 0,s&&r(e[0],e[1],s)&&(u=i<3?void 0:u,i=1),t=Object(t);++o<i;){var a=e[o];a&&n(t,a,o,u)}return t}))}}var di,gi=function(){if(ui)return ii;ui=1;var t=function(){if(Zo)return Yo;Zo=1;var t=Ke(),r=Me(),n=Je(),e=vi(),o=ct(),i=li(),u=ci();return Yo=function s(a,c,f,p,l){a!==c&&n(c,(function(n,i){if(l||(l=new t),o(n))e(a,c,i,f,s,p,l);else{var h=p?p(u(a,i),n,i+"",a,c,l):void 0;void 0===h&&(h=n),r(a,i,h)}}),i)},Yo}(),r=yi()((function(r,n,e){t(r,n,e)}));return ii=r}(),bi=_(gi),mi=function(){function t(t,r){void 0===r&&(r=new y),this.adapter=t,this.executor=r}return t.prototype.usePlugin=function(t){var r=this;return Array.isArray(t)?t.forEach((function(t){return r.executor.use(t)})):this.executor.use(t),this},t.prototype.request=function(t){var r=this,n=bi({},this.adapter.getConfig(),t);return this.executor.exec(n,(function(t){return r.adapter.request(t.parameters)}))},t}(),_i=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return e(r,t),r.prototype.request=function(r){return t.prototype.request.call(this,r)},r.prototype.get=function(t,r){return i(this,void 0,void 0,(function(){return u(this,(function(n){return[2,this.request(o(o({url:t},r),{method:"GET"}))]}))}))},r.prototype.post=function(t,r){return i(this,void 0,void 0,(function(){return u(this,(function(n){return[2,this.request(o(o({url:t},r),{method:"POST"}))]}))}))},r.prototype.put=function(t,r){return i(this,void 0,void 0,(function(){return u(this,(function(n){return[2,this.request(o(o({url:t},r),{method:"PUT"}))]}))}))},r.prototype.delete=function(t,r){return i(this,void 0,void 0,(function(){return u(this,(function(n){return[2,this.request(o(o({url:t},r),{method:"DELETE"}))]}))}))},r.prototype.patch=function(t,r){return i(this,void 0,void 0,(function(){return u(this,(function(n){return[2,this.request(o(o({url:t},r),{method:"PATCH"}))]}))}))},r.prototype.head=function(t,r){return i(this,void 0,void 0,(function(){return u(this,(function(n){return[2,this.request(o(o({url:t},r),{method:"HEAD"}))]}))}))},r.prototype.options=function(t,r){return i(this,void 0,void 0,(function(){return u(this,(function(n){return[2,this.request(o(o({url:t},r),{method:"OPTIONS"}))]}))}))},r.prototype.trace=function(t,r){return i(this,void 0,void 0,(function(){return u(this,(function(n){return[2,this.request(o(o({url:t},r),{method:"TRACE"}))]}))}))},r.prototype.connect=function(t,r){return i(this,void 0,void 0,(function(){return u(this,(function(n){return[2,this.request(o(o({url:t},r),{method:"CONNECT"}))]}))}))},r}(mi),Ri=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return e(r,t),r.prototype.request=function(r){return t.prototype.request.call(this,r)},r.prototype.get=function(t,r){return this.request(o(o({},r),{url:t,method:"GET"}))},r.prototype.post=function(t,r,n){return this.request(o(o({},n),{url:t,method:"POST",data:r}))},r.prototype.put=function(t,r,n){return this.request(o(o({},n),{url:t,method:"PUT",data:r}))},r.prototype.delete=function(t,r){return this.request(o(o({},r),{url:t,method:"DELETE"}))},r.prototype.patch=function(t,r,n){return this.request(o(o({},n),{url:t,method:"PATCH",data:r}))},r}(mi),Oi=function(){function t(t){void 0===t&&(t={}),this.options=t,this[di]="JSONSerializer"}return t.prototype.createReplacer=function(t){return Array.isArray(t)?t:null===t?function(t,r){return"string"==typeof r?r.replace(/\r\n/g,"\n"):r}:"function"==typeof t?function(r,n){var e="string"==typeof n?n.replace(/\r\n/g,"\n"):n;return t.call(this,r,e)}:function(t,r){return"string"==typeof r?r.replace(/\r\n/g,"\n"):r}},t.prototype.stringify=function(t,r,n){try{var e=this.createReplacer(r);return Array.isArray(e)?JSON.stringify(t,e,n):JSON.stringify(t,e,null!=n?n:this.options.pretty?this.options.indent||2:void 0)}catch(t){if(t instanceof TypeError&&t.message.includes("circular"))throw new TypeError("Cannot stringify data with circular references");throw t}},t.prototype.parse=function(t,r){return JSON.parse(t,r)},t.prototype.serialize=function(t){return this.stringify(t,this.options.replacer||null,this.options.pretty?this.options.indent||2:void 0)},t.prototype.deserialize=function(t,r){try{return this.parse(t)}catch(t){return r}},t.prototype.serializeArray=function(t){return"["+t.map((function(t){return JSON.stringify(t)})).join(",")+"]"},t}();di=Symbol.toStringTag;var Ei=function(){function t(t){void 0===t&&(t={}),this.options=t}return t.prototype.serialize=function(t){var r=Buffer.from(t,"utf8").toString("base64");return this.options.urlSafe?this.makeUrlSafe(r):r},t.prototype.deserialize=function(t,r){try{return/^[A-Za-z0-9+/]*={0,2}$/.test(t)?(this.options.urlSafe&&(t=this.makeUrlUnsafe(t)),Buffer.from(t,"base64").toString("utf8")):null!=r?r:""}catch(t){return null!=r?r:""}},t.prototype.makeUrlSafe=function(t){return t.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},t.prototype.makeUrlUnsafe=function(t){for(t=t.replace(/-/g,"+").replace(/_/g,"/");t.length%4;)t+="=";return t},t}(),wi=function(){function t(t,r){void 0===r&&(r=new Oi),this.storage=t,this.serializer=r,this.store={}}return Object.defineProperty(t.prototype,"length",{get:function(){return this.storage?this.storage.length:Object.keys(this.store).length},enumerable:!1,configurable:!0}),t.prototype.setItem=function(t,r,n){var e={key:t,value:r,expire:n};"number"==typeof n&&n>0&&(e.expire=n);var o=this.serializer.serialize(e);this.storage?this.storage.setItem(t,o):this.store[t]=o},t.prototype.getItem=function(t,r){var n,e=this.storage?this.storage.getItem(t):this.store[t],o=null!=r?r:null;if(!e)return o;var i=this.serializer.deserialize(e,o);return"object"==typeof i?"number"==typeof i.expire&&i.expire<Date.now()?(this.removeItem(t),o):null!==(n=null==i?void 0:i.value)&&void 0!==n?n:o:o},t.prototype.removeItem=function(t){this.storage?this.storage.removeItem(t):delete this.store[t]},t.prototype.clear=function(){this.storage?this.storage.clear():this.store={}},t}();t.AsyncExecutor=y,t.Base64Serializer=Ei,t.Executor=r,t.ExecutorError=c,t.FetchAbortPlugin=We,t.FetchURLPlugin=$e,t.JSONSerializer=Oi,t.JSONStorage=wi,t.LEVELS=lt,t.Logger=ht,t.RequestAdapterAxios=Ge,t.RequestAdapterFetch=Le,t.RequestError=f,t.RequestManager=mi,t.RequestScheduler=_i,t.RequestTransaction=Ri,t.RetryPlugin=b,t.SyncExecutor=d}));
|
|
1
|
+
!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r((t="undefined"!=typeof globalThis?globalThis:t||self).FeCorekit={})}(this,(function(t){"use strict";var r=function(t,n){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},r(t,n)};function n(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}var e=function(){return e=Object.assign||function(t){for(var r,n=1,e=arguments.length;n<e;n++)for(var o in r=arguments[n])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},e.apply(this,arguments)};function o(t,r,n,e){return new(n||(n=Promise))((function(o,i){function u(t){try{s(e.next(t))}catch(t){i(t)}}function a(t){try{s(e.throw(t))}catch(t){i(t)}}function s(t){var r;t.done?o(t.value):(r=t.value,r instanceof n?r:new n((function(t){t(r)}))).then(u,a)}s((e=e.apply(t,r||[])).next())}))}function i(t,r){var n,e,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},u=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return u.next=a(0),u.throw=a(1),u.return=a(2),"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;u&&(u=0,a[0]&&(i=0)),i;)try{if(n=1,e&&(o=2&a[0]?e.return:a[0]?e.throw||((o=e.return)&&o.call(e),0):e.next)&&!(o=o.call(e,a[1])).done)return o;switch(e=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,e=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=r.call(t,i)}catch(t){a=[6,t],e=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function u(t,r,n){if(n||2===arguments.length)for(var e,o=0,i=r.length;o<i;o++)!e&&o in r||(e||(e=Array.prototype.slice.call(r,0,o)),e[o]=r[o]);return t.concat(e||Array.prototype.slice.call(r))}"function"==typeof SuppressedError&&SuppressedError;var a,s=function(){function t(t){this.config=t,this.plugins=[]}return t.prototype.use=function(t){this.plugins.find((function(r){return r===t||r.pluginName===t.pluginName||r.constructor===t.constructor}))&&t.onlyOne?console.warn("Plugin ".concat(t.pluginName," is already used, skip adding")):this.plugins.push(t)},t}(),c=function(t){function r(r,n){var e=this.constructor,o=t.call(this,n instanceof Error?n.message:n||r)||this;return o.id=r,n instanceof Error&&"stack"in n&&(o.stack=n.stack),Object.setPrototypeOf(o,e.prototype),o}return n(r,t),r}(Error),f=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return n(r,t),r.prototype.runHooks=function(t,r,n){for(var e=[],a=3;a<arguments.length;a++)e[a-3]=arguments[a];return o(this,void 0,void 0,(function(){var o,a,s,c,f,l,p,h;return i(this,(function(i){switch(i.label){case 0:o=-1,(s=n||{parameters:void 0,hooksRuntimes:{}}).hooksRuntimes.times=0,s.hooksRuntimes.index=void 0,c=0,f=t,i.label=1;case 1:return c<f.length?(l=f[c],o++,"function"!=typeof l[r]||"function"==typeof l.enabled&&!l.enabled(r,n)?[3,3]:(null===(h=s.hooksRuntimes)||void 0===h?void 0:h.breakChain)?[3,4]:(s.hooksRuntimes.pluginName=l.pluginName,s.hooksRuntimes.hookName=r,s.hooksRuntimes.times++,s.hooksRuntimes.index=o,[4,l[r].apply(l,u([n],e,!1))])):[3,4];case 2:if(void 0!==(p=i.sent())&&(a=p,s.hooksRuntimes.returnValue=p,s.hooksRuntimes.returnBreakChain))return[2,a];i.label=3;case 3:return c++,[3,1];case 4:return[2,a]}}))}))},r.prototype.execNoError=function(t,r){return o(this,void 0,void 0,(function(){var n;return i(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.exec(t,r)];case 1:return[2,e.sent()];case 2:return(n=e.sent())instanceof c?[2,n]:[2,new c("UNKNOWN_ASYNC_ERROR",n)];case 3:return[2]}}))}))},r.prototype.exec=function(t,r){var n=r||t,e=r?t:void 0;if("function"!=typeof n)throw new Error("Task must be a async function!");return this.run(e,n)},r.prototype.run=function(t,r){return o(this,void 0,void 0,(function(){var n,e,u,a=this;return i(this,(function(s){switch(s.label){case 0:n={parameters:t,returnValue:void 0,error:void 0,hooksRuntimes:{pluginName:"",hookName:"",returnValue:void 0,returnBreakChain:!1,times:0}},e=function(t){return o(a,void 0,void 0,(function(){var n;return i(this,(function(e){switch(e.label){case 0:return[4,this.runHooks(this.plugins,"onExec",t,r)];case 1:return e.sent(),0!==t.hooksRuntimes.times?[3,3]:(n=t,[4,r(t)]);case 2:return n.returnValue=e.sent(),[2];case 3:return t.returnValue=t.hooksRuntimes.returnValue,[2]}}))}))},s.label=1;case 1:return s.trys.push([1,5,7,8]),[4,this.runHooks(this.plugins,"onBefore",n)];case 2:return s.sent(),[4,e(n)];case 3:return s.sent(),[4,this.runHooks(this.plugins,"onSuccess",n)];case 4:return s.sent(),[2,n.returnValue];case 5:return u=s.sent(),n.error=u,[4,this.runHooks(this.plugins,"onError",n)];case 6:if(s.sent(),n.hooksRuntimes.returnValue&&(n.error=n.hooksRuntimes.returnValue),n.error instanceof c)throw n.error;throw new c("UNKNOWN_ASYNC_ERROR",n.error);case 7:return n.hooksRuntimes={pluginName:"",hookName:"",returnValue:void 0,returnBreakChain:!1,times:0},[7];case 8:return[2]}}))}))},r}(s),l=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return n(r,t),r.prototype.runHooks=function(t,r,n){for(var e,o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var a,s=-1,c=n||{parameters:void 0,hooksRuntimes:{}};c.hooksRuntimes.times=0,c.hooksRuntimes.index=void 0;for(var f=0,l=t;f<l.length;f++){var p=l[f];if(s++,"function"==typeof p[r]&&("function"!=typeof p.enabled||p.enabled(r,c))){if(null===(e=c.hooksRuntimes)||void 0===e?void 0:e.breakChain)break;c.hooksRuntimes.pluginName=p.pluginName,c.hooksRuntimes.hookName=r,c.hooksRuntimes.times++,c.hooksRuntimes.index=s;var h=p[r].apply(p,u([n],o,!1));if(void 0!==h&&(a=h,c.hooksRuntimes.returnValue=h,c.hooksRuntimes.returnBreakChain))return a}}return a},r.prototype.execNoError=function(t,r){try{return this.exec(t,r)}catch(t){return t instanceof c?t:new c("UNKNOWN_SYNC_ERROR",t)}},r.prototype.exec=function(t,r){var n=r||t,e=r?t:void 0;if("function"!=typeof n)throw new Error("Task must be a function!");return this.run(e,n)},r.prototype.run=function(t,r){var n,e=this,o={parameters:t,returnValue:void 0,error:void 0,hooksRuntimes:{pluginName:"",hookName:"",returnValue:void 0,returnBreakChain:!1,times:0}};try{return this.runHooks(this.plugins,"onBefore",o),n=o,e.runHooks(e.plugins,"onExec",n,r),n.returnValue=n.hooksRuntimes.times?n.hooksRuntimes.returnValue:r(n),this.runHooks(this.plugins,"onSuccess",o),o.returnValue}catch(t){if(o.error=t,this.runHooks(this.plugins,"onError",o),o.hooksRuntimes.returnValue&&(o.error=o.hooksRuntimes.returnValue),o.error instanceof c)throw o.error;throw new c("UNKNOWN_SYNC_ERROR",o.error)}finally{o.hooksRuntimes={pluginName:"",hookName:"",returnValue:void 0,returnBreakChain:!1,times:0}}},r}(s),p=function(){return!0},h=function(){function t(t){var r;void 0===t&&(t={}),this.pluginName="RetryPlugin",this.onlyOne=!0,this.options=e(e({retryDelay:1e3,useExponentialBackoff:!1,shouldRetry:p},t),{maxRetries:Math.min(Math.max(1,null!==(r=t.maxRetries)&&void 0!==r?r:3),16)})}return t.prototype.delay=function(t){return o(this,void 0,void 0,(function(){var r;return i(this,(function(n){return r=this.options.useExponentialBackoff?this.options.retryDelay*Math.pow(2,t):this.options.retryDelay,[2,new Promise((function(t){return setTimeout(t,r)}))]}))}))},t.prototype.onExec=function(t,r){return o(this,void 0,void 0,(function(){return i(this,(function(n){return this.options.maxRetries<1?[2,r(t)]:[2,this.retry(r,t,this.options,this.options.maxRetries)]}))}))},t.prototype.shouldRetry=function(t){var r=t.error;return t.retryCount>0&&this.options.shouldRetry(r)},t.prototype.retry=function(t,r,n,e){return o(this,void 0,void 0,(function(){var o;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,4]),[4,t(r)];case 1:return[2,i.sent()];case 2:if(o=i.sent(),!this.shouldRetry({error:o,retryCount:e}))throw new c("RETRY_ERROR","All ".concat(n.maxRetries," attempts failed: ").concat(o.message));return[4,this.delay(n.maxRetries-e)];case 3:return i.sent(),e--,[2,this.retry(t,r,n,e)];case 4:return[2]}}))}))},t}(),v=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return n(r,t),r}(c);t.RequestErrorID=void 0,(a=t.RequestErrorID||(t.RequestErrorID={})).REQUEST_ERROR="REQUEST_ERROR",a.ENV_FETCH_NOT_SUPPORT="ENV_FETCH_NOT_SUPPORT",a.FETCHER_NONE="FETCHER_NONE",a.RESPONSE_NOT_OK="RESPONSE_NOT_OK",a.ABORT_ERROR="ABORT_ERROR",a.URL_NONE="URL_NONE";var y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function d(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var g,b={exports:{}};var m,_,R,O,E,w,j,k,x,N,S,T,A,P,q,C,U,z,I,B,F,V,D,H,L,K,M,$,J,W,G,Q,Y,Z,X,tt,rt,nt,et,ot,it,ut,at,st,ct,ft,lt,pt,ht,vt,yt,dt,gt,bt,mt,_t,Rt,Ot,Et,wt,jt,kt,xt,Nt,St,Tt,At,Pt,qt,Ct,Ut,zt,It,Bt,Ft,Vt,Dt,Ht,Lt,Kt,Mt,$t,Jt,Wt,Gt,Qt,Yt,Zt,Xt,tr,rr,nr,er,or,ir,ur,ar,sr,cr,fr,lr,pr,hr,vr,yr,dr,gr,br,mr,_r,Rr,Or,Er,wr,jr,kr,xr,Nr,Sr,Tr,Ar,Pr,qr,Cr,Ur,zr,Ir,Br,Fr,Vr,Dr,Hr,Lr,Kr,Mr,$r,Jr,Wr,Gr,Qr,Yr,Zr,Xr,tn,rn,nn,en,on,un,an,sn,cn,fn,ln,pn=(g||(g=1,function(t,r){function n(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.apply(void 0,t)}function e(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return s(!0===t[0],!1,t)}function o(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return s(!0===t[0],!0,t)}function i(t){if(Array.isArray(t)){for(var r=[],n=0;n<t.length;++n)r.push(i(t[n]));return r}if(u(t)){for(var n in r={},t)r[n]=i(t[n]);return r}return t}function u(t){return t&&"object"==typeof t&&!Array.isArray(t)}function a(t,r){if(!u(t))return r;for(var n in r)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(t[n]=u(t[n])&&u(r[n])?a(t[n],r[n]):r[n]);return t}function s(t,r,n){var e;!t&&u(e=n.shift())||(e={});for(var o=0;o<n.length;++o){var s=n[o];if(u(s))for(var c in s)if("__proto__"!==c&&"constructor"!==c&&"prototype"!==c){var f=t?i(s[c]):s[c];e[c]=r?a(e[c],f):f}}return e}Object.defineProperty(r,"__esModule",{value:!0}),r.isPlainObject=r.clone=r.recursive=r.merge=r.main=void 0,t.exports=r=n,r.default=n,r.main=n,n.clone=i,n.isPlainObject=u,n.recursive=o,r.merge=e,r.recursive=o,r.clone=i,r.isPlainObject=u}(b,b.exports)),b.exports);function hn(){if(_)return m;_=1;var t=Array.isArray;return m=t}function vn(){if(O)return R;O=1;var t="object"==typeof y&&y&&y.Object===Object&&y;return R=t}function yn(){if(w)return E;w=1;var t=vn(),r="object"==typeof self&&self&&self.Object===Object&&self,n=t||r||Function("return this")();return E=n}function dn(){if(k)return j;k=1;var t=yn().Symbol;return j=t}function gn(){if(P)return A;P=1;var t=dn(),r=function(){if(N)return x;N=1;var t=dn(),r=Object.prototype,n=r.hasOwnProperty,e=r.toString,o=t?t.toStringTag:void 0;return x=function(t){var r=n.call(t,o),i=t[o];try{t[o]=void 0;var u=!0}catch(t){}var a=e.call(t);return u&&(r?t[o]=i:delete t[o]),a}}(),n=function(){if(T)return S;T=1;var t=Object.prototype.toString;return S=function(r){return t.call(r)}}(),e=t?t.toStringTag:void 0;return A=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":e&&e in Object(t)?r(t):n(t)}}function bn(){if(C)return q;return C=1,q=function(t){return null!=t&&"object"==typeof t}}function mn(){if(z)return U;z=1;var t=gn(),r=bn();return U=function(n){return"symbol"==typeof n||r(n)&&"[object Symbol]"==t(n)}}function _n(){if(V)return F;return V=1,F=function(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}}function Rn(){if(H)return D;H=1;var t=gn(),r=_n();return D=function(n){if(!r(n))return!1;var e=t(n);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}}function On(){if($)return M;$=1;var t,r=function(){if(K)return L;K=1;var t=yn()["__core-js_shared__"];return L=t}(),n=(t=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"";return M=function(t){return!!n&&n in t}}function En(){if(Q)return G;Q=1;var t=Rn(),r=On(),n=_n(),e=function(){if(W)return J;W=1;var t=Function.prototype.toString;return J=function(r){if(null!=r){try{return t.call(r)}catch(t){}try{return r+""}catch(t){}}return""}}(),o=/^\[object .+?Constructor\]$/,i=Function.prototype,u=Object.prototype,a=i.toString,s=u.hasOwnProperty,c=RegExp("^"+a.call(s).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return G=function(i){return!(!n(i)||r(i))&&(t(i)?c:o).test(e(i))}}function wn(){if(tt)return X;tt=1;var t=En(),r=Z?Y:(Z=1,Y=function(t,r){return null==t?void 0:t[r]});return X=function(n,e){var o=r(n,e);return t(o)?o:void 0}}function jn(){if(nt)return rt;nt=1;var t=wn()(Object,"create");return rt=t}function kn(){if(vt)return ht;vt=1;var t=function(){if(ot)return et;ot=1;var t=jn();return et=function(){this.__data__=t?t(null):{},this.size=0}}(),r=ut?it:(ut=1,it=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}),n=function(){if(st)return at;st=1;var t=jn(),r=Object.prototype.hasOwnProperty;return at=function(n){var e=this.__data__;if(t){var o=e[n];return"__lodash_hash_undefined__"===o?void 0:o}return r.call(e,n)?e[n]:void 0}}(),e=function(){if(ft)return ct;ft=1;var t=jn(),r=Object.prototype.hasOwnProperty;return ct=function(n){var e=this.__data__;return t?void 0!==e[n]:r.call(e,n)}}(),o=function(){if(pt)return lt;pt=1;var t=jn();return lt=function(r,n){var e=this.__data__;return this.size+=this.has(r)?0:1,e[r]=t&&void 0===n?"__lodash_hash_undefined__":n,this}}();function i(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}return i.prototype.clear=t,i.prototype.delete=r,i.prototype.get=n,i.prototype.has=e,i.prototype.set=o,ht=i}function xn(){if(bt)return gt;return bt=1,gt=function(t,r){return t===r||t!=t&&r!=r}}function Nn(){if(_t)return mt;_t=1;var t=xn();return mt=function(r,n){for(var e=r.length;e--;)if(t(r[e][0],n))return e;return-1}}function Sn(){if(Tt)return St;Tt=1;var t=dt?yt:(dt=1,yt=function(){this.__data__=[],this.size=0}),r=function(){if(Ot)return Rt;Ot=1;var t=Nn(),r=Array.prototype.splice;return Rt=function(n){var e=this.__data__,o=t(e,n);return!(o<0||(o==e.length-1?e.pop():r.call(e,o,1),--this.size,0))}}(),n=function(){if(wt)return Et;wt=1;var t=Nn();return Et=function(r){var n=this.__data__,e=t(n,r);return e<0?void 0:n[e][1]}}(),e=function(){if(kt)return jt;kt=1;var t=Nn();return jt=function(r){return t(this.__data__,r)>-1}}(),o=function(){if(Nt)return xt;Nt=1;var t=Nn();return xt=function(r,n){var e=this.__data__,o=t(e,r);return o<0?(++this.size,e.push([r,n])):e[o][1]=n,this}}();function i(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}return i.prototype.clear=t,i.prototype.delete=r,i.prototype.get=n,i.prototype.has=e,i.prototype.set=o,St=i}function Tn(){if(Pt)return At;Pt=1;var t=wn()(yn(),"Map");return At=t}function An(){if(Bt)return It;Bt=1;var t=zt?Ut:(zt=1,Ut=function(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t});return It=function(r,n){var e=r.__data__;return t(n)?e["string"==typeof n?"string":"hash"]:e.map}}function Pn(){if(Wt)return Jt;Wt=1;var t=function(){if(Ct)return qt;Ct=1;var t=kn(),r=Sn(),n=Tn();return qt=function(){this.size=0,this.__data__={hash:new t,map:new(n||r),string:new t}}}(),r=function(){if(Vt)return Ft;Vt=1;var t=An();return Ft=function(r){var n=t(this,r).delete(r);return this.size-=n?1:0,n}}(),n=function(){if(Ht)return Dt;Ht=1;var t=An();return Dt=function(r){return t(this,r).get(r)}}(),e=function(){if(Kt)return Lt;Kt=1;var t=An();return Lt=function(r){return t(this,r).has(r)}}(),o=function(){if($t)return Mt;$t=1;var t=An();return Mt=function(r,n){var e=t(this,r),o=e.size;return e.set(r,n),this.size+=e.size==o?0:1,this}}();function i(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}return i.prototype.clear=t,i.prototype.delete=r,i.prototype.get=n,i.prototype.has=e,i.prototype.set=o,Jt=i}function qn(){if(Zt)return Yt;Zt=1;var t=function(){if(Qt)return Gt;Qt=1;var t=Pn();function r(n,e){if("function"!=typeof n||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var o=function(){var t=arguments,r=e?e.apply(this,t):t[0],i=o.cache;if(i.has(r))return i.get(r);var u=n.apply(this,t);return o.cache=i.set(r,u)||i,u};return o.cache=new(r.Cache||t),o}return r.Cache=t,Gt=r}();return Yt=function(r){var n=t(r,(function(t){return 500===e.size&&e.clear(),t})),e=n.cache;return n}}function Cn(){if(or)return er;or=1;var t=dn(),r=nr?rr:(nr=1,rr=function(t,r){for(var n=-1,e=null==t?0:t.length,o=Array(e);++n<e;)o[n]=r(t[n],n,t);return o}),n=hn(),e=mn(),o=t?t.prototype:void 0,i=o?o.toString:void 0;return er=function t(o){if("string"==typeof o)return o;if(n(o))return r(o,t)+"";if(e(o))return i?i.call(o):"";var u=o+"";return"0"==u&&1/o==-1/0?"-0":u},er}function Un(){if(sr)return ar;sr=1;var t=hn(),r=function(){if(B)return I;B=1;var t=hn(),r=mn(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,e=/^\w*$/;return I=function(o,i){if(t(o))return!1;var u=typeof o;return!("number"!=u&&"symbol"!=u&&"boolean"!=u&&null!=o&&!r(o))||e.test(o)||!n.test(o)||null!=i&&o in Object(i)}}(),n=function(){if(tr)return Xt;tr=1;var t=qn(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,e=t((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(r,(function(t,r,o,i){e.push(o?i.replace(n,"$1"):r||t)})),e}));return Xt=e}(),e=function(){if(ur)return ir;ur=1;var t=Cn();return ir=function(r){return null==r?"":t(r)}}();return ar=function(o,i){return t(o)?o:r(o,i)?[o]:n(e(o))}}function zn(){if(fr)return cr;fr=1;var t=mn();return cr=function(r){if("string"==typeof r||t(r))return r;var n=r+"";return"0"==n&&1/r==-1/0?"-0":n}}function In(){if(vr)return hr;vr=1;var t=wn(),r=function(){try{var r=t(Object,"defineProperty");return r({},"",{}),r}catch(t){}}();return hr=r}function Bn(){if(dr)return yr;dr=1;var t=In();return yr=function(r,n,e){"__proto__"==n&&t?t(r,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):r[n]=e}}function Fn(){if(br)return gr;br=1;var t=Bn(),r=xn(),n=Object.prototype.hasOwnProperty;return gr=function(e,o,i){var u=e[o];n.call(e,o)&&r(u,i)&&(void 0!==i||o in e)||t(e,o,i)}}function Vn(){if(_r)return mr;_r=1;var t=/^(?:0|[1-9]\d*)$/;return mr=function(r,n){var e=typeof r;return!!(n=null==n?9007199254740991:n)&&("number"==e||"symbol"!=e&&t.test(r))&&r>-1&&r%1==0&&r<n}}function Dn(){if(wr)return Er;wr=1;var t=function(){if(pr)return lr;pr=1;var t=Un(),r=zn();return lr=function(n,e){for(var o=0,i=(e=t(e,n)).length;null!=n&&o<i;)n=n[r(e[o++])];return o&&o==i?n:void 0}}(),r=function(){if(Or)return Rr;Or=1;var t=Fn(),r=Un(),n=Vn(),e=_n(),o=zn();return Rr=function(i,u,a,s){if(!e(i))return i;for(var c=-1,f=(u=r(u,i)).length,l=f-1,p=i;null!=p&&++c<f;){var h=o(u[c]),v=a;if("__proto__"===h||"constructor"===h||"prototype"===h)return i;if(c!=l){var y=p[h];void 0===(v=s?s(y,h,p):void 0)&&(v=e(y)?y:n(u[c+1])?[]:{})}t(p,h,v),p=p[h]}return i}}(),n=Un();return Er=function(e,o,i){for(var u=-1,a=o.length,s={};++u<a;){var c=o[u],f=t(e,c);i(f,c)&&r(s,n(c,e),f)}return s}}function Hn(){if(Tr)return Sr;Tr=1;var t=function(){if(Nr)return xr;Nr=1;var t=gn(),r=bn();return xr=function(n){return r(n)&&"[object Arguments]"==t(n)}}(),r=bn(),n=Object.prototype,e=n.hasOwnProperty,o=n.propertyIsEnumerable,i=t(function(){return arguments}())?t:function(t){return r(t)&&e.call(t,"callee")&&!o.call(t,"callee")};return Sr=i}function Ln(){if(Pr)return Ar;Pr=1;return Ar=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}}function Kn(){if(zr)return Ur;zr=1;var t=kr?jr:(kr=1,jr=function(t,r){return null!=t&&r in Object(t)}),r=function(){if(Cr)return qr;Cr=1;var t=Un(),r=Hn(),n=hn(),e=Vn(),o=Ln(),i=zn();return qr=function(u,a,s){for(var c=-1,f=(a=t(a,u)).length,l=!1;++c<f;){var p=i(a[c]);if(!(l=null!=u&&s(u,p)))break;u=u[p]}return l||++c!=f?l:!!(f=null==u?0:u.length)&&o(f)&&e(p,f)&&(n(u)||r(u))}}();return Ur=function(n,e){return null!=n&&r(n,e,t)}}function Mn(){if(Kr)return Lr;Kr=1;var t=Vr?Fr:(Vr=1,Fr=function(t,r){for(var n=-1,e=r.length,o=t.length;++n<e;)t[o+n]=r[n];return t}),r=function(){if(Hr)return Dr;Hr=1;var t=dn(),r=Hn(),n=hn(),e=t?t.isConcatSpreadable:void 0;return Dr=function(t){return n(t)||r(t)||!!(e&&t&&t[e])}}();return Lr=function n(e,o,i,u,a){var s=-1,c=e.length;for(i||(i=r),a||(a=[]);++s<c;){var f=e[s];o>0&&i(f)?o>1?n(f,o-1,i,u,a):t(a,f):u||(a[a.length]=f)}return a},Lr}function $n(){if(Qr)return Gr;Qr=1;var t=Wr?Jr:(Wr=1,Jr=function(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}),r=Math.max;return Gr=function(n,e,o){return e=r(void 0===e?n.length-1:e,0),function(){for(var i=arguments,u=-1,a=r(i.length-e,0),s=Array(a);++u<a;)s[u]=i[e+u];u=-1;for(var c=Array(e+1);++u<e;)c[u]=i[u];return c[e]=o(s),t(n,this,c)}},Gr}function Jn(){if(tn)return Xr;return tn=1,Xr=function(t){return t}}function Wn(){if(nn)return rn;nn=1;var t=Zr?Yr:(Zr=1,Yr=function(t){return function(){return t}}),r=In(),n=Jn();return rn=r?function(n,e){return r(n,"toString",{configurable:!0,enumerable:!1,value:t(e),writable:!0})}:n}function Gn(){if(an)return un;an=1;var t=Wn(),r=function(){if(on)return en;on=1;var t=Date.now;return en=function(r){var n=0,e=0;return function(){var o=t(),i=16-(o-e);if(e=o,i>0){if(++n>=800)return arguments[0]}else n=0;return r.apply(void 0,arguments)}},en}(),n=r(t);return un=n}function Qn(){if(cn)return sn;cn=1;var t=function(){if($r)return Mr;$r=1;var t=Mn();return Mr=function(r){return null!=r&&r.length?t(r,1):[]}}(),r=$n(),n=Gn();return sn=function(e){return n(r(e,void 0,t),e+"")}}var Yn,Zn,Xn,te,re,ne,ee,oe,ie,ue,ae,se,ce,fe,le,pe,he,ve,ye=function(){if(ln)return fn;ln=1;var t=function(){if(Br)return Ir;Br=1;var t=Dn(),r=Kn();return Ir=function(n,e){return t(n,e,(function(t,e){return r(n,e)}))}}(),r=Qn()((function(r,n){return null==r?{}:t(r,n)}));return fn=r}(),de=d(ye),ge=["cache","credentials","headers","integrity","keepalive","mode","priority","redirect","referrer","referrerPolicy","signal"],be=function(){function r(r){if(void 0===r&&(r={}),!r.fetcher){if("function"!=typeof fetch)throw new c(t.RequestErrorID.ENV_FETCH_NOT_SUPPORT);r.fetcher=fetch}this.executor=new f,this.config=r}return r.prototype.getConfig=function(){return this.config},r.prototype.usePlugin=function(t){this.executor.use(t)},r.prototype.request=function(r){return o(this,void 0,void 0,(function(){var n,e,u,a,s,f=this;return i(this,(function(l){if(n=this.getConfig(),e=pn.merge({},n,r),u=e.fetcher,a=function(t,r){var n={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&r.indexOf(e)<0&&(n[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(e=Object.getOwnPropertySymbols(t);o<e.length;o++)r.indexOf(e[o])<0&&Object.prototype.propertyIsEnumerable.call(t,e[o])&&(n[e[o]]=t[e[o]])}return n}(e,["fetcher"]),"function"!=typeof u)throw new c(t.RequestErrorID.FETCHER_NONE);if(!a.url)throw new c(t.RequestErrorID.URL_NONE);return s=function(t){return o(f,void 0,void 0,(function(){var r;return i(this,(function(n){switch(n.label){case 0:return[4,u(this.parametersToRequest(t.parameters))];case 1:return r=n.sent(),[2,this.toAdapterResponse(r,r,t.parameters)]}}))}))},[2,this.executor.exec(a,s)]}))}))},r.prototype.parametersToRequest=function(t){var r=t.url,n=void 0===r?"/":r,e=t.method,o=void 0===e?"GET":e,i=t.data,u=de(t,ge);return new Request(n,Object.assign(u,{body:i,method:o.toUpperCase()}))},r.prototype.toAdapterResponse=function(t,r,n){return{data:t,status:r.status,statusText:r.statusText,headers:this.getResponseHeaders(r),config:n,response:r}},r.prototype.getResponseHeaders=function(t){var r={};return t.headers.forEach((function(t,n){r[n]=t})),r},r}(),me=function(){function t(t,r){void 0===r&&(r={}),this.config=r,this.axiosInstance=t.create(r)}return t.prototype.getConfig=function(){return this.config},t.prototype.request=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(r){return[2,this.axiosInstance.request(t)]}))}))},t}(),_e=function(){function r(){this.pluginName="FetchAbortPlugin",this.onlyOne=!0,this.controllers=new Map}return r.prototype.generateRequestKey=function(t){if(t.requestId)return t.requestId;var r=t.params?JSON.stringify(t.params):"",n=t.body?JSON.stringify(t.body):"";return"".concat(t.method||"GET","-").concat(t.url,"-").concat(r,"-").concat(n)},r.prototype.onBefore=function(t){var r=this.generateRequestKey(t.parameters);if(this.controllers.has(r)&&this.abort(t.parameters),!t.parameters.signal){var n=new AbortController;this.controllers.set(r,n),t.parameters.signal=n.signal}},r.prototype.onSuccess=function(t){var r=t.parameters;r&&this.controllers.delete(this.generateRequestKey(r))},r.prototype.onError=function(r){var n=r.error,e=r.parameters;if(this.isSameAbortError(n)&&e){var o=this.generateRequestKey(e),i=this.controllers.get(o);return this.controllers.delete(o),new v(t.RequestErrorID.ABORT_ERROR,(null==i?void 0:i.signal.reason)||n)}},r.prototype.isSameAbortError=function(t){return t instanceof Error&&"AbortError"===t.name||(t instanceof DOMException&&"AbortError"===t.name||t instanceof Event&&"abort"===t.type)},r.prototype.abort=function(r){var n="string"==typeof r?r:this.generateRequestKey(r),e=this.controllers.get(n);e&&(e.abort(new v(t.RequestErrorID.ABORT_ERROR,"The operation was aborted")),this.controllers.delete(n),"string"!=typeof r&&"function"==typeof r.onAbort&&r.onAbort.call(r,r))},r.prototype.abortAll=function(){this.controllers.forEach((function(t){return t.abort()})),this.controllers.clear()},r}(),Re=function(){function r(){this.pluginName="FetchURLPlugin"}return r.prototype.isFullURL=function(t){return t.startsWith("http://")||t.startsWith("https://")},r.prototype.appendQueryParams=function(t,r){void 0===r&&(r={});var n=t.split("?"),e=n[0],o=n[1];(void 0===o?"":o).split("&").forEach((function(t){var n=t.split("="),e=n[0],o=n[1];e&&o&&(r[e]=o)}));var i=Object.entries(r).map((function(t){var r=t[0],n=t[1];return"".concat(r,"=").concat(n)})).join("&");return[e,i].join("?")},r.prototype.connectBaseURL=function(t,r){return"".concat(r,"/").concat(t)},r.prototype.buildUrl=function(t){var r=t.url,n=void 0===r?"":r,e=t.baseURL,o=void 0===e?"":e,i=t.params;if(!this.isFullURL(n)){var u=n.startsWith("/")?n.slice(1):n,a=o.endsWith("/")?o.slice(0,-1):o;n=this.connectBaseURL(u,a)}return i&&Object.keys(i).length>0&&(n=this.appendQueryParams(n,i)),n},r.prototype.onBefore=function(t){var r=t.parameters;r.url=this.buildUrl(r)},r.prototype.onSuccess=function(r){var n=r.returnValue;if(!n.response.ok){var e=new v(t.RequestErrorID.RESPONSE_NOT_OK,"Request failed with status: ".concat(n.status," ").concat(n.statusText));throw e.response=n.response,e}},r.prototype.onError=function(r){var n=r.error;return n instanceof v?n:new v(t.RequestErrorID.REQUEST_ERROR,n)},r}();function Oe(){if(se)return ae;se=1;var t=Sn(),r=function(){if(Zn)return Yn;Zn=1;var t=Sn();return Yn=function(){this.__data__=new t,this.size=0}}(),n=te?Xn:(te=1,Xn=function(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}),e=ne?re:(ne=1,re=function(t){return this.__data__.get(t)}),o=oe?ee:(oe=1,ee=function(t){return this.__data__.has(t)}),i=function(){if(ue)return ie;ue=1;var t=Sn(),r=Tn(),n=Pn();return ie=function(e,o){var i=this.__data__;if(i instanceof t){var u=i.__data__;if(!r||u.length<199)return u.push([e,o]),this.size=++i.size,this;i=this.__data__=new n(u)}return i.set(e,o),this.size=i.size,this}}();function u(r){var n=this.__data__=new t(r);this.size=n.size}return u.prototype.clear=r,u.prototype.delete=n,u.prototype.get=e,u.prototype.has=o,u.prototype.set=i,ae=u}function Ee(){if(fe)return ce;fe=1;var t=Bn(),r=xn();return ce=function(n,e,o){(void 0!==o&&!r(n[e],o)||void 0===o&&!(e in n))&&t(n,e,o)}}function we(){if(ve)return he;ve=1;var t=(pe?le:(pe=1,le=function(t){return function(r,n,e){for(var o=-1,i=Object(r),u=e(r),a=u.length;a--;){var s=u[t?a:++o];if(!1===n(i[s],s,i))break}return r}}))();return he=t}var je,ke,xe,Ne,Se,Te,Ae,Pe,qe,Ce,Ue,ze,Ie,Be,Fe,Ve,De,He,Le,Ke,Me,$e,Je,We={exports:{}};function Ge(){if(Se)return Ne;Se=1;var t=function(){if(xe)return ke;xe=1;var t=yn().Uint8Array;return ke=t}();return Ne=function(r){var n=new r.constructor(r.byteLength);return new t(n).set(new t(r)),n}}function Qe(){if(Fe)return Be;Fe=1;var t=(Ie?ze:(Ie=1,ze=function(t,r){return function(n){return t(r(n))}}))(Object.getPrototypeOf,Object);return Be=t}function Ye(){if(De)return Ve;De=1;var t=Object.prototype;return Ve=function(r){var n=r&&r.constructor;return r===("function"==typeof n&&n.prototype||t)}}function Ze(){if(Le)return He;Le=1;var t=function(){if(Ue)return Ce;Ue=1;var t=_n(),r=Object.create,n=function(){function n(){}return function(e){if(!t(e))return{};if(r)return r(e);n.prototype=e;var o=new n;return n.prototype=void 0,o}}();return Ce=n}(),r=Qe(),n=Ye();return He=function(e){return"function"!=typeof e.constructor||n(e)?{}:t(r(e))}}function Xe(){if(Me)return Ke;Me=1;var t=Rn(),r=Ln();return Ke=function(n){return null!=n&&r(n.length)&&!t(n)}}var to,ro,no,eo,oo,io,uo,ao,so,co={exports:{}};function fo(){return no||(no=1,function(t,r){var n=yn(),e=ro?to:(ro=1,to=function(){return!1}),o=r&&!r.nodeType&&r,i=o&&t&&!t.nodeType&&t,u=i&&i.exports===o?n.Buffer:void 0,a=(u?u.isBuffer:void 0)||e;t.exports=a}(co,co.exports)),co.exports}var lo,po,ho,vo,yo,go,bo,mo,_o,Ro,Oo,Eo,wo,jo,ko,xo,No,So,To,Ao,Po,qo,Co,Uo,zo,Io,Bo,Fo,Vo,Do,Ho,Lo={exports:{}};function Ko(){if(ho)return po;ho=1;var t=function(){if(uo)return io;uo=1;var t=gn(),r=Ln(),n=bn(),e={};return e["[object Float32Array]"]=e["[object Float64Array]"]=e["[object Int8Array]"]=e["[object Int16Array]"]=e["[object Int32Array]"]=e["[object Uint8Array]"]=e["[object Uint8ClampedArray]"]=e["[object Uint16Array]"]=e["[object Uint32Array]"]=!0,e["[object Arguments]"]=e["[object Array]"]=e["[object ArrayBuffer]"]=e["[object Boolean]"]=e["[object DataView]"]=e["[object Date]"]=e["[object Error]"]=e["[object Function]"]=e["[object Map]"]=e["[object Number]"]=e["[object Object]"]=e["[object RegExp]"]=e["[object Set]"]=e["[object String]"]=e["[object WeakMap]"]=!1,io=function(o){return n(o)&&r(o.length)&&!!e[t(o)]}}(),r=so?ao:(so=1,ao=function(t){return function(r){return t(r)}}),n=(lo||(lo=1,function(t,r){var n=vn(),e=r&&!r.nodeType&&r,o=e&&t&&!t.nodeType&&t,i=o&&o.exports===e&&n.process,u=function(){try{return o&&o.require&&o.require("util").types||i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=u}(Lo,Lo.exports)),Lo.exports),e=n&&n.isTypedArray,o=e?r(e):t;return po=o}function Mo(){if(yo)return vo;return yo=1,vo=function(t,r){if(("constructor"!==r||"function"!=typeof t[r])&&"__proto__"!=r)return t[r]}}function $o(){if(Oo)return Ro;Oo=1;var t=_o?mo:(_o=1,mo=function(t,r){for(var n=-1,e=Array(t);++n<t;)e[n]=r(n);return e}),r=Hn(),n=hn(),e=fo(),o=Vn(),i=Ko(),u=Object.prototype.hasOwnProperty;return Ro=function(a,s){var c=n(a),f=!c&&r(a),l=!c&&!f&&e(a),p=!c&&!f&&!l&&i(a),h=c||f||l||p,v=h?t(a.length,String):[],y=v.length;for(var d in a)!s&&!u.call(a,d)||h&&("length"==d||l&&("offset"==d||"parent"==d)||p&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||o(d,y))||v.push(d);return v}}function Jo(){if(ko)return jo;ko=1;var t=_n(),r=Ye(),n=wo?Eo:(wo=1,Eo=function(t){var r=[];if(null!=t)for(var n in Object(t))r.push(n);return r}),e=Object.prototype.hasOwnProperty;return jo=function(o){if(!t(o))return n(o);var i=r(o),u=[];for(var a in o)("constructor"!=a||!i&&e.call(o,a))&&u.push(a);return u}}function Wo(){if(No)return xo;No=1;var t=$o(),r=Jo(),n=Xe();return xo=function(e){return n(e)?t(e,!0):r(e)}}function Go(){if(To)return So;To=1;var t=function(){if(bo)return go;bo=1;var t=Fn(),r=Bn();return go=function(n,e,o,i){var u=!o;o||(o={});for(var a=-1,s=e.length;++a<s;){var c=e[a],f=i?i(o[c],n[c],c,o,n):void 0;void 0===f&&(f=n[c]),u?r(o,c,f):t(o,c,f)}return o}}(),r=Wo();return So=function(n){return t(n,r(n))}}function Qo(){if(Po)return Ao;Po=1;var t=Ee(),r=(je||(je=1,function(t,r){var n=yn(),e=r&&!r.nodeType&&r,o=e&&t&&!t.nodeType&&t,i=o&&o.exports===e?n.Buffer:void 0,u=i?i.allocUnsafe:void 0;t.exports=function(t,r){if(r)return t.slice();var n=t.length,e=u?u(n):new t.constructor(n);return t.copy(e),e}}(We,We.exports)),We.exports),n=function(){if(Ae)return Te;Ae=1;var t=Ge();return Te=function(r,n){var e=n?t(r.buffer):r.buffer;return new r.constructor(e,r.byteOffset,r.length)}}(),e=qe?Pe:(qe=1,Pe=function(t,r){var n=-1,e=t.length;for(r||(r=Array(e));++n<e;)r[n]=t[n];return r}),o=Ze(),i=Hn(),u=hn(),a=function(){if(Je)return $e;Je=1;var t=Xe(),r=bn();return $e=function(n){return r(n)&&t(n)}}(),s=fo(),c=Rn(),f=_n(),l=function(){if(oo)return eo;oo=1;var t=gn(),r=Qe(),n=bn(),e=Function.prototype,o=Object.prototype,i=e.toString,u=o.hasOwnProperty,a=i.call(Object);return eo=function(e){if(!n(e)||"[object Object]"!=t(e))return!1;var o=r(e);if(null===o)return!0;var s=u.call(o,"constructor")&&o.constructor;return"function"==typeof s&&s instanceof s&&i.call(s)==a}}(),p=Ko(),h=Mo(),v=Go();return Ao=function(y,d,g,b,m,_,R){var O=h(y,g),E=h(d,g),w=R.get(E);if(w)t(y,g,w);else{var j=_?_(O,E,g+"",y,d,R):void 0,k=void 0===j;if(k){var x=u(E),N=!x&&s(E),S=!x&&!N&&p(E);j=E,x||N||S?u(O)?j=O:a(O)?j=e(O):N?(k=!1,j=r(E,!0)):S?(k=!1,j=n(E,!0)):j=[]:l(E)||i(E)?(j=O,i(O)?j=v(O):f(O)&&!c(O)||(j=o(E))):k=!1}k&&(R.set(E,j),m(j,E,b,_,R),R.delete(E)),t(y,g,j)}}}function Yo(){if(Vo)return Fo;Vo=1;var t=function(){if(zo)return Uo;zo=1;var t=Jn(),r=$n(),n=Gn();return Uo=function(e,o){return n(r(e,o,t),e+"")}}(),r=function(){if(Bo)return Io;Bo=1;var t=xn(),r=Xe(),n=Vn(),e=_n();return Io=function(o,i,u){if(!e(u))return!1;var a=typeof i;return!!("number"==a?r(u)&&n(i,u.length):"string"==a&&i in u)&&t(u[i],o)}}();return Fo=function(n){return t((function(t,e){var o=-1,i=e.length,u=i>1?e[i-1]:void 0,a=i>2?e[2]:void 0;for(u=n.length>3&&"function"==typeof u?(i--,u):void 0,a&&r(e[0],e[1],a)&&(u=i<3?void 0:u,i=1),t=Object(t);++o<i;){var s=e[o];s&&n(t,s,o,u)}return t}))}}var Zo,Xo=function(){if(Ho)return Do;Ho=1;var t=function(){if(Co)return qo;Co=1;var t=Oe(),r=Ee(),n=we(),e=Qo(),o=_n(),i=Wo(),u=Mo();return qo=function a(s,c,f,l,p){s!==c&&n(c,(function(n,i){if(p||(p=new t),o(n))e(s,c,i,f,a,l,p);else{var h=l?l(u(s,i),n,i+"",s,c,p):void 0;void 0===h&&(h=n),r(s,i,h)}}),i)},qo}(),r=Yo()((function(r,n,e){t(r,n,e)}));return Do=r}(),ti=d(Xo),ri=function(){function t(t,r){void 0===r&&(r=new f),this.adapter=t,this.executor=r}return t.prototype.usePlugin=function(t){var r=this;return Array.isArray(t)?t.forEach((function(t){return r.executor.use(t)})):this.executor.use(t),this},t.prototype.request=function(t){var r=this,n=ti({},this.adapter.getConfig(),t);return this.executor.exec(n,(function(t){return r.adapter.request(t.parameters)}))},t}(),ni=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return n(r,t),r.prototype.request=function(r){return t.prototype.request.call(this,r)},r.prototype.get=function(t,r){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,this.request(e(e({url:t},r),{method:"GET"}))]}))}))},r.prototype.post=function(t,r){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,this.request(e(e({url:t},r),{method:"POST"}))]}))}))},r.prototype.put=function(t,r){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,this.request(e(e({url:t},r),{method:"PUT"}))]}))}))},r.prototype.delete=function(t,r){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,this.request(e(e({url:t},r),{method:"DELETE"}))]}))}))},r.prototype.patch=function(t,r){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,this.request(e(e({url:t},r),{method:"PATCH"}))]}))}))},r.prototype.head=function(t,r){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,this.request(e(e({url:t},r),{method:"HEAD"}))]}))}))},r.prototype.options=function(t,r){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,this.request(e(e({url:t},r),{method:"OPTIONS"}))]}))}))},r.prototype.trace=function(t,r){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,this.request(e(e({url:t},r),{method:"TRACE"}))]}))}))},r.prototype.connect=function(t,r){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,this.request(e(e({url:t},r),{method:"CONNECT"}))]}))}))},r}(ri),ei=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return n(r,t),r.prototype.request=function(r){return t.prototype.request.call(this,r)},r.prototype.get=function(t,r){return this.request(e(e({},r),{url:t,method:"GET"}))},r.prototype.post=function(t,r,n){return this.request(e(e({},n),{url:t,method:"POST",data:r}))},r.prototype.put=function(t,r,n){return this.request(e(e({},n),{url:t,method:"PUT",data:r}))},r.prototype.delete=function(t,r){return this.request(e(e({},r),{url:t,method:"DELETE"}))},r.prototype.patch=function(t,r,n){return this.request(e(e({},n),{url:t,method:"PATCH",data:r}))},r}(ri),oi=function(){function t(t){void 0===t&&(t={}),this.options=t,this[Zo]="JSONSerializer"}return t.prototype.createReplacer=function(t){return Array.isArray(t)?t:null===t?function(t,r){return"string"==typeof r?r.replace(/\r\n/g,"\n"):r}:"function"==typeof t?function(r,n){var e="string"==typeof n?n.replace(/\r\n/g,"\n"):n;return t.call(this,r,e)}:function(t,r){return"string"==typeof r?r.replace(/\r\n/g,"\n"):r}},t.prototype.stringify=function(t,r,n){try{var e=this.createReplacer(r);return Array.isArray(e)?JSON.stringify(t,e,n):JSON.stringify(t,e,null!=n?n:this.options.pretty?this.options.indent||2:void 0)}catch(t){if(t instanceof TypeError&&t.message.includes("circular"))throw new TypeError("Cannot stringify data with circular references");throw t}},t.prototype.parse=function(t,r){return JSON.parse(t,r)},t.prototype.serialize=function(t){return this.stringify(t,this.options.replacer||null,this.options.pretty?this.options.indent||2:void 0)},t.prototype.deserialize=function(t,r){try{return this.parse(t)}catch(t){return r}},t.prototype.serializeArray=function(t){return"["+t.map((function(t){return JSON.stringify(t)})).join(",")+"]"},t}();Zo=Symbol.toStringTag;var ii=function(){function t(t){void 0===t&&(t={}),this.options=t}return t.prototype.serialize=function(t){var r=Buffer.from(t,"utf8").toString("base64");return this.options.urlSafe?this.makeUrlSafe(r):r},t.prototype.deserialize=function(t,r){try{return/^[A-Za-z0-9+/]*={0,2}$/.test(t)?(this.options.urlSafe&&(t=this.makeUrlUnsafe(t)),Buffer.from(t,"base64").toString("utf8")):null!=r?r:""}catch(t){return null!=r?r:""}},t.prototype.makeUrlSafe=function(t){return t.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},t.prototype.makeUrlUnsafe=function(t){for(t=t.replace(/-/g,"+").replace(/_/g,"/");t.length%4;)t+="=";return t},t}(),ui=function(){function t(t,r){void 0===r&&(r=new oi),this.storage=t,this.serializer=r,this.store={}}return Object.defineProperty(t.prototype,"length",{get:function(){return this.storage?this.storage.length:Object.keys(this.store).length},enumerable:!1,configurable:!0}),t.prototype.setItem=function(t,r,n){var e={key:t,value:r,expire:n};"number"==typeof n&&n>0&&(e.expire=n);var o=this.serializer.serialize(e);this.storage?this.storage.setItem(t,o):this.store[t]=o},t.prototype.getItem=function(t,r){var n,e=this.storage?this.storage.getItem(t):this.store[t],o=null!=r?r:null;if(!e)return o;var i=this.serializer.deserialize(e,o);return"object"==typeof i?"number"==typeof i.expire&&i.expire<Date.now()?(this.removeItem(t),o):null!==(n=null==i?void 0:i.value)&&void 0!==n?n:o:o},t.prototype.removeItem=function(t){this.storage?this.storage.removeItem(t):delete this.store[t]},t.prototype.clear=function(){this.storage?this.storage.clear():this.store={}},t}();t.AsyncExecutor=f,t.Base64Serializer=ii,t.Executor=s,t.ExecutorError=c,t.FetchAbortPlugin=_e,t.FetchURLPlugin=Re,t.JSONSerializer=oi,t.JSONStorage=ui,t.RequestAdapterAxios=me,t.RequestAdapterFetch=be,t.RequestError=v,t.RequestManager=ri,t.RequestScheduler=ni,t.RequestTransaction=ei,t.RetryPlugin=h,t.SyncExecutor=l}));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qlover/fe-corekit",
|
|
3
3
|
"description": "A corekit for frontwork",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.1",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
@@ -9,24 +9,16 @@
|
|
|
9
9
|
"package.json",
|
|
10
10
|
"README.md"
|
|
11
11
|
],
|
|
12
|
+
"main": "./dist/index.umd.js",
|
|
13
|
+
"module": "./dist/index.js",
|
|
12
14
|
"types": "./dist/index.d.ts",
|
|
13
15
|
"exports": {
|
|
16
|
+
"./package.json": "./package.json",
|
|
14
17
|
".": {
|
|
15
18
|
"types": "./dist/index.d.ts",
|
|
16
|
-
"import": "./dist/index.
|
|
19
|
+
"import": "./dist/index.js",
|
|
17
20
|
"require": "./dist/index.umd.js"
|
|
18
|
-
}
|
|
19
|
-
"./interface": {
|
|
20
|
-
"types": "./dist/interface/index.d.ts",
|
|
21
|
-
"import": "./dist/interface/index.es.js",
|
|
22
|
-
"require": "./dist/interface/index.umd.js"
|
|
23
|
-
},
|
|
24
|
-
"./server": {
|
|
25
|
-
"types": "./dist/server/index.d.ts",
|
|
26
|
-
"import": "./dist/server/index.es.js",
|
|
27
|
-
"require": "./dist/server/index.cjs.js"
|
|
28
|
-
},
|
|
29
|
-
"./package.json": "./package.json"
|
|
21
|
+
}
|
|
30
22
|
},
|
|
31
23
|
"repository": {
|
|
32
24
|
"type": "git",
|
|
@@ -53,7 +45,7 @@
|
|
|
53
45
|
"devDependencies": {
|
|
54
46
|
"@types/lodash": "^4.17.12",
|
|
55
47
|
"axios": "^1.7.9",
|
|
56
|
-
"@qlover/env-loader": "0.
|
|
48
|
+
"@qlover/env-loader": "0.3.0"
|
|
57
49
|
},
|
|
58
50
|
"scripts": {
|
|
59
51
|
"build": "rollup -c",
|
package/dist/index.es.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var t=function(){function t(t){this.config=t,this.plugins=[]}return t.prototype.use=function(t){this.plugins.find((function(r){return r===t||r.pluginName===t.pluginName||r.constructor===t.constructor}))&&t.onlyOne?console.warn("Plugin ".concat(t.pluginName," is already used, skip adding")):this.plugins.push(t)},t}(),r=function(t,n){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},r(t,n)};function n(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}var e=function(){return e=Object.assign||function(t){for(var r,n=1,e=arguments.length;n<e;n++)for(var o in r=arguments[n])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},e.apply(this,arguments)};function o(t,r,n,e){return new(n||(n=Promise))((function(o,i){function u(t){try{s(e.next(t))}catch(t){i(t)}}function a(t){try{s(e.throw(t))}catch(t){i(t)}}function s(t){var r;t.done?o(t.value):(r=t.value,r instanceof n?r:new n((function(t){t(r)}))).then(u,a)}s((e=e.apply(t,r||[])).next())}))}function i(t,r){var n,e,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},u=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return u.next=a(0),u.throw=a(1),u.return=a(2),"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;u&&(u=0,a[0]&&(i=0)),i;)try{if(n=1,e&&(o=2&a[0]?e.return:a[0]?e.throw||((o=e.return)&&o.call(e),0):e.next)&&!(o=o.call(e,a[1])).done)return o;switch(e=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,e=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=r.call(t,i)}catch(t){a=[6,t],e=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function u(t,r,n){if(n||2===arguments.length)for(var e,o=0,i=r.length;o<i;o++)!e&&o in r||(e||(e=Array.prototype.slice.call(r,0,o)),e[o]=r[o]);return t.concat(e||Array.prototype.slice.call(r))}"function"==typeof SuppressedError&&SuppressedError;var a,s=function(t){function r(r,n){var e=this.constructor,o=t.call(this,n instanceof Error?n.message:n||r)||this;return o.id=r,n instanceof Error&&"stack"in n&&(o.stack=n.stack),Object.setPrototypeOf(o,e.prototype),o}return n(r,t),r}(Error),c=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return n(r,t),r}(s);!function(t){t.REQUEST_ERROR="REQUEST_ERROR",t.ENV_FETCH_NOT_SUPPORT="ENV_FETCH_NOT_SUPPORT",t.FETCHER_NONE="FETCHER_NONE",t.RESPONSE_NOT_OK="RESPONSE_NOT_OK",t.ABORT_ERROR="ABORT_ERROR",t.URL_NONE="URL_NONE"}(a||(a={}));var f,p,l,h,v=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return n(r,t),r.prototype.runHooks=function(t,r,n){for(var e=[],a=3;a<arguments.length;a++)e[a-3]=arguments[a];return o(this,void 0,void 0,(function(){var o,a,s,c,f,p,l,h;return i(this,(function(i){switch(i.label){case 0:o=-1,(s=n||{parameters:void 0,hooksRuntimes:{}}).hooksRuntimes.times=0,s.hooksRuntimes.index=void 0,c=0,f=t,i.label=1;case 1:return c<f.length?(p=f[c],o++,"function"!=typeof p[r]||"function"==typeof p.enabled&&!p.enabled(r,n)?[3,3]:(null===(h=s.hooksRuntimes)||void 0===h?void 0:h.breakChain)?[3,4]:(s.hooksRuntimes.pluginName=p.pluginName,s.hooksRuntimes.hookName=r,s.hooksRuntimes.times++,s.hooksRuntimes.index=o,[4,p[r].apply(p,u([n],e,!1))])):[3,4];case 2:if(void 0!==(l=i.sent())&&(a=l,s.hooksRuntimes.returnValue=l,s.hooksRuntimes.returnBreakChain))return[2,a];i.label=3;case 3:return c++,[3,1];case 4:return[2,a]}}))}))},r.prototype.execNoError=function(t,r){return o(this,void 0,void 0,(function(){var n;return i(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.exec(t,r)];case 1:return[2,e.sent()];case 2:return(n=e.sent())instanceof s?[2,n]:[2,new s("UNKNOWN_ASYNC_ERROR",n)];case 3:return[2]}}))}))},r.prototype.exec=function(t,r){var n=r||t,e=r?t:void 0;if("function"!=typeof n)throw new Error("Task must be a async function!");return this.run(e,n)},r.prototype.run=function(t,r){return o(this,void 0,void 0,(function(){var n,e,u,a=this;return i(this,(function(c){switch(c.label){case 0:n={parameters:t,returnValue:void 0,error:void 0,hooksRuntimes:{pluginName:"",hookName:"",returnValue:void 0,returnBreakChain:!1,times:0}},e=function(t){return o(a,void 0,void 0,(function(){var n;return i(this,(function(e){switch(e.label){case 0:return[4,this.runHooks(this.plugins,"onExec",t,r)];case 1:return e.sent(),0!==t.hooksRuntimes.times?[3,3]:(n=t,[4,r(t)]);case 2:return n.returnValue=e.sent(),[2];case 3:return t.returnValue=t.hooksRuntimes.returnValue,[2]}}))}))},c.label=1;case 1:return c.trys.push([1,5,7,8]),[4,this.runHooks(this.plugins,"onBefore",n)];case 2:return c.sent(),[4,e(n)];case 3:return c.sent(),[4,this.runHooks(this.plugins,"onSuccess",n)];case 4:return c.sent(),[2,n.returnValue];case 5:return u=c.sent(),n.error=u,[4,this.runHooks(this.plugins,"onError",n)];case 6:if(c.sent(),n.hooksRuntimes.returnValue&&(n.error=n.hooksRuntimes.returnValue),n.error instanceof s)throw n.error;throw new s("UNKNOWN_ASYNC_ERROR",n.error);case 7:return n.hooksRuntimes={pluginName:"",hookName:"",returnValue:void 0,returnBreakChain:!1,times:0},[7];case 8:return[2]}}))}))},r}(t),y=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return n(r,t),r.prototype.runHooks=function(t,r,n){for(var e,o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var a,s=-1,c=n||{parameters:void 0,hooksRuntimes:{}};c.hooksRuntimes.times=0,c.hooksRuntimes.index=void 0;for(var f=0,p=t;f<p.length;f++){var l=p[f];if(s++,"function"==typeof l[r]&&("function"!=typeof l.enabled||l.enabled(r,c))){if(null===(e=c.hooksRuntimes)||void 0===e?void 0:e.breakChain)break;c.hooksRuntimes.pluginName=l.pluginName,c.hooksRuntimes.hookName=r,c.hooksRuntimes.times++,c.hooksRuntimes.index=s;var h=l[r].apply(l,u([n],o,!1));if(void 0!==h&&(a=h,c.hooksRuntimes.returnValue=h,c.hooksRuntimes.returnBreakChain))return a}}return a},r.prototype.execNoError=function(t,r){try{return this.exec(t,r)}catch(t){return t instanceof s?t:new s("UNKNOWN_SYNC_ERROR",t)}},r.prototype.exec=function(t,r){var n=r||t,e=r?t:void 0;if("function"!=typeof n)throw new Error("Task must be a function!");return this.run(e,n)},r.prototype.run=function(t,r){var n,e=this,o={parameters:t,returnValue:void 0,error:void 0,hooksRuntimes:{pluginName:"",hookName:"",returnValue:void 0,returnBreakChain:!1,times:0}};try{return this.runHooks(this.plugins,"onBefore",o),n=o,e.runHooks(e.plugins,"onExec",n,r),n.returnValue=n.hooksRuntimes.times?n.hooksRuntimes.returnValue:r(n),this.runHooks(this.plugins,"onSuccess",o),o.returnValue}catch(t){if(o.error=t,this.runHooks(this.plugins,"onError",o),o.hooksRuntimes.returnValue&&(o.error=o.hooksRuntimes.returnValue),o.error instanceof s)throw o.error;throw new s("UNKNOWN_SYNC_ERROR",o.error)}finally{o.hooksRuntimes={pluginName:"",hookName:"",returnValue:void 0,returnBreakChain:!1,times:0}}},r}(t),d=function(){return!0},g=function(){function t(t){var r;void 0===t&&(t={}),this.pluginName="RetryPlugin",this.onlyOne=!0,this.options=e(e({retryDelay:1e3,useExponentialBackoff:!1,shouldRetry:d},t),{maxRetries:Math.min(Math.max(1,null!==(r=t.maxRetries)&&void 0!==r?r:3),16)})}return t.prototype.delay=function(t){return o(this,void 0,void 0,(function(){var r;return i(this,(function(n){return r=this.options.useExponentialBackoff?this.options.retryDelay*Math.pow(2,t):this.options.retryDelay,[2,new Promise((function(t){return setTimeout(t,r)}))]}))}))},t.prototype.onExec=function(t,r){return o(this,void 0,void 0,(function(){return i(this,(function(n){return this.options.maxRetries<1?[2,r(t)]:[2,this.retry(r,t,this.options,this.options.maxRetries)]}))}))},t.prototype.shouldRetry=function(t){var r=t.error;return t.retryCount>0&&this.options.shouldRetry(r)},t.prototype.retry=function(t,r,n,e){return o(this,void 0,void 0,(function(){var o;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,4]),[4,t(r)];case 1:return[2,i.sent()];case 2:if(o=i.sent(),!this.shouldRetry({error:o,retryCount:e}))throw new s("RETRY_ERROR","All ".concat(n.maxRetries," attempts failed: ").concat(o.message));return[4,this.delay(n.maxRetries-e)];case 3:return i.sent(),e--,[2,this.retry(t,r,n,e)];case 4:return[2]}}))}))},t}(),b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function m(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var _,O,R=m(h?l:(h=1,l=p?f:(p=1,f=function(t){return t&&t.length?t[0]:void 0})));var E,w,j,k,N,x,S,A,T,P,C,U,q,z,B,I,F,V,D,H,L=m(O?_:(O=1,_=function(t){var r=null==t?0:t.length;return r?t[r-1]:void 0}));function G(){if(w)return E;w=1;var t="object"==typeof b&&b&&b.Object===Object&&b;return E=t}function W(){if(k)return j;k=1;var t=G(),r="object"==typeof self&&self&&self.Object===Object&&self,n=t||r||Function("return this")();return j=n}function $(){if(x)return N;x=1;var t=W().Symbol;return N=t}function K(){if(U)return C;U=1;var t=$(),r=function(){if(A)return S;A=1;var t=$(),r=Object.prototype,n=r.hasOwnProperty,e=r.toString,o=t?t.toStringTag:void 0;return S=function(t){var r=n.call(t,o),i=t[o];try{t[o]=void 0;var u=!0}catch(t){}var a=e.call(t);return u&&(r?t[o]=i:delete t[o]),a}}(),n=function(){if(P)return T;P=1;var t=Object.prototype.toString;return T=function(r){return t.call(r)}}(),e=t?t.toStringTag:void 0;return C=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":e&&e in Object(t)?r(t):n(t)}}function M(){if(I)return B;I=1;var t=(z?q:(z=1,q=function(t,r){return function(n){return t(r(n))}}))(Object.getPrototypeOf,Object);return B=t}function J(){if(V)return F;return V=1,F=function(t){return null!=t&&"object"==typeof t}}function Q(){if(H)return D;H=1;var t=K(),r=M(),n=J(),e=Function.prototype,o=Object.prototype,i=e.toString,u=o.hasOwnProperty,a=i.call(Object);return D=function(e){if(!n(e)||"[object Object]"!=t(e))return!1;var o=r(e);if(null===o)return!0;var s=u.call(o,"constructor")&&o.constructor;return"function"==typeof s&&s instanceof s&&i.call(s)==a}}var Y,Z,X,tt,rt=m(Q());function nt(){if(Z)return Y;Z=1;var t=Array.isArray;return Y=t}var et,ot,it=function(){if(tt)return X;tt=1;var t=K(),r=nt(),n=J();return X=function(e){return"string"==typeof e||!r(e)&&n(e)&&"[object String]"==t(e)}}(),ut=m(it),at=m(nt());function st(){if(ot)return et;return ot=1,et=function(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}}var ct,ft=m(st()),pt={LOG:"LOG",INFO:"INFO",ERROR:"ERROR",WARN:"WARN",DEBUG:"DEBUG"},lt=function(){function t(t){var r=void 0===t?{}:t,n=r.isCI,e=void 0!==n&&n,o=r.dryRun,i=void 0!==o&&o,u=r.debug,a=void 0!==u&&u,s=r.silent,c=void 0!==s&&s;this.isCI=e,this.isDryRun=i,this.isDebug=a,this.isSilent=c}return t.prototype.print=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];this.isSilent||console.log.apply(console,r)},t.prototype.prefix=function(t,r){return t},t.prototype.log=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.print.apply(this,u([pt.LOG],t,!1))},t.prototype.info=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.print.apply(this,u([pt.INFO,this.prefix(pt.INFO)],t,!1))},t.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.print.apply(this,u([pt.WARN,this.prefix(pt.WARN)],t,!1))},t.prototype.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.print.apply(this,u([pt.ERROR,this.prefix(pt.ERROR)],t,!1))},t.prototype.debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDebug){var n=R(t),e=ft(n)?JSON.stringify(n):String(n);this.print.apply(this,u([pt.DEBUG,this.prefix(pt.DEBUG),e],t.slice(1),!1))}},t.prototype.verbose=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.isDebug&&this.print.apply(this,u([pt.DEBUG],t,!1))},t.prototype.exec=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=rt(L(t))?L(t):void 0,e=n||{},o=e.isDryRun,i=e.isExternal;if(o||this.isDryRun){var u=[null==i?"$":"!",t.slice(0,null==n?void 0:-1).map((function(t){return ut(t)?t:at(t)?t.join(" "):String(t)})).join(" ")].join(" ").trim();this.log(u)}},t.prototype.obtrusive=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.isCI||this.log(),this.log.apply(this,t),this.isCI||this.log()},t}(),ht={exports:{}};var vt,yt,dt,gt,bt,mt,_t,Ot,Rt,Et,wt,jt,kt,Nt,xt,St,At,Tt,Pt,Ct,Ut,qt,zt,Bt,It,Ft,Vt,Dt,Ht,Lt,Gt,Wt,$t,Kt,Mt,Jt,Qt,Yt,Zt,Xt,tr,rr,nr,er,or,ir,ur,ar,sr,cr,fr,pr,lr,hr,vr,yr,dr,gr,br,mr,_r,Or,Rr,Er,wr,jr,kr,Nr,xr,Sr,Ar,Tr,Pr,Cr,Ur,qr,zr,Br,Ir,Fr,Vr,Dr,Hr,Lr,Gr,Wr,$r,Kr,Mr,Jr,Qr,Yr,Zr,Xr,tn,rn,nn,en,on,un,an,sn,cn,fn,pn,ln,hn,vn,yn,dn,gn,bn,mn,_n,On,Rn,En,wn,jn,kn,Nn,xn,Sn,An,Tn,Pn,Cn,Un,qn,zn,Bn,In,Fn,Vn,Dn,Hn,Ln=(ct||(ct=1,function(t,r){function n(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.apply(void 0,t)}function e(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return s(!0===t[0],!1,t)}function o(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return s(!0===t[0],!0,t)}function i(t){if(Array.isArray(t)){for(var r=[],n=0;n<t.length;++n)r.push(i(t[n]));return r}if(u(t)){for(var n in r={},t)r[n]=i(t[n]);return r}return t}function u(t){return t&&"object"==typeof t&&!Array.isArray(t)}function a(t,r){if(!u(t))return r;for(var n in r)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(t[n]=u(t[n])&&u(r[n])?a(t[n],r[n]):r[n]);return t}function s(t,r,n){var e;!t&&u(e=n.shift())||(e={});for(var o=0;o<n.length;++o){var s=n[o];if(u(s))for(var c in s)if("__proto__"!==c&&"constructor"!==c&&"prototype"!==c){var f=t?i(s[c]):s[c];e[c]=r?a(e[c],f):f}}return e}Object.defineProperty(r,"__esModule",{value:!0}),r.isPlainObject=r.clone=r.recursive=r.merge=r.main=void 0,t.exports=r=n,r.default=n,r.main=n,n.clone=i,n.isPlainObject=u,n.recursive=o,r.merge=e,r.recursive=o,r.clone=i,r.isPlainObject=u}(ht,ht.exports)),ht.exports);function Gn(){if(yt)return vt;yt=1;var t=K(),r=J();return vt=function(n){return"symbol"==typeof n||r(n)&&"[object Symbol]"==t(n)}}function Wn(){if(mt)return bt;mt=1;var t=K(),r=st();return bt=function(n){if(!r(n))return!1;var e=t(n);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}}function $n(){if(Et)return Rt;Et=1;var t,r=function(){if(Ot)return _t;Ot=1;var t=W()["__core-js_shared__"];return _t=t}(),n=(t=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"";return Rt=function(t){return!!n&&n in t}}function Kn(){if(Nt)return kt;Nt=1;var t=Wn(),r=$n(),n=st(),e=function(){if(jt)return wt;jt=1;var t=Function.prototype.toString;return wt=function(r){if(null!=r){try{return t.call(r)}catch(t){}try{return r+""}catch(t){}}return""}}(),o=/^\[object .+?Constructor\]$/,i=Function.prototype,u=Object.prototype,a=i.toString,s=u.hasOwnProperty,c=RegExp("^"+a.call(s).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return kt=function(i){return!(!n(i)||r(i))&&(t(i)?c:o).test(e(i))}}function Mn(){if(Tt)return At;Tt=1;var t=Kn(),r=St?xt:(St=1,xt=function(t,r){return null==t?void 0:t[r]});return At=function(n,e){var o=r(n,e);return t(o)?o:void 0}}function Jn(){if(Ct)return Pt;Ct=1;var t=Mn()(Object,"create");return Pt=t}function Qn(){if(Wt)return Gt;Wt=1;var t=function(){if(qt)return Ut;qt=1;var t=Jn();return Ut=function(){this.__data__=t?t(null):{},this.size=0}}(),r=Bt?zt:(Bt=1,zt=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}),n=function(){if(Ft)return It;Ft=1;var t=Jn(),r=Object.prototype.hasOwnProperty;return It=function(n){var e=this.__data__;if(t){var o=e[n];return"__lodash_hash_undefined__"===o?void 0:o}return r.call(e,n)?e[n]:void 0}}(),e=function(){if(Dt)return Vt;Dt=1;var t=Jn(),r=Object.prototype.hasOwnProperty;return Vt=function(n){var e=this.__data__;return t?void 0!==e[n]:r.call(e,n)}}(),o=function(){if(Lt)return Ht;Lt=1;var t=Jn();return Ht=function(r,n){var e=this.__data__;return this.size+=this.has(r)?0:1,e[r]=t&&void 0===n?"__lodash_hash_undefined__":n,this}}();function i(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}return i.prototype.clear=t,i.prototype.delete=r,i.prototype.get=n,i.prototype.has=e,i.prototype.set=o,Gt=i}function Yn(){if(Jt)return Mt;return Jt=1,Mt=function(t,r){return t===r||t!=t&&r!=r}}function Zn(){if(Yt)return Qt;Yt=1;var t=Yn();return Qt=function(r,n){for(var e=r.length;e--;)if(t(r[e][0],n))return e;return-1}}function Xn(){if(ar)return ur;ar=1;var t=Kt?$t:(Kt=1,$t=function(){this.__data__=[],this.size=0}),r=function(){if(Xt)return Zt;Xt=1;var t=Zn(),r=Array.prototype.splice;return Zt=function(n){var e=this.__data__,o=t(e,n);return!(o<0||(o==e.length-1?e.pop():r.call(e,o,1),--this.size,0))}}(),n=function(){if(rr)return tr;rr=1;var t=Zn();return tr=function(r){var n=this.__data__,e=t(n,r);return e<0?void 0:n[e][1]}}(),e=function(){if(er)return nr;er=1;var t=Zn();return nr=function(r){return t(this.__data__,r)>-1}}(),o=function(){if(ir)return or;ir=1;var t=Zn();return or=function(r,n){var e=this.__data__,o=t(e,r);return o<0?(++this.size,e.push([r,n])):e[o][1]=n,this}}();function i(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}return i.prototype.clear=t,i.prototype.delete=r,i.prototype.get=n,i.prototype.has=e,i.prototype.set=o,ur=i}function te(){if(cr)return sr;cr=1;var t=Mn()(W(),"Map");return sr=t}function re(){if(yr)return vr;yr=1;var t=hr?lr:(hr=1,lr=function(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t});return vr=function(r,n){var e=r.__data__;return t(n)?e["string"==typeof n?"string":"hash"]:e.map}}function ne(){if(jr)return wr;jr=1;var t=function(){if(pr)return fr;pr=1;var t=Qn(),r=Xn(),n=te();return fr=function(){this.size=0,this.__data__={hash:new t,map:new(n||r),string:new t}}}(),r=function(){if(gr)return dr;gr=1;var t=re();return dr=function(r){var n=t(this,r).delete(r);return this.size-=n?1:0,n}}(),n=function(){if(mr)return br;mr=1;var t=re();return br=function(r){return t(this,r).get(r)}}(),e=function(){if(Or)return _r;Or=1;var t=re();return _r=function(r){return t(this,r).has(r)}}(),o=function(){if(Er)return Rr;Er=1;var t=re();return Rr=function(r,n){var e=t(this,r),o=e.size;return e.set(r,n),this.size+=e.size==o?0:1,this}}();function i(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}return i.prototype.clear=t,i.prototype.delete=r,i.prototype.get=n,i.prototype.has=e,i.prototype.set=o,wr=i}function ee(){if(Sr)return xr;Sr=1;var t=function(){if(Nr)return kr;Nr=1;var t=ne();function r(n,e){if("function"!=typeof n||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var o=function(){var t=arguments,r=e?e.apply(this,t):t[0],i=o.cache;if(i.has(r))return i.get(r);var u=n.apply(this,t);return o.cache=i.set(r,u)||i,u};return o.cache=new(r.Cache||t),o}return r.Cache=t,kr=r}();return xr=function(r){var n=t(r,(function(t){return 500===e.size&&e.clear(),t})),e=n.cache;return n}}function oe(){if(qr)return Ur;qr=1;var t=$(),r=Cr?Pr:(Cr=1,Pr=function(t,r){for(var n=-1,e=null==t?0:t.length,o=Array(e);++n<e;)o[n]=r(t[n],n,t);return o}),n=nt(),e=Gn(),o=t?t.prototype:void 0,i=o?o.toString:void 0;return Ur=function t(o){if("string"==typeof o)return o;if(n(o))return r(o,t)+"";if(e(o))return i?i.call(o):"";var u=o+"";return"0"==u&&1/o==-1/0?"-0":u},Ur}function ie(){if(Fr)return Ir;Fr=1;var t=nt(),r=function(){if(gt)return dt;gt=1;var t=nt(),r=Gn(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,e=/^\w*$/;return dt=function(o,i){if(t(o))return!1;var u=typeof o;return!("number"!=u&&"symbol"!=u&&"boolean"!=u&&null!=o&&!r(o))||e.test(o)||!n.test(o)||null!=i&&o in Object(i)}}(),n=function(){if(Tr)return Ar;Tr=1;var t=ee(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,e=t((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(r,(function(t,r,o,i){e.push(o?i.replace(n,"$1"):r||t)})),e}));return Ar=e}(),e=function(){if(Br)return zr;Br=1;var t=oe();return zr=function(r){return null==r?"":t(r)}}();return Ir=function(o,i){return t(o)?o:r(o,i)?[o]:n(e(o))}}function ue(){if(Dr)return Vr;Dr=1;var t=Gn();return Vr=function(r){if("string"==typeof r||t(r))return r;var n=r+"";return"0"==n&&1/r==-1/0?"-0":n}}function ae(){if(Wr)return Gr;Wr=1;var t=Mn(),r=function(){try{var r=t(Object,"defineProperty");return r({},"",{}),r}catch(t){}}();return Gr=r}function se(){if(Kr)return $r;Kr=1;var t=ae();return $r=function(r,n,e){"__proto__"==n&&t?t(r,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):r[n]=e}}function ce(){if(Jr)return Mr;Jr=1;var t=se(),r=Yn(),n=Object.prototype.hasOwnProperty;return Mr=function(e,o,i){var u=e[o];n.call(e,o)&&r(u,i)&&(void 0!==i||o in e)||t(e,o,i)}}function fe(){if(Yr)return Qr;Yr=1;var t=/^(?:0|[1-9]\d*)$/;return Qr=function(r,n){var e=typeof r;return!!(n=null==n?9007199254740991:n)&&("number"==e||"symbol"!=e&&t.test(r))&&r>-1&&r%1==0&&r<n}}function pe(){if(rn)return tn;rn=1;var t=function(){if(Lr)return Hr;Lr=1;var t=ie(),r=ue();return Hr=function(n,e){for(var o=0,i=(e=t(e,n)).length;null!=n&&o<i;)n=n[r(e[o++])];return o&&o==i?n:void 0}}(),r=function(){if(Xr)return Zr;Xr=1;var t=ce(),r=ie(),n=fe(),e=st(),o=ue();return Zr=function(i,u,a,s){if(!e(i))return i;for(var c=-1,f=(u=r(u,i)).length,p=f-1,l=i;null!=l&&++c<f;){var h=o(u[c]),v=a;if("__proto__"===h||"constructor"===h||"prototype"===h)return i;if(c!=p){var y=l[h];void 0===(v=s?s(y,h,l):void 0)&&(v=e(y)?y:n(u[c+1])?[]:{})}t(l,h,v),l=l[h]}return i}}(),n=ie();return tn=function(e,o,i){for(var u=-1,a=o.length,s={};++u<a;){var c=o[u],f=t(e,c);i(f,c)&&r(s,n(c,e),f)}return s}}function le(){if(sn)return an;sn=1;var t=function(){if(un)return on;un=1;var t=K(),r=J();return on=function(n){return r(n)&&"[object Arguments]"==t(n)}}(),r=J(),n=Object.prototype,e=n.hasOwnProperty,o=n.propertyIsEnumerable,i=t(function(){return arguments}())?t:function(t){return r(t)&&e.call(t,"callee")&&!o.call(t,"callee")};return an=i}function he(){if(fn)return cn;fn=1;return cn=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}}function ve(){if(vn)return hn;vn=1;var t=en?nn:(en=1,nn=function(t,r){return null!=t&&r in Object(t)}),r=function(){if(ln)return pn;ln=1;var t=ie(),r=le(),n=nt(),e=fe(),o=he(),i=ue();return pn=function(u,a,s){for(var c=-1,f=(a=t(a,u)).length,p=!1;++c<f;){var l=i(a[c]);if(!(p=null!=u&&s(u,l)))break;u=u[l]}return p||++c!=f?p:!!(f=null==u?0:u.length)&&o(f)&&e(l,f)&&(n(u)||r(u))}}();return hn=function(n,e){return null!=n&&r(n,e,t)}}function ye(){if(Rn)return On;Rn=1;var t=bn?gn:(bn=1,gn=function(t,r){for(var n=-1,e=r.length,o=t.length;++n<e;)t[o+n]=r[n];return t}),r=function(){if(_n)return mn;_n=1;var t=$(),r=le(),n=nt(),e=t?t.isConcatSpreadable:void 0;return mn=function(t){return n(t)||r(t)||!!(e&&t&&t[e])}}();return On=function n(e,o,i,u,a){var s=-1,c=e.length;for(i||(i=r),a||(a=[]);++s<c;){var f=e[s];o>0&&i(f)?o>1?n(f,o-1,i,u,a):t(a,f):u||(a[a.length]=f)}return a},On}function de(){if(xn)return Nn;xn=1;var t=kn?jn:(kn=1,jn=function(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}),r=Math.max;return Nn=function(n,e,o){return e=r(void 0===e?n.length-1:e,0),function(){for(var i=arguments,u=-1,a=r(i.length-e,0),s=Array(a);++u<a;)s[u]=i[e+u];u=-1;for(var c=Array(e+1);++u<e;)c[u]=i[u];return c[e]=o(s),t(n,this,c)}},Nn}function ge(){if(Pn)return Tn;return Pn=1,Tn=function(t){return t}}function be(){if(Un)return Cn;Un=1;var t=An?Sn:(An=1,Sn=function(t){return function(){return t}}),r=ae(),n=ge();return Cn=r?function(n,e){return r(n,"toString",{configurable:!0,enumerable:!1,value:t(e),writable:!0})}:n}function me(){if(In)return Bn;In=1;var t=be(),r=function(){if(zn)return qn;zn=1;var t=Date.now;return qn=function(r){var n=0,e=0;return function(){var o=t(),i=16-(o-e);if(e=o,i>0){if(++n>=800)return arguments[0]}else n=0;return r.apply(void 0,arguments)}},qn}(),n=r(t);return Bn=n}function _e(){if(Vn)return Fn;Vn=1;var t=function(){if(wn)return En;wn=1;var t=ye();return En=function(r){return null!=r&&r.length?t(r,1):[]}}(),r=de(),n=me();return Fn=function(e){return n(r(e,void 0,t),e+"")}}var Oe,Re,Ee,we,je,ke,Ne,xe,Se,Ae,Te,Pe,Ce,Ue,qe,ze,Be,Ie,Fe=function(){if(Hn)return Dn;Hn=1;var t=function(){if(dn)return yn;dn=1;var t=pe(),r=ve();return yn=function(n,e){return t(n,e,(function(t,e){return r(n,e)}))}}(),r=_e()((function(r,n){return null==r?{}:t(r,n)}));return Dn=r}(),Ve=m(Fe),De=["cache","credentials","headers","integrity","keepalive","mode","priority","redirect","referrer","referrerPolicy","signal"],He=function(){function t(t){if(void 0===t&&(t={}),!t.fetcher){if("function"!=typeof fetch)throw new s(a.ENV_FETCH_NOT_SUPPORT);t.fetcher=fetch}this.executor=new v,this.config=t}return t.prototype.getConfig=function(){return this.config},t.prototype.usePlugin=function(t){this.executor.use(t)},t.prototype.request=function(t){return o(this,void 0,void 0,(function(){var r,n,e,u,c,f=this;return i(this,(function(p){if(r=this.getConfig(),n=Ln.merge({},r,t),e=n.fetcher,u=function(t,r){var n={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&r.indexOf(e)<0&&(n[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(e=Object.getOwnPropertySymbols(t);o<e.length;o++)r.indexOf(e[o])<0&&Object.prototype.propertyIsEnumerable.call(t,e[o])&&(n[e[o]]=t[e[o]])}return n}(n,["fetcher"]),"function"!=typeof e)throw new s(a.FETCHER_NONE);if(!u.url)throw new s(a.URL_NONE);return c=function(t){return o(f,void 0,void 0,(function(){var r;return i(this,(function(n){switch(n.label){case 0:return[4,e(this.parametersToRequest(t.parameters))];case 1:return r=n.sent(),[2,this.toAdapterResponse(r,r,t.parameters)]}}))}))},[2,this.executor.exec(u,c)]}))}))},t.prototype.parametersToRequest=function(t){var r=t.url,n=void 0===r?"/":r,e=t.method,o=void 0===e?"GET":e,i=t.data,u=Ve(t,De);return new Request(n,Object.assign(u,{body:i,method:o.toUpperCase()}))},t.prototype.toAdapterResponse=function(t,r,n){return{data:t,status:r.status,statusText:r.statusText,headers:this.getResponseHeaders(r),config:n,response:r}},t.prototype.getResponseHeaders=function(t){var r={};return t.headers.forEach((function(t,n){r[n]=t})),r},t}(),Le=function(){function t(t,r){void 0===r&&(r={}),this.config=r,this.axiosInstance=t.create(r)}return t.prototype.getConfig=function(){return this.config},t.prototype.request=function(t){return o(this,void 0,void 0,(function(){return i(this,(function(r){return[2,this.axiosInstance.request(t)]}))}))},t}(),Ge=function(){function t(){this.pluginName="FetchAbortPlugin",this.onlyOne=!0,this.controllers=new Map}return t.prototype.generateRequestKey=function(t){if(t.requestId)return t.requestId;var r=t.params?JSON.stringify(t.params):"",n=t.body?JSON.stringify(t.body):"";return"".concat(t.method||"GET","-").concat(t.url,"-").concat(r,"-").concat(n)},t.prototype.onBefore=function(t){var r=this.generateRequestKey(t.parameters);if(this.controllers.has(r)&&this.abort(t.parameters),!t.parameters.signal){var n=new AbortController;this.controllers.set(r,n),t.parameters.signal=n.signal}},t.prototype.onSuccess=function(t){var r=t.parameters;r&&this.controllers.delete(this.generateRequestKey(r))},t.prototype.onError=function(t){var r=t.error,n=t.parameters;if(this.isSameAbortError(r)&&n){var e=this.generateRequestKey(n),o=this.controllers.get(e);return this.controllers.delete(e),new c(a.ABORT_ERROR,(null==o?void 0:o.signal.reason)||r)}},t.prototype.isSameAbortError=function(t){return t instanceof Error&&"AbortError"===t.name||(t instanceof DOMException&&"AbortError"===t.name||t instanceof Event&&"abort"===t.type)},t.prototype.abort=function(t){var r="string"==typeof t?t:this.generateRequestKey(t),n=this.controllers.get(r);n&&(n.abort(new c(a.ABORT_ERROR,"The operation was aborted")),this.controllers.delete(r),"string"!=typeof t&&"function"==typeof t.onAbort&&t.onAbort.call(t,t))},t.prototype.abortAll=function(){this.controllers.forEach((function(t){return t.abort()})),this.controllers.clear()},t}(),We=function(){function t(){this.pluginName="FetchURLPlugin"}return t.prototype.isFullURL=function(t){return t.startsWith("http://")||t.startsWith("https://")},t.prototype.appendQueryParams=function(t,r){void 0===r&&(r={});var n=t.split("?"),e=n[0],o=n[1];(void 0===o?"":o).split("&").forEach((function(t){var n=t.split("="),e=n[0],o=n[1];e&&o&&(r[e]=o)}));var i=Object.entries(r).map((function(t){var r=t[0],n=t[1];return"".concat(r,"=").concat(n)})).join("&");return[e,i].join("?")},t.prototype.connectBaseURL=function(t,r){return"".concat(r,"/").concat(t)},t.prototype.buildUrl=function(t){var r=t.url,n=void 0===r?"":r,e=t.baseURL,o=void 0===e?"":e,i=t.params;if(!this.isFullURL(n)){var u=n.startsWith("/")?n.slice(1):n,a=o.endsWith("/")?o.slice(0,-1):o;n=this.connectBaseURL(u,a)}return i&&Object.keys(i).length>0&&(n=this.appendQueryParams(n,i)),n},t.prototype.onBefore=function(t){var r=t.parameters;r.url=this.buildUrl(r)},t.prototype.onSuccess=function(t){var r=t.returnValue;if(!r.response.ok){var n=new c(a.RESPONSE_NOT_OK,"Request failed with status: ".concat(r.status," ").concat(r.statusText));throw n.response=r.response,n}},t.prototype.onError=function(t){var r=t.error;return r instanceof c?r:new c(a.REQUEST_ERROR,r)},t}();function $e(){if(Pe)return Te;Pe=1;var t=Xn(),r=function(){if(Re)return Oe;Re=1;var t=Xn();return Oe=function(){this.__data__=new t,this.size=0}}(),n=we?Ee:(we=1,Ee=function(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}),e=ke?je:(ke=1,je=function(t){return this.__data__.get(t)}),o=xe?Ne:(xe=1,Ne=function(t){return this.__data__.has(t)}),i=function(){if(Ae)return Se;Ae=1;var t=Xn(),r=te(),n=ne();return Se=function(e,o){var i=this.__data__;if(i instanceof t){var u=i.__data__;if(!r||u.length<199)return u.push([e,o]),this.size=++i.size,this;i=this.__data__=new n(u)}return i.set(e,o),this.size=i.size,this}}();function u(r){var n=this.__data__=new t(r);this.size=n.size}return u.prototype.clear=r,u.prototype.delete=n,u.prototype.get=e,u.prototype.has=o,u.prototype.set=i,Te=u}function Ke(){if(Ue)return Ce;Ue=1;var t=se(),r=Yn();return Ce=function(n,e,o){(void 0!==o&&!r(n[e],o)||void 0===o&&!(e in n))&&t(n,e,o)}}function Me(){if(Ie)return Be;Ie=1;var t=(ze?qe:(ze=1,qe=function(t){return function(r,n,e){for(var o=-1,i=Object(r),u=e(r),a=u.length;a--;){var s=u[t?a:++o];if(!1===n(i[s],s,i))break}return r}}))();return Be=t}var Je,Qe,Ye,Ze,Xe,to,ro,no,eo,oo,io,uo,ao,so,co,fo,po,lo,ho,vo={exports:{}};function yo(){if(Xe)return Ze;Xe=1;var t=function(){if(Ye)return Qe;Ye=1;var t=W().Uint8Array;return Qe=t}();return Ze=function(r){var n=new r.constructor(r.byteLength);return new t(n).set(new t(r)),n}}function go(){if(ao)return uo;ao=1;var t=Object.prototype;return uo=function(r){var n=r&&r.constructor;return r===("function"==typeof n&&n.prototype||t)}}function bo(){if(co)return so;co=1;var t=function(){if(io)return oo;io=1;var t=st(),r=Object.create,n=function(){function n(){}return function(e){if(!t(e))return{};if(r)return r(e);n.prototype=e;var o=new n;return n.prototype=void 0,o}}();return oo=n}(),r=M(),n=go();return so=function(e){return"function"!=typeof e.constructor||n(e)?{}:t(r(e))}}function mo(){if(po)return fo;po=1;var t=Wn(),r=he();return fo=function(n){return null!=n&&r(n.length)&&!t(n)}}var _o,Oo,Ro,Eo,wo,jo,ko,No={exports:{}};function xo(){return Ro||(Ro=1,function(t,r){var n=W(),e=Oo?_o:(Oo=1,_o=function(){return!1}),o=r&&!r.nodeType&&r,i=o&&t&&!t.nodeType&&t,u=i&&i.exports===o?n.Buffer:void 0,a=(u?u.isBuffer:void 0)||e;t.exports=a}(No,No.exports)),No.exports}var So,Ao,To,Po,Co,Uo,qo,zo,Bo,Io,Fo,Vo,Do,Ho,Lo,Go,Wo,$o,Ko,Mo,Jo,Qo,Yo,Zo,Xo,ti,ri,ni,ei,oi,ii,ui={exports:{}};function ai(){if(To)return Ao;To=1;var t=function(){if(wo)return Eo;wo=1;var t=K(),r=he(),n=J(),e={};return e["[object Float32Array]"]=e["[object Float64Array]"]=e["[object Int8Array]"]=e["[object Int16Array]"]=e["[object Int32Array]"]=e["[object Uint8Array]"]=e["[object Uint8ClampedArray]"]=e["[object Uint16Array]"]=e["[object Uint32Array]"]=!0,e["[object Arguments]"]=e["[object Array]"]=e["[object ArrayBuffer]"]=e["[object Boolean]"]=e["[object DataView]"]=e["[object Date]"]=e["[object Error]"]=e["[object Function]"]=e["[object Map]"]=e["[object Number]"]=e["[object Object]"]=e["[object RegExp]"]=e["[object Set]"]=e["[object String]"]=e["[object WeakMap]"]=!1,Eo=function(o){return n(o)&&r(o.length)&&!!e[t(o)]}}(),r=ko?jo:(ko=1,jo=function(t){return function(r){return t(r)}}),n=function(){return So||(So=1,t=ui,r=ui.exports,n=G(),e=r&&!r.nodeType&&r,o=e&&t&&!t.nodeType&&t,i=o&&o.exports===e&&n.process,u=function(){try{return o&&o.require&&o.require("util").types||i&&i.binding&&i.binding("util")}catch(t){}}(),t.exports=u),ui.exports;var t,r,n,e,o,i,u}(),e=n&&n.isTypedArray,o=e?r(e):t;return Ao=o}function si(){if(Co)return Po;return Co=1,Po=function(t,r){if(("constructor"!==r||"function"!=typeof t[r])&&"__proto__"!=r)return t[r]}}function ci(){if(Fo)return Io;Fo=1;var t=Bo?zo:(Bo=1,zo=function(t,r){for(var n=-1,e=Array(t);++n<t;)e[n]=r(n);return e}),r=le(),n=nt(),e=xo(),o=fe(),i=ai(),u=Object.prototype.hasOwnProperty;return Io=function(a,s){var c=n(a),f=!c&&r(a),p=!c&&!f&&e(a),l=!c&&!f&&!p&&i(a),h=c||f||p||l,v=h?t(a.length,String):[],y=v.length;for(var d in a)!s&&!u.call(a,d)||h&&("length"==d||p&&("offset"==d||"parent"==d)||l&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||o(d,y))||v.push(d);return v}}function fi(){if(Lo)return Ho;Lo=1;var t=st(),r=go(),n=Do?Vo:(Do=1,Vo=function(t){var r=[];if(null!=t)for(var n in Object(t))r.push(n);return r}),e=Object.prototype.hasOwnProperty;return Ho=function(o){if(!t(o))return n(o);var i=r(o),u=[];for(var a in o)("constructor"!=a||!i&&e.call(o,a))&&u.push(a);return u}}function pi(){if(Wo)return Go;Wo=1;var t=ci(),r=fi(),n=mo();return Go=function(e){return n(e)?t(e,!0):r(e)}}function li(){if(Ko)return $o;Ko=1;var t=function(){if(qo)return Uo;qo=1;var t=ce(),r=se();return Uo=function(n,e,o,i){var u=!o;o||(o={});for(var a=-1,s=e.length;++a<s;){var c=e[a],f=i?i(o[c],n[c],c,o,n):void 0;void 0===f&&(f=n[c]),u?r(o,c,f):t(o,c,f)}return o}}(),r=pi();return $o=function(n){return t(n,r(n))}}function hi(){if(Jo)return Mo;Jo=1;var t=Ke(),r=(Je||(Je=1,function(t,r){var n=W(),e=r&&!r.nodeType&&r,o=e&&t&&!t.nodeType&&t,i=o&&o.exports===e?n.Buffer:void 0,u=i?i.allocUnsafe:void 0;t.exports=function(t,r){if(r)return t.slice();var n=t.length,e=u?u(n):new t.constructor(n);return t.copy(e),e}}(vo,vo.exports)),vo.exports),n=function(){if(ro)return to;ro=1;var t=yo();return to=function(r,n){var e=n?t(r.buffer):r.buffer;return new r.constructor(e,r.byteOffset,r.length)}}(),e=eo?no:(eo=1,no=function(t,r){var n=-1,e=t.length;for(r||(r=Array(e));++n<e;)r[n]=t[n];return r}),o=bo(),i=le(),u=nt(),a=function(){if(ho)return lo;ho=1;var t=mo(),r=J();return lo=function(n){return r(n)&&t(n)}}(),s=xo(),c=Wn(),f=st(),p=Q(),l=ai(),h=si(),v=li();return Mo=function(y,d,g,b,m,_,O){var R=h(y,g),E=h(d,g),w=O.get(E);if(w)t(y,g,w);else{var j=_?_(R,E,g+"",y,d,O):void 0,k=void 0===j;if(k){var N=u(E),x=!N&&s(E),S=!N&&!x&&l(E);j=E,N||x||S?u(R)?j=R:a(R)?j=e(R):x?(k=!1,j=r(E,!0)):S?(k=!1,j=n(E,!0)):j=[]:p(E)||i(E)?(j=R,i(R)?j=v(R):f(R)&&!c(R)||(j=o(E))):k=!1}k&&(O.set(E,j),m(j,E,b,_,O),O.delete(E)),t(y,g,j)}}}function vi(){if(ei)return ni;ei=1;var t=function(){if(Xo)return Zo;Xo=1;var t=ge(),r=de(),n=me();return Zo=function(e,o){return n(r(e,o,t),e+"")}}(),r=function(){if(ri)return ti;ri=1;var t=Yn(),r=mo(),n=fe(),e=st();return ti=function(o,i,u){if(!e(u))return!1;var a=typeof i;return!!("number"==a?r(u)&&n(i,u.length):"string"==a&&i in u)&&t(u[i],o)}}();return ni=function(n){return t((function(t,e){var o=-1,i=e.length,u=i>1?e[i-1]:void 0,a=i>2?e[2]:void 0;for(u=n.length>3&&"function"==typeof u?(i--,u):void 0,a&&r(e[0],e[1],a)&&(u=i<3?void 0:u,i=1),t=Object(t);++o<i;){var s=e[o];s&&n(t,s,o,u)}return t}))}}var yi,di=function(){if(ii)return oi;ii=1;var t=function(){if(Yo)return Qo;Yo=1;var t=$e(),r=Ke(),n=Me(),e=hi(),o=st(),i=pi(),u=si();return Qo=function a(s,c,f,p,l){s!==c&&n(c,(function(n,i){if(l||(l=new t),o(n))e(s,c,i,f,a,p,l);else{var h=p?p(u(s,i),n,i+"",s,c,l):void 0;void 0===h&&(h=n),r(s,i,h)}}),i)},Qo}(),r=vi()((function(r,n,e){t(r,n,e)}));return oi=r}(),gi=m(di),bi=function(){function t(t,r){void 0===r&&(r=new v),this.adapter=t,this.executor=r}return t.prototype.usePlugin=function(t){var r=this;return Array.isArray(t)?t.forEach((function(t){return r.executor.use(t)})):this.executor.use(t),this},t.prototype.request=function(t){var r=this,n=gi({},this.adapter.getConfig(),t);return this.executor.exec(n,(function(t){return r.adapter.request(t.parameters)}))},t}(),mi=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return n(r,t),r.prototype.request=function(r){return t.prototype.request.call(this,r)},r.prototype.get=function(t,r){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,this.request(e(e({url:t},r),{method:"GET"}))]}))}))},r.prototype.post=function(t,r){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,this.request(e(e({url:t},r),{method:"POST"}))]}))}))},r.prototype.put=function(t,r){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,this.request(e(e({url:t},r),{method:"PUT"}))]}))}))},r.prototype.delete=function(t,r){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,this.request(e(e({url:t},r),{method:"DELETE"}))]}))}))},r.prototype.patch=function(t,r){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,this.request(e(e({url:t},r),{method:"PATCH"}))]}))}))},r.prototype.head=function(t,r){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,this.request(e(e({url:t},r),{method:"HEAD"}))]}))}))},r.prototype.options=function(t,r){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,this.request(e(e({url:t},r),{method:"OPTIONS"}))]}))}))},r.prototype.trace=function(t,r){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,this.request(e(e({url:t},r),{method:"TRACE"}))]}))}))},r.prototype.connect=function(t,r){return o(this,void 0,void 0,(function(){return i(this,(function(n){return[2,this.request(e(e({url:t},r),{method:"CONNECT"}))]}))}))},r}(bi),_i=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return n(r,t),r.prototype.request=function(r){return t.prototype.request.call(this,r)},r.prototype.get=function(t,r){return this.request(e(e({},r),{url:t,method:"GET"}))},r.prototype.post=function(t,r,n){return this.request(e(e({},n),{url:t,method:"POST",data:r}))},r.prototype.put=function(t,r,n){return this.request(e(e({},n),{url:t,method:"PUT",data:r}))},r.prototype.delete=function(t,r){return this.request(e(e({},r),{url:t,method:"DELETE"}))},r.prototype.patch=function(t,r,n){return this.request(e(e({},n),{url:t,method:"PATCH",data:r}))},r}(bi),Oi=function(){function t(t){void 0===t&&(t={}),this.options=t,this[yi]="JSONSerializer"}return t.prototype.createReplacer=function(t){return Array.isArray(t)?t:null===t?function(t,r){return"string"==typeof r?r.replace(/\r\n/g,"\n"):r}:"function"==typeof t?function(r,n){var e="string"==typeof n?n.replace(/\r\n/g,"\n"):n;return t.call(this,r,e)}:function(t,r){return"string"==typeof r?r.replace(/\r\n/g,"\n"):r}},t.prototype.stringify=function(t,r,n){try{var e=this.createReplacer(r);return Array.isArray(e)?JSON.stringify(t,e,n):JSON.stringify(t,e,null!=n?n:this.options.pretty?this.options.indent||2:void 0)}catch(t){if(t instanceof TypeError&&t.message.includes("circular"))throw new TypeError("Cannot stringify data with circular references");throw t}},t.prototype.parse=function(t,r){return JSON.parse(t,r)},t.prototype.serialize=function(t){return this.stringify(t,this.options.replacer||null,this.options.pretty?this.options.indent||2:void 0)},t.prototype.deserialize=function(t,r){try{return this.parse(t)}catch(t){return r}},t.prototype.serializeArray=function(t){return"["+t.map((function(t){return JSON.stringify(t)})).join(",")+"]"},t}();yi=Symbol.toStringTag;var Ri=function(){function t(t){void 0===t&&(t={}),this.options=t}return t.prototype.serialize=function(t){var r=Buffer.from(t,"utf8").toString("base64");return this.options.urlSafe?this.makeUrlSafe(r):r},t.prototype.deserialize=function(t,r){try{return/^[A-Za-z0-9+/]*={0,2}$/.test(t)?(this.options.urlSafe&&(t=this.makeUrlUnsafe(t)),Buffer.from(t,"base64").toString("utf8")):null!=r?r:""}catch(t){return null!=r?r:""}},t.prototype.makeUrlSafe=function(t){return t.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},t.prototype.makeUrlUnsafe=function(t){for(t=t.replace(/-/g,"+").replace(/_/g,"/");t.length%4;)t+="=";return t},t}(),Ei=function(){function t(t,r){void 0===r&&(r=new Oi),this.storage=t,this.serializer=r,this.store={}}return Object.defineProperty(t.prototype,"length",{get:function(){return this.storage?this.storage.length:Object.keys(this.store).length},enumerable:!1,configurable:!0}),t.prototype.setItem=function(t,r,n){var e={key:t,value:r,expire:n};"number"==typeof n&&n>0&&(e.expire=n);var o=this.serializer.serialize(e);this.storage?this.storage.setItem(t,o):this.store[t]=o},t.prototype.getItem=function(t,r){var n,e=this.storage?this.storage.getItem(t):this.store[t],o=null!=r?r:null;if(!e)return o;var i=this.serializer.deserialize(e,o);return"object"==typeof i?"number"==typeof i.expire&&i.expire<Date.now()?(this.removeItem(t),o):null!==(n=null==i?void 0:i.value)&&void 0!==n?n:o:o},t.prototype.removeItem=function(t){this.storage?this.storage.removeItem(t):delete this.store[t]},t.prototype.clear=function(){this.storage?this.storage.clear():this.store={}},t}();export{v as AsyncExecutor,Ri as Base64Serializer,t as Executor,s as ExecutorError,Ge as FetchAbortPlugin,We as FetchURLPlugin,Oi as JSONSerializer,Ei as JSONStorage,pt as LEVELS,lt as Logger,Le as RequestAdapterAxios,He as RequestAdapterFetch,c as RequestError,a as RequestErrorID,bi as RequestManager,mi as RequestScheduler,_i as RequestTransaction,g as RetryPlugin,y as SyncExecutor};
|