@qlover/fe-corekit 2.0.0 → 2.0.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/dist/index.cjs +1 -1
- package/dist/index.d.ts +1280 -289
- package/dist/index.iife.js +1 -1
- package/dist/index.js +870 -266
- package/package.json +2 -2
package/dist/index.iife.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function t(t,r){if(r==null||r>t.length)r=t.length;for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function r(t){if(Array.isArray(t))return t}function e(r){if(Array.isArray(r))return t(r)}function n(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function o(t,r,e,n,o,u,i){try{var a=t[u](i);var s=a.value}catch(t){e(t);return}if(a.done){r(s)}else{Promise.resolve(s).then(n,o)}}function u(t){return function(){var r=this,e=arguments;return new Promise(function(n,u){var i=t.apply(r,e);function a(t){o(i,n,u,a,s,"next",t)}function s(t){o(i,n,u,a,s,"throw",t)}a(undefined)})}}function i(t,r){if(!(t instanceof r)){throw new TypeError("Cannot call a class as a function")}}function a(t,r,e){if(z()){a=Reflect.construct}else{a=function t(t,r,e){var n=[null];n.push.apply(n,r);var o=Function.bind.apply(t,n);var u=new o;if(e)j(u,e.prototype);return u}}return a.apply(null,arguments)}function s(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(t,n.key,n)}}function c(t,r,e){if(r)s(t.prototype,r);if(e)s(t,e);return t}function f(t,r,e){if(r in t){Object.defineProperty(t,r,{value:e,enumerable:true,configurable:true,writable:true})}else{t[r]=e}return t}function l(t,r,e){if(typeof Reflect!=="undefined"&&Reflect.get){l=Reflect.get}else{l=function t(t,r,e){var n=S(t,r);if(!n)return;var o=Object.getOwnPropertyDescriptor(n,r);if(o.get){return o.get.call(e||t)}return o.value}}return l(t,r,e||t)}function v(t){v=Object.setPrototypeOf?Object.getPrototypeOf:function t(t){return t.__proto__||Object.getPrototypeOf(t)};return v(t)}function p(t,r){if(typeof r!=="function"&&r!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:true,configurable:true}});if(r)j(t,r)}function h(t,r){if(r!=null&&typeof Symbol!=="undefined"&&r[Symbol.hasInstance]){return!!r[Symbol.hasInstance](t)}else{return t instanceof r}}function y(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function d(t){if(typeof Symbol!=="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function g(t,r){var e=t==null?null:typeof Symbol!=="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(e==null)return;var n=[];var o=true;var u=false;var i,a;try{for(e=e.call(t);!(o=(i=e.next()).done);o=true){n.push(i.value);if(r&&n.length===r)break}}catch(t){u=true;a=t}finally{try{if(!o&&e["return"]!=null)e["return"]()}finally{if(u)throw a}}return n}function b(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function x(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};var n=Object.keys(e);if(typeof Object.getOwnPropertySymbols==="function"){n=n.concat(Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))}n.forEach(function(r){f(t,r,e[r])})}return t}function k(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);if(r){n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})}e.push.apply(e,n)}return e}function O(t,r){r=r!=null?r:{};if(Object.getOwnPropertyDescriptors){Object.defineProperties(t,Object.getOwnPropertyDescriptors(r))}else{k(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function _(t,r){if(t==null)return{};var e=R(t,r);var n,o;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(o=0;o<u.length;o++){n=u[o];if(r.indexOf(n)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(t,n))continue;e[n]=t[n]}}return e}function R(t,r){if(t==null)return{};var e={};var n=Object.keys(t);var o,u;for(u=0;u<n.length;u++){o=n[u];if(r.indexOf(o)>=0)continue;e[o]=t[o]}return e}function w(t,r){if(r&&(A(r)==="object"||typeof r==="function")){return r}return n(t)}function j(t,r){j=Object.setPrototypeOf||function t(t,r){t.__proto__=r;return t};return j(t,r)}function E(t,e){return r(t)||g(t,e)||P(t,e)||b()}function S(t,r){while(!Object.prototype.hasOwnProperty.call(t,r)){t=v(t);if(t===null)break}return t}function N(t){return e(t)||d(t)||P(t)||m()}function A(t){"@swc/helpers - typeof";return t&&typeof Symbol!=="undefined"&&t.constructor===Symbol?"symbol":typeof t}function P(r,e){if(!r)return;if(typeof r==="string")return t(r,e);var n=Object.prototype.toString.call(r).slice(8,-1);if(n==="Object"&&r.constructor)n=r.constructor.name;if(n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t(r,e)}function T(t){var r=typeof Map==="function"?new Map:undefined;T=function t(t){if(t===null||!y(t))return t;if(typeof t!=="function"){throw new TypeError("Super expression must either be null or a function")}if(typeof r!=="undefined"){if(r.has(t))return r.get(t);r.set(t,e)}function e(){return a(t,arguments,v(this).constructor)}e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});return j(e,t)};return T(t)}function z(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function I(t){var r=z();return function e(){var e=v(t),n;if(r){var o=v(this).constructor;n=Reflect.construct(e,arguments,o)}else{n=e.apply(this,arguments)}return w(this,n)}}function q(t,r){var e,n,o,u,i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]};return u={next:a(0),"throw":a(1),"return":a(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function a(t){return function(r){return s([t,r])}}function s(u){if(e)throw new TypeError("Generator is already executing.");while(i)try{if(e=1,n&&(o=u[0]&2?n["return"]:u[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;if(n=0,o)u=[u[0]&2,o.value];switch(u[0]){case 0:case 1:o=u;break;case 4:i.label++;return{value:u[1],done:false};case 5:i.label++;n=u[1];u=[0];continue;case 7:u=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){i=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(u[0]===6&&i.label<o[1]){i.label=o[1];o=u;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(u);break}if(o[2])i.ops.pop();i.trys.pop();continue}u=r.call(t,i)}catch(t){u=[6,t];n=0}finally{e=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}}var qloverFeCorekit=function(){var t,r,e,o,a,s;var f=function t(t){return"type"in t&&"pipe"in t?t:"serialize"in t&&"deserialize"in t?{pipe:t,type:"serialize"}:"encrypt"in t&&"decrypt"in t?{pipe:t,type:"encrypt"}:"setItem"in t&&"getItem"in t&&"removeItem"in t&&"clear"in t?{pipe:t,type:"storage"}:null};var y=Object.create;var d=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var m=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var R=function(t,r){return function(){return r||t((r={exports:{}}).exports,r),r.exports}},w=function(t,r){for(var e in r)d(t,e,{get:r[e],enumerable:!0})},j=function(t,r,e,n){var o=true,u=false,i=undefined;if(r&&(typeof r==="undefined"?"undefined":A(r))=="object"||typeof r=="function")try{var a=function(){var o=c.value;!k.call(t,o)&&o!==e&&d(t,o,{get:function(){return r[o]},enumerable:!(n=g(r,o))||n.enumerable})};for(var s=b(r)[Symbol.iterator](),c;!(o=(c=s.next()).done);o=true)a()}catch(t){u=true;i=t}finally{try{if(!o&&s.return!=null){s.return()}}finally{if(u){throw i}}}return t};var S=function(t,r,e){return e=t!=null?y(m(t)):{},j(r||!t||!t.__esModule?d(e,"default",{value:t,enumerable:!0}):e,t)},P=function(t){return j(d({},"__esModule",{value:!0}),t)};var z=R(function(t,r){"use strict";var e=function t(){this.__data__=[],this.size=0};r.exports=e});var C=R(function(t,r){"use strict";var e=function t(t,r){return t===r||t!==t&&r!==r};r.exports=e});var U=R(function(t,r){"use strict";var e=function t(t,r){for(var e=t.length;e--;)if(n(t[e][0],r))return e;return-1};var n=C();r.exports=e});var V=R(function(t,r){"use strict";var e=function t(t){var r=this.__data__,e=n(r,t);if(e<0)return!1;var o=r.length-1;return e==o?r.pop():u.call(r,e,1),--this.size,!0};var n=U(),o=Array.prototype,u=o.splice;r.exports=e});var B=R(function(t,r){"use strict";var e=function t(t){var r=this.__data__,e=n(r,t);return e<0?void 0:r[e][1]};var n=U();r.exports=e});var F=R(function(t,r){"use strict";var e=function t(t){return n(this.__data__,t)>-1};var n=U();r.exports=e});var H=R(function(t,r){"use strict";var e=function t(t,r){var e=this.__data__,o=n(e,t);return o<0?(++this.size,e.push([t,r])):e[o][1]=r,this};var n=U();r.exports=e});var D=R(function(t,r){"use strict";var e=function t(t){var r=-1,e=t==null?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}};var n=z(),o=V(),u=B(),i=F(),a=H();e.prototype.clear=n;e.prototype.delete=o;e.prototype.get=u;e.prototype.has=i;e.prototype.set=a;r.exports=e});var M=R(function(t,r){"use strict";var e=function t(){this.__data__=new n,this.size=0};var n=D();r.exports=e});var K=R(function(t,r){"use strict";var e=function t(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e};r.exports=e});var L=R(function(t,r){"use strict";var e=function t(t){return this.__data__.get(t)};r.exports=e});var $=R(function(t,r){"use strict";var e=function t(t){return this.__data__.has(t)};r.exports=e});var W=R(function(t,r){"use strict";var e=(typeof global==="undefined"?"undefined":A(global))=="object"&&global&&global.Object===Object&&global;r.exports=e});var J=R(function(t,r){"use strict";var e=W(),n=(typeof self==="undefined"?"undefined":A(self))=="object"&&self&&self.Object===Object&&self,o=e||n||Function("return this")();r.exports=o});var G=R(function(t,r){"use strict";var e=J(),n=e.Symbol;r.exports=n});var Q=R(function(t,r){"use strict";var e=function t(t){var r=u.call(t,a),e=t[a];try{t[a]=void 0;var n=!0}catch(t){}var o=i.call(t);return n&&(r?t[a]=e:delete t[a]),o};var n=G(),o=Object.prototype,u=o.hasOwnProperty,i=o.toString,a=n?n.toStringTag:void 0;r.exports=e});var Y=R(function(t,r){"use strict";var e=function t(t){return o.call(t)};var n=Object.prototype,o=n.toString;r.exports=e});var Z=R(function(t,r){"use strict";var e=function t(t){return t==null?t===void 0?a:i:s&&s in Object(t)?o(t):u(t)};var n=G(),o=Q(),u=Y(),i="[object Null]",a="[object Undefined]",s=n?n.toStringTag:void 0;r.exports=e});var X=R(function(t,r){"use strict";var e=function t(t){var r=typeof t==="undefined"?"undefined":A(t);return t!=null&&(r=="object"||r=="function")};r.exports=e});var tt=R(function(t,r){"use strict";var e=function t(t){if(!o(t))return!1;var r=n(t);return r==i||r==a||r==u||r==s};var n=Z(),o=X(),u="[object AsyncFunction]",i="[object Function]",a="[object GeneratorFunction]",s="[object Proxy]";r.exports=e});var tr=R(function(t,r){"use strict";var e=J(),n=e["__core-js_shared__"];r.exports=n});var te=R(function(t,r){"use strict";var e=function t(t){return!!o&&o in t};var n=tr(),o=function(){var t=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();r.exports=e});var tn=R(function(t,r){"use strict";var e=function t(t){if(t!=null){try{return o.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var n=Function.prototype,o=n.toString;r.exports=e});var to=R(function(t,r){"use strict";var e=function t(t){if(!u(t)||o(t))return!1;var r=n(t)?p:s;return r.test(i(t))};var n=tt(),o=te(),u=X(),i=tn(),a=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,f=Object.prototype,l=c.toString,v=f.hasOwnProperty,p=RegExp("^"+l.call(v).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");r.exports=e});var tu=R(function(t,r){"use strict";var e=function t(t,r){return t===null||t===void 0?void 0:t[r]};r.exports=e});var ti=R(function(t,r){"use strict";var e=function t(t,r){var e=o(t,r);return n(e)?e:void 0};var n=to(),o=tu();r.exports=e});var ta=R(function(t,r){"use strict";var e=ti(),n=J(),o=e(n,"Map");r.exports=o});var ts=R(function(t,r){"use strict";var e=ti(),n=e(Object,"create");r.exports=n});var tc=R(function(t,r){"use strict";var e=function t(){this.__data__=n?n(null):{},this.size=0};var n=ts();r.exports=e});var tf=R(function(t,r){"use strict";var e=function t(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r};r.exports=e});var tl=R(function(t,r){"use strict";var e=function t(t){var r=this.__data__;if(n){var e=r[t];return e===o?void 0:e}return i.call(r,t)?r[t]:void 0};var n=ts(),o="__lodash_hash_undefined__",u=Object.prototype,i=u.hasOwnProperty;r.exports=e});var tv=R(function(t,r){"use strict";var e=function t(t){var r=this.__data__;return n?r[t]!==void 0:u.call(r,t)};var n=ts(),o=Object.prototype,u=o.hasOwnProperty;r.exports=e});var tp=R(function(t,r){"use strict";var e=function t(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=n&&r===void 0?o:r,this};var n=ts(),o="__lodash_hash_undefined__";r.exports=e});var th=R(function(t,r){"use strict";var e=function t(t){var r=-1,e=t==null?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}};var n=tc(),o=tf(),u=tl(),i=tv(),a=tp();e.prototype.clear=n;e.prototype.delete=o;e.prototype.get=u;e.prototype.has=i;e.prototype.set=a;r.exports=e});var ty=R(function(t,r){"use strict";var e=function t(){this.size=0,this.__data__={hash:new n,map:new(u||o),string:new n}};var n=th(),o=D(),u=ta();r.exports=e});var td=R(function(t,r){"use strict";var e=function t(t){var r=typeof t==="undefined"?"undefined":A(t);return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null};r.exports=e});var tg=R(function(t,r){"use strict";var e=function t(t,r){var e=t.__data__;return n(r)?e[typeof r=="string"?"string":"hash"]:e.map};var n=td();r.exports=e});var tb=R(function(t,r){"use strict";var e=function t(t){var r=n(this,t).delete(t);return this.size-=r?1:0,r};var n=tg();r.exports=e});var tm=R(function(t,r){"use strict";var e=function t(t){return n(this,t).get(t)};var n=tg();r.exports=e});var tx=R(function(t,r){"use strict";var e=function t(t){return n(this,t).has(t)};var n=tg();r.exports=e});var tk=R(function(t,r){"use strict";var e=function t(t,r){var e=n(this,t),o=e.size;return e.set(t,r),this.size+=e.size==o?0:1,this};var n=tg();r.exports=e});var tO=R(function(t,r){"use strict";var e=function t(t){var r=-1,e=t==null?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}};var n=ty(),o=tb(),u=tm(),i=tx(),a=tk();e.prototype.clear=n;e.prototype.delete=o;e.prototype.get=u;e.prototype.has=i;e.prototype.set=a;r.exports=e});var t_=R(function(t,r){"use strict";var e=function t(t,r){var e=this.__data__;if(h(e,n)){var a=e.__data__;if(!o||a.length<i-1)return a.push([t,r]),this.size=++e.size,this;e=this.__data__=new u(a)}return e.set(t,r),this.size=e.size,this};var n=D(),o=ta(),u=tO(),i=200;r.exports=e});var tR=R(function(t,r){"use strict";var e=function t(t){var r=this.__data__=new n(t);this.size=r.size};var n=D(),o=M(),u=K(),i=L(),a=$(),s=t_();e.prototype.clear=o;e.prototype.delete=u;e.prototype.get=i;e.prototype.has=a;e.prototype.set=s;r.exports=e});var tw=R(function(t,r){"use strict";var e=ti(),n=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();r.exports=n});var tj=R(function(t,r){"use strict";var e=function t(t,r,e){r=="__proto__"&&n?n(t,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[r]=e};var n=tw();r.exports=e});var tE=R(function(t,r){"use strict";var e=function t(t,r,e){(e!==void 0&&!o(t[r],e)||e===void 0&&!(r in t))&&n(t,r,e)};var n=tj(),o=C();r.exports=e});var tS=R(function(t,r){"use strict";var e=function t(t){return function(r,e,n){for(var o=-1,u=Object(r),i=n(r),a=i.length;a--;){var s=i[t?a:++o];if(e(u[s],s,u)===!1)break}return r}};r.exports=e});var tN=R(function(t,r){"use strict";var e=tS(),n=e();r.exports=n});var tA=R(function(t,r){"use strict";var e=function t(t,r){if(r)return t.slice();var e=t.length,n=s?s(e):new t.constructor(e);return t.copy(n),n};var n=J(),o=(typeof t==="undefined"?"undefined":A(t))=="object"&&t&&!t.nodeType&&t,u=o&&(typeof r==="undefined"?"undefined":A(r))=="object"&&r&&!r.nodeType&&r,i=u&&u.exports===o,a=i?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;r.exports=e});var tP=R(function(t,r){"use strict";var e=J(),n=e.Uint8Array;r.exports=n});var tT=R(function(t,r){"use strict";var e=function t(t){var r=new t.constructor(t.byteLength);return new n(r).set(new n(t)),r};var n=tP();r.exports=e});var tz=R(function(t,r){"use strict";var e=function t(t,r){var e=r?n(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)};var n=tT();r.exports=e});var tI=R(function(t,r){"use strict";var e=function t(t,r){var e=-1,n=t.length;for(r||(r=Array(n));++e<n;)r[e]=t[e];return r};r.exports=e});var tq=R(function(t,r){"use strict";var e=X(),n=Object.create,o=function(){function t(){}return function(r){if(!e(r))return{};if(n)return n(r);t.prototype=r;var o=new t;return t.prototype=void 0,o}}();r.exports=o});var tC=R(function(t,r){"use strict";var e=function t(t,r){return function(e){return t(r(e))}};r.exports=e});var tU=R(function(t,r){"use strict";var e=tC(),n=e(Object.getPrototypeOf,Object);r.exports=n});var tV=R(function(t,r){"use strict";var e=function t(t){var r=t&&t.constructor,e=typeof r=="function"&&r.prototype||n;return t===e};var n=Object.prototype;r.exports=e});var tB=R(function(t,r){"use strict";var e=function t(t){return typeof t.constructor=="function"&&!u(t)?n(o(t)):{}};var n=tq(),o=tU(),u=tV();r.exports=e});var tF=R(function(t,r){"use strict";var e=function t(t){return t!=null&&(typeof t==="undefined"?"undefined":A(t))=="object"};r.exports=e});var tH=R(function(t,r){"use strict";var e=function t(t){return o(t)&&n(t)==u};var n=Z(),o=tF(),u="[object Arguments]";r.exports=e});var tD=R(function(t,r){"use strict";var e=tH(),n=tF(),o=Object.prototype,u=o.hasOwnProperty,i=o.propertyIsEnumerable,a=e(function(){return arguments}())?e:function t(t){return n(t)&&u.call(t,"callee")&&!i.call(t,"callee")};r.exports=a});var tM=R(function(t,r){"use strict";var e=Array.isArray;r.exports=e});var tK=R(function(t,r){"use strict";var e=function t(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=n};var n=9007199254740991;r.exports=e});var tL=R(function(t,r){"use strict";var e=function t(t){return t!=null&&o(t.length)&&!n(t)};var n=tt(),o=tK();r.exports=e});var t$=R(function(t,r){"use strict";var e=function t(t){return o(t)&&n(t)};var n=tL(),o=tF();r.exports=e});var tW=R(function(t,r){"use strict";var e=function t(){return!1};r.exports=e});var tJ=R(function(t,r){"use strict";var e=J(),n=tW(),o=(typeof t==="undefined"?"undefined":A(t))=="object"&&t&&!t.nodeType&&t,u=o&&(typeof r==="undefined"?"undefined":A(r))=="object"&&r&&!r.nodeType&&r,i=u&&u.exports===o,a=i?e.Buffer:void 0,s=a?a.isBuffer:void 0,c=s||n;r.exports=c});var tG=R(function(t,r){"use strict";var e=function t(t){if(!u(t)||n(t)!=i)return!1;var r=o(t);if(r===null)return!0;var e=f.call(r,"constructor")&&r.constructor;return typeof e=="function"&&h(e,e)&&c.call(e)==l};var n=Z(),o=tU(),u=tF(),i="[object Object]",a=Function.prototype,s=Object.prototype,c=a.toString,f=s.hasOwnProperty,l=c.call(Object);r.exports=e});var tQ=R(function(t,r){"use strict";var e=function t(t){return u(t)&&o(t.length)&&!!A[n(t)]};var n=Z(),o=tK(),u=tF(),i="[object Arguments]",a="[object Array]",s="[object Boolean]",c="[object Date]",f="[object Error]",l="[object Function]",v="[object Map]",p="[object Number]",h="[object Object]",y="[object RegExp]",d="[object Set]",g="[object String]",b="[object WeakMap]",m="[object ArrayBuffer]",x="[object DataView]",k="[object Float32Array]",O="[object Float64Array]",_="[object Int8Array]",R="[object Int16Array]",w="[object Int32Array]",j="[object Uint8Array]",E="[object Uint8ClampedArray]",S="[object Uint16Array]",N="[object Uint32Array]",A={};A[k]=A[O]=A[_]=A[R]=A[w]=A[j]=A[E]=A[S]=A[N]=!0;A[i]=A[a]=A[m]=A[s]=A[x]=A[c]=A[f]=A[l]=A[v]=A[p]=A[h]=A[y]=A[d]=A[g]=A[b]=!1;r.exports=e});var tY=R(function(t,r){"use strict";var e=function t(t){return function(r){return t(r)}};r.exports=e});var tZ=R(function(t,r){"use strict";var e=W(),n=(typeof t==="undefined"?"undefined":A(t))=="object"&&t&&!t.nodeType&&t,o=n&&(typeof r==="undefined"?"undefined":A(r))=="object"&&r&&!r.nodeType&&r,u=o&&o.exports===n,i=u&&e.process,a=function(){try{var t=o&&o.require&&o.require("util").types;return t||i&&i.binding&&i.binding("util")}catch(t){}}();r.exports=a});var tX=R(function(t,r){"use strict";var e=tQ(),n=tY(),o=tZ(),u=o&&o.isTypedArray,i=u?n(u):e;r.exports=i});var t0=R(function(t,r){"use strict";var e=function t(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]};r.exports=e});var t1=R(function(t,r){"use strict";var e=function t(t,r,e){var u=t[r];(!(i.call(t,r)&&o(u,e))||e===void 0&&!(r in t))&&n(t,r,e)};var n=tj(),o=C(),u=Object.prototype,i=u.hasOwnProperty;r.exports=e});var t2=R(function(t,r){"use strict";var e=function t(t,r,e,u){var i=!e;e||(e={});for(var a=-1,s=r.length;++a<s;){var c=r[a],f=u?u(e[c],t[c],c,e,t):void 0;f===void 0&&(f=t[c]),i?o(e,c,f):n(e,c,f)}return e};var n=t1(),o=tj();r.exports=e});var t3=R(function(t,r){"use strict";var e=function t(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n};r.exports=e});var t4=R(function(t,r){"use strict";var e=function t(t,r){var e=typeof t==="undefined"?"undefined":A(t);return r=r!==null&&r!==void 0?r:n,!!r&&(e=="number"||e!="symbol"&&o.test(t))&&t>-1&&t%1==0&&t<r};var n=9007199254740991,o=/^(?:0|[1-9]\d*)$/;r.exports=e});var t6=R(function(t,r){"use strict";var e=function t(t,r){var e=u(t),c=!e&&o(t),l=!e&&!c&&i(t),v=!e&&!c&&!l&&s(t),p=e||c||l||v,h=p?n(t.length,String):[],y=h.length;for(var d in t)(r||f.call(t,d))&&!(p&&(d=="length"||l&&(d=="offset"||d=="parent")||v&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||a(d,y)))&&h.push(d);return h};var n=t3(),o=tD(),u=tM(),i=tJ(),a=t4(),s=tX(),c=Object.prototype,f=c.hasOwnProperty;r.exports=e});var t8=R(function(t,r){"use strict";var e=function t(t){var r=[];if(t!=null)for(var e in Object(t))r.push(e);return r};r.exports=e});var t9=R(function(t,r){"use strict";var e=function t(t){if(!n(t))return u(t);var r=o(t),e=[];for(var i in t)i=="constructor"&&(r||!a.call(t,i))||e.push(i);return e};var n=X(),o=tV(),u=t8(),i=Object.prototype,a=i.hasOwnProperty;r.exports=e});var t7=R(function(t,r){"use strict";var e=function t(t){return u(t)?n(t,!0):o(t)};var n=t6(),o=t9(),u=tL();r.exports=e});var t5=R(function(t,r){"use strict";var e=function t(t){return n(t,o(t))};var n=t2(),o=t7();r.exports=e});var rt=R(function(t,r){"use strict";var e=function t(t,r,e,b,m,x,k){var O=d(t,e),_=d(r,e),R=k.get(_);if(R){n(t,e,R);return}var w=x?x(O,_,e+"",t,r,k):void 0,j=w===void 0;if(j){var E=c(_),S=!E&&l(_),N=!E&&!S&&y(_);w=_,E||S||N?c(O)?w=O:f(O)?w=i(O):S?(j=!1,w=o(_,!0)):N?(j=!1,w=u(_,!0)):w=[]:h(_)||s(_)?(w=O,s(O)?w=g(O):(!p(O)||v(O))&&(w=a(_))):j=!1}j&&(k.set(_,w),m(w,_,b,x,k),k.delete(_)),n(t,e,w)};var n=tE(),o=tA(),u=tz(),i=tI(),a=tB(),s=tD(),c=tM(),f=t$(),l=tJ(),v=tt(),p=X(),h=tG(),y=tX(),d=t0(),g=t5();r.exports=e});var rr=R(function(t,r){"use strict";var e=tR(),n=tE(),o=tN(),u=rt(),i=X(),a=t7(),s=t0();function c(t,r,f,l,v){t!==r&&o(r,function(o,a){if(v||(v=new e),i(o))u(t,r,a,f,c,l,v);else{var p=l?l(s(t,a),o,a+"",t,r,v):void 0;p===void 0&&(p=o),n(t,a,p)}},a)}r.exports=c});var re=R(function(t,r){"use strict";var e=function t(t){return t};r.exports=e});var rn=R(function(t,r){"use strict";var e=function t(t,r,e){switch(e.length){case 0:return t.call(r);case 1:return t.call(r,e[0]);case 2:return t.call(r,e[0],e[1]);case 3:return t.call(r,e[0],e[1],e[2])}return t.apply(r,e)};r.exports=e});var ro=R(function(t,r){"use strict";var e=function t(t,r,e){return r=o(r===void 0?t.length-1:r,0),function(){for(var u=arguments,i=-1,a=o(u.length-r,0),s=Array(a);++i<a;)s[i]=u[r+i];i=-1;for(var c=Array(r+1);++i<r;)c[i]=u[i];return c[r]=e(s),n(t,this,c)}};var n=rn(),o=Math.max;r.exports=e});var ru=R(function(t,r){"use strict";var e=function t(t){return function(){return t}};r.exports=e});var ri=R(function(t,r){"use strict";var e=ru(),n=tw(),o=re(),u=n?function t(t,r){return n(t,"toString",{configurable:!0,enumerable:!1,value:e(r),writable:!0})}:o;r.exports=u});var ra=R(function(t,r){"use strict";var e=function t(t){var r=0,e=0;return function(){var i=u(),a=o-(i-e);if(e=i,a>0){if(++r>=n)return arguments[0]}else r=0;return t.apply(void 0,arguments)}};var n=800,o=16,u=Date.now;r.exports=e});var rs=R(function(t,r){"use strict";var e=ri(),n=ra(),o=n(e);r.exports=o});var rc=R(function(t,r){"use strict";var e=function t(t,r){return u(o(t,r,n),t+"")};var n=re(),o=ro(),u=rs();r.exports=e});var rf=R(function(t,r){"use strict";var e=function t(t,r,e){if(!i(e))return!1;var a=typeof r==="undefined"?"undefined":A(r);return(a=="number"?o(e)&&u(r,e.length):a=="string"&&r in e)?n(e[r],t):!1};var n=C(),o=tL(),u=t4(),i=X();r.exports=e});var rl=R(function(t,r){"use strict";var e=function t(t){return n(function(r,e){var n=-1,u=e.length,i=u>1?e[u-1]:void 0,a=u>2?e[2]:void 0;for(i=t.length>3&&typeof i=="function"?(u--,i):void 0,a&&o(e[0],e[1],a)&&(i=u<3?void 0:i,u=1),r=Object(r);++n<u;){var s=e[n];s&&t(r,s,n,i)}return r})};var n=rc(),o=rf();r.exports=e});var rv=R(function(t,r){"use strict";var e=rr(),n=rl(),o=n(function(t,r,n){e(t,r,n)});r.exports=o});var rp=R(function(t,r){"use strict";var e=function t(t){return(typeof t==="undefined"?"undefined":A(t))=="symbol"||o(t)&&n(t)==u};var n=Z(),o=tF(),u="[object Symbol]";r.exports=e});var rh=R(function(t,r){"use strict";var e=function t(t,r){if(n(t))return!1;var e=typeof t==="undefined"?"undefined":A(t);return e=="number"||e=="symbol"||e=="boolean"||t==null||o(t)?!0:i.test(t)||!u.test(t)||r!=null&&t in Object(r)};var n=tM(),o=rp(),u=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;r.exports=e});var ry=R(function(t,r){"use strict";var e=tO(),n="Expected a function";function o(t,r){if(typeof t!="function"||r!=null&&typeof r!="function")throw new TypeError(n);var u=function e(){var e=arguments,n=r?r.apply(this,e):e[0],o=u.cache;if(o.has(n))return o.get(n);var i=t.apply(this,e);return u.cache=o.set(n,i)||o,i};return u.cache=new(o.Cache||e),u}o.Cache=e;r.exports=o});var rd=R(function(t,r){"use strict";var e=function t(t){var r=n(t,function(t){return e.size===o&&e.clear(),t}),e=r.cache;return r};var n=ry(),o=500;r.exports=e});var rg=R(function(t,r){"use strict";var e=rd(),n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,u=e(function(t){var r=[];return t.charCodeAt(0)===46&&r.push(""),t.replace(n,function(t,e,n,u){r.push(n?u.replace(o,"$1"):e||t)}),r});r.exports=u});var rb=R(function(t,r){"use strict";var e=function t(t,r){for(var e=-1,n=t==null?0:t.length,o=Array(n);++e<n;)o[e]=r(t[e],e,t);return o};r.exports=e});var rm=R(function(t,r){"use strict";var e=G(),n=rb(),o=tM(),u=rp(),i=1/0,a=e?e.prototype:void 0,s=a?a.toString:void 0;function c(t){if(typeof t=="string")return t;if(o(t))return n(t,c)+"";if(u(t))return s?s.call(t):"";var r=t+"";return r=="0"&&1/t==-i?"-0":r}r.exports=c});var rx=R(function(t,r){"use strict";var e=function t(t){return t==null?"":n(t)};var n=rm();r.exports=e});var rk=R(function(t,r){"use strict";var e=function t(t,r){return n(t)?t:o(t,r)?[t]:u(i(t))};var n=tM(),o=rh(),u=rg(),i=rx();r.exports=e});var rO=R(function(t,r){"use strict";var e=function t(t){if(typeof t=="string"||n(t))return t;var r=t+"";return r=="0"&&1/t==-o?"-0":r};var n=rp(),o=1/0;r.exports=e});var r_=R(function(t,r){"use strict";var e=function t(t,r){r=n(r,t);for(var e=0,u=r.length;t!=null&&e<u;)t=t[o(r[e++])];return e&&e==u?t:void 0};var n=rk(),o=rO();r.exports=e});var rR=R(function(t,r){"use strict";var e=function t(t,r,e,s){if(!i(t))return t;r=o(r,t);for(var c=-1,f=r.length,l=f-1,v=t;v!=null&&++c<f;){var p=a(r[c]),h=e;if(p==="__proto__"||p==="constructor"||p==="prototype")return t;if(c!=l){var y=v[p];h=s?s(y,p,v):void 0,h===void 0&&(h=i(y)?y:u(r[c+1])?[]:{})}n(v,p,h),v=v[p]}return t};var n=t1(),o=rk(),u=t4(),i=X(),a=rO();r.exports=e});var rw=R(function(t,r){"use strict";var e=function t(t,r,e){for(var i=-1,a=r.length,s={};++i<a;){var c=r[i],f=n(t,c);e(f,c)&&o(s,u(c,t),f)}return s};var n=r_(),o=rR(),u=rk();r.exports=e});var rj=R(function(t,r){"use strict";var e=function t(t,r){return t!=null&&r in Object(t)};r.exports=e});var rE=R(function(t,r){"use strict";var e=function t(t,r,e){r=n(r,t);for(var c=-1,f=r.length,l=!1;++c<f;){var v=s(r[c]);if(!(l=t!=null&&e(t,v)))break;t=t[v]}return l||++c!=f?l:(f=t==null?0:t.length,!!f&&a(f)&&i(v,f)&&(u(t)||o(t)))};var n=rk(),o=tD(),u=tM(),i=t4(),a=tK(),s=rO();r.exports=e});var rS=R(function(t,r){"use strict";var e=function t(t,r){return t!=null&&o(t,r,n)};var n=rj(),o=rE();r.exports=e});var rN=R(function(t,r){"use strict";var e=function t(t,r){return n(t,r,function(r,e){return o(t,e)})};var n=rw(),o=rS();r.exports=e});var rA=R(function(t,r){"use strict";var e=function t(t,r){for(var e=-1,n=r.length,o=t.length;++e<n;)t[o+e]=r[e];return t};r.exports=e});var rP=R(function(t,r){"use strict";var e=function t(t){return u(t)||o(t)||!!(i&&t&&t[i])};var n=G(),o=tD(),u=tM(),i=n?n.isConcatSpreadable:void 0;r.exports=e});var rT=R(function(t,r){"use strict";var e=rA(),n=rP();function o(t,r,u,i,a){var s=-1,c=t.length;for(u||(u=n),a||(a=[]);++s<c;){var f=t[s];r>0&&u(f)?r>1?o(f,r-1,u,i,a):e(a,f):i||(a[a.length]=f)}return a}r.exports=o});var rz=R(function(t,r){"use strict";var e=function t(t){var r=t==null?0:t.length;return r?n(t,1):[]};var n=rT();r.exports=e});var rI=R(function(t,r){"use strict";var e=function t(t){return u(o(t,void 0,n),t+"")};var n=rz(),o=ro(),u=rs();r.exports=e});var rq=R(function(t,r){"use strict";var e=rN(),n=rI(),o=n(function(t,r){return t==null?{}:e(t,r)});r.exports=o});var rC={};w(rC,{AsyncExecutor:function(){return rB},Base64Serializer:function(){return r8},Executor:function(){return rU},ExecutorError:function(){return rV},FetchAbortPlugin:function(){return rZ},FetchURLPlugin:function(){return rX},JSONSerializer:function(){return r6},KeyStorage:function(){return r7},KeyStorageInterface:function(){return r9},ObjectStorage:function(){return r5},RequestAdapterAxios:function(){return rY},RequestAdapterFetch:function(){return rQ},RequestError:function(){return rL},RequestErrorID:function(){return r$},RequestManager:function(){return r1},RequestScheduler:function(){return r2},RequestTransaction:function(){return r3},RetryPlugin:function(){return rK},SyncExecutor:function(){return rF},SyncStorage:function(){return er}});var rU=function(){function t(r){i(this,t);this.config=r;this.plugins=[]}c(t,[{key:"use",value:function t(t){if(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"));return}this.plugins.push(t)}}]);return t}();var rV=function t(t){p(e,t);var r=I(e);function e(t,o){i(this,e);var u;u=r.call(this,h(o,Error)?o.message:o||t);u.id=t;h(o,Error)&&"stack"in o&&(u.stack=o.stack),Object.setPrototypeOf(n(u),(h(this,e)?this.constructor:void 0).prototype);return u}return e}(T(Error));var rB=function(t){p(e,t);var r=I(e);function e(){i(this,e);return r.apply(this,arguments)}c(e,[{key:"runHooks",value:function t(t,r,e){for(var n=arguments.length,o=new Array(n>3?n-3:0),i=3;i<n;i++){o[i-3]=arguments[i]}return u(function(){var n,u,i,a,s,c,f,l,v,p,h,y,d;return q(this,function(g){switch(g.label){case 0:n=-1,i=e||{parameters:void 0,hooksRuntimes:{}};i.hooksRuntimes.times=0,i.hooksRuntimes.index=void 0;a=true,s=false,c=undefined;g.label=1;case 1:g.trys.push([1,6,7,8]);f=t[Symbol.iterator]();g.label=2;case 2:if(!!(a=(l=f.next()).done))return[3,5];v=l.value;if(n++,typeof v[r]!="function"||typeof v.enabled=="function"&&!v.enabled(r,e))return[3,4];if((h=i.hooksRuntimes)===null||h===void 0?void 0:h.breakChain)return[3,5];i.hooksRuntimes.pluginName=v.pluginName,i.hooksRuntimes.hookName=r,i.hooksRuntimes.times++,i.hooksRuntimes.index=n;return[4,(p=v)[r].apply(p,[e].concat(N(o)))];case 3:y=g.sent();if(y!==void 0&&(u=y,i.hooksRuntimes.returnValue=y,i.hooksRuntimes.returnBreakChain))return[2,u];g.label=4;case 4:a=true;return[3,2];case 5:return[3,8];case 6:d=g.sent();s=true;c=d;return[3,8];case 7:try{if(!a&&f.return!=null){f.return()}}finally{if(s){throw c}}return[7];case 8:return[2,u]}})})()}},{key:"execNoError",value:function t(t,r){var e=this;return u(function(){var n;return q(this,function(o){switch(o.label){case 0:o.trys.push([0,2,,3]);return[4,e.exec(t,r)];case 1:return[2,o.sent()];case 2:n=o.sent();return[2,h(n,rV)?n:new rV("UNKNOWN_ASYNC_ERROR",n)];case 3:return[2]}})})()}},{key:"exec",value:function t(t,r){var e=r||t,n=r?t:void 0;if(typeof e!="function")throw new Error("Task must be a async function!");return this.run(n,e)}},{key:"run",value:function t(t,r){var e=this;return u(function(){var n,o,i;return q(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}},o=function(){var t=u(function(t){return q(this,function(n){switch(n.label){case 0:return[4,e.runHooks(e.plugins,"onExec",t,r)];case 1:if(!(n.sent(),t.hooksRuntimes.times===0))return[3,3];return[4,r(t)];case 2:t.returnValue=n.sent();return[2];case 3:t.returnValue=t.hooksRuntimes.returnValue;return[2]}})});return function r(r){return t.apply(this,arguments)}}();a.label=1;case 1:a.trys.push([1,5,7,8]);return[4,e.runHooks(e.plugins,"onBefore",n)];case 2:a.sent();return[4,o(n)];case 3:a.sent();return[4,e.runHooks(e.plugins,"onSuccess",n)];case 4:return[2,(a.sent(),n.returnValue)];case 5:i=a.sent();n.error=i;return[4,e.runHooks(e.plugins,"onError",n)];case 6:throw a.sent(),n.hooksRuntimes.returnValue&&(n.error=n.hooksRuntimes.returnValue),h(n.error,rV)?n.error:new rV("UNKNOWN_ASYNC_ERROR",n.error);case 7:n.hooksRuntimes={pluginName:"",hookName:"",returnValue:void 0,returnBreakChain:!1,times:0};return[7];case 8:return[2]}})})()}}]);return e}(rU);var rF=function(t){p(e,t);var r=I(e);function e(){i(this,e);return r.apply(this,arguments)}c(e,[{key:"runHooks",value:function t(t,r,e){for(var n=arguments.length,o=new Array(n>3?n-3:0),u=3;u<n;u++){o[u-3]=arguments[u]}var i=-1,a,s=e||{parameters:void 0,hooksRuntimes:{}};s.hooksRuntimes.times=0,s.hooksRuntimes.index=void 0;var c=true,f=false,l=undefined;try{for(var v=t[Symbol.iterator](),p;!(c=(p=v.next()).done);c=true){var h=p.value;var y;var d;if(i++,typeof h[r]!="function"||typeof h.enabled=="function"&&!h.enabled(r,s))continue;if((d=s.hooksRuntimes)===null||d===void 0?void 0:d.breakChain)break;s.hooksRuntimes.pluginName=h.pluginName,s.hooksRuntimes.hookName=r,s.hooksRuntimes.times++,s.hooksRuntimes.index=i;var g=(y=h)[r].apply(y,[e].concat(N(o)));if(g!==void 0&&(a=g,s.hooksRuntimes.returnValue=g,s.hooksRuntimes.returnBreakChain))return a}}catch(t){f=true;l=t}finally{try{if(!c&&v.return!=null){v.return()}}finally{if(f){throw l}}}return a}},{key:"execNoError",value:function t(t,r){try{return this.exec(t,r)}catch(t){return h(t,rV)?t:new rV("UNKNOWN_SYNC_ERROR",t)}}},{key:"exec",value:function t(t,r){var e=r||t,n=r?t:void 0;if(typeof e!="function")throw new Error("Task must be a function!");return this.run(n,e)}},{key:"run",value:function t(t,r){var e=this;var n={parameters:t,returnValue:void 0,error:void 0,hooksRuntimes:{pluginName:"",hookName:"",returnValue:void 0,returnBreakChain:!1,times:0}},o=function(t){e.runHooks(e.plugins,"onExec",t,r),t.returnValue=t.hooksRuntimes.times?t.hooksRuntimes.returnValue:r(t)};try{return this.runHooks(this.plugins,"onBefore",n),o(n),this.runHooks(this.plugins,"onSuccess",n),n.returnValue}catch(t){throw n.error=t,this.runHooks(this.plugins,"onError",n),n.hooksRuntimes.returnValue&&(n.error=n.hooksRuntimes.returnValue),h(n.error,rV)?n.error:new rV("UNKNOWN_SYNC_ERROR",n.error)}finally{n.hooksRuntimes={pluginName:"",hookName:"",returnValue:void 0,returnBreakChain:!1,times:0}}}}]);return e}(rU);var rH=16,rD=3,rM=function(){return!0},rK=function(){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i(this,t);this.pluginName="RetryPlugin";this.onlyOne=!0;var e;this.options=O(x({retryDelay:1e3,useExponentialBackoff:!1,shouldRetry:rM},r),{maxRetries:Math.min(Math.max(1,(e=r.maxRetries)!==null&&e!==void 0?e:rD),rH)})}c(t,[{key:"delay",value:function t(t){var r=this;return u(function(){var e;return q(this,function(n){e=r.options.useExponentialBackoff?r.options.retryDelay*Math.pow(2,t):r.options.retryDelay;return[2,new Promise(function(t){return setTimeout(t,e)})]})})()}},{key:"onExec",value:function t(t,r){var e=this;return u(function(){return q(this,function(n){return[2,e.options.maxRetries<1?r(t):e.retry(r,t,e.options,e.options.maxRetries)]})})()}},{key:"shouldRetry",value:function t(t){var r=t.error,e=t.retryCount;return e>0&&this.options.shouldRetry(r)}},{key:"retry",value:function t(t,r,e,n){var o=this;return u(function(){var u;return q(this,function(i){switch(i.label){case 0:i.trys.push([0,2,,4]);return[4,t(r)];case 1:return[2,i.sent()];case 2:u=i.sent();if(!o.shouldRetry({error:u,retryCount:n}))throw new rV("RETRY_ERROR","All ".concat(e.maxRetries," attempts failed: ").concat(u.message));return[4,o.delay(e.maxRetries-n)];case 3:return[2,(i.sent(),n--,o.retry(t,r,e,n))];case 4:return[2]}})})()}}]);return t}();var rL=function(t){p(e,t);var r=I(e);function e(){i(this,e);return r.apply(this,arguments)}return e}(rV),r$=function(t){return 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",t}(r$||{});var rW=S(rv(),1),rJ=S(rq(),1),rG=["cache","credentials","headers","integrity","keepalive","mode","priority","redirect","referrer","referrerPolicy","signal"],rQ=function(){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i(this,t);if(!r.fetcher){if(typeof fetch!="function")throw new rV("ENV_FETCH_NOT_SUPPORT");r.fetcher=fetch}this.executor=new rB,this.config=r}c(t,[{key:"getConfig",value:function t(){return this.config}},{key:"usePlugin",value:function t(t){this.executor.use(t)}},{key:"request",value:function t(t){var r=this;return u(function(){var e,n,o,i,a;return q(this,function(s){e=r.getConfig(),n=(0,rW.default)({},e,t),o=n.fetcher,i=_(n,["fetcher"]);if(typeof o!="function")throw new rV("FETCHER_NONE");if(!i.url)throw new rV("URL_NONE");a=function(){var t=u(function(t){var e;return q(this,function(n){switch(n.label){case 0:return[4,o(r.parametersToRequest(t.parameters))];case 1:e=n.sent();return[2,r.toAdapterResponse(e,e,t.parameters)]}})});return function r(r){return t.apply(this,arguments)}}();return[2,r.executor.exec(i,a)]})})()}},{key:"parametersToRequest",value:function t(t){var r=t.url,e=r===void 0?"/":r,n=t.method,o=n===void 0?"GET":n,u=t.data,i=(0,rJ.default)(t,rG);return new Request(e,Object.assign(i,{body:u,method:o.toUpperCase()}))}},{key:"toAdapterResponse",value:function t(t,r,e){return{data:t,status:r.status,statusText:r.statusText,headers:this.getResponseHeaders(r),config:e,response:r}}},{key:"getResponseHeaders",value:function t(t){var r={};return t.headers.forEach(function(t,e){r[e]=t}),r}}]);return t}();var rY=function(){function t(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};i(this,t);this.config=e;this.axiosInstance=r.create(e)}c(t,[{key:"getConfig",value:function t(){return this.config}},{key:"request",value:function t(t){var r=this;return u(function(){return q(this,function(e){return[2,r.axiosInstance.request(t)]})})()}}]);return t}();var rZ=function(){function t(){i(this,t);this.pluginName="FetchAbortPlugin";this.onlyOne=!0;this.controllers=new Map}c(t,[{key:"generateRequestKey",value:function t(t){if(t.requestId)return t.requestId;var r=t.params?JSON.stringify(t.params):"",e=t.body?JSON.stringify(t.body):"";return"".concat(t.method||"GET","-").concat(t.url,"-").concat(r,"-").concat(e)}},{key:"onBefore",value:function t(t){var r=this.generateRequestKey(t.parameters);if(this.controllers.has(r)&&this.abort(t.parameters),!t.parameters.signal){var e=new AbortController;this.controllers.set(r,e),t.parameters.signal=e.signal}}},{key:"onSuccess",value:function t(t){var r=t.parameters;r&&this.controllers.delete(this.generateRequestKey(r))}},{key:"onError",value:function t(t){var r=t.error,e=t.parameters;if(this.isSameAbortError(r)&&e){var n=this.generateRequestKey(e),o=this.controllers.get(n);return this.controllers.delete(n),new rL("ABORT_ERROR",(o===null||o===void 0?void 0:o.signal.reason)||r)}}},{key:"isSameAbortError",value:function t(t){return h(t,Error)&&t.name==="AbortError"||h(t,DOMException)&&t.name==="AbortError"||h(t,Event)&&t.type==="abort"}},{key:"abort",value:function t(t){var r=typeof t=="string"?t:this.generateRequestKey(t),e=this.controllers.get(r);e&&(e.abort(new rL("ABORT_ERROR","The operation was aborted")),this.controllers.delete(r),typeof t!="string"&&typeof t.onAbort=="function"&&t.onAbort.call(t,t))}},{key:"abortAll",value:function t(){this.controllers.forEach(function(t){return t.abort()}),this.controllers.clear()}}]);return t}();var rX=function(){function t(){i(this,t);this.pluginName="FetchURLPlugin"}c(t,[{key:"isFullURL",value:function t(t){return t.startsWith("http://")||t.startsWith("https://")}},{key:"appendQueryParams",value:function t(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var e="?",n="&",o=E(t.split(e),2),u=o[0],i=o[1],a=i===void 0?"":i;a.split(n).forEach(function(t){var e=E(t.split("="),2),n=e[0],o=e[1];n&&o&&(r[n]=o)});var s=Object.entries(r).map(function(t){var r=E(t,2),e=r[0],n=r[1];return"".concat(e,"=").concat(n)}).join("&");return[u,s].join(e)}},{key:"connectBaseURL",value:function t(t,r){return"".concat(r,"/").concat(t)}},{key:"buildUrl",value:function t(t){var r=t.url,e=r===void 0?"":r,n=t.baseURL,o=n===void 0?"":n,u=t.params;if(!this.isFullURL(e)){var i=e.startsWith("/")?e.slice(1):e,a=o.endsWith("/")?o.slice(0,-1):o;e=this.connectBaseURL(i,a)}return u&&Object.keys(u).length>0&&(e=this.appendQueryParams(e,u)),e}},{key:"onBefore",value:function t(t){var r=t.parameters;r.url=this.buildUrl(r)}},{key:"onSuccess",value:function t(t){var r=t.returnValue;var e=r;if(!e.response.ok){var n=new rL("RESPONSE_NOT_OK","Request failed with status: ".concat(e.status," ").concat(e.statusText));throw n.response=e.response,n}}},{key:"onError",value:function t(t){var r=t.error;return h(r,rL)?r:new rL("REQUEST_ERROR",r)}}]);return t}();var r0=S(rv(),1),r1=function(){function t(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new rB;i(this,t);this.adapter=r;this.executor=e}c(t,[{key:"usePlugin",value:function t(t){var r=this;return Array.isArray(t)?t.forEach(function(t){return r.executor.use(t)}):this.executor.use(t),this}},{key:"request",value:function t(t){var r=this;var e=(0,r0.default)({},this.adapter.getConfig(),t);return this.executor.exec(e,function(t){return r.adapter.request(t.parameters)})}}]);return t}();var r2=function(t){p(e,t);var r=I(e);function e(){i(this,e);return r.apply(this,arguments)}c(e,[{key:"request",value:function t(t){return l(v(e.prototype),"request",this).call(this,t)}},{key:"get",value:function t(t,r){var e=this;return u(function(){return q(this,function(n){return[2,e.request(O(x({url:t},r),{method:"GET"}))]})})()}},{key:"post",value:function t(t,r){var e=this;return u(function(){return q(this,function(n){return[2,e.request(O(x({url:t},r),{method:"POST"}))]})})()}},{key:"put",value:function t(t,r){var e=this;return u(function(){return q(this,function(n){return[2,e.request(O(x({url:t},r),{method:"PUT"}))]})})()}},{key:"delete",value:function t(t,r){var e=this;return u(function(){return q(this,function(n){return[2,e.request(O(x({url:t},r),{method:"DELETE"}))]})})()}},{key:"patch",value:function t(t,r){var e=this;return u(function(){return q(this,function(n){return[2,e.request(O(x({url:t},r),{method:"PATCH"}))]})})()}},{key:"head",value:function t(t,r){var e=this;return u(function(){return q(this,function(n){return[2,e.request(O(x({url:t},r),{method:"HEAD"}))]})})()}},{key:"options",value:function t(t,r){var e=this;return u(function(){return q(this,function(n){return[2,e.request(O(x({url:t},r),{method:"OPTIONS"}))]})})()}},{key:"trace",value:function t(t,r){var e=this;return u(function(){return q(this,function(n){return[2,e.request(O(x({url:t},r),{method:"TRACE"}))]})})()}},{key:"connect",value:function t(t,r){var e=this;return u(function(){return q(this,function(n){return[2,e.request(O(x({url:t},r),{method:"CONNECT"}))]})})()}}]);return e}(r1);var r3=function(t){p(e,t);var r=I(e);function e(){i(this,e);return r.apply(this,arguments)}c(e,[{key:"request",value:function t(t){return l(v(e.prototype),"request",this).call(this,t)}},{key:"get",value:function t(t,r){return this.request(O(x({},r),{url:t,method:"GET"}))}},{key:"post",value:function t(t,r,e){return this.request(O(x({},e),{url:t,method:"POST",data:r}))}},{key:"put",value:function t(t,r,e){return this.request(O(x({},e),{url:t,method:"PUT",data:r}))}},{key:"delete",value:function t(t,r){return this.request(O(x({},r),{url:t,method:"DELETE"}))}},{key:"patch",value:function t(t,r,e){return this.request(O(x({},e),{url:t,method:"PATCH",data:r}))}}]);return e}(r1);var r4;r4=Symbol.toStringTag;var r6=function(){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i(this,t);this.options=r;this[r4]="JSONSerializer"}c(t,[{key:"createReplacer",value:function t(t){return Array.isArray(t)?t:t===null?function(t,r){return typeof r=="string"?r.replace(/\r\n/g,"\n"):r}:typeof t=="function"?function(r,e){var n=typeof e=="string"?e.replace(/\r\n/g,"\n"):e;return t.call(this,r,n)}:function(t,r){return typeof r=="string"?r.replace(/\r\n/g,"\n"):r}}},{key:"stringify",value:function t(t,r,e){try{var n=this.createReplacer(r);return Array.isArray(n)?JSON.stringify(t,n,e):JSON.stringify(t,n,e!==null&&e!==void 0?e:this.options.pretty?this.options.indent||2:void 0)}catch(t){throw h(t,TypeError)&&t.message.includes("circular")?new TypeError("Cannot stringify data with circular references"):t}}},{key:"parse",value:function t(t,r){return JSON.parse(t,r)}},{key:"serialize",value:function t(t){return this.stringify(t,this.options.replacer||null,this.options.pretty?this.options.indent||2:void 0)}},{key:"deserialize",value:function t(t,r){try{return this.parse(t)}catch(t){return r}}},{key:"serializeArray",value:function t(t){return"["+t.map(function(t){return JSON.stringify(t)}).join(",")+"]"}}]);return t}();var r8=function(){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i(this,t);this.options=r}c(t,[{key:"isNodeEnvironment",value:function t(){return(typeof process==="undefined"?"undefined":A(process))<"u"&&process.versions&&!!process.versions.node}},{key:"isValidBase64",value:function t(t){try{if(!/^[A-Za-z0-9+/\-_]*={0,2}$/.test(t))return!1;var r=this.options.urlSafe?this.makeUrlUnsafe(t):t;return r.length%4!==0?!1:(this.isNodeEnvironment()?Buffer.from(r,"base64").toString("utf8"):atob(r),!0)}catch(t){return!1}}},{key:"serialize",value:function t(t){try{var r;if(this.isNodeEnvironment())r=Buffer.from(t,"utf8").toString("base64");else{var e=new TextEncoder().encode(t),n=Array.from(e,function(t){return String.fromCharCode(t)}).join("");r=btoa(n)}return this.options.urlSafe?this.makeUrlSafe(r):r}catch(t){return""}}},{key:"deserialize",value:function t(t,r){try{if(typeof t!="string")return r!==null&&r!==void 0?r:"";if(t.length===0)return"";if(!this.isValidBase64(t))return r!==null&&r!==void 0?r:"";var e=t;if(this.options.urlSafe&&(e=this.makeUrlUnsafe(t)),this.isNodeEnvironment())return Buffer.from(e,"base64").toString("utf8");{var n=atob(e),o=new Uint8Array(n.length);for(var u=0;u<n.length;u++)o[u]=n.charCodeAt(u);return new TextDecoder().decode(o)}}catch(t){return r!==null&&r!==void 0?r:""}}},{key:"makeUrlSafe",value:function t(t){return t.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}},{key:"makeUrlUnsafe",value:function t(t){for(t=t.replace(/-/g,"+").replace(/_/g,"/");t.length%4;)t+="=";return t}}]);return t}();var r9=function(){function t(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};i(this,t);var n;this.key=r;this.options=e;this.value=null;var o=(n=e.storage)===null||n===void 0?void 0:n.getItem(r);this.value=o}c(t,[{key:"getKey",value:function t(){return this.key}},{key:"getValue",value:function t(){return this.get()}}]);return t}();var r7=function(t){p(e,t);var r=I(e);function e(){i(this,e);var t;t=r.call.apply(r,[this].concat(Array.prototype.slice.call(arguments)));t.value=null;return t}c(e,[{key:"mergeOptions",value:function t(t){return x({},this.options,t)}},{key:"get",value:function t(t){var r=this.mergeOptions(t),e=r.storage,n=_(r,["storage"]);if(this.value!=null)return this.value;if(e){var o=e.getItem(this.key,void 0,n);return o==null?(this.remove(),null):(this.value=o,o)}return this.value}},{key:"set",value:function t(t,r){var e=this.mergeOptions(r),n=e.storage,o=_(e,["storage"]);this.value=t,n&&n.setItem(this.key,t,o)}},{key:"remove",value:function t(t){var r=this.mergeOptions(t),e=r.storage,n=_(r,["storage"]);this.value=null,e===null||e===void 0?void 0:e.removeItem(this.key,n)}}]);return e}(r9);var r5=function(){function t(r){i(this,t);this.serializer=r;this.store=new Map}c(t,[{key:"length",get:function t(){return this.store.size}},{key:"setItem",value:function t(t,r,e){var n={key:t,value:r!==null&&r!==void 0?r:null};typeof(e===null||e===void 0?void 0:e.expires)=="number"&&e.expires>0&&(n.expires=e.expires);var o=this.serializer?this.serializer.serialize(n):n;return this.store.set(t,o),o}},{key:"getItem",value:function t(t,r){var e=this.store.get(t),n=r!==null&&r!==void 0?r:null;if(!e)return n;var o=this.serializer?this.serializer.deserialize(e,n):e;return this.getRawValue(o,n)}},{key:"getRawValue",value:function t(t,r){var e,n;return this.isStorageValue(t)?this.isExpired(t)?(this.removeItem(t.key),r!==null&&r!==void 0?r:null):(e=t===null||t===void 0?void 0:t.value)!==null&&e!==void 0?e:r:(n=t!==null&&t!==void 0?t:r)!==null&&n!==void 0?n:null}},{key:"removeItem",value:function t(t){this.store.delete(t)}},{key:"clear",value:function t(){this.store.clear()}},{key:"isExpired",value:function t(t){return typeof t.expires=="number"&&t.expires<Date.now()&&t.expires>0}},{key:"isStorageValue",value:function t(t){return(typeof t==="undefined"?"undefined":A(t))=="object"&&t!==null&&"key"in t&&"value"in t}},{key:"getSerializer",value:function t(){return this.serializer}}]);return t}();var et={setItem:{serialize:function(r,e){return(t=r).serialize.apply(t,N(e))},encrypt:function(t,e){return(r=t).encrypt.apply(r,N(e))},storage:function(t,r){return(e=t).setItem.apply(e,N(r))}},getItem:{serialize:function(t,r){return(o=t).deserialize.apply(o,N(r))},encrypt:function(t,r){return(a=t).decrypt.apply(a,N(r))},storage:function(t,r){return(s=t).getItem.apply(s,N(r))}}},er=function(){function t(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];i(this,t);this.storage=r;this.pipes=(Array.isArray(e)?e:[e]).map(function(t){return f(t)}).filter(function(t){return t!=null})}c(t,[{key:"length",get:function t(){return this.storage.length}},{key:"setItem",value:function t(t,r,e){var n=r;var o=true,u=false,i=undefined;try{for(var a=this.pipes[Symbol.iterator](),s;!(o=(s=a.next()).done);o=true){var c=s.value;var f=c.type,l=c.pipe;if(f==="storage")l.setItem(t,n,e);else{var v=et.setItem[f](l,[n]);v!=null&&(n=v)}}}catch(t){u=true;i=t}finally{try{if(!o&&a.return!=null){a.return()}}finally{if(u){throw i}}}this.storage.setItem(t,n,e)}},{key:"getItem",value:function t(t,r,e){var n=this.storage.getItem(t,r,e);if(n==null){var o=N(this.pipes).reverse();var u=true,i=false,a=undefined;try{for(var s=o[Symbol.iterator](),c;!(u=(c=s.next()).done);u=true){var f=c.value;var l=f.type,v=f.pipe;if(l!=="storage")continue;var p=et.getItem[l](v,[t,n,e]);if(p!=null){n=p;break}}}catch(t){i=true;a=t}finally{try{if(!u&&s.return!=null){s.return()}}finally{if(i){throw a}}}}if(n==null)return r!==null&&r!==void 0?r:null;var h=N(this.pipes).reverse();var y=true,d=false,g=undefined;try{for(var b=h[Symbol.iterator](),m;!(y=(m=b.next()).done);y=true){var x=m.value;var k=x.type,O=x.pipe;k!=="storage"&&(n=et.getItem[k](O,[n]))}}catch(t){d=true;g=t}finally{try{if(!y&&b.return!=null){b.return()}}finally{if(d){throw g}}}return n!==null&&this.storage.getRawValue&&(n=this.storage.getRawValue(n,e)),n!==null&&n!==void 0?n:null}},{key:"removeItem",value:function t(t,r){this.storage.removeItem(t,r),this.pipes.filter(function(t){return t.type==="storage"}).forEach(function(e){e.pipe.removeItem(t,r)})}},{key:"clear",value:function t(){this.storage.clear(),this.pipes.filter(function(t){return t.type==="storage"}).forEach(function(t){t.pipe.clear()})}}]);return t}();return P(rC)}();
|
|
1
|
+
"use strict";function t(t,r){if(r==null||r>t.length)r=t.length;for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function r(t){if(Array.isArray(t))return t}function e(r){if(Array.isArray(r))return t(r)}function n(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function o(t,r,e,n,o,u,i){try{var a=t[u](i);var s=a.value}catch(t){e(t);return}if(a.done){r(s)}else{Promise.resolve(s).then(n,o)}}function u(t){return function(){var r=this,e=arguments;return new Promise(function(n,u){var i=t.apply(r,e);function a(t){o(i,n,u,a,s,"next",t)}function s(t){o(i,n,u,a,s,"throw",t)}a(undefined)})}}function i(t,r){if(!(t instanceof r)){throw new TypeError("Cannot call a class as a function")}}function a(t,r,e){if(H()){a=Reflect.construct}else{a=function t(t,r,e){var n=[null];n.push.apply(n,r);var o=Function.bind.apply(t,n);var u=new o;if(e)E(u,e.prototype);return u}}return a.apply(null,arguments)}function s(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(t,n.key,n)}}function c(t,r,e){if(r)s(t.prototype,r);if(e)s(t,e);return t}function f(t,r,e){if(r in t){Object.defineProperty(t,r,{value:e,enumerable:true,configurable:true,writable:true})}else{t[r]=e}return t}function l(t,r,e){if(typeof Reflect!=="undefined"&&Reflect.get){l=Reflect.get}else{l=function t(t,r,e){var n=S(t,r);if(!n)return;var o=Object.getOwnPropertyDescriptor(n,r);if(o.get){return o.get.call(e||t)}return o.value}}return l(t,r,e||t)}function v(t){v=Object.setPrototypeOf?Object.getPrototypeOf:function t(t){return t.__proto__||Object.getPrototypeOf(t)};return v(t)}function p(t,r){if(typeof r!=="function"&&r!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:true,configurable:true}});if(r)E(t,r)}function h(t,r){if(r!=null&&typeof Symbol!=="undefined"&&r[Symbol.hasInstance]){return!!r[Symbol.hasInstance](t)}else{return t instanceof r}}function y(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function d(t){if(typeof Symbol!=="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function g(t,r){var e=t==null?null:typeof Symbol!=="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(e==null)return;var n=[];var o=true;var u=false;var i,a;try{for(e=e.call(t);!(o=(i=e.next()).done);o=true){n.push(i.value);if(r&&n.length===r)break}}catch(t){u=true;a=t}finally{try{if(!o&&e["return"]!=null)e["return"]()}finally{if(u)throw a}}return n}function b(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function x(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};var n=Object.keys(e);if(typeof Object.getOwnPropertySymbols==="function"){n=n.concat(Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))}n.forEach(function(r){f(t,r,e[r])})}return t}function k(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);if(r){n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})}e.push.apply(e,n)}return e}function O(t,r){r=r!=null?r:{};if(Object.getOwnPropertyDescriptors){Object.defineProperties(t,Object.getOwnPropertyDescriptors(r))}else{k(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function _(t,r){if(t==null)return{};var e=w(t,r);var n,o;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(o=0;o<u.length;o++){n=u[o];if(r.indexOf(n)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(t,n))continue;e[n]=t[n]}}return e}function w(t,r){if(t==null)return{};var e={};var n=Object.keys(t);var o,u;for(u=0;u<n.length;u++){o=n[u];if(r.indexOf(o)>=0)continue;e[o]=t[o]}return e}function R(t,r){if(r&&(P(r)==="object"||typeof r==="function")){return r}return n(t)}function E(t,r){E=Object.setPrototypeOf||function t(t,r){t.__proto__=r;return t};return E(t,r)}function j(t,e){return r(t)||g(t,e)||N(t,e)||b()}function S(t,r){while(!Object.prototype.hasOwnProperty.call(t,r)){t=v(t);if(t===null)break}return t}function A(t){return e(t)||d(t)||N(t)||m()}function P(t){"@swc/helpers - typeof";return t&&typeof Symbol!=="undefined"&&t.constructor===Symbol?"symbol":typeof t}function N(r,e){if(!r)return;if(typeof r==="string")return t(r,e);var n=Object.prototype.toString.call(r).slice(8,-1);if(n==="Object"&&r.constructor)n=r.constructor.name;if(n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t(r,e)}function T(t){var r=typeof Map==="function"?new Map:undefined;T=function t(t){if(t===null||!y(t))return t;if(typeof t!=="function"){throw new TypeError("Super expression must either be null or a function")}if(typeof r!=="undefined"){if(r.has(t))return r.get(t);r.set(t,e)}function e(){return a(t,arguments,v(this).constructor)}e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});return E(e,t)};return T(t)}function H(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function C(t){var r=H();return function e(){var e=v(t),n;if(r){var o=v(this).constructor;n=Reflect.construct(e,arguments,o)}else{n=e.apply(this,arguments)}return R(this,n)}}function z(t,r){var e,n,o,u,i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]};return u={next:a(0),"throw":a(1),"return":a(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function a(t){return function(r){return s([t,r])}}function s(u){if(e)throw new TypeError("Generator is already executing.");while(i)try{if(e=1,n&&(o=u[0]&2?n["return"]:u[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;if(n=0,o)u=[u[0]&2,o.value];switch(u[0]){case 0:case 1:o=u;break;case 4:i.label++;return{value:u[1],done:false};case 5:i.label++;n=u[1];u=[0];continue;case 7:u=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){i=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(u[0]===6&&i.label<o[1]){i.label=o[1];o=u;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(u);break}if(o[2])i.ops.pop();i.trys.pop();continue}u=r.call(t,i)}catch(t){u=[6,t];n=0}finally{e=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}}var qloverFeCorekit=function(){var t,r,e,o,a,s;var f=function t(t){return{parameters:t,returnValue:void 0,error:void 0,hooksRuntimes:{pluginName:"",hookName:"",returnValue:void 0,returnBreakChain:!1,times:0,breakChain:!1,index:void 0}}};var y=function t(t){return"type"in t&&"pipe"in t?t:"serialize"in t&&"deserialize"in t?{pipe:t,type:"serialize"}:"encrypt"in t&&"decrypt"in t?{pipe:t,type:"encrypt"}:"setItem"in t&&"getItem"in t&&"removeItem"in t&&"clear"in t?{pipe:t,type:"storage"}:null};var d=Object.create;var g=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var k=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty;var R=function(t,r){return function(){return r||t((r={exports:{}}).exports,r),r.exports}},E=function(t,r){for(var e in r)g(t,e,{get:r[e],enumerable:!0})},S=function(t,r,e,n){var o=true,u=false,i=undefined;if(r&&(typeof r==="undefined"?"undefined":P(r))=="object"||typeof r=="function")try{var a=function(){var o=c.value;!w.call(t,o)&&o!==e&&g(t,o,{get:function(){return r[o]},enumerable:!(n=b(r,o))||n.enumerable})};for(var s=m(r)[Symbol.iterator](),c;!(o=(c=s.next()).done);o=true)a()}catch(t){u=true;i=t}finally{try{if(!o&&s.return!=null){s.return()}}finally{if(u){throw i}}}return t};var N=function(t,r,e){return e=t!=null?d(k(t)):{},S(r||!t||!t.__esModule?g(e,"default",{value:t,enumerable:!0}):e,t)},H=function(t){return S(g({},"__esModule",{value:!0}),t)};var I=R(function(t,r){"use strict";var e=function t(){this.__data__=[],this.size=0};r.exports=e});var q=R(function(t,r){"use strict";var e=function t(t,r){return t===r||t!==t&&r!==r};r.exports=e});var U=R(function(t,r){"use strict";var e=function t(t,r){for(var e=t.length;e--;)if(n(t[e][0],r))return e;return-1};var n=q();r.exports=e});var B=R(function(t,r){"use strict";var e=function t(t){var r=this.__data__,e=n(r,t);if(e<0)return!1;var o=r.length-1;return e==o?r.pop():u.call(r,e,1),--this.size,!0};var n=U(),o=Array.prototype,u=o.splice;r.exports=e});var V=R(function(t,r){"use strict";var e=function t(t){var r=this.__data__,e=n(r,t);return e<0?void 0:r[e][1]};var n=U();r.exports=e});var F=R(function(t,r){"use strict";var e=function t(t){return n(this.__data__,t)>-1};var n=U();r.exports=e});var D=R(function(t,r){"use strict";var e=function t(t,r){var e=this.__data__,o=n(e,t);return o<0?(++this.size,e.push([t,r])):e[o][1]=r,this};var n=U();r.exports=e});var M=R(function(t,r){"use strict";var e=function t(t){var r=-1,e=t==null?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}};var n=I(),o=B(),u=V(),i=F(),a=D();e.prototype.clear=n;e.prototype.delete=o;e.prototype.get=u;e.prototype.has=i;e.prototype.set=a;r.exports=e});var K=R(function(t,r){"use strict";var e=function t(){this.__data__=new n,this.size=0};var n=M();r.exports=e});var L=R(function(t,r){"use strict";var e=function t(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e};r.exports=e});var $=R(function(t,r){"use strict";var e=function t(t){return this.__data__.get(t)};r.exports=e});var W=R(function(t,r){"use strict";var e=function t(t){return this.__data__.has(t)};r.exports=e});var J=R(function(t,r){"use strict";var e=(typeof global==="undefined"?"undefined":P(global))=="object"&&global&&global.Object===Object&&global;r.exports=e});var G=R(function(t,r){"use strict";var e=J(),n=(typeof self==="undefined"?"undefined":P(self))=="object"&&self&&self.Object===Object&&self,o=e||n||Function("return this")();r.exports=o});var Q=R(function(t,r){"use strict";var e=G(),n=e.Symbol;r.exports=n});var Y=R(function(t,r){"use strict";var e=function t(t){var r=u.call(t,a),e=t[a];try{t[a]=void 0;var n=!0}catch(t){}var o=i.call(t);return n&&(r?t[a]=e:delete t[a]),o};var n=Q(),o=Object.prototype,u=o.hasOwnProperty,i=o.toString,a=n?n.toStringTag:void 0;r.exports=e});var Z=R(function(t,r){"use strict";var e=function t(t){return o.call(t)};var n=Object.prototype,o=n.toString;r.exports=e});var X=R(function(t,r){"use strict";var e=function t(t){return t==null?t===void 0?a:i:s&&s in Object(t)?o(t):u(t)};var n=Q(),o=Y(),u=Z(),i="[object Null]",a="[object Undefined]",s=n?n.toStringTag:void 0;r.exports=e});var tt=R(function(t,r){"use strict";var e=function t(t){var r=typeof t==="undefined"?"undefined":P(t);return t!=null&&(r=="object"||r=="function")};r.exports=e});var tr=R(function(t,r){"use strict";var e=function t(t){if(!o(t))return!1;var r=n(t);return r==i||r==a||r==u||r==s};var n=X(),o=tt(),u="[object AsyncFunction]",i="[object Function]",a="[object GeneratorFunction]",s="[object Proxy]";r.exports=e});var te=R(function(t,r){"use strict";var e=G(),n=e["__core-js_shared__"];r.exports=n});var tn=R(function(t,r){"use strict";var e=function t(t){return!!o&&o in t};var n=te(),o=function(){var t=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();r.exports=e});var to=R(function(t,r){"use strict";var e=function t(t){if(t!=null){try{return o.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var n=Function.prototype,o=n.toString;r.exports=e});var tu=R(function(t,r){"use strict";var e=function t(t){if(!u(t)||o(t))return!1;var r=n(t)?p:s;return r.test(i(t))};var n=tr(),o=tn(),u=tt(),i=to(),a=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,f=Object.prototype,l=c.toString,v=f.hasOwnProperty,p=RegExp("^"+l.call(v).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");r.exports=e});var ti=R(function(t,r){"use strict";var e=function t(t,r){return t===null||t===void 0?void 0:t[r]};r.exports=e});var ta=R(function(t,r){"use strict";var e=function t(t,r){var e=o(t,r);return n(e)?e:void 0};var n=tu(),o=ti();r.exports=e});var ts=R(function(t,r){"use strict";var e=ta(),n=G(),o=e(n,"Map");r.exports=o});var tc=R(function(t,r){"use strict";var e=ta(),n=e(Object,"create");r.exports=n});var tf=R(function(t,r){"use strict";var e=function t(){this.__data__=n?n(null):{},this.size=0};var n=tc();r.exports=e});var tl=R(function(t,r){"use strict";var e=function t(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r};r.exports=e});var tv=R(function(t,r){"use strict";var e=function t(t){var r=this.__data__;if(n){var e=r[t];return e===o?void 0:e}return i.call(r,t)?r[t]:void 0};var n=tc(),o="__lodash_hash_undefined__",u=Object.prototype,i=u.hasOwnProperty;r.exports=e});var tp=R(function(t,r){"use strict";var e=function t(t){var r=this.__data__;return n?r[t]!==void 0:u.call(r,t)};var n=tc(),o=Object.prototype,u=o.hasOwnProperty;r.exports=e});var th=R(function(t,r){"use strict";var e=function t(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=n&&r===void 0?o:r,this};var n=tc(),o="__lodash_hash_undefined__";r.exports=e});var ty=R(function(t,r){"use strict";var e=function t(t){var r=-1,e=t==null?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}};var n=tf(),o=tl(),u=tv(),i=tp(),a=th();e.prototype.clear=n;e.prototype.delete=o;e.prototype.get=u;e.prototype.has=i;e.prototype.set=a;r.exports=e});var td=R(function(t,r){"use strict";var e=function t(){this.size=0,this.__data__={hash:new n,map:new(u||o),string:new n}};var n=ty(),o=M(),u=ts();r.exports=e});var tg=R(function(t,r){"use strict";var e=function t(t){var r=typeof t==="undefined"?"undefined":P(t);return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null};r.exports=e});var tb=R(function(t,r){"use strict";var e=function t(t,r){var e=t.__data__;return n(r)?e[typeof r=="string"?"string":"hash"]:e.map};var n=tg();r.exports=e});var tm=R(function(t,r){"use strict";var e=function t(t){var r=n(this,t).delete(t);return this.size-=r?1:0,r};var n=tb();r.exports=e});var tx=R(function(t,r){"use strict";var e=function t(t){return n(this,t).get(t)};var n=tb();r.exports=e});var tk=R(function(t,r){"use strict";var e=function t(t){return n(this,t).has(t)};var n=tb();r.exports=e});var tO=R(function(t,r){"use strict";var e=function t(t,r){var e=n(this,t),o=e.size;return e.set(t,r),this.size+=e.size==o?0:1,this};var n=tb();r.exports=e});var t_=R(function(t,r){"use strict";var e=function t(t){var r=-1,e=t==null?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}};var n=td(),o=tm(),u=tx(),i=tk(),a=tO();e.prototype.clear=n;e.prototype.delete=o;e.prototype.get=u;e.prototype.has=i;e.prototype.set=a;r.exports=e});var tw=R(function(t,r){"use strict";var e=function t(t,r){var e=this.__data__;if(h(e,n)){var a=e.__data__;if(!o||a.length<i-1)return a.push([t,r]),this.size=++e.size,this;e=this.__data__=new u(a)}return e.set(t,r),this.size=e.size,this};var n=M(),o=ts(),u=t_(),i=200;r.exports=e});var tR=R(function(t,r){"use strict";var e=function t(t){var r=this.__data__=new n(t);this.size=r.size};var n=M(),o=K(),u=L(),i=$(),a=W(),s=tw();e.prototype.clear=o;e.prototype.delete=u;e.prototype.get=i;e.prototype.has=a;e.prototype.set=s;r.exports=e});var tE=R(function(t,r){"use strict";var e=ta(),n=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();r.exports=n});var tj=R(function(t,r){"use strict";var e=function t(t,r,e){r=="__proto__"&&n?n(t,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[r]=e};var n=tE();r.exports=e});var tS=R(function(t,r){"use strict";var e=function t(t,r,e){(e!==void 0&&!o(t[r],e)||e===void 0&&!(r in t))&&n(t,r,e)};var n=tj(),o=q();r.exports=e});var tA=R(function(t,r){"use strict";var e=function t(t){return function(r,e,n){for(var o=-1,u=Object(r),i=n(r),a=i.length;a--;){var s=i[t?a:++o];if(e(u[s],s,u)===!1)break}return r}};r.exports=e});var tP=R(function(t,r){"use strict";var e=tA(),n=e();r.exports=n});var tN=R(function(t,r){"use strict";var e=function t(t,r){if(r)return t.slice();var e=t.length,n=s?s(e):new t.constructor(e);return t.copy(n),n};var n=G(),o=(typeof t==="undefined"?"undefined":P(t))=="object"&&t&&!t.nodeType&&t,u=o&&(typeof r==="undefined"?"undefined":P(r))=="object"&&r&&!r.nodeType&&r,i=u&&u.exports===o,a=i?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;r.exports=e});var tT=R(function(t,r){"use strict";var e=G(),n=e.Uint8Array;r.exports=n});var tH=R(function(t,r){"use strict";var e=function t(t){var r=new t.constructor(t.byteLength);return new n(r).set(new n(t)),r};var n=tT();r.exports=e});var tC=R(function(t,r){"use strict";var e=function t(t,r){var e=r?n(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)};var n=tH();r.exports=e});var tz=R(function(t,r){"use strict";var e=function t(t,r){var e=-1,n=t.length;for(r||(r=Array(n));++e<n;)r[e]=t[e];return r};r.exports=e});var tI=R(function(t,r){"use strict";var e=tt(),n=Object.create,o=function(){function t(){}return function(r){if(!e(r))return{};if(n)return n(r);t.prototype=r;var o=new t;return t.prototype=void 0,o}}();r.exports=o});var tq=R(function(t,r){"use strict";var e=function t(t,r){return function(e){return t(r(e))}};r.exports=e});var tU=R(function(t,r){"use strict";var e=tq(),n=e(Object.getPrototypeOf,Object);r.exports=n});var tB=R(function(t,r){"use strict";var e=function t(t){var r=t&&t.constructor,e=typeof r=="function"&&r.prototype||n;return t===e};var n=Object.prototype;r.exports=e});var tV=R(function(t,r){"use strict";var e=function t(t){return typeof t.constructor=="function"&&!u(t)?n(o(t)):{}};var n=tI(),o=tU(),u=tB();r.exports=e});var tF=R(function(t,r){"use strict";var e=function t(t){return t!=null&&(typeof t==="undefined"?"undefined":P(t))=="object"};r.exports=e});var tD=R(function(t,r){"use strict";var e=function t(t){return o(t)&&n(t)==u};var n=X(),o=tF(),u="[object Arguments]";r.exports=e});var tM=R(function(t,r){"use strict";var e=tD(),n=tF(),o=Object.prototype,u=o.hasOwnProperty,i=o.propertyIsEnumerable,a=e(function(){return arguments}())?e:function t(t){return n(t)&&u.call(t,"callee")&&!i.call(t,"callee")};r.exports=a});var tK=R(function(t,r){"use strict";var e=Array.isArray;r.exports=e});var tL=R(function(t,r){"use strict";var e=function t(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=n};var n=9007199254740991;r.exports=e});var t$=R(function(t,r){"use strict";var e=function t(t){return t!=null&&o(t.length)&&!n(t)};var n=tr(),o=tL();r.exports=e});var tW=R(function(t,r){"use strict";var e=function t(t){return o(t)&&n(t)};var n=t$(),o=tF();r.exports=e});var tJ=R(function(t,r){"use strict";var e=function t(){return!1};r.exports=e});var tG=R(function(t,r){"use strict";var e=G(),n=tJ(),o=(typeof t==="undefined"?"undefined":P(t))=="object"&&t&&!t.nodeType&&t,u=o&&(typeof r==="undefined"?"undefined":P(r))=="object"&&r&&!r.nodeType&&r,i=u&&u.exports===o,a=i?e.Buffer:void 0,s=a?a.isBuffer:void 0,c=s||n;r.exports=c});var tQ=R(function(t,r){"use strict";var e=function t(t){if(!u(t)||n(t)!=i)return!1;var r=o(t);if(r===null)return!0;var e=f.call(r,"constructor")&&r.constructor;return typeof e=="function"&&h(e,e)&&c.call(e)==l};var n=X(),o=tU(),u=tF(),i="[object Object]",a=Function.prototype,s=Object.prototype,c=a.toString,f=s.hasOwnProperty,l=c.call(Object);r.exports=e});var tY=R(function(t,r){"use strict";var e=function t(t){return u(t)&&o(t.length)&&!!P[n(t)]};var n=X(),o=tL(),u=tF(),i="[object Arguments]",a="[object Array]",s="[object Boolean]",c="[object Date]",f="[object Error]",l="[object Function]",v="[object Map]",p="[object Number]",h="[object Object]",y="[object RegExp]",d="[object Set]",g="[object String]",b="[object WeakMap]",m="[object ArrayBuffer]",x="[object DataView]",k="[object Float32Array]",O="[object Float64Array]",_="[object Int8Array]",w="[object Int16Array]",R="[object Int32Array]",E="[object Uint8Array]",j="[object Uint8ClampedArray]",S="[object Uint16Array]",A="[object Uint32Array]",P={};P[k]=P[O]=P[_]=P[w]=P[R]=P[E]=P[j]=P[S]=P[A]=!0;P[i]=P[a]=P[m]=P[s]=P[x]=P[c]=P[f]=P[l]=P[v]=P[p]=P[h]=P[y]=P[d]=P[g]=P[b]=!1;r.exports=e});var tZ=R(function(t,r){"use strict";var e=function t(t){return function(r){return t(r)}};r.exports=e});var tX=R(function(t,r){"use strict";var e=J(),n=(typeof t==="undefined"?"undefined":P(t))=="object"&&t&&!t.nodeType&&t,o=n&&(typeof r==="undefined"?"undefined":P(r))=="object"&&r&&!r.nodeType&&r,u=o&&o.exports===n,i=u&&e.process,a=function(){try{var t=o&&o.require&&o.require("util").types;return t||i&&i.binding&&i.binding("util")}catch(t){}}();r.exports=a});var t0=R(function(t,r){"use strict";var e=tY(),n=tZ(),o=tX(),u=o&&o.isTypedArray,i=u?n(u):e;r.exports=i});var t1=R(function(t,r){"use strict";var e=function t(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]};r.exports=e});var t2=R(function(t,r){"use strict";var e=function t(t,r,e){var u=t[r];(!(i.call(t,r)&&o(u,e))||e===void 0&&!(r in t))&&n(t,r,e)};var n=tj(),o=q(),u=Object.prototype,i=u.hasOwnProperty;r.exports=e});var t3=R(function(t,r){"use strict";var e=function t(t,r,e,u){var i=!e;e||(e={});for(var a=-1,s=r.length;++a<s;){var c=r[a],f=u?u(e[c],t[c],c,e,t):void 0;f===void 0&&(f=t[c]),i?o(e,c,f):n(e,c,f)}return e};var n=t2(),o=tj();r.exports=e});var t4=R(function(t,r){"use strict";var e=function t(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n};r.exports=e});var t6=R(function(t,r){"use strict";var e=function t(t,r){var e=typeof t==="undefined"?"undefined":P(t);return r=r!==null&&r!==void 0?r:n,!!r&&(e=="number"||e!="symbol"&&o.test(t))&&t>-1&&t%1==0&&t<r};var n=9007199254740991,o=/^(?:0|[1-9]\d*)$/;r.exports=e});var t8=R(function(t,r){"use strict";var e=function t(t,r){var e=u(t),c=!e&&o(t),l=!e&&!c&&i(t),v=!e&&!c&&!l&&s(t),p=e||c||l||v,h=p?n(t.length,String):[],y=h.length;for(var d in t)(r||f.call(t,d))&&!(p&&(d=="length"||l&&(d=="offset"||d=="parent")||v&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||a(d,y)))&&h.push(d);return h};var n=t4(),o=tM(),u=tK(),i=tG(),a=t6(),s=t0(),c=Object.prototype,f=c.hasOwnProperty;r.exports=e});var t7=R(function(t,r){"use strict";var e=function t(t){var r=[];if(t!=null)for(var e in Object(t))r.push(e);return r};r.exports=e});var t5=R(function(t,r){"use strict";var e=function t(t){if(!n(t))return u(t);var r=o(t),e=[];for(var i in t)i=="constructor"&&(r||!a.call(t,i))||e.push(i);return e};var n=tt(),o=tB(),u=t7(),i=Object.prototype,a=i.hasOwnProperty;r.exports=e});var t9=R(function(t,r){"use strict";var e=function t(t){return u(t)?n(t,!0):o(t)};var n=t8(),o=t5(),u=t$();r.exports=e});var rt=R(function(t,r){"use strict";var e=function t(t){return n(t,o(t))};var n=t3(),o=t9();r.exports=e});var rr=R(function(t,r){"use strict";var e=function t(t,r,e,b,m,x,k){var O=d(t,e),_=d(r,e),w=k.get(_);if(w){n(t,e,w);return}var R=x?x(O,_,e+"",t,r,k):void 0,E=R===void 0;if(E){var j=c(_),S=!j&&l(_),A=!j&&!S&&y(_);R=_,j||S||A?c(O)?R=O:f(O)?R=i(O):S?(E=!1,R=o(_,!0)):A?(E=!1,R=u(_,!0)):R=[]:h(_)||s(_)?(R=O,s(O)?R=g(O):(!p(O)||v(O))&&(R=a(_))):E=!1}E&&(k.set(_,R),m(R,_,b,x,k),k.delete(_)),n(t,e,R)};var n=tS(),o=tN(),u=tC(),i=tz(),a=tV(),s=tM(),c=tK(),f=tW(),l=tG(),v=tr(),p=tt(),h=tQ(),y=t0(),d=t1(),g=rt();r.exports=e});var re=R(function(t,r){"use strict";var e=tR(),n=tS(),o=tP(),u=rr(),i=tt(),a=t9(),s=t1();function c(t,r,f,l,v){t!==r&&o(r,function(o,a){if(v||(v=new e),i(o))u(t,r,a,f,c,l,v);else{var p=l?l(s(t,a),o,a+"",t,r,v):void 0;p===void 0&&(p=o),n(t,a,p)}},a)}r.exports=c});var rn=R(function(t,r){"use strict";var e=function t(t){return t};r.exports=e});var ro=R(function(t,r){"use strict";var e=function t(t,r,e){switch(e.length){case 0:return t.call(r);case 1:return t.call(r,e[0]);case 2:return t.call(r,e[0],e[1]);case 3:return t.call(r,e[0],e[1],e[2])}return t.apply(r,e)};r.exports=e});var ru=R(function(t,r){"use strict";var e=function t(t,r,e){return r=o(r===void 0?t.length-1:r,0),function(){for(var u=arguments,i=-1,a=o(u.length-r,0),s=Array(a);++i<a;)s[i]=u[r+i];i=-1;for(var c=Array(r+1);++i<r;)c[i]=u[i];return c[r]=e(s),n(t,this,c)}};var n=ro(),o=Math.max;r.exports=e});var ri=R(function(t,r){"use strict";var e=function t(t){return function(){return t}};r.exports=e});var ra=R(function(t,r){"use strict";var e=ri(),n=tE(),o=rn(),u=n?function t(t,r){return n(t,"toString",{configurable:!0,enumerable:!1,value:e(r),writable:!0})}:o;r.exports=u});var rs=R(function(t,r){"use strict";var e=function t(t){var r=0,e=0;return function(){var i=u(),a=o-(i-e);if(e=i,a>0){if(++r>=n)return arguments[0]}else r=0;return t.apply(void 0,arguments)}};var n=800,o=16,u=Date.now;r.exports=e});var rc=R(function(t,r){"use strict";var e=ra(),n=rs(),o=n(e);r.exports=o});var rf=R(function(t,r){"use strict";var e=function t(t,r){return u(o(t,r,n),t+"")};var n=rn(),o=ru(),u=rc();r.exports=e});var rl=R(function(t,r){"use strict";var e=function t(t,r,e){if(!i(e))return!1;var a=typeof r==="undefined"?"undefined":P(r);return(a=="number"?o(e)&&u(r,e.length):a=="string"&&r in e)?n(e[r],t):!1};var n=q(),o=t$(),u=t6(),i=tt();r.exports=e});var rv=R(function(t,r){"use strict";var e=function t(t){return n(function(r,e){var n=-1,u=e.length,i=u>1?e[u-1]:void 0,a=u>2?e[2]:void 0;for(i=t.length>3&&typeof i=="function"?(u--,i):void 0,a&&o(e[0],e[1],a)&&(i=u<3?void 0:i,u=1),r=Object(r);++n<u;){var s=e[n];s&&t(r,s,n,i)}return r})};var n=rf(),o=rl();r.exports=e});var rp=R(function(t,r){"use strict";var e=re(),n=rv(),o=n(function(t,r,n){e(t,r,n)});r.exports=o});var rh=R(function(t,r){"use strict";var e=function t(t){return(typeof t==="undefined"?"undefined":P(t))=="symbol"||o(t)&&n(t)==u};var n=X(),o=tF(),u="[object Symbol]";r.exports=e});var ry=R(function(t,r){"use strict";var e=function t(t,r){if(n(t))return!1;var e=typeof t==="undefined"?"undefined":P(t);return e=="number"||e=="symbol"||e=="boolean"||t==null||o(t)?!0:i.test(t)||!u.test(t)||r!=null&&t in Object(r)};var n=tK(),o=rh(),u=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;r.exports=e});var rd=R(function(t,r){"use strict";var e=t_(),n="Expected a function";function o(t,r){if(typeof t!="function"||r!=null&&typeof r!="function")throw new TypeError(n);var u=function e(){var e=arguments,n=r?r.apply(this,e):e[0],o=u.cache;if(o.has(n))return o.get(n);var i=t.apply(this,e);return u.cache=o.set(n,i)||o,i};return u.cache=new(o.Cache||e),u}o.Cache=e;r.exports=o});var rg=R(function(t,r){"use strict";var e=function t(t){var r=n(t,function(t){return e.size===o&&e.clear(),t}),e=r.cache;return r};var n=rd(),o=500;r.exports=e});var rb=R(function(t,r){"use strict";var e=rg(),n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,u=e(function(t){var r=[];return t.charCodeAt(0)===46&&r.push(""),t.replace(n,function(t,e,n,u){r.push(n?u.replace(o,"$1"):e||t)}),r});r.exports=u});var rm=R(function(t,r){"use strict";var e=function t(t,r){for(var e=-1,n=t==null?0:t.length,o=Array(n);++e<n;)o[e]=r(t[e],e,t);return o};r.exports=e});var rx=R(function(t,r){"use strict";var e=Q(),n=rm(),o=tK(),u=rh(),i=1/0,a=e?e.prototype:void 0,s=a?a.toString:void 0;function c(t){if(typeof t=="string")return t;if(o(t))return n(t,c)+"";if(u(t))return s?s.call(t):"";var r=t+"";return r=="0"&&1/t==-i?"-0":r}r.exports=c});var rk=R(function(t,r){"use strict";var e=function t(t){return t==null?"":n(t)};var n=rx();r.exports=e});var rO=R(function(t,r){"use strict";var e=function t(t,r){return n(t)?t:o(t,r)?[t]:u(i(t))};var n=tK(),o=ry(),u=rb(),i=rk();r.exports=e});var r_=R(function(t,r){"use strict";var e=function t(t){if(typeof t=="string"||n(t))return t;var r=t+"";return r=="0"&&1/t==-o?"-0":r};var n=rh(),o=1/0;r.exports=e});var rw=R(function(t,r){"use strict";var e=function t(t,r){r=n(r,t);for(var e=0,u=r.length;t!=null&&e<u;)t=t[o(r[e++])];return e&&e==u?t:void 0};var n=rO(),o=r_();r.exports=e});var rR=R(function(t,r){"use strict";var e=function t(t,r,e,s){if(!i(t))return t;r=o(r,t);for(var c=-1,f=r.length,l=f-1,v=t;v!=null&&++c<f;){var p=a(r[c]),h=e;if(p==="__proto__"||p==="constructor"||p==="prototype")return t;if(c!=l){var y=v[p];h=s?s(y,p,v):void 0,h===void 0&&(h=i(y)?y:u(r[c+1])?[]:{})}n(v,p,h),v=v[p]}return t};var n=t2(),o=rO(),u=t6(),i=tt(),a=r_();r.exports=e});var rE=R(function(t,r){"use strict";var e=function t(t,r,e){for(var i=-1,a=r.length,s={};++i<a;){var c=r[i],f=n(t,c);e(f,c)&&o(s,u(c,t),f)}return s};var n=rw(),o=rR(),u=rO();r.exports=e});var rj=R(function(t,r){"use strict";var e=function t(t,r){return t!=null&&r in Object(t)};r.exports=e});var rS=R(function(t,r){"use strict";var e=function t(t,r,e){r=n(r,t);for(var c=-1,f=r.length,l=!1;++c<f;){var v=s(r[c]);if(!(l=t!=null&&e(t,v)))break;t=t[v]}return l||++c!=f?l:(f=t==null?0:t.length,!!f&&a(f)&&i(v,f)&&(u(t)||o(t)))};var n=rO(),o=tM(),u=tK(),i=t6(),a=tL(),s=r_();r.exports=e});var rA=R(function(t,r){"use strict";var e=function t(t,r){return t!=null&&o(t,r,n)};var n=rj(),o=rS();r.exports=e});var rP=R(function(t,r){"use strict";var e=function t(t,r){return n(t,r,function(r,e){return o(t,e)})};var n=rE(),o=rA();r.exports=e});var rN=R(function(t,r){"use strict";var e=function t(t,r){for(var e=-1,n=r.length,o=t.length;++e<n;)t[o+e]=r[e];return t};r.exports=e});var rT=R(function(t,r){"use strict";var e=function t(t){return u(t)||o(t)||!!(i&&t&&t[i])};var n=Q(),o=tM(),u=tK(),i=n?n.isConcatSpreadable:void 0;r.exports=e});var rH=R(function(t,r){"use strict";var e=rN(),n=rT();function o(t,r,u,i,a){var s=-1,c=t.length;for(u||(u=n),a||(a=[]);++s<c;){var f=t[s];r>0&&u(f)?r>1?o(f,r-1,u,i,a):e(a,f):i||(a[a.length]=f)}return a}r.exports=o});var rC=R(function(t,r){"use strict";var e=function t(t){var r=t==null?0:t.length;return r?n(t,1):[]};var n=rH();r.exports=e});var rz=R(function(t,r){"use strict";var e=function t(t){return u(o(t,void 0,n),t+"")};var n=rC(),o=ru(),u=rc();r.exports=e});var rI=R(function(t,r){"use strict";var e=rP(),n=rz(),o=n(function(t,r){return t==null?{}:e(t,r)});r.exports=o});var rq={};E(rq,{AsyncExecutor:function(){return rF},Base64Serializer:function(){return r5},Executor:function(){return rU},ExecutorError:function(){return rB},FetchAbortPlugin:function(){return r0},FetchURLPlugin:function(){return r1},JSONSerializer:function(){return r7},KeyStorage:function(){return et},KeyStorageInterface:function(){return r9},ObjectStorage:function(){return er},RequestAdapterAxios:function(){return rX},RequestAdapterFetch:function(){return rZ},RequestError:function(){return rW},RequestErrorID:function(){return rJ},RequestManager:function(){return r3},RequestScheduler:function(){return r4},RequestTransaction:function(){return r6},RetryPlugin:function(){return r$},SyncExecutor:function(){return rD},SyncStorage:function(){return en}});var rU=function(){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i(this,t);this.config=r;this.plugins=[]}c(t,[{key:"use",value:function t(t){if((typeof t==="undefined"?"undefined":P(t))!="object"||t===null)throw new Error("Plugin must be an object");if(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"));return}this.plugins.push(t)}}]);return t}();var rB=function t(t){p(e,t);var r=C(e);function e(t,o){i(this,e);var u;u=r.call(this,h(o,Error)?o.message:o||t);u.id=t;h(o,Error)&&"stack"in o&&(u.stack=o.stack),Object.setPrototypeOf(n(u),(h(this,e)?this.constructor:void 0).prototype);return u}return e}(T(Error));var rV=function(){function t(){i(this,t)}c(t,[{key:"resetHooksRuntimes",value:function t(t){t.pluginName="",t.hookName="",t.returnValue=void 0,t.returnBreakChain=!1,t.times=0,t.breakChain=!1,t.index=void 0}},{key:"reset",value:function t(t){this.resetHooksRuntimes(t.hooksRuntimes),t.returnValue=void 0,t.error=void 0}},{key:"shouldSkipPluginHook",value:function t(t,r,e){return typeof t[r]!="function"||typeof t.enabled=="function"&&!t.enabled(r,e)}},{key:"runtimes",value:function t(t,r,e,n){t.hooksRuntimes.pluginName=r.pluginName,t.hooksRuntimes.hookName=e,t.hooksRuntimes.times=(t.hooksRuntimes.times||0)+1,t.hooksRuntimes.index=n}},{key:"runtimeReturnValue",value:function t(t,r){t.hooksRuntimes.returnValue=r}},{key:"shouldBreakChain",value:function t(t){var r;return!!((r=t.hooksRuntimes)===null||r===void 0?void 0:r.breakChain)}},{key:"shouldBreakChainOnReturn",value:function t(t){var r;return!!((r=t.hooksRuntimes)===null||r===void 0?void 0:r.returnBreakChain)}},{key:"setError",value:function t(t,r){t.error=r}}]);return t}();var rF=function(t){p(e,t);var r=C(e);function e(){i(this,e);var t;t=r.call.apply(r,[this].concat(Array.prototype.slice.call(arguments)));t.contextHandler=new rV;return t}c(e,[{key:"runHook",value:function t(t,r,e){for(var n=arguments.length,o=new Array(n>3?n-3:0),i=3;i<n;i++){o[i-3]=arguments[i]}var a=this;return u(function(){var n,u,i,s,c,l,v,p,h,y,d,g;return z(this,function(b){switch(b.label){case 0:n=-1,i=e||f({});a.contextHandler.resetHooksRuntimes(i.hooksRuntimes);s=true,c=false,l=undefined;b.label=1;case 1:b.trys.push([1,6,7,8]);v=t[Symbol.iterator]();b.label=2;case 2:if(!!(s=(p=v.next()).done))return[3,5];h=p.value;if(n++,a.contextHandler.shouldSkipPluginHook(h,r,i))return[3,4];if(a.contextHandler.shouldBreakChain(i))return[3,5];a.contextHandler.runtimes(i,h,r,n);return[4,(y=h)[r].apply(y,[i].concat(A(o)))];case 3:d=b.sent();if(d!==void 0&&(u=d,a.contextHandler.runtimeReturnValue(i,d),a.contextHandler.shouldBreakChainOnReturn(i)))return[2,u];b.label=4;case 4:s=true;return[3,2];case 5:return[3,8];case 6:g=b.sent();c=true;l=g;return[3,8];case 7:try{if(!s&&v.return!=null){v.return()}}finally{if(c){throw l}}return[7];case 8:return[2,u]}})})()}},{key:"runHooks",value:function t(t,r,e){for(var n=arguments.length,o=new Array(n>3?n-3:0),i=3;i<n;i++){o[i-3]=arguments[i]}var a=this;return u(function(){var n,u,i,s,c,f,l,v,p,h;return z(this,function(y){switch(y.label){case 0:n=Array.isArray(r)?r:[r];i=true,s=false,c=undefined;y.label=1;case 1:y.trys.push([1,6,7,8]);f=n[Symbol.iterator]();y.label=2;case 2:if(!!(i=(l=f.next()).done))return[3,5];v=l.value;return[4,a.runHook.apply(a,[t,v,e].concat(A(o)))];case 3:p=y.sent();if(p!==void 0&&(u=p),e&&a.contextHandler.shouldBreakChain(e))return[3,5];y.label=4;case 4:i=true;return[3,2];case 5:return[3,8];case 6:h=y.sent();s=true;c=h;return[3,8];case 7:try{if(!i&&f.return!=null){f.return()}}finally{if(s){throw c}}return[7];case 8:return[2,u]}})})()}},{key:"execNoError",value:function t(t,r){var e=this;return u(function(){var n;return z(this,function(o){switch(o.label){case 0:o.trys.push([0,2,,3]);return[4,e.exec(t,r)];case 1:return[2,o.sent()];case 2:n=o.sent();return[2,h(n,rB)?n:new rB("UNKNOWN_ASYNC_ERROR",n)];case 3:return[2]}})})()}},{key:"exec",value:function t(t,r){var e=r||t,n=r?t:void 0;if(typeof e!="function")throw new Error("Task must be a async function!");return this.run(n,e)}},{key:"runExec",value:function t(t,r){var e=this;return u(function(){var n,o,u;return z(this,function(i){switch(i.label){case 0:o=((n=e.config)===null||n===void 0?void 0:n.execHook)||"onExec";return[4,e.runHook(e.plugins,o,t,r)];case 1:i.sent();if(!t.hooksRuntimes.times)return[3,2];u=t.hooksRuntimes.returnValue;return[3,4];case 2:return[4,r(t)];case 3:u=i.sent();i.label=4;case 4:t.returnValue=u;return[2]}})})()}},{key:"run",value:function t(t,r){var e=this;return u(function(){var n,o,u,i,a,s;return z(this,function(c){switch(c.label){case 0:u=f(t),i=((n=e.config)===null||n===void 0?void 0:n.beforeHooks)||"onBefore",a=((o=e.config)===null||o===void 0?void 0:o.afterHooks)||"onSuccess";c.label=1;case 1:c.trys.push([1,5,7,8]);return[4,e.runHooks(e.plugins,i,u)];case 2:c.sent();return[4,e.runExec(u,r)];case 3:c.sent();return[4,e.runHooks(e.plugins,a,u)];case 4:return[2,(c.sent(),u.returnValue)];case 5:s=c.sent();e.contextHandler.setError(u,s);return[4,e.runHook(e.plugins,"onError",u)];case 6:throw c.sent(),u.hooksRuntimes.returnValue&&e.contextHandler.setError(u,u.hooksRuntimes.returnValue),h(u.error,rB)?u.error:new rB("UNKNOWN_ASYNC_ERROR",u.error);case 7:e.contextHandler.reset(u);return[7];case 8:return[2]}})})()}}]);return e}(rU);var rD=function(t){p(e,t);var r=C(e);function e(){i(this,e);var t;t=r.call.apply(r,[this].concat(Array.prototype.slice.call(arguments)));t.contextHandler=new rV;return t}c(e,[{key:"runHook",value:function t(t,r,e){for(var n=arguments.length,o=new Array(n>3?n-3:0),u=3;u<n;u++){o[u-3]=arguments[u]}var i=-1,a,s=e||f({});this.contextHandler.resetHooksRuntimes(s.hooksRuntimes);var c=true,l=false,v=undefined;try{for(var p=t[Symbol.iterator](),h;!(c=(h=p.next()).done);c=true){var y=h.value;var d;if(i++,this.contextHandler.shouldSkipPluginHook(y,r,s))continue;if(this.contextHandler.shouldBreakChain(s))break;this.contextHandler.runtimes(s,y,r,i);var g=(d=y)[r].apply(d,[s].concat(A(o)));if(g!==void 0&&(a=g,this.contextHandler.runtimeReturnValue(s,g),this.contextHandler.shouldBreakChainOnReturn(s)))return a}}catch(t){l=true;v=t}finally{try{if(!c&&p.return!=null){p.return()}}finally{if(l){throw v}}}return a}},{key:"runHooks",value:function t(t,r,e){for(var n=arguments.length,o=new Array(n>3?n-3:0),u=3;u<n;u++){o[u-3]=arguments[u]}var i=Array.isArray(r)?r:[r],a;var s=true,c=false,f=undefined;try{for(var l=i[Symbol.iterator](),v;!(s=(v=l.next()).done);s=true){var p=v.value;var h=this.runHook.apply(this,[t,p,e].concat(A(o)));if(h!==void 0&&(a=h),e&&this.contextHandler.shouldBreakChain(e))break}}catch(t){c=true;f=t}finally{try{if(!s&&l.return!=null){l.return()}}finally{if(c){throw f}}}return a}},{key:"execNoError",value:function t(t,r){try{return this.exec(t,r)}catch(t){return h(t,rB)?t:new rB("UNKNOWN_SYNC_ERROR",t)}}},{key:"exec",value:function t(t,r){var e=r||t,n=r?t:void 0;if(typeof e!="function")throw new Error("Task must be a function!");return this.run(n,e)}},{key:"runExec",value:function t(t,r){var e;var n=((e=this.config)===null||e===void 0?void 0:e.execHook)||"onExec";this.runHook(this.plugins,n,t,r),t.returnValue=t.hooksRuntimes.times?t.hooksRuntimes.returnValue:r(t)}},{key:"run",value:function t(t,r){var e,n;var o=f(t),u=((e=this.config)===null||e===void 0?void 0:e.beforeHooks)||"onBefore",i=((n=this.config)===null||n===void 0?void 0:n.afterHooks)||"onSuccess";try{return this.runHooks(this.plugins,u,o),this.runExec(o,r),this.runHooks(this.plugins,i,o),o.returnValue}catch(t){throw this.contextHandler.setError(o,t),this.runHook(this.plugins,"onError",o),o.hooksRuntimes.returnValue&&this.contextHandler.setError(o,o.hooksRuntimes.returnValue),h(o.error,rB)?o.error:new rB("UNKNOWN_SYNC_ERROR",o.error)}finally{this.contextHandler.reset(o)}}}]);return e}(rU);var rM=16,rK=3,rL=function(){return!0},r$=function(){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i(this,t);this.pluginName="RetryPlugin";this.onlyOne=!0;var e;this.options=O(x({retryDelay:1e3,useExponentialBackoff:!1,shouldRetry:rL},r),{maxRetries:Math.min(Math.max(1,(e=r.maxRetries)!==null&&e!==void 0?e:rK),rM)})}c(t,[{key:"delay",value:function t(t){var r=this;return u(function(){var e;return z(this,function(n){e=r.options.useExponentialBackoff?r.options.retryDelay*Math.pow(2,t):r.options.retryDelay;return[2,new Promise(function(t){return setTimeout(t,e)})]})})()}},{key:"onExec",value:function t(t,r){var e=this;return u(function(){return z(this,function(n){return[2,e.options.maxRetries<1?r(t):e.retry(r,t,e.options,e.options.maxRetries)]})})()}},{key:"shouldRetry",value:function t(t){var r=t.error,e=t.retryCount;return e>0&&this.options.shouldRetry(r)}},{key:"retry",value:function t(t,r,e,n){var o=this;return u(function(){var u;return z(this,function(i){switch(i.label){case 0:i.trys.push([0,2,,4]);return[4,t(r)];case 1:return[2,i.sent()];case 2:u=i.sent();if(!o.shouldRetry({error:u,retryCount:n}))throw new rB("RETRY_ERROR","All ".concat(e.maxRetries," attempts failed: ").concat(u.message));return[4,o.delay(e.maxRetries-n)];case 3:return[2,(i.sent(),n--,o.retry(t,r,e,n))];case 4:return[2]}})})()}}]);return t}();var rW=function(t){p(e,t);var r=C(e);function e(){i(this,e);return r.apply(this,arguments)}return e}(rB),rJ=function(t){return 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",t}(rJ||{});var rG=N(rp(),1),rQ=N(rI(),1),rY=["cache","credentials","headers","integrity","keepalive","mode","priority","redirect","referrer","referrerPolicy","signal"],rZ=function(){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i(this,t);if(!r.fetcher){if(typeof fetch!="function")throw new rB("ENV_FETCH_NOT_SUPPORT");r.fetcher=fetch}this.executor=new rF,this.config=r}c(t,[{key:"getConfig",value:function t(){return this.config}},{key:"usePlugin",value:function t(t){this.executor.use(t)}},{key:"request",value:function t(t){var r=this;return u(function(){var e,n,o,i,a;return z(this,function(s){e=r.getConfig(),n=(0,rG.default)({},e,t),o=n.fetcher,i=_(n,["fetcher"]);if(typeof o!="function")throw new rB("FETCHER_NONE");if(!i.url)throw new rB("URL_NONE");a=function(){var t=u(function(t){var e;return z(this,function(n){switch(n.label){case 0:return[4,o(r.parametersToRequest(t.parameters))];case 1:e=n.sent();return[2,r.toAdapterResponse(e,e,t.parameters)]}})});return function r(r){return t.apply(this,arguments)}}();return[2,r.executor.exec(i,a)]})})()}},{key:"parametersToRequest",value:function t(t){var r=t.url,e=r===void 0?"/":r,n=t.method,o=n===void 0?"GET":n,u=t.data,i=(0,rQ.default)(t,rY);return new Request(e,Object.assign(i,{body:u,method:o.toUpperCase()}))}},{key:"toAdapterResponse",value:function t(t,r,e){return{data:t,status:r.status,statusText:r.statusText,headers:this.getResponseHeaders(r),config:e,response:r}}},{key:"getResponseHeaders",value:function t(t){var r={};return t.headers.forEach(function(t,e){r[e]=t}),r}}]);return t}();var rX=function(){function t(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};i(this,t);this.config=e;this.axiosInstance=r.create(e)}c(t,[{key:"getConfig",value:function t(){return this.config}},{key:"request",value:function t(t){var r=this;return u(function(){return z(this,function(e){return[2,r.axiosInstance.request(t)]})})()}}]);return t}();var r0=function(){function t(){i(this,t);this.pluginName="FetchAbortPlugin";this.onlyOne=!0;this.controllers=new Map}c(t,[{key:"generateRequestKey",value:function t(t){if(t.requestId)return t.requestId;var r=t.params?JSON.stringify(t.params):"",e=t.body?JSON.stringify(t.body):"";return"".concat(t.method||"GET","-").concat(t.url,"-").concat(r,"-").concat(e)}},{key:"onBefore",value:function t(t){var r=this.generateRequestKey(t.parameters);if(this.controllers.has(r)&&this.abort(t.parameters),!t.parameters.signal){var e=new AbortController;this.controllers.set(r,e),t.parameters.signal=e.signal}}},{key:"onSuccess",value:function t(t){var r=t.parameters;r&&this.controllers.delete(this.generateRequestKey(r))}},{key:"onError",value:function t(t){var r=t.error,e=t.parameters;if(this.isSameAbortError(r)&&e){var n=this.generateRequestKey(e),o=this.controllers.get(n);return this.controllers.delete(n),new rW("ABORT_ERROR",(o===null||o===void 0?void 0:o.signal.reason)||r)}}},{key:"isSameAbortError",value:function t(t){return h(t,Error)&&t.name==="AbortError"||h(t,DOMException)&&t.name==="AbortError"||h(t,Event)&&t.type==="abort"}},{key:"abort",value:function t(t){var r=typeof t=="string"?t:this.generateRequestKey(t),e=this.controllers.get(r);e&&(e.abort(new rW("ABORT_ERROR","The operation was aborted")),this.controllers.delete(r),typeof t!="string"&&typeof t.onAbort=="function"&&t.onAbort.call(t,t))}},{key:"abortAll",value:function t(){this.controllers.forEach(function(t){return t.abort()}),this.controllers.clear()}}]);return t}();var r1=function(){function t(){i(this,t);this.pluginName="FetchURLPlugin"}c(t,[{key:"isFullURL",value:function t(t){return t.startsWith("http://")||t.startsWith("https://")}},{key:"appendQueryParams",value:function t(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var e="?",n="&",o=j(t.split(e),2),u=o[0],i=o[1],a=i===void 0?"":i;a.split(n).forEach(function(t){var e=j(t.split("="),2),n=e[0],o=e[1];n&&o&&(r[n]=o)});var s=Object.entries(r).map(function(t){var r=j(t,2),e=r[0],n=r[1];return"".concat(e,"=").concat(n)}).join("&");return[u,s].join(e)}},{key:"connectBaseURL",value:function t(t,r){return"".concat(r,"/").concat(t)}},{key:"buildUrl",value:function t(t){var r=t.url,e=r===void 0?"":r,n=t.baseURL,o=n===void 0?"":n,u=t.params;if(!this.isFullURL(e)){var i=e.startsWith("/")?e.slice(1):e,a=o.endsWith("/")?o.slice(0,-1):o;e=this.connectBaseURL(i,a)}return u&&Object.keys(u).length>0&&(e=this.appendQueryParams(e,u)),e}},{key:"onBefore",value:function t(t){var r=t.parameters;r.url=this.buildUrl(r)}},{key:"onSuccess",value:function t(t){var r=t.returnValue;var e=r;if(!e.response.ok){var n=new rW("RESPONSE_NOT_OK","Request failed with status: ".concat(e.status," ").concat(e.statusText));throw n.response=e.response,n}}},{key:"onError",value:function t(t){var r=t.error;return h(r,rW)?r:new rW("REQUEST_ERROR",r)}}]);return t}();var r2=N(rp(),1),r3=function(){function t(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new rF;i(this,t);this.adapter=r;this.executor=e}c(t,[{key:"usePlugin",value:function t(t){var r=this;return Array.isArray(t)?t.forEach(function(t){return r.executor.use(t)}):this.executor.use(t),this}},{key:"request",value:function t(t){var r=this;var e=(0,r2.default)({},this.adapter.getConfig(),t);return this.executor.exec(e,function(t){return r.adapter.request(t.parameters)})}}]);return t}();var r4=function(t){p(e,t);var r=C(e);function e(){i(this,e);return r.apply(this,arguments)}c(e,[{key:"request",value:function t(t){return l(v(e.prototype),"request",this).call(this,t)}},{key:"get",value:function t(t,r){var e=this;return u(function(){return z(this,function(n){return[2,e.request(O(x({url:t},r),{method:"GET"}))]})})()}},{key:"post",value:function t(t,r){var e=this;return u(function(){return z(this,function(n){return[2,e.request(O(x({url:t},r),{method:"POST"}))]})})()}},{key:"put",value:function t(t,r){var e=this;return u(function(){return z(this,function(n){return[2,e.request(O(x({url:t},r),{method:"PUT"}))]})})()}},{key:"delete",value:function t(t,r){var e=this;return u(function(){return z(this,function(n){return[2,e.request(O(x({url:t},r),{method:"DELETE"}))]})})()}},{key:"patch",value:function t(t,r){var e=this;return u(function(){return z(this,function(n){return[2,e.request(O(x({url:t},r),{method:"PATCH"}))]})})()}},{key:"head",value:function t(t,r){var e=this;return u(function(){return z(this,function(n){return[2,e.request(O(x({url:t},r),{method:"HEAD"}))]})})()}},{key:"options",value:function t(t,r){var e=this;return u(function(){return z(this,function(n){return[2,e.request(O(x({url:t},r),{method:"OPTIONS"}))]})})()}},{key:"trace",value:function t(t,r){var e=this;return u(function(){return z(this,function(n){return[2,e.request(O(x({url:t},r),{method:"TRACE"}))]})})()}},{key:"connect",value:function t(t,r){var e=this;return u(function(){return z(this,function(n){return[2,e.request(O(x({url:t},r),{method:"CONNECT"}))]})})()}}]);return e}(r3);var r6=function(t){p(e,t);var r=C(e);function e(){i(this,e);return r.apply(this,arguments)}c(e,[{key:"request",value:function t(t){return l(v(e.prototype),"request",this).call(this,t)}},{key:"get",value:function t(t,r){return this.request(O(x({},r),{url:t,method:"GET"}))}},{key:"post",value:function t(t,r,e){return this.request(O(x({},e),{url:t,method:"POST",data:r}))}},{key:"put",value:function t(t,r,e){return this.request(O(x({},e),{url:t,method:"PUT",data:r}))}},{key:"delete",value:function t(t,r){return this.request(O(x({},r),{url:t,method:"DELETE"}))}},{key:"patch",value:function t(t,r,e){return this.request(O(x({},e),{url:t,method:"PATCH",data:r}))}}]);return e}(r3);var r8;r8=Symbol.toStringTag;var r7=function(){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i(this,t);this.options=r;this[r8]="JSONSerializer"}c(t,[{key:"createReplacer",value:function t(t){return Array.isArray(t)?t:t===null?function(t,r){return typeof r=="string"?r.replace(/\r\n/g,"\n"):r}:typeof t=="function"?function(r,e){var n=typeof e=="string"?e.replace(/\r\n/g,"\n"):e;return t.call(this,r,n)}:function(t,r){return typeof r=="string"?r.replace(/\r\n/g,"\n"):r}}},{key:"stringify",value:function t(t,r,e){try{var n=this.createReplacer(r);return Array.isArray(n)?JSON.stringify(t,n,e):JSON.stringify(t,n,e!==null&&e!==void 0?e:this.options.pretty?this.options.indent||2:void 0)}catch(t){throw h(t,TypeError)&&t.message.includes("circular")?new TypeError("Cannot stringify data with circular references"):t}}},{key:"parse",value:function t(t,r){return JSON.parse(t,r)}},{key:"serialize",value:function t(t){return this.stringify(t,this.options.replacer||null,this.options.pretty?this.options.indent||2:void 0)}},{key:"deserialize",value:function t(t,r){try{return this.parse(t)}catch(t){return r}}},{key:"serializeArray",value:function t(t){return"["+t.map(function(t){return JSON.stringify(t)}).join(",")+"]"}}]);return t}();var r5=function(){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i(this,t);this.options=r}c(t,[{key:"isNodeEnvironment",value:function t(){return(typeof process==="undefined"?"undefined":P(process))<"u"&&process.versions&&!!process.versions.node}},{key:"isValidBase64",value:function t(t){try{if(!/^[A-Za-z0-9+/\-_]*={0,2}$/.test(t))return!1;var r=this.options.urlSafe?this.makeUrlUnsafe(t):t;return r.length%4!==0?!1:(this.isNodeEnvironment()?Buffer.from(r,"base64").toString("utf8"):atob(r),!0)}catch(t){return!1}}},{key:"serialize",value:function t(t){try{var r;if(this.isNodeEnvironment())r=Buffer.from(t,"utf8").toString("base64");else{var e=new TextEncoder().encode(t),n=Array.from(e,function(t){return String.fromCharCode(t)}).join("");r=btoa(n)}return this.options.urlSafe?this.makeUrlSafe(r):r}catch(t){return""}}},{key:"deserialize",value:function t(t,r){try{if(typeof t!="string")return r!==null&&r!==void 0?r:"";if(t.length===0)return"";if(!this.isValidBase64(t))return r!==null&&r!==void 0?r:"";var e=t;if(this.options.urlSafe&&(e=this.makeUrlUnsafe(t)),this.isNodeEnvironment())return Buffer.from(e,"base64").toString("utf8");{var n=atob(e),o=new Uint8Array(n.length);for(var u=0;u<n.length;u++)o[u]=n.charCodeAt(u);return new TextDecoder().decode(o)}}catch(t){return r!==null&&r!==void 0?r:""}}},{key:"makeUrlSafe",value:function t(t){return t.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}},{key:"makeUrlUnsafe",value:function t(t){for(t=t.replace(/-/g,"+").replace(/_/g,"/");t.length%4;)t+="=";return t}}]);return t}();var r9=function(){function t(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};i(this,t);var n;this.key=r;this.options=e;this.value=null;var o=(n=e.storage)===null||n===void 0?void 0:n.getItem(r);this.value=o}c(t,[{key:"getKey",value:function t(){return this.key}},{key:"getValue",value:function t(){return this.get()}}]);return t}();var et=function(t){p(e,t);var r=C(e);function e(){i(this,e);var t;t=r.call.apply(r,[this].concat(Array.prototype.slice.call(arguments)));t.value=null;return t}c(e,[{key:"mergeOptions",value:function t(t){return x({},this.options,t)}},{key:"get",value:function t(t){var r=this.mergeOptions(t),e=r.storage,n=_(r,["storage"]);if(this.value!=null)return this.value;if(e){var o=e.getItem(this.key,void 0,n);return o==null?(this.remove(),null):(this.value=o,o)}return this.value}},{key:"set",value:function t(t,r){var e=this.mergeOptions(r),n=e.storage,o=_(e,["storage"]);this.value=t,n&&n.setItem(this.key,t,o)}},{key:"remove",value:function t(t){var r=this.mergeOptions(t),e=r.storage,n=_(r,["storage"]);this.value=null,e===null||e===void 0?void 0:e.removeItem(this.key,n)}}]);return e}(r9);var er=function(){function t(r){i(this,t);this.serializer=r;this.store=new Map}c(t,[{key:"length",get:function t(){return this.store.size}},{key:"setItem",value:function t(t,r,e){var n={key:t,value:r!==null&&r!==void 0?r:null};typeof(e===null||e===void 0?void 0:e.expires)=="number"&&e.expires>0&&(n.expires=e.expires);var o=this.serializer?this.serializer.serialize(n):n;return this.store.set(t,o),o}},{key:"getItem",value:function t(t,r){var e=this.store.get(t),n=r!==null&&r!==void 0?r:null;if(!e)return n;var o=this.serializer?this.serializer.deserialize(e,n):e;return this.getRawValue(o,n)}},{key:"getRawValue",value:function t(t,r){var e,n;return this.isStorageValue(t)?this.isExpired(t)?(this.removeItem(t.key),r!==null&&r!==void 0?r:null):(e=t===null||t===void 0?void 0:t.value)!==null&&e!==void 0?e:r:(n=t!==null&&t!==void 0?t:r)!==null&&n!==void 0?n:null}},{key:"removeItem",value:function t(t){this.store.delete(t)}},{key:"clear",value:function t(){this.store.clear()}},{key:"isExpired",value:function t(t){return typeof t.expires=="number"&&t.expires<Date.now()&&t.expires>0}},{key:"isStorageValue",value:function t(t){return(typeof t==="undefined"?"undefined":P(t))=="object"&&t!==null&&"key"in t&&"value"in t}},{key:"getSerializer",value:function t(){return this.serializer}}]);return t}();var ee={setItem:{serialize:function(r,e){return(t=r).serialize.apply(t,A(e))},encrypt:function(t,e){return(r=t).encrypt.apply(r,A(e))},storage:function(t,r){return(e=t).setItem.apply(e,A(r))}},getItem:{serialize:function(t,r){return(o=t).deserialize.apply(o,A(r))},encrypt:function(t,r){return(a=t).decrypt.apply(a,A(r))},storage:function(t,r){return(s=t).getItem.apply(s,A(r))}}},en=function(){function t(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];i(this,t);this.storage=r;this.pipes=(Array.isArray(e)?e:[e]).map(function(t){return y(t)}).filter(function(t){return t!=null})}c(t,[{key:"length",get:function t(){return this.storage.length}},{key:"setItem",value:function t(t,r,e){var n=r;var o=true,u=false,i=undefined;try{for(var a=this.pipes[Symbol.iterator](),s;!(o=(s=a.next()).done);o=true){var c=s.value;var f=c.type,l=c.pipe;if(f==="storage")l.setItem(t,n,e);else{var v=ee.setItem[f](l,[n]);v!=null&&(n=v)}}}catch(t){u=true;i=t}finally{try{if(!o&&a.return!=null){a.return()}}finally{if(u){throw i}}}this.storage.setItem(t,n,e)}},{key:"getItem",value:function t(t,r,e){var n=this.storage.getItem(t,r,e);if(n==null){var o=A(this.pipes).reverse();var u=true,i=false,a=undefined;try{for(var s=o[Symbol.iterator](),c;!(u=(c=s.next()).done);u=true){var f=c.value;var l=f.type,v=f.pipe;if(l!=="storage")continue;var p=ee.getItem[l](v,[t,n,e]);if(p!=null){n=p;break}}}catch(t){i=true;a=t}finally{try{if(!u&&s.return!=null){s.return()}}finally{if(i){throw a}}}}if(n==null)return r!==null&&r!==void 0?r:null;var h=A(this.pipes).reverse();var y=true,d=false,g=undefined;try{for(var b=h[Symbol.iterator](),m;!(y=(m=b.next()).done);y=true){var x=m.value;var k=x.type,O=x.pipe;k!=="storage"&&(n=ee.getItem[k](O,[n]))}}catch(t){d=true;g=t}finally{try{if(!y&&b.return!=null){b.return()}}finally{if(d){throw g}}}return n!==null&&this.storage.getRawValue&&(n=this.storage.getRawValue(n,e)),n!==null&&n!==void 0?n:null}},{key:"removeItem",value:function t(t,r){this.storage.removeItem(t,r),this.pipes.filter(function(t){return t.type==="storage"}).forEach(function(e){e.pipe.removeItem(t,r)})}},{key:"clear",value:function t(){this.storage.clear(),this.pipes.filter(function(t){return t.type==="storage"}).forEach(function(t){t.pipe.clear()})}}]);return t}();return H(rq)}();
|