UNPKG

@zhouchangju/standard-chart

Version:

标准范式组件

1,478 lines (1,224 loc) 5.07 MB
/*! * @zhouchangju/standard-chart 标准范式图表组件库 * @description 标准范式组件 * @version 1.10.2-alpha-20250806 * @date 8/6/2025, 8:42:33 PM * @author */ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); } var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; var check = function (it) { return it && it.Math === Math && it; }; // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 var globalThis_1 = // eslint-disable-next-line es/no-global-this -- safe check(typeof globalThis == 'object' && globalThis) || check(typeof window == 'object' && window) || // eslint-disable-next-line no-restricted-globals -- safe check(typeof self == 'object' && self) || check(typeof commonjsGlobal == 'object' && commonjsGlobal) || check(typeof commonjsGlobal == 'object' && commonjsGlobal) || // eslint-disable-next-line no-new-func -- fallback (function () { return this; })() || Function('return this')(); var objectGetOwnPropertyDescriptor = {}; var fails$12 = function (exec) { try { return !!exec(); } catch (error) { return true; } }; var fails$11 = fails$12; // Detect IE8's incomplete defineProperty implementation var descriptors = !fails$11(function () { // eslint-disable-next-line es/no-object-defineproperty -- required for testing return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7; }); var fails$10 = fails$12; var functionBindNative = !fails$10(function () { // eslint-disable-next-line es/no-function-prototype-bind -- safe var test = (function () { /* empty */ }).bind(); // eslint-disable-next-line no-prototype-builtins -- safe return typeof test != 'function' || test.hasOwnProperty('prototype'); }); var NATIVE_BIND$4 = functionBindNative; var call$I = Function.prototype.call; // eslint-disable-next-line es/no-function-prototype-bind -- safe var functionCall = NATIVE_BIND$4 ? call$I.bind(call$I) : function () { return call$I.apply(call$I, arguments); }; var objectPropertyIsEnumerable = {}; var $propertyIsEnumerable$2 = {}.propertyIsEnumerable; // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var getOwnPropertyDescriptor$6 = Object.getOwnPropertyDescriptor; // Nashorn ~ JDK8 bug var NASHORN_BUG = getOwnPropertyDescriptor$6 && !$propertyIsEnumerable$2.call({ 1: 2 }, 1); // `Object.prototype.propertyIsEnumerable` method implementation // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) { var descriptor = getOwnPropertyDescriptor$6(this, V); return !!descriptor && descriptor.enumerable; } : $propertyIsEnumerable$2; var createPropertyDescriptor$9 = function (bitmap, value) { return { enumerable: !(bitmap & 1), configurable: !(bitmap & 2), writable: !(bitmap & 4), value: value }; }; var NATIVE_BIND$3 = functionBindNative; var FunctionPrototype$3 = Function.prototype; var call$H = FunctionPrototype$3.call; // eslint-disable-next-line es/no-function-prototype-bind -- safe var uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$3.bind.bind(call$H, call$H); var functionUncurryThis = NATIVE_BIND$3 ? uncurryThisWithBind : function (fn) { return function () { return call$H.apply(fn, arguments); }; }; var uncurryThis$Y = functionUncurryThis; var toString$q = uncurryThis$Y({}.toString); var stringSlice$d = uncurryThis$Y(''.slice); var classofRaw$2 = function (it) { return stringSlice$d(toString$q(it), 8, -1); }; var uncurryThis$X = functionUncurryThis; var fails$$ = fails$12; var classof$j = classofRaw$2; var $Object$5 = Object; var split$1 = uncurryThis$X(''.split); // fallback for non-array-like ES3 and non-enumerable old V8 strings var indexedObject = fails$$(function () { // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346 // eslint-disable-next-line no-prototype-builtins -- safe return !$Object$5('z').propertyIsEnumerable(0); }) ? function (it) { return classof$j(it) === 'String' ? split$1(it, '') : $Object$5(it); } : $Object$5; // we can't use just `it == null` since of `document.all` special case // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec var isNullOrUndefined$7 = function (it) { return it === null || it === undefined; }; var isNullOrUndefined$6 = isNullOrUndefined$7; var $TypeError$r = TypeError; // `RequireObjectCoercible` abstract operation // https://tc39.es/ecma262/#sec-requireobjectcoercible var requireObjectCoercible$f = function (it) { if (isNullOrUndefined$6(it)) throw new $TypeError$r("Can't call method on " + it); return it; }; // toObject with fallback for non-array-like ES3 strings var IndexedObject$5 = indexedObject; var requireObjectCoercible$e = requireObjectCoercible$f; var toIndexedObject$f = function (it) { return IndexedObject$5(requireObjectCoercible$e(it)); }; // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot var documentAll = typeof document == 'object' && document.all; // `IsCallable` abstract operation // https://tc39.es/ecma262/#sec-iscallable // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing var isCallable$t = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) { return typeof argument == 'function' || argument === documentAll; } : function (argument) { return typeof argument == 'function'; }; var isCallable$s = isCallable$t; var isObject$B = function (it) { return typeof it == 'object' ? it !== null : isCallable$s(it); }; var globalThis$V = globalThis_1; var isCallable$r = isCallable$t; var aFunction = function (argument) { return isCallable$r(argument) ? argument : undefined; }; var getBuiltIn$i = function (namespace, method) { return arguments.length < 2 ? aFunction(globalThis$V[namespace]) : globalThis$V[namespace] && globalThis$V[namespace][method]; }; var uncurryThis$W = functionUncurryThis; var objectIsPrototypeOf = uncurryThis$W({}.isPrototypeOf); var globalThis$U = globalThis_1; var navigator$1 = globalThis$U.navigator; var userAgent$8 = navigator$1 && navigator$1.userAgent; var environmentUserAgent = userAgent$8 ? String(userAgent$8) : ''; var globalThis$T = globalThis_1; var userAgent$7 = environmentUserAgent; var process$4 = globalThis$T.process; var Deno$1 = globalThis$T.Deno; var versions = process$4 && process$4.versions || Deno$1 && Deno$1.version; var v8 = versions && versions.v8; var match, version$3; if (v8) { match = v8.split('.'); // in old Chrome, versions of V8 isn't V8 = Chrome / 10 // but their correct versions are not interesting for us version$3 = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]); } // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0` // so check `userAgent` even if `.v8` exists, but 0 if (!version$3 && userAgent$7) { match = userAgent$7.match(/Edge\/(\d+)/); if (!match || match[1] >= 74) { match = userAgent$7.match(/Chrome\/(\d+)/); if (match) version$3 = +match[1]; } } var environmentV8Version = version$3; /* eslint-disable es/no-symbol -- required for testing */ var V8_VERSION$3 = environmentV8Version; var fails$_ = fails$12; var globalThis$S = globalThis_1; var $String$8 = globalThis$S.String; // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$_(function () { var symbol = Symbol('symbol detection'); // Chrome 38 Symbol has incorrect toString conversion // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will, // of course, fail. return !$String$8(symbol) || !(Object(symbol) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances !Symbol.sham && V8_VERSION$3 && V8_VERSION$3 < 41; }); /* eslint-disable es/no-symbol -- required for testing */ var NATIVE_SYMBOL$6 = symbolConstructorDetection; var useSymbolAsUid = NATIVE_SYMBOL$6 && !Symbol.sham && typeof Symbol.iterator == 'symbol'; var getBuiltIn$h = getBuiltIn$i; var isCallable$q = isCallable$t; var isPrototypeOf$a = objectIsPrototypeOf; var USE_SYMBOL_AS_UID$1 = useSymbolAsUid; var $Object$4 = Object; var isSymbol$6 = USE_SYMBOL_AS_UID$1 ? function (it) { return typeof it == 'symbol'; } : function (it) { var $Symbol = getBuiltIn$h('Symbol'); return isCallable$q($Symbol) && isPrototypeOf$a($Symbol.prototype, $Object$4(it)); }; var $String$7 = String; var tryToString$7 = function (argument) { try { return $String$7(argument); } catch (error) { return 'Object'; } }; var isCallable$p = isCallable$t; var tryToString$6 = tryToString$7; var $TypeError$q = TypeError; // `Assert: IsCallable(argument) is true` var aCallable$o = function (argument) { if (isCallable$p(argument)) return argument; throw new $TypeError$q(tryToString$6(argument) + ' is not a function'); }; var aCallable$n = aCallable$o; var isNullOrUndefined$5 = isNullOrUndefined$7; // `GetMethod` abstract operation // https://tc39.es/ecma262/#sec-getmethod var getMethod$8 = function (V, P) { var func = V[P]; return isNullOrUndefined$5(func) ? undefined : aCallable$n(func); }; var call$G = functionCall; var isCallable$o = isCallable$t; var isObject$A = isObject$B; var $TypeError$p = TypeError; // `OrdinaryToPrimitive` abstract operation // https://tc39.es/ecma262/#sec-ordinarytoprimitive var ordinaryToPrimitive$2 = function (input, pref) { var fn, val; if (pref === 'string' && isCallable$o(fn = input.toString) && !isObject$A(val = call$G(fn, input))) return val; if (isCallable$o(fn = input.valueOf) && !isObject$A(val = call$G(fn, input))) return val; if (pref !== 'string' && isCallable$o(fn = input.toString) && !isObject$A(val = call$G(fn, input))) return val; throw new $TypeError$p("Can't convert object to primitive value"); }; var sharedStore = {exports: {}}; var isPure = false; var globalThis$R = globalThis_1; // eslint-disable-next-line es/no-object-defineproperty -- safe var defineProperty$d = Object.defineProperty; var defineGlobalProperty$3 = function (key, value) { try { defineProperty$d(globalThis$R, key, { value: value, configurable: true, writable: true }); } catch (error) { globalThis$R[key] = value; } return value; }; var globalThis$Q = globalThis_1; var defineGlobalProperty$2 = defineGlobalProperty$3; var SHARED = '__core-js_shared__'; var store$3 = sharedStore.exports = globalThis$Q[SHARED] || defineGlobalProperty$2(SHARED, {}); (store$3.versions || (store$3.versions = [])).push({ version: '3.44.0', mode: 'global', copyright: '© 2014-2025 Denis Pushkarev (zloirock.ru)', license: 'https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE', source: 'https://github.com/zloirock/core-js' }); var store$2 = sharedStore.exports; var shared$7 = function (key, value) { return store$2[key] || (store$2[key] = value || {}); }; var requireObjectCoercible$d = requireObjectCoercible$f; var $Object$3 = Object; // `ToObject` abstract operation // https://tc39.es/ecma262/#sec-toobject var toObject$l = function (argument) { return $Object$3(requireObjectCoercible$d(argument)); }; var uncurryThis$V = functionUncurryThis; var toObject$k = toObject$l; var hasOwnProperty = uncurryThis$V({}.hasOwnProperty); // `HasOwnProperty` abstract operation // https://tc39.es/ecma262/#sec-hasownproperty // eslint-disable-next-line es/no-object-hasown -- safe var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) { return hasOwnProperty(toObject$k(it), key); }; var uncurryThis$U = functionUncurryThis; var id$2 = 0; var postfix = Math.random(); var toString$p = uncurryThis$U(1.1.toString); var uid$5 = function (key) { return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$p(++id$2 + postfix, 36); }; var globalThis$P = globalThis_1; var shared$6 = shared$7; var hasOwn$t = hasOwnProperty_1; var uid$4 = uid$5; var NATIVE_SYMBOL$5 = symbolConstructorDetection; var USE_SYMBOL_AS_UID = useSymbolAsUid; var Symbol$2 = globalThis$P.Symbol; var WellKnownSymbolsStore$1 = shared$6('wks'); var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2['for'] || Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$4; var wellKnownSymbol$v = function (name) { if (!hasOwn$t(WellKnownSymbolsStore$1, name)) { WellKnownSymbolsStore$1[name] = NATIVE_SYMBOL$5 && hasOwn$t(Symbol$2, name) ? Symbol$2[name] : createWellKnownSymbol('Symbol.' + name); } return WellKnownSymbolsStore$1[name]; }; var call$F = functionCall; var isObject$z = isObject$B; var isSymbol$5 = isSymbol$6; var getMethod$7 = getMethod$8; var ordinaryToPrimitive$1 = ordinaryToPrimitive$2; var wellKnownSymbol$u = wellKnownSymbol$v; var $TypeError$o = TypeError; var TO_PRIMITIVE$1 = wellKnownSymbol$u('toPrimitive'); // `ToPrimitive` abstract operation // https://tc39.es/ecma262/#sec-toprimitive var toPrimitive$4 = function (input, pref) { if (!isObject$z(input) || isSymbol$5(input)) return input; var exoticToPrim = getMethod$7(input, TO_PRIMITIVE$1); var result; if (exoticToPrim) { if (pref === undefined) pref = 'default'; result = call$F(exoticToPrim, input, pref); if (!isObject$z(result) || isSymbol$5(result)) return result; throw new $TypeError$o("Can't convert object to primitive value"); } if (pref === undefined) pref = 'number'; return ordinaryToPrimitive$1(input, pref); }; var toPrimitive$3 = toPrimitive$4; var isSymbol$4 = isSymbol$6; // `ToPropertyKey` abstract operation // https://tc39.es/ecma262/#sec-topropertykey var toPropertyKey$5 = function (argument) { var key = toPrimitive$3(argument, 'string'); return isSymbol$4(key) ? key : key + ''; }; var globalThis$O = globalThis_1; var isObject$y = isObject$B; var document$3 = globalThis$O.document; // typeof document.createElement is 'object' in old IE var EXISTS$1 = isObject$y(document$3) && isObject$y(document$3.createElement); var documentCreateElement$2 = function (it) { return EXISTS$1 ? document$3.createElement(it) : {}; }; var DESCRIPTORS$y = descriptors; var fails$Z = fails$12; var createElement$2 = documentCreateElement$2; // Thanks to IE8 for its funny defineProperty var ie8DomDefine = !DESCRIPTORS$y && !fails$Z(function () { // eslint-disable-next-line es/no-object-defineproperty -- required for testing return Object.defineProperty(createElement$2('div'), 'a', { get: function () { return 7; } }).a !== 7; }); var DESCRIPTORS$x = descriptors; var call$E = functionCall; var propertyIsEnumerableModule$2 = objectPropertyIsEnumerable; var createPropertyDescriptor$8 = createPropertyDescriptor$9; var toIndexedObject$e = toIndexedObject$f; var toPropertyKey$4 = toPropertyKey$5; var hasOwn$s = hasOwnProperty_1; var IE8_DOM_DEFINE$1 = ie8DomDefine; // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var $getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor; // `Object.getOwnPropertyDescriptor` method // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor objectGetOwnPropertyDescriptor.f = DESCRIPTORS$x ? $getOwnPropertyDescriptor$2 : function getOwnPropertyDescriptor(O, P) { O = toIndexedObject$e(O); P = toPropertyKey$4(P); if (IE8_DOM_DEFINE$1) try { return $getOwnPropertyDescriptor$2(O, P); } catch (error) { /* empty */ } if (hasOwn$s(O, P)) return createPropertyDescriptor$8(!call$E(propertyIsEnumerableModule$2.f, O, P), O[P]); }; var objectDefineProperty = {}; var DESCRIPTORS$w = descriptors; var fails$Y = fails$12; // V8 ~ Chrome 36- // https://bugs.chromium.org/p/v8/issues/detail?id=3334 var v8PrototypeDefineBug = DESCRIPTORS$w && fails$Y(function () { // eslint-disable-next-line es/no-object-defineproperty -- required for testing return Object.defineProperty(function () { /* empty */ }, 'prototype', { value: 42, writable: false }).prototype !== 42; }); var isObject$x = isObject$B; var $String$6 = String; var $TypeError$n = TypeError; // `Assert: Type(argument) is Object` var anObject$B = function (argument) { if (isObject$x(argument)) return argument; throw new $TypeError$n($String$6(argument) + ' is not an object'); }; var DESCRIPTORS$v = descriptors; var IE8_DOM_DEFINE = ie8DomDefine; var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug; var anObject$A = anObject$B; var toPropertyKey$3 = toPropertyKey$5; var $TypeError$m = TypeError; // eslint-disable-next-line es/no-object-defineproperty -- safe var $defineProperty$1 = Object.defineProperty; // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; var ENUMERABLE = 'enumerable'; var CONFIGURABLE$1 = 'configurable'; var WRITABLE = 'writable'; // `Object.defineProperty` method // https://tc39.es/ecma262/#sec-object.defineproperty objectDefineProperty.f = DESCRIPTORS$v ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) { anObject$A(O); P = toPropertyKey$3(P); anObject$A(Attributes); if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) { var current = $getOwnPropertyDescriptor$1(O, P); if (current && current[WRITABLE]) { O[P] = Attributes.value; Attributes = { configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1], enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE], writable: false }; } } return $defineProperty$1(O, P, Attributes); } : $defineProperty$1 : function defineProperty(O, P, Attributes) { anObject$A(O); P = toPropertyKey$3(P); anObject$A(Attributes); if (IE8_DOM_DEFINE) try { return $defineProperty$1(O, P, Attributes); } catch (error) { /* empty */ } if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$m('Accessors not supported'); if ('value' in Attributes) O[P] = Attributes.value; return O; }; var DESCRIPTORS$u = descriptors; var definePropertyModule$6 = objectDefineProperty; var createPropertyDescriptor$7 = createPropertyDescriptor$9; var createNonEnumerableProperty$e = DESCRIPTORS$u ? function (object, key, value) { return definePropertyModule$6.f(object, key, createPropertyDescriptor$7(1, value)); } : function (object, key, value) { object[key] = value; return object; }; var makeBuiltIn$3 = {exports: {}}; var DESCRIPTORS$t = descriptors; var hasOwn$r = hasOwnProperty_1; var FunctionPrototype$2 = Function.prototype; // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var getDescriptor = DESCRIPTORS$t && Object.getOwnPropertyDescriptor; var EXISTS = hasOwn$r(FunctionPrototype$2, 'name'); // additional protection from minified / mangled / dropped function names var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something'; var CONFIGURABLE = EXISTS && (!DESCRIPTORS$t || (DESCRIPTORS$t && getDescriptor(FunctionPrototype$2, 'name').configurable)); var functionName = { EXISTS: EXISTS, PROPER: PROPER, CONFIGURABLE: CONFIGURABLE }; var uncurryThis$T = functionUncurryThis; var isCallable$n = isCallable$t; var store$1 = sharedStore.exports; var functionToString$1 = uncurryThis$T(Function.toString); // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper if (!isCallable$n(store$1.inspectSource)) { store$1.inspectSource = function (it) { return functionToString$1(it); }; } var inspectSource$3 = store$1.inspectSource; var globalThis$N = globalThis_1; var isCallable$m = isCallable$t; var WeakMap$3 = globalThis$N.WeakMap; var weakMapBasicDetection = isCallable$m(WeakMap$3) && /native code/.test(String(WeakMap$3)); var shared$5 = shared$7; var uid$3 = uid$5; var keys$3 = shared$5('keys'); var sharedKey$4 = function (key) { return keys$3[key] || (keys$3[key] = uid$3(key)); }; var hiddenKeys$6 = {}; var NATIVE_WEAK_MAP$1 = weakMapBasicDetection; var globalThis$M = globalThis_1; var isObject$w = isObject$B; var createNonEnumerableProperty$d = createNonEnumerableProperty$e; var hasOwn$q = hasOwnProperty_1; var shared$4 = sharedStore.exports; var sharedKey$3 = sharedKey$4; var hiddenKeys$5 = hiddenKeys$6; var OBJECT_ALREADY_INITIALIZED = 'Object already initialized'; var TypeError$6 = globalThis$M.TypeError; var WeakMap$2 = globalThis$M.WeakMap; var set$5, get$4, has$8; var enforce = function (it) { return has$8(it) ? get$4(it) : set$5(it, {}); }; var getterFor$1 = function (TYPE) { return function (it) { var state; if (!isObject$w(it) || (state = get$4(it)).type !== TYPE) { throw new TypeError$6('Incompatible receiver, ' + TYPE + ' required'); } return state; }; }; if (NATIVE_WEAK_MAP$1 || shared$4.state) { var store = shared$4.state || (shared$4.state = new WeakMap$2()); /* eslint-disable no-self-assign -- prototype methods protection */ store.get = store.get; store.has = store.has; store.set = store.set; /* eslint-enable no-self-assign -- prototype methods protection */ set$5 = function (it, metadata) { if (store.has(it)) throw new TypeError$6(OBJECT_ALREADY_INITIALIZED); metadata.facade = it; store.set(it, metadata); return metadata; }; get$4 = function (it) { return store.get(it) || {}; }; has$8 = function (it) { return store.has(it); }; } else { var STATE$1 = sharedKey$3('state'); hiddenKeys$5[STATE$1] = true; set$5 = function (it, metadata) { if (hasOwn$q(it, STATE$1)) throw new TypeError$6(OBJECT_ALREADY_INITIALIZED); metadata.facade = it; createNonEnumerableProperty$d(it, STATE$1, metadata); return metadata; }; get$4 = function (it) { return hasOwn$q(it, STATE$1) ? it[STATE$1] : {}; }; has$8 = function (it) { return hasOwn$q(it, STATE$1); }; } var internalState = { set: set$5, get: get$4, has: has$8, enforce: enforce, getterFor: getterFor$1 }; var uncurryThis$S = functionUncurryThis; var fails$X = fails$12; var isCallable$l = isCallable$t; var hasOwn$p = hasOwnProperty_1; var DESCRIPTORS$s = descriptors; var CONFIGURABLE_FUNCTION_NAME$2 = functionName.CONFIGURABLE; var inspectSource$2 = inspectSource$3; var InternalStateModule$b = internalState; var enforceInternalState$4 = InternalStateModule$b.enforce; var getInternalState$9 = InternalStateModule$b.get; var $String$5 = String; // eslint-disable-next-line es/no-object-defineproperty -- safe var defineProperty$c = Object.defineProperty; var stringSlice$c = uncurryThis$S(''.slice); var replace$9 = uncurryThis$S(''.replace); var join$2 = uncurryThis$S([].join); var CONFIGURABLE_LENGTH = DESCRIPTORS$s && !fails$X(function () { return defineProperty$c(function () { /* empty */ }, 'length', { value: 8 }).length !== 8; }); var TEMPLATE = String(String).split('String'); var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) { if (stringSlice$c($String$5(name), 0, 7) === 'Symbol(') { name = '[' + replace$9($String$5(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']'; } if (options && options.getter) name = 'get ' + name; if (options && options.setter) name = 'set ' + name; if (!hasOwn$p(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$2 && value.name !== name)) { if (DESCRIPTORS$s) defineProperty$c(value, 'name', { value: name, configurable: true }); else value.name = name; } if (CONFIGURABLE_LENGTH && options && hasOwn$p(options, 'arity') && value.length !== options.arity) { defineProperty$c(value, 'length', { value: options.arity }); } try { if (options && hasOwn$p(options, 'constructor') && options.constructor) { if (DESCRIPTORS$s) defineProperty$c(value, 'prototype', { writable: false }); // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable } else if (value.prototype) value.prototype = undefined; } catch (error) { /* empty */ } var state = enforceInternalState$4(value); if (!hasOwn$p(state, 'source')) { state.source = join$2(TEMPLATE, typeof name == 'string' ? name : ''); } return value; }; // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative // eslint-disable-next-line no-extend-native -- required Function.prototype.toString = makeBuiltIn$2(function toString() { return isCallable$l(this) && getInternalState$9(this).source || inspectSource$2(this); }, 'toString'); var isCallable$k = isCallable$t; var definePropertyModule$5 = objectDefineProperty; var makeBuiltIn$1 = makeBuiltIn$3.exports; var defineGlobalProperty$1 = defineGlobalProperty$3; var defineBuiltIn$g = function (O, key, value, options) { if (!options) options = {}; var simple = options.enumerable; var name = options.name !== undefined ? options.name : key; if (isCallable$k(value)) makeBuiltIn$1(value, name, options); if (options.global) { if (simple) O[key] = value; else defineGlobalProperty$1(key, value); } else { try { if (!options.unsafe) delete O[key]; else if (O[key]) simple = true; } catch (error) { /* empty */ } if (simple) O[key] = value; else definePropertyModule$5.f(O, key, { value: value, enumerable: false, configurable: !options.nonConfigurable, writable: !options.nonWritable }); } return O; }; var objectGetOwnPropertyNames = {}; var ceil$1 = Math.ceil; var floor$7 = Math.floor; // `Math.trunc` method // https://tc39.es/ecma262/#sec-math.trunc // eslint-disable-next-line es/no-math-trunc -- safe var mathTrunc = Math.trunc || function trunc(x) { var n = +x; return (n > 0 ? floor$7 : ceil$1)(n); }; var trunc = mathTrunc; // `ToIntegerOrInfinity` abstract operation // https://tc39.es/ecma262/#sec-tointegerorinfinity var toIntegerOrInfinity$h = function (argument) { var number = +argument; // eslint-disable-next-line no-self-compare -- NaN check return number !== number || number === 0 ? 0 : trunc(number); }; var toIntegerOrInfinity$g = toIntegerOrInfinity$h; var max$6 = Math.max; var min$b = Math.min; // Helper for a popular repeating case of the spec: // Let integer be ? ToInteger(index). // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length). var toAbsoluteIndex$6 = function (index, length) { var integer = toIntegerOrInfinity$g(index); return integer < 0 ? max$6(integer + length, 0) : min$b(integer, length); }; var toIntegerOrInfinity$f = toIntegerOrInfinity$h; var min$a = Math.min; // `ToLength` abstract operation // https://tc39.es/ecma262/#sec-tolength var toLength$b = function (argument) { var len = toIntegerOrInfinity$f(argument); return len > 0 ? min$a(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 }; var toLength$a = toLength$b; // `LengthOfArrayLike` abstract operation // https://tc39.es/ecma262/#sec-lengthofarraylike var lengthOfArrayLike$o = function (obj) { return toLength$a(obj.length); }; var toIndexedObject$d = toIndexedObject$f; var toAbsoluteIndex$5 = toAbsoluteIndex$6; var lengthOfArrayLike$n = lengthOfArrayLike$o; // `Array.prototype.{ indexOf, includes }` methods implementation var createMethod$7 = function (IS_INCLUDES) { return function ($this, el, fromIndex) { var O = toIndexedObject$d($this); var length = lengthOfArrayLike$n(O); if (length === 0) return !IS_INCLUDES && -1; var index = toAbsoluteIndex$5(fromIndex, length); var value; // Array#includes uses SameValueZero equality algorithm // eslint-disable-next-line no-self-compare -- NaN check if (IS_INCLUDES && el !== el) while (length > index) { value = O[index++]; // eslint-disable-next-line no-self-compare -- NaN check if (value !== value) return true; // Array#indexOf ignores holes, Array#includes - not } else for (;length > index; index++) { if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0; } return !IS_INCLUDES && -1; }; }; var arrayIncludes = { // `Array.prototype.includes` method // https://tc39.es/ecma262/#sec-array.prototype.includes includes: createMethod$7(true), // `Array.prototype.indexOf` method // https://tc39.es/ecma262/#sec-array.prototype.indexof indexOf: createMethod$7(false) }; var uncurryThis$R = functionUncurryThis; var hasOwn$o = hasOwnProperty_1; var toIndexedObject$c = toIndexedObject$f; var indexOf$2 = arrayIncludes.indexOf; var hiddenKeys$4 = hiddenKeys$6; var push$a = uncurryThis$R([].push); var objectKeysInternal = function (object, names) { var O = toIndexedObject$c(object); var i = 0; var result = []; var key; for (key in O) !hasOwn$o(hiddenKeys$4, key) && hasOwn$o(O, key) && push$a(result, key); // Don't enum bug & hidden keys while (names.length > i) if (hasOwn$o(O, key = names[i++])) { ~indexOf$2(result, key) || push$a(result, key); } return result; }; // IE8- don't enum bug keys var enumBugKeys$3 = [ 'constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf' ]; var internalObjectKeys$1 = objectKeysInternal; var enumBugKeys$2 = enumBugKeys$3; var hiddenKeys$3 = enumBugKeys$2.concat('length', 'prototype'); // `Object.getOwnPropertyNames` method // https://tc39.es/ecma262/#sec-object.getownpropertynames // eslint-disable-next-line es/no-object-getownpropertynames -- safe objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { return internalObjectKeys$1(O, hiddenKeys$3); }; var objectGetOwnPropertySymbols = {}; // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols; var getBuiltIn$g = getBuiltIn$i; var uncurryThis$Q = functionUncurryThis; var getOwnPropertyNamesModule$2 = objectGetOwnPropertyNames; var getOwnPropertySymbolsModule$3 = objectGetOwnPropertySymbols; var anObject$z = anObject$B; var concat$3 = uncurryThis$Q([].concat); // all object keys, includes non-enumerable and symbols var ownKeys$3 = getBuiltIn$g('Reflect', 'ownKeys') || function ownKeys(it) { var keys = getOwnPropertyNamesModule$2.f(anObject$z(it)); var getOwnPropertySymbols = getOwnPropertySymbolsModule$3.f; return getOwnPropertySymbols ? concat$3(keys, getOwnPropertySymbols(it)) : keys; }; var hasOwn$n = hasOwnProperty_1; var ownKeys$2 = ownKeys$3; var getOwnPropertyDescriptorModule$4 = objectGetOwnPropertyDescriptor; var definePropertyModule$4 = objectDefineProperty; var copyConstructorProperties$5 = function (target, source, exceptions) { var keys = ownKeys$2(source); var defineProperty = definePropertyModule$4.f; var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule$4.f; for (var i = 0; i < keys.length; i++) { var key = keys[i]; if (!hasOwn$n(target, key) && !(exceptions && hasOwn$n(exceptions, key))) { defineProperty(target, key, getOwnPropertyDescriptor(source, key)); } } }; var fails$W = fails$12; var isCallable$j = isCallable$t; var replacement = /#|\.prototype\./; var isForced$5 = function (feature, detection) { var value = data[normalize$5(feature)]; return value === POLYFILL ? true : value === NATIVE ? false : isCallable$j(detection) ? fails$W(detection) : !!detection; }; var normalize$5 = isForced$5.normalize = function (string) { return String(string).replace(replacement, '.').toLowerCase(); }; var data = isForced$5.data = {}; var NATIVE = isForced$5.NATIVE = 'N'; var POLYFILL = isForced$5.POLYFILL = 'P'; var isForced_1 = isForced$5; var globalThis$L = globalThis_1; var getOwnPropertyDescriptor$5 = objectGetOwnPropertyDescriptor.f; var createNonEnumerableProperty$c = createNonEnumerableProperty$e; var defineBuiltIn$f = defineBuiltIn$g; var defineGlobalProperty = defineGlobalProperty$3; var copyConstructorProperties$4 = copyConstructorProperties$5; var isForced$4 = isForced_1; /* options.target - name of the target object options.global - target is the global object options.stat - export as static methods of target options.proto - export as prototype methods of target options.real - real prototype method for the `pure` version options.forced - export even if the native feature is available options.bind - bind methods to the target, required for the `pure` version options.wrap - wrap constructors to preventing global pollution, required for the `pure` version options.unsafe - use the simple assignment of property instead of delete + defineProperty options.sham - add a flag to not completely full polyfills options.enumerable - export as enumerable property options.dontCallGetSet - prevent calling a getter on target options.name - the .name of the function if it does not match the key */ var _export = function (options, source) { var TARGET = options.target; var GLOBAL = options.global; var STATIC = options.stat; var FORCED, target, key, targetProperty, sourceProperty, descriptor; if (GLOBAL) { target = globalThis$L; } else if (STATIC) { target = globalThis$L[TARGET] || defineGlobalProperty(TARGET, {}); } else { target = globalThis$L[TARGET] && globalThis$L[TARGET].prototype; } if (target) for (key in source) { sourceProperty = source[key]; if (options.dontCallGetSet) { descriptor = getOwnPropertyDescriptor$5(target, key); targetProperty = descriptor && descriptor.value; } else targetProperty = target[key]; FORCED = isForced$4(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); // contained in target if (!FORCED && targetProperty !== undefined) { if (typeof sourceProperty == typeof targetProperty) continue; copyConstructorProperties$4(sourceProperty, targetProperty); } // add a flag to not completely full polyfills if (options.sham || (targetProperty && targetProperty.sham)) { createNonEnumerableProperty$c(sourceProperty, 'sham', true); } defineBuiltIn$f(target, key, sourceProperty, options); } }; var wellKnownSymbol$t = wellKnownSymbol$v; var TO_STRING_TAG$5 = wellKnownSymbol$t('toStringTag'); var test$1 = {}; test$1[TO_STRING_TAG$5] = 'z'; var toStringTagSupport = String(test$1) === '[object z]'; var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport; var isCallable$i = isCallable$t; var classofRaw$1 = classofRaw$2; var wellKnownSymbol$s = wellKnownSymbol$v; var TO_STRING_TAG$4 = wellKnownSymbol$s('toStringTag'); var $Object$2 = Object; // ES3 wrong here var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments'; // fallback for IE11 Script Access Denied error var tryGet = function (it, key) { try { return it[key]; } catch (error) { /* empty */ } }; // getting tag from ES6+ `Object.prototype.toString` var classof$i = TO_STRING_TAG_SUPPORT$2 ? classofRaw$1 : function (it) { var O, tag, result; return it === undefined ? 'Undefined' : it === null ? 'Null' // @@toStringTag case : typeof (tag = tryGet(O = $Object$2(it), TO_STRING_TAG$4)) == 'string' ? tag // builtinTag case : CORRECT_ARGUMENTS ? classofRaw$1(O) // ES3 arguments fallback : (result = classofRaw$1(O)) === 'Object' && isCallable$i(O.callee) ? 'Arguments' : result; }; var classof$h = classof$i; var $String$4 = String; var toString$o = function (argument) { if (classof$h(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string'); return $String$4(argument); }; var objectDefineProperties = {}; var internalObjectKeys = objectKeysInternal; var enumBugKeys$1 = enumBugKeys$3; // `Object.keys` method // https://tc39.es/ecma262/#sec-object.keys // eslint-disable-next-line es/no-object-keys -- safe var objectKeys$4 = Object.keys || function keys(O) { return internalObjectKeys(O, enumBugKeys$1); }; var DESCRIPTORS$r = descriptors; var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug; var definePropertyModule$3 = objectDefineProperty; var anObject$y = anObject$B; var toIndexedObject$b = toIndexedObject$f; var objectKeys$3 = objectKeys$4; // `Object.defineProperties` method // https://tc39.es/ecma262/#sec-object.defineproperties // eslint-disable-next-line es/no-object-defineproperties -- safe objectDefineProperties.f = DESCRIPTORS$r && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) { anObject$y(O); var props = toIndexedObject$b(Properties); var keys = objectKeys$3(Properties); var length = keys.length; var index = 0; var key; while (length > index) definePropertyModule$3.f(O, key = keys[index++], props[key]); return O; }; var getBuiltIn$f = getBuiltIn$i; var html$2 = getBuiltIn$f('document', 'documentElement'); /* global ActiveXObject -- old IE, WSH */ var anObject$x = anObject$B; var definePropertiesModule$1 = objectDefineProperties; var enumBugKeys = enumBugKeys$3; var hiddenKeys$2 = hiddenKeys$6; var html$1 = html$2; var documentCreateElement$1 = documentCreateElement$2; var sharedKey$2 = sharedKey$4; var GT = '>'; var LT = '<'; var PROTOTYPE$2 = 'prototype'; var SCRIPT = 'script'; var IE_PROTO$1 = sharedKey$2('IE_PROTO'); var EmptyConstructor = function () { /* empty */ }; var scriptTag = function (content) { return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT; }; // Create object with fake `null` prototype: use ActiveX Object with cleared prototype var NullProtoObjectViaActiveX = function (activeXDocument) { activeXDocument.write(scriptTag('')); activeXDocument.close(); var temp = activeXDocument.parentWindow.Object; // eslint-disable-next-line no-useless-assignment -- avoid memory leak activeXDocument = null; return temp; }; // Create object with fake `null` prototype: use iframe Object with cleared prototype var NullProtoObjectViaIFrame = function () { // Thrash, waste and sodomy: IE GC bug var iframe = documentCreateElement$1('iframe'); var JS = 'java' + SCRIPT + ':'; var iframeDocument; iframe.style.display = 'none'; html$1.appendChild(iframe); // https://github.com/zloirock/core-js/issues/475 iframe.src = String(JS); iframeDocument = iframe.contentWindow.document; iframeDocument.open(); iframeDocument.write(scriptTag('document.F=Object')); iframeDocument.close(); return iframeDocument.F; }; // Check for document.domain and active x support // No need to use active x approach when document.domain is not set // see https://github.com/es-shims/es5-shim/issues/150 // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346 // avoid IE GC bug var activeXDocument; var NullProtoObject = function () { try { activeXDocument = new ActiveXObject('htmlfile'); } catch (error) { /* ignore */ } NullProtoObject = typeof document != 'undefined' ? document.domain && activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) // old IE : NullProtoObjectViaIFrame() : NullProtoObjectViaActiveX(activeXDocument); // WSH var length = enumBugKeys.length; while (length--) delete NullProtoObject[PROTOTYPE$2][enumBugKeys[length]]; return NullProtoObject(); }; hiddenKeys$2[IE_PROTO$1] = true; // `Object.create` method // https://tc39.es/ecma262/#sec-object.create // eslint-disable-next-line es/no-object-create -- safe var objectCreate = Object.create || function create(O, Properties) { var result; if (O !== null) { EmptyConstructor[PROTOTYPE$2] = anObject$x(O); result = new EmptyConstructor(); EmptyConstructor[PROTOTYPE$2] = null; // add "__proto__" for Object.getPrototypeOf polyfill result[IE_PROTO$1] = O; } else result = NullProtoObject(); return Properties === undefined ? result : definePropertiesModule$1.f(result, Properties); }; var objectGetOwnPropertyNamesExternal = {}; var uncurryThis$P = functionUncurryThis; var arraySlice$9 = uncurryThis$P([].slice); /* eslint-disable es/no-object-getownpropertynames -- safe */ var classof$g = classofRaw$2; var toIndexedObject$a = toIndexedObject$f; var $getOwnPropertyNames$1 = objectGetOwnPropertyNames.f; var arraySlice$8 = arraySlice$9; var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : []; var getWindowNames = function (it) { try { return $getOwnPropertyNames$1(it); } catch (error) { return arraySlice$8(windowNames); } }; // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window objectGetOwnPropertyNamesExternal.f = function getOwnPropertyNames(it) { return windowNames && classof$g(it) === 'Window' ? getWindowNames(it) : $getOwnPropertyNames$1(toIndexedObject$a(it)); }; var makeBuiltIn = makeBuiltIn$3.exports; var defineProperty$b = objectDefineProperty; var defineBuiltInAccessor$e = function (target, name, descriptor) { if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true }); if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true }); return defineProperty$b.f(target, name, descriptor); }; var wellKnownSymbolWrapped = {}; var wellKnownSymbol$r = wellKnownSymbol$v; wellKnownSymbolWrapped.f = wellKnownSymbol$r; var globalThis$K = globalThis_1; var path$3 = globalThis$K; var path$2 = path$3; var hasOwn$m = hasOwnProperty_1; var wrappedWellKnownSymbolModule$1 = wellKnownSymbolWrapped; var defineProperty$a = objectDefineProperty.f; var wellKnownSymbolDefine = function (NAME) { var Symbol = path$2.Symbol || (path$2.Symbol = {}); if (!hasOwn$m(Symbol, NAME)) defineProperty$a(Symbol, NAME, { value: wrappedWellKnownSymbolModule$1.f(NAME) }); }; var call$D = functionCall; var getBuiltIn$e = getBuiltIn$i; var wellKnownSymbol$q = wellKnownSymbol$v; var defineBuiltIn$e = defineBuiltIn$g; var symbolDefineToPrimitive = function () { var Symbol = getBuiltIn$e('Symbol'); var SymbolPrototype = Symbol && Symbol.prototype; var valueOf = SymbolPrototype && SymbolPrototype.valueOf; var TO_PRIMITIVE = wellKnownSymbol$q('toPrimitive'); if (SymbolPrototype && !SymbolPrototype[TO_PRIMITIVE]) { // `Symbol.prototype[@@toPrimitive]` method // https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive // eslint-disable-next-line no-unused-vars -- required for .length defineBuiltIn$e(SymbolPrototype, TO_PRIMITIVE, function (hint) { return call$D(valueOf, this); }, { arity: 1 }); } }; var defineProperty$9 = objectDefineProperty.f; var hasOwn$l = hasOwnProperty_1; var wellKnownSymbol$p = wellKnownSymbol$v; var TO_STRING_TAG$3 = wellKnownSymbol$p('toStringTag'); var setToStringTag$9 = function (target, TAG, STATIC) { if (target && !STATIC) target = target.prototype; if (target && !hasOwn$l(target, TO_STRING_TAG$3)) { defineProperty$9(target, TO_STRING_TAG$3, { configurable: true, value: TAG }); } }; var classofRaw = classofRaw$2; var uncurryThis$O = functionUncurryThis; var functionUncurryThisClause = function (fn) { // Nashorn bug: // https://github.com/zloirock/core-js/issues/1128 // https://github.com/zloirock/core-js/issues/1130 if (classofRaw(fn) === 'Function') return uncurryThis$O(fn); }; var uncurryThis$N = functionUncurryThisClause; var aCallable$m = aCallable$o; var NATIVE_BIND$2 = functionBindNative; var bind$e = uncurryThis$N(uncurryThis$N.bind); // optional / simple context binding var functionBindContext = function (fn, that) { aCallable$m(fn); return that === undefined ? fn : NATIVE_BIND$2 ? bind$e(fn, that) : function (/* ...args */) { return fn.apply(that, arguments); }; }; var classof$f = classofRaw$2; // `IsArray` abstract operation // https://tc39.es/ecma262/#sec-isarray // eslint-disable-next-line es/no-array-isarray -- safe var isArray$b = Array.isArray || function isArray(argument) { return classof$f(argument) === 'Array'; }; var uncurryThis$M = functionUncurryThis; var fails$V = fails$12; var isCallable$h = isCallable$t; var classof$e = classof$i; var getBuiltIn$d = getBuiltIn$i; var inspectSource$1 = inspectSource$3; var noop$2 = function () { /* empty */ }; var construct$1 = getBuiltIn$d('Reflect', 'construct'); var constructorRegExp = /^\s*(?:class|function)\b/; var exec$4 = uncurryThis$M(constructorRegExp.exec); var INCORRECT_TO_STRING$2 = !constructorRegExp.test(noop$2); var isConstructorModern = function isConstructor(argument) { if (!isCallable$h(argument)) return false; try { construct$1(noop$2, [], argument); return true; } catch (error) { return false; } }; var isConstructorLegacy = function isConstructor(argument) { if (!isCallable$h(argument)) return false; switch (classof$e(argument)) { case 'AsyncFunction': case 'GeneratorFunction': case 'AsyncGeneratorFunction': return false; } try { // we can't check .prototype since constructors produced by .bind haven't it // `Function#toString` throws on some built-it function in some legacy engines // (for example, `DOMQuad` and similar in FF41-) return INCORRECT_TO_STRING$2 || !!exec$4(constructorRegExp, inspectSource$1(argument)); } catch (error) { return true; } }; isConstructorLegacy.sham = true; // `IsConstructor` abstract operation // https://tc39.es/ecma262/#sec-isconstructor var isConstructor$4 = !construct$1 || fails$V(function () { var called; return isConstructorModern(isConstructorModern.call) || !isConstructorModern(Object) || !isConstructorModern(function () { called = true; }) || called; }) ? isConstructorLegacy : isConstructorModern; var isArray$a = isArray$b; var isConstructor$3 = isConstructor$4; var isObject$v = isObject$B; var wellKnownSymbol$o = wellKnownSymbol$v; var SPECIES$6 = wellKnownSymbol$o('species'); var $Array$4 = Array; // a part of `ArraySpeciesCreate` abstract operation // https://tc39.es/ecma262/#sec-arrayspeciescreate var arraySpeciesConstructor$1 = function (originalArray) { var C; if (isArray$a(originalArray)) { C = originalArray.constructor; // cross-realm fallback if (isConstructor$3(C) && (C === $Array$4 || isArray$a(C.prototype))) C = undefined; else if (isObject$v(C)) { C = C[SPECIES$6]; if (C === null) C = undefined; } } return C === undefined ? $Array$4 : C; }; var arraySpeciesConstructor = arraySpeciesConstructor$1; // `ArraySpeciesCreate` abstract operation // https://tc39.es/ecma262/#sec-arrayspeciescreate var arraySpeciesCreate$5 = function (originalArray, length) { return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length); }; var bind$d = functionBindContext; var uncurryThis$L = functionUncurryThis; var IndexedObject$4 = indexedObject; var toObject$j = toObject$l; var lengthOfArrayLike$m = lengthOfArrayLike$o; var arraySpeciesCreate$4 = arraySpeciesCreate$5; var push$9 = uncurryThis$L([].push); // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation var createMethod$6 = function (TYPE) { var IS_MAP = TYPE === 1; var IS_FILTER = TYPE === 2; var IS_SOME = TYPE === 3; var IS_EVERY = TYPE === 4; var IS_FIND_INDEX = TYPE === 6; var IS_FILTER_REJECT = TYPE === 7; var NO_HOLES = TYPE === 5 || IS_FIND_INDEX; return function ($this, callbackfn, that, specificCreate) { var O = toObject$j($this); var self = IndexedObject$4(O); var length = lengthOfArrayLike$m(self); var boundFunction = bind$d(callbackfn, that); var index = 0; var create = specificCreate || arraySpeciesCreate$4; var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined; var value, result; for (;length > index; index++) if (NO_HOLES || index in self) { value = self[index]; result = boundFunction(value, index, O); if (TYPE) { if (IS_MAP) target[index] = result; // map else if (result) switch (TYPE) { case 3: return true; // some case 5: return value; // find case 6: return index; // findIndex case 2: push$9(target, value); // filter } else switch (TYPE) { case 4: return false; // every case 7: push$9(target, value); // filterReject } } } return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target; }; }; var arrayIteration = { // `Array.prototype.forEach` method // https://tc39.es/ecma262/#sec-array.prototype.foreach forEach: createMethod$6(0), // `Array.prototype.map` method // https://tc39.es/ecma262/#sec-array.prototype.map map: createMethod$6(1), // `Array.prototype.filter` method // https://tc39.es/ecma262/#sec-array.prototype.filter filter: createMethod$6(2), // `Array.prototype.some` method // https://tc39.es/ecma262/#sec-array.prototype.some some: createMethod$6(3), // `Array.prototype.every` method // https://tc39.es/ecma262/#sec-array.prototype.every every: createMethod$6(4), // `Array.prototype.find` method // https://tc39.es/ecma262/#sec-array.prototype.find find: createMethod$6(5), // `Array.prototype.findIndex` method // https://tc39.es/ecma262/#sec-array.prototype.findIndex findIndex: createMethod$6(6), // `Array.prototype.filterReject` method // https://github.com/tc39/proposal-array-filtering filterReject: createMethod$6(7) }; var $$1u = _export; var globalThis$J = globalThis_1; var call$C = functionCall; var un