From 5ae4833824a458c0a02af1af3efcb93bfce0bba9 Mon Sep 17 00:00:00 2001 From: zhixin Date: Wed, 31 May 2023 12:09:55 +0800 Subject: [PATCH] Build to 1.6.0 --- dist/locale/multiple-select-cz-CS.js | 1269 ++++++ dist/locale/multiple-select-cz-CS.min.js | 10 + dist/locale/multiple-select-da-DK.js | 1269 ++++++ dist/locale/multiple-select-da-DK.min.js | 10 + dist/locale/multiple-select-en-US.js | 1293 +++++- dist/locale/multiple-select-en-US.min.js | 4 +- dist/locale/multiple-select-es-ES.js | 1293 +++++- dist/locale/multiple-select-es-ES.min.js | 4 +- dist/locale/multiple-select-fr-FR.js | 1269 ++++++ dist/locale/multiple-select-fr-FR.min.js | 10 + dist/locale/multiple-select-hu-HU.js | 1269 ++++++ dist/locale/multiple-select-hu-HU.min.js | 10 + dist/locale/multiple-select-it-IT.js | 1293 +++++- dist/locale/multiple-select-it-IT.min.js | 4 +- dist/locale/multiple-select-pt-BR.js | 1269 ++++++ dist/locale/multiple-select-pt-BR.min.js | 10 + dist/locale/multiple-select-ru-RU.js | 1269 ++++++ dist/locale/multiple-select-ru-RU.min.js | 10 + dist/locale/multiple-select-vi-VN.js | 1269 ++++++ dist/locale/multiple-select-vi-VN.min.js | 10 + dist/locale/multiple-select-zh-CN.js | 1293 +++++- dist/locale/multiple-select-zh-CN.min.js | 4 +- dist/locale/multiple-select-zh-TW.js | 1293 +++++- dist/locale/multiple-select-zh-TW.min.js | 4 +- dist/multiple-select-es.js | 5228 +++++++++++---------- dist/multiple-select-es.min.js | 4 +- dist/multiple-select-locale-all.js | 1608 ++++++- dist/multiple-select-locale-all.min.js | 4 +- dist/multiple-select-vue-es.js | 2364 +--------- dist/multiple-select-vue-es.min.js | 4 +- dist/multiple-select-vue.js | 2738 ++--------- dist/multiple-select-vue.min.js | 4 +- dist/multiple-select.css | 290 +- dist/multiple-select.js | 5290 ++++++++++++---------- dist/multiple-select.min.css | 4 +- dist/multiple-select.min.js | 4 +- dist/themes/bootstrap.css | 55 +- dist/themes/bootstrap.min.css | 4 +- 38 files changed, 23199 insertions(+), 9840 deletions(-) create mode 100644 dist/locale/multiple-select-cz-CS.js create mode 100644 dist/locale/multiple-select-cz-CS.min.js create mode 100644 dist/locale/multiple-select-da-DK.js create mode 100644 dist/locale/multiple-select-da-DK.min.js create mode 100644 dist/locale/multiple-select-fr-FR.js create mode 100644 dist/locale/multiple-select-fr-FR.min.js create mode 100644 dist/locale/multiple-select-hu-HU.js create mode 100644 dist/locale/multiple-select-hu-HU.min.js create mode 100644 dist/locale/multiple-select-pt-BR.js create mode 100644 dist/locale/multiple-select-pt-BR.min.js create mode 100644 dist/locale/multiple-select-ru-RU.js create mode 100644 dist/locale/multiple-select-ru-RU.min.js create mode 100644 dist/locale/multiple-select-vi-VN.js create mode 100644 dist/locale/multiple-select-vi-VN.min.js diff --git a/dist/locale/multiple-select-cz-CS.js b/dist/locale/multiple-select-cz-CS.js new file mode 100644 index 00000000..16f758ee --- /dev/null +++ b/dist/locale/multiple-select-cz-CS.js @@ -0,0 +1,1269 @@ +(function (global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) : + typeof define === 'function' && define.amd ? define(['jquery'], factory) : + (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jQuery)); +})(this, (function ($$1) { 'use strict'; + + 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 global$b = + // 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) || + // eslint-disable-next-line no-new-func -- fallback + (function () { return this; })() || commonjsGlobal || Function('return this')(); + + var objectGetOwnPropertyDescriptor = {}; + + var fails$b = function (exec) { + try { + return !!exec(); + } catch (error) { + return true; + } + }; + + var fails$a = fails$b; + + // Detect IE8's incomplete defineProperty implementation + var descriptors = !fails$a(function () { + // eslint-disable-next-line es/no-object-defineproperty -- required for testing + return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7; + }); + + var fails$9 = fails$b; + + var functionBindNative = !fails$9(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$1 = functionBindNative; + + var call$4 = Function.prototype.call; + + var functionCall = NATIVE_BIND$1 ? call$4.bind(call$4) : function () { + return call$4.apply(call$4, arguments); + }; + + var objectPropertyIsEnumerable = {}; + + var $propertyIsEnumerable = {}.propertyIsEnumerable; + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; + + // Nashorn ~ JDK8 bug + var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.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$1(this, V); + return !!descriptor && descriptor.enumerable; + } : $propertyIsEnumerable; + + var createPropertyDescriptor$3 = function (bitmap, value) { + return { + enumerable: !(bitmap & 1), + configurable: !(bitmap & 2), + writable: !(bitmap & 4), + value: value + }; + }; + + var NATIVE_BIND = functionBindNative; + + var FunctionPrototype$1 = Function.prototype; + var call$3 = FunctionPrototype$1.call; + var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$3, call$3); + + var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) { + return function () { + return call$3.apply(fn, arguments); + }; + }; + + var uncurryThis$9 = functionUncurryThis; + + var toString$1 = uncurryThis$9({}.toString); + var stringSlice$1 = uncurryThis$9(''.slice); + + var classofRaw$1 = function (it) { + return stringSlice$1(toString$1(it), 8, -1); + }; + + var uncurryThis$8 = functionUncurryThis; + var fails$8 = fails$b; + var classof$3 = classofRaw$1; + + var $Object$3 = Object; + var split = uncurryThis$8(''.split); + + // fallback for non-array-like ES3 and non-enumerable old V8 strings + var indexedObject = fails$8(function () { + // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346 + // eslint-disable-next-line no-prototype-builtins -- safe + return !$Object$3('z').propertyIsEnumerable(0); + }) ? function (it) { + return classof$3(it) == 'String' ? split(it, '') : $Object$3(it); + } : $Object$3; + + // we can't use just `it == null` since of `document.all` special case + // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec + var isNullOrUndefined$2 = function (it) { + return it === null || it === undefined; + }; + + var isNullOrUndefined$1 = isNullOrUndefined$2; + + var $TypeError$6 = TypeError; + + // `RequireObjectCoercible` abstract operation + // https://tc39.es/ecma262/#sec-requireobjectcoercible + var requireObjectCoercible$2 = function (it) { + if (isNullOrUndefined$1(it)) throw $TypeError$6("Can't call method on " + it); + return it; + }; + + // toObject with fallback for non-array-like ES3 strings + var IndexedObject = indexedObject; + var requireObjectCoercible$1 = requireObjectCoercible$2; + + var toIndexedObject$3 = function (it) { + return IndexedObject(requireObjectCoercible$1(it)); + }; + + var documentAll$2 = typeof document == 'object' && document.all; + + // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot + // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing + var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined; + + var documentAll_1 = { + all: documentAll$2, + IS_HTMLDDA: IS_HTMLDDA + }; + + var $documentAll$1 = documentAll_1; + + var documentAll$1 = $documentAll$1.all; + + // `IsCallable` abstract operation + // https://tc39.es/ecma262/#sec-iscallable + var isCallable$c = $documentAll$1.IS_HTMLDDA ? function (argument) { + return typeof argument == 'function' || argument === documentAll$1; + } : function (argument) { + return typeof argument == 'function'; + }; + + var isCallable$b = isCallable$c; + var $documentAll = documentAll_1; + + var documentAll = $documentAll.all; + + var isObject$7 = $documentAll.IS_HTMLDDA ? function (it) { + return typeof it == 'object' ? it !== null : isCallable$b(it) || it === documentAll; + } : function (it) { + return typeof it == 'object' ? it !== null : isCallable$b(it); + }; + + var global$a = global$b; + var isCallable$a = isCallable$c; + + var aFunction = function (argument) { + return isCallable$a(argument) ? argument : undefined; + }; + + var getBuiltIn$3 = function (namespace, method) { + return arguments.length < 2 ? aFunction(global$a[namespace]) : global$a[namespace] && global$a[namespace][method]; + }; + + var uncurryThis$7 = functionUncurryThis; + + var objectIsPrototypeOf = uncurryThis$7({}.isPrototypeOf); + + var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || ''; + + var global$9 = global$b; + var userAgent = engineUserAgent; + + var process = global$9.process; + var Deno = global$9.Deno; + var versions = process && process.versions || Deno && Deno.version; + var v8 = versions && versions.v8; + var match, version; + + 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 = 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 && userAgent) { + match = userAgent.match(/Edge\/(\d+)/); + if (!match || match[1] >= 74) { + match = userAgent.match(/Chrome\/(\d+)/); + if (match) version = +match[1]; + } + } + + var engineV8Version = version; + + /* eslint-disable es/no-symbol -- required for testing */ + + var V8_VERSION$2 = engineV8Version; + var fails$7 = fails$b; + var global$8 = global$b; + + var $String$3 = global$8.String; + + // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing + var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$7(function () { + var symbol = Symbol(); + // 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$3(symbol) || !(Object(symbol) instanceof Symbol) || + // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances + !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41; + }); + + /* eslint-disable es/no-symbol -- required for testing */ + + var NATIVE_SYMBOL$1 = symbolConstructorDetection; + + var useSymbolAsUid = NATIVE_SYMBOL$1 + && !Symbol.sham + && typeof Symbol.iterator == 'symbol'; + + var getBuiltIn$2 = getBuiltIn$3; + var isCallable$9 = isCallable$c; + var isPrototypeOf = objectIsPrototypeOf; + var USE_SYMBOL_AS_UID$1 = useSymbolAsUid; + + var $Object$2 = Object; + + var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) { + return typeof it == 'symbol'; + } : function (it) { + var $Symbol = getBuiltIn$2('Symbol'); + return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it)); + }; + + var $String$2 = String; + + var tryToString$1 = function (argument) { + try { + return $String$2(argument); + } catch (error) { + return 'Object'; + } + }; + + var isCallable$8 = isCallable$c; + var tryToString = tryToString$1; + + var $TypeError$5 = TypeError; + + // `Assert: IsCallable(argument) is true` + var aCallable$1 = function (argument) { + if (isCallable$8(argument)) return argument; + throw $TypeError$5(tryToString(argument) + ' is not a function'); + }; + + var aCallable = aCallable$1; + var isNullOrUndefined = isNullOrUndefined$2; + + // `GetMethod` abstract operation + // https://tc39.es/ecma262/#sec-getmethod + var getMethod$1 = function (V, P) { + var func = V[P]; + return isNullOrUndefined(func) ? undefined : aCallable(func); + }; + + var call$2 = functionCall; + var isCallable$7 = isCallable$c; + var isObject$6 = isObject$7; + + var $TypeError$4 = TypeError; + + // `OrdinaryToPrimitive` abstract operation + // https://tc39.es/ecma262/#sec-ordinarytoprimitive + var ordinaryToPrimitive$1 = function (input, pref) { + var fn, val; + if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val; + if (isCallable$7(fn = input.valueOf) && !isObject$6(val = call$2(fn, input))) return val; + if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val; + throw $TypeError$4("Can't convert object to primitive value"); + }; + + var shared$3 = {exports: {}}; + + var global$7 = global$b; + + // eslint-disable-next-line es/no-object-defineproperty -- safe + var defineProperty$1 = Object.defineProperty; + + var defineGlobalProperty$3 = function (key, value) { + try { + defineProperty$1(global$7, key, { value: value, configurable: true, writable: true }); + } catch (error) { + global$7[key] = value; + } return value; + }; + + var global$6 = global$b; + var defineGlobalProperty$2 = defineGlobalProperty$3; + + var SHARED = '__core-js_shared__'; + var store$3 = global$6[SHARED] || defineGlobalProperty$2(SHARED, {}); + + var sharedStore = store$3; + + var store$2 = sharedStore; + + (shared$3.exports = function (key, value) { + return store$2[key] || (store$2[key] = value !== undefined ? value : {}); + })('versions', []).push({ + version: '3.30.2', + mode: 'global', + copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)', + license: 'https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE', + source: 'https://github.com/zloirock/core-js' + }); + + var sharedExports = shared$3.exports; + + var requireObjectCoercible = requireObjectCoercible$2; + + var $Object$1 = Object; + + // `ToObject` abstract operation + // https://tc39.es/ecma262/#sec-toobject + var toObject$2 = function (argument) { + return $Object$1(requireObjectCoercible(argument)); + }; + + var uncurryThis$6 = functionUncurryThis; + var toObject$1 = toObject$2; + + var hasOwnProperty = uncurryThis$6({}.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$1(it), key); + }; + + var uncurryThis$5 = functionUncurryThis; + + var id = 0; + var postfix = Math.random(); + var toString = uncurryThis$5(1.0.toString); + + var uid$2 = function (key) { + return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36); + }; + + var global$5 = global$b; + var shared$2 = sharedExports; + var hasOwn$6 = hasOwnProperty_1; + var uid$1 = uid$2; + var NATIVE_SYMBOL = symbolConstructorDetection; + var USE_SYMBOL_AS_UID = useSymbolAsUid; + + var Symbol$1 = global$5.Symbol; + var WellKnownSymbolsStore = shared$2('wks'); + var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1; + + var wellKnownSymbol$6 = function (name) { + if (!hasOwn$6(WellKnownSymbolsStore, name)) { + WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name) + ? Symbol$1[name] + : createWellKnownSymbol('Symbol.' + name); + } return WellKnownSymbolsStore[name]; + }; + + var call$1 = functionCall; + var isObject$5 = isObject$7; + var isSymbol$1 = isSymbol$2; + var getMethod = getMethod$1; + var ordinaryToPrimitive = ordinaryToPrimitive$1; + var wellKnownSymbol$5 = wellKnownSymbol$6; + + var $TypeError$3 = TypeError; + var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive'); + + // `ToPrimitive` abstract operation + // https://tc39.es/ecma262/#sec-toprimitive + var toPrimitive$1 = function (input, pref) { + if (!isObject$5(input) || isSymbol$1(input)) return input; + var exoticToPrim = getMethod(input, TO_PRIMITIVE); + var result; + if (exoticToPrim) { + if (pref === undefined) pref = 'default'; + result = call$1(exoticToPrim, input, pref); + if (!isObject$5(result) || isSymbol$1(result)) return result; + throw $TypeError$3("Can't convert object to primitive value"); + } + if (pref === undefined) pref = 'number'; + return ordinaryToPrimitive(input, pref); + }; + + var toPrimitive = toPrimitive$1; + var isSymbol = isSymbol$2; + + // `ToPropertyKey` abstract operation + // https://tc39.es/ecma262/#sec-topropertykey + var toPropertyKey$3 = function (argument) { + var key = toPrimitive(argument, 'string'); + return isSymbol(key) ? key : key + ''; + }; + + var global$4 = global$b; + var isObject$4 = isObject$7; + + var document$1 = global$4.document; + // typeof document.createElement is 'object' in old IE + var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement); + + var documentCreateElement = function (it) { + return EXISTS$1 ? document$1.createElement(it) : {}; + }; + + var DESCRIPTORS$6 = descriptors; + var fails$6 = fails$b; + var createElement = documentCreateElement; + + // Thanks to IE8 for its funny defineProperty + var ie8DomDefine = !DESCRIPTORS$6 && !fails$6(function () { + // eslint-disable-next-line es/no-object-defineproperty -- required for testing + return Object.defineProperty(createElement('div'), 'a', { + get: function () { return 7; } + }).a != 7; + }); + + var DESCRIPTORS$5 = descriptors; + var call = functionCall; + var propertyIsEnumerableModule = objectPropertyIsEnumerable; + var createPropertyDescriptor$2 = createPropertyDescriptor$3; + var toIndexedObject$2 = toIndexedObject$3; + var toPropertyKey$2 = toPropertyKey$3; + var hasOwn$5 = hasOwnProperty_1; + var IE8_DOM_DEFINE$1 = ie8DomDefine; + + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; + + // `Object.getOwnPropertyDescriptor` method + // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor + objectGetOwnPropertyDescriptor.f = DESCRIPTORS$5 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) { + O = toIndexedObject$2(O); + P = toPropertyKey$2(P); + if (IE8_DOM_DEFINE$1) try { + return $getOwnPropertyDescriptor$1(O, P); + } catch (error) { /* empty */ } + if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call(propertyIsEnumerableModule.f, O, P), O[P]); + }; + + var objectDefineProperty = {}; + + var DESCRIPTORS$4 = descriptors; + var fails$5 = fails$b; + + // V8 ~ Chrome 36- + // https://bugs.chromium.org/p/v8/issues/detail?id=3334 + var v8PrototypeDefineBug = DESCRIPTORS$4 && fails$5(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$3 = isObject$7; + + var $String$1 = String; + var $TypeError$2 = TypeError; + + // `Assert: Type(argument) is Object` + var anObject$2 = function (argument) { + if (isObject$3(argument)) return argument; + throw $TypeError$2($String$1(argument) + ' is not an object'); + }; + + var DESCRIPTORS$3 = descriptors; + var IE8_DOM_DEFINE = ie8DomDefine; + var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug; + var anObject$1 = anObject$2; + var toPropertyKey$1 = toPropertyKey$3; + + var $TypeError$1 = TypeError; + // eslint-disable-next-line es/no-object-defineproperty -- safe + var $defineProperty = Object.defineProperty; + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var $getOwnPropertyDescriptor = 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$3 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) { + anObject$1(O); + P = toPropertyKey$1(P); + anObject$1(Attributes); + if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) { + var current = $getOwnPropertyDescriptor(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(O, P, Attributes); + } : $defineProperty : function defineProperty(O, P, Attributes) { + anObject$1(O); + P = toPropertyKey$1(P); + anObject$1(Attributes); + if (IE8_DOM_DEFINE) try { + return $defineProperty(O, P, Attributes); + } catch (error) { /* empty */ } + if ('get' in Attributes || 'set' in Attributes) throw $TypeError$1('Accessors not supported'); + if ('value' in Attributes) O[P] = Attributes.value; + return O; + }; + + var DESCRIPTORS$2 = descriptors; + var definePropertyModule$3 = objectDefineProperty; + var createPropertyDescriptor$1 = createPropertyDescriptor$3; + + var createNonEnumerableProperty$2 = DESCRIPTORS$2 ? function (object, key, value) { + return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value)); + } : function (object, key, value) { + object[key] = value; + return object; + }; + + var makeBuiltIn$2 = {exports: {}}; + + var DESCRIPTORS$1 = descriptors; + var hasOwn$4 = hasOwnProperty_1; + + var FunctionPrototype = Function.prototype; + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var getDescriptor = DESCRIPTORS$1 && Object.getOwnPropertyDescriptor; + + var EXISTS = hasOwn$4(FunctionPrototype, 'name'); + // additional protection from minified / mangled / dropped function names + var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something'; + var CONFIGURABLE = EXISTS && (!DESCRIPTORS$1 || (DESCRIPTORS$1 && getDescriptor(FunctionPrototype, 'name').configurable)); + + var functionName = { + EXISTS: EXISTS, + PROPER: PROPER, + CONFIGURABLE: CONFIGURABLE + }; + + var uncurryThis$4 = functionUncurryThis; + var isCallable$6 = isCallable$c; + var store$1 = sharedStore; + + var functionToString = uncurryThis$4(Function.toString); + + // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper + if (!isCallable$6(store$1.inspectSource)) { + store$1.inspectSource = function (it) { + return functionToString(it); + }; + } + + var inspectSource$2 = store$1.inspectSource; + + var global$3 = global$b; + var isCallable$5 = isCallable$c; + + var WeakMap$1 = global$3.WeakMap; + + var weakMapBasicDetection = isCallable$5(WeakMap$1) && /native code/.test(String(WeakMap$1)); + + var shared$1 = sharedExports; + var uid = uid$2; + + var keys = shared$1('keys'); + + var sharedKey$1 = function (key) { + return keys[key] || (keys[key] = uid(key)); + }; + + var hiddenKeys$3 = {}; + + var NATIVE_WEAK_MAP = weakMapBasicDetection; + var global$2 = global$b; + var isObject$2 = isObject$7; + var createNonEnumerableProperty$1 = createNonEnumerableProperty$2; + var hasOwn$3 = hasOwnProperty_1; + var shared = sharedStore; + var sharedKey = sharedKey$1; + var hiddenKeys$2 = hiddenKeys$3; + + var OBJECT_ALREADY_INITIALIZED = 'Object already initialized'; + var TypeError$1 = global$2.TypeError; + var WeakMap = global$2.WeakMap; + var set, get, has; + + var enforce = function (it) { + return has(it) ? get(it) : set(it, {}); + }; + + var getterFor = function (TYPE) { + return function (it) { + var state; + if (!isObject$2(it) || (state = get(it)).type !== TYPE) { + throw TypeError$1('Incompatible receiver, ' + TYPE + ' required'); + } return state; + }; + }; + + if (NATIVE_WEAK_MAP || shared.state) { + var store = shared.state || (shared.state = new WeakMap()); + /* 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 = function (it, metadata) { + if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED); + metadata.facade = it; + store.set(it, metadata); + return metadata; + }; + get = function (it) { + return store.get(it) || {}; + }; + has = function (it) { + return store.has(it); + }; + } else { + var STATE = sharedKey('state'); + hiddenKeys$2[STATE] = true; + set = function (it, metadata) { + if (hasOwn$3(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED); + metadata.facade = it; + createNonEnumerableProperty$1(it, STATE, metadata); + return metadata; + }; + get = function (it) { + return hasOwn$3(it, STATE) ? it[STATE] : {}; + }; + has = function (it) { + return hasOwn$3(it, STATE); + }; + } + + var internalState = { + set: set, + get: get, + has: has, + enforce: enforce, + getterFor: getterFor + }; + + var uncurryThis$3 = functionUncurryThis; + var fails$4 = fails$b; + var isCallable$4 = isCallable$c; + var hasOwn$2 = hasOwnProperty_1; + var DESCRIPTORS = descriptors; + var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE; + var inspectSource$1 = inspectSource$2; + var InternalStateModule = internalState; + + var enforceInternalState = InternalStateModule.enforce; + var getInternalState = InternalStateModule.get; + var $String = String; + // eslint-disable-next-line es/no-object-defineproperty -- safe + var defineProperty = Object.defineProperty; + var stringSlice = uncurryThis$3(''.slice); + var replace = uncurryThis$3(''.replace); + var join = uncurryThis$3([].join); + + var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails$4(function () { + return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8; + }); + + var TEMPLATE = String(String).split('String'); + + var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) { + if (stringSlice($String(name), 0, 7) === 'Symbol(') { + name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']'; + } + if (options && options.getter) name = 'get ' + name; + if (options && options.setter) name = 'set ' + name; + if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) { + if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true }); + else value.name = name; + } + if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) { + defineProperty(value, 'length', { value: options.arity }); + } + try { + if (options && hasOwn$2(options, 'constructor') && options.constructor) { + if (DESCRIPTORS) defineProperty(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(value); + if (!hasOwn$2(state, 'source')) { + state.source = join(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$1(function toString() { + return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this); + }, 'toString'); + + var makeBuiltInExports = makeBuiltIn$2.exports; + + var isCallable$3 = isCallable$c; + var definePropertyModule$2 = objectDefineProperty; + var makeBuiltIn = makeBuiltInExports; + var defineGlobalProperty$1 = defineGlobalProperty$3; + + var defineBuiltIn$1 = function (O, key, value, options) { + if (!options) options = {}; + var simple = options.enumerable; + var name = options.name !== undefined ? options.name : key; + if (isCallable$3(value)) makeBuiltIn(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$2.f(O, key, { + value: value, + enumerable: false, + configurable: !options.nonConfigurable, + writable: !options.nonWritable + }); + } return O; + }; + + var objectGetOwnPropertyNames = {}; + + var ceil = Math.ceil; + var floor = 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 : ceil)(n); + }; + + var trunc = mathTrunc; + + // `ToIntegerOrInfinity` abstract operation + // https://tc39.es/ecma262/#sec-tointegerorinfinity + var toIntegerOrInfinity$2 = function (argument) { + var number = +argument; + // eslint-disable-next-line no-self-compare -- NaN check + return number !== number || number === 0 ? 0 : trunc(number); + }; + + var toIntegerOrInfinity$1 = toIntegerOrInfinity$2; + + var max = Math.max; + var min$1 = 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$1 = function (index, length) { + var integer = toIntegerOrInfinity$1(index); + return integer < 0 ? max(integer + length, 0) : min$1(integer, length); + }; + + var toIntegerOrInfinity = toIntegerOrInfinity$2; + + var min = Math.min; + + // `ToLength` abstract operation + // https://tc39.es/ecma262/#sec-tolength + var toLength$1 = function (argument) { + return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 + }; + + var toLength = toLength$1; + + // `LengthOfArrayLike` abstract operation + // https://tc39.es/ecma262/#sec-lengthofarraylike + var lengthOfArrayLike$2 = function (obj) { + return toLength(obj.length); + }; + + var toIndexedObject$1 = toIndexedObject$3; + var toAbsoluteIndex = toAbsoluteIndex$1; + var lengthOfArrayLike$1 = lengthOfArrayLike$2; + + // `Array.prototype.{ indexOf, includes }` methods implementation + var createMethod = function (IS_INCLUDES) { + return function ($this, el, fromIndex) { + var O = toIndexedObject$1($this); + var length = lengthOfArrayLike$1(O); + var index = toAbsoluteIndex(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(true), + // `Array.prototype.indexOf` method + // https://tc39.es/ecma262/#sec-array.prototype.indexof + indexOf: createMethod(false) + }; + + var uncurryThis$2 = functionUncurryThis; + var hasOwn$1 = hasOwnProperty_1; + var toIndexedObject = toIndexedObject$3; + var indexOf = arrayIncludes.indexOf; + var hiddenKeys$1 = hiddenKeys$3; + + var push = uncurryThis$2([].push); + + var objectKeysInternal = function (object, names) { + var O = toIndexedObject(object); + var i = 0; + var result = []; + var key; + for (key in O) !hasOwn$1(hiddenKeys$1, key) && hasOwn$1(O, key) && push(result, key); + // Don't enum bug & hidden keys + while (names.length > i) if (hasOwn$1(O, key = names[i++])) { + ~indexOf(result, key) || push(result, key); + } + return result; + }; + + // IE8- don't enum bug keys + var enumBugKeys$1 = [ + 'constructor', + 'hasOwnProperty', + 'isPrototypeOf', + 'propertyIsEnumerable', + 'toLocaleString', + 'toString', + 'valueOf' + ]; + + var internalObjectKeys = objectKeysInternal; + var enumBugKeys = enumBugKeys$1; + + var hiddenKeys = enumBugKeys.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(O, hiddenKeys); + }; + + var objectGetOwnPropertySymbols = {}; + + // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe + objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols; + + var getBuiltIn$1 = getBuiltIn$3; + var uncurryThis$1 = functionUncurryThis; + var getOwnPropertyNamesModule = objectGetOwnPropertyNames; + var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols; + var anObject = anObject$2; + + var concat = uncurryThis$1([].concat); + + // all object keys, includes non-enumerable and symbols + var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) { + var keys = getOwnPropertyNamesModule.f(anObject(it)); + var getOwnPropertySymbols = getOwnPropertySymbolsModule.f; + return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys; + }; + + var hasOwn = hasOwnProperty_1; + var ownKeys = ownKeys$1; + var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor; + var definePropertyModule$1 = objectDefineProperty; + + var copyConstructorProperties$1 = function (target, source, exceptions) { + var keys = ownKeys(source); + var defineProperty = definePropertyModule$1.f; + var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) { + defineProperty(target, key, getOwnPropertyDescriptor(source, key)); + } + } + }; + + var fails$3 = fails$b; + var isCallable$2 = isCallable$c; + + var replacement = /#|\.prototype\./; + + var isForced$1 = function (feature, detection) { + var value = data[normalize(feature)]; + return value == POLYFILL ? true + : value == NATIVE ? false + : isCallable$2(detection) ? fails$3(detection) + : !!detection; + }; + + var normalize = isForced$1.normalize = function (string) { + return String(string).replace(replacement, '.').toLowerCase(); + }; + + var data = isForced$1.data = {}; + var NATIVE = isForced$1.NATIVE = 'N'; + var POLYFILL = isForced$1.POLYFILL = 'P'; + + var isForced_1 = isForced$1; + + var global$1 = global$b; + var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f; + var createNonEnumerableProperty = createNonEnumerableProperty$2; + var defineBuiltIn = defineBuiltIn$1; + var defineGlobalProperty = defineGlobalProperty$3; + var copyConstructorProperties = copyConstructorProperties$1; + var isForced = 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 = global$1; + } else if (STATIC) { + target = global$1[TARGET] || defineGlobalProperty(TARGET, {}); + } else { + target = (global$1[TARGET] || {}).prototype; + } + if (target) for (key in source) { + sourceProperty = source[key]; + if (options.dontCallGetSet) { + descriptor = getOwnPropertyDescriptor(target, key); + targetProperty = descriptor && descriptor.value; + } else targetProperty = target[key]; + FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); + // contained in target + if (!FORCED && targetProperty !== undefined) { + if (typeof sourceProperty == typeof targetProperty) continue; + copyConstructorProperties(sourceProperty, targetProperty); + } + // add a flag to not completely full polyfills + if (options.sham || (targetProperty && targetProperty.sham)) { + createNonEnumerableProperty(sourceProperty, 'sham', true); + } + defineBuiltIn(target, key, sourceProperty, options); + } + }; + + var classof$2 = classofRaw$1; + + // `IsArray` abstract operation + // https://tc39.es/ecma262/#sec-isarray + // eslint-disable-next-line es/no-array-isarray -- safe + var isArray$2 = Array.isArray || function isArray(argument) { + return classof$2(argument) == 'Array'; + }; + + var $TypeError = TypeError; + var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991 + + var doesNotExceedSafeInteger$1 = function (it) { + if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded'); + return it; + }; + + var toPropertyKey = toPropertyKey$3; + var definePropertyModule = objectDefineProperty; + var createPropertyDescriptor = createPropertyDescriptor$3; + + var createProperty$1 = function (object, key, value) { + var propertyKey = toPropertyKey(key); + if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value)); + else object[propertyKey] = value; + }; + + var wellKnownSymbol$4 = wellKnownSymbol$6; + + var TO_STRING_TAG$1 = wellKnownSymbol$4('toStringTag'); + var test = {}; + + test[TO_STRING_TAG$1] = 'z'; + + var toStringTagSupport = String(test) === '[object z]'; + + var TO_STRING_TAG_SUPPORT = toStringTagSupport; + var isCallable$1 = isCallable$c; + var classofRaw = classofRaw$1; + var wellKnownSymbol$3 = wellKnownSymbol$6; + + var TO_STRING_TAG = wellKnownSymbol$3('toStringTag'); + var $Object = Object; + + // ES3 wrong here + var CORRECT_ARGUMENTS = classofRaw(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$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) { + var O, tag, result; + return it === undefined ? 'Undefined' : it === null ? 'Null' + // @@toStringTag case + : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag + // builtinTag case + : CORRECT_ARGUMENTS ? classofRaw(O) + // ES3 arguments fallback + : (result = classofRaw(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result; + }; + + var uncurryThis = functionUncurryThis; + var fails$2 = fails$b; + var isCallable = isCallable$c; + var classof = classof$1; + var getBuiltIn = getBuiltIn$3; + var inspectSource = inspectSource$2; + + var noop = function () { /* empty */ }; + var empty = []; + var construct = getBuiltIn('Reflect', 'construct'); + var constructorRegExp = /^\s*(?:class|function)\b/; + var exec = uncurryThis(constructorRegExp.exec); + var INCORRECT_TO_STRING = !constructorRegExp.exec(noop); + + var isConstructorModern = function isConstructor(argument) { + if (!isCallable(argument)) return false; + try { + construct(noop, empty, argument); + return true; + } catch (error) { + return false; + } + }; + + var isConstructorLegacy = function isConstructor(argument) { + if (!isCallable(argument)) return false; + switch (classof(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 || !!exec(constructorRegExp, inspectSource(argument)); + } catch (error) { + return true; + } + }; + + isConstructorLegacy.sham = true; + + // `IsConstructor` abstract operation + // https://tc39.es/ecma262/#sec-isconstructor + var isConstructor$1 = !construct || fails$2(function () { + var called; + return isConstructorModern(isConstructorModern.call) + || !isConstructorModern(Object) + || !isConstructorModern(function () { called = true; }) + || called; + }) ? isConstructorLegacy : isConstructorModern; + + var isArray$1 = isArray$2; + var isConstructor = isConstructor$1; + var isObject$1 = isObject$7; + var wellKnownSymbol$2 = wellKnownSymbol$6; + + var SPECIES$1 = wellKnownSymbol$2('species'); + var $Array = Array; + + // a part of `ArraySpeciesCreate` abstract operation + // https://tc39.es/ecma262/#sec-arrayspeciescreate + var arraySpeciesConstructor$1 = function (originalArray) { + var C; + if (isArray$1(originalArray)) { + C = originalArray.constructor; + // cross-realm fallback + if (isConstructor(C) && (C === $Array || isArray$1(C.prototype))) C = undefined; + else if (isObject$1(C)) { + C = C[SPECIES$1]; + if (C === null) C = undefined; + } + } return C === undefined ? $Array : C; + }; + + var arraySpeciesConstructor = arraySpeciesConstructor$1; + + // `ArraySpeciesCreate` abstract operation + // https://tc39.es/ecma262/#sec-arrayspeciescreate + var arraySpeciesCreate$1 = function (originalArray, length) { + return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length); + }; + + var fails$1 = fails$b; + var wellKnownSymbol$1 = wellKnownSymbol$6; + var V8_VERSION$1 = engineV8Version; + + var SPECIES = wellKnownSymbol$1('species'); + + var arrayMethodHasSpeciesSupport$1 = function (METHOD_NAME) { + // We can't use this feature detection in V8 since it causes + // deoptimization and serious performance degradation + // https://github.com/zloirock/core-js/issues/677 + return V8_VERSION$1 >= 51 || !fails$1(function () { + var array = []; + var constructor = array.constructor = {}; + constructor[SPECIES] = function () { + return { foo: 1 }; + }; + return array[METHOD_NAME](Boolean).foo !== 1; + }); + }; + + var $ = _export; + var fails = fails$b; + var isArray = isArray$2; + var isObject = isObject$7; + var toObject = toObject$2; + var lengthOfArrayLike = lengthOfArrayLike$2; + var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1; + var createProperty = createProperty$1; + var arraySpeciesCreate = arraySpeciesCreate$1; + var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1; + var wellKnownSymbol = wellKnownSymbol$6; + var V8_VERSION = engineV8Version; + + var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable'); + + // We can't use this feature detection in V8 since it causes + // deoptimization and serious performance degradation + // https://github.com/zloirock/core-js/issues/679 + var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () { + var array = []; + array[IS_CONCAT_SPREADABLE] = false; + return array.concat()[0] !== array; + }); + + var isConcatSpreadable = function (O) { + if (!isObject(O)) return false; + var spreadable = O[IS_CONCAT_SPREADABLE]; + return spreadable !== undefined ? !!spreadable : isArray(O); + }; + + var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat'); + + // `Array.prototype.concat` method + // https://tc39.es/ecma262/#sec-array.prototype.concat + // with adding support of @@isConcatSpreadable and @@species + $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, { + // eslint-disable-next-line no-unused-vars -- required for `.length` + concat: function concat(arg) { + var O = toObject(this); + var A = arraySpeciesCreate(O, 0); + var n = 0; + var i, k, length, len, E; + for (i = -1, length = arguments.length; i < length; i++) { + E = i === -1 ? O : arguments[i]; + if (isConcatSpreadable(E)) { + len = lengthOfArrayLike(E); + doesNotExceedSafeInteger(n + len); + for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]); + } else { + doesNotExceedSafeInteger(n + 1); + createProperty(A, n++, E); + } + } + A.length = n; + return A; + } + }); + + /** + * Multiple Select cz-CS translation + * Author: Matej Puhony + */ + + $$1.fn.multipleSelect.locales['cz-CS'] = { + formatSelectAll: function formatSelectAll() { + return '[Vybrat vše]'; + }, + formatAllSelected: function formatAllSelected() { + return 'Vše vybráno'; + }, + formatCountSelected: function formatCountSelected(count, total) { + return "".concat(count, " z ").concat(total, " vybr\xE1no"); + }, + formatNoMatchesFound: function formatNoMatchesFound() { + return 'Nebylo nalezeno'; + } + }; + $$1.extend($$1.fn.multipleSelect.defaults, $$1.fn.multipleSelect.locales['cz-CS']); + +})); diff --git a/dist/locale/multiple-select-cz-CS.min.js b/dist/locale/multiple-select-cz-CS.min.js new file mode 100644 index 00000000..81afa825 --- /dev/null +++ b/dist/locale/multiple-select-cz-CS.min.js @@ -0,0 +1,10 @@ +/** + * multiple-select - Multiple select is a jQuery plugin to select multiple elements with checkboxes :). + * + * @version v1.6.0 + * @homepage http://multiple-select.wenzhixin.net.cn + * @author wenzhixin (http://wenzhixin.net.cn/) + * @license MIT + */ + +!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=function(t){return t&&t.Math==Math&&t},r=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n&&n)||function(){return this}()||n||Function("return this")(),o={},i=function(t){try{return!!t()}catch(t){return!0}},u=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=c,a=Function.prototype.call,l=f?a.bind(a):function(){return a.apply(a,arguments)},s={},p={}.propertyIsEnumerable,y=Object.getOwnPropertyDescriptor,b=y&&!p.call({1:2},1);s.f=b?function(t){var n=y(this,t);return!!n&&n.enumerable}:p;var v,g,d=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},h=c,m=Function.prototype,S=m.call,w=h&&m.bind.bind(S,S),O=h?w:function(t){return function(){return S.apply(t,arguments)}},j=O,P=j({}.toString),E=j("".slice),T=function(t){return E(P(t),8,-1)},A=i,x=T,M=Object,C=O("".split),F=A((function(){return!M("z").propertyIsEnumerable(0)}))?function(t){return"String"==x(t)?C(t,""):M(t)}:M,I=function(t){return null==t},z=I,D=TypeError,L=function(t){if(z(t))throw D("Can't call method on "+t);return t},N=F,_=L,k=function(t){return N(_(t))},R="object"==typeof document&&document.all,G={all:R,IS_HTMLDDA:void 0===R&&void 0!==R},q=G.all,B=G.IS_HTMLDDA?function(t){return"function"==typeof t||t===q}:function(t){return"function"==typeof t},H=B,U=G.all,V=G.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:H(t)||t===U}:function(t){return"object"==typeof t?null!==t:H(t)},W=r,K=B,Q=function(t,n){return arguments.length<2?(e=W[t],K(e)?e:void 0):W[t]&&W[t][n];var e},X=O({}.isPrototypeOf),Y=r,$="undefined"!=typeof navigator&&String(navigator.userAgent)||"",J=Y.process,Z=Y.Deno,tt=J&&J.versions||Z&&Z.version,nt=tt&&tt.v8;nt&&(g=(v=nt.split("."))[0]>0&&v[0]<4?1:+(v[0]+v[1])),!g&&$&&(!(v=$.match(/Edge\/(\d+)/))||v[1]>=74)&&(v=$.match(/Chrome\/(\d+)/))&&(g=+v[1]);var et=g,rt=et,ot=i,it=r.String,ut=!!Object.getOwnPropertySymbols&&!ot((function(){var t=Symbol();return!it(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&rt&&rt<41})),ct=ut&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ft=Q,at=B,lt=X,st=Object,pt=ct?function(t){return"symbol"==typeof t}:function(t){var n=ft("Symbol");return at(n)&<(n.prototype,st(t))},yt=String,bt=B,vt=function(t){try{return yt(t)}catch(t){return"Object"}},gt=TypeError,dt=function(t){if(bt(t))return t;throw gt(vt(t)+" is not a function")},ht=I,mt=l,St=B,wt=V,Ot=TypeError,jt={exports:{}},Pt=r,Et=Object.defineProperty,Tt=function(t,n){try{Et(Pt,t,{value:n,configurable:!0,writable:!0})}catch(e){Pt[t]=n}return n},At=Tt,xt="__core-js_shared__",Mt=r[xt]||At(xt,{}),Ct=Mt;(jt.exports=function(t,n){return Ct[t]||(Ct[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.30.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Ft=jt.exports,It=L,zt=Object,Dt=function(t){return zt(It(t))},Lt=Dt,Nt=O({}.hasOwnProperty),_t=Object.hasOwn||function(t,n){return Nt(Lt(t),n)},kt=O,Rt=0,Gt=Math.random(),qt=kt(1..toString),Bt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+qt(++Rt+Gt,36)},Ht=Ft,Ut=_t,Vt=Bt,Wt=ut,Kt=ct,Qt=r.Symbol,Xt=Ht("wks"),Yt=Kt?Qt.for||Qt:Qt&&Qt.withoutSetter||Vt,$t=function(t){return Ut(Xt,t)||(Xt[t]=Wt&&Ut(Qt,t)?Qt[t]:Yt("Symbol."+t)),Xt[t]},Jt=l,Zt=V,tn=pt,nn=function(t,n){var e=t[n];return ht(e)?void 0:dt(e)},en=function(t,n){var e,r;if("string"===n&&St(e=t.toString)&&!wt(r=mt(e,t)))return r;if(St(e=t.valueOf)&&!wt(r=mt(e,t)))return r;if("string"!==n&&St(e=t.toString)&&!wt(r=mt(e,t)))return r;throw Ot("Can't convert object to primitive value")},rn=TypeError,on=$t("toPrimitive"),un=function(t,n){if(!Zt(t)||tn(t))return t;var e,r=nn(t,on);if(r){if(void 0===n&&(n="default"),e=Jt(r,t,n),!Zt(e)||tn(e))return e;throw rn("Can't convert object to primitive value")}return void 0===n&&(n="number"),en(t,n)},cn=pt,fn=function(t){var n=un(t,"string");return cn(n)?n:n+""},an=V,ln=r.document,sn=an(ln)&&an(ln.createElement),pn=function(t){return sn?ln.createElement(t):{}},yn=!u&&!i((function(){return 7!=Object.defineProperty(pn("div"),"a",{get:function(){return 7}}).a})),bn=u,vn=l,gn=s,dn=d,hn=k,mn=fn,Sn=_t,wn=yn,On=Object.getOwnPropertyDescriptor;o.f=bn?On:function(t,n){if(t=hn(t),n=mn(n),wn)try{return On(t,n)}catch(t){}if(Sn(t,n))return dn(!vn(gn.f,t,n),t[n])};var jn={},Pn=u&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),En=V,Tn=String,An=TypeError,xn=function(t){if(En(t))return t;throw An(Tn(t)+" is not an object")},Mn=u,Cn=yn,Fn=Pn,In=xn,zn=fn,Dn=TypeError,Ln=Object.defineProperty,Nn=Object.getOwnPropertyDescriptor,_n="enumerable",kn="configurable",Rn="writable";jn.f=Mn?Fn?function(t,n,e){if(In(t),n=zn(n),In(e),"function"==typeof t&&"prototype"===n&&"value"in e&&Rn in e&&!e[Rn]){var r=Nn(t,n);r&&r[Rn]&&(t[n]=e.value,e={configurable:kn in e?e[kn]:r[kn],enumerable:_n in e?e[_n]:r[_n],writable:!1})}return Ln(t,n,e)}:Ln:function(t,n,e){if(In(t),n=zn(n),In(e),Cn)try{return Ln(t,n,e)}catch(t){}if("get"in e||"set"in e)throw Dn("Accessors not supported");return"value"in e&&(t[n]=e.value),t};var Gn=jn,qn=d,Bn=u?function(t,n,e){return Gn.f(t,n,qn(1,e))}:function(t,n,e){return t[n]=e,t},Hn={exports:{}},Un=u,Vn=_t,Wn=Function.prototype,Kn=Un&&Object.getOwnPropertyDescriptor,Qn=Vn(Wn,"name"),Xn={EXISTS:Qn,PROPER:Qn&&"something"===function(){}.name,CONFIGURABLE:Qn&&(!Un||Un&&Kn(Wn,"name").configurable)},Yn=B,$n=Mt,Jn=O(Function.toString);Yn($n.inspectSource)||($n.inspectSource=function(t){return Jn(t)});var Zn,te,ne,ee=$n.inspectSource,re=B,oe=r.WeakMap,ie=re(oe)&&/native code/.test(String(oe)),ue=Bt,ce=Ft("keys"),fe={},ae=ie,le=r,se=V,pe=Bn,ye=_t,be=Mt,ve=function(t){return ce[t]||(ce[t]=ue(t))},ge=fe,de="Object already initialized",he=le.TypeError,me=le.WeakMap;if(ae||be.state){var Se=be.state||(be.state=new me);Se.get=Se.get,Se.has=Se.has,Se.set=Se.set,Zn=function(t,n){if(Se.has(t))throw he(de);return n.facade=t,Se.set(t,n),n},te=function(t){return Se.get(t)||{}},ne=function(t){return Se.has(t)}}else{var we=ve("state");ge[we]=!0,Zn=function(t,n){if(ye(t,we))throw he(de);return n.facade=t,pe(t,we,n),n},te=function(t){return ye(t,we)?t[we]:{}},ne=function(t){return ye(t,we)}}var Oe={set:Zn,get:te,has:ne,enforce:function(t){return ne(t)?te(t):Zn(t,{})},getterFor:function(t){return function(n){var e;if(!se(n)||(e=te(n)).type!==t)throw he("Incompatible receiver, "+t+" required");return e}}},je=O,Pe=i,Ee=B,Te=_t,Ae=u,xe=Xn.CONFIGURABLE,Me=ee,Ce=Oe.enforce,Fe=Oe.get,Ie=String,ze=Object.defineProperty,De=je("".slice),Le=je("".replace),Ne=je([].join),_e=Ae&&!Pe((function(){return 8!==ze((function(){}),"length",{value:8}).length})),ke=String(String).split("String"),Re=Hn.exports=function(t,n,e){"Symbol("===De(Ie(n),0,7)&&(n="["+Le(Ie(n),/^Symbol\(([^)]*)\)/,"$1")+"]"),e&&e.getter&&(n="get "+n),e&&e.setter&&(n="set "+n),(!Te(t,"name")||xe&&t.name!==n)&&(Ae?ze(t,"name",{value:n,configurable:!0}):t.name=n),_e&&e&&Te(e,"arity")&&t.length!==e.arity&&ze(t,"length",{value:e.arity});try{e&&Te(e,"constructor")&&e.constructor?Ae&&ze(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=Ce(t);return Te(r,"source")||(r.source=Ne(ke,"string"==typeof n?n:"")),t};Function.prototype.toString=Re((function(){return Ee(this)&&Fe(this).source||Me(this)}),"toString");var Ge=Hn.exports,qe=B,Be=jn,He=Ge,Ue=Tt,Ve={},We=Math.ceil,Ke=Math.floor,Qe=Math.trunc||function(t){var n=+t;return(n>0?Ke:We)(n)},Xe=function(t){var n=+t;return n!=n||0===n?0:Qe(n)},Ye=Xe,$e=Math.max,Je=Math.min,Ze=Xe,tr=Math.min,nr=function(t){return t>0?tr(Ze(t),9007199254740991):0},er=function(t){return nr(t.length)},rr=k,or=function(t,n){var e=Ye(t);return e<0?$e(e+n,0):Je(e,n)},ir=er,ur=function(t){return function(n,e,r){var o,i=rr(n),u=ir(i),c=or(r,u);if(t&&e!=e){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===e)return t||c||0;return!t&&-1}},cr={includes:ur(!0),indexOf:ur(!1)},fr=_t,ar=k,lr=cr.indexOf,sr=fe,pr=O([].push),yr=function(t,n){var e,r=ar(t),o=0,i=[];for(e in r)!fr(sr,e)&&fr(r,e)&&pr(i,e);for(;n.length>o;)fr(r,e=n[o++])&&(~lr(i,e)||pr(i,e));return i},br=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");Ve.f=Object.getOwnPropertyNames||function(t){return yr(t,br)};var vr={};vr.f=Object.getOwnPropertySymbols;var gr=Q,dr=Ve,hr=vr,mr=xn,Sr=O([].concat),wr=gr("Reflect","ownKeys")||function(t){var n=dr.f(mr(t)),e=hr.f;return e?Sr(n,e(t)):n},Or=_t,jr=wr,Pr=o,Er=jn,Tr=i,Ar=B,xr=/#|\.prototype\./,Mr=function(t,n){var e=Fr[Cr(t)];return e==zr||e!=Ir&&(Ar(n)?Tr(n):!!n)},Cr=Mr.normalize=function(t){return String(t).replace(xr,".").toLowerCase()},Fr=Mr.data={},Ir=Mr.NATIVE="N",zr=Mr.POLYFILL="P",Dr=Mr,Lr=r,Nr=o.f,_r=Bn,kr=function(t,n,e,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:n;if(qe(e)&&He(e,i,r),r.global)o?t[n]=e:Ue(n,e);else{try{r.unsafe?t[n]&&(o=!0):delete t[n]}catch(t){}o?t[n]=e:Be.f(t,n,{value:e,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},Rr=Tt,Gr=function(t,n,e){for(var r=jr(n),o=Er.f,i=Pr.f,u=0;u9007199254740991)throw Ur("Maximum allowed index exceeded");return t},Io=function(t,n,e){var r=Vr(n);r in t?Wr.f(t,r,Kr(0,e)):t[r]=e},zo=function(t,n){return new(wo(t))(0===n?0:n)},Do=function(t){return jo>=51||!Oo((function(){var n=[];return(n.constructor={})[Po]=function(){return{foo:1}},1!==n[t](Boolean).foo}))},Lo=et,No=$t("isConcatSpreadable"),_o=Lo>=51||!To((function(){var t=[];return t[No]=!1,t.concat()[0]!==t})),ko=function(t){if(!xo(t))return!1;var n=t[No];return void 0!==n?!!n:Ao(t)};Eo({target:"Array",proto:!0,arity:1,forced:!_o||!Do("concat")},{concat:function(t){var n,e,r,o,i,u=Mo(this),c=zo(u,0),f=0;for(n=-1,r=arguments.length;n 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 && userAgent) { + match = userAgent.match(/Edge\/(\d+)/); + if (!match || match[1] >= 74) { + match = userAgent.match(/Chrome\/(\d+)/); + if (match) version = +match[1]; + } + } + + var engineV8Version = version; + + /* eslint-disable es/no-symbol -- required for testing */ + + var V8_VERSION$2 = engineV8Version; + var fails$7 = fails$b; + var global$8 = global$b; + + var $String$3 = global$8.String; + + // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing + var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$7(function () { + var symbol = Symbol(); + // 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$3(symbol) || !(Object(symbol) instanceof Symbol) || + // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances + !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41; + }); + + /* eslint-disable es/no-symbol -- required for testing */ + + var NATIVE_SYMBOL$1 = symbolConstructorDetection; + + var useSymbolAsUid = NATIVE_SYMBOL$1 + && !Symbol.sham + && typeof Symbol.iterator == 'symbol'; + + var getBuiltIn$2 = getBuiltIn$3; + var isCallable$9 = isCallable$c; + var isPrototypeOf = objectIsPrototypeOf; + var USE_SYMBOL_AS_UID$1 = useSymbolAsUid; + + var $Object$2 = Object; + + var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) { + return typeof it == 'symbol'; + } : function (it) { + var $Symbol = getBuiltIn$2('Symbol'); + return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it)); + }; + + var $String$2 = String; + + var tryToString$1 = function (argument) { + try { + return $String$2(argument); + } catch (error) { + return 'Object'; + } + }; + + var isCallable$8 = isCallable$c; + var tryToString = tryToString$1; + + var $TypeError$5 = TypeError; + + // `Assert: IsCallable(argument) is true` + var aCallable$1 = function (argument) { + if (isCallable$8(argument)) return argument; + throw $TypeError$5(tryToString(argument) + ' is not a function'); + }; + + var aCallable = aCallable$1; + var isNullOrUndefined = isNullOrUndefined$2; + + // `GetMethod` abstract operation + // https://tc39.es/ecma262/#sec-getmethod + var getMethod$1 = function (V, P) { + var func = V[P]; + return isNullOrUndefined(func) ? undefined : aCallable(func); + }; + + var call$2 = functionCall; + var isCallable$7 = isCallable$c; + var isObject$6 = isObject$7; + + var $TypeError$4 = TypeError; + + // `OrdinaryToPrimitive` abstract operation + // https://tc39.es/ecma262/#sec-ordinarytoprimitive + var ordinaryToPrimitive$1 = function (input, pref) { + var fn, val; + if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val; + if (isCallable$7(fn = input.valueOf) && !isObject$6(val = call$2(fn, input))) return val; + if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val; + throw $TypeError$4("Can't convert object to primitive value"); + }; + + var shared$3 = {exports: {}}; + + var global$7 = global$b; + + // eslint-disable-next-line es/no-object-defineproperty -- safe + var defineProperty$1 = Object.defineProperty; + + var defineGlobalProperty$3 = function (key, value) { + try { + defineProperty$1(global$7, key, { value: value, configurable: true, writable: true }); + } catch (error) { + global$7[key] = value; + } return value; + }; + + var global$6 = global$b; + var defineGlobalProperty$2 = defineGlobalProperty$3; + + var SHARED = '__core-js_shared__'; + var store$3 = global$6[SHARED] || defineGlobalProperty$2(SHARED, {}); + + var sharedStore = store$3; + + var store$2 = sharedStore; + + (shared$3.exports = function (key, value) { + return store$2[key] || (store$2[key] = value !== undefined ? value : {}); + })('versions', []).push({ + version: '3.30.2', + mode: 'global', + copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)', + license: 'https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE', + source: 'https://github.com/zloirock/core-js' + }); + + var sharedExports = shared$3.exports; + + var requireObjectCoercible = requireObjectCoercible$2; + + var $Object$1 = Object; + + // `ToObject` abstract operation + // https://tc39.es/ecma262/#sec-toobject + var toObject$2 = function (argument) { + return $Object$1(requireObjectCoercible(argument)); + }; + + var uncurryThis$6 = functionUncurryThis; + var toObject$1 = toObject$2; + + var hasOwnProperty = uncurryThis$6({}.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$1(it), key); + }; + + var uncurryThis$5 = functionUncurryThis; + + var id = 0; + var postfix = Math.random(); + var toString = uncurryThis$5(1.0.toString); + + var uid$2 = function (key) { + return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36); + }; + + var global$5 = global$b; + var shared$2 = sharedExports; + var hasOwn$6 = hasOwnProperty_1; + var uid$1 = uid$2; + var NATIVE_SYMBOL = symbolConstructorDetection; + var USE_SYMBOL_AS_UID = useSymbolAsUid; + + var Symbol$1 = global$5.Symbol; + var WellKnownSymbolsStore = shared$2('wks'); + var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1; + + var wellKnownSymbol$6 = function (name) { + if (!hasOwn$6(WellKnownSymbolsStore, name)) { + WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name) + ? Symbol$1[name] + : createWellKnownSymbol('Symbol.' + name); + } return WellKnownSymbolsStore[name]; + }; + + var call$1 = functionCall; + var isObject$5 = isObject$7; + var isSymbol$1 = isSymbol$2; + var getMethod = getMethod$1; + var ordinaryToPrimitive = ordinaryToPrimitive$1; + var wellKnownSymbol$5 = wellKnownSymbol$6; + + var $TypeError$3 = TypeError; + var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive'); + + // `ToPrimitive` abstract operation + // https://tc39.es/ecma262/#sec-toprimitive + var toPrimitive$1 = function (input, pref) { + if (!isObject$5(input) || isSymbol$1(input)) return input; + var exoticToPrim = getMethod(input, TO_PRIMITIVE); + var result; + if (exoticToPrim) { + if (pref === undefined) pref = 'default'; + result = call$1(exoticToPrim, input, pref); + if (!isObject$5(result) || isSymbol$1(result)) return result; + throw $TypeError$3("Can't convert object to primitive value"); + } + if (pref === undefined) pref = 'number'; + return ordinaryToPrimitive(input, pref); + }; + + var toPrimitive = toPrimitive$1; + var isSymbol = isSymbol$2; + + // `ToPropertyKey` abstract operation + // https://tc39.es/ecma262/#sec-topropertykey + var toPropertyKey$3 = function (argument) { + var key = toPrimitive(argument, 'string'); + return isSymbol(key) ? key : key + ''; + }; + + var global$4 = global$b; + var isObject$4 = isObject$7; + + var document$1 = global$4.document; + // typeof document.createElement is 'object' in old IE + var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement); + + var documentCreateElement = function (it) { + return EXISTS$1 ? document$1.createElement(it) : {}; + }; + + var DESCRIPTORS$6 = descriptors; + var fails$6 = fails$b; + var createElement = documentCreateElement; + + // Thanks to IE8 for its funny defineProperty + var ie8DomDefine = !DESCRIPTORS$6 && !fails$6(function () { + // eslint-disable-next-line es/no-object-defineproperty -- required for testing + return Object.defineProperty(createElement('div'), 'a', { + get: function () { return 7; } + }).a != 7; + }); + + var DESCRIPTORS$5 = descriptors; + var call = functionCall; + var propertyIsEnumerableModule = objectPropertyIsEnumerable; + var createPropertyDescriptor$2 = createPropertyDescriptor$3; + var toIndexedObject$2 = toIndexedObject$3; + var toPropertyKey$2 = toPropertyKey$3; + var hasOwn$5 = hasOwnProperty_1; + var IE8_DOM_DEFINE$1 = ie8DomDefine; + + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; + + // `Object.getOwnPropertyDescriptor` method + // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor + objectGetOwnPropertyDescriptor.f = DESCRIPTORS$5 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) { + O = toIndexedObject$2(O); + P = toPropertyKey$2(P); + if (IE8_DOM_DEFINE$1) try { + return $getOwnPropertyDescriptor$1(O, P); + } catch (error) { /* empty */ } + if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call(propertyIsEnumerableModule.f, O, P), O[P]); + }; + + var objectDefineProperty = {}; + + var DESCRIPTORS$4 = descriptors; + var fails$5 = fails$b; + + // V8 ~ Chrome 36- + // https://bugs.chromium.org/p/v8/issues/detail?id=3334 + var v8PrototypeDefineBug = DESCRIPTORS$4 && fails$5(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$3 = isObject$7; + + var $String$1 = String; + var $TypeError$2 = TypeError; + + // `Assert: Type(argument) is Object` + var anObject$2 = function (argument) { + if (isObject$3(argument)) return argument; + throw $TypeError$2($String$1(argument) + ' is not an object'); + }; + + var DESCRIPTORS$3 = descriptors; + var IE8_DOM_DEFINE = ie8DomDefine; + var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug; + var anObject$1 = anObject$2; + var toPropertyKey$1 = toPropertyKey$3; + + var $TypeError$1 = TypeError; + // eslint-disable-next-line es/no-object-defineproperty -- safe + var $defineProperty = Object.defineProperty; + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var $getOwnPropertyDescriptor = 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$3 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) { + anObject$1(O); + P = toPropertyKey$1(P); + anObject$1(Attributes); + if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) { + var current = $getOwnPropertyDescriptor(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(O, P, Attributes); + } : $defineProperty : function defineProperty(O, P, Attributes) { + anObject$1(O); + P = toPropertyKey$1(P); + anObject$1(Attributes); + if (IE8_DOM_DEFINE) try { + return $defineProperty(O, P, Attributes); + } catch (error) { /* empty */ } + if ('get' in Attributes || 'set' in Attributes) throw $TypeError$1('Accessors not supported'); + if ('value' in Attributes) O[P] = Attributes.value; + return O; + }; + + var DESCRIPTORS$2 = descriptors; + var definePropertyModule$3 = objectDefineProperty; + var createPropertyDescriptor$1 = createPropertyDescriptor$3; + + var createNonEnumerableProperty$2 = DESCRIPTORS$2 ? function (object, key, value) { + return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value)); + } : function (object, key, value) { + object[key] = value; + return object; + }; + + var makeBuiltIn$2 = {exports: {}}; + + var DESCRIPTORS$1 = descriptors; + var hasOwn$4 = hasOwnProperty_1; + + var FunctionPrototype = Function.prototype; + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var getDescriptor = DESCRIPTORS$1 && Object.getOwnPropertyDescriptor; + + var EXISTS = hasOwn$4(FunctionPrototype, 'name'); + // additional protection from minified / mangled / dropped function names + var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something'; + var CONFIGURABLE = EXISTS && (!DESCRIPTORS$1 || (DESCRIPTORS$1 && getDescriptor(FunctionPrototype, 'name').configurable)); + + var functionName = { + EXISTS: EXISTS, + PROPER: PROPER, + CONFIGURABLE: CONFIGURABLE + }; + + var uncurryThis$4 = functionUncurryThis; + var isCallable$6 = isCallable$c; + var store$1 = sharedStore; + + var functionToString = uncurryThis$4(Function.toString); + + // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper + if (!isCallable$6(store$1.inspectSource)) { + store$1.inspectSource = function (it) { + return functionToString(it); + }; + } + + var inspectSource$2 = store$1.inspectSource; + + var global$3 = global$b; + var isCallable$5 = isCallable$c; + + var WeakMap$1 = global$3.WeakMap; + + var weakMapBasicDetection = isCallable$5(WeakMap$1) && /native code/.test(String(WeakMap$1)); + + var shared$1 = sharedExports; + var uid = uid$2; + + var keys = shared$1('keys'); + + var sharedKey$1 = function (key) { + return keys[key] || (keys[key] = uid(key)); + }; + + var hiddenKeys$3 = {}; + + var NATIVE_WEAK_MAP = weakMapBasicDetection; + var global$2 = global$b; + var isObject$2 = isObject$7; + var createNonEnumerableProperty$1 = createNonEnumerableProperty$2; + var hasOwn$3 = hasOwnProperty_1; + var shared = sharedStore; + var sharedKey = sharedKey$1; + var hiddenKeys$2 = hiddenKeys$3; + + var OBJECT_ALREADY_INITIALIZED = 'Object already initialized'; + var TypeError$1 = global$2.TypeError; + var WeakMap = global$2.WeakMap; + var set, get, has; + + var enforce = function (it) { + return has(it) ? get(it) : set(it, {}); + }; + + var getterFor = function (TYPE) { + return function (it) { + var state; + if (!isObject$2(it) || (state = get(it)).type !== TYPE) { + throw TypeError$1('Incompatible receiver, ' + TYPE + ' required'); + } return state; + }; + }; + + if (NATIVE_WEAK_MAP || shared.state) { + var store = shared.state || (shared.state = new WeakMap()); + /* 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 = function (it, metadata) { + if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED); + metadata.facade = it; + store.set(it, metadata); + return metadata; + }; + get = function (it) { + return store.get(it) || {}; + }; + has = function (it) { + return store.has(it); + }; + } else { + var STATE = sharedKey('state'); + hiddenKeys$2[STATE] = true; + set = function (it, metadata) { + if (hasOwn$3(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED); + metadata.facade = it; + createNonEnumerableProperty$1(it, STATE, metadata); + return metadata; + }; + get = function (it) { + return hasOwn$3(it, STATE) ? it[STATE] : {}; + }; + has = function (it) { + return hasOwn$3(it, STATE); + }; + } + + var internalState = { + set: set, + get: get, + has: has, + enforce: enforce, + getterFor: getterFor + }; + + var uncurryThis$3 = functionUncurryThis; + var fails$4 = fails$b; + var isCallable$4 = isCallable$c; + var hasOwn$2 = hasOwnProperty_1; + var DESCRIPTORS = descriptors; + var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE; + var inspectSource$1 = inspectSource$2; + var InternalStateModule = internalState; + + var enforceInternalState = InternalStateModule.enforce; + var getInternalState = InternalStateModule.get; + var $String = String; + // eslint-disable-next-line es/no-object-defineproperty -- safe + var defineProperty = Object.defineProperty; + var stringSlice = uncurryThis$3(''.slice); + var replace = uncurryThis$3(''.replace); + var join = uncurryThis$3([].join); + + var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails$4(function () { + return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8; + }); + + var TEMPLATE = String(String).split('String'); + + var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) { + if (stringSlice($String(name), 0, 7) === 'Symbol(') { + name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']'; + } + if (options && options.getter) name = 'get ' + name; + if (options && options.setter) name = 'set ' + name; + if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) { + if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true }); + else value.name = name; + } + if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) { + defineProperty(value, 'length', { value: options.arity }); + } + try { + if (options && hasOwn$2(options, 'constructor') && options.constructor) { + if (DESCRIPTORS) defineProperty(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(value); + if (!hasOwn$2(state, 'source')) { + state.source = join(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$1(function toString() { + return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this); + }, 'toString'); + + var makeBuiltInExports = makeBuiltIn$2.exports; + + var isCallable$3 = isCallable$c; + var definePropertyModule$2 = objectDefineProperty; + var makeBuiltIn = makeBuiltInExports; + var defineGlobalProperty$1 = defineGlobalProperty$3; + + var defineBuiltIn$1 = function (O, key, value, options) { + if (!options) options = {}; + var simple = options.enumerable; + var name = options.name !== undefined ? options.name : key; + if (isCallable$3(value)) makeBuiltIn(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$2.f(O, key, { + value: value, + enumerable: false, + configurable: !options.nonConfigurable, + writable: !options.nonWritable + }); + } return O; + }; + + var objectGetOwnPropertyNames = {}; + + var ceil = Math.ceil; + var floor = 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 : ceil)(n); + }; + + var trunc = mathTrunc; + + // `ToIntegerOrInfinity` abstract operation + // https://tc39.es/ecma262/#sec-tointegerorinfinity + var toIntegerOrInfinity$2 = function (argument) { + var number = +argument; + // eslint-disable-next-line no-self-compare -- NaN check + return number !== number || number === 0 ? 0 : trunc(number); + }; + + var toIntegerOrInfinity$1 = toIntegerOrInfinity$2; + + var max = Math.max; + var min$1 = 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$1 = function (index, length) { + var integer = toIntegerOrInfinity$1(index); + return integer < 0 ? max(integer + length, 0) : min$1(integer, length); + }; + + var toIntegerOrInfinity = toIntegerOrInfinity$2; + + var min = Math.min; + + // `ToLength` abstract operation + // https://tc39.es/ecma262/#sec-tolength + var toLength$1 = function (argument) { + return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 + }; + + var toLength = toLength$1; + + // `LengthOfArrayLike` abstract operation + // https://tc39.es/ecma262/#sec-lengthofarraylike + var lengthOfArrayLike$2 = function (obj) { + return toLength(obj.length); + }; + + var toIndexedObject$1 = toIndexedObject$3; + var toAbsoluteIndex = toAbsoluteIndex$1; + var lengthOfArrayLike$1 = lengthOfArrayLike$2; + + // `Array.prototype.{ indexOf, includes }` methods implementation + var createMethod = function (IS_INCLUDES) { + return function ($this, el, fromIndex) { + var O = toIndexedObject$1($this); + var length = lengthOfArrayLike$1(O); + var index = toAbsoluteIndex(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(true), + // `Array.prototype.indexOf` method + // https://tc39.es/ecma262/#sec-array.prototype.indexof + indexOf: createMethod(false) + }; + + var uncurryThis$2 = functionUncurryThis; + var hasOwn$1 = hasOwnProperty_1; + var toIndexedObject = toIndexedObject$3; + var indexOf = arrayIncludes.indexOf; + var hiddenKeys$1 = hiddenKeys$3; + + var push = uncurryThis$2([].push); + + var objectKeysInternal = function (object, names) { + var O = toIndexedObject(object); + var i = 0; + var result = []; + var key; + for (key in O) !hasOwn$1(hiddenKeys$1, key) && hasOwn$1(O, key) && push(result, key); + // Don't enum bug & hidden keys + while (names.length > i) if (hasOwn$1(O, key = names[i++])) { + ~indexOf(result, key) || push(result, key); + } + return result; + }; + + // IE8- don't enum bug keys + var enumBugKeys$1 = [ + 'constructor', + 'hasOwnProperty', + 'isPrototypeOf', + 'propertyIsEnumerable', + 'toLocaleString', + 'toString', + 'valueOf' + ]; + + var internalObjectKeys = objectKeysInternal; + var enumBugKeys = enumBugKeys$1; + + var hiddenKeys = enumBugKeys.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(O, hiddenKeys); + }; + + var objectGetOwnPropertySymbols = {}; + + // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe + objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols; + + var getBuiltIn$1 = getBuiltIn$3; + var uncurryThis$1 = functionUncurryThis; + var getOwnPropertyNamesModule = objectGetOwnPropertyNames; + var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols; + var anObject = anObject$2; + + var concat = uncurryThis$1([].concat); + + // all object keys, includes non-enumerable and symbols + var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) { + var keys = getOwnPropertyNamesModule.f(anObject(it)); + var getOwnPropertySymbols = getOwnPropertySymbolsModule.f; + return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys; + }; + + var hasOwn = hasOwnProperty_1; + var ownKeys = ownKeys$1; + var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor; + var definePropertyModule$1 = objectDefineProperty; + + var copyConstructorProperties$1 = function (target, source, exceptions) { + var keys = ownKeys(source); + var defineProperty = definePropertyModule$1.f; + var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) { + defineProperty(target, key, getOwnPropertyDescriptor(source, key)); + } + } + }; + + var fails$3 = fails$b; + var isCallable$2 = isCallable$c; + + var replacement = /#|\.prototype\./; + + var isForced$1 = function (feature, detection) { + var value = data[normalize(feature)]; + return value == POLYFILL ? true + : value == NATIVE ? false + : isCallable$2(detection) ? fails$3(detection) + : !!detection; + }; + + var normalize = isForced$1.normalize = function (string) { + return String(string).replace(replacement, '.').toLowerCase(); + }; + + var data = isForced$1.data = {}; + var NATIVE = isForced$1.NATIVE = 'N'; + var POLYFILL = isForced$1.POLYFILL = 'P'; + + var isForced_1 = isForced$1; + + var global$1 = global$b; + var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f; + var createNonEnumerableProperty = createNonEnumerableProperty$2; + var defineBuiltIn = defineBuiltIn$1; + var defineGlobalProperty = defineGlobalProperty$3; + var copyConstructorProperties = copyConstructorProperties$1; + var isForced = 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 = global$1; + } else if (STATIC) { + target = global$1[TARGET] || defineGlobalProperty(TARGET, {}); + } else { + target = (global$1[TARGET] || {}).prototype; + } + if (target) for (key in source) { + sourceProperty = source[key]; + if (options.dontCallGetSet) { + descriptor = getOwnPropertyDescriptor(target, key); + targetProperty = descriptor && descriptor.value; + } else targetProperty = target[key]; + FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); + // contained in target + if (!FORCED && targetProperty !== undefined) { + if (typeof sourceProperty == typeof targetProperty) continue; + copyConstructorProperties(sourceProperty, targetProperty); + } + // add a flag to not completely full polyfills + if (options.sham || (targetProperty && targetProperty.sham)) { + createNonEnumerableProperty(sourceProperty, 'sham', true); + } + defineBuiltIn(target, key, sourceProperty, options); + } + }; + + var classof$2 = classofRaw$1; + + // `IsArray` abstract operation + // https://tc39.es/ecma262/#sec-isarray + // eslint-disable-next-line es/no-array-isarray -- safe + var isArray$2 = Array.isArray || function isArray(argument) { + return classof$2(argument) == 'Array'; + }; + + var $TypeError = TypeError; + var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991 + + var doesNotExceedSafeInteger$1 = function (it) { + if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded'); + return it; + }; + + var toPropertyKey = toPropertyKey$3; + var definePropertyModule = objectDefineProperty; + var createPropertyDescriptor = createPropertyDescriptor$3; + + var createProperty$1 = function (object, key, value) { + var propertyKey = toPropertyKey(key); + if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value)); + else object[propertyKey] = value; + }; + + var wellKnownSymbol$4 = wellKnownSymbol$6; + + var TO_STRING_TAG$1 = wellKnownSymbol$4('toStringTag'); + var test = {}; + + test[TO_STRING_TAG$1] = 'z'; + + var toStringTagSupport = String(test) === '[object z]'; + + var TO_STRING_TAG_SUPPORT = toStringTagSupport; + var isCallable$1 = isCallable$c; + var classofRaw = classofRaw$1; + var wellKnownSymbol$3 = wellKnownSymbol$6; + + var TO_STRING_TAG = wellKnownSymbol$3('toStringTag'); + var $Object = Object; + + // ES3 wrong here + var CORRECT_ARGUMENTS = classofRaw(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$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) { + var O, tag, result; + return it === undefined ? 'Undefined' : it === null ? 'Null' + // @@toStringTag case + : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag + // builtinTag case + : CORRECT_ARGUMENTS ? classofRaw(O) + // ES3 arguments fallback + : (result = classofRaw(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result; + }; + + var uncurryThis = functionUncurryThis; + var fails$2 = fails$b; + var isCallable = isCallable$c; + var classof = classof$1; + var getBuiltIn = getBuiltIn$3; + var inspectSource = inspectSource$2; + + var noop = function () { /* empty */ }; + var empty = []; + var construct = getBuiltIn('Reflect', 'construct'); + var constructorRegExp = /^\s*(?:class|function)\b/; + var exec = uncurryThis(constructorRegExp.exec); + var INCORRECT_TO_STRING = !constructorRegExp.exec(noop); + + var isConstructorModern = function isConstructor(argument) { + if (!isCallable(argument)) return false; + try { + construct(noop, empty, argument); + return true; + } catch (error) { + return false; + } + }; + + var isConstructorLegacy = function isConstructor(argument) { + if (!isCallable(argument)) return false; + switch (classof(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 || !!exec(constructorRegExp, inspectSource(argument)); + } catch (error) { + return true; + } + }; + + isConstructorLegacy.sham = true; + + // `IsConstructor` abstract operation + // https://tc39.es/ecma262/#sec-isconstructor + var isConstructor$1 = !construct || fails$2(function () { + var called; + return isConstructorModern(isConstructorModern.call) + || !isConstructorModern(Object) + || !isConstructorModern(function () { called = true; }) + || called; + }) ? isConstructorLegacy : isConstructorModern; + + var isArray$1 = isArray$2; + var isConstructor = isConstructor$1; + var isObject$1 = isObject$7; + var wellKnownSymbol$2 = wellKnownSymbol$6; + + var SPECIES$1 = wellKnownSymbol$2('species'); + var $Array = Array; + + // a part of `ArraySpeciesCreate` abstract operation + // https://tc39.es/ecma262/#sec-arrayspeciescreate + var arraySpeciesConstructor$1 = function (originalArray) { + var C; + if (isArray$1(originalArray)) { + C = originalArray.constructor; + // cross-realm fallback + if (isConstructor(C) && (C === $Array || isArray$1(C.prototype))) C = undefined; + else if (isObject$1(C)) { + C = C[SPECIES$1]; + if (C === null) C = undefined; + } + } return C === undefined ? $Array : C; + }; + + var arraySpeciesConstructor = arraySpeciesConstructor$1; + + // `ArraySpeciesCreate` abstract operation + // https://tc39.es/ecma262/#sec-arrayspeciescreate + var arraySpeciesCreate$1 = function (originalArray, length) { + return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length); + }; + + var fails$1 = fails$b; + var wellKnownSymbol$1 = wellKnownSymbol$6; + var V8_VERSION$1 = engineV8Version; + + var SPECIES = wellKnownSymbol$1('species'); + + var arrayMethodHasSpeciesSupport$1 = function (METHOD_NAME) { + // We can't use this feature detection in V8 since it causes + // deoptimization and serious performance degradation + // https://github.com/zloirock/core-js/issues/677 + return V8_VERSION$1 >= 51 || !fails$1(function () { + var array = []; + var constructor = array.constructor = {}; + constructor[SPECIES] = function () { + return { foo: 1 }; + }; + return array[METHOD_NAME](Boolean).foo !== 1; + }); + }; + + var $ = _export; + var fails = fails$b; + var isArray = isArray$2; + var isObject = isObject$7; + var toObject = toObject$2; + var lengthOfArrayLike = lengthOfArrayLike$2; + var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1; + var createProperty = createProperty$1; + var arraySpeciesCreate = arraySpeciesCreate$1; + var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1; + var wellKnownSymbol = wellKnownSymbol$6; + var V8_VERSION = engineV8Version; + + var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable'); + + // We can't use this feature detection in V8 since it causes + // deoptimization and serious performance degradation + // https://github.com/zloirock/core-js/issues/679 + var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () { + var array = []; + array[IS_CONCAT_SPREADABLE] = false; + return array.concat()[0] !== array; + }); + + var isConcatSpreadable = function (O) { + if (!isObject(O)) return false; + var spreadable = O[IS_CONCAT_SPREADABLE]; + return spreadable !== undefined ? !!spreadable : isArray(O); + }; + + var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat'); + + // `Array.prototype.concat` method + // https://tc39.es/ecma262/#sec-array.prototype.concat + // with adding support of @@isConcatSpreadable and @@species + $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, { + // eslint-disable-next-line no-unused-vars -- required for `.length` + concat: function concat(arg) { + var O = toObject(this); + var A = arraySpeciesCreate(O, 0); + var n = 0; + var i, k, length, len, E; + for (i = -1, length = arguments.length; i < length; i++) { + E = i === -1 ? O : arguments[i]; + if (isConcatSpreadable(E)) { + len = lengthOfArrayLike(E); + doesNotExceedSafeInteger(n + len); + for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]); + } else { + doesNotExceedSafeInteger(n + 1); + createProperty(A, n++, E); + } + } + A.length = n; + return A; + } + }); + + /** + * Multiple Select da-DK translation + * Author: HThuren + */ + + $$1.fn.multipleSelect.locales['da-DK'] = { + formatSelectAll: function formatSelectAll() { + return '[Vælg/fravælg alle]'; + }, + formatAllSelected: function formatAllSelected() { + return 'Alle valgt'; + }, + formatCountSelected: function formatCountSelected(count, total) { + return "".concat(count, " af ").concat(total, " valgt"); + }, + formatNoMatchesFound: function formatNoMatchesFound() { + return 'Søgning uden resultat'; + } + }; + $$1.extend($$1.fn.multipleSelect.defaults, $$1.fn.multipleSelect.locales['da-DK']); + +})); diff --git a/dist/locale/multiple-select-da-DK.min.js b/dist/locale/multiple-select-da-DK.min.js new file mode 100644 index 00000000..4f25beaa --- /dev/null +++ b/dist/locale/multiple-select-da-DK.min.js @@ -0,0 +1,10 @@ +/** + * multiple-select - Multiple select is a jQuery plugin to select multiple elements with checkboxes :). + * + * @version v1.6.0 + * @homepage http://multiple-select.wenzhixin.net.cn + * @author wenzhixin (http://wenzhixin.net.cn/) + * @license MIT + */ + +!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=function(t){return t&&t.Math==Math&&t},r=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n&&n)||function(){return this}()||n||Function("return this")(),o={},i=function(t){try{return!!t()}catch(t){return!0}},u=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),a=c,f=Function.prototype.call,l=a?f.bind(f):function(){return f.apply(f,arguments)},s={},p={}.propertyIsEnumerable,y=Object.getOwnPropertyDescriptor,b=y&&!p.call({1:2},1);s.f=b?function(t){var n=y(this,t);return!!n&&n.enumerable}:p;var v,g,d=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},h=c,m=Function.prototype,S=m.call,w=h&&m.bind.bind(S,S),O=h?w:function(t){return function(){return S.apply(t,arguments)}},j=O,P=j({}.toString),E=j("".slice),T=function(t){return E(P(t),8,-1)},A=i,x=T,M=Object,D=O("".split),F=A((function(){return!M("z").propertyIsEnumerable(0)}))?function(t){return"String"==x(t)?D(t,""):M(t)}:M,I=function(t){return null==t},C=I,L=TypeError,_=function(t){if(C(t))throw L("Can't call method on "+t);return t},k=F,z=_,N=function(t){return k(z(t))},R="object"==typeof document&&document.all,G={all:R,IS_HTMLDDA:void 0===R&&void 0!==R},q=G.all,B=G.IS_HTMLDDA?function(t){return"function"==typeof t||t===q}:function(t){return"function"==typeof t},H=B,K=G.all,U=G.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:H(t)||t===K}:function(t){return"object"==typeof t?null!==t:H(t)},W=r,V=B,Q=function(t,n){return arguments.length<2?(e=W[t],V(e)?e:void 0):W[t]&&W[t][n];var e},X=O({}.isPrototypeOf),Y=r,$="undefined"!=typeof navigator&&String(navigator.userAgent)||"",J=Y.process,Z=Y.Deno,tt=J&&J.versions||Z&&Z.version,nt=tt&&tt.v8;nt&&(g=(v=nt.split("."))[0]>0&&v[0]<4?1:+(v[0]+v[1])),!g&&$&&(!(v=$.match(/Edge\/(\d+)/))||v[1]>=74)&&(v=$.match(/Chrome\/(\d+)/))&&(g=+v[1]);var et=g,rt=et,ot=i,it=r.String,ut=!!Object.getOwnPropertySymbols&&!ot((function(){var t=Symbol();return!it(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&rt&&rt<41})),ct=ut&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,at=Q,ft=B,lt=X,st=Object,pt=ct?function(t){return"symbol"==typeof t}:function(t){var n=at("Symbol");return ft(n)&<(n.prototype,st(t))},yt=String,bt=B,vt=function(t){try{return yt(t)}catch(t){return"Object"}},gt=TypeError,dt=function(t){if(bt(t))return t;throw gt(vt(t)+" is not a function")},ht=I,mt=l,St=B,wt=U,Ot=TypeError,jt={exports:{}},Pt=r,Et=Object.defineProperty,Tt=function(t,n){try{Et(Pt,t,{value:n,configurable:!0,writable:!0})}catch(e){Pt[t]=n}return n},At=Tt,xt="__core-js_shared__",Mt=r[xt]||At(xt,{}),Dt=Mt;(jt.exports=function(t,n){return Dt[t]||(Dt[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.30.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Ft=jt.exports,It=_,Ct=Object,Lt=function(t){return Ct(It(t))},_t=Lt,kt=O({}.hasOwnProperty),zt=Object.hasOwn||function(t,n){return kt(_t(t),n)},Nt=O,Rt=0,Gt=Math.random(),qt=Nt(1..toString),Bt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+qt(++Rt+Gt,36)},Ht=Ft,Kt=zt,Ut=Bt,Wt=ut,Vt=ct,Qt=r.Symbol,Xt=Ht("wks"),Yt=Vt?Qt.for||Qt:Qt&&Qt.withoutSetter||Ut,$t=function(t){return Kt(Xt,t)||(Xt[t]=Wt&&Kt(Qt,t)?Qt[t]:Yt("Symbol."+t)),Xt[t]},Jt=l,Zt=U,tn=pt,nn=function(t,n){var e=t[n];return ht(e)?void 0:dt(e)},en=function(t,n){var e,r;if("string"===n&&St(e=t.toString)&&!wt(r=mt(e,t)))return r;if(St(e=t.valueOf)&&!wt(r=mt(e,t)))return r;if("string"!==n&&St(e=t.toString)&&!wt(r=mt(e,t)))return r;throw Ot("Can't convert object to primitive value")},rn=TypeError,on=$t("toPrimitive"),un=function(t,n){if(!Zt(t)||tn(t))return t;var e,r=nn(t,on);if(r){if(void 0===n&&(n="default"),e=Jt(r,t,n),!Zt(e)||tn(e))return e;throw rn("Can't convert object to primitive value")}return void 0===n&&(n="number"),en(t,n)},cn=pt,an=function(t){var n=un(t,"string");return cn(n)?n:n+""},fn=U,ln=r.document,sn=fn(ln)&&fn(ln.createElement),pn=function(t){return sn?ln.createElement(t):{}},yn=!u&&!i((function(){return 7!=Object.defineProperty(pn("div"),"a",{get:function(){return 7}}).a})),bn=u,vn=l,gn=s,dn=d,hn=N,mn=an,Sn=zt,wn=yn,On=Object.getOwnPropertyDescriptor;o.f=bn?On:function(t,n){if(t=hn(t),n=mn(n),wn)try{return On(t,n)}catch(t){}if(Sn(t,n))return dn(!vn(gn.f,t,n),t[n])};var jn={},Pn=u&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),En=U,Tn=String,An=TypeError,xn=function(t){if(En(t))return t;throw An(Tn(t)+" is not an object")},Mn=u,Dn=yn,Fn=Pn,In=xn,Cn=an,Ln=TypeError,_n=Object.defineProperty,kn=Object.getOwnPropertyDescriptor,zn="enumerable",Nn="configurable",Rn="writable";jn.f=Mn?Fn?function(t,n,e){if(In(t),n=Cn(n),In(e),"function"==typeof t&&"prototype"===n&&"value"in e&&Rn in e&&!e[Rn]){var r=kn(t,n);r&&r[Rn]&&(t[n]=e.value,e={configurable:Nn in e?e[Nn]:r[Nn],enumerable:zn in e?e[zn]:r[zn],writable:!1})}return _n(t,n,e)}:_n:function(t,n,e){if(In(t),n=Cn(n),In(e),Dn)try{return _n(t,n,e)}catch(t){}if("get"in e||"set"in e)throw Ln("Accessors not supported");return"value"in e&&(t[n]=e.value),t};var Gn=jn,qn=d,Bn=u?function(t,n,e){return Gn.f(t,n,qn(1,e))}:function(t,n,e){return t[n]=e,t},Hn={exports:{}},Kn=u,Un=zt,Wn=Function.prototype,Vn=Kn&&Object.getOwnPropertyDescriptor,Qn=Un(Wn,"name"),Xn={EXISTS:Qn,PROPER:Qn&&"something"===function(){}.name,CONFIGURABLE:Qn&&(!Kn||Kn&&Vn(Wn,"name").configurable)},Yn=B,$n=Mt,Jn=O(Function.toString);Yn($n.inspectSource)||($n.inspectSource=function(t){return Jn(t)});var Zn,te,ne,ee=$n.inspectSource,re=B,oe=r.WeakMap,ie=re(oe)&&/native code/.test(String(oe)),ue=Bt,ce=Ft("keys"),ae={},fe=ie,le=r,se=U,pe=Bn,ye=zt,be=Mt,ve=function(t){return ce[t]||(ce[t]=ue(t))},ge=ae,de="Object already initialized",he=le.TypeError,me=le.WeakMap;if(fe||be.state){var Se=be.state||(be.state=new me);Se.get=Se.get,Se.has=Se.has,Se.set=Se.set,Zn=function(t,n){if(Se.has(t))throw he(de);return n.facade=t,Se.set(t,n),n},te=function(t){return Se.get(t)||{}},ne=function(t){return Se.has(t)}}else{var we=ve("state");ge[we]=!0,Zn=function(t,n){if(ye(t,we))throw he(de);return n.facade=t,pe(t,we,n),n},te=function(t){return ye(t,we)?t[we]:{}},ne=function(t){return ye(t,we)}}var Oe={set:Zn,get:te,has:ne,enforce:function(t){return ne(t)?te(t):Zn(t,{})},getterFor:function(t){return function(n){var e;if(!se(n)||(e=te(n)).type!==t)throw he("Incompatible receiver, "+t+" required");return e}}},je=O,Pe=i,Ee=B,Te=zt,Ae=u,xe=Xn.CONFIGURABLE,Me=ee,De=Oe.enforce,Fe=Oe.get,Ie=String,Ce=Object.defineProperty,Le=je("".slice),_e=je("".replace),ke=je([].join),ze=Ae&&!Pe((function(){return 8!==Ce((function(){}),"length",{value:8}).length})),Ne=String(String).split("String"),Re=Hn.exports=function(t,n,e){"Symbol("===Le(Ie(n),0,7)&&(n="["+_e(Ie(n),/^Symbol\(([^)]*)\)/,"$1")+"]"),e&&e.getter&&(n="get "+n),e&&e.setter&&(n="set "+n),(!Te(t,"name")||xe&&t.name!==n)&&(Ae?Ce(t,"name",{value:n,configurable:!0}):t.name=n),ze&&e&&Te(e,"arity")&&t.length!==e.arity&&Ce(t,"length",{value:e.arity});try{e&&Te(e,"constructor")&&e.constructor?Ae&&Ce(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=De(t);return Te(r,"source")||(r.source=ke(Ne,"string"==typeof n?n:"")),t};Function.prototype.toString=Re((function(){return Ee(this)&&Fe(this).source||Me(this)}),"toString");var Ge=Hn.exports,qe=B,Be=jn,He=Ge,Ke=Tt,Ue={},We=Math.ceil,Ve=Math.floor,Qe=Math.trunc||function(t){var n=+t;return(n>0?Ve:We)(n)},Xe=function(t){var n=+t;return n!=n||0===n?0:Qe(n)},Ye=Xe,$e=Math.max,Je=Math.min,Ze=Xe,tr=Math.min,nr=function(t){return t>0?tr(Ze(t),9007199254740991):0},er=function(t){return nr(t.length)},rr=N,or=function(t,n){var e=Ye(t);return e<0?$e(e+n,0):Je(e,n)},ir=er,ur=function(t){return function(n,e,r){var o,i=rr(n),u=ir(i),c=or(r,u);if(t&&e!=e){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===e)return t||c||0;return!t&&-1}},cr={includes:ur(!0),indexOf:ur(!1)},ar=zt,fr=N,lr=cr.indexOf,sr=ae,pr=O([].push),yr=function(t,n){var e,r=fr(t),o=0,i=[];for(e in r)!ar(sr,e)&&ar(r,e)&&pr(i,e);for(;n.length>o;)ar(r,e=n[o++])&&(~lr(i,e)||pr(i,e));return i},br=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");Ue.f=Object.getOwnPropertyNames||function(t){return yr(t,br)};var vr={};vr.f=Object.getOwnPropertySymbols;var gr=Q,dr=Ue,hr=vr,mr=xn,Sr=O([].concat),wr=gr("Reflect","ownKeys")||function(t){var n=dr.f(mr(t)),e=hr.f;return e?Sr(n,e(t)):n},Or=zt,jr=wr,Pr=o,Er=jn,Tr=i,Ar=B,xr=/#|\.prototype\./,Mr=function(t,n){var e=Fr[Dr(t)];return e==Cr||e!=Ir&&(Ar(n)?Tr(n):!!n)},Dr=Mr.normalize=function(t){return String(t).replace(xr,".").toLowerCase()},Fr=Mr.data={},Ir=Mr.NATIVE="N",Cr=Mr.POLYFILL="P",Lr=Mr,_r=r,kr=o.f,zr=Bn,Nr=function(t,n,e,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:n;if(qe(e)&&He(e,i,r),r.global)o?t[n]=e:Ke(n,e);else{try{r.unsafe?t[n]&&(o=!0):delete t[n]}catch(t){}o?t[n]=e:Be.f(t,n,{value:e,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},Rr=Tt,Gr=function(t,n,e){for(var r=jr(n),o=Er.f,i=Pr.f,u=0;u9007199254740991)throw Kr("Maximum allowed index exceeded");return t},Io=function(t,n,e){var r=Ur(n);r in t?Wr.f(t,r,Vr(0,e)):t[r]=e},Co=function(t,n){return new(wo(t))(0===n?0:n)},Lo=function(t){return jo>=51||!Oo((function(){var n=[];return(n.constructor={})[Po]=function(){return{foo:1}},1!==n[t](Boolean).foo}))},_o=et,ko=$t("isConcatSpreadable"),zo=_o>=51||!To((function(){var t=[];return t[ko]=!1,t.concat()[0]!==t})),No=function(t){if(!xo(t))return!1;var n=t[ko];return void 0!==n?!!n:Ao(t)};Eo({target:"Array",proto:!0,arity:1,forced:!zo||!Lo("concat")},{concat:function(t){var n,e,r,o,i,u=Mo(this),c=Co(u,0),a=0;for(n=-1,r=arguments.length;n - */ - - $.fn.multipleSelect.locales['en-US'] = { - formatSelectAll: function formatSelectAll() { - return '[Select all]'; - }, - formatAllSelected: function formatAllSelected() { - return 'All selected'; - }, - formatCountSelected: function formatCountSelected(count, total) { - return count + ' of ' + total + ' selected'; - }, - formatNoMatchesFound: function formatNoMatchesFound() { - return 'No matches found'; - } - }; - $.extend($.fn.multipleSelect.defaults, $.fn.multipleSelect.locales['en-US']); + typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) : + typeof define === 'function' && define.amd ? define(['jquery'], factory) : + (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jQuery)); +})(this, (function ($$1) { 'use strict'; + + 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 global$b = + // 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) || + // eslint-disable-next-line no-new-func -- fallback + (function () { return this; })() || commonjsGlobal || Function('return this')(); + + var objectGetOwnPropertyDescriptor = {}; + + var fails$b = function (exec) { + try { + return !!exec(); + } catch (error) { + return true; + } + }; + + var fails$a = fails$b; + + // Detect IE8's incomplete defineProperty implementation + var descriptors = !fails$a(function () { + // eslint-disable-next-line es/no-object-defineproperty -- required for testing + return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7; + }); + + var fails$9 = fails$b; + + var functionBindNative = !fails$9(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$1 = functionBindNative; + + var call$4 = Function.prototype.call; + + var functionCall = NATIVE_BIND$1 ? call$4.bind(call$4) : function () { + return call$4.apply(call$4, arguments); + }; + + var objectPropertyIsEnumerable = {}; + + var $propertyIsEnumerable = {}.propertyIsEnumerable; + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; + + // Nashorn ~ JDK8 bug + var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.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$1(this, V); + return !!descriptor && descriptor.enumerable; + } : $propertyIsEnumerable; + + var createPropertyDescriptor$3 = function (bitmap, value) { + return { + enumerable: !(bitmap & 1), + configurable: !(bitmap & 2), + writable: !(bitmap & 4), + value: value + }; + }; + + var NATIVE_BIND = functionBindNative; + + var FunctionPrototype$1 = Function.prototype; + var call$3 = FunctionPrototype$1.call; + var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$3, call$3); + + var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) { + return function () { + return call$3.apply(fn, arguments); + }; + }; + + var uncurryThis$9 = functionUncurryThis; + + var toString$1 = uncurryThis$9({}.toString); + var stringSlice$1 = uncurryThis$9(''.slice); + + var classofRaw$1 = function (it) { + return stringSlice$1(toString$1(it), 8, -1); + }; + + var uncurryThis$8 = functionUncurryThis; + var fails$8 = fails$b; + var classof$3 = classofRaw$1; + + var $Object$3 = Object; + var split = uncurryThis$8(''.split); + + // fallback for non-array-like ES3 and non-enumerable old V8 strings + var indexedObject = fails$8(function () { + // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346 + // eslint-disable-next-line no-prototype-builtins -- safe + return !$Object$3('z').propertyIsEnumerable(0); + }) ? function (it) { + return classof$3(it) == 'String' ? split(it, '') : $Object$3(it); + } : $Object$3; + + // we can't use just `it == null` since of `document.all` special case + // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec + var isNullOrUndefined$2 = function (it) { + return it === null || it === undefined; + }; + + var isNullOrUndefined$1 = isNullOrUndefined$2; + + var $TypeError$6 = TypeError; + + // `RequireObjectCoercible` abstract operation + // https://tc39.es/ecma262/#sec-requireobjectcoercible + var requireObjectCoercible$2 = function (it) { + if (isNullOrUndefined$1(it)) throw $TypeError$6("Can't call method on " + it); + return it; + }; + + // toObject with fallback for non-array-like ES3 strings + var IndexedObject = indexedObject; + var requireObjectCoercible$1 = requireObjectCoercible$2; + + var toIndexedObject$3 = function (it) { + return IndexedObject(requireObjectCoercible$1(it)); + }; + + var documentAll$2 = typeof document == 'object' && document.all; + + // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot + // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing + var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined; + + var documentAll_1 = { + all: documentAll$2, + IS_HTMLDDA: IS_HTMLDDA + }; + + var $documentAll$1 = documentAll_1; + + var documentAll$1 = $documentAll$1.all; + + // `IsCallable` abstract operation + // https://tc39.es/ecma262/#sec-iscallable + var isCallable$c = $documentAll$1.IS_HTMLDDA ? function (argument) { + return typeof argument == 'function' || argument === documentAll$1; + } : function (argument) { + return typeof argument == 'function'; + }; + + var isCallable$b = isCallable$c; + var $documentAll = documentAll_1; + + var documentAll = $documentAll.all; + + var isObject$7 = $documentAll.IS_HTMLDDA ? function (it) { + return typeof it == 'object' ? it !== null : isCallable$b(it) || it === documentAll; + } : function (it) { + return typeof it == 'object' ? it !== null : isCallable$b(it); + }; + + var global$a = global$b; + var isCallable$a = isCallable$c; + + var aFunction = function (argument) { + return isCallable$a(argument) ? argument : undefined; + }; + + var getBuiltIn$3 = function (namespace, method) { + return arguments.length < 2 ? aFunction(global$a[namespace]) : global$a[namespace] && global$a[namespace][method]; + }; + + var uncurryThis$7 = functionUncurryThis; + + var objectIsPrototypeOf = uncurryThis$7({}.isPrototypeOf); + + var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || ''; + + var global$9 = global$b; + var userAgent = engineUserAgent; + + var process = global$9.process; + var Deno = global$9.Deno; + var versions = process && process.versions || Deno && Deno.version; + var v8 = versions && versions.v8; + var match, version; + + 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 = 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 && userAgent) { + match = userAgent.match(/Edge\/(\d+)/); + if (!match || match[1] >= 74) { + match = userAgent.match(/Chrome\/(\d+)/); + if (match) version = +match[1]; + } + } + + var engineV8Version = version; + + /* eslint-disable es/no-symbol -- required for testing */ + + var V8_VERSION$2 = engineV8Version; + var fails$7 = fails$b; + var global$8 = global$b; + + var $String$3 = global$8.String; + + // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing + var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$7(function () { + var symbol = Symbol(); + // 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$3(symbol) || !(Object(symbol) instanceof Symbol) || + // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances + !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41; + }); + + /* eslint-disable es/no-symbol -- required for testing */ + + var NATIVE_SYMBOL$1 = symbolConstructorDetection; + + var useSymbolAsUid = NATIVE_SYMBOL$1 + && !Symbol.sham + && typeof Symbol.iterator == 'symbol'; + + var getBuiltIn$2 = getBuiltIn$3; + var isCallable$9 = isCallable$c; + var isPrototypeOf = objectIsPrototypeOf; + var USE_SYMBOL_AS_UID$1 = useSymbolAsUid; + + var $Object$2 = Object; + + var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) { + return typeof it == 'symbol'; + } : function (it) { + var $Symbol = getBuiltIn$2('Symbol'); + return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it)); + }; + + var $String$2 = String; + + var tryToString$1 = function (argument) { + try { + return $String$2(argument); + } catch (error) { + return 'Object'; + } + }; + + var isCallable$8 = isCallable$c; + var tryToString = tryToString$1; + + var $TypeError$5 = TypeError; + + // `Assert: IsCallable(argument) is true` + var aCallable$1 = function (argument) { + if (isCallable$8(argument)) return argument; + throw $TypeError$5(tryToString(argument) + ' is not a function'); + }; + + var aCallable = aCallable$1; + var isNullOrUndefined = isNullOrUndefined$2; + + // `GetMethod` abstract operation + // https://tc39.es/ecma262/#sec-getmethod + var getMethod$1 = function (V, P) { + var func = V[P]; + return isNullOrUndefined(func) ? undefined : aCallable(func); + }; + + var call$2 = functionCall; + var isCallable$7 = isCallable$c; + var isObject$6 = isObject$7; + + var $TypeError$4 = TypeError; + + // `OrdinaryToPrimitive` abstract operation + // https://tc39.es/ecma262/#sec-ordinarytoprimitive + var ordinaryToPrimitive$1 = function (input, pref) { + var fn, val; + if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val; + if (isCallable$7(fn = input.valueOf) && !isObject$6(val = call$2(fn, input))) return val; + if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val; + throw $TypeError$4("Can't convert object to primitive value"); + }; + + var shared$3 = {exports: {}}; + + var global$7 = global$b; + + // eslint-disable-next-line es/no-object-defineproperty -- safe + var defineProperty$1 = Object.defineProperty; + + var defineGlobalProperty$3 = function (key, value) { + try { + defineProperty$1(global$7, key, { value: value, configurable: true, writable: true }); + } catch (error) { + global$7[key] = value; + } return value; + }; + + var global$6 = global$b; + var defineGlobalProperty$2 = defineGlobalProperty$3; + + var SHARED = '__core-js_shared__'; + var store$3 = global$6[SHARED] || defineGlobalProperty$2(SHARED, {}); + + var sharedStore = store$3; + + var store$2 = sharedStore; + + (shared$3.exports = function (key, value) { + return store$2[key] || (store$2[key] = value !== undefined ? value : {}); + })('versions', []).push({ + version: '3.30.2', + mode: 'global', + copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)', + license: 'https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE', + source: 'https://github.com/zloirock/core-js' + }); + + var sharedExports = shared$3.exports; + + var requireObjectCoercible = requireObjectCoercible$2; + + var $Object$1 = Object; + + // `ToObject` abstract operation + // https://tc39.es/ecma262/#sec-toobject + var toObject$2 = function (argument) { + return $Object$1(requireObjectCoercible(argument)); + }; + + var uncurryThis$6 = functionUncurryThis; + var toObject$1 = toObject$2; + + var hasOwnProperty = uncurryThis$6({}.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$1(it), key); + }; + + var uncurryThis$5 = functionUncurryThis; + + var id = 0; + var postfix = Math.random(); + var toString = uncurryThis$5(1.0.toString); + + var uid$2 = function (key) { + return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36); + }; + + var global$5 = global$b; + var shared$2 = sharedExports; + var hasOwn$6 = hasOwnProperty_1; + var uid$1 = uid$2; + var NATIVE_SYMBOL = symbolConstructorDetection; + var USE_SYMBOL_AS_UID = useSymbolAsUid; + + var Symbol$1 = global$5.Symbol; + var WellKnownSymbolsStore = shared$2('wks'); + var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1; + + var wellKnownSymbol$6 = function (name) { + if (!hasOwn$6(WellKnownSymbolsStore, name)) { + WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name) + ? Symbol$1[name] + : createWellKnownSymbol('Symbol.' + name); + } return WellKnownSymbolsStore[name]; + }; + + var call$1 = functionCall; + var isObject$5 = isObject$7; + var isSymbol$1 = isSymbol$2; + var getMethod = getMethod$1; + var ordinaryToPrimitive = ordinaryToPrimitive$1; + var wellKnownSymbol$5 = wellKnownSymbol$6; + + var $TypeError$3 = TypeError; + var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive'); + + // `ToPrimitive` abstract operation + // https://tc39.es/ecma262/#sec-toprimitive + var toPrimitive$1 = function (input, pref) { + if (!isObject$5(input) || isSymbol$1(input)) return input; + var exoticToPrim = getMethod(input, TO_PRIMITIVE); + var result; + if (exoticToPrim) { + if (pref === undefined) pref = 'default'; + result = call$1(exoticToPrim, input, pref); + if (!isObject$5(result) || isSymbol$1(result)) return result; + throw $TypeError$3("Can't convert object to primitive value"); + } + if (pref === undefined) pref = 'number'; + return ordinaryToPrimitive(input, pref); + }; + + var toPrimitive = toPrimitive$1; + var isSymbol = isSymbol$2; + + // `ToPropertyKey` abstract operation + // https://tc39.es/ecma262/#sec-topropertykey + var toPropertyKey$3 = function (argument) { + var key = toPrimitive(argument, 'string'); + return isSymbol(key) ? key : key + ''; + }; + + var global$4 = global$b; + var isObject$4 = isObject$7; + + var document$1 = global$4.document; + // typeof document.createElement is 'object' in old IE + var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement); + + var documentCreateElement = function (it) { + return EXISTS$1 ? document$1.createElement(it) : {}; + }; + + var DESCRIPTORS$6 = descriptors; + var fails$6 = fails$b; + var createElement = documentCreateElement; + + // Thanks to IE8 for its funny defineProperty + var ie8DomDefine = !DESCRIPTORS$6 && !fails$6(function () { + // eslint-disable-next-line es/no-object-defineproperty -- required for testing + return Object.defineProperty(createElement('div'), 'a', { + get: function () { return 7; } + }).a != 7; + }); + + var DESCRIPTORS$5 = descriptors; + var call = functionCall; + var propertyIsEnumerableModule = objectPropertyIsEnumerable; + var createPropertyDescriptor$2 = createPropertyDescriptor$3; + var toIndexedObject$2 = toIndexedObject$3; + var toPropertyKey$2 = toPropertyKey$3; + var hasOwn$5 = hasOwnProperty_1; + var IE8_DOM_DEFINE$1 = ie8DomDefine; + + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; + + // `Object.getOwnPropertyDescriptor` method + // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor + objectGetOwnPropertyDescriptor.f = DESCRIPTORS$5 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) { + O = toIndexedObject$2(O); + P = toPropertyKey$2(P); + if (IE8_DOM_DEFINE$1) try { + return $getOwnPropertyDescriptor$1(O, P); + } catch (error) { /* empty */ } + if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call(propertyIsEnumerableModule.f, O, P), O[P]); + }; + + var objectDefineProperty = {}; + + var DESCRIPTORS$4 = descriptors; + var fails$5 = fails$b; + + // V8 ~ Chrome 36- + // https://bugs.chromium.org/p/v8/issues/detail?id=3334 + var v8PrototypeDefineBug = DESCRIPTORS$4 && fails$5(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$3 = isObject$7; + + var $String$1 = String; + var $TypeError$2 = TypeError; + + // `Assert: Type(argument) is Object` + var anObject$2 = function (argument) { + if (isObject$3(argument)) return argument; + throw $TypeError$2($String$1(argument) + ' is not an object'); + }; + + var DESCRIPTORS$3 = descriptors; + var IE8_DOM_DEFINE = ie8DomDefine; + var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug; + var anObject$1 = anObject$2; + var toPropertyKey$1 = toPropertyKey$3; + + var $TypeError$1 = TypeError; + // eslint-disable-next-line es/no-object-defineproperty -- safe + var $defineProperty = Object.defineProperty; + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var $getOwnPropertyDescriptor = 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$3 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) { + anObject$1(O); + P = toPropertyKey$1(P); + anObject$1(Attributes); + if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) { + var current = $getOwnPropertyDescriptor(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(O, P, Attributes); + } : $defineProperty : function defineProperty(O, P, Attributes) { + anObject$1(O); + P = toPropertyKey$1(P); + anObject$1(Attributes); + if (IE8_DOM_DEFINE) try { + return $defineProperty(O, P, Attributes); + } catch (error) { /* empty */ } + if ('get' in Attributes || 'set' in Attributes) throw $TypeError$1('Accessors not supported'); + if ('value' in Attributes) O[P] = Attributes.value; + return O; + }; + + var DESCRIPTORS$2 = descriptors; + var definePropertyModule$3 = objectDefineProperty; + var createPropertyDescriptor$1 = createPropertyDescriptor$3; + + var createNonEnumerableProperty$2 = DESCRIPTORS$2 ? function (object, key, value) { + return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value)); + } : function (object, key, value) { + object[key] = value; + return object; + }; + + var makeBuiltIn$2 = {exports: {}}; + + var DESCRIPTORS$1 = descriptors; + var hasOwn$4 = hasOwnProperty_1; + + var FunctionPrototype = Function.prototype; + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var getDescriptor = DESCRIPTORS$1 && Object.getOwnPropertyDescriptor; + + var EXISTS = hasOwn$4(FunctionPrototype, 'name'); + // additional protection from minified / mangled / dropped function names + var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something'; + var CONFIGURABLE = EXISTS && (!DESCRIPTORS$1 || (DESCRIPTORS$1 && getDescriptor(FunctionPrototype, 'name').configurable)); + + var functionName = { + EXISTS: EXISTS, + PROPER: PROPER, + CONFIGURABLE: CONFIGURABLE + }; + + var uncurryThis$4 = functionUncurryThis; + var isCallable$6 = isCallable$c; + var store$1 = sharedStore; + + var functionToString = uncurryThis$4(Function.toString); + + // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper + if (!isCallable$6(store$1.inspectSource)) { + store$1.inspectSource = function (it) { + return functionToString(it); + }; + } + + var inspectSource$2 = store$1.inspectSource; + + var global$3 = global$b; + var isCallable$5 = isCallable$c; + + var WeakMap$1 = global$3.WeakMap; + + var weakMapBasicDetection = isCallable$5(WeakMap$1) && /native code/.test(String(WeakMap$1)); + + var shared$1 = sharedExports; + var uid = uid$2; + + var keys = shared$1('keys'); + + var sharedKey$1 = function (key) { + return keys[key] || (keys[key] = uid(key)); + }; + + var hiddenKeys$3 = {}; + + var NATIVE_WEAK_MAP = weakMapBasicDetection; + var global$2 = global$b; + var isObject$2 = isObject$7; + var createNonEnumerableProperty$1 = createNonEnumerableProperty$2; + var hasOwn$3 = hasOwnProperty_1; + var shared = sharedStore; + var sharedKey = sharedKey$1; + var hiddenKeys$2 = hiddenKeys$3; + + var OBJECT_ALREADY_INITIALIZED = 'Object already initialized'; + var TypeError$1 = global$2.TypeError; + var WeakMap = global$2.WeakMap; + var set, get, has; + + var enforce = function (it) { + return has(it) ? get(it) : set(it, {}); + }; + + var getterFor = function (TYPE) { + return function (it) { + var state; + if (!isObject$2(it) || (state = get(it)).type !== TYPE) { + throw TypeError$1('Incompatible receiver, ' + TYPE + ' required'); + } return state; + }; + }; + + if (NATIVE_WEAK_MAP || shared.state) { + var store = shared.state || (shared.state = new WeakMap()); + /* 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 = function (it, metadata) { + if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED); + metadata.facade = it; + store.set(it, metadata); + return metadata; + }; + get = function (it) { + return store.get(it) || {}; + }; + has = function (it) { + return store.has(it); + }; + } else { + var STATE = sharedKey('state'); + hiddenKeys$2[STATE] = true; + set = function (it, metadata) { + if (hasOwn$3(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED); + metadata.facade = it; + createNonEnumerableProperty$1(it, STATE, metadata); + return metadata; + }; + get = function (it) { + return hasOwn$3(it, STATE) ? it[STATE] : {}; + }; + has = function (it) { + return hasOwn$3(it, STATE); + }; + } + + var internalState = { + set: set, + get: get, + has: has, + enforce: enforce, + getterFor: getterFor + }; + + var uncurryThis$3 = functionUncurryThis; + var fails$4 = fails$b; + var isCallable$4 = isCallable$c; + var hasOwn$2 = hasOwnProperty_1; + var DESCRIPTORS = descriptors; + var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE; + var inspectSource$1 = inspectSource$2; + var InternalStateModule = internalState; + + var enforceInternalState = InternalStateModule.enforce; + var getInternalState = InternalStateModule.get; + var $String = String; + // eslint-disable-next-line es/no-object-defineproperty -- safe + var defineProperty = Object.defineProperty; + var stringSlice = uncurryThis$3(''.slice); + var replace = uncurryThis$3(''.replace); + var join = uncurryThis$3([].join); + + var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails$4(function () { + return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8; + }); + + var TEMPLATE = String(String).split('String'); + + var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) { + if (stringSlice($String(name), 0, 7) === 'Symbol(') { + name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']'; + } + if (options && options.getter) name = 'get ' + name; + if (options && options.setter) name = 'set ' + name; + if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) { + if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true }); + else value.name = name; + } + if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) { + defineProperty(value, 'length', { value: options.arity }); + } + try { + if (options && hasOwn$2(options, 'constructor') && options.constructor) { + if (DESCRIPTORS) defineProperty(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(value); + if (!hasOwn$2(state, 'source')) { + state.source = join(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$1(function toString() { + return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this); + }, 'toString'); + + var makeBuiltInExports = makeBuiltIn$2.exports; + + var isCallable$3 = isCallable$c; + var definePropertyModule$2 = objectDefineProperty; + var makeBuiltIn = makeBuiltInExports; + var defineGlobalProperty$1 = defineGlobalProperty$3; + + var defineBuiltIn$1 = function (O, key, value, options) { + if (!options) options = {}; + var simple = options.enumerable; + var name = options.name !== undefined ? options.name : key; + if (isCallable$3(value)) makeBuiltIn(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$2.f(O, key, { + value: value, + enumerable: false, + configurable: !options.nonConfigurable, + writable: !options.nonWritable + }); + } return O; + }; + + var objectGetOwnPropertyNames = {}; + + var ceil = Math.ceil; + var floor = 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 : ceil)(n); + }; + + var trunc = mathTrunc; + + // `ToIntegerOrInfinity` abstract operation + // https://tc39.es/ecma262/#sec-tointegerorinfinity + var toIntegerOrInfinity$2 = function (argument) { + var number = +argument; + // eslint-disable-next-line no-self-compare -- NaN check + return number !== number || number === 0 ? 0 : trunc(number); + }; + + var toIntegerOrInfinity$1 = toIntegerOrInfinity$2; + + var max = Math.max; + var min$1 = 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$1 = function (index, length) { + var integer = toIntegerOrInfinity$1(index); + return integer < 0 ? max(integer + length, 0) : min$1(integer, length); + }; + + var toIntegerOrInfinity = toIntegerOrInfinity$2; + + var min = Math.min; + + // `ToLength` abstract operation + // https://tc39.es/ecma262/#sec-tolength + var toLength$1 = function (argument) { + return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 + }; + + var toLength = toLength$1; + + // `LengthOfArrayLike` abstract operation + // https://tc39.es/ecma262/#sec-lengthofarraylike + var lengthOfArrayLike$2 = function (obj) { + return toLength(obj.length); + }; + + var toIndexedObject$1 = toIndexedObject$3; + var toAbsoluteIndex = toAbsoluteIndex$1; + var lengthOfArrayLike$1 = lengthOfArrayLike$2; + + // `Array.prototype.{ indexOf, includes }` methods implementation + var createMethod = function (IS_INCLUDES) { + return function ($this, el, fromIndex) { + var O = toIndexedObject$1($this); + var length = lengthOfArrayLike$1(O); + var index = toAbsoluteIndex(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(true), + // `Array.prototype.indexOf` method + // https://tc39.es/ecma262/#sec-array.prototype.indexof + indexOf: createMethod(false) + }; + + var uncurryThis$2 = functionUncurryThis; + var hasOwn$1 = hasOwnProperty_1; + var toIndexedObject = toIndexedObject$3; + var indexOf = arrayIncludes.indexOf; + var hiddenKeys$1 = hiddenKeys$3; + + var push = uncurryThis$2([].push); + + var objectKeysInternal = function (object, names) { + var O = toIndexedObject(object); + var i = 0; + var result = []; + var key; + for (key in O) !hasOwn$1(hiddenKeys$1, key) && hasOwn$1(O, key) && push(result, key); + // Don't enum bug & hidden keys + while (names.length > i) if (hasOwn$1(O, key = names[i++])) { + ~indexOf(result, key) || push(result, key); + } + return result; + }; + + // IE8- don't enum bug keys + var enumBugKeys$1 = [ + 'constructor', + 'hasOwnProperty', + 'isPrototypeOf', + 'propertyIsEnumerable', + 'toLocaleString', + 'toString', + 'valueOf' + ]; + + var internalObjectKeys = objectKeysInternal; + var enumBugKeys = enumBugKeys$1; + + var hiddenKeys = enumBugKeys.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(O, hiddenKeys); + }; + + var objectGetOwnPropertySymbols = {}; + + // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe + objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols; + + var getBuiltIn$1 = getBuiltIn$3; + var uncurryThis$1 = functionUncurryThis; + var getOwnPropertyNamesModule = objectGetOwnPropertyNames; + var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols; + var anObject = anObject$2; + + var concat = uncurryThis$1([].concat); + + // all object keys, includes non-enumerable and symbols + var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) { + var keys = getOwnPropertyNamesModule.f(anObject(it)); + var getOwnPropertySymbols = getOwnPropertySymbolsModule.f; + return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys; + }; + + var hasOwn = hasOwnProperty_1; + var ownKeys = ownKeys$1; + var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor; + var definePropertyModule$1 = objectDefineProperty; + + var copyConstructorProperties$1 = function (target, source, exceptions) { + var keys = ownKeys(source); + var defineProperty = definePropertyModule$1.f; + var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) { + defineProperty(target, key, getOwnPropertyDescriptor(source, key)); + } + } + }; + + var fails$3 = fails$b; + var isCallable$2 = isCallable$c; + + var replacement = /#|\.prototype\./; + + var isForced$1 = function (feature, detection) { + var value = data[normalize(feature)]; + return value == POLYFILL ? true + : value == NATIVE ? false + : isCallable$2(detection) ? fails$3(detection) + : !!detection; + }; + + var normalize = isForced$1.normalize = function (string) { + return String(string).replace(replacement, '.').toLowerCase(); + }; + + var data = isForced$1.data = {}; + var NATIVE = isForced$1.NATIVE = 'N'; + var POLYFILL = isForced$1.POLYFILL = 'P'; + + var isForced_1 = isForced$1; + + var global$1 = global$b; + var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f; + var createNonEnumerableProperty = createNonEnumerableProperty$2; + var defineBuiltIn = defineBuiltIn$1; + var defineGlobalProperty = defineGlobalProperty$3; + var copyConstructorProperties = copyConstructorProperties$1; + var isForced = 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 = global$1; + } else if (STATIC) { + target = global$1[TARGET] || defineGlobalProperty(TARGET, {}); + } else { + target = (global$1[TARGET] || {}).prototype; + } + if (target) for (key in source) { + sourceProperty = source[key]; + if (options.dontCallGetSet) { + descriptor = getOwnPropertyDescriptor(target, key); + targetProperty = descriptor && descriptor.value; + } else targetProperty = target[key]; + FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); + // contained in target + if (!FORCED && targetProperty !== undefined) { + if (typeof sourceProperty == typeof targetProperty) continue; + copyConstructorProperties(sourceProperty, targetProperty); + } + // add a flag to not completely full polyfills + if (options.sham || (targetProperty && targetProperty.sham)) { + createNonEnumerableProperty(sourceProperty, 'sham', true); + } + defineBuiltIn(target, key, sourceProperty, options); + } + }; + + var classof$2 = classofRaw$1; + + // `IsArray` abstract operation + // https://tc39.es/ecma262/#sec-isarray + // eslint-disable-next-line es/no-array-isarray -- safe + var isArray$2 = Array.isArray || function isArray(argument) { + return classof$2(argument) == 'Array'; + }; + + var $TypeError = TypeError; + var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991 + + var doesNotExceedSafeInteger$1 = function (it) { + if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded'); + return it; + }; + + var toPropertyKey = toPropertyKey$3; + var definePropertyModule = objectDefineProperty; + var createPropertyDescriptor = createPropertyDescriptor$3; + + var createProperty$1 = function (object, key, value) { + var propertyKey = toPropertyKey(key); + if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value)); + else object[propertyKey] = value; + }; + + var wellKnownSymbol$4 = wellKnownSymbol$6; + + var TO_STRING_TAG$1 = wellKnownSymbol$4('toStringTag'); + var test = {}; + + test[TO_STRING_TAG$1] = 'z'; + + var toStringTagSupport = String(test) === '[object z]'; + + var TO_STRING_TAG_SUPPORT = toStringTagSupport; + var isCallable$1 = isCallable$c; + var classofRaw = classofRaw$1; + var wellKnownSymbol$3 = wellKnownSymbol$6; + + var TO_STRING_TAG = wellKnownSymbol$3('toStringTag'); + var $Object = Object; + + // ES3 wrong here + var CORRECT_ARGUMENTS = classofRaw(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$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) { + var O, tag, result; + return it === undefined ? 'Undefined' : it === null ? 'Null' + // @@toStringTag case + : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag + // builtinTag case + : CORRECT_ARGUMENTS ? classofRaw(O) + // ES3 arguments fallback + : (result = classofRaw(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result; + }; + + var uncurryThis = functionUncurryThis; + var fails$2 = fails$b; + var isCallable = isCallable$c; + var classof = classof$1; + var getBuiltIn = getBuiltIn$3; + var inspectSource = inspectSource$2; + + var noop = function () { /* empty */ }; + var empty = []; + var construct = getBuiltIn('Reflect', 'construct'); + var constructorRegExp = /^\s*(?:class|function)\b/; + var exec = uncurryThis(constructorRegExp.exec); + var INCORRECT_TO_STRING = !constructorRegExp.exec(noop); + + var isConstructorModern = function isConstructor(argument) { + if (!isCallable(argument)) return false; + try { + construct(noop, empty, argument); + return true; + } catch (error) { + return false; + } + }; + + var isConstructorLegacy = function isConstructor(argument) { + if (!isCallable(argument)) return false; + switch (classof(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 || !!exec(constructorRegExp, inspectSource(argument)); + } catch (error) { + return true; + } + }; + + isConstructorLegacy.sham = true; + + // `IsConstructor` abstract operation + // https://tc39.es/ecma262/#sec-isconstructor + var isConstructor$1 = !construct || fails$2(function () { + var called; + return isConstructorModern(isConstructorModern.call) + || !isConstructorModern(Object) + || !isConstructorModern(function () { called = true; }) + || called; + }) ? isConstructorLegacy : isConstructorModern; + + var isArray$1 = isArray$2; + var isConstructor = isConstructor$1; + var isObject$1 = isObject$7; + var wellKnownSymbol$2 = wellKnownSymbol$6; + + var SPECIES$1 = wellKnownSymbol$2('species'); + var $Array = Array; + + // a part of `ArraySpeciesCreate` abstract operation + // https://tc39.es/ecma262/#sec-arrayspeciescreate + var arraySpeciesConstructor$1 = function (originalArray) { + var C; + if (isArray$1(originalArray)) { + C = originalArray.constructor; + // cross-realm fallback + if (isConstructor(C) && (C === $Array || isArray$1(C.prototype))) C = undefined; + else if (isObject$1(C)) { + C = C[SPECIES$1]; + if (C === null) C = undefined; + } + } return C === undefined ? $Array : C; + }; + + var arraySpeciesConstructor = arraySpeciesConstructor$1; + + // `ArraySpeciesCreate` abstract operation + // https://tc39.es/ecma262/#sec-arrayspeciescreate + var arraySpeciesCreate$1 = function (originalArray, length) { + return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length); + }; + + var fails$1 = fails$b; + var wellKnownSymbol$1 = wellKnownSymbol$6; + var V8_VERSION$1 = engineV8Version; + + var SPECIES = wellKnownSymbol$1('species'); + + var arrayMethodHasSpeciesSupport$1 = function (METHOD_NAME) { + // We can't use this feature detection in V8 since it causes + // deoptimization and serious performance degradation + // https://github.com/zloirock/core-js/issues/677 + return V8_VERSION$1 >= 51 || !fails$1(function () { + var array = []; + var constructor = array.constructor = {}; + constructor[SPECIES] = function () { + return { foo: 1 }; + }; + return array[METHOD_NAME](Boolean).foo !== 1; + }); + }; + + var $ = _export; + var fails = fails$b; + var isArray = isArray$2; + var isObject = isObject$7; + var toObject = toObject$2; + var lengthOfArrayLike = lengthOfArrayLike$2; + var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1; + var createProperty = createProperty$1; + var arraySpeciesCreate = arraySpeciesCreate$1; + var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1; + var wellKnownSymbol = wellKnownSymbol$6; + var V8_VERSION = engineV8Version; + + var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable'); + + // We can't use this feature detection in V8 since it causes + // deoptimization and serious performance degradation + // https://github.com/zloirock/core-js/issues/679 + var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () { + var array = []; + array[IS_CONCAT_SPREADABLE] = false; + return array.concat()[0] !== array; + }); + + var isConcatSpreadable = function (O) { + if (!isObject(O)) return false; + var spreadable = O[IS_CONCAT_SPREADABLE]; + return spreadable !== undefined ? !!spreadable : isArray(O); + }; + + var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat'); + + // `Array.prototype.concat` method + // https://tc39.es/ecma262/#sec-array.prototype.concat + // with adding support of @@isConcatSpreadable and @@species + $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, { + // eslint-disable-next-line no-unused-vars -- required for `.length` + concat: function concat(arg) { + var O = toObject(this); + var A = arraySpeciesCreate(O, 0); + var n = 0; + var i, k, length, len, E; + for (i = -1, length = arguments.length; i < length; i++) { + E = i === -1 ? O : arguments[i]; + if (isConcatSpreadable(E)) { + len = lengthOfArrayLike(E); + doesNotExceedSafeInteger(n + len); + for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]); + } else { + doesNotExceedSafeInteger(n + 1); + createProperty(A, n++, E); + } + } + A.length = n; + return A; + } + }); + + /** + * Multiple Select en-US translation + * Author: Zhixin Wen + */ + + $$1.fn.multipleSelect.locales['en-US'] = { + formatSelectAll: function formatSelectAll() { + return '[Select all]'; + }, + formatAllSelected: function formatAllSelected() { + return 'All selected'; + }, + formatCountSelected: function formatCountSelected(count, total) { + return "".concat(count, " of ").concat(total, " selected"); + }, + formatNoMatchesFound: function formatNoMatchesFound() { + return 'No matches found'; + } + }; + $$1.extend($$1.fn.multipleSelect.defaults, $$1.fn.multipleSelect.locales['en-US']); })); diff --git a/dist/locale/multiple-select-en-US.min.js b/dist/locale/multiple-select-en-US.min.js index 51f43706..e0087596 100644 --- a/dist/locale/multiple-select-en-US.min.js +++ b/dist/locale/multiple-select-en-US.min.js @@ -1,10 +1,10 @@ /** * multiple-select - Multiple select is a jQuery plugin to select multiple elements with checkboxes :). * - * @version v1.5.2 + * @version v1.6.0 * @homepage http://multiple-select.wenzhixin.net.cn * @author wenzhixin (http://wenzhixin.net.cn/) * @license MIT */ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):t((e=e||self).jQuery)}(this,(function(e){"use strict";(e=e&&e.hasOwnProperty("default")?e.default:e).fn.multipleSelect.locales["en-US"]={formatSelectAll:function(){return"[Select all]"},formatAllSelected:function(){return"All selected"},formatCountSelected:function(e,t){return e+" of "+t+" selected"},formatNoMatchesFound:function(){return"No matches found"}},e.extend(e.fn.multipleSelect.defaults,e.fn.multipleSelect.locales["en-US"])})); +!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=function(t){return t&&t.Math==Math&&t},r=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n&&n)||function(){return this}()||n||Function("return this")(),o={},i=function(t){try{return!!t()}catch(t){return!0}},u=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=c,a=Function.prototype.call,l=f?a.bind(a):function(){return a.apply(a,arguments)},s={},p={}.propertyIsEnumerable,y=Object.getOwnPropertyDescriptor,b=y&&!p.call({1:2},1);s.f=b?function(t){var n=y(this,t);return!!n&&n.enumerable}:p;var v,d,g=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},h=c,m=Function.prototype,S=m.call,w=h&&m.bind.bind(S,S),O=h?w:function(t){return function(){return S.apply(t,arguments)}},j=O,P=j({}.toString),E=j("".slice),T=function(t){return E(P(t),8,-1)},A=i,x=T,M=Object,F=O("".split),I=A((function(){return!M("z").propertyIsEnumerable(0)}))?function(t){return"String"==x(t)?F(t,""):M(t)}:M,C=function(t){return null==t},D=C,L=TypeError,N=function(t){if(D(t))throw L("Can't call method on "+t);return t},_=I,k=N,z=function(t){return _(k(t))},R="object"==typeof document&&document.all,G={all:R,IS_HTMLDDA:void 0===R&&void 0!==R},U=G.all,q=G.IS_HTMLDDA?function(t){return"function"==typeof t||t===U}:function(t){return"function"==typeof t},B=q,H=G.all,W=G.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:B(t)||t===H}:function(t){return"object"==typeof t?null!==t:B(t)},K=r,Q=q,V=function(t,n){return arguments.length<2?(e=K[t],Q(e)?e:void 0):K[t]&&K[t][n];var e},X=O({}.isPrototypeOf),Y=r,$="undefined"!=typeof navigator&&String(navigator.userAgent)||"",J=Y.process,Z=Y.Deno,tt=J&&J.versions||Z&&Z.version,nt=tt&&tt.v8;nt&&(d=(v=nt.split("."))[0]>0&&v[0]<4?1:+(v[0]+v[1])),!d&&$&&(!(v=$.match(/Edge\/(\d+)/))||v[1]>=74)&&(v=$.match(/Chrome\/(\d+)/))&&(d=+v[1]);var et=d,rt=et,ot=i,it=r.String,ut=!!Object.getOwnPropertySymbols&&!ot((function(){var t=Symbol();return!it(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&rt&&rt<41})),ct=ut&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ft=V,at=q,lt=X,st=Object,pt=ct?function(t){return"symbol"==typeof t}:function(t){var n=ft("Symbol");return at(n)&<(n.prototype,st(t))},yt=String,bt=q,vt=function(t){try{return yt(t)}catch(t){return"Object"}},dt=TypeError,gt=function(t){if(bt(t))return t;throw dt(vt(t)+" is not a function")},ht=C,mt=l,St=q,wt=W,Ot=TypeError,jt={exports:{}},Pt=r,Et=Object.defineProperty,Tt=function(t,n){try{Et(Pt,t,{value:n,configurable:!0,writable:!0})}catch(e){Pt[t]=n}return n},At=Tt,xt="__core-js_shared__",Mt=r[xt]||At(xt,{}),Ft=Mt;(jt.exports=function(t,n){return Ft[t]||(Ft[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.30.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var It=jt.exports,Ct=N,Dt=Object,Lt=function(t){return Dt(Ct(t))},Nt=Lt,_t=O({}.hasOwnProperty),kt=Object.hasOwn||function(t,n){return _t(Nt(t),n)},zt=O,Rt=0,Gt=Math.random(),Ut=zt(1..toString),qt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Ut(++Rt+Gt,36)},Bt=It,Ht=kt,Wt=qt,Kt=ut,Qt=ct,Vt=r.Symbol,Xt=Bt("wks"),Yt=Qt?Vt.for||Vt:Vt&&Vt.withoutSetter||Wt,$t=function(t){return Ht(Xt,t)||(Xt[t]=Kt&&Ht(Vt,t)?Vt[t]:Yt("Symbol."+t)),Xt[t]},Jt=l,Zt=W,tn=pt,nn=function(t,n){var e=t[n];return ht(e)?void 0:gt(e)},en=function(t,n){var e,r;if("string"===n&&St(e=t.toString)&&!wt(r=mt(e,t)))return r;if(St(e=t.valueOf)&&!wt(r=mt(e,t)))return r;if("string"!==n&&St(e=t.toString)&&!wt(r=mt(e,t)))return r;throw Ot("Can't convert object to primitive value")},rn=TypeError,on=$t("toPrimitive"),un=function(t,n){if(!Zt(t)||tn(t))return t;var e,r=nn(t,on);if(r){if(void 0===n&&(n="default"),e=Jt(r,t,n),!Zt(e)||tn(e))return e;throw rn("Can't convert object to primitive value")}return void 0===n&&(n="number"),en(t,n)},cn=pt,fn=function(t){var n=un(t,"string");return cn(n)?n:n+""},an=W,ln=r.document,sn=an(ln)&&an(ln.createElement),pn=function(t){return sn?ln.createElement(t):{}},yn=!u&&!i((function(){return 7!=Object.defineProperty(pn("div"),"a",{get:function(){return 7}}).a})),bn=u,vn=l,dn=s,gn=g,hn=z,mn=fn,Sn=kt,wn=yn,On=Object.getOwnPropertyDescriptor;o.f=bn?On:function(t,n){if(t=hn(t),n=mn(n),wn)try{return On(t,n)}catch(t){}if(Sn(t,n))return gn(!vn(dn.f,t,n),t[n])};var jn={},Pn=u&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),En=W,Tn=String,An=TypeError,xn=function(t){if(En(t))return t;throw An(Tn(t)+" is not an object")},Mn=u,Fn=yn,In=Pn,Cn=xn,Dn=fn,Ln=TypeError,Nn=Object.defineProperty,_n=Object.getOwnPropertyDescriptor,kn="enumerable",zn="configurable",Rn="writable";jn.f=Mn?In?function(t,n,e){if(Cn(t),n=Dn(n),Cn(e),"function"==typeof t&&"prototype"===n&&"value"in e&&Rn in e&&!e[Rn]){var r=_n(t,n);r&&r[Rn]&&(t[n]=e.value,e={configurable:zn in e?e[zn]:r[zn],enumerable:kn in e?e[kn]:r[kn],writable:!1})}return Nn(t,n,e)}:Nn:function(t,n,e){if(Cn(t),n=Dn(n),Cn(e),Fn)try{return Nn(t,n,e)}catch(t){}if("get"in e||"set"in e)throw Ln("Accessors not supported");return"value"in e&&(t[n]=e.value),t};var Gn=jn,Un=g,qn=u?function(t,n,e){return Gn.f(t,n,Un(1,e))}:function(t,n,e){return t[n]=e,t},Bn={exports:{}},Hn=u,Wn=kt,Kn=Function.prototype,Qn=Hn&&Object.getOwnPropertyDescriptor,Vn=Wn(Kn,"name"),Xn={EXISTS:Vn,PROPER:Vn&&"something"===function(){}.name,CONFIGURABLE:Vn&&(!Hn||Hn&&Qn(Kn,"name").configurable)},Yn=q,$n=Mt,Jn=O(Function.toString);Yn($n.inspectSource)||($n.inspectSource=function(t){return Jn(t)});var Zn,te,ne,ee=$n.inspectSource,re=q,oe=r.WeakMap,ie=re(oe)&&/native code/.test(String(oe)),ue=qt,ce=It("keys"),fe={},ae=ie,le=r,se=W,pe=qn,ye=kt,be=Mt,ve=function(t){return ce[t]||(ce[t]=ue(t))},de=fe,ge="Object already initialized",he=le.TypeError,me=le.WeakMap;if(ae||be.state){var Se=be.state||(be.state=new me);Se.get=Se.get,Se.has=Se.has,Se.set=Se.set,Zn=function(t,n){if(Se.has(t))throw he(ge);return n.facade=t,Se.set(t,n),n},te=function(t){return Se.get(t)||{}},ne=function(t){return Se.has(t)}}else{var we=ve("state");de[we]=!0,Zn=function(t,n){if(ye(t,we))throw he(ge);return n.facade=t,pe(t,we,n),n},te=function(t){return ye(t,we)?t[we]:{}},ne=function(t){return ye(t,we)}}var Oe={set:Zn,get:te,has:ne,enforce:function(t){return ne(t)?te(t):Zn(t,{})},getterFor:function(t){return function(n){var e;if(!se(n)||(e=te(n)).type!==t)throw he("Incompatible receiver, "+t+" required");return e}}},je=O,Pe=i,Ee=q,Te=kt,Ae=u,xe=Xn.CONFIGURABLE,Me=ee,Fe=Oe.enforce,Ie=Oe.get,Ce=String,De=Object.defineProperty,Le=je("".slice),Ne=je("".replace),_e=je([].join),ke=Ae&&!Pe((function(){return 8!==De((function(){}),"length",{value:8}).length})),ze=String(String).split("String"),Re=Bn.exports=function(t,n,e){"Symbol("===Le(Ce(n),0,7)&&(n="["+Ne(Ce(n),/^Symbol\(([^)]*)\)/,"$1")+"]"),e&&e.getter&&(n="get "+n),e&&e.setter&&(n="set "+n),(!Te(t,"name")||xe&&t.name!==n)&&(Ae?De(t,"name",{value:n,configurable:!0}):t.name=n),ke&&e&&Te(e,"arity")&&t.length!==e.arity&&De(t,"length",{value:e.arity});try{e&&Te(e,"constructor")&&e.constructor?Ae&&De(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=Fe(t);return Te(r,"source")||(r.source=_e(ze,"string"==typeof n?n:"")),t};Function.prototype.toString=Re((function(){return Ee(this)&&Ie(this).source||Me(this)}),"toString");var Ge=Bn.exports,Ue=q,qe=jn,Be=Ge,He=Tt,We={},Ke=Math.ceil,Qe=Math.floor,Ve=Math.trunc||function(t){var n=+t;return(n>0?Qe:Ke)(n)},Xe=function(t){var n=+t;return n!=n||0===n?0:Ve(n)},Ye=Xe,$e=Math.max,Je=Math.min,Ze=Xe,tr=Math.min,nr=function(t){return t>0?tr(Ze(t),9007199254740991):0},er=function(t){return nr(t.length)},rr=z,or=function(t,n){var e=Ye(t);return e<0?$e(e+n,0):Je(e,n)},ir=er,ur=function(t){return function(n,e,r){var o,i=rr(n),u=ir(i),c=or(r,u);if(t&&e!=e){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===e)return t||c||0;return!t&&-1}},cr={includes:ur(!0),indexOf:ur(!1)},fr=kt,ar=z,lr=cr.indexOf,sr=fe,pr=O([].push),yr=function(t,n){var e,r=ar(t),o=0,i=[];for(e in r)!fr(sr,e)&&fr(r,e)&&pr(i,e);for(;n.length>o;)fr(r,e=n[o++])&&(~lr(i,e)||pr(i,e));return i},br=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");We.f=Object.getOwnPropertyNames||function(t){return yr(t,br)};var vr={};vr.f=Object.getOwnPropertySymbols;var dr=V,gr=We,hr=vr,mr=xn,Sr=O([].concat),wr=dr("Reflect","ownKeys")||function(t){var n=gr.f(mr(t)),e=hr.f;return e?Sr(n,e(t)):n},Or=kt,jr=wr,Pr=o,Er=jn,Tr=i,Ar=q,xr=/#|\.prototype\./,Mr=function(t,n){var e=Ir[Fr(t)];return e==Dr||e!=Cr&&(Ar(n)?Tr(n):!!n)},Fr=Mr.normalize=function(t){return String(t).replace(xr,".").toLowerCase()},Ir=Mr.data={},Cr=Mr.NATIVE="N",Dr=Mr.POLYFILL="P",Lr=Mr,Nr=r,_r=o.f,kr=qn,zr=function(t,n,e,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:n;if(Ue(e)&&Be(e,i,r),r.global)o?t[n]=e:He(n,e);else{try{r.unsafe?t[n]&&(o=!0):delete t[n]}catch(t){}o?t[n]=e:qe.f(t,n,{value:e,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},Rr=Tt,Gr=function(t,n,e){for(var r=jr(n),o=Er.f,i=Pr.f,u=0;u9007199254740991)throw Hr("Maximum allowed index exceeded");return t},Co=function(t,n,e){var r=Wr(n);r in t?Kr.f(t,r,Qr(0,e)):t[r]=e},Do=function(t,n){return new(wo(t))(0===n?0:n)},Lo=function(t){return jo>=51||!Oo((function(){var n=[];return(n.constructor={})[Po]=function(){return{foo:1}},1!==n[t](Boolean).foo}))},No=et,_o=$t("isConcatSpreadable"),ko=No>=51||!To((function(){var t=[];return t[_o]=!1,t.concat()[0]!==t})),zo=function(t){if(!xo(t))return!1;var n=t[_o];return void 0!==n?!!n:Ao(t)};Eo({target:"Array",proto:!0,arity:1,forced:!ko||!Lo("concat")},{concat:function(t){var n,e,r,o,i,u=Mo(this),c=Do(u,0),f=0;for(n=-1,r=arguments.length;n - */ - - $.fn.multipleSelect.locales['es-ES'] = { - formatSelectAll: function formatSelectAll() { - return '[Seleccionar todo]'; - }, - formatAllSelected: function formatAllSelected() { - return 'Todos seleccionados'; - }, - formatCountSelected: function formatCountSelected(count, total) { - return count + ' de ' + total + ' seleccionado'; - }, - formatNoMatchesFound: function formatNoMatchesFound() { - return 'No se encontraron coincidencias'; - } - }; - $.extend($.fn.multipleSelect.defaults, $.fn.multipleSelect.locales['es-ES']); + typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) : + typeof define === 'function' && define.amd ? define(['jquery'], factory) : + (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jQuery)); +})(this, (function ($$1) { 'use strict'; + + 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 global$b = + // 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) || + // eslint-disable-next-line no-new-func -- fallback + (function () { return this; })() || commonjsGlobal || Function('return this')(); + + var objectGetOwnPropertyDescriptor = {}; + + var fails$b = function (exec) { + try { + return !!exec(); + } catch (error) { + return true; + } + }; + + var fails$a = fails$b; + + // Detect IE8's incomplete defineProperty implementation + var descriptors = !fails$a(function () { + // eslint-disable-next-line es/no-object-defineproperty -- required for testing + return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7; + }); + + var fails$9 = fails$b; + + var functionBindNative = !fails$9(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$1 = functionBindNative; + + var call$4 = Function.prototype.call; + + var functionCall = NATIVE_BIND$1 ? call$4.bind(call$4) : function () { + return call$4.apply(call$4, arguments); + }; + + var objectPropertyIsEnumerable = {}; + + var $propertyIsEnumerable = {}.propertyIsEnumerable; + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; + + // Nashorn ~ JDK8 bug + var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.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$1(this, V); + return !!descriptor && descriptor.enumerable; + } : $propertyIsEnumerable; + + var createPropertyDescriptor$3 = function (bitmap, value) { + return { + enumerable: !(bitmap & 1), + configurable: !(bitmap & 2), + writable: !(bitmap & 4), + value: value + }; + }; + + var NATIVE_BIND = functionBindNative; + + var FunctionPrototype$1 = Function.prototype; + var call$3 = FunctionPrototype$1.call; + var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$3, call$3); + + var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) { + return function () { + return call$3.apply(fn, arguments); + }; + }; + + var uncurryThis$9 = functionUncurryThis; + + var toString$1 = uncurryThis$9({}.toString); + var stringSlice$1 = uncurryThis$9(''.slice); + + var classofRaw$1 = function (it) { + return stringSlice$1(toString$1(it), 8, -1); + }; + + var uncurryThis$8 = functionUncurryThis; + var fails$8 = fails$b; + var classof$3 = classofRaw$1; + + var $Object$3 = Object; + var split = uncurryThis$8(''.split); + + // fallback for non-array-like ES3 and non-enumerable old V8 strings + var indexedObject = fails$8(function () { + // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346 + // eslint-disable-next-line no-prototype-builtins -- safe + return !$Object$3('z').propertyIsEnumerable(0); + }) ? function (it) { + return classof$3(it) == 'String' ? split(it, '') : $Object$3(it); + } : $Object$3; + + // we can't use just `it == null` since of `document.all` special case + // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec + var isNullOrUndefined$2 = function (it) { + return it === null || it === undefined; + }; + + var isNullOrUndefined$1 = isNullOrUndefined$2; + + var $TypeError$6 = TypeError; + + // `RequireObjectCoercible` abstract operation + // https://tc39.es/ecma262/#sec-requireobjectcoercible + var requireObjectCoercible$2 = function (it) { + if (isNullOrUndefined$1(it)) throw $TypeError$6("Can't call method on " + it); + return it; + }; + + // toObject with fallback for non-array-like ES3 strings + var IndexedObject = indexedObject; + var requireObjectCoercible$1 = requireObjectCoercible$2; + + var toIndexedObject$3 = function (it) { + return IndexedObject(requireObjectCoercible$1(it)); + }; + + var documentAll$2 = typeof document == 'object' && document.all; + + // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot + // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing + var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined; + + var documentAll_1 = { + all: documentAll$2, + IS_HTMLDDA: IS_HTMLDDA + }; + + var $documentAll$1 = documentAll_1; + + var documentAll$1 = $documentAll$1.all; + + // `IsCallable` abstract operation + // https://tc39.es/ecma262/#sec-iscallable + var isCallable$c = $documentAll$1.IS_HTMLDDA ? function (argument) { + return typeof argument == 'function' || argument === documentAll$1; + } : function (argument) { + return typeof argument == 'function'; + }; + + var isCallable$b = isCallable$c; + var $documentAll = documentAll_1; + + var documentAll = $documentAll.all; + + var isObject$7 = $documentAll.IS_HTMLDDA ? function (it) { + return typeof it == 'object' ? it !== null : isCallable$b(it) || it === documentAll; + } : function (it) { + return typeof it == 'object' ? it !== null : isCallable$b(it); + }; + + var global$a = global$b; + var isCallable$a = isCallable$c; + + var aFunction = function (argument) { + return isCallable$a(argument) ? argument : undefined; + }; + + var getBuiltIn$3 = function (namespace, method) { + return arguments.length < 2 ? aFunction(global$a[namespace]) : global$a[namespace] && global$a[namespace][method]; + }; + + var uncurryThis$7 = functionUncurryThis; + + var objectIsPrototypeOf = uncurryThis$7({}.isPrototypeOf); + + var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || ''; + + var global$9 = global$b; + var userAgent = engineUserAgent; + + var process = global$9.process; + var Deno = global$9.Deno; + var versions = process && process.versions || Deno && Deno.version; + var v8 = versions && versions.v8; + var match, version; + + 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 = 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 && userAgent) { + match = userAgent.match(/Edge\/(\d+)/); + if (!match || match[1] >= 74) { + match = userAgent.match(/Chrome\/(\d+)/); + if (match) version = +match[1]; + } + } + + var engineV8Version = version; + + /* eslint-disable es/no-symbol -- required for testing */ + + var V8_VERSION$2 = engineV8Version; + var fails$7 = fails$b; + var global$8 = global$b; + + var $String$3 = global$8.String; + + // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing + var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$7(function () { + var symbol = Symbol(); + // 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$3(symbol) || !(Object(symbol) instanceof Symbol) || + // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances + !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41; + }); + + /* eslint-disable es/no-symbol -- required for testing */ + + var NATIVE_SYMBOL$1 = symbolConstructorDetection; + + var useSymbolAsUid = NATIVE_SYMBOL$1 + && !Symbol.sham + && typeof Symbol.iterator == 'symbol'; + + var getBuiltIn$2 = getBuiltIn$3; + var isCallable$9 = isCallable$c; + var isPrototypeOf = objectIsPrototypeOf; + var USE_SYMBOL_AS_UID$1 = useSymbolAsUid; + + var $Object$2 = Object; + + var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) { + return typeof it == 'symbol'; + } : function (it) { + var $Symbol = getBuiltIn$2('Symbol'); + return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it)); + }; + + var $String$2 = String; + + var tryToString$1 = function (argument) { + try { + return $String$2(argument); + } catch (error) { + return 'Object'; + } + }; + + var isCallable$8 = isCallable$c; + var tryToString = tryToString$1; + + var $TypeError$5 = TypeError; + + // `Assert: IsCallable(argument) is true` + var aCallable$1 = function (argument) { + if (isCallable$8(argument)) return argument; + throw $TypeError$5(tryToString(argument) + ' is not a function'); + }; + + var aCallable = aCallable$1; + var isNullOrUndefined = isNullOrUndefined$2; + + // `GetMethod` abstract operation + // https://tc39.es/ecma262/#sec-getmethod + var getMethod$1 = function (V, P) { + var func = V[P]; + return isNullOrUndefined(func) ? undefined : aCallable(func); + }; + + var call$2 = functionCall; + var isCallable$7 = isCallable$c; + var isObject$6 = isObject$7; + + var $TypeError$4 = TypeError; + + // `OrdinaryToPrimitive` abstract operation + // https://tc39.es/ecma262/#sec-ordinarytoprimitive + var ordinaryToPrimitive$1 = function (input, pref) { + var fn, val; + if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val; + if (isCallable$7(fn = input.valueOf) && !isObject$6(val = call$2(fn, input))) return val; + if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val; + throw $TypeError$4("Can't convert object to primitive value"); + }; + + var shared$3 = {exports: {}}; + + var global$7 = global$b; + + // eslint-disable-next-line es/no-object-defineproperty -- safe + var defineProperty$1 = Object.defineProperty; + + var defineGlobalProperty$3 = function (key, value) { + try { + defineProperty$1(global$7, key, { value: value, configurable: true, writable: true }); + } catch (error) { + global$7[key] = value; + } return value; + }; + + var global$6 = global$b; + var defineGlobalProperty$2 = defineGlobalProperty$3; + + var SHARED = '__core-js_shared__'; + var store$3 = global$6[SHARED] || defineGlobalProperty$2(SHARED, {}); + + var sharedStore = store$3; + + var store$2 = sharedStore; + + (shared$3.exports = function (key, value) { + return store$2[key] || (store$2[key] = value !== undefined ? value : {}); + })('versions', []).push({ + version: '3.30.2', + mode: 'global', + copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)', + license: 'https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE', + source: 'https://github.com/zloirock/core-js' + }); + + var sharedExports = shared$3.exports; + + var requireObjectCoercible = requireObjectCoercible$2; + + var $Object$1 = Object; + + // `ToObject` abstract operation + // https://tc39.es/ecma262/#sec-toobject + var toObject$2 = function (argument) { + return $Object$1(requireObjectCoercible(argument)); + }; + + var uncurryThis$6 = functionUncurryThis; + var toObject$1 = toObject$2; + + var hasOwnProperty = uncurryThis$6({}.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$1(it), key); + }; + + var uncurryThis$5 = functionUncurryThis; + + var id = 0; + var postfix = Math.random(); + var toString = uncurryThis$5(1.0.toString); + + var uid$2 = function (key) { + return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36); + }; + + var global$5 = global$b; + var shared$2 = sharedExports; + var hasOwn$6 = hasOwnProperty_1; + var uid$1 = uid$2; + var NATIVE_SYMBOL = symbolConstructorDetection; + var USE_SYMBOL_AS_UID = useSymbolAsUid; + + var Symbol$1 = global$5.Symbol; + var WellKnownSymbolsStore = shared$2('wks'); + var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1; + + var wellKnownSymbol$6 = function (name) { + if (!hasOwn$6(WellKnownSymbolsStore, name)) { + WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name) + ? Symbol$1[name] + : createWellKnownSymbol('Symbol.' + name); + } return WellKnownSymbolsStore[name]; + }; + + var call$1 = functionCall; + var isObject$5 = isObject$7; + var isSymbol$1 = isSymbol$2; + var getMethod = getMethod$1; + var ordinaryToPrimitive = ordinaryToPrimitive$1; + var wellKnownSymbol$5 = wellKnownSymbol$6; + + var $TypeError$3 = TypeError; + var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive'); + + // `ToPrimitive` abstract operation + // https://tc39.es/ecma262/#sec-toprimitive + var toPrimitive$1 = function (input, pref) { + if (!isObject$5(input) || isSymbol$1(input)) return input; + var exoticToPrim = getMethod(input, TO_PRIMITIVE); + var result; + if (exoticToPrim) { + if (pref === undefined) pref = 'default'; + result = call$1(exoticToPrim, input, pref); + if (!isObject$5(result) || isSymbol$1(result)) return result; + throw $TypeError$3("Can't convert object to primitive value"); + } + if (pref === undefined) pref = 'number'; + return ordinaryToPrimitive(input, pref); + }; + + var toPrimitive = toPrimitive$1; + var isSymbol = isSymbol$2; + + // `ToPropertyKey` abstract operation + // https://tc39.es/ecma262/#sec-topropertykey + var toPropertyKey$3 = function (argument) { + var key = toPrimitive(argument, 'string'); + return isSymbol(key) ? key : key + ''; + }; + + var global$4 = global$b; + var isObject$4 = isObject$7; + + var document$1 = global$4.document; + // typeof document.createElement is 'object' in old IE + var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement); + + var documentCreateElement = function (it) { + return EXISTS$1 ? document$1.createElement(it) : {}; + }; + + var DESCRIPTORS$6 = descriptors; + var fails$6 = fails$b; + var createElement = documentCreateElement; + + // Thanks to IE8 for its funny defineProperty + var ie8DomDefine = !DESCRIPTORS$6 && !fails$6(function () { + // eslint-disable-next-line es/no-object-defineproperty -- required for testing + return Object.defineProperty(createElement('div'), 'a', { + get: function () { return 7; } + }).a != 7; + }); + + var DESCRIPTORS$5 = descriptors; + var call = functionCall; + var propertyIsEnumerableModule = objectPropertyIsEnumerable; + var createPropertyDescriptor$2 = createPropertyDescriptor$3; + var toIndexedObject$2 = toIndexedObject$3; + var toPropertyKey$2 = toPropertyKey$3; + var hasOwn$5 = hasOwnProperty_1; + var IE8_DOM_DEFINE$1 = ie8DomDefine; + + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; + + // `Object.getOwnPropertyDescriptor` method + // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor + objectGetOwnPropertyDescriptor.f = DESCRIPTORS$5 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) { + O = toIndexedObject$2(O); + P = toPropertyKey$2(P); + if (IE8_DOM_DEFINE$1) try { + return $getOwnPropertyDescriptor$1(O, P); + } catch (error) { /* empty */ } + if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call(propertyIsEnumerableModule.f, O, P), O[P]); + }; + + var objectDefineProperty = {}; + + var DESCRIPTORS$4 = descriptors; + var fails$5 = fails$b; + + // V8 ~ Chrome 36- + // https://bugs.chromium.org/p/v8/issues/detail?id=3334 + var v8PrototypeDefineBug = DESCRIPTORS$4 && fails$5(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$3 = isObject$7; + + var $String$1 = String; + var $TypeError$2 = TypeError; + + // `Assert: Type(argument) is Object` + var anObject$2 = function (argument) { + if (isObject$3(argument)) return argument; + throw $TypeError$2($String$1(argument) + ' is not an object'); + }; + + var DESCRIPTORS$3 = descriptors; + var IE8_DOM_DEFINE = ie8DomDefine; + var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug; + var anObject$1 = anObject$2; + var toPropertyKey$1 = toPropertyKey$3; + + var $TypeError$1 = TypeError; + // eslint-disable-next-line es/no-object-defineproperty -- safe + var $defineProperty = Object.defineProperty; + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var $getOwnPropertyDescriptor = 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$3 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) { + anObject$1(O); + P = toPropertyKey$1(P); + anObject$1(Attributes); + if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) { + var current = $getOwnPropertyDescriptor(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(O, P, Attributes); + } : $defineProperty : function defineProperty(O, P, Attributes) { + anObject$1(O); + P = toPropertyKey$1(P); + anObject$1(Attributes); + if (IE8_DOM_DEFINE) try { + return $defineProperty(O, P, Attributes); + } catch (error) { /* empty */ } + if ('get' in Attributes || 'set' in Attributes) throw $TypeError$1('Accessors not supported'); + if ('value' in Attributes) O[P] = Attributes.value; + return O; + }; + + var DESCRIPTORS$2 = descriptors; + var definePropertyModule$3 = objectDefineProperty; + var createPropertyDescriptor$1 = createPropertyDescriptor$3; + + var createNonEnumerableProperty$2 = DESCRIPTORS$2 ? function (object, key, value) { + return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value)); + } : function (object, key, value) { + object[key] = value; + return object; + }; + + var makeBuiltIn$2 = {exports: {}}; + + var DESCRIPTORS$1 = descriptors; + var hasOwn$4 = hasOwnProperty_1; + + var FunctionPrototype = Function.prototype; + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var getDescriptor = DESCRIPTORS$1 && Object.getOwnPropertyDescriptor; + + var EXISTS = hasOwn$4(FunctionPrototype, 'name'); + // additional protection from minified / mangled / dropped function names + var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something'; + var CONFIGURABLE = EXISTS && (!DESCRIPTORS$1 || (DESCRIPTORS$1 && getDescriptor(FunctionPrototype, 'name').configurable)); + + var functionName = { + EXISTS: EXISTS, + PROPER: PROPER, + CONFIGURABLE: CONFIGURABLE + }; + + var uncurryThis$4 = functionUncurryThis; + var isCallable$6 = isCallable$c; + var store$1 = sharedStore; + + var functionToString = uncurryThis$4(Function.toString); + + // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper + if (!isCallable$6(store$1.inspectSource)) { + store$1.inspectSource = function (it) { + return functionToString(it); + }; + } + + var inspectSource$2 = store$1.inspectSource; + + var global$3 = global$b; + var isCallable$5 = isCallable$c; + + var WeakMap$1 = global$3.WeakMap; + + var weakMapBasicDetection = isCallable$5(WeakMap$1) && /native code/.test(String(WeakMap$1)); + + var shared$1 = sharedExports; + var uid = uid$2; + + var keys = shared$1('keys'); + + var sharedKey$1 = function (key) { + return keys[key] || (keys[key] = uid(key)); + }; + + var hiddenKeys$3 = {}; + + var NATIVE_WEAK_MAP = weakMapBasicDetection; + var global$2 = global$b; + var isObject$2 = isObject$7; + var createNonEnumerableProperty$1 = createNonEnumerableProperty$2; + var hasOwn$3 = hasOwnProperty_1; + var shared = sharedStore; + var sharedKey = sharedKey$1; + var hiddenKeys$2 = hiddenKeys$3; + + var OBJECT_ALREADY_INITIALIZED = 'Object already initialized'; + var TypeError$1 = global$2.TypeError; + var WeakMap = global$2.WeakMap; + var set, get, has; + + var enforce = function (it) { + return has(it) ? get(it) : set(it, {}); + }; + + var getterFor = function (TYPE) { + return function (it) { + var state; + if (!isObject$2(it) || (state = get(it)).type !== TYPE) { + throw TypeError$1('Incompatible receiver, ' + TYPE + ' required'); + } return state; + }; + }; + + if (NATIVE_WEAK_MAP || shared.state) { + var store = shared.state || (shared.state = new WeakMap()); + /* 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 = function (it, metadata) { + if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED); + metadata.facade = it; + store.set(it, metadata); + return metadata; + }; + get = function (it) { + return store.get(it) || {}; + }; + has = function (it) { + return store.has(it); + }; + } else { + var STATE = sharedKey('state'); + hiddenKeys$2[STATE] = true; + set = function (it, metadata) { + if (hasOwn$3(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED); + metadata.facade = it; + createNonEnumerableProperty$1(it, STATE, metadata); + return metadata; + }; + get = function (it) { + return hasOwn$3(it, STATE) ? it[STATE] : {}; + }; + has = function (it) { + return hasOwn$3(it, STATE); + }; + } + + var internalState = { + set: set, + get: get, + has: has, + enforce: enforce, + getterFor: getterFor + }; + + var uncurryThis$3 = functionUncurryThis; + var fails$4 = fails$b; + var isCallable$4 = isCallable$c; + var hasOwn$2 = hasOwnProperty_1; + var DESCRIPTORS = descriptors; + var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE; + var inspectSource$1 = inspectSource$2; + var InternalStateModule = internalState; + + var enforceInternalState = InternalStateModule.enforce; + var getInternalState = InternalStateModule.get; + var $String = String; + // eslint-disable-next-line es/no-object-defineproperty -- safe + var defineProperty = Object.defineProperty; + var stringSlice = uncurryThis$3(''.slice); + var replace = uncurryThis$3(''.replace); + var join = uncurryThis$3([].join); + + var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails$4(function () { + return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8; + }); + + var TEMPLATE = String(String).split('String'); + + var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) { + if (stringSlice($String(name), 0, 7) === 'Symbol(') { + name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']'; + } + if (options && options.getter) name = 'get ' + name; + if (options && options.setter) name = 'set ' + name; + if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) { + if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true }); + else value.name = name; + } + if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) { + defineProperty(value, 'length', { value: options.arity }); + } + try { + if (options && hasOwn$2(options, 'constructor') && options.constructor) { + if (DESCRIPTORS) defineProperty(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(value); + if (!hasOwn$2(state, 'source')) { + state.source = join(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$1(function toString() { + return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this); + }, 'toString'); + + var makeBuiltInExports = makeBuiltIn$2.exports; + + var isCallable$3 = isCallable$c; + var definePropertyModule$2 = objectDefineProperty; + var makeBuiltIn = makeBuiltInExports; + var defineGlobalProperty$1 = defineGlobalProperty$3; + + var defineBuiltIn$1 = function (O, key, value, options) { + if (!options) options = {}; + var simple = options.enumerable; + var name = options.name !== undefined ? options.name : key; + if (isCallable$3(value)) makeBuiltIn(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$2.f(O, key, { + value: value, + enumerable: false, + configurable: !options.nonConfigurable, + writable: !options.nonWritable + }); + } return O; + }; + + var objectGetOwnPropertyNames = {}; + + var ceil = Math.ceil; + var floor = 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 : ceil)(n); + }; + + var trunc = mathTrunc; + + // `ToIntegerOrInfinity` abstract operation + // https://tc39.es/ecma262/#sec-tointegerorinfinity + var toIntegerOrInfinity$2 = function (argument) { + var number = +argument; + // eslint-disable-next-line no-self-compare -- NaN check + return number !== number || number === 0 ? 0 : trunc(number); + }; + + var toIntegerOrInfinity$1 = toIntegerOrInfinity$2; + + var max = Math.max; + var min$1 = 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$1 = function (index, length) { + var integer = toIntegerOrInfinity$1(index); + return integer < 0 ? max(integer + length, 0) : min$1(integer, length); + }; + + var toIntegerOrInfinity = toIntegerOrInfinity$2; + + var min = Math.min; + + // `ToLength` abstract operation + // https://tc39.es/ecma262/#sec-tolength + var toLength$1 = function (argument) { + return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 + }; + + var toLength = toLength$1; + + // `LengthOfArrayLike` abstract operation + // https://tc39.es/ecma262/#sec-lengthofarraylike + var lengthOfArrayLike$2 = function (obj) { + return toLength(obj.length); + }; + + var toIndexedObject$1 = toIndexedObject$3; + var toAbsoluteIndex = toAbsoluteIndex$1; + var lengthOfArrayLike$1 = lengthOfArrayLike$2; + + // `Array.prototype.{ indexOf, includes }` methods implementation + var createMethod = function (IS_INCLUDES) { + return function ($this, el, fromIndex) { + var O = toIndexedObject$1($this); + var length = lengthOfArrayLike$1(O); + var index = toAbsoluteIndex(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(true), + // `Array.prototype.indexOf` method + // https://tc39.es/ecma262/#sec-array.prototype.indexof + indexOf: createMethod(false) + }; + + var uncurryThis$2 = functionUncurryThis; + var hasOwn$1 = hasOwnProperty_1; + var toIndexedObject = toIndexedObject$3; + var indexOf = arrayIncludes.indexOf; + var hiddenKeys$1 = hiddenKeys$3; + + var push = uncurryThis$2([].push); + + var objectKeysInternal = function (object, names) { + var O = toIndexedObject(object); + var i = 0; + var result = []; + var key; + for (key in O) !hasOwn$1(hiddenKeys$1, key) && hasOwn$1(O, key) && push(result, key); + // Don't enum bug & hidden keys + while (names.length > i) if (hasOwn$1(O, key = names[i++])) { + ~indexOf(result, key) || push(result, key); + } + return result; + }; + + // IE8- don't enum bug keys + var enumBugKeys$1 = [ + 'constructor', + 'hasOwnProperty', + 'isPrototypeOf', + 'propertyIsEnumerable', + 'toLocaleString', + 'toString', + 'valueOf' + ]; + + var internalObjectKeys = objectKeysInternal; + var enumBugKeys = enumBugKeys$1; + + var hiddenKeys = enumBugKeys.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(O, hiddenKeys); + }; + + var objectGetOwnPropertySymbols = {}; + + // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe + objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols; + + var getBuiltIn$1 = getBuiltIn$3; + var uncurryThis$1 = functionUncurryThis; + var getOwnPropertyNamesModule = objectGetOwnPropertyNames; + var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols; + var anObject = anObject$2; + + var concat = uncurryThis$1([].concat); + + // all object keys, includes non-enumerable and symbols + var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) { + var keys = getOwnPropertyNamesModule.f(anObject(it)); + var getOwnPropertySymbols = getOwnPropertySymbolsModule.f; + return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys; + }; + + var hasOwn = hasOwnProperty_1; + var ownKeys = ownKeys$1; + var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor; + var definePropertyModule$1 = objectDefineProperty; + + var copyConstructorProperties$1 = function (target, source, exceptions) { + var keys = ownKeys(source); + var defineProperty = definePropertyModule$1.f; + var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) { + defineProperty(target, key, getOwnPropertyDescriptor(source, key)); + } + } + }; + + var fails$3 = fails$b; + var isCallable$2 = isCallable$c; + + var replacement = /#|\.prototype\./; + + var isForced$1 = function (feature, detection) { + var value = data[normalize(feature)]; + return value == POLYFILL ? true + : value == NATIVE ? false + : isCallable$2(detection) ? fails$3(detection) + : !!detection; + }; + + var normalize = isForced$1.normalize = function (string) { + return String(string).replace(replacement, '.').toLowerCase(); + }; + + var data = isForced$1.data = {}; + var NATIVE = isForced$1.NATIVE = 'N'; + var POLYFILL = isForced$1.POLYFILL = 'P'; + + var isForced_1 = isForced$1; + + var global$1 = global$b; + var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f; + var createNonEnumerableProperty = createNonEnumerableProperty$2; + var defineBuiltIn = defineBuiltIn$1; + var defineGlobalProperty = defineGlobalProperty$3; + var copyConstructorProperties = copyConstructorProperties$1; + var isForced = 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 = global$1; + } else if (STATIC) { + target = global$1[TARGET] || defineGlobalProperty(TARGET, {}); + } else { + target = (global$1[TARGET] || {}).prototype; + } + if (target) for (key in source) { + sourceProperty = source[key]; + if (options.dontCallGetSet) { + descriptor = getOwnPropertyDescriptor(target, key); + targetProperty = descriptor && descriptor.value; + } else targetProperty = target[key]; + FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); + // contained in target + if (!FORCED && targetProperty !== undefined) { + if (typeof sourceProperty == typeof targetProperty) continue; + copyConstructorProperties(sourceProperty, targetProperty); + } + // add a flag to not completely full polyfills + if (options.sham || (targetProperty && targetProperty.sham)) { + createNonEnumerableProperty(sourceProperty, 'sham', true); + } + defineBuiltIn(target, key, sourceProperty, options); + } + }; + + var classof$2 = classofRaw$1; + + // `IsArray` abstract operation + // https://tc39.es/ecma262/#sec-isarray + // eslint-disable-next-line es/no-array-isarray -- safe + var isArray$2 = Array.isArray || function isArray(argument) { + return classof$2(argument) == 'Array'; + }; + + var $TypeError = TypeError; + var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991 + + var doesNotExceedSafeInteger$1 = function (it) { + if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded'); + return it; + }; + + var toPropertyKey = toPropertyKey$3; + var definePropertyModule = objectDefineProperty; + var createPropertyDescriptor = createPropertyDescriptor$3; + + var createProperty$1 = function (object, key, value) { + var propertyKey = toPropertyKey(key); + if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value)); + else object[propertyKey] = value; + }; + + var wellKnownSymbol$4 = wellKnownSymbol$6; + + var TO_STRING_TAG$1 = wellKnownSymbol$4('toStringTag'); + var test = {}; + + test[TO_STRING_TAG$1] = 'z'; + + var toStringTagSupport = String(test) === '[object z]'; + + var TO_STRING_TAG_SUPPORT = toStringTagSupport; + var isCallable$1 = isCallable$c; + var classofRaw = classofRaw$1; + var wellKnownSymbol$3 = wellKnownSymbol$6; + + var TO_STRING_TAG = wellKnownSymbol$3('toStringTag'); + var $Object = Object; + + // ES3 wrong here + var CORRECT_ARGUMENTS = classofRaw(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$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) { + var O, tag, result; + return it === undefined ? 'Undefined' : it === null ? 'Null' + // @@toStringTag case + : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag + // builtinTag case + : CORRECT_ARGUMENTS ? classofRaw(O) + // ES3 arguments fallback + : (result = classofRaw(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result; + }; + + var uncurryThis = functionUncurryThis; + var fails$2 = fails$b; + var isCallable = isCallable$c; + var classof = classof$1; + var getBuiltIn = getBuiltIn$3; + var inspectSource = inspectSource$2; + + var noop = function () { /* empty */ }; + var empty = []; + var construct = getBuiltIn('Reflect', 'construct'); + var constructorRegExp = /^\s*(?:class|function)\b/; + var exec = uncurryThis(constructorRegExp.exec); + var INCORRECT_TO_STRING = !constructorRegExp.exec(noop); + + var isConstructorModern = function isConstructor(argument) { + if (!isCallable(argument)) return false; + try { + construct(noop, empty, argument); + return true; + } catch (error) { + return false; + } + }; + + var isConstructorLegacy = function isConstructor(argument) { + if (!isCallable(argument)) return false; + switch (classof(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 || !!exec(constructorRegExp, inspectSource(argument)); + } catch (error) { + return true; + } + }; + + isConstructorLegacy.sham = true; + + // `IsConstructor` abstract operation + // https://tc39.es/ecma262/#sec-isconstructor + var isConstructor$1 = !construct || fails$2(function () { + var called; + return isConstructorModern(isConstructorModern.call) + || !isConstructorModern(Object) + || !isConstructorModern(function () { called = true; }) + || called; + }) ? isConstructorLegacy : isConstructorModern; + + var isArray$1 = isArray$2; + var isConstructor = isConstructor$1; + var isObject$1 = isObject$7; + var wellKnownSymbol$2 = wellKnownSymbol$6; + + var SPECIES$1 = wellKnownSymbol$2('species'); + var $Array = Array; + + // a part of `ArraySpeciesCreate` abstract operation + // https://tc39.es/ecma262/#sec-arrayspeciescreate + var arraySpeciesConstructor$1 = function (originalArray) { + var C; + if (isArray$1(originalArray)) { + C = originalArray.constructor; + // cross-realm fallback + if (isConstructor(C) && (C === $Array || isArray$1(C.prototype))) C = undefined; + else if (isObject$1(C)) { + C = C[SPECIES$1]; + if (C === null) C = undefined; + } + } return C === undefined ? $Array : C; + }; + + var arraySpeciesConstructor = arraySpeciesConstructor$1; + + // `ArraySpeciesCreate` abstract operation + // https://tc39.es/ecma262/#sec-arrayspeciescreate + var arraySpeciesCreate$1 = function (originalArray, length) { + return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length); + }; + + var fails$1 = fails$b; + var wellKnownSymbol$1 = wellKnownSymbol$6; + var V8_VERSION$1 = engineV8Version; + + var SPECIES = wellKnownSymbol$1('species'); + + var arrayMethodHasSpeciesSupport$1 = function (METHOD_NAME) { + // We can't use this feature detection in V8 since it causes + // deoptimization and serious performance degradation + // https://github.com/zloirock/core-js/issues/677 + return V8_VERSION$1 >= 51 || !fails$1(function () { + var array = []; + var constructor = array.constructor = {}; + constructor[SPECIES] = function () { + return { foo: 1 }; + }; + return array[METHOD_NAME](Boolean).foo !== 1; + }); + }; + + var $ = _export; + var fails = fails$b; + var isArray = isArray$2; + var isObject = isObject$7; + var toObject = toObject$2; + var lengthOfArrayLike = lengthOfArrayLike$2; + var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1; + var createProperty = createProperty$1; + var arraySpeciesCreate = arraySpeciesCreate$1; + var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1; + var wellKnownSymbol = wellKnownSymbol$6; + var V8_VERSION = engineV8Version; + + var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable'); + + // We can't use this feature detection in V8 since it causes + // deoptimization and serious performance degradation + // https://github.com/zloirock/core-js/issues/679 + var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () { + var array = []; + array[IS_CONCAT_SPREADABLE] = false; + return array.concat()[0] !== array; + }); + + var isConcatSpreadable = function (O) { + if (!isObject(O)) return false; + var spreadable = O[IS_CONCAT_SPREADABLE]; + return spreadable !== undefined ? !!spreadable : isArray(O); + }; + + var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat'); + + // `Array.prototype.concat` method + // https://tc39.es/ecma262/#sec-array.prototype.concat + // with adding support of @@isConcatSpreadable and @@species + $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, { + // eslint-disable-next-line no-unused-vars -- required for `.length` + concat: function concat(arg) { + var O = toObject(this); + var A = arraySpeciesCreate(O, 0); + var n = 0; + var i, k, length, len, E; + for (i = -1, length = arguments.length; i < length; i++) { + E = i === -1 ? O : arguments[i]; + if (isConcatSpreadable(E)) { + len = lengthOfArrayLike(E); + doesNotExceedSafeInteger(n + len); + for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]); + } else { + doesNotExceedSafeInteger(n + 1); + createProperty(A, n++, E); + } + } + A.length = n; + return A; + } + }); + + /** + * Multiple Select es-ES translation + * Author: Zhixin Wen + */ + + $$1.fn.multipleSelect.locales['es-ES'] = { + formatSelectAll: function formatSelectAll() { + return '[Seleccionar todo]'; + }, + formatAllSelected: function formatAllSelected() { + return 'Todos seleccionados'; + }, + formatCountSelected: function formatCountSelected(count, total) { + return "".concat(count, " de ").concat(total, " seleccionado"); + }, + formatNoMatchesFound: function formatNoMatchesFound() { + return 'No se encontraron coincidencias'; + } + }; + $$1.extend($$1.fn.multipleSelect.defaults, $$1.fn.multipleSelect.locales['es-ES']); })); diff --git a/dist/locale/multiple-select-es-ES.min.js b/dist/locale/multiple-select-es-ES.min.js index 67756b1b..8cc2970e 100644 --- a/dist/locale/multiple-select-es-ES.min.js +++ b/dist/locale/multiple-select-es-ES.min.js @@ -1,10 +1,10 @@ /** * multiple-select - Multiple select is a jQuery plugin to select multiple elements with checkboxes :). * - * @version v1.5.2 + * @version v1.6.0 * @homepage http://multiple-select.wenzhixin.net.cn * @author wenzhixin (http://wenzhixin.net.cn/) * @license MIT */ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):t((e=e||self).jQuery)}(this,(function(e){"use strict";(e=e&&e.hasOwnProperty("default")?e.default:e).fn.multipleSelect.locales["es-ES"]={formatSelectAll:function(){return"[Seleccionar todo]"},formatAllSelected:function(){return"Todos seleccionados"},formatCountSelected:function(e,t){return e+" de "+t+" seleccionado"},formatNoMatchesFound:function(){return"No se encontraron coincidencias"}},e.extend(e.fn.multipleSelect.defaults,e.fn.multipleSelect.locales["es-ES"])})); +!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=function(t){return t&&t.Math==Math&&t},r=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n&&n)||function(){return this}()||n||Function("return this")(),o={},i=function(t){try{return!!t()}catch(t){return!0}},u=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),a=c,f=Function.prototype.call,l=a?f.bind(f):function(){return f.apply(f,arguments)},s={},p={}.propertyIsEnumerable,y=Object.getOwnPropertyDescriptor,b=y&&!p.call({1:2},1);s.f=b?function(t){var n=y(this,t);return!!n&&n.enumerable}:p;var v,d,g=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},h=c,m=Function.prototype,S=m.call,w=h&&m.bind.bind(S,S),O=h?w:function(t){return function(){return S.apply(t,arguments)}},j=O,P=j({}.toString),E=j("".slice),T=function(t){return E(P(t),8,-1)},A=i,x=T,M=Object,F=O("".split),I=A((function(){return!M("z").propertyIsEnumerable(0)}))?function(t){return"String"==x(t)?F(t,""):M(t)}:M,C=function(t){return null==t},D=C,L=TypeError,N=function(t){if(D(t))throw L("Can't call method on "+t);return t},_=I,k=N,z=function(t){return _(k(t))},R="object"==typeof document&&document.all,G={all:R,IS_HTMLDDA:void 0===R&&void 0!==R},q=G.all,B=G.IS_HTMLDDA?function(t){return"function"==typeof t||t===q}:function(t){return"function"==typeof t},H=B,U=G.all,W=G.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:H(t)||t===U}:function(t){return"object"==typeof t?null!==t:H(t)},K=r,Q=B,V=function(t,n){return arguments.length<2?(e=K[t],Q(e)?e:void 0):K[t]&&K[t][n];var e},X=O({}.isPrototypeOf),Y=r,$="undefined"!=typeof navigator&&String(navigator.userAgent)||"",J=Y.process,Z=Y.Deno,tt=J&&J.versions||Z&&Z.version,nt=tt&&tt.v8;nt&&(d=(v=nt.split("."))[0]>0&&v[0]<4?1:+(v[0]+v[1])),!d&&$&&(!(v=$.match(/Edge\/(\d+)/))||v[1]>=74)&&(v=$.match(/Chrome\/(\d+)/))&&(d=+v[1]);var et=d,rt=et,ot=i,it=r.String,ut=!!Object.getOwnPropertySymbols&&!ot((function(){var t=Symbol();return!it(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&rt&&rt<41})),ct=ut&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,at=V,ft=B,lt=X,st=Object,pt=ct?function(t){return"symbol"==typeof t}:function(t){var n=at("Symbol");return ft(n)&<(n.prototype,st(t))},yt=String,bt=B,vt=function(t){try{return yt(t)}catch(t){return"Object"}},dt=TypeError,gt=function(t){if(bt(t))return t;throw dt(vt(t)+" is not a function")},ht=C,mt=l,St=B,wt=W,Ot=TypeError,jt={exports:{}},Pt=r,Et=Object.defineProperty,Tt=function(t,n){try{Et(Pt,t,{value:n,configurable:!0,writable:!0})}catch(e){Pt[t]=n}return n},At=Tt,xt="__core-js_shared__",Mt=r[xt]||At(xt,{}),Ft=Mt;(jt.exports=function(t,n){return Ft[t]||(Ft[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.30.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var It=jt.exports,Ct=N,Dt=Object,Lt=function(t){return Dt(Ct(t))},Nt=Lt,_t=O({}.hasOwnProperty),kt=Object.hasOwn||function(t,n){return _t(Nt(t),n)},zt=O,Rt=0,Gt=Math.random(),qt=zt(1..toString),Bt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+qt(++Rt+Gt,36)},Ht=It,Ut=kt,Wt=Bt,Kt=ut,Qt=ct,Vt=r.Symbol,Xt=Ht("wks"),Yt=Qt?Vt.for||Vt:Vt&&Vt.withoutSetter||Wt,$t=function(t){return Ut(Xt,t)||(Xt[t]=Kt&&Ut(Vt,t)?Vt[t]:Yt("Symbol."+t)),Xt[t]},Jt=l,Zt=W,tn=pt,nn=function(t,n){var e=t[n];return ht(e)?void 0:gt(e)},en=function(t,n){var e,r;if("string"===n&&St(e=t.toString)&&!wt(r=mt(e,t)))return r;if(St(e=t.valueOf)&&!wt(r=mt(e,t)))return r;if("string"!==n&&St(e=t.toString)&&!wt(r=mt(e,t)))return r;throw Ot("Can't convert object to primitive value")},rn=TypeError,on=$t("toPrimitive"),un=function(t,n){if(!Zt(t)||tn(t))return t;var e,r=nn(t,on);if(r){if(void 0===n&&(n="default"),e=Jt(r,t,n),!Zt(e)||tn(e))return e;throw rn("Can't convert object to primitive value")}return void 0===n&&(n="number"),en(t,n)},cn=pt,an=function(t){var n=un(t,"string");return cn(n)?n:n+""},fn=W,ln=r.document,sn=fn(ln)&&fn(ln.createElement),pn=function(t){return sn?ln.createElement(t):{}},yn=!u&&!i((function(){return 7!=Object.defineProperty(pn("div"),"a",{get:function(){return 7}}).a})),bn=u,vn=l,dn=s,gn=g,hn=z,mn=an,Sn=kt,wn=yn,On=Object.getOwnPropertyDescriptor;o.f=bn?On:function(t,n){if(t=hn(t),n=mn(n),wn)try{return On(t,n)}catch(t){}if(Sn(t,n))return gn(!vn(dn.f,t,n),t[n])};var jn={},Pn=u&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),En=W,Tn=String,An=TypeError,xn=function(t){if(En(t))return t;throw An(Tn(t)+" is not an object")},Mn=u,Fn=yn,In=Pn,Cn=xn,Dn=an,Ln=TypeError,Nn=Object.defineProperty,_n=Object.getOwnPropertyDescriptor,kn="enumerable",zn="configurable",Rn="writable";jn.f=Mn?In?function(t,n,e){if(Cn(t),n=Dn(n),Cn(e),"function"==typeof t&&"prototype"===n&&"value"in e&&Rn in e&&!e[Rn]){var r=_n(t,n);r&&r[Rn]&&(t[n]=e.value,e={configurable:zn in e?e[zn]:r[zn],enumerable:kn in e?e[kn]:r[kn],writable:!1})}return Nn(t,n,e)}:Nn:function(t,n,e){if(Cn(t),n=Dn(n),Cn(e),Fn)try{return Nn(t,n,e)}catch(t){}if("get"in e||"set"in e)throw Ln("Accessors not supported");return"value"in e&&(t[n]=e.value),t};var Gn=jn,qn=g,Bn=u?function(t,n,e){return Gn.f(t,n,qn(1,e))}:function(t,n,e){return t[n]=e,t},Hn={exports:{}},Un=u,Wn=kt,Kn=Function.prototype,Qn=Un&&Object.getOwnPropertyDescriptor,Vn=Wn(Kn,"name"),Xn={EXISTS:Vn,PROPER:Vn&&"something"===function(){}.name,CONFIGURABLE:Vn&&(!Un||Un&&Qn(Kn,"name").configurable)},Yn=B,$n=Mt,Jn=O(Function.toString);Yn($n.inspectSource)||($n.inspectSource=function(t){return Jn(t)});var Zn,te,ne,ee=$n.inspectSource,re=B,oe=r.WeakMap,ie=re(oe)&&/native code/.test(String(oe)),ue=Bt,ce=It("keys"),ae={},fe=ie,le=r,se=W,pe=Bn,ye=kt,be=Mt,ve=function(t){return ce[t]||(ce[t]=ue(t))},de=ae,ge="Object already initialized",he=le.TypeError,me=le.WeakMap;if(fe||be.state){var Se=be.state||(be.state=new me);Se.get=Se.get,Se.has=Se.has,Se.set=Se.set,Zn=function(t,n){if(Se.has(t))throw he(ge);return n.facade=t,Se.set(t,n),n},te=function(t){return Se.get(t)||{}},ne=function(t){return Se.has(t)}}else{var we=ve("state");de[we]=!0,Zn=function(t,n){if(ye(t,we))throw he(ge);return n.facade=t,pe(t,we,n),n},te=function(t){return ye(t,we)?t[we]:{}},ne=function(t){return ye(t,we)}}var Oe={set:Zn,get:te,has:ne,enforce:function(t){return ne(t)?te(t):Zn(t,{})},getterFor:function(t){return function(n){var e;if(!se(n)||(e=te(n)).type!==t)throw he("Incompatible receiver, "+t+" required");return e}}},je=O,Pe=i,Ee=B,Te=kt,Ae=u,xe=Xn.CONFIGURABLE,Me=ee,Fe=Oe.enforce,Ie=Oe.get,Ce=String,De=Object.defineProperty,Le=je("".slice),Ne=je("".replace),_e=je([].join),ke=Ae&&!Pe((function(){return 8!==De((function(){}),"length",{value:8}).length})),ze=String(String).split("String"),Re=Hn.exports=function(t,n,e){"Symbol("===Le(Ce(n),0,7)&&(n="["+Ne(Ce(n),/^Symbol\(([^)]*)\)/,"$1")+"]"),e&&e.getter&&(n="get "+n),e&&e.setter&&(n="set "+n),(!Te(t,"name")||xe&&t.name!==n)&&(Ae?De(t,"name",{value:n,configurable:!0}):t.name=n),ke&&e&&Te(e,"arity")&&t.length!==e.arity&&De(t,"length",{value:e.arity});try{e&&Te(e,"constructor")&&e.constructor?Ae&&De(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=Fe(t);return Te(r,"source")||(r.source=_e(ze,"string"==typeof n?n:"")),t};Function.prototype.toString=Re((function(){return Ee(this)&&Ie(this).source||Me(this)}),"toString");var Ge=Hn.exports,qe=B,Be=jn,He=Ge,Ue=Tt,We={},Ke=Math.ceil,Qe=Math.floor,Ve=Math.trunc||function(t){var n=+t;return(n>0?Qe:Ke)(n)},Xe=function(t){var n=+t;return n!=n||0===n?0:Ve(n)},Ye=Xe,$e=Math.max,Je=Math.min,Ze=Xe,tr=Math.min,nr=function(t){return t>0?tr(Ze(t),9007199254740991):0},er=function(t){return nr(t.length)},rr=z,or=function(t,n){var e=Ye(t);return e<0?$e(e+n,0):Je(e,n)},ir=er,ur=function(t){return function(n,e,r){var o,i=rr(n),u=ir(i),c=or(r,u);if(t&&e!=e){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===e)return t||c||0;return!t&&-1}},cr={includes:ur(!0),indexOf:ur(!1)},ar=kt,fr=z,lr=cr.indexOf,sr=ae,pr=O([].push),yr=function(t,n){var e,r=fr(t),o=0,i=[];for(e in r)!ar(sr,e)&&ar(r,e)&&pr(i,e);for(;n.length>o;)ar(r,e=n[o++])&&(~lr(i,e)||pr(i,e));return i},br=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");We.f=Object.getOwnPropertyNames||function(t){return yr(t,br)};var vr={};vr.f=Object.getOwnPropertySymbols;var dr=V,gr=We,hr=vr,mr=xn,Sr=O([].concat),wr=dr("Reflect","ownKeys")||function(t){var n=gr.f(mr(t)),e=hr.f;return e?Sr(n,e(t)):n},Or=kt,jr=wr,Pr=o,Er=jn,Tr=i,Ar=B,xr=/#|\.prototype\./,Mr=function(t,n){var e=Ir[Fr(t)];return e==Dr||e!=Cr&&(Ar(n)?Tr(n):!!n)},Fr=Mr.normalize=function(t){return String(t).replace(xr,".").toLowerCase()},Ir=Mr.data={},Cr=Mr.NATIVE="N",Dr=Mr.POLYFILL="P",Lr=Mr,Nr=r,_r=o.f,kr=Bn,zr=function(t,n,e,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:n;if(qe(e)&&He(e,i,r),r.global)o?t[n]=e:Ue(n,e);else{try{r.unsafe?t[n]&&(o=!0):delete t[n]}catch(t){}o?t[n]=e:Be.f(t,n,{value:e,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},Rr=Tt,Gr=function(t,n,e){for(var r=jr(n),o=Er.f,i=Pr.f,u=0;u9007199254740991)throw Ur("Maximum allowed index exceeded");return t},Co=function(t,n,e){var r=Wr(n);r in t?Kr.f(t,r,Qr(0,e)):t[r]=e},Do=function(t,n){return new(wo(t))(0===n?0:n)},Lo=function(t){return jo>=51||!Oo((function(){var n=[];return(n.constructor={})[Po]=function(){return{foo:1}},1!==n[t](Boolean).foo}))},No=et,_o=$t("isConcatSpreadable"),ko=No>=51||!To((function(){var t=[];return t[_o]=!1,t.concat()[0]!==t})),zo=function(t){if(!xo(t))return!1;var n=t[_o];return void 0!==n?!!n:Ao(t)};Eo({target:"Array",proto:!0,arity:1,forced:!ko||!Lo("concat")},{concat:function(t){var n,e,r,o,i,u=Mo(this),c=Do(u,0),a=0;for(n=-1,r=arguments.length;n 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 && userAgent) { + match = userAgent.match(/Edge\/(\d+)/); + if (!match || match[1] >= 74) { + match = userAgent.match(/Chrome\/(\d+)/); + if (match) version = +match[1]; + } + } + + var engineV8Version = version; + + /* eslint-disable es/no-symbol -- required for testing */ + + var V8_VERSION$2 = engineV8Version; + var fails$7 = fails$b; + var global$8 = global$b; + + var $String$3 = global$8.String; + + // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing + var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$7(function () { + var symbol = Symbol(); + // 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$3(symbol) || !(Object(symbol) instanceof Symbol) || + // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances + !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41; + }); + + /* eslint-disable es/no-symbol -- required for testing */ + + var NATIVE_SYMBOL$1 = symbolConstructorDetection; + + var useSymbolAsUid = NATIVE_SYMBOL$1 + && !Symbol.sham + && typeof Symbol.iterator == 'symbol'; + + var getBuiltIn$2 = getBuiltIn$3; + var isCallable$9 = isCallable$c; + var isPrototypeOf = objectIsPrototypeOf; + var USE_SYMBOL_AS_UID$1 = useSymbolAsUid; + + var $Object$2 = Object; + + var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) { + return typeof it == 'symbol'; + } : function (it) { + var $Symbol = getBuiltIn$2('Symbol'); + return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it)); + }; + + var $String$2 = String; + + var tryToString$1 = function (argument) { + try { + return $String$2(argument); + } catch (error) { + return 'Object'; + } + }; + + var isCallable$8 = isCallable$c; + var tryToString = tryToString$1; + + var $TypeError$5 = TypeError; + + // `Assert: IsCallable(argument) is true` + var aCallable$1 = function (argument) { + if (isCallable$8(argument)) return argument; + throw $TypeError$5(tryToString(argument) + ' is not a function'); + }; + + var aCallable = aCallable$1; + var isNullOrUndefined = isNullOrUndefined$2; + + // `GetMethod` abstract operation + // https://tc39.es/ecma262/#sec-getmethod + var getMethod$1 = function (V, P) { + var func = V[P]; + return isNullOrUndefined(func) ? undefined : aCallable(func); + }; + + var call$2 = functionCall; + var isCallable$7 = isCallable$c; + var isObject$6 = isObject$7; + + var $TypeError$4 = TypeError; + + // `OrdinaryToPrimitive` abstract operation + // https://tc39.es/ecma262/#sec-ordinarytoprimitive + var ordinaryToPrimitive$1 = function (input, pref) { + var fn, val; + if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val; + if (isCallable$7(fn = input.valueOf) && !isObject$6(val = call$2(fn, input))) return val; + if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val; + throw $TypeError$4("Can't convert object to primitive value"); + }; + + var shared$3 = {exports: {}}; + + var global$7 = global$b; + + // eslint-disable-next-line es/no-object-defineproperty -- safe + var defineProperty$1 = Object.defineProperty; + + var defineGlobalProperty$3 = function (key, value) { + try { + defineProperty$1(global$7, key, { value: value, configurable: true, writable: true }); + } catch (error) { + global$7[key] = value; + } return value; + }; + + var global$6 = global$b; + var defineGlobalProperty$2 = defineGlobalProperty$3; + + var SHARED = '__core-js_shared__'; + var store$3 = global$6[SHARED] || defineGlobalProperty$2(SHARED, {}); + + var sharedStore = store$3; + + var store$2 = sharedStore; + + (shared$3.exports = function (key, value) { + return store$2[key] || (store$2[key] = value !== undefined ? value : {}); + })('versions', []).push({ + version: '3.30.2', + mode: 'global', + copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)', + license: 'https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE', + source: 'https://github.com/zloirock/core-js' + }); + + var sharedExports = shared$3.exports; + + var requireObjectCoercible = requireObjectCoercible$2; + + var $Object$1 = Object; + + // `ToObject` abstract operation + // https://tc39.es/ecma262/#sec-toobject + var toObject$2 = function (argument) { + return $Object$1(requireObjectCoercible(argument)); + }; + + var uncurryThis$6 = functionUncurryThis; + var toObject$1 = toObject$2; + + var hasOwnProperty = uncurryThis$6({}.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$1(it), key); + }; + + var uncurryThis$5 = functionUncurryThis; + + var id = 0; + var postfix = Math.random(); + var toString = uncurryThis$5(1.0.toString); + + var uid$2 = function (key) { + return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36); + }; + + var global$5 = global$b; + var shared$2 = sharedExports; + var hasOwn$6 = hasOwnProperty_1; + var uid$1 = uid$2; + var NATIVE_SYMBOL = symbolConstructorDetection; + var USE_SYMBOL_AS_UID = useSymbolAsUid; + + var Symbol$1 = global$5.Symbol; + var WellKnownSymbolsStore = shared$2('wks'); + var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1; + + var wellKnownSymbol$6 = function (name) { + if (!hasOwn$6(WellKnownSymbolsStore, name)) { + WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name) + ? Symbol$1[name] + : createWellKnownSymbol('Symbol.' + name); + } return WellKnownSymbolsStore[name]; + }; + + var call$1 = functionCall; + var isObject$5 = isObject$7; + var isSymbol$1 = isSymbol$2; + var getMethod = getMethod$1; + var ordinaryToPrimitive = ordinaryToPrimitive$1; + var wellKnownSymbol$5 = wellKnownSymbol$6; + + var $TypeError$3 = TypeError; + var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive'); + + // `ToPrimitive` abstract operation + // https://tc39.es/ecma262/#sec-toprimitive + var toPrimitive$1 = function (input, pref) { + if (!isObject$5(input) || isSymbol$1(input)) return input; + var exoticToPrim = getMethod(input, TO_PRIMITIVE); + var result; + if (exoticToPrim) { + if (pref === undefined) pref = 'default'; + result = call$1(exoticToPrim, input, pref); + if (!isObject$5(result) || isSymbol$1(result)) return result; + throw $TypeError$3("Can't convert object to primitive value"); + } + if (pref === undefined) pref = 'number'; + return ordinaryToPrimitive(input, pref); + }; + + var toPrimitive = toPrimitive$1; + var isSymbol = isSymbol$2; + + // `ToPropertyKey` abstract operation + // https://tc39.es/ecma262/#sec-topropertykey + var toPropertyKey$3 = function (argument) { + var key = toPrimitive(argument, 'string'); + return isSymbol(key) ? key : key + ''; + }; + + var global$4 = global$b; + var isObject$4 = isObject$7; + + var document$1 = global$4.document; + // typeof document.createElement is 'object' in old IE + var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement); + + var documentCreateElement = function (it) { + return EXISTS$1 ? document$1.createElement(it) : {}; + }; + + var DESCRIPTORS$6 = descriptors; + var fails$6 = fails$b; + var createElement = documentCreateElement; + + // Thanks to IE8 for its funny defineProperty + var ie8DomDefine = !DESCRIPTORS$6 && !fails$6(function () { + // eslint-disable-next-line es/no-object-defineproperty -- required for testing + return Object.defineProperty(createElement('div'), 'a', { + get: function () { return 7; } + }).a != 7; + }); + + var DESCRIPTORS$5 = descriptors; + var call = functionCall; + var propertyIsEnumerableModule = objectPropertyIsEnumerable; + var createPropertyDescriptor$2 = createPropertyDescriptor$3; + var toIndexedObject$2 = toIndexedObject$3; + var toPropertyKey$2 = toPropertyKey$3; + var hasOwn$5 = hasOwnProperty_1; + var IE8_DOM_DEFINE$1 = ie8DomDefine; + + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; + + // `Object.getOwnPropertyDescriptor` method + // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor + objectGetOwnPropertyDescriptor.f = DESCRIPTORS$5 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) { + O = toIndexedObject$2(O); + P = toPropertyKey$2(P); + if (IE8_DOM_DEFINE$1) try { + return $getOwnPropertyDescriptor$1(O, P); + } catch (error) { /* empty */ } + if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call(propertyIsEnumerableModule.f, O, P), O[P]); + }; + + var objectDefineProperty = {}; + + var DESCRIPTORS$4 = descriptors; + var fails$5 = fails$b; + + // V8 ~ Chrome 36- + // https://bugs.chromium.org/p/v8/issues/detail?id=3334 + var v8PrototypeDefineBug = DESCRIPTORS$4 && fails$5(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$3 = isObject$7; + + var $String$1 = String; + var $TypeError$2 = TypeError; + + // `Assert: Type(argument) is Object` + var anObject$2 = function (argument) { + if (isObject$3(argument)) return argument; + throw $TypeError$2($String$1(argument) + ' is not an object'); + }; + + var DESCRIPTORS$3 = descriptors; + var IE8_DOM_DEFINE = ie8DomDefine; + var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug; + var anObject$1 = anObject$2; + var toPropertyKey$1 = toPropertyKey$3; + + var $TypeError$1 = TypeError; + // eslint-disable-next-line es/no-object-defineproperty -- safe + var $defineProperty = Object.defineProperty; + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var $getOwnPropertyDescriptor = 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$3 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) { + anObject$1(O); + P = toPropertyKey$1(P); + anObject$1(Attributes); + if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) { + var current = $getOwnPropertyDescriptor(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(O, P, Attributes); + } : $defineProperty : function defineProperty(O, P, Attributes) { + anObject$1(O); + P = toPropertyKey$1(P); + anObject$1(Attributes); + if (IE8_DOM_DEFINE) try { + return $defineProperty(O, P, Attributes); + } catch (error) { /* empty */ } + if ('get' in Attributes || 'set' in Attributes) throw $TypeError$1('Accessors not supported'); + if ('value' in Attributes) O[P] = Attributes.value; + return O; + }; + + var DESCRIPTORS$2 = descriptors; + var definePropertyModule$3 = objectDefineProperty; + var createPropertyDescriptor$1 = createPropertyDescriptor$3; + + var createNonEnumerableProperty$2 = DESCRIPTORS$2 ? function (object, key, value) { + return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value)); + } : function (object, key, value) { + object[key] = value; + return object; + }; + + var makeBuiltIn$2 = {exports: {}}; + + var DESCRIPTORS$1 = descriptors; + var hasOwn$4 = hasOwnProperty_1; + + var FunctionPrototype = Function.prototype; + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var getDescriptor = DESCRIPTORS$1 && Object.getOwnPropertyDescriptor; + + var EXISTS = hasOwn$4(FunctionPrototype, 'name'); + // additional protection from minified / mangled / dropped function names + var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something'; + var CONFIGURABLE = EXISTS && (!DESCRIPTORS$1 || (DESCRIPTORS$1 && getDescriptor(FunctionPrototype, 'name').configurable)); + + var functionName = { + EXISTS: EXISTS, + PROPER: PROPER, + CONFIGURABLE: CONFIGURABLE + }; + + var uncurryThis$4 = functionUncurryThis; + var isCallable$6 = isCallable$c; + var store$1 = sharedStore; + + var functionToString = uncurryThis$4(Function.toString); + + // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper + if (!isCallable$6(store$1.inspectSource)) { + store$1.inspectSource = function (it) { + return functionToString(it); + }; + } + + var inspectSource$2 = store$1.inspectSource; + + var global$3 = global$b; + var isCallable$5 = isCallable$c; + + var WeakMap$1 = global$3.WeakMap; + + var weakMapBasicDetection = isCallable$5(WeakMap$1) && /native code/.test(String(WeakMap$1)); + + var shared$1 = sharedExports; + var uid = uid$2; + + var keys = shared$1('keys'); + + var sharedKey$1 = function (key) { + return keys[key] || (keys[key] = uid(key)); + }; + + var hiddenKeys$3 = {}; + + var NATIVE_WEAK_MAP = weakMapBasicDetection; + var global$2 = global$b; + var isObject$2 = isObject$7; + var createNonEnumerableProperty$1 = createNonEnumerableProperty$2; + var hasOwn$3 = hasOwnProperty_1; + var shared = sharedStore; + var sharedKey = sharedKey$1; + var hiddenKeys$2 = hiddenKeys$3; + + var OBJECT_ALREADY_INITIALIZED = 'Object already initialized'; + var TypeError$1 = global$2.TypeError; + var WeakMap = global$2.WeakMap; + var set, get, has; + + var enforce = function (it) { + return has(it) ? get(it) : set(it, {}); + }; + + var getterFor = function (TYPE) { + return function (it) { + var state; + if (!isObject$2(it) || (state = get(it)).type !== TYPE) { + throw TypeError$1('Incompatible receiver, ' + TYPE + ' required'); + } return state; + }; + }; + + if (NATIVE_WEAK_MAP || shared.state) { + var store = shared.state || (shared.state = new WeakMap()); + /* 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 = function (it, metadata) { + if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED); + metadata.facade = it; + store.set(it, metadata); + return metadata; + }; + get = function (it) { + return store.get(it) || {}; + }; + has = function (it) { + return store.has(it); + }; + } else { + var STATE = sharedKey('state'); + hiddenKeys$2[STATE] = true; + set = function (it, metadata) { + if (hasOwn$3(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED); + metadata.facade = it; + createNonEnumerableProperty$1(it, STATE, metadata); + return metadata; + }; + get = function (it) { + return hasOwn$3(it, STATE) ? it[STATE] : {}; + }; + has = function (it) { + return hasOwn$3(it, STATE); + }; + } + + var internalState = { + set: set, + get: get, + has: has, + enforce: enforce, + getterFor: getterFor + }; + + var uncurryThis$3 = functionUncurryThis; + var fails$4 = fails$b; + var isCallable$4 = isCallable$c; + var hasOwn$2 = hasOwnProperty_1; + var DESCRIPTORS = descriptors; + var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE; + var inspectSource$1 = inspectSource$2; + var InternalStateModule = internalState; + + var enforceInternalState = InternalStateModule.enforce; + var getInternalState = InternalStateModule.get; + var $String = String; + // eslint-disable-next-line es/no-object-defineproperty -- safe + var defineProperty = Object.defineProperty; + var stringSlice = uncurryThis$3(''.slice); + var replace = uncurryThis$3(''.replace); + var join = uncurryThis$3([].join); + + var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails$4(function () { + return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8; + }); + + var TEMPLATE = String(String).split('String'); + + var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) { + if (stringSlice($String(name), 0, 7) === 'Symbol(') { + name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']'; + } + if (options && options.getter) name = 'get ' + name; + if (options && options.setter) name = 'set ' + name; + if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) { + if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true }); + else value.name = name; + } + if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) { + defineProperty(value, 'length', { value: options.arity }); + } + try { + if (options && hasOwn$2(options, 'constructor') && options.constructor) { + if (DESCRIPTORS) defineProperty(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(value); + if (!hasOwn$2(state, 'source')) { + state.source = join(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$1(function toString() { + return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this); + }, 'toString'); + + var makeBuiltInExports = makeBuiltIn$2.exports; + + var isCallable$3 = isCallable$c; + var definePropertyModule$2 = objectDefineProperty; + var makeBuiltIn = makeBuiltInExports; + var defineGlobalProperty$1 = defineGlobalProperty$3; + + var defineBuiltIn$1 = function (O, key, value, options) { + if (!options) options = {}; + var simple = options.enumerable; + var name = options.name !== undefined ? options.name : key; + if (isCallable$3(value)) makeBuiltIn(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$2.f(O, key, { + value: value, + enumerable: false, + configurable: !options.nonConfigurable, + writable: !options.nonWritable + }); + } return O; + }; + + var objectGetOwnPropertyNames = {}; + + var ceil = Math.ceil; + var floor = 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 : ceil)(n); + }; + + var trunc = mathTrunc; + + // `ToIntegerOrInfinity` abstract operation + // https://tc39.es/ecma262/#sec-tointegerorinfinity + var toIntegerOrInfinity$2 = function (argument) { + var number = +argument; + // eslint-disable-next-line no-self-compare -- NaN check + return number !== number || number === 0 ? 0 : trunc(number); + }; + + var toIntegerOrInfinity$1 = toIntegerOrInfinity$2; + + var max = Math.max; + var min$1 = 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$1 = function (index, length) { + var integer = toIntegerOrInfinity$1(index); + return integer < 0 ? max(integer + length, 0) : min$1(integer, length); + }; + + var toIntegerOrInfinity = toIntegerOrInfinity$2; + + var min = Math.min; + + // `ToLength` abstract operation + // https://tc39.es/ecma262/#sec-tolength + var toLength$1 = function (argument) { + return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 + }; + + var toLength = toLength$1; + + // `LengthOfArrayLike` abstract operation + // https://tc39.es/ecma262/#sec-lengthofarraylike + var lengthOfArrayLike$2 = function (obj) { + return toLength(obj.length); + }; + + var toIndexedObject$1 = toIndexedObject$3; + var toAbsoluteIndex = toAbsoluteIndex$1; + var lengthOfArrayLike$1 = lengthOfArrayLike$2; + + // `Array.prototype.{ indexOf, includes }` methods implementation + var createMethod = function (IS_INCLUDES) { + return function ($this, el, fromIndex) { + var O = toIndexedObject$1($this); + var length = lengthOfArrayLike$1(O); + var index = toAbsoluteIndex(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(true), + // `Array.prototype.indexOf` method + // https://tc39.es/ecma262/#sec-array.prototype.indexof + indexOf: createMethod(false) + }; + + var uncurryThis$2 = functionUncurryThis; + var hasOwn$1 = hasOwnProperty_1; + var toIndexedObject = toIndexedObject$3; + var indexOf = arrayIncludes.indexOf; + var hiddenKeys$1 = hiddenKeys$3; + + var push = uncurryThis$2([].push); + + var objectKeysInternal = function (object, names) { + var O = toIndexedObject(object); + var i = 0; + var result = []; + var key; + for (key in O) !hasOwn$1(hiddenKeys$1, key) && hasOwn$1(O, key) && push(result, key); + // Don't enum bug & hidden keys + while (names.length > i) if (hasOwn$1(O, key = names[i++])) { + ~indexOf(result, key) || push(result, key); + } + return result; + }; + + // IE8- don't enum bug keys + var enumBugKeys$1 = [ + 'constructor', + 'hasOwnProperty', + 'isPrototypeOf', + 'propertyIsEnumerable', + 'toLocaleString', + 'toString', + 'valueOf' + ]; + + var internalObjectKeys = objectKeysInternal; + var enumBugKeys = enumBugKeys$1; + + var hiddenKeys = enumBugKeys.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(O, hiddenKeys); + }; + + var objectGetOwnPropertySymbols = {}; + + // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe + objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols; + + var getBuiltIn$1 = getBuiltIn$3; + var uncurryThis$1 = functionUncurryThis; + var getOwnPropertyNamesModule = objectGetOwnPropertyNames; + var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols; + var anObject = anObject$2; + + var concat = uncurryThis$1([].concat); + + // all object keys, includes non-enumerable and symbols + var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) { + var keys = getOwnPropertyNamesModule.f(anObject(it)); + var getOwnPropertySymbols = getOwnPropertySymbolsModule.f; + return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys; + }; + + var hasOwn = hasOwnProperty_1; + var ownKeys = ownKeys$1; + var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor; + var definePropertyModule$1 = objectDefineProperty; + + var copyConstructorProperties$1 = function (target, source, exceptions) { + var keys = ownKeys(source); + var defineProperty = definePropertyModule$1.f; + var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) { + defineProperty(target, key, getOwnPropertyDescriptor(source, key)); + } + } + }; + + var fails$3 = fails$b; + var isCallable$2 = isCallable$c; + + var replacement = /#|\.prototype\./; + + var isForced$1 = function (feature, detection) { + var value = data[normalize(feature)]; + return value == POLYFILL ? true + : value == NATIVE ? false + : isCallable$2(detection) ? fails$3(detection) + : !!detection; + }; + + var normalize = isForced$1.normalize = function (string) { + return String(string).replace(replacement, '.').toLowerCase(); + }; + + var data = isForced$1.data = {}; + var NATIVE = isForced$1.NATIVE = 'N'; + var POLYFILL = isForced$1.POLYFILL = 'P'; + + var isForced_1 = isForced$1; + + var global$1 = global$b; + var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f; + var createNonEnumerableProperty = createNonEnumerableProperty$2; + var defineBuiltIn = defineBuiltIn$1; + var defineGlobalProperty = defineGlobalProperty$3; + var copyConstructorProperties = copyConstructorProperties$1; + var isForced = 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 = global$1; + } else if (STATIC) { + target = global$1[TARGET] || defineGlobalProperty(TARGET, {}); + } else { + target = (global$1[TARGET] || {}).prototype; + } + if (target) for (key in source) { + sourceProperty = source[key]; + if (options.dontCallGetSet) { + descriptor = getOwnPropertyDescriptor(target, key); + targetProperty = descriptor && descriptor.value; + } else targetProperty = target[key]; + FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); + // contained in target + if (!FORCED && targetProperty !== undefined) { + if (typeof sourceProperty == typeof targetProperty) continue; + copyConstructorProperties(sourceProperty, targetProperty); + } + // add a flag to not completely full polyfills + if (options.sham || (targetProperty && targetProperty.sham)) { + createNonEnumerableProperty(sourceProperty, 'sham', true); + } + defineBuiltIn(target, key, sourceProperty, options); + } + }; + + var classof$2 = classofRaw$1; + + // `IsArray` abstract operation + // https://tc39.es/ecma262/#sec-isarray + // eslint-disable-next-line es/no-array-isarray -- safe + var isArray$2 = Array.isArray || function isArray(argument) { + return classof$2(argument) == 'Array'; + }; + + var $TypeError = TypeError; + var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991 + + var doesNotExceedSafeInteger$1 = function (it) { + if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded'); + return it; + }; + + var toPropertyKey = toPropertyKey$3; + var definePropertyModule = objectDefineProperty; + var createPropertyDescriptor = createPropertyDescriptor$3; + + var createProperty$1 = function (object, key, value) { + var propertyKey = toPropertyKey(key); + if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value)); + else object[propertyKey] = value; + }; + + var wellKnownSymbol$4 = wellKnownSymbol$6; + + var TO_STRING_TAG$1 = wellKnownSymbol$4('toStringTag'); + var test = {}; + + test[TO_STRING_TAG$1] = 'z'; + + var toStringTagSupport = String(test) === '[object z]'; + + var TO_STRING_TAG_SUPPORT = toStringTagSupport; + var isCallable$1 = isCallable$c; + var classofRaw = classofRaw$1; + var wellKnownSymbol$3 = wellKnownSymbol$6; + + var TO_STRING_TAG = wellKnownSymbol$3('toStringTag'); + var $Object = Object; + + // ES3 wrong here + var CORRECT_ARGUMENTS = classofRaw(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$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) { + var O, tag, result; + return it === undefined ? 'Undefined' : it === null ? 'Null' + // @@toStringTag case + : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag + // builtinTag case + : CORRECT_ARGUMENTS ? classofRaw(O) + // ES3 arguments fallback + : (result = classofRaw(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result; + }; + + var uncurryThis = functionUncurryThis; + var fails$2 = fails$b; + var isCallable = isCallable$c; + var classof = classof$1; + var getBuiltIn = getBuiltIn$3; + var inspectSource = inspectSource$2; + + var noop = function () { /* empty */ }; + var empty = []; + var construct = getBuiltIn('Reflect', 'construct'); + var constructorRegExp = /^\s*(?:class|function)\b/; + var exec = uncurryThis(constructorRegExp.exec); + var INCORRECT_TO_STRING = !constructorRegExp.exec(noop); + + var isConstructorModern = function isConstructor(argument) { + if (!isCallable(argument)) return false; + try { + construct(noop, empty, argument); + return true; + } catch (error) { + return false; + } + }; + + var isConstructorLegacy = function isConstructor(argument) { + if (!isCallable(argument)) return false; + switch (classof(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 || !!exec(constructorRegExp, inspectSource(argument)); + } catch (error) { + return true; + } + }; + + isConstructorLegacy.sham = true; + + // `IsConstructor` abstract operation + // https://tc39.es/ecma262/#sec-isconstructor + var isConstructor$1 = !construct || fails$2(function () { + var called; + return isConstructorModern(isConstructorModern.call) + || !isConstructorModern(Object) + || !isConstructorModern(function () { called = true; }) + || called; + }) ? isConstructorLegacy : isConstructorModern; + + var isArray$1 = isArray$2; + var isConstructor = isConstructor$1; + var isObject$1 = isObject$7; + var wellKnownSymbol$2 = wellKnownSymbol$6; + + var SPECIES$1 = wellKnownSymbol$2('species'); + var $Array = Array; + + // a part of `ArraySpeciesCreate` abstract operation + // https://tc39.es/ecma262/#sec-arrayspeciescreate + var arraySpeciesConstructor$1 = function (originalArray) { + var C; + if (isArray$1(originalArray)) { + C = originalArray.constructor; + // cross-realm fallback + if (isConstructor(C) && (C === $Array || isArray$1(C.prototype))) C = undefined; + else if (isObject$1(C)) { + C = C[SPECIES$1]; + if (C === null) C = undefined; + } + } return C === undefined ? $Array : C; + }; + + var arraySpeciesConstructor = arraySpeciesConstructor$1; + + // `ArraySpeciesCreate` abstract operation + // https://tc39.es/ecma262/#sec-arrayspeciescreate + var arraySpeciesCreate$1 = function (originalArray, length) { + return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length); + }; + + var fails$1 = fails$b; + var wellKnownSymbol$1 = wellKnownSymbol$6; + var V8_VERSION$1 = engineV8Version; + + var SPECIES = wellKnownSymbol$1('species'); + + var arrayMethodHasSpeciesSupport$1 = function (METHOD_NAME) { + // We can't use this feature detection in V8 since it causes + // deoptimization and serious performance degradation + // https://github.com/zloirock/core-js/issues/677 + return V8_VERSION$1 >= 51 || !fails$1(function () { + var array = []; + var constructor = array.constructor = {}; + constructor[SPECIES] = function () { + return { foo: 1 }; + }; + return array[METHOD_NAME](Boolean).foo !== 1; + }); + }; + + var $ = _export; + var fails = fails$b; + var isArray = isArray$2; + var isObject = isObject$7; + var toObject = toObject$2; + var lengthOfArrayLike = lengthOfArrayLike$2; + var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1; + var createProperty = createProperty$1; + var arraySpeciesCreate = arraySpeciesCreate$1; + var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1; + var wellKnownSymbol = wellKnownSymbol$6; + var V8_VERSION = engineV8Version; + + var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable'); + + // We can't use this feature detection in V8 since it causes + // deoptimization and serious performance degradation + // https://github.com/zloirock/core-js/issues/679 + var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () { + var array = []; + array[IS_CONCAT_SPREADABLE] = false; + return array.concat()[0] !== array; + }); + + var isConcatSpreadable = function (O) { + if (!isObject(O)) return false; + var spreadable = O[IS_CONCAT_SPREADABLE]; + return spreadable !== undefined ? !!spreadable : isArray(O); + }; + + var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat'); + + // `Array.prototype.concat` method + // https://tc39.es/ecma262/#sec-array.prototype.concat + // with adding support of @@isConcatSpreadable and @@species + $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, { + // eslint-disable-next-line no-unused-vars -- required for `.length` + concat: function concat(arg) { + var O = toObject(this); + var A = arraySpeciesCreate(O, 0); + var n = 0; + var i, k, length, len, E; + for (i = -1, length = arguments.length; i < length; i++) { + E = i === -1 ? O : arguments[i]; + if (isConcatSpreadable(E)) { + len = lengthOfArrayLike(E); + doesNotExceedSafeInteger(n + len); + for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]); + } else { + doesNotExceedSafeInteger(n + 1); + createProperty(A, n++, E); + } + } + A.length = n; + return A; + } + }); + + /** + * Multiple Select fr-FR translation + * Author: Francis Perron + */ + + $$1.fn.multipleSelect.locales['fr-FR'] = { + formatSelectAll: function formatSelectAll() { + return '[Tout sélectionner]'; + }, + formatAllSelected: function formatAllSelected() { + return 'Tous sélectionnés'; + }, + formatCountSelected: function formatCountSelected(count, total) { + return "".concat(count, " de ").concat(total, " s\xE9lectionn\xE9s"); + }, + formatNoMatchesFound: function formatNoMatchesFound() { + return 'Aucun résultat'; + } + }; + $$1.extend($$1.fn.multipleSelect.defaults, $$1.fn.multipleSelect.locales['fr-FR']); + +})); diff --git a/dist/locale/multiple-select-fr-FR.min.js b/dist/locale/multiple-select-fr-FR.min.js new file mode 100644 index 00000000..a1f2208d --- /dev/null +++ b/dist/locale/multiple-select-fr-FR.min.js @@ -0,0 +1,10 @@ +/** + * multiple-select - Multiple select is a jQuery plugin to select multiple elements with checkboxes :). + * + * @version v1.6.0 + * @homepage http://multiple-select.wenzhixin.net.cn + * @author wenzhixin (http://wenzhixin.net.cn/) + * @license MIT + */ + +!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=function(t){return t&&t.Math==Math&&t},r=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n&&n)||function(){return this}()||n||Function("return this")(),o={},i=function(t){try{return!!t()}catch(t){return!0}},u=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=c,a=Function.prototype.call,l=f?a.bind(a):function(){return a.apply(a,arguments)},s={},p={}.propertyIsEnumerable,y=Object.getOwnPropertyDescriptor,b=y&&!p.call({1:2},1);s.f=b?function(t){var n=y(this,t);return!!n&&n.enumerable}:p;var v,g,d=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},h=c,m=Function.prototype,S=m.call,w=h&&m.bind.bind(S,S),O=h?w:function(t){return function(){return S.apply(t,arguments)}},j=O,P=j({}.toString),T=j("".slice),E=function(t){return T(P(t),8,-1)},A=i,x=E,F=Object,M=O("".split),I=A((function(){return!F("z").propertyIsEnumerable(0)}))?function(t){return"String"==x(t)?M(t,""):F(t)}:F,C=function(t){return null==t},D=C,L=TypeError,_=function(t){if(D(t))throw L("Can't call method on "+t);return t},k=I,z=_,N=function(t){return k(z(t))},R="object"==typeof document&&document.all,G={all:R,IS_HTMLDDA:void 0===R&&void 0!==R},q=G.all,B=G.IS_HTMLDDA?function(t){return"function"==typeof t||t===q}:function(t){return"function"==typeof t},H=B,U=G.all,W=G.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:H(t)||t===U}:function(t){return"object"==typeof t?null!==t:H(t)},K=r,Q=B,V=function(t,n){return arguments.length<2?(e=K[t],Q(e)?e:void 0):K[t]&&K[t][n];var e},X=O({}.isPrototypeOf),Y=r,$="undefined"!=typeof navigator&&String(navigator.userAgent)||"",J=Y.process,Z=Y.Deno,tt=J&&J.versions||Z&&Z.version,nt=tt&&tt.v8;nt&&(g=(v=nt.split("."))[0]>0&&v[0]<4?1:+(v[0]+v[1])),!g&&$&&(!(v=$.match(/Edge\/(\d+)/))||v[1]>=74)&&(v=$.match(/Chrome\/(\d+)/))&&(g=+v[1]);var et=g,rt=et,ot=i,it=r.String,ut=!!Object.getOwnPropertySymbols&&!ot((function(){var t=Symbol();return!it(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&rt&&rt<41})),ct=ut&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ft=V,at=B,lt=X,st=Object,pt=ct?function(t){return"symbol"==typeof t}:function(t){var n=ft("Symbol");return at(n)&<(n.prototype,st(t))},yt=String,bt=B,vt=function(t){try{return yt(t)}catch(t){return"Object"}},gt=TypeError,dt=function(t){if(bt(t))return t;throw gt(vt(t)+" is not a function")},ht=C,mt=l,St=B,wt=W,Ot=TypeError,jt={exports:{}},Pt=r,Tt=Object.defineProperty,Et=function(t,n){try{Tt(Pt,t,{value:n,configurable:!0,writable:!0})}catch(e){Pt[t]=n}return n},At=Et,xt="__core-js_shared__",Ft=r[xt]||At(xt,{}),Mt=Ft;(jt.exports=function(t,n){return Mt[t]||(Mt[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.30.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var It=jt.exports,Ct=_,Dt=Object,Lt=function(t){return Dt(Ct(t))},_t=Lt,kt=O({}.hasOwnProperty),zt=Object.hasOwn||function(t,n){return kt(_t(t),n)},Nt=O,Rt=0,Gt=Math.random(),qt=Nt(1..toString),Bt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+qt(++Rt+Gt,36)},Ht=It,Ut=zt,Wt=Bt,Kt=ut,Qt=ct,Vt=r.Symbol,Xt=Ht("wks"),Yt=Qt?Vt.for||Vt:Vt&&Vt.withoutSetter||Wt,$t=function(t){return Ut(Xt,t)||(Xt[t]=Kt&&Ut(Vt,t)?Vt[t]:Yt("Symbol."+t)),Xt[t]},Jt=l,Zt=W,tn=pt,nn=function(t,n){var e=t[n];return ht(e)?void 0:dt(e)},en=function(t,n){var e,r;if("string"===n&&St(e=t.toString)&&!wt(r=mt(e,t)))return r;if(St(e=t.valueOf)&&!wt(r=mt(e,t)))return r;if("string"!==n&&St(e=t.toString)&&!wt(r=mt(e,t)))return r;throw Ot("Can't convert object to primitive value")},rn=TypeError,on=$t("toPrimitive"),un=function(t,n){if(!Zt(t)||tn(t))return t;var e,r=nn(t,on);if(r){if(void 0===n&&(n="default"),e=Jt(r,t,n),!Zt(e)||tn(e))return e;throw rn("Can't convert object to primitive value")}return void 0===n&&(n="number"),en(t,n)},cn=pt,fn=function(t){var n=un(t,"string");return cn(n)?n:n+""},an=W,ln=r.document,sn=an(ln)&&an(ln.createElement),pn=function(t){return sn?ln.createElement(t):{}},yn=!u&&!i((function(){return 7!=Object.defineProperty(pn("div"),"a",{get:function(){return 7}}).a})),bn=u,vn=l,gn=s,dn=d,hn=N,mn=fn,Sn=zt,wn=yn,On=Object.getOwnPropertyDescriptor;o.f=bn?On:function(t,n){if(t=hn(t),n=mn(n),wn)try{return On(t,n)}catch(t){}if(Sn(t,n))return dn(!vn(gn.f,t,n),t[n])};var jn={},Pn=u&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Tn=W,En=String,An=TypeError,xn=function(t){if(Tn(t))return t;throw An(En(t)+" is not an object")},Fn=u,Mn=yn,In=Pn,Cn=xn,Dn=fn,Ln=TypeError,_n=Object.defineProperty,kn=Object.getOwnPropertyDescriptor,zn="enumerable",Nn="configurable",Rn="writable";jn.f=Fn?In?function(t,n,e){if(Cn(t),n=Dn(n),Cn(e),"function"==typeof t&&"prototype"===n&&"value"in e&&Rn in e&&!e[Rn]){var r=kn(t,n);r&&r[Rn]&&(t[n]=e.value,e={configurable:Nn in e?e[Nn]:r[Nn],enumerable:zn in e?e[zn]:r[zn],writable:!1})}return _n(t,n,e)}:_n:function(t,n,e){if(Cn(t),n=Dn(n),Cn(e),Mn)try{return _n(t,n,e)}catch(t){}if("get"in e||"set"in e)throw Ln("Accessors not supported");return"value"in e&&(t[n]=e.value),t};var Gn=jn,qn=d,Bn=u?function(t,n,e){return Gn.f(t,n,qn(1,e))}:function(t,n,e){return t[n]=e,t},Hn={exports:{}},Un=u,Wn=zt,Kn=Function.prototype,Qn=Un&&Object.getOwnPropertyDescriptor,Vn=Wn(Kn,"name"),Xn={EXISTS:Vn,PROPER:Vn&&"something"===function(){}.name,CONFIGURABLE:Vn&&(!Un||Un&&Qn(Kn,"name").configurable)},Yn=B,$n=Ft,Jn=O(Function.toString);Yn($n.inspectSource)||($n.inspectSource=function(t){return Jn(t)});var Zn,te,ne,ee=$n.inspectSource,re=B,oe=r.WeakMap,ie=re(oe)&&/native code/.test(String(oe)),ue=Bt,ce=It("keys"),fe={},ae=ie,le=r,se=W,pe=Bn,ye=zt,be=Ft,ve=function(t){return ce[t]||(ce[t]=ue(t))},ge=fe,de="Object already initialized",he=le.TypeError,me=le.WeakMap;if(ae||be.state){var Se=be.state||(be.state=new me);Se.get=Se.get,Se.has=Se.has,Se.set=Se.set,Zn=function(t,n){if(Se.has(t))throw he(de);return n.facade=t,Se.set(t,n),n},te=function(t){return Se.get(t)||{}},ne=function(t){return Se.has(t)}}else{var we=ve("state");ge[we]=!0,Zn=function(t,n){if(ye(t,we))throw he(de);return n.facade=t,pe(t,we,n),n},te=function(t){return ye(t,we)?t[we]:{}},ne=function(t){return ye(t,we)}}var Oe={set:Zn,get:te,has:ne,enforce:function(t){return ne(t)?te(t):Zn(t,{})},getterFor:function(t){return function(n){var e;if(!se(n)||(e=te(n)).type!==t)throw he("Incompatible receiver, "+t+" required");return e}}},je=O,Pe=i,Te=B,Ee=zt,Ae=u,xe=Xn.CONFIGURABLE,Fe=ee,Me=Oe.enforce,Ie=Oe.get,Ce=String,De=Object.defineProperty,Le=je("".slice),_e=je("".replace),ke=je([].join),ze=Ae&&!Pe((function(){return 8!==De((function(){}),"length",{value:8}).length})),Ne=String(String).split("String"),Re=Hn.exports=function(t,n,e){"Symbol("===Le(Ce(n),0,7)&&(n="["+_e(Ce(n),/^Symbol\(([^)]*)\)/,"$1")+"]"),e&&e.getter&&(n="get "+n),e&&e.setter&&(n="set "+n),(!Ee(t,"name")||xe&&t.name!==n)&&(Ae?De(t,"name",{value:n,configurable:!0}):t.name=n),ze&&e&&Ee(e,"arity")&&t.length!==e.arity&&De(t,"length",{value:e.arity});try{e&&Ee(e,"constructor")&&e.constructor?Ae&&De(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=Me(t);return Ee(r,"source")||(r.source=ke(Ne,"string"==typeof n?n:"")),t};Function.prototype.toString=Re((function(){return Te(this)&&Ie(this).source||Fe(this)}),"toString");var Ge=Hn.exports,qe=B,Be=jn,He=Ge,Ue=Et,We={},Ke=Math.ceil,Qe=Math.floor,Ve=Math.trunc||function(t){var n=+t;return(n>0?Qe:Ke)(n)},Xe=function(t){var n=+t;return n!=n||0===n?0:Ve(n)},Ye=Xe,$e=Math.max,Je=Math.min,Ze=Xe,tr=Math.min,nr=function(t){return t>0?tr(Ze(t),9007199254740991):0},er=function(t){return nr(t.length)},rr=N,or=function(t,n){var e=Ye(t);return e<0?$e(e+n,0):Je(e,n)},ir=er,ur=function(t){return function(n,e,r){var o,i=rr(n),u=ir(i),c=or(r,u);if(t&&e!=e){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===e)return t||c||0;return!t&&-1}},cr={includes:ur(!0),indexOf:ur(!1)},fr=zt,ar=N,lr=cr.indexOf,sr=fe,pr=O([].push),yr=function(t,n){var e,r=ar(t),o=0,i=[];for(e in r)!fr(sr,e)&&fr(r,e)&&pr(i,e);for(;n.length>o;)fr(r,e=n[o++])&&(~lr(i,e)||pr(i,e));return i},br=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");We.f=Object.getOwnPropertyNames||function(t){return yr(t,br)};var vr={};vr.f=Object.getOwnPropertySymbols;var gr=V,dr=We,hr=vr,mr=xn,Sr=O([].concat),wr=gr("Reflect","ownKeys")||function(t){var n=dr.f(mr(t)),e=hr.f;return e?Sr(n,e(t)):n},Or=zt,jr=wr,Pr=o,Tr=jn,Er=i,Ar=B,xr=/#|\.prototype\./,Fr=function(t,n){var e=Ir[Mr(t)];return e==Dr||e!=Cr&&(Ar(n)?Er(n):!!n)},Mr=Fr.normalize=function(t){return String(t).replace(xr,".").toLowerCase()},Ir=Fr.data={},Cr=Fr.NATIVE="N",Dr=Fr.POLYFILL="P",Lr=Fr,_r=r,kr=o.f,zr=Bn,Nr=function(t,n,e,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:n;if(qe(e)&&He(e,i,r),r.global)o?t[n]=e:Ue(n,e);else{try{r.unsafe?t[n]&&(o=!0):delete t[n]}catch(t){}o?t[n]=e:Be.f(t,n,{value:e,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},Rr=Et,Gr=function(t,n,e){for(var r=jr(n),o=Tr.f,i=Pr.f,u=0;u9007199254740991)throw Ur("Maximum allowed index exceeded");return t},Co=function(t,n,e){var r=Wr(n);r in t?Kr.f(t,r,Qr(0,e)):t[r]=e},Do=function(t,n){return new(wo(t))(0===n?0:n)},Lo=function(t){return jo>=51||!Oo((function(){var n=[];return(n.constructor={})[Po]=function(){return{foo:1}},1!==n[t](Boolean).foo}))},_o=et,ko=$t("isConcatSpreadable"),zo=_o>=51||!Eo((function(){var t=[];return t[ko]=!1,t.concat()[0]!==t})),No=function(t){if(!xo(t))return!1;var n=t[ko];return void 0!==n?!!n:Ao(t)};To({target:"Array",proto:!0,arity:1,forced:!zo||!Lo("concat")},{concat:function(t){var n,e,r,o,i,u=Fo(this),c=Do(u,0),f=0;for(n=-1,r=arguments.length;n 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 && userAgent) { + match = userAgent.match(/Edge\/(\d+)/); + if (!match || match[1] >= 74) { + match = userAgent.match(/Chrome\/(\d+)/); + if (match) version = +match[1]; + } + } + + var engineV8Version = version; + + /* eslint-disable es/no-symbol -- required for testing */ + + var V8_VERSION$2 = engineV8Version; + var fails$7 = fails$b; + var global$8 = global$b; + + var $String$3 = global$8.String; + + // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing + var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$7(function () { + var symbol = Symbol(); + // 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$3(symbol) || !(Object(symbol) instanceof Symbol) || + // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances + !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41; + }); + + /* eslint-disable es/no-symbol -- required for testing */ + + var NATIVE_SYMBOL$1 = symbolConstructorDetection; + + var useSymbolAsUid = NATIVE_SYMBOL$1 + && !Symbol.sham + && typeof Symbol.iterator == 'symbol'; + + var getBuiltIn$2 = getBuiltIn$3; + var isCallable$9 = isCallable$c; + var isPrototypeOf = objectIsPrototypeOf; + var USE_SYMBOL_AS_UID$1 = useSymbolAsUid; + + var $Object$2 = Object; + + var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) { + return typeof it == 'symbol'; + } : function (it) { + var $Symbol = getBuiltIn$2('Symbol'); + return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it)); + }; + + var $String$2 = String; + + var tryToString$1 = function (argument) { + try { + return $String$2(argument); + } catch (error) { + return 'Object'; + } + }; + + var isCallable$8 = isCallable$c; + var tryToString = tryToString$1; + + var $TypeError$5 = TypeError; + + // `Assert: IsCallable(argument) is true` + var aCallable$1 = function (argument) { + if (isCallable$8(argument)) return argument; + throw $TypeError$5(tryToString(argument) + ' is not a function'); + }; + + var aCallable = aCallable$1; + var isNullOrUndefined = isNullOrUndefined$2; + + // `GetMethod` abstract operation + // https://tc39.es/ecma262/#sec-getmethod + var getMethod$1 = function (V, P) { + var func = V[P]; + return isNullOrUndefined(func) ? undefined : aCallable(func); + }; + + var call$2 = functionCall; + var isCallable$7 = isCallable$c; + var isObject$6 = isObject$7; + + var $TypeError$4 = TypeError; + + // `OrdinaryToPrimitive` abstract operation + // https://tc39.es/ecma262/#sec-ordinarytoprimitive + var ordinaryToPrimitive$1 = function (input, pref) { + var fn, val; + if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val; + if (isCallable$7(fn = input.valueOf) && !isObject$6(val = call$2(fn, input))) return val; + if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val; + throw $TypeError$4("Can't convert object to primitive value"); + }; + + var shared$3 = {exports: {}}; + + var global$7 = global$b; + + // eslint-disable-next-line es/no-object-defineproperty -- safe + var defineProperty$1 = Object.defineProperty; + + var defineGlobalProperty$3 = function (key, value) { + try { + defineProperty$1(global$7, key, { value: value, configurable: true, writable: true }); + } catch (error) { + global$7[key] = value; + } return value; + }; + + var global$6 = global$b; + var defineGlobalProperty$2 = defineGlobalProperty$3; + + var SHARED = '__core-js_shared__'; + var store$3 = global$6[SHARED] || defineGlobalProperty$2(SHARED, {}); + + var sharedStore = store$3; + + var store$2 = sharedStore; + + (shared$3.exports = function (key, value) { + return store$2[key] || (store$2[key] = value !== undefined ? value : {}); + })('versions', []).push({ + version: '3.30.2', + mode: 'global', + copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)', + license: 'https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE', + source: 'https://github.com/zloirock/core-js' + }); + + var sharedExports = shared$3.exports; + + var requireObjectCoercible = requireObjectCoercible$2; + + var $Object$1 = Object; + + // `ToObject` abstract operation + // https://tc39.es/ecma262/#sec-toobject + var toObject$2 = function (argument) { + return $Object$1(requireObjectCoercible(argument)); + }; + + var uncurryThis$6 = functionUncurryThis; + var toObject$1 = toObject$2; + + var hasOwnProperty = uncurryThis$6({}.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$1(it), key); + }; + + var uncurryThis$5 = functionUncurryThis; + + var id = 0; + var postfix = Math.random(); + var toString = uncurryThis$5(1.0.toString); + + var uid$2 = function (key) { + return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36); + }; + + var global$5 = global$b; + var shared$2 = sharedExports; + var hasOwn$6 = hasOwnProperty_1; + var uid$1 = uid$2; + var NATIVE_SYMBOL = symbolConstructorDetection; + var USE_SYMBOL_AS_UID = useSymbolAsUid; + + var Symbol$1 = global$5.Symbol; + var WellKnownSymbolsStore = shared$2('wks'); + var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1; + + var wellKnownSymbol$6 = function (name) { + if (!hasOwn$6(WellKnownSymbolsStore, name)) { + WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name) + ? Symbol$1[name] + : createWellKnownSymbol('Symbol.' + name); + } return WellKnownSymbolsStore[name]; + }; + + var call$1 = functionCall; + var isObject$5 = isObject$7; + var isSymbol$1 = isSymbol$2; + var getMethod = getMethod$1; + var ordinaryToPrimitive = ordinaryToPrimitive$1; + var wellKnownSymbol$5 = wellKnownSymbol$6; + + var $TypeError$3 = TypeError; + var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive'); + + // `ToPrimitive` abstract operation + // https://tc39.es/ecma262/#sec-toprimitive + var toPrimitive$1 = function (input, pref) { + if (!isObject$5(input) || isSymbol$1(input)) return input; + var exoticToPrim = getMethod(input, TO_PRIMITIVE); + var result; + if (exoticToPrim) { + if (pref === undefined) pref = 'default'; + result = call$1(exoticToPrim, input, pref); + if (!isObject$5(result) || isSymbol$1(result)) return result; + throw $TypeError$3("Can't convert object to primitive value"); + } + if (pref === undefined) pref = 'number'; + return ordinaryToPrimitive(input, pref); + }; + + var toPrimitive = toPrimitive$1; + var isSymbol = isSymbol$2; + + // `ToPropertyKey` abstract operation + // https://tc39.es/ecma262/#sec-topropertykey + var toPropertyKey$3 = function (argument) { + var key = toPrimitive(argument, 'string'); + return isSymbol(key) ? key : key + ''; + }; + + var global$4 = global$b; + var isObject$4 = isObject$7; + + var document$1 = global$4.document; + // typeof document.createElement is 'object' in old IE + var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement); + + var documentCreateElement = function (it) { + return EXISTS$1 ? document$1.createElement(it) : {}; + }; + + var DESCRIPTORS$6 = descriptors; + var fails$6 = fails$b; + var createElement = documentCreateElement; + + // Thanks to IE8 for its funny defineProperty + var ie8DomDefine = !DESCRIPTORS$6 && !fails$6(function () { + // eslint-disable-next-line es/no-object-defineproperty -- required for testing + return Object.defineProperty(createElement('div'), 'a', { + get: function () { return 7; } + }).a != 7; + }); + + var DESCRIPTORS$5 = descriptors; + var call = functionCall; + var propertyIsEnumerableModule = objectPropertyIsEnumerable; + var createPropertyDescriptor$2 = createPropertyDescriptor$3; + var toIndexedObject$2 = toIndexedObject$3; + var toPropertyKey$2 = toPropertyKey$3; + var hasOwn$5 = hasOwnProperty_1; + var IE8_DOM_DEFINE$1 = ie8DomDefine; + + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; + + // `Object.getOwnPropertyDescriptor` method + // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor + objectGetOwnPropertyDescriptor.f = DESCRIPTORS$5 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) { + O = toIndexedObject$2(O); + P = toPropertyKey$2(P); + if (IE8_DOM_DEFINE$1) try { + return $getOwnPropertyDescriptor$1(O, P); + } catch (error) { /* empty */ } + if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call(propertyIsEnumerableModule.f, O, P), O[P]); + }; + + var objectDefineProperty = {}; + + var DESCRIPTORS$4 = descriptors; + var fails$5 = fails$b; + + // V8 ~ Chrome 36- + // https://bugs.chromium.org/p/v8/issues/detail?id=3334 + var v8PrototypeDefineBug = DESCRIPTORS$4 && fails$5(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$3 = isObject$7; + + var $String$1 = String; + var $TypeError$2 = TypeError; + + // `Assert: Type(argument) is Object` + var anObject$2 = function (argument) { + if (isObject$3(argument)) return argument; + throw $TypeError$2($String$1(argument) + ' is not an object'); + }; + + var DESCRIPTORS$3 = descriptors; + var IE8_DOM_DEFINE = ie8DomDefine; + var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug; + var anObject$1 = anObject$2; + var toPropertyKey$1 = toPropertyKey$3; + + var $TypeError$1 = TypeError; + // eslint-disable-next-line es/no-object-defineproperty -- safe + var $defineProperty = Object.defineProperty; + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var $getOwnPropertyDescriptor = 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$3 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) { + anObject$1(O); + P = toPropertyKey$1(P); + anObject$1(Attributes); + if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) { + var current = $getOwnPropertyDescriptor(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(O, P, Attributes); + } : $defineProperty : function defineProperty(O, P, Attributes) { + anObject$1(O); + P = toPropertyKey$1(P); + anObject$1(Attributes); + if (IE8_DOM_DEFINE) try { + return $defineProperty(O, P, Attributes); + } catch (error) { /* empty */ } + if ('get' in Attributes || 'set' in Attributes) throw $TypeError$1('Accessors not supported'); + if ('value' in Attributes) O[P] = Attributes.value; + return O; + }; + + var DESCRIPTORS$2 = descriptors; + var definePropertyModule$3 = objectDefineProperty; + var createPropertyDescriptor$1 = createPropertyDescriptor$3; + + var createNonEnumerableProperty$2 = DESCRIPTORS$2 ? function (object, key, value) { + return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value)); + } : function (object, key, value) { + object[key] = value; + return object; + }; + + var makeBuiltIn$2 = {exports: {}}; + + var DESCRIPTORS$1 = descriptors; + var hasOwn$4 = hasOwnProperty_1; + + var FunctionPrototype = Function.prototype; + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var getDescriptor = DESCRIPTORS$1 && Object.getOwnPropertyDescriptor; + + var EXISTS = hasOwn$4(FunctionPrototype, 'name'); + // additional protection from minified / mangled / dropped function names + var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something'; + var CONFIGURABLE = EXISTS && (!DESCRIPTORS$1 || (DESCRIPTORS$1 && getDescriptor(FunctionPrototype, 'name').configurable)); + + var functionName = { + EXISTS: EXISTS, + PROPER: PROPER, + CONFIGURABLE: CONFIGURABLE + }; + + var uncurryThis$4 = functionUncurryThis; + var isCallable$6 = isCallable$c; + var store$1 = sharedStore; + + var functionToString = uncurryThis$4(Function.toString); + + // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper + if (!isCallable$6(store$1.inspectSource)) { + store$1.inspectSource = function (it) { + return functionToString(it); + }; + } + + var inspectSource$2 = store$1.inspectSource; + + var global$3 = global$b; + var isCallable$5 = isCallable$c; + + var WeakMap$1 = global$3.WeakMap; + + var weakMapBasicDetection = isCallable$5(WeakMap$1) && /native code/.test(String(WeakMap$1)); + + var shared$1 = sharedExports; + var uid = uid$2; + + var keys = shared$1('keys'); + + var sharedKey$1 = function (key) { + return keys[key] || (keys[key] = uid(key)); + }; + + var hiddenKeys$3 = {}; + + var NATIVE_WEAK_MAP = weakMapBasicDetection; + var global$2 = global$b; + var isObject$2 = isObject$7; + var createNonEnumerableProperty$1 = createNonEnumerableProperty$2; + var hasOwn$3 = hasOwnProperty_1; + var shared = sharedStore; + var sharedKey = sharedKey$1; + var hiddenKeys$2 = hiddenKeys$3; + + var OBJECT_ALREADY_INITIALIZED = 'Object already initialized'; + var TypeError$1 = global$2.TypeError; + var WeakMap = global$2.WeakMap; + var set, get, has; + + var enforce = function (it) { + return has(it) ? get(it) : set(it, {}); + }; + + var getterFor = function (TYPE) { + return function (it) { + var state; + if (!isObject$2(it) || (state = get(it)).type !== TYPE) { + throw TypeError$1('Incompatible receiver, ' + TYPE + ' required'); + } return state; + }; + }; + + if (NATIVE_WEAK_MAP || shared.state) { + var store = shared.state || (shared.state = new WeakMap()); + /* 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 = function (it, metadata) { + if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED); + metadata.facade = it; + store.set(it, metadata); + return metadata; + }; + get = function (it) { + return store.get(it) || {}; + }; + has = function (it) { + return store.has(it); + }; + } else { + var STATE = sharedKey('state'); + hiddenKeys$2[STATE] = true; + set = function (it, metadata) { + if (hasOwn$3(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED); + metadata.facade = it; + createNonEnumerableProperty$1(it, STATE, metadata); + return metadata; + }; + get = function (it) { + return hasOwn$3(it, STATE) ? it[STATE] : {}; + }; + has = function (it) { + return hasOwn$3(it, STATE); + }; + } + + var internalState = { + set: set, + get: get, + has: has, + enforce: enforce, + getterFor: getterFor + }; + + var uncurryThis$3 = functionUncurryThis; + var fails$4 = fails$b; + var isCallable$4 = isCallable$c; + var hasOwn$2 = hasOwnProperty_1; + var DESCRIPTORS = descriptors; + var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE; + var inspectSource$1 = inspectSource$2; + var InternalStateModule = internalState; + + var enforceInternalState = InternalStateModule.enforce; + var getInternalState = InternalStateModule.get; + var $String = String; + // eslint-disable-next-line es/no-object-defineproperty -- safe + var defineProperty = Object.defineProperty; + var stringSlice = uncurryThis$3(''.slice); + var replace = uncurryThis$3(''.replace); + var join = uncurryThis$3([].join); + + var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails$4(function () { + return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8; + }); + + var TEMPLATE = String(String).split('String'); + + var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) { + if (stringSlice($String(name), 0, 7) === 'Symbol(') { + name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']'; + } + if (options && options.getter) name = 'get ' + name; + if (options && options.setter) name = 'set ' + name; + if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) { + if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true }); + else value.name = name; + } + if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) { + defineProperty(value, 'length', { value: options.arity }); + } + try { + if (options && hasOwn$2(options, 'constructor') && options.constructor) { + if (DESCRIPTORS) defineProperty(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(value); + if (!hasOwn$2(state, 'source')) { + state.source = join(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$1(function toString() { + return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this); + }, 'toString'); + + var makeBuiltInExports = makeBuiltIn$2.exports; + + var isCallable$3 = isCallable$c; + var definePropertyModule$2 = objectDefineProperty; + var makeBuiltIn = makeBuiltInExports; + var defineGlobalProperty$1 = defineGlobalProperty$3; + + var defineBuiltIn$1 = function (O, key, value, options) { + if (!options) options = {}; + var simple = options.enumerable; + var name = options.name !== undefined ? options.name : key; + if (isCallable$3(value)) makeBuiltIn(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$2.f(O, key, { + value: value, + enumerable: false, + configurable: !options.nonConfigurable, + writable: !options.nonWritable + }); + } return O; + }; + + var objectGetOwnPropertyNames = {}; + + var ceil = Math.ceil; + var floor = 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 : ceil)(n); + }; + + var trunc = mathTrunc; + + // `ToIntegerOrInfinity` abstract operation + // https://tc39.es/ecma262/#sec-tointegerorinfinity + var toIntegerOrInfinity$2 = function (argument) { + var number = +argument; + // eslint-disable-next-line no-self-compare -- NaN check + return number !== number || number === 0 ? 0 : trunc(number); + }; + + var toIntegerOrInfinity$1 = toIntegerOrInfinity$2; + + var max = Math.max; + var min$1 = 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$1 = function (index, length) { + var integer = toIntegerOrInfinity$1(index); + return integer < 0 ? max(integer + length, 0) : min$1(integer, length); + }; + + var toIntegerOrInfinity = toIntegerOrInfinity$2; + + var min = Math.min; + + // `ToLength` abstract operation + // https://tc39.es/ecma262/#sec-tolength + var toLength$1 = function (argument) { + return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 + }; + + var toLength = toLength$1; + + // `LengthOfArrayLike` abstract operation + // https://tc39.es/ecma262/#sec-lengthofarraylike + var lengthOfArrayLike$2 = function (obj) { + return toLength(obj.length); + }; + + var toIndexedObject$1 = toIndexedObject$3; + var toAbsoluteIndex = toAbsoluteIndex$1; + var lengthOfArrayLike$1 = lengthOfArrayLike$2; + + // `Array.prototype.{ indexOf, includes }` methods implementation + var createMethod = function (IS_INCLUDES) { + return function ($this, el, fromIndex) { + var O = toIndexedObject$1($this); + var length = lengthOfArrayLike$1(O); + var index = toAbsoluteIndex(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(true), + // `Array.prototype.indexOf` method + // https://tc39.es/ecma262/#sec-array.prototype.indexof + indexOf: createMethod(false) + }; + + var uncurryThis$2 = functionUncurryThis; + var hasOwn$1 = hasOwnProperty_1; + var toIndexedObject = toIndexedObject$3; + var indexOf = arrayIncludes.indexOf; + var hiddenKeys$1 = hiddenKeys$3; + + var push = uncurryThis$2([].push); + + var objectKeysInternal = function (object, names) { + var O = toIndexedObject(object); + var i = 0; + var result = []; + var key; + for (key in O) !hasOwn$1(hiddenKeys$1, key) && hasOwn$1(O, key) && push(result, key); + // Don't enum bug & hidden keys + while (names.length > i) if (hasOwn$1(O, key = names[i++])) { + ~indexOf(result, key) || push(result, key); + } + return result; + }; + + // IE8- don't enum bug keys + var enumBugKeys$1 = [ + 'constructor', + 'hasOwnProperty', + 'isPrototypeOf', + 'propertyIsEnumerable', + 'toLocaleString', + 'toString', + 'valueOf' + ]; + + var internalObjectKeys = objectKeysInternal; + var enumBugKeys = enumBugKeys$1; + + var hiddenKeys = enumBugKeys.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(O, hiddenKeys); + }; + + var objectGetOwnPropertySymbols = {}; + + // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe + objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols; + + var getBuiltIn$1 = getBuiltIn$3; + var uncurryThis$1 = functionUncurryThis; + var getOwnPropertyNamesModule = objectGetOwnPropertyNames; + var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols; + var anObject = anObject$2; + + var concat = uncurryThis$1([].concat); + + // all object keys, includes non-enumerable and symbols + var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) { + var keys = getOwnPropertyNamesModule.f(anObject(it)); + var getOwnPropertySymbols = getOwnPropertySymbolsModule.f; + return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys; + }; + + var hasOwn = hasOwnProperty_1; + var ownKeys = ownKeys$1; + var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor; + var definePropertyModule$1 = objectDefineProperty; + + var copyConstructorProperties$1 = function (target, source, exceptions) { + var keys = ownKeys(source); + var defineProperty = definePropertyModule$1.f; + var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) { + defineProperty(target, key, getOwnPropertyDescriptor(source, key)); + } + } + }; + + var fails$3 = fails$b; + var isCallable$2 = isCallable$c; + + var replacement = /#|\.prototype\./; + + var isForced$1 = function (feature, detection) { + var value = data[normalize(feature)]; + return value == POLYFILL ? true + : value == NATIVE ? false + : isCallable$2(detection) ? fails$3(detection) + : !!detection; + }; + + var normalize = isForced$1.normalize = function (string) { + return String(string).replace(replacement, '.').toLowerCase(); + }; + + var data = isForced$1.data = {}; + var NATIVE = isForced$1.NATIVE = 'N'; + var POLYFILL = isForced$1.POLYFILL = 'P'; + + var isForced_1 = isForced$1; + + var global$1 = global$b; + var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f; + var createNonEnumerableProperty = createNonEnumerableProperty$2; + var defineBuiltIn = defineBuiltIn$1; + var defineGlobalProperty = defineGlobalProperty$3; + var copyConstructorProperties = copyConstructorProperties$1; + var isForced = 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 = global$1; + } else if (STATIC) { + target = global$1[TARGET] || defineGlobalProperty(TARGET, {}); + } else { + target = (global$1[TARGET] || {}).prototype; + } + if (target) for (key in source) { + sourceProperty = source[key]; + if (options.dontCallGetSet) { + descriptor = getOwnPropertyDescriptor(target, key); + targetProperty = descriptor && descriptor.value; + } else targetProperty = target[key]; + FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); + // contained in target + if (!FORCED && targetProperty !== undefined) { + if (typeof sourceProperty == typeof targetProperty) continue; + copyConstructorProperties(sourceProperty, targetProperty); + } + // add a flag to not completely full polyfills + if (options.sham || (targetProperty && targetProperty.sham)) { + createNonEnumerableProperty(sourceProperty, 'sham', true); + } + defineBuiltIn(target, key, sourceProperty, options); + } + }; + + var classof$2 = classofRaw$1; + + // `IsArray` abstract operation + // https://tc39.es/ecma262/#sec-isarray + // eslint-disable-next-line es/no-array-isarray -- safe + var isArray$2 = Array.isArray || function isArray(argument) { + return classof$2(argument) == 'Array'; + }; + + var $TypeError = TypeError; + var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991 + + var doesNotExceedSafeInteger$1 = function (it) { + if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded'); + return it; + }; + + var toPropertyKey = toPropertyKey$3; + var definePropertyModule = objectDefineProperty; + var createPropertyDescriptor = createPropertyDescriptor$3; + + var createProperty$1 = function (object, key, value) { + var propertyKey = toPropertyKey(key); + if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value)); + else object[propertyKey] = value; + }; + + var wellKnownSymbol$4 = wellKnownSymbol$6; + + var TO_STRING_TAG$1 = wellKnownSymbol$4('toStringTag'); + var test = {}; + + test[TO_STRING_TAG$1] = 'z'; + + var toStringTagSupport = String(test) === '[object z]'; + + var TO_STRING_TAG_SUPPORT = toStringTagSupport; + var isCallable$1 = isCallable$c; + var classofRaw = classofRaw$1; + var wellKnownSymbol$3 = wellKnownSymbol$6; + + var TO_STRING_TAG = wellKnownSymbol$3('toStringTag'); + var $Object = Object; + + // ES3 wrong here + var CORRECT_ARGUMENTS = classofRaw(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$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) { + var O, tag, result; + return it === undefined ? 'Undefined' : it === null ? 'Null' + // @@toStringTag case + : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag + // builtinTag case + : CORRECT_ARGUMENTS ? classofRaw(O) + // ES3 arguments fallback + : (result = classofRaw(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result; + }; + + var uncurryThis = functionUncurryThis; + var fails$2 = fails$b; + var isCallable = isCallable$c; + var classof = classof$1; + var getBuiltIn = getBuiltIn$3; + var inspectSource = inspectSource$2; + + var noop = function () { /* empty */ }; + var empty = []; + var construct = getBuiltIn('Reflect', 'construct'); + var constructorRegExp = /^\s*(?:class|function)\b/; + var exec = uncurryThis(constructorRegExp.exec); + var INCORRECT_TO_STRING = !constructorRegExp.exec(noop); + + var isConstructorModern = function isConstructor(argument) { + if (!isCallable(argument)) return false; + try { + construct(noop, empty, argument); + return true; + } catch (error) { + return false; + } + }; + + var isConstructorLegacy = function isConstructor(argument) { + if (!isCallable(argument)) return false; + switch (classof(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 || !!exec(constructorRegExp, inspectSource(argument)); + } catch (error) { + return true; + } + }; + + isConstructorLegacy.sham = true; + + // `IsConstructor` abstract operation + // https://tc39.es/ecma262/#sec-isconstructor + var isConstructor$1 = !construct || fails$2(function () { + var called; + return isConstructorModern(isConstructorModern.call) + || !isConstructorModern(Object) + || !isConstructorModern(function () { called = true; }) + || called; + }) ? isConstructorLegacy : isConstructorModern; + + var isArray$1 = isArray$2; + var isConstructor = isConstructor$1; + var isObject$1 = isObject$7; + var wellKnownSymbol$2 = wellKnownSymbol$6; + + var SPECIES$1 = wellKnownSymbol$2('species'); + var $Array = Array; + + // a part of `ArraySpeciesCreate` abstract operation + // https://tc39.es/ecma262/#sec-arrayspeciescreate + var arraySpeciesConstructor$1 = function (originalArray) { + var C; + if (isArray$1(originalArray)) { + C = originalArray.constructor; + // cross-realm fallback + if (isConstructor(C) && (C === $Array || isArray$1(C.prototype))) C = undefined; + else if (isObject$1(C)) { + C = C[SPECIES$1]; + if (C === null) C = undefined; + } + } return C === undefined ? $Array : C; + }; + + var arraySpeciesConstructor = arraySpeciesConstructor$1; + + // `ArraySpeciesCreate` abstract operation + // https://tc39.es/ecma262/#sec-arrayspeciescreate + var arraySpeciesCreate$1 = function (originalArray, length) { + return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length); + }; + + var fails$1 = fails$b; + var wellKnownSymbol$1 = wellKnownSymbol$6; + var V8_VERSION$1 = engineV8Version; + + var SPECIES = wellKnownSymbol$1('species'); + + var arrayMethodHasSpeciesSupport$1 = function (METHOD_NAME) { + // We can't use this feature detection in V8 since it causes + // deoptimization and serious performance degradation + // https://github.com/zloirock/core-js/issues/677 + return V8_VERSION$1 >= 51 || !fails$1(function () { + var array = []; + var constructor = array.constructor = {}; + constructor[SPECIES] = function () { + return { foo: 1 }; + }; + return array[METHOD_NAME](Boolean).foo !== 1; + }); + }; + + var $ = _export; + var fails = fails$b; + var isArray = isArray$2; + var isObject = isObject$7; + var toObject = toObject$2; + var lengthOfArrayLike = lengthOfArrayLike$2; + var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1; + var createProperty = createProperty$1; + var arraySpeciesCreate = arraySpeciesCreate$1; + var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1; + var wellKnownSymbol = wellKnownSymbol$6; + var V8_VERSION = engineV8Version; + + var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable'); + + // We can't use this feature detection in V8 since it causes + // deoptimization and serious performance degradation + // https://github.com/zloirock/core-js/issues/679 + var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () { + var array = []; + array[IS_CONCAT_SPREADABLE] = false; + return array.concat()[0] !== array; + }); + + var isConcatSpreadable = function (O) { + if (!isObject(O)) return false; + var spreadable = O[IS_CONCAT_SPREADABLE]; + return spreadable !== undefined ? !!spreadable : isArray(O); + }; + + var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat'); + + // `Array.prototype.concat` method + // https://tc39.es/ecma262/#sec-array.prototype.concat + // with adding support of @@isConcatSpreadable and @@species + $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, { + // eslint-disable-next-line no-unused-vars -- required for `.length` + concat: function concat(arg) { + var O = toObject(this); + var A = arraySpeciesCreate(O, 0); + var n = 0; + var i, k, length, len, E; + for (i = -1, length = arguments.length; i < length; i++) { + E = i === -1 ? O : arguments[i]; + if (isConcatSpreadable(E)) { + len = lengthOfArrayLike(E); + doesNotExceedSafeInteger(n + len); + for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]); + } else { + doesNotExceedSafeInteger(n + 1); + createProperty(A, n++, E); + } + } + A.length = n; + return A; + } + }); + + /** + * Multiple Select hu-HU translation + * Author: Péter Báthory + */ + + $$1.fn.multipleSelect.locales['hu-HU'] = { + formatSelectAll: function formatSelectAll() { + return '[Összes kiválasztása]'; + }, + formatAllSelected: function formatAllSelected() { + return 'Összes kiválasztva'; + }, + formatCountSelected: function formatCountSelected(count, total) { + return "".concat(count, " / ").concat(total, " kiv\xE1lasztva"); + }, + formatNoMatchesFound: function formatNoMatchesFound() { + return 'Nincs találat'; + } + }; + $$1.extend($$1.fn.multipleSelect.defaults, $$1.fn.multipleSelect.locales['hu-HU']); + +})); diff --git a/dist/locale/multiple-select-hu-HU.min.js b/dist/locale/multiple-select-hu-HU.min.js new file mode 100644 index 00000000..5bfda2a0 --- /dev/null +++ b/dist/locale/multiple-select-hu-HU.min.js @@ -0,0 +1,10 @@ +/** + * multiple-select - Multiple select is a jQuery plugin to select multiple elements with checkboxes :). + * + * @version v1.6.0 + * @homepage http://multiple-select.wenzhixin.net.cn + * @author wenzhixin (http://wenzhixin.net.cn/) + * @license MIT + */ + +!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=function(t){return t&&t.Math==Math&&t},r=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n&&n)||function(){return this}()||n||Function("return this")(),o={},i=function(t){try{return!!t()}catch(t){return!0}},u=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),a=c,f=Function.prototype.call,l=a?f.bind(f):function(){return f.apply(f,arguments)},s={},p={}.propertyIsEnumerable,y=Object.getOwnPropertyDescriptor,v=y&&!p.call({1:2},1);s.f=v?function(t){var n=y(this,t);return!!n&&n.enumerable}:p;var b,g,h=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},d=c,m=Function.prototype,S=m.call,w=d&&m.bind.bind(S,S),O=d?w:function(t){return function(){return S.apply(t,arguments)}},j=O,P=j({}.toString),E=j("".slice),T=function(t){return E(P(t),8,-1)},A=i,x=T,M=Object,F=O("".split),z=A((function(){return!M("z").propertyIsEnumerable(0)}))?function(t){return"String"==x(t)?F(t,""):M(t)}:M,I=function(t){return null==t},C=I,D=TypeError,k=function(t){if(C(t))throw D("Can't call method on "+t);return t},L=z,N=k,_=function(t){return L(N(t))},R="object"==typeof document&&document.all,G={all:R,IS_HTMLDDA:void 0===R&&void 0!==R},H=G.all,U=G.IS_HTMLDDA?function(t){return"function"==typeof t||t===H}:function(t){return"function"==typeof t},q=U,B=G.all,W=G.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:q(t)||t===B}:function(t){return"object"==typeof t?null!==t:q(t)},K=r,Q=U,V=function(t,n){return arguments.length<2?(e=K[t],Q(e)?e:void 0):K[t]&&K[t][n];var e},X=O({}.isPrototypeOf),Y=r,$="undefined"!=typeof navigator&&String(navigator.userAgent)||"",J=Y.process,Z=Y.Deno,tt=J&&J.versions||Z&&Z.version,nt=tt&&tt.v8;nt&&(g=(b=nt.split("."))[0]>0&&b[0]<4?1:+(b[0]+b[1])),!g&&$&&(!(b=$.match(/Edge\/(\d+)/))||b[1]>=74)&&(b=$.match(/Chrome\/(\d+)/))&&(g=+b[1]);var et=g,rt=et,ot=i,it=r.String,ut=!!Object.getOwnPropertySymbols&&!ot((function(){var t=Symbol();return!it(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&rt&&rt<41})),ct=ut&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,at=V,ft=U,lt=X,st=Object,pt=ct?function(t){return"symbol"==typeof t}:function(t){var n=at("Symbol");return ft(n)&<(n.prototype,st(t))},yt=String,vt=U,bt=function(t){try{return yt(t)}catch(t){return"Object"}},gt=TypeError,ht=function(t){if(vt(t))return t;throw gt(bt(t)+" is not a function")},dt=I,mt=l,St=U,wt=W,Ot=TypeError,jt={exports:{}},Pt=r,Et=Object.defineProperty,Tt=function(t,n){try{Et(Pt,t,{value:n,configurable:!0,writable:!0})}catch(e){Pt[t]=n}return n},At=Tt,xt="__core-js_shared__",Mt=r[xt]||At(xt,{}),Ft=Mt;(jt.exports=function(t,n){return Ft[t]||(Ft[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.30.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var zt=jt.exports,It=k,Ct=Object,Dt=function(t){return Ct(It(t))},kt=Dt,Lt=O({}.hasOwnProperty),Nt=Object.hasOwn||function(t,n){return Lt(kt(t),n)},_t=O,Rt=0,Gt=Math.random(),Ht=_t(1..toString),Ut=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Ht(++Rt+Gt,36)},qt=zt,Bt=Nt,Wt=Ut,Kt=ut,Qt=ct,Vt=r.Symbol,Xt=qt("wks"),Yt=Qt?Vt.for||Vt:Vt&&Vt.withoutSetter||Wt,$t=function(t){return Bt(Xt,t)||(Xt[t]=Kt&&Bt(Vt,t)?Vt[t]:Yt("Symbol."+t)),Xt[t]},Jt=l,Zt=W,tn=pt,nn=function(t,n){var e=t[n];return dt(e)?void 0:ht(e)},en=function(t,n){var e,r;if("string"===n&&St(e=t.toString)&&!wt(r=mt(e,t)))return r;if(St(e=t.valueOf)&&!wt(r=mt(e,t)))return r;if("string"!==n&&St(e=t.toString)&&!wt(r=mt(e,t)))return r;throw Ot("Can't convert object to primitive value")},rn=TypeError,on=$t("toPrimitive"),un=function(t,n){if(!Zt(t)||tn(t))return t;var e,r=nn(t,on);if(r){if(void 0===n&&(n="default"),e=Jt(r,t,n),!Zt(e)||tn(e))return e;throw rn("Can't convert object to primitive value")}return void 0===n&&(n="number"),en(t,n)},cn=pt,an=function(t){var n=un(t,"string");return cn(n)?n:n+""},fn=W,ln=r.document,sn=fn(ln)&&fn(ln.createElement),pn=function(t){return sn?ln.createElement(t):{}},yn=!u&&!i((function(){return 7!=Object.defineProperty(pn("div"),"a",{get:function(){return 7}}).a})),vn=u,bn=l,gn=s,hn=h,dn=_,mn=an,Sn=Nt,wn=yn,On=Object.getOwnPropertyDescriptor;o.f=vn?On:function(t,n){if(t=dn(t),n=mn(n),wn)try{return On(t,n)}catch(t){}if(Sn(t,n))return hn(!bn(gn.f,t,n),t[n])};var jn={},Pn=u&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),En=W,Tn=String,An=TypeError,xn=function(t){if(En(t))return t;throw An(Tn(t)+" is not an object")},Mn=u,Fn=yn,zn=Pn,In=xn,Cn=an,Dn=TypeError,kn=Object.defineProperty,Ln=Object.getOwnPropertyDescriptor,Nn="enumerable",_n="configurable",Rn="writable";jn.f=Mn?zn?function(t,n,e){if(In(t),n=Cn(n),In(e),"function"==typeof t&&"prototype"===n&&"value"in e&&Rn in e&&!e[Rn]){var r=Ln(t,n);r&&r[Rn]&&(t[n]=e.value,e={configurable:_n in e?e[_n]:r[_n],enumerable:Nn in e?e[Nn]:r[Nn],writable:!1})}return kn(t,n,e)}:kn:function(t,n,e){if(In(t),n=Cn(n),In(e),Fn)try{return kn(t,n,e)}catch(t){}if("get"in e||"set"in e)throw Dn("Accessors not supported");return"value"in e&&(t[n]=e.value),t};var Gn=jn,Hn=h,Un=u?function(t,n,e){return Gn.f(t,n,Hn(1,e))}:function(t,n,e){return t[n]=e,t},qn={exports:{}},Bn=u,Wn=Nt,Kn=Function.prototype,Qn=Bn&&Object.getOwnPropertyDescriptor,Vn=Wn(Kn,"name"),Xn={EXISTS:Vn,PROPER:Vn&&"something"===function(){}.name,CONFIGURABLE:Vn&&(!Bn||Bn&&Qn(Kn,"name").configurable)},Yn=U,$n=Mt,Jn=O(Function.toString);Yn($n.inspectSource)||($n.inspectSource=function(t){return Jn(t)});var Zn,te,ne,ee=$n.inspectSource,re=U,oe=r.WeakMap,ie=re(oe)&&/native code/.test(String(oe)),ue=Ut,ce=zt("keys"),ae={},fe=ie,le=r,se=W,pe=Un,ye=Nt,ve=Mt,be=function(t){return ce[t]||(ce[t]=ue(t))},ge=ae,he="Object already initialized",de=le.TypeError,me=le.WeakMap;if(fe||ve.state){var Se=ve.state||(ve.state=new me);Se.get=Se.get,Se.has=Se.has,Se.set=Se.set,Zn=function(t,n){if(Se.has(t))throw de(he);return n.facade=t,Se.set(t,n),n},te=function(t){return Se.get(t)||{}},ne=function(t){return Se.has(t)}}else{var we=be("state");ge[we]=!0,Zn=function(t,n){if(ye(t,we))throw de(he);return n.facade=t,pe(t,we,n),n},te=function(t){return ye(t,we)?t[we]:{}},ne=function(t){return ye(t,we)}}var Oe={set:Zn,get:te,has:ne,enforce:function(t){return ne(t)?te(t):Zn(t,{})},getterFor:function(t){return function(n){var e;if(!se(n)||(e=te(n)).type!==t)throw de("Incompatible receiver, "+t+" required");return e}}},je=O,Pe=i,Ee=U,Te=Nt,Ae=u,xe=Xn.CONFIGURABLE,Me=ee,Fe=Oe.enforce,ze=Oe.get,Ie=String,Ce=Object.defineProperty,De=je("".slice),ke=je("".replace),Le=je([].join),Ne=Ae&&!Pe((function(){return 8!==Ce((function(){}),"length",{value:8}).length})),_e=String(String).split("String"),Re=qn.exports=function(t,n,e){"Symbol("===De(Ie(n),0,7)&&(n="["+ke(Ie(n),/^Symbol\(([^)]*)\)/,"$1")+"]"),e&&e.getter&&(n="get "+n),e&&e.setter&&(n="set "+n),(!Te(t,"name")||xe&&t.name!==n)&&(Ae?Ce(t,"name",{value:n,configurable:!0}):t.name=n),Ne&&e&&Te(e,"arity")&&t.length!==e.arity&&Ce(t,"length",{value:e.arity});try{e&&Te(e,"constructor")&&e.constructor?Ae&&Ce(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=Fe(t);return Te(r,"source")||(r.source=Le(_e,"string"==typeof n?n:"")),t};Function.prototype.toString=Re((function(){return Ee(this)&&ze(this).source||Me(this)}),"toString");var Ge=qn.exports,He=U,Ue=jn,qe=Ge,Be=Tt,We={},Ke=Math.ceil,Qe=Math.floor,Ve=Math.trunc||function(t){var n=+t;return(n>0?Qe:Ke)(n)},Xe=function(t){var n=+t;return n!=n||0===n?0:Ve(n)},Ye=Xe,$e=Math.max,Je=Math.min,Ze=Xe,tr=Math.min,nr=function(t){return t>0?tr(Ze(t),9007199254740991):0},er=function(t){return nr(t.length)},rr=_,or=function(t,n){var e=Ye(t);return e<0?$e(e+n,0):Je(e,n)},ir=er,ur=function(t){return function(n,e,r){var o,i=rr(n),u=ir(i),c=or(r,u);if(t&&e!=e){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===e)return t||c||0;return!t&&-1}},cr={includes:ur(!0),indexOf:ur(!1)},ar=Nt,fr=_,lr=cr.indexOf,sr=ae,pr=O([].push),yr=function(t,n){var e,r=fr(t),o=0,i=[];for(e in r)!ar(sr,e)&&ar(r,e)&&pr(i,e);for(;n.length>o;)ar(r,e=n[o++])&&(~lr(i,e)||pr(i,e));return i},vr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");We.f=Object.getOwnPropertyNames||function(t){return yr(t,vr)};var br={};br.f=Object.getOwnPropertySymbols;var gr=V,hr=We,dr=br,mr=xn,Sr=O([].concat),wr=gr("Reflect","ownKeys")||function(t){var n=hr.f(mr(t)),e=dr.f;return e?Sr(n,e(t)):n},Or=Nt,jr=wr,Pr=o,Er=jn,Tr=i,Ar=U,xr=/#|\.prototype\./,Mr=function(t,n){var e=zr[Fr(t)];return e==Cr||e!=Ir&&(Ar(n)?Tr(n):!!n)},Fr=Mr.normalize=function(t){return String(t).replace(xr,".").toLowerCase()},zr=Mr.data={},Ir=Mr.NATIVE="N",Cr=Mr.POLYFILL="P",Dr=Mr,kr=r,Lr=o.f,Nr=Un,_r=function(t,n,e,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:n;if(He(e)&&qe(e,i,r),r.global)o?t[n]=e:Be(n,e);else{try{r.unsafe?t[n]&&(o=!0):delete t[n]}catch(t){}o?t[n]=e:Ue.f(t,n,{value:e,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},Rr=Tt,Gr=function(t,n,e){for(var r=jr(n),o=Er.f,i=Pr.f,u=0;u9007199254740991)throw Br("Maximum allowed index exceeded");return t},Io=function(t,n,e){var r=Wr(n);r in t?Kr.f(t,r,Qr(0,e)):t[r]=e},Co=function(t,n){return new(wo(t))(0===n?0:n)},Do=function(t){return jo>=51||!Oo((function(){var n=[];return(n.constructor={})[Po]=function(){return{foo:1}},1!==n[t](Boolean).foo}))},ko=et,Lo=$t("isConcatSpreadable"),No=ko>=51||!To((function(){var t=[];return t[Lo]=!1,t.concat()[0]!==t})),_o=function(t){if(!xo(t))return!1;var n=t[Lo];return void 0!==n?!!n:Ao(t)};Eo({target:"Array",proto:!0,arity:1,forced:!No||!Do("concat")},{concat:function(t){var n,e,r,o,i,u=Mo(this),c=Co(u,0),a=0;for(n=-1,r=arguments.length;n 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 && userAgent) { + match = userAgent.match(/Edge\/(\d+)/); + if (!match || match[1] >= 74) { + match = userAgent.match(/Chrome\/(\d+)/); + if (match) version = +match[1]; + } + } + + var engineV8Version = version; + + /* eslint-disable es/no-symbol -- required for testing */ + + var V8_VERSION$2 = engineV8Version; + var fails$7 = fails$b; + var global$8 = global$b; + + var $String$3 = global$8.String; + + // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing + var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$7(function () { + var symbol = Symbol(); + // 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$3(symbol) || !(Object(symbol) instanceof Symbol) || + // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances + !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41; + }); + + /* eslint-disable es/no-symbol -- required for testing */ + + var NATIVE_SYMBOL$1 = symbolConstructorDetection; + + var useSymbolAsUid = NATIVE_SYMBOL$1 + && !Symbol.sham + && typeof Symbol.iterator == 'symbol'; + + var getBuiltIn$2 = getBuiltIn$3; + var isCallable$9 = isCallable$c; + var isPrototypeOf = objectIsPrototypeOf; + var USE_SYMBOL_AS_UID$1 = useSymbolAsUid; + + var $Object$2 = Object; + + var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) { + return typeof it == 'symbol'; + } : function (it) { + var $Symbol = getBuiltIn$2('Symbol'); + return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it)); + }; + + var $String$2 = String; + + var tryToString$1 = function (argument) { + try { + return $String$2(argument); + } catch (error) { + return 'Object'; + } + }; + + var isCallable$8 = isCallable$c; + var tryToString = tryToString$1; + + var $TypeError$5 = TypeError; + + // `Assert: IsCallable(argument) is true` + var aCallable$1 = function (argument) { + if (isCallable$8(argument)) return argument; + throw $TypeError$5(tryToString(argument) + ' is not a function'); + }; + + var aCallable = aCallable$1; + var isNullOrUndefined = isNullOrUndefined$2; + + // `GetMethod` abstract operation + // https://tc39.es/ecma262/#sec-getmethod + var getMethod$1 = function (V, P) { + var func = V[P]; + return isNullOrUndefined(func) ? undefined : aCallable(func); + }; + + var call$2 = functionCall; + var isCallable$7 = isCallable$c; + var isObject$6 = isObject$7; + + var $TypeError$4 = TypeError; + + // `OrdinaryToPrimitive` abstract operation + // https://tc39.es/ecma262/#sec-ordinarytoprimitive + var ordinaryToPrimitive$1 = function (input, pref) { + var fn, val; + if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val; + if (isCallable$7(fn = input.valueOf) && !isObject$6(val = call$2(fn, input))) return val; + if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val; + throw $TypeError$4("Can't convert object to primitive value"); + }; + + var shared$3 = {exports: {}}; + + var global$7 = global$b; + + // eslint-disable-next-line es/no-object-defineproperty -- safe + var defineProperty$1 = Object.defineProperty; + + var defineGlobalProperty$3 = function (key, value) { + try { + defineProperty$1(global$7, key, { value: value, configurable: true, writable: true }); + } catch (error) { + global$7[key] = value; + } return value; + }; + + var global$6 = global$b; + var defineGlobalProperty$2 = defineGlobalProperty$3; + + var SHARED = '__core-js_shared__'; + var store$3 = global$6[SHARED] || defineGlobalProperty$2(SHARED, {}); + + var sharedStore = store$3; + + var store$2 = sharedStore; + + (shared$3.exports = function (key, value) { + return store$2[key] || (store$2[key] = value !== undefined ? value : {}); + })('versions', []).push({ + version: '3.30.2', + mode: 'global', + copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)', + license: 'https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE', + source: 'https://github.com/zloirock/core-js' + }); + + var sharedExports = shared$3.exports; + + var requireObjectCoercible = requireObjectCoercible$2; + + var $Object$1 = Object; + + // `ToObject` abstract operation + // https://tc39.es/ecma262/#sec-toobject + var toObject$2 = function (argument) { + return $Object$1(requireObjectCoercible(argument)); + }; + + var uncurryThis$6 = functionUncurryThis; + var toObject$1 = toObject$2; + + var hasOwnProperty = uncurryThis$6({}.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$1(it), key); + }; + + var uncurryThis$5 = functionUncurryThis; + + var id = 0; + var postfix = Math.random(); + var toString = uncurryThis$5(1.0.toString); + + var uid$2 = function (key) { + return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36); + }; + + var global$5 = global$b; + var shared$2 = sharedExports; + var hasOwn$6 = hasOwnProperty_1; + var uid$1 = uid$2; + var NATIVE_SYMBOL = symbolConstructorDetection; + var USE_SYMBOL_AS_UID = useSymbolAsUid; + + var Symbol$1 = global$5.Symbol; + var WellKnownSymbolsStore = shared$2('wks'); + var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1; + + var wellKnownSymbol$6 = function (name) { + if (!hasOwn$6(WellKnownSymbolsStore, name)) { + WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name) + ? Symbol$1[name] + : createWellKnownSymbol('Symbol.' + name); + } return WellKnownSymbolsStore[name]; + }; + + var call$1 = functionCall; + var isObject$5 = isObject$7; + var isSymbol$1 = isSymbol$2; + var getMethod = getMethod$1; + var ordinaryToPrimitive = ordinaryToPrimitive$1; + var wellKnownSymbol$5 = wellKnownSymbol$6; + + var $TypeError$3 = TypeError; + var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive'); + + // `ToPrimitive` abstract operation + // https://tc39.es/ecma262/#sec-toprimitive + var toPrimitive$1 = function (input, pref) { + if (!isObject$5(input) || isSymbol$1(input)) return input; + var exoticToPrim = getMethod(input, TO_PRIMITIVE); + var result; + if (exoticToPrim) { + if (pref === undefined) pref = 'default'; + result = call$1(exoticToPrim, input, pref); + if (!isObject$5(result) || isSymbol$1(result)) return result; + throw $TypeError$3("Can't convert object to primitive value"); + } + if (pref === undefined) pref = 'number'; + return ordinaryToPrimitive(input, pref); + }; + + var toPrimitive = toPrimitive$1; + var isSymbol = isSymbol$2; + + // `ToPropertyKey` abstract operation + // https://tc39.es/ecma262/#sec-topropertykey + var toPropertyKey$3 = function (argument) { + var key = toPrimitive(argument, 'string'); + return isSymbol(key) ? key : key + ''; + }; + + var global$4 = global$b; + var isObject$4 = isObject$7; + + var document$1 = global$4.document; + // typeof document.createElement is 'object' in old IE + var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement); + + var documentCreateElement = function (it) { + return EXISTS$1 ? document$1.createElement(it) : {}; + }; + + var DESCRIPTORS$6 = descriptors; + var fails$6 = fails$b; + var createElement = documentCreateElement; + + // Thanks to IE8 for its funny defineProperty + var ie8DomDefine = !DESCRIPTORS$6 && !fails$6(function () { + // eslint-disable-next-line es/no-object-defineproperty -- required for testing + return Object.defineProperty(createElement('div'), 'a', { + get: function () { return 7; } + }).a != 7; + }); + + var DESCRIPTORS$5 = descriptors; + var call = functionCall; + var propertyIsEnumerableModule = objectPropertyIsEnumerable; + var createPropertyDescriptor$2 = createPropertyDescriptor$3; + var toIndexedObject$2 = toIndexedObject$3; + var toPropertyKey$2 = toPropertyKey$3; + var hasOwn$5 = hasOwnProperty_1; + var IE8_DOM_DEFINE$1 = ie8DomDefine; + + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; + + // `Object.getOwnPropertyDescriptor` method + // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor + objectGetOwnPropertyDescriptor.f = DESCRIPTORS$5 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) { + O = toIndexedObject$2(O); + P = toPropertyKey$2(P); + if (IE8_DOM_DEFINE$1) try { + return $getOwnPropertyDescriptor$1(O, P); + } catch (error) { /* empty */ } + if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call(propertyIsEnumerableModule.f, O, P), O[P]); + }; + + var objectDefineProperty = {}; + + var DESCRIPTORS$4 = descriptors; + var fails$5 = fails$b; + + // V8 ~ Chrome 36- + // https://bugs.chromium.org/p/v8/issues/detail?id=3334 + var v8PrototypeDefineBug = DESCRIPTORS$4 && fails$5(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$3 = isObject$7; + + var $String$1 = String; + var $TypeError$2 = TypeError; + + // `Assert: Type(argument) is Object` + var anObject$2 = function (argument) { + if (isObject$3(argument)) return argument; + throw $TypeError$2($String$1(argument) + ' is not an object'); + }; + + var DESCRIPTORS$3 = descriptors; + var IE8_DOM_DEFINE = ie8DomDefine; + var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug; + var anObject$1 = anObject$2; + var toPropertyKey$1 = toPropertyKey$3; + + var $TypeError$1 = TypeError; + // eslint-disable-next-line es/no-object-defineproperty -- safe + var $defineProperty = Object.defineProperty; + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var $getOwnPropertyDescriptor = 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$3 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) { + anObject$1(O); + P = toPropertyKey$1(P); + anObject$1(Attributes); + if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) { + var current = $getOwnPropertyDescriptor(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(O, P, Attributes); + } : $defineProperty : function defineProperty(O, P, Attributes) { + anObject$1(O); + P = toPropertyKey$1(P); + anObject$1(Attributes); + if (IE8_DOM_DEFINE) try { + return $defineProperty(O, P, Attributes); + } catch (error) { /* empty */ } + if ('get' in Attributes || 'set' in Attributes) throw $TypeError$1('Accessors not supported'); + if ('value' in Attributes) O[P] = Attributes.value; + return O; + }; + + var DESCRIPTORS$2 = descriptors; + var definePropertyModule$3 = objectDefineProperty; + var createPropertyDescriptor$1 = createPropertyDescriptor$3; + + var createNonEnumerableProperty$2 = DESCRIPTORS$2 ? function (object, key, value) { + return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value)); + } : function (object, key, value) { + object[key] = value; + return object; + }; + + var makeBuiltIn$2 = {exports: {}}; + + var DESCRIPTORS$1 = descriptors; + var hasOwn$4 = hasOwnProperty_1; + + var FunctionPrototype = Function.prototype; + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var getDescriptor = DESCRIPTORS$1 && Object.getOwnPropertyDescriptor; + + var EXISTS = hasOwn$4(FunctionPrototype, 'name'); + // additional protection from minified / mangled / dropped function names + var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something'; + var CONFIGURABLE = EXISTS && (!DESCRIPTORS$1 || (DESCRIPTORS$1 && getDescriptor(FunctionPrototype, 'name').configurable)); + + var functionName = { + EXISTS: EXISTS, + PROPER: PROPER, + CONFIGURABLE: CONFIGURABLE + }; + + var uncurryThis$4 = functionUncurryThis; + var isCallable$6 = isCallable$c; + var store$1 = sharedStore; + + var functionToString = uncurryThis$4(Function.toString); + + // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper + if (!isCallable$6(store$1.inspectSource)) { + store$1.inspectSource = function (it) { + return functionToString(it); + }; + } + + var inspectSource$2 = store$1.inspectSource; + + var global$3 = global$b; + var isCallable$5 = isCallable$c; + + var WeakMap$1 = global$3.WeakMap; + + var weakMapBasicDetection = isCallable$5(WeakMap$1) && /native code/.test(String(WeakMap$1)); + + var shared$1 = sharedExports; + var uid = uid$2; + + var keys = shared$1('keys'); + + var sharedKey$1 = function (key) { + return keys[key] || (keys[key] = uid(key)); + }; + + var hiddenKeys$3 = {}; + + var NATIVE_WEAK_MAP = weakMapBasicDetection; + var global$2 = global$b; + var isObject$2 = isObject$7; + var createNonEnumerableProperty$1 = createNonEnumerableProperty$2; + var hasOwn$3 = hasOwnProperty_1; + var shared = sharedStore; + var sharedKey = sharedKey$1; + var hiddenKeys$2 = hiddenKeys$3; + + var OBJECT_ALREADY_INITIALIZED = 'Object already initialized'; + var TypeError$1 = global$2.TypeError; + var WeakMap = global$2.WeakMap; + var set, get, has; + + var enforce = function (it) { + return has(it) ? get(it) : set(it, {}); + }; + + var getterFor = function (TYPE) { + return function (it) { + var state; + if (!isObject$2(it) || (state = get(it)).type !== TYPE) { + throw TypeError$1('Incompatible receiver, ' + TYPE + ' required'); + } return state; + }; + }; + + if (NATIVE_WEAK_MAP || shared.state) { + var store = shared.state || (shared.state = new WeakMap()); + /* 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 = function (it, metadata) { + if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED); + metadata.facade = it; + store.set(it, metadata); + return metadata; + }; + get = function (it) { + return store.get(it) || {}; + }; + has = function (it) { + return store.has(it); + }; + } else { + var STATE = sharedKey('state'); + hiddenKeys$2[STATE] = true; + set = function (it, metadata) { + if (hasOwn$3(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED); + metadata.facade = it; + createNonEnumerableProperty$1(it, STATE, metadata); + return metadata; + }; + get = function (it) { + return hasOwn$3(it, STATE) ? it[STATE] : {}; + }; + has = function (it) { + return hasOwn$3(it, STATE); + }; + } + + var internalState = { + set: set, + get: get, + has: has, + enforce: enforce, + getterFor: getterFor + }; + + var uncurryThis$3 = functionUncurryThis; + var fails$4 = fails$b; + var isCallable$4 = isCallable$c; + var hasOwn$2 = hasOwnProperty_1; + var DESCRIPTORS = descriptors; + var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE; + var inspectSource$1 = inspectSource$2; + var InternalStateModule = internalState; + + var enforceInternalState = InternalStateModule.enforce; + var getInternalState = InternalStateModule.get; + var $String = String; + // eslint-disable-next-line es/no-object-defineproperty -- safe + var defineProperty = Object.defineProperty; + var stringSlice = uncurryThis$3(''.slice); + var replace = uncurryThis$3(''.replace); + var join = uncurryThis$3([].join); + + var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails$4(function () { + return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8; + }); + + var TEMPLATE = String(String).split('String'); + + var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) { + if (stringSlice($String(name), 0, 7) === 'Symbol(') { + name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']'; + } + if (options && options.getter) name = 'get ' + name; + if (options && options.setter) name = 'set ' + name; + if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) { + if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true }); + else value.name = name; + } + if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) { + defineProperty(value, 'length', { value: options.arity }); + } + try { + if (options && hasOwn$2(options, 'constructor') && options.constructor) { + if (DESCRIPTORS) defineProperty(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(value); + if (!hasOwn$2(state, 'source')) { + state.source = join(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$1(function toString() { + return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this); + }, 'toString'); + + var makeBuiltInExports = makeBuiltIn$2.exports; + + var isCallable$3 = isCallable$c; + var definePropertyModule$2 = objectDefineProperty; + var makeBuiltIn = makeBuiltInExports; + var defineGlobalProperty$1 = defineGlobalProperty$3; + + var defineBuiltIn$1 = function (O, key, value, options) { + if (!options) options = {}; + var simple = options.enumerable; + var name = options.name !== undefined ? options.name : key; + if (isCallable$3(value)) makeBuiltIn(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$2.f(O, key, { + value: value, + enumerable: false, + configurable: !options.nonConfigurable, + writable: !options.nonWritable + }); + } return O; + }; + + var objectGetOwnPropertyNames = {}; + + var ceil = Math.ceil; + var floor = 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 : ceil)(n); + }; + + var trunc = mathTrunc; + + // `ToIntegerOrInfinity` abstract operation + // https://tc39.es/ecma262/#sec-tointegerorinfinity + var toIntegerOrInfinity$2 = function (argument) { + var number = +argument; + // eslint-disable-next-line no-self-compare -- NaN check + return number !== number || number === 0 ? 0 : trunc(number); + }; + + var toIntegerOrInfinity$1 = toIntegerOrInfinity$2; + + var max = Math.max; + var min$1 = 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$1 = function (index, length) { + var integer = toIntegerOrInfinity$1(index); + return integer < 0 ? max(integer + length, 0) : min$1(integer, length); + }; + + var toIntegerOrInfinity = toIntegerOrInfinity$2; + + var min = Math.min; + + // `ToLength` abstract operation + // https://tc39.es/ecma262/#sec-tolength + var toLength$1 = function (argument) { + return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 + }; + + var toLength = toLength$1; + + // `LengthOfArrayLike` abstract operation + // https://tc39.es/ecma262/#sec-lengthofarraylike + var lengthOfArrayLike$2 = function (obj) { + return toLength(obj.length); + }; + + var toIndexedObject$1 = toIndexedObject$3; + var toAbsoluteIndex = toAbsoluteIndex$1; + var lengthOfArrayLike$1 = lengthOfArrayLike$2; + + // `Array.prototype.{ indexOf, includes }` methods implementation + var createMethod = function (IS_INCLUDES) { + return function ($this, el, fromIndex) { + var O = toIndexedObject$1($this); + var length = lengthOfArrayLike$1(O); + var index = toAbsoluteIndex(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(true), + // `Array.prototype.indexOf` method + // https://tc39.es/ecma262/#sec-array.prototype.indexof + indexOf: createMethod(false) + }; + + var uncurryThis$2 = functionUncurryThis; + var hasOwn$1 = hasOwnProperty_1; + var toIndexedObject = toIndexedObject$3; + var indexOf = arrayIncludes.indexOf; + var hiddenKeys$1 = hiddenKeys$3; + + var push = uncurryThis$2([].push); + + var objectKeysInternal = function (object, names) { + var O = toIndexedObject(object); + var i = 0; + var result = []; + var key; + for (key in O) !hasOwn$1(hiddenKeys$1, key) && hasOwn$1(O, key) && push(result, key); + // Don't enum bug & hidden keys + while (names.length > i) if (hasOwn$1(O, key = names[i++])) { + ~indexOf(result, key) || push(result, key); + } + return result; + }; + + // IE8- don't enum bug keys + var enumBugKeys$1 = [ + 'constructor', + 'hasOwnProperty', + 'isPrototypeOf', + 'propertyIsEnumerable', + 'toLocaleString', + 'toString', + 'valueOf' + ]; + + var internalObjectKeys = objectKeysInternal; + var enumBugKeys = enumBugKeys$1; + + var hiddenKeys = enumBugKeys.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(O, hiddenKeys); + }; + + var objectGetOwnPropertySymbols = {}; + + // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe + objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols; + + var getBuiltIn$1 = getBuiltIn$3; + var uncurryThis$1 = functionUncurryThis; + var getOwnPropertyNamesModule = objectGetOwnPropertyNames; + var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols; + var anObject = anObject$2; + + var concat = uncurryThis$1([].concat); + + // all object keys, includes non-enumerable and symbols + var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) { + var keys = getOwnPropertyNamesModule.f(anObject(it)); + var getOwnPropertySymbols = getOwnPropertySymbolsModule.f; + return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys; + }; + + var hasOwn = hasOwnProperty_1; + var ownKeys = ownKeys$1; + var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor; + var definePropertyModule$1 = objectDefineProperty; + + var copyConstructorProperties$1 = function (target, source, exceptions) { + var keys = ownKeys(source); + var defineProperty = definePropertyModule$1.f; + var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) { + defineProperty(target, key, getOwnPropertyDescriptor(source, key)); + } + } + }; + + var fails$3 = fails$b; + var isCallable$2 = isCallable$c; + + var replacement = /#|\.prototype\./; + + var isForced$1 = function (feature, detection) { + var value = data[normalize(feature)]; + return value == POLYFILL ? true + : value == NATIVE ? false + : isCallable$2(detection) ? fails$3(detection) + : !!detection; + }; + + var normalize = isForced$1.normalize = function (string) { + return String(string).replace(replacement, '.').toLowerCase(); + }; + + var data = isForced$1.data = {}; + var NATIVE = isForced$1.NATIVE = 'N'; + var POLYFILL = isForced$1.POLYFILL = 'P'; + + var isForced_1 = isForced$1; + + var global$1 = global$b; + var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f; + var createNonEnumerableProperty = createNonEnumerableProperty$2; + var defineBuiltIn = defineBuiltIn$1; + var defineGlobalProperty = defineGlobalProperty$3; + var copyConstructorProperties = copyConstructorProperties$1; + var isForced = 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 = global$1; + } else if (STATIC) { + target = global$1[TARGET] || defineGlobalProperty(TARGET, {}); + } else { + target = (global$1[TARGET] || {}).prototype; + } + if (target) for (key in source) { + sourceProperty = source[key]; + if (options.dontCallGetSet) { + descriptor = getOwnPropertyDescriptor(target, key); + targetProperty = descriptor && descriptor.value; + } else targetProperty = target[key]; + FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); + // contained in target + if (!FORCED && targetProperty !== undefined) { + if (typeof sourceProperty == typeof targetProperty) continue; + copyConstructorProperties(sourceProperty, targetProperty); + } + // add a flag to not completely full polyfills + if (options.sham || (targetProperty && targetProperty.sham)) { + createNonEnumerableProperty(sourceProperty, 'sham', true); + } + defineBuiltIn(target, key, sourceProperty, options); + } + }; + + var classof$2 = classofRaw$1; + + // `IsArray` abstract operation + // https://tc39.es/ecma262/#sec-isarray + // eslint-disable-next-line es/no-array-isarray -- safe + var isArray$2 = Array.isArray || function isArray(argument) { + return classof$2(argument) == 'Array'; + }; + + var $TypeError = TypeError; + var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991 + + var doesNotExceedSafeInteger$1 = function (it) { + if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded'); + return it; + }; + + var toPropertyKey = toPropertyKey$3; + var definePropertyModule = objectDefineProperty; + var createPropertyDescriptor = createPropertyDescriptor$3; + + var createProperty$1 = function (object, key, value) { + var propertyKey = toPropertyKey(key); + if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value)); + else object[propertyKey] = value; + }; + + var wellKnownSymbol$4 = wellKnownSymbol$6; + + var TO_STRING_TAG$1 = wellKnownSymbol$4('toStringTag'); + var test = {}; + + test[TO_STRING_TAG$1] = 'z'; + + var toStringTagSupport = String(test) === '[object z]'; + + var TO_STRING_TAG_SUPPORT = toStringTagSupport; + var isCallable$1 = isCallable$c; + var classofRaw = classofRaw$1; + var wellKnownSymbol$3 = wellKnownSymbol$6; + + var TO_STRING_TAG = wellKnownSymbol$3('toStringTag'); + var $Object = Object; + + // ES3 wrong here + var CORRECT_ARGUMENTS = classofRaw(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$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) { + var O, tag, result; + return it === undefined ? 'Undefined' : it === null ? 'Null' + // @@toStringTag case + : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag + // builtinTag case + : CORRECT_ARGUMENTS ? classofRaw(O) + // ES3 arguments fallback + : (result = classofRaw(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result; + }; + + var uncurryThis = functionUncurryThis; + var fails$2 = fails$b; + var isCallable = isCallable$c; + var classof = classof$1; + var getBuiltIn = getBuiltIn$3; + var inspectSource = inspectSource$2; + + var noop = function () { /* empty */ }; + var empty = []; + var construct = getBuiltIn('Reflect', 'construct'); + var constructorRegExp = /^\s*(?:class|function)\b/; + var exec = uncurryThis(constructorRegExp.exec); + var INCORRECT_TO_STRING = !constructorRegExp.exec(noop); + + var isConstructorModern = function isConstructor(argument) { + if (!isCallable(argument)) return false; + try { + construct(noop, empty, argument); + return true; + } catch (error) { + return false; + } + }; + + var isConstructorLegacy = function isConstructor(argument) { + if (!isCallable(argument)) return false; + switch (classof(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 || !!exec(constructorRegExp, inspectSource(argument)); + } catch (error) { + return true; + } + }; + + isConstructorLegacy.sham = true; + + // `IsConstructor` abstract operation + // https://tc39.es/ecma262/#sec-isconstructor + var isConstructor$1 = !construct || fails$2(function () { + var called; + return isConstructorModern(isConstructorModern.call) + || !isConstructorModern(Object) + || !isConstructorModern(function () { called = true; }) + || called; + }) ? isConstructorLegacy : isConstructorModern; + + var isArray$1 = isArray$2; + var isConstructor = isConstructor$1; + var isObject$1 = isObject$7; + var wellKnownSymbol$2 = wellKnownSymbol$6; + + var SPECIES$1 = wellKnownSymbol$2('species'); + var $Array = Array; + + // a part of `ArraySpeciesCreate` abstract operation + // https://tc39.es/ecma262/#sec-arrayspeciescreate + var arraySpeciesConstructor$1 = function (originalArray) { + var C; + if (isArray$1(originalArray)) { + C = originalArray.constructor; + // cross-realm fallback + if (isConstructor(C) && (C === $Array || isArray$1(C.prototype))) C = undefined; + else if (isObject$1(C)) { + C = C[SPECIES$1]; + if (C === null) C = undefined; + } + } return C === undefined ? $Array : C; + }; + + var arraySpeciesConstructor = arraySpeciesConstructor$1; + + // `ArraySpeciesCreate` abstract operation + // https://tc39.es/ecma262/#sec-arrayspeciescreate + var arraySpeciesCreate$1 = function (originalArray, length) { + return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length); + }; + + var fails$1 = fails$b; + var wellKnownSymbol$1 = wellKnownSymbol$6; + var V8_VERSION$1 = engineV8Version; + + var SPECIES = wellKnownSymbol$1('species'); + + var arrayMethodHasSpeciesSupport$1 = function (METHOD_NAME) { + // We can't use this feature detection in V8 since it causes + // deoptimization and serious performance degradation + // https://github.com/zloirock/core-js/issues/677 + return V8_VERSION$1 >= 51 || !fails$1(function () { + var array = []; + var constructor = array.constructor = {}; + constructor[SPECIES] = function () { + return { foo: 1 }; + }; + return array[METHOD_NAME](Boolean).foo !== 1; + }); + }; + + var $ = _export; + var fails = fails$b; + var isArray = isArray$2; + var isObject = isObject$7; + var toObject = toObject$2; + var lengthOfArrayLike = lengthOfArrayLike$2; + var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1; + var createProperty = createProperty$1; + var arraySpeciesCreate = arraySpeciesCreate$1; + var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1; + var wellKnownSymbol = wellKnownSymbol$6; + var V8_VERSION = engineV8Version; + + var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable'); + + // We can't use this feature detection in V8 since it causes + // deoptimization and serious performance degradation + // https://github.com/zloirock/core-js/issues/679 + var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () { + var array = []; + array[IS_CONCAT_SPREADABLE] = false; + return array.concat()[0] !== array; + }); + + var isConcatSpreadable = function (O) { + if (!isObject(O)) return false; + var spreadable = O[IS_CONCAT_SPREADABLE]; + return spreadable !== undefined ? !!spreadable : isArray(O); + }; + + var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat'); + + // `Array.prototype.concat` method + // https://tc39.es/ecma262/#sec-array.prototype.concat + // with adding support of @@isConcatSpreadable and @@species + $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, { + // eslint-disable-next-line no-unused-vars -- required for `.length` + concat: function concat(arg) { + var O = toObject(this); + var A = arraySpeciesCreate(O, 0); + var n = 0; + var i, k, length, len, E; + for (i = -1, length = arguments.length; i < length; i++) { + E = i === -1 ? O : arguments[i]; + if (isConcatSpreadable(E)) { + len = lengthOfArrayLike(E); + doesNotExceedSafeInteger(n + len); + for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]); + } else { + doesNotExceedSafeInteger(n + 1); + createProperty(A, n++, E); + } + } + A.length = n; + return A; + } + }); + + /** + * Multiple Select it-IT translation + * Author: Giuseppe Lodi Rizzini + */ + + $$1.fn.multipleSelect.locales['it-IT'] = { + formatSelectAll: function formatSelectAll() { + return '[Seleziona tutti]'; + }, + formatAllSelected: function formatAllSelected() { + return 'Tutti selezionati'; + }, + formatCountSelected: function formatCountSelected(count, total) { + return "".concat(count, " di ").concat(total, " selezionati"); + }, + formatNoMatchesFound: function formatNoMatchesFound() { + return 'Nessun risultato'; + } + }; + $$1.extend($$1.fn.multipleSelect.defaults, $$1.fn.multipleSelect.locales['it-IT']); })); diff --git a/dist/locale/multiple-select-it-IT.min.js b/dist/locale/multiple-select-it-IT.min.js index 6987bff3..a9e67f71 100644 --- a/dist/locale/multiple-select-it-IT.min.js +++ b/dist/locale/multiple-select-it-IT.min.js @@ -1,10 +1,10 @@ /** * multiple-select - Multiple select is a jQuery plugin to select multiple elements with checkboxes :). * - * @version v1.5.2 + * @version v1.6.0 * @homepage http://multiple-select.wenzhixin.net.cn * @author wenzhixin (http://wenzhixin.net.cn/) * @license MIT */ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):t((e=e||self).jQuery)}(this,(function(e){"use strict";(e=e&&e.hasOwnProperty("default")?e.default:e).fn.multipleSelect.locales["it-IT"]={formatSelectAll:function(){return"[Seleziona tutti]"},formatAllSelected:function(){return"Tutti selezionati"},formatCountSelected:function(e,t){return e+" di "+t+" selezionati"},formatNoMatchesFound:function(){return"Nessun risultato"}},e.extend(e.fn.multipleSelect.defaults,e.fn.multipleSelect.locales["it-IT"])})); +!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=function(t){return t&&t.Math==Math&&t},r=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n&&n)||function(){return this}()||n||Function("return this")(),o={},i=function(t){try{return!!t()}catch(t){return!0}},u=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=c,a=Function.prototype.call,l=f?a.bind(a):function(){return a.apply(a,arguments)},s={},p={}.propertyIsEnumerable,y=Object.getOwnPropertyDescriptor,b=y&&!p.call({1:2},1);s.f=b?function(t){var n=y(this,t);return!!n&&n.enumerable}:p;var v,g,d=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},h=c,m=Function.prototype,S=m.call,w=h&&m.bind.bind(S,S),O=h?w:function(t){return function(){return S.apply(t,arguments)}},j=O,P=j({}.toString),T=j("".slice),E=function(t){return T(P(t),8,-1)},A=i,x=E,M=Object,I=O("".split),F=A((function(){return!M("z").propertyIsEnumerable(0)}))?function(t){return"String"==x(t)?I(t,""):M(t)}:M,C=function(t){return null==t},D=C,z=TypeError,L=function(t){if(D(t))throw z("Can't call method on "+t);return t},N=F,_=L,k=function(t){return N(_(t))},R="object"==typeof document&&document.all,G={all:R,IS_HTMLDDA:void 0===R&&void 0!==R},q=G.all,B=G.IS_HTMLDDA?function(t){return"function"==typeof t||t===q}:function(t){return"function"==typeof t},H=B,U=G.all,W=G.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:H(t)||t===U}:function(t){return"object"==typeof t?null!==t:H(t)},K=r,Q=B,V=function(t,n){return arguments.length<2?(e=K[t],Q(e)?e:void 0):K[t]&&K[t][n];var e},X=O({}.isPrototypeOf),Y=r,$="undefined"!=typeof navigator&&String(navigator.userAgent)||"",J=Y.process,Z=Y.Deno,tt=J&&J.versions||Z&&Z.version,nt=tt&&tt.v8;nt&&(g=(v=nt.split("."))[0]>0&&v[0]<4?1:+(v[0]+v[1])),!g&&$&&(!(v=$.match(/Edge\/(\d+)/))||v[1]>=74)&&(v=$.match(/Chrome\/(\d+)/))&&(g=+v[1]);var et=g,rt=et,ot=i,it=r.String,ut=!!Object.getOwnPropertySymbols&&!ot((function(){var t=Symbol();return!it(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&rt&&rt<41})),ct=ut&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ft=V,at=B,lt=X,st=Object,pt=ct?function(t){return"symbol"==typeof t}:function(t){var n=ft("Symbol");return at(n)&<(n.prototype,st(t))},yt=String,bt=B,vt=function(t){try{return yt(t)}catch(t){return"Object"}},gt=TypeError,dt=function(t){if(bt(t))return t;throw gt(vt(t)+" is not a function")},ht=C,mt=l,St=B,wt=W,Ot=TypeError,jt={exports:{}},Pt=r,Tt=Object.defineProperty,Et=function(t,n){try{Tt(Pt,t,{value:n,configurable:!0,writable:!0})}catch(e){Pt[t]=n}return n},At=Et,xt="__core-js_shared__",Mt=r[xt]||At(xt,{}),It=Mt;(jt.exports=function(t,n){return It[t]||(It[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.30.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Ft=jt.exports,Ct=L,Dt=Object,zt=function(t){return Dt(Ct(t))},Lt=zt,Nt=O({}.hasOwnProperty),_t=Object.hasOwn||function(t,n){return Nt(Lt(t),n)},kt=O,Rt=0,Gt=Math.random(),qt=kt(1..toString),Bt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+qt(++Rt+Gt,36)},Ht=Ft,Ut=_t,Wt=Bt,Kt=ut,Qt=ct,Vt=r.Symbol,Xt=Ht("wks"),Yt=Qt?Vt.for||Vt:Vt&&Vt.withoutSetter||Wt,$t=function(t){return Ut(Xt,t)||(Xt[t]=Kt&&Ut(Vt,t)?Vt[t]:Yt("Symbol."+t)),Xt[t]},Jt=l,Zt=W,tn=pt,nn=function(t,n){var e=t[n];return ht(e)?void 0:dt(e)},en=function(t,n){var e,r;if("string"===n&&St(e=t.toString)&&!wt(r=mt(e,t)))return r;if(St(e=t.valueOf)&&!wt(r=mt(e,t)))return r;if("string"!==n&&St(e=t.toString)&&!wt(r=mt(e,t)))return r;throw Ot("Can't convert object to primitive value")},rn=TypeError,on=$t("toPrimitive"),un=function(t,n){if(!Zt(t)||tn(t))return t;var e,r=nn(t,on);if(r){if(void 0===n&&(n="default"),e=Jt(r,t,n),!Zt(e)||tn(e))return e;throw rn("Can't convert object to primitive value")}return void 0===n&&(n="number"),en(t,n)},cn=pt,fn=function(t){var n=un(t,"string");return cn(n)?n:n+""},an=W,ln=r.document,sn=an(ln)&&an(ln.createElement),pn=function(t){return sn?ln.createElement(t):{}},yn=!u&&!i((function(){return 7!=Object.defineProperty(pn("div"),"a",{get:function(){return 7}}).a})),bn=u,vn=l,gn=s,dn=d,hn=k,mn=fn,Sn=_t,wn=yn,On=Object.getOwnPropertyDescriptor;o.f=bn?On:function(t,n){if(t=hn(t),n=mn(n),wn)try{return On(t,n)}catch(t){}if(Sn(t,n))return dn(!vn(gn.f,t,n),t[n])};var jn={},Pn=u&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Tn=W,En=String,An=TypeError,xn=function(t){if(Tn(t))return t;throw An(En(t)+" is not an object")},Mn=u,In=yn,Fn=Pn,Cn=xn,Dn=fn,zn=TypeError,Ln=Object.defineProperty,Nn=Object.getOwnPropertyDescriptor,_n="enumerable",kn="configurable",Rn="writable";jn.f=Mn?Fn?function(t,n,e){if(Cn(t),n=Dn(n),Cn(e),"function"==typeof t&&"prototype"===n&&"value"in e&&Rn in e&&!e[Rn]){var r=Nn(t,n);r&&r[Rn]&&(t[n]=e.value,e={configurable:kn in e?e[kn]:r[kn],enumerable:_n in e?e[_n]:r[_n],writable:!1})}return Ln(t,n,e)}:Ln:function(t,n,e){if(Cn(t),n=Dn(n),Cn(e),In)try{return Ln(t,n,e)}catch(t){}if("get"in e||"set"in e)throw zn("Accessors not supported");return"value"in e&&(t[n]=e.value),t};var Gn=jn,qn=d,Bn=u?function(t,n,e){return Gn.f(t,n,qn(1,e))}:function(t,n,e){return t[n]=e,t},Hn={exports:{}},Un=u,Wn=_t,Kn=Function.prototype,Qn=Un&&Object.getOwnPropertyDescriptor,Vn=Wn(Kn,"name"),Xn={EXISTS:Vn,PROPER:Vn&&"something"===function(){}.name,CONFIGURABLE:Vn&&(!Un||Un&&Qn(Kn,"name").configurable)},Yn=B,$n=Mt,Jn=O(Function.toString);Yn($n.inspectSource)||($n.inspectSource=function(t){return Jn(t)});var Zn,te,ne,ee=$n.inspectSource,re=B,oe=r.WeakMap,ie=re(oe)&&/native code/.test(String(oe)),ue=Bt,ce=Ft("keys"),fe={},ae=ie,le=r,se=W,pe=Bn,ye=_t,be=Mt,ve=function(t){return ce[t]||(ce[t]=ue(t))},ge=fe,de="Object already initialized",he=le.TypeError,me=le.WeakMap;if(ae||be.state){var Se=be.state||(be.state=new me);Se.get=Se.get,Se.has=Se.has,Se.set=Se.set,Zn=function(t,n){if(Se.has(t))throw he(de);return n.facade=t,Se.set(t,n),n},te=function(t){return Se.get(t)||{}},ne=function(t){return Se.has(t)}}else{var we=ve("state");ge[we]=!0,Zn=function(t,n){if(ye(t,we))throw he(de);return n.facade=t,pe(t,we,n),n},te=function(t){return ye(t,we)?t[we]:{}},ne=function(t){return ye(t,we)}}var Oe={set:Zn,get:te,has:ne,enforce:function(t){return ne(t)?te(t):Zn(t,{})},getterFor:function(t){return function(n){var e;if(!se(n)||(e=te(n)).type!==t)throw he("Incompatible receiver, "+t+" required");return e}}},je=O,Pe=i,Te=B,Ee=_t,Ae=u,xe=Xn.CONFIGURABLE,Me=ee,Ie=Oe.enforce,Fe=Oe.get,Ce=String,De=Object.defineProperty,ze=je("".slice),Le=je("".replace),Ne=je([].join),_e=Ae&&!Pe((function(){return 8!==De((function(){}),"length",{value:8}).length})),ke=String(String).split("String"),Re=Hn.exports=function(t,n,e){"Symbol("===ze(Ce(n),0,7)&&(n="["+Le(Ce(n),/^Symbol\(([^)]*)\)/,"$1")+"]"),e&&e.getter&&(n="get "+n),e&&e.setter&&(n="set "+n),(!Ee(t,"name")||xe&&t.name!==n)&&(Ae?De(t,"name",{value:n,configurable:!0}):t.name=n),_e&&e&&Ee(e,"arity")&&t.length!==e.arity&&De(t,"length",{value:e.arity});try{e&&Ee(e,"constructor")&&e.constructor?Ae&&De(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=Ie(t);return Ee(r,"source")||(r.source=Ne(ke,"string"==typeof n?n:"")),t};Function.prototype.toString=Re((function(){return Te(this)&&Fe(this).source||Me(this)}),"toString");var Ge=Hn.exports,qe=B,Be=jn,He=Ge,Ue=Et,We={},Ke=Math.ceil,Qe=Math.floor,Ve=Math.trunc||function(t){var n=+t;return(n>0?Qe:Ke)(n)},Xe=function(t){var n=+t;return n!=n||0===n?0:Ve(n)},Ye=Xe,$e=Math.max,Je=Math.min,Ze=Xe,tr=Math.min,nr=function(t){return t>0?tr(Ze(t),9007199254740991):0},er=function(t){return nr(t.length)},rr=k,or=function(t,n){var e=Ye(t);return e<0?$e(e+n,0):Je(e,n)},ir=er,ur=function(t){return function(n,e,r){var o,i=rr(n),u=ir(i),c=or(r,u);if(t&&e!=e){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===e)return t||c||0;return!t&&-1}},cr={includes:ur(!0),indexOf:ur(!1)},fr=_t,ar=k,lr=cr.indexOf,sr=fe,pr=O([].push),yr=function(t,n){var e,r=ar(t),o=0,i=[];for(e in r)!fr(sr,e)&&fr(r,e)&&pr(i,e);for(;n.length>o;)fr(r,e=n[o++])&&(~lr(i,e)||pr(i,e));return i},br=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");We.f=Object.getOwnPropertyNames||function(t){return yr(t,br)};var vr={};vr.f=Object.getOwnPropertySymbols;var gr=V,dr=We,hr=vr,mr=xn,Sr=O([].concat),wr=gr("Reflect","ownKeys")||function(t){var n=dr.f(mr(t)),e=hr.f;return e?Sr(n,e(t)):n},Or=_t,jr=wr,Pr=o,Tr=jn,Er=i,Ar=B,xr=/#|\.prototype\./,Mr=function(t,n){var e=Fr[Ir(t)];return e==Dr||e!=Cr&&(Ar(n)?Er(n):!!n)},Ir=Mr.normalize=function(t){return String(t).replace(xr,".").toLowerCase()},Fr=Mr.data={},Cr=Mr.NATIVE="N",Dr=Mr.POLYFILL="P",zr=Mr,Lr=r,Nr=o.f,_r=Bn,kr=function(t,n,e,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:n;if(qe(e)&&He(e,i,r),r.global)o?t[n]=e:Ue(n,e);else{try{r.unsafe?t[n]&&(o=!0):delete t[n]}catch(t){}o?t[n]=e:Be.f(t,n,{value:e,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},Rr=Et,Gr=function(t,n,e){for(var r=jr(n),o=Tr.f,i=Pr.f,u=0;u9007199254740991)throw Ur("Maximum allowed index exceeded");return t},Co=function(t,n,e){var r=Wr(n);r in t?Kr.f(t,r,Qr(0,e)):t[r]=e},Do=function(t,n){return new(wo(t))(0===n?0:n)},zo=function(t){return jo>=51||!Oo((function(){var n=[];return(n.constructor={})[Po]=function(){return{foo:1}},1!==n[t](Boolean).foo}))},Lo=et,No=$t("isConcatSpreadable"),_o=Lo>=51||!Eo((function(){var t=[];return t[No]=!1,t.concat()[0]!==t})),ko=function(t){if(!xo(t))return!1;var n=t[No];return void 0!==n?!!n:Ao(t)};To({target:"Array",proto:!0,arity:1,forced:!_o||!zo("concat")},{concat:function(t){var n,e,r,o,i,u=Mo(this),c=Do(u,0),f=0;for(n=-1,r=arguments.length;n 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 && userAgent) { + match = userAgent.match(/Edge\/(\d+)/); + if (!match || match[1] >= 74) { + match = userAgent.match(/Chrome\/(\d+)/); + if (match) version = +match[1]; + } + } + + var engineV8Version = version; + + /* eslint-disable es/no-symbol -- required for testing */ + + var V8_VERSION$2 = engineV8Version; + var fails$7 = fails$b; + var global$8 = global$b; + + var $String$3 = global$8.String; + + // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing + var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$7(function () { + var symbol = Symbol(); + // 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$3(symbol) || !(Object(symbol) instanceof Symbol) || + // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances + !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41; + }); + + /* eslint-disable es/no-symbol -- required for testing */ + + var NATIVE_SYMBOL$1 = symbolConstructorDetection; + + var useSymbolAsUid = NATIVE_SYMBOL$1 + && !Symbol.sham + && typeof Symbol.iterator == 'symbol'; + + var getBuiltIn$2 = getBuiltIn$3; + var isCallable$9 = isCallable$c; + var isPrototypeOf = objectIsPrototypeOf; + var USE_SYMBOL_AS_UID$1 = useSymbolAsUid; + + var $Object$2 = Object; + + var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) { + return typeof it == 'symbol'; + } : function (it) { + var $Symbol = getBuiltIn$2('Symbol'); + return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it)); + }; + + var $String$2 = String; + + var tryToString$1 = function (argument) { + try { + return $String$2(argument); + } catch (error) { + return 'Object'; + } + }; + + var isCallable$8 = isCallable$c; + var tryToString = tryToString$1; + + var $TypeError$5 = TypeError; + + // `Assert: IsCallable(argument) is true` + var aCallable$1 = function (argument) { + if (isCallable$8(argument)) return argument; + throw $TypeError$5(tryToString(argument) + ' is not a function'); + }; + + var aCallable = aCallable$1; + var isNullOrUndefined = isNullOrUndefined$2; + + // `GetMethod` abstract operation + // https://tc39.es/ecma262/#sec-getmethod + var getMethod$1 = function (V, P) { + var func = V[P]; + return isNullOrUndefined(func) ? undefined : aCallable(func); + }; + + var call$2 = functionCall; + var isCallable$7 = isCallable$c; + var isObject$6 = isObject$7; + + var $TypeError$4 = TypeError; + + // `OrdinaryToPrimitive` abstract operation + // https://tc39.es/ecma262/#sec-ordinarytoprimitive + var ordinaryToPrimitive$1 = function (input, pref) { + var fn, val; + if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val; + if (isCallable$7(fn = input.valueOf) && !isObject$6(val = call$2(fn, input))) return val; + if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val; + throw $TypeError$4("Can't convert object to primitive value"); + }; + + var shared$3 = {exports: {}}; + + var global$7 = global$b; + + // eslint-disable-next-line es/no-object-defineproperty -- safe + var defineProperty$1 = Object.defineProperty; + + var defineGlobalProperty$3 = function (key, value) { + try { + defineProperty$1(global$7, key, { value: value, configurable: true, writable: true }); + } catch (error) { + global$7[key] = value; + } return value; + }; + + var global$6 = global$b; + var defineGlobalProperty$2 = defineGlobalProperty$3; + + var SHARED = '__core-js_shared__'; + var store$3 = global$6[SHARED] || defineGlobalProperty$2(SHARED, {}); + + var sharedStore = store$3; + + var store$2 = sharedStore; + + (shared$3.exports = function (key, value) { + return store$2[key] || (store$2[key] = value !== undefined ? value : {}); + })('versions', []).push({ + version: '3.30.2', + mode: 'global', + copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)', + license: 'https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE', + source: 'https://github.com/zloirock/core-js' + }); + + var sharedExports = shared$3.exports; + + var requireObjectCoercible = requireObjectCoercible$2; + + var $Object$1 = Object; + + // `ToObject` abstract operation + // https://tc39.es/ecma262/#sec-toobject + var toObject$2 = function (argument) { + return $Object$1(requireObjectCoercible(argument)); + }; + + var uncurryThis$6 = functionUncurryThis; + var toObject$1 = toObject$2; + + var hasOwnProperty = uncurryThis$6({}.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$1(it), key); + }; + + var uncurryThis$5 = functionUncurryThis; + + var id = 0; + var postfix = Math.random(); + var toString = uncurryThis$5(1.0.toString); + + var uid$2 = function (key) { + return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36); + }; + + var global$5 = global$b; + var shared$2 = sharedExports; + var hasOwn$6 = hasOwnProperty_1; + var uid$1 = uid$2; + var NATIVE_SYMBOL = symbolConstructorDetection; + var USE_SYMBOL_AS_UID = useSymbolAsUid; + + var Symbol$1 = global$5.Symbol; + var WellKnownSymbolsStore = shared$2('wks'); + var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1; + + var wellKnownSymbol$6 = function (name) { + if (!hasOwn$6(WellKnownSymbolsStore, name)) { + WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name) + ? Symbol$1[name] + : createWellKnownSymbol('Symbol.' + name); + } return WellKnownSymbolsStore[name]; + }; + + var call$1 = functionCall; + var isObject$5 = isObject$7; + var isSymbol$1 = isSymbol$2; + var getMethod = getMethod$1; + var ordinaryToPrimitive = ordinaryToPrimitive$1; + var wellKnownSymbol$5 = wellKnownSymbol$6; + + var $TypeError$3 = TypeError; + var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive'); + + // `ToPrimitive` abstract operation + // https://tc39.es/ecma262/#sec-toprimitive + var toPrimitive$1 = function (input, pref) { + if (!isObject$5(input) || isSymbol$1(input)) return input; + var exoticToPrim = getMethod(input, TO_PRIMITIVE); + var result; + if (exoticToPrim) { + if (pref === undefined) pref = 'default'; + result = call$1(exoticToPrim, input, pref); + if (!isObject$5(result) || isSymbol$1(result)) return result; + throw $TypeError$3("Can't convert object to primitive value"); + } + if (pref === undefined) pref = 'number'; + return ordinaryToPrimitive(input, pref); + }; + + var toPrimitive = toPrimitive$1; + var isSymbol = isSymbol$2; + + // `ToPropertyKey` abstract operation + // https://tc39.es/ecma262/#sec-topropertykey + var toPropertyKey$3 = function (argument) { + var key = toPrimitive(argument, 'string'); + return isSymbol(key) ? key : key + ''; + }; + + var global$4 = global$b; + var isObject$4 = isObject$7; + + var document$1 = global$4.document; + // typeof document.createElement is 'object' in old IE + var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement); + + var documentCreateElement = function (it) { + return EXISTS$1 ? document$1.createElement(it) : {}; + }; + + var DESCRIPTORS$6 = descriptors; + var fails$6 = fails$b; + var createElement = documentCreateElement; + + // Thanks to IE8 for its funny defineProperty + var ie8DomDefine = !DESCRIPTORS$6 && !fails$6(function () { + // eslint-disable-next-line es/no-object-defineproperty -- required for testing + return Object.defineProperty(createElement('div'), 'a', { + get: function () { return 7; } + }).a != 7; + }); + + var DESCRIPTORS$5 = descriptors; + var call = functionCall; + var propertyIsEnumerableModule = objectPropertyIsEnumerable; + var createPropertyDescriptor$2 = createPropertyDescriptor$3; + var toIndexedObject$2 = toIndexedObject$3; + var toPropertyKey$2 = toPropertyKey$3; + var hasOwn$5 = hasOwnProperty_1; + var IE8_DOM_DEFINE$1 = ie8DomDefine; + + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; + + // `Object.getOwnPropertyDescriptor` method + // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor + objectGetOwnPropertyDescriptor.f = DESCRIPTORS$5 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) { + O = toIndexedObject$2(O); + P = toPropertyKey$2(P); + if (IE8_DOM_DEFINE$1) try { + return $getOwnPropertyDescriptor$1(O, P); + } catch (error) { /* empty */ } + if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call(propertyIsEnumerableModule.f, O, P), O[P]); + }; + + var objectDefineProperty = {}; + + var DESCRIPTORS$4 = descriptors; + var fails$5 = fails$b; + + // V8 ~ Chrome 36- + // https://bugs.chromium.org/p/v8/issues/detail?id=3334 + var v8PrototypeDefineBug = DESCRIPTORS$4 && fails$5(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$3 = isObject$7; + + var $String$1 = String; + var $TypeError$2 = TypeError; + + // `Assert: Type(argument) is Object` + var anObject$2 = function (argument) { + if (isObject$3(argument)) return argument; + throw $TypeError$2($String$1(argument) + ' is not an object'); + }; + + var DESCRIPTORS$3 = descriptors; + var IE8_DOM_DEFINE = ie8DomDefine; + var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug; + var anObject$1 = anObject$2; + var toPropertyKey$1 = toPropertyKey$3; + + var $TypeError$1 = TypeError; + // eslint-disable-next-line es/no-object-defineproperty -- safe + var $defineProperty = Object.defineProperty; + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var $getOwnPropertyDescriptor = 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$3 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) { + anObject$1(O); + P = toPropertyKey$1(P); + anObject$1(Attributes); + if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) { + var current = $getOwnPropertyDescriptor(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(O, P, Attributes); + } : $defineProperty : function defineProperty(O, P, Attributes) { + anObject$1(O); + P = toPropertyKey$1(P); + anObject$1(Attributes); + if (IE8_DOM_DEFINE) try { + return $defineProperty(O, P, Attributes); + } catch (error) { /* empty */ } + if ('get' in Attributes || 'set' in Attributes) throw $TypeError$1('Accessors not supported'); + if ('value' in Attributes) O[P] = Attributes.value; + return O; + }; + + var DESCRIPTORS$2 = descriptors; + var definePropertyModule$3 = objectDefineProperty; + var createPropertyDescriptor$1 = createPropertyDescriptor$3; + + var createNonEnumerableProperty$2 = DESCRIPTORS$2 ? function (object, key, value) { + return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value)); + } : function (object, key, value) { + object[key] = value; + return object; + }; + + var makeBuiltIn$2 = {exports: {}}; + + var DESCRIPTORS$1 = descriptors; + var hasOwn$4 = hasOwnProperty_1; + + var FunctionPrototype = Function.prototype; + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var getDescriptor = DESCRIPTORS$1 && Object.getOwnPropertyDescriptor; + + var EXISTS = hasOwn$4(FunctionPrototype, 'name'); + // additional protection from minified / mangled / dropped function names + var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something'; + var CONFIGURABLE = EXISTS && (!DESCRIPTORS$1 || (DESCRIPTORS$1 && getDescriptor(FunctionPrototype, 'name').configurable)); + + var functionName = { + EXISTS: EXISTS, + PROPER: PROPER, + CONFIGURABLE: CONFIGURABLE + }; + + var uncurryThis$4 = functionUncurryThis; + var isCallable$6 = isCallable$c; + var store$1 = sharedStore; + + var functionToString = uncurryThis$4(Function.toString); + + // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper + if (!isCallable$6(store$1.inspectSource)) { + store$1.inspectSource = function (it) { + return functionToString(it); + }; + } + + var inspectSource$2 = store$1.inspectSource; + + var global$3 = global$b; + var isCallable$5 = isCallable$c; + + var WeakMap$1 = global$3.WeakMap; + + var weakMapBasicDetection = isCallable$5(WeakMap$1) && /native code/.test(String(WeakMap$1)); + + var shared$1 = sharedExports; + var uid = uid$2; + + var keys = shared$1('keys'); + + var sharedKey$1 = function (key) { + return keys[key] || (keys[key] = uid(key)); + }; + + var hiddenKeys$3 = {}; + + var NATIVE_WEAK_MAP = weakMapBasicDetection; + var global$2 = global$b; + var isObject$2 = isObject$7; + var createNonEnumerableProperty$1 = createNonEnumerableProperty$2; + var hasOwn$3 = hasOwnProperty_1; + var shared = sharedStore; + var sharedKey = sharedKey$1; + var hiddenKeys$2 = hiddenKeys$3; + + var OBJECT_ALREADY_INITIALIZED = 'Object already initialized'; + var TypeError$1 = global$2.TypeError; + var WeakMap = global$2.WeakMap; + var set, get, has; + + var enforce = function (it) { + return has(it) ? get(it) : set(it, {}); + }; + + var getterFor = function (TYPE) { + return function (it) { + var state; + if (!isObject$2(it) || (state = get(it)).type !== TYPE) { + throw TypeError$1('Incompatible receiver, ' + TYPE + ' required'); + } return state; + }; + }; + + if (NATIVE_WEAK_MAP || shared.state) { + var store = shared.state || (shared.state = new WeakMap()); + /* 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 = function (it, metadata) { + if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED); + metadata.facade = it; + store.set(it, metadata); + return metadata; + }; + get = function (it) { + return store.get(it) || {}; + }; + has = function (it) { + return store.has(it); + }; + } else { + var STATE = sharedKey('state'); + hiddenKeys$2[STATE] = true; + set = function (it, metadata) { + if (hasOwn$3(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED); + metadata.facade = it; + createNonEnumerableProperty$1(it, STATE, metadata); + return metadata; + }; + get = function (it) { + return hasOwn$3(it, STATE) ? it[STATE] : {}; + }; + has = function (it) { + return hasOwn$3(it, STATE); + }; + } + + var internalState = { + set: set, + get: get, + has: has, + enforce: enforce, + getterFor: getterFor + }; + + var uncurryThis$3 = functionUncurryThis; + var fails$4 = fails$b; + var isCallable$4 = isCallable$c; + var hasOwn$2 = hasOwnProperty_1; + var DESCRIPTORS = descriptors; + var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE; + var inspectSource$1 = inspectSource$2; + var InternalStateModule = internalState; + + var enforceInternalState = InternalStateModule.enforce; + var getInternalState = InternalStateModule.get; + var $String = String; + // eslint-disable-next-line es/no-object-defineproperty -- safe + var defineProperty = Object.defineProperty; + var stringSlice = uncurryThis$3(''.slice); + var replace = uncurryThis$3(''.replace); + var join = uncurryThis$3([].join); + + var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails$4(function () { + return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8; + }); + + var TEMPLATE = String(String).split('String'); + + var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) { + if (stringSlice($String(name), 0, 7) === 'Symbol(') { + name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']'; + } + if (options && options.getter) name = 'get ' + name; + if (options && options.setter) name = 'set ' + name; + if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) { + if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true }); + else value.name = name; + } + if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) { + defineProperty(value, 'length', { value: options.arity }); + } + try { + if (options && hasOwn$2(options, 'constructor') && options.constructor) { + if (DESCRIPTORS) defineProperty(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(value); + if (!hasOwn$2(state, 'source')) { + state.source = join(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$1(function toString() { + return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this); + }, 'toString'); + + var makeBuiltInExports = makeBuiltIn$2.exports; + + var isCallable$3 = isCallable$c; + var definePropertyModule$2 = objectDefineProperty; + var makeBuiltIn = makeBuiltInExports; + var defineGlobalProperty$1 = defineGlobalProperty$3; + + var defineBuiltIn$1 = function (O, key, value, options) { + if (!options) options = {}; + var simple = options.enumerable; + var name = options.name !== undefined ? options.name : key; + if (isCallable$3(value)) makeBuiltIn(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$2.f(O, key, { + value: value, + enumerable: false, + configurable: !options.nonConfigurable, + writable: !options.nonWritable + }); + } return O; + }; + + var objectGetOwnPropertyNames = {}; + + var ceil = Math.ceil; + var floor = 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 : ceil)(n); + }; + + var trunc = mathTrunc; + + // `ToIntegerOrInfinity` abstract operation + // https://tc39.es/ecma262/#sec-tointegerorinfinity + var toIntegerOrInfinity$2 = function (argument) { + var number = +argument; + // eslint-disable-next-line no-self-compare -- NaN check + return number !== number || number === 0 ? 0 : trunc(number); + }; + + var toIntegerOrInfinity$1 = toIntegerOrInfinity$2; + + var max = Math.max; + var min$1 = 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$1 = function (index, length) { + var integer = toIntegerOrInfinity$1(index); + return integer < 0 ? max(integer + length, 0) : min$1(integer, length); + }; + + var toIntegerOrInfinity = toIntegerOrInfinity$2; + + var min = Math.min; + + // `ToLength` abstract operation + // https://tc39.es/ecma262/#sec-tolength + var toLength$1 = function (argument) { + return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 + }; + + var toLength = toLength$1; + + // `LengthOfArrayLike` abstract operation + // https://tc39.es/ecma262/#sec-lengthofarraylike + var lengthOfArrayLike$2 = function (obj) { + return toLength(obj.length); + }; + + var toIndexedObject$1 = toIndexedObject$3; + var toAbsoluteIndex = toAbsoluteIndex$1; + var lengthOfArrayLike$1 = lengthOfArrayLike$2; + + // `Array.prototype.{ indexOf, includes }` methods implementation + var createMethod = function (IS_INCLUDES) { + return function ($this, el, fromIndex) { + var O = toIndexedObject$1($this); + var length = lengthOfArrayLike$1(O); + var index = toAbsoluteIndex(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(true), + // `Array.prototype.indexOf` method + // https://tc39.es/ecma262/#sec-array.prototype.indexof + indexOf: createMethod(false) + }; + + var uncurryThis$2 = functionUncurryThis; + var hasOwn$1 = hasOwnProperty_1; + var toIndexedObject = toIndexedObject$3; + var indexOf = arrayIncludes.indexOf; + var hiddenKeys$1 = hiddenKeys$3; + + var push = uncurryThis$2([].push); + + var objectKeysInternal = function (object, names) { + var O = toIndexedObject(object); + var i = 0; + var result = []; + var key; + for (key in O) !hasOwn$1(hiddenKeys$1, key) && hasOwn$1(O, key) && push(result, key); + // Don't enum bug & hidden keys + while (names.length > i) if (hasOwn$1(O, key = names[i++])) { + ~indexOf(result, key) || push(result, key); + } + return result; + }; + + // IE8- don't enum bug keys + var enumBugKeys$1 = [ + 'constructor', + 'hasOwnProperty', + 'isPrototypeOf', + 'propertyIsEnumerable', + 'toLocaleString', + 'toString', + 'valueOf' + ]; + + var internalObjectKeys = objectKeysInternal; + var enumBugKeys = enumBugKeys$1; + + var hiddenKeys = enumBugKeys.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(O, hiddenKeys); + }; + + var objectGetOwnPropertySymbols = {}; + + // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe + objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols; + + var getBuiltIn$1 = getBuiltIn$3; + var uncurryThis$1 = functionUncurryThis; + var getOwnPropertyNamesModule = objectGetOwnPropertyNames; + var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols; + var anObject = anObject$2; + + var concat = uncurryThis$1([].concat); + + // all object keys, includes non-enumerable and symbols + var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) { + var keys = getOwnPropertyNamesModule.f(anObject(it)); + var getOwnPropertySymbols = getOwnPropertySymbolsModule.f; + return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys; + }; + + var hasOwn = hasOwnProperty_1; + var ownKeys = ownKeys$1; + var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor; + var definePropertyModule$1 = objectDefineProperty; + + var copyConstructorProperties$1 = function (target, source, exceptions) { + var keys = ownKeys(source); + var defineProperty = definePropertyModule$1.f; + var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) { + defineProperty(target, key, getOwnPropertyDescriptor(source, key)); + } + } + }; + + var fails$3 = fails$b; + var isCallable$2 = isCallable$c; + + var replacement = /#|\.prototype\./; + + var isForced$1 = function (feature, detection) { + var value = data[normalize(feature)]; + return value == POLYFILL ? true + : value == NATIVE ? false + : isCallable$2(detection) ? fails$3(detection) + : !!detection; + }; + + var normalize = isForced$1.normalize = function (string) { + return String(string).replace(replacement, '.').toLowerCase(); + }; + + var data = isForced$1.data = {}; + var NATIVE = isForced$1.NATIVE = 'N'; + var POLYFILL = isForced$1.POLYFILL = 'P'; + + var isForced_1 = isForced$1; + + var global$1 = global$b; + var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f; + var createNonEnumerableProperty = createNonEnumerableProperty$2; + var defineBuiltIn = defineBuiltIn$1; + var defineGlobalProperty = defineGlobalProperty$3; + var copyConstructorProperties = copyConstructorProperties$1; + var isForced = 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 = global$1; + } else if (STATIC) { + target = global$1[TARGET] || defineGlobalProperty(TARGET, {}); + } else { + target = (global$1[TARGET] || {}).prototype; + } + if (target) for (key in source) { + sourceProperty = source[key]; + if (options.dontCallGetSet) { + descriptor = getOwnPropertyDescriptor(target, key); + targetProperty = descriptor && descriptor.value; + } else targetProperty = target[key]; + FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); + // contained in target + if (!FORCED && targetProperty !== undefined) { + if (typeof sourceProperty == typeof targetProperty) continue; + copyConstructorProperties(sourceProperty, targetProperty); + } + // add a flag to not completely full polyfills + if (options.sham || (targetProperty && targetProperty.sham)) { + createNonEnumerableProperty(sourceProperty, 'sham', true); + } + defineBuiltIn(target, key, sourceProperty, options); + } + }; + + var classof$2 = classofRaw$1; + + // `IsArray` abstract operation + // https://tc39.es/ecma262/#sec-isarray + // eslint-disable-next-line es/no-array-isarray -- safe + var isArray$2 = Array.isArray || function isArray(argument) { + return classof$2(argument) == 'Array'; + }; + + var $TypeError = TypeError; + var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991 + + var doesNotExceedSafeInteger$1 = function (it) { + if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded'); + return it; + }; + + var toPropertyKey = toPropertyKey$3; + var definePropertyModule = objectDefineProperty; + var createPropertyDescriptor = createPropertyDescriptor$3; + + var createProperty$1 = function (object, key, value) { + var propertyKey = toPropertyKey(key); + if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value)); + else object[propertyKey] = value; + }; + + var wellKnownSymbol$4 = wellKnownSymbol$6; + + var TO_STRING_TAG$1 = wellKnownSymbol$4('toStringTag'); + var test = {}; + + test[TO_STRING_TAG$1] = 'z'; + + var toStringTagSupport = String(test) === '[object z]'; + + var TO_STRING_TAG_SUPPORT = toStringTagSupport; + var isCallable$1 = isCallable$c; + var classofRaw = classofRaw$1; + var wellKnownSymbol$3 = wellKnownSymbol$6; + + var TO_STRING_TAG = wellKnownSymbol$3('toStringTag'); + var $Object = Object; + + // ES3 wrong here + var CORRECT_ARGUMENTS = classofRaw(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$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) { + var O, tag, result; + return it === undefined ? 'Undefined' : it === null ? 'Null' + // @@toStringTag case + : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag + // builtinTag case + : CORRECT_ARGUMENTS ? classofRaw(O) + // ES3 arguments fallback + : (result = classofRaw(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result; + }; + + var uncurryThis = functionUncurryThis; + var fails$2 = fails$b; + var isCallable = isCallable$c; + var classof = classof$1; + var getBuiltIn = getBuiltIn$3; + var inspectSource = inspectSource$2; + + var noop = function () { /* empty */ }; + var empty = []; + var construct = getBuiltIn('Reflect', 'construct'); + var constructorRegExp = /^\s*(?:class|function)\b/; + var exec = uncurryThis(constructorRegExp.exec); + var INCORRECT_TO_STRING = !constructorRegExp.exec(noop); + + var isConstructorModern = function isConstructor(argument) { + if (!isCallable(argument)) return false; + try { + construct(noop, empty, argument); + return true; + } catch (error) { + return false; + } + }; + + var isConstructorLegacy = function isConstructor(argument) { + if (!isCallable(argument)) return false; + switch (classof(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 || !!exec(constructorRegExp, inspectSource(argument)); + } catch (error) { + return true; + } + }; + + isConstructorLegacy.sham = true; + + // `IsConstructor` abstract operation + // https://tc39.es/ecma262/#sec-isconstructor + var isConstructor$1 = !construct || fails$2(function () { + var called; + return isConstructorModern(isConstructorModern.call) + || !isConstructorModern(Object) + || !isConstructorModern(function () { called = true; }) + || called; + }) ? isConstructorLegacy : isConstructorModern; + + var isArray$1 = isArray$2; + var isConstructor = isConstructor$1; + var isObject$1 = isObject$7; + var wellKnownSymbol$2 = wellKnownSymbol$6; + + var SPECIES$1 = wellKnownSymbol$2('species'); + var $Array = Array; + + // a part of `ArraySpeciesCreate` abstract operation + // https://tc39.es/ecma262/#sec-arrayspeciescreate + var arraySpeciesConstructor$1 = function (originalArray) { + var C; + if (isArray$1(originalArray)) { + C = originalArray.constructor; + // cross-realm fallback + if (isConstructor(C) && (C === $Array || isArray$1(C.prototype))) C = undefined; + else if (isObject$1(C)) { + C = C[SPECIES$1]; + if (C === null) C = undefined; + } + } return C === undefined ? $Array : C; + }; + + var arraySpeciesConstructor = arraySpeciesConstructor$1; + + // `ArraySpeciesCreate` abstract operation + // https://tc39.es/ecma262/#sec-arrayspeciescreate + var arraySpeciesCreate$1 = function (originalArray, length) { + return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length); + }; + + var fails$1 = fails$b; + var wellKnownSymbol$1 = wellKnownSymbol$6; + var V8_VERSION$1 = engineV8Version; + + var SPECIES = wellKnownSymbol$1('species'); + + var arrayMethodHasSpeciesSupport$1 = function (METHOD_NAME) { + // We can't use this feature detection in V8 since it causes + // deoptimization and serious performance degradation + // https://github.com/zloirock/core-js/issues/677 + return V8_VERSION$1 >= 51 || !fails$1(function () { + var array = []; + var constructor = array.constructor = {}; + constructor[SPECIES] = function () { + return { foo: 1 }; + }; + return array[METHOD_NAME](Boolean).foo !== 1; + }); + }; + + var $ = _export; + var fails = fails$b; + var isArray = isArray$2; + var isObject = isObject$7; + var toObject = toObject$2; + var lengthOfArrayLike = lengthOfArrayLike$2; + var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1; + var createProperty = createProperty$1; + var arraySpeciesCreate = arraySpeciesCreate$1; + var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1; + var wellKnownSymbol = wellKnownSymbol$6; + var V8_VERSION = engineV8Version; + + var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable'); + + // We can't use this feature detection in V8 since it causes + // deoptimization and serious performance degradation + // https://github.com/zloirock/core-js/issues/679 + var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () { + var array = []; + array[IS_CONCAT_SPREADABLE] = false; + return array.concat()[0] !== array; + }); + + var isConcatSpreadable = function (O) { + if (!isObject(O)) return false; + var spreadable = O[IS_CONCAT_SPREADABLE]; + return spreadable !== undefined ? !!spreadable : isArray(O); + }; + + var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat'); + + // `Array.prototype.concat` method + // https://tc39.es/ecma262/#sec-array.prototype.concat + // with adding support of @@isConcatSpreadable and @@species + $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, { + // eslint-disable-next-line no-unused-vars -- required for `.length` + concat: function concat(arg) { + var O = toObject(this); + var A = arraySpeciesCreate(O, 0); + var n = 0; + var i, k, length, len, E; + for (i = -1, length = arguments.length; i < length; i++) { + E = i === -1 ? O : arguments[i]; + if (isConcatSpreadable(E)) { + len = lengthOfArrayLike(E); + doesNotExceedSafeInteger(n + len); + for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]); + } else { + doesNotExceedSafeInteger(n + 1); + createProperty(A, n++, E); + } + } + A.length = n; + return A; + } + }); + + /** + * Multiple Select pt-BR translation + * Author: Lucas Aguiar + */ + + $$1.fn.multipleSelect.locales['pt-BR'] = { + formatSelectAll: function formatSelectAll() { + return '[Selecionar todos]'; + }, + formatAllSelected: function formatAllSelected() { + return 'Todos selecionados'; + }, + formatCountSelected: function formatCountSelected(count, total) { + return "".concat(count, " de ").concat(total, " selecionado(s)"); + }, + formatNoMatchesFound: function formatNoMatchesFound() { + return 'Nenhum resultado encontrado'; + } + }; + $$1.extend($$1.fn.multipleSelect.defaults, $$1.fn.multipleSelect.locales['pt-BR']); + +})); diff --git a/dist/locale/multiple-select-pt-BR.min.js b/dist/locale/multiple-select-pt-BR.min.js new file mode 100644 index 00000000..1c4e7335 --- /dev/null +++ b/dist/locale/multiple-select-pt-BR.min.js @@ -0,0 +1,10 @@ +/** + * multiple-select - Multiple select is a jQuery plugin to select multiple elements with checkboxes :). + * + * @version v1.6.0 + * @homepage http://multiple-select.wenzhixin.net.cn + * @author wenzhixin (http://wenzhixin.net.cn/) + * @license MIT + */ + +!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=function(t){return t&&t.Math==Math&&t},r=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n&&n)||function(){return this}()||n||Function("return this")(),o={},i=function(t){try{return!!t()}catch(t){return!0}},u=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),a=c,f=Function.prototype.call,l=a?f.bind(f):function(){return f.apply(f,arguments)},s={},p={}.propertyIsEnumerable,y=Object.getOwnPropertyDescriptor,b=y&&!p.call({1:2},1);s.f=b?function(t){var n=y(this,t);return!!n&&n.enumerable}:p;var d,v,g=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},h=c,m=Function.prototype,S=m.call,w=h&&m.bind.bind(S,S),O=h?w:function(t){return function(){return S.apply(t,arguments)}},j=O,P=j({}.toString),T=j("".slice),E=function(t){return T(P(t),8,-1)},A=i,x=E,M=Object,F=O("".split),I=A((function(){return!M("z").propertyIsEnumerable(0)}))?function(t){return"String"==x(t)?F(t,""):M(t)}:M,C=function(t){return null==t},D=C,L=TypeError,N=function(t){if(D(t))throw L("Can't call method on "+t);return t},_=I,k=N,z=function(t){return _(k(t))},R="object"==typeof document&&document.all,B={all:R,IS_HTMLDDA:void 0===R&&void 0!==R},G=B.all,q=B.IS_HTMLDDA?function(t){return"function"==typeof t||t===G}:function(t){return"function"==typeof t},H=q,U=B.all,W=B.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:H(t)||t===U}:function(t){return"object"==typeof t?null!==t:H(t)},K=r,Q=q,V=function(t,n){return arguments.length<2?(e=K[t],Q(e)?e:void 0):K[t]&&K[t][n];var e},X=O({}.isPrototypeOf),Y=r,$="undefined"!=typeof navigator&&String(navigator.userAgent)||"",J=Y.process,Z=Y.Deno,tt=J&&J.versions||Z&&Z.version,nt=tt&&tt.v8;nt&&(v=(d=nt.split("."))[0]>0&&d[0]<4?1:+(d[0]+d[1])),!v&&$&&(!(d=$.match(/Edge\/(\d+)/))||d[1]>=74)&&(d=$.match(/Chrome\/(\d+)/))&&(v=+d[1]);var et=v,rt=et,ot=i,it=r.String,ut=!!Object.getOwnPropertySymbols&&!ot((function(){var t=Symbol();return!it(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&rt&&rt<41})),ct=ut&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,at=V,ft=q,lt=X,st=Object,pt=ct?function(t){return"symbol"==typeof t}:function(t){var n=at("Symbol");return ft(n)&<(n.prototype,st(t))},yt=String,bt=q,dt=function(t){try{return yt(t)}catch(t){return"Object"}},vt=TypeError,gt=function(t){if(bt(t))return t;throw vt(dt(t)+" is not a function")},ht=C,mt=l,St=q,wt=W,Ot=TypeError,jt={exports:{}},Pt=r,Tt=Object.defineProperty,Et=function(t,n){try{Tt(Pt,t,{value:n,configurable:!0,writable:!0})}catch(e){Pt[t]=n}return n},At=Et,xt="__core-js_shared__",Mt=r[xt]||At(xt,{}),Ft=Mt;(jt.exports=function(t,n){return Ft[t]||(Ft[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.30.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var It=jt.exports,Ct=N,Dt=Object,Lt=function(t){return Dt(Ct(t))},Nt=Lt,_t=O({}.hasOwnProperty),kt=Object.hasOwn||function(t,n){return _t(Nt(t),n)},zt=O,Rt=0,Bt=Math.random(),Gt=zt(1..toString),qt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Gt(++Rt+Bt,36)},Ht=It,Ut=kt,Wt=qt,Kt=ut,Qt=ct,Vt=r.Symbol,Xt=Ht("wks"),Yt=Qt?Vt.for||Vt:Vt&&Vt.withoutSetter||Wt,$t=function(t){return Ut(Xt,t)||(Xt[t]=Kt&&Ut(Vt,t)?Vt[t]:Yt("Symbol."+t)),Xt[t]},Jt=l,Zt=W,tn=pt,nn=function(t,n){var e=t[n];return ht(e)?void 0:gt(e)},en=function(t,n){var e,r;if("string"===n&&St(e=t.toString)&&!wt(r=mt(e,t)))return r;if(St(e=t.valueOf)&&!wt(r=mt(e,t)))return r;if("string"!==n&&St(e=t.toString)&&!wt(r=mt(e,t)))return r;throw Ot("Can't convert object to primitive value")},rn=TypeError,on=$t("toPrimitive"),un=function(t,n){if(!Zt(t)||tn(t))return t;var e,r=nn(t,on);if(r){if(void 0===n&&(n="default"),e=Jt(r,t,n),!Zt(e)||tn(e))return e;throw rn("Can't convert object to primitive value")}return void 0===n&&(n="number"),en(t,n)},cn=pt,an=function(t){var n=un(t,"string");return cn(n)?n:n+""},fn=W,ln=r.document,sn=fn(ln)&&fn(ln.createElement),pn=function(t){return sn?ln.createElement(t):{}},yn=!u&&!i((function(){return 7!=Object.defineProperty(pn("div"),"a",{get:function(){return 7}}).a})),bn=u,dn=l,vn=s,gn=g,hn=z,mn=an,Sn=kt,wn=yn,On=Object.getOwnPropertyDescriptor;o.f=bn?On:function(t,n){if(t=hn(t),n=mn(n),wn)try{return On(t,n)}catch(t){}if(Sn(t,n))return gn(!dn(vn.f,t,n),t[n])};var jn={},Pn=u&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Tn=W,En=String,An=TypeError,xn=function(t){if(Tn(t))return t;throw An(En(t)+" is not an object")},Mn=u,Fn=yn,In=Pn,Cn=xn,Dn=an,Ln=TypeError,Nn=Object.defineProperty,_n=Object.getOwnPropertyDescriptor,kn="enumerable",zn="configurable",Rn="writable";jn.f=Mn?In?function(t,n,e){if(Cn(t),n=Dn(n),Cn(e),"function"==typeof t&&"prototype"===n&&"value"in e&&Rn in e&&!e[Rn]){var r=_n(t,n);r&&r[Rn]&&(t[n]=e.value,e={configurable:zn in e?e[zn]:r[zn],enumerable:kn in e?e[kn]:r[kn],writable:!1})}return Nn(t,n,e)}:Nn:function(t,n,e){if(Cn(t),n=Dn(n),Cn(e),Fn)try{return Nn(t,n,e)}catch(t){}if("get"in e||"set"in e)throw Ln("Accessors not supported");return"value"in e&&(t[n]=e.value),t};var Bn=jn,Gn=g,qn=u?function(t,n,e){return Bn.f(t,n,Gn(1,e))}:function(t,n,e){return t[n]=e,t},Hn={exports:{}},Un=u,Wn=kt,Kn=Function.prototype,Qn=Un&&Object.getOwnPropertyDescriptor,Vn=Wn(Kn,"name"),Xn={EXISTS:Vn,PROPER:Vn&&"something"===function(){}.name,CONFIGURABLE:Vn&&(!Un||Un&&Qn(Kn,"name").configurable)},Yn=q,$n=Mt,Jn=O(Function.toString);Yn($n.inspectSource)||($n.inspectSource=function(t){return Jn(t)});var Zn,te,ne,ee=$n.inspectSource,re=q,oe=r.WeakMap,ie=re(oe)&&/native code/.test(String(oe)),ue=qt,ce=It("keys"),ae={},fe=ie,le=r,se=W,pe=qn,ye=kt,be=Mt,de=function(t){return ce[t]||(ce[t]=ue(t))},ve=ae,ge="Object already initialized",he=le.TypeError,me=le.WeakMap;if(fe||be.state){var Se=be.state||(be.state=new me);Se.get=Se.get,Se.has=Se.has,Se.set=Se.set,Zn=function(t,n){if(Se.has(t))throw he(ge);return n.facade=t,Se.set(t,n),n},te=function(t){return Se.get(t)||{}},ne=function(t){return Se.has(t)}}else{var we=de("state");ve[we]=!0,Zn=function(t,n){if(ye(t,we))throw he(ge);return n.facade=t,pe(t,we,n),n},te=function(t){return ye(t,we)?t[we]:{}},ne=function(t){return ye(t,we)}}var Oe={set:Zn,get:te,has:ne,enforce:function(t){return ne(t)?te(t):Zn(t,{})},getterFor:function(t){return function(n){var e;if(!se(n)||(e=te(n)).type!==t)throw he("Incompatible receiver, "+t+" required");return e}}},je=O,Pe=i,Te=q,Ee=kt,Ae=u,xe=Xn.CONFIGURABLE,Me=ee,Fe=Oe.enforce,Ie=Oe.get,Ce=String,De=Object.defineProperty,Le=je("".slice),Ne=je("".replace),_e=je([].join),ke=Ae&&!Pe((function(){return 8!==De((function(){}),"length",{value:8}).length})),ze=String(String).split("String"),Re=Hn.exports=function(t,n,e){"Symbol("===Le(Ce(n),0,7)&&(n="["+Ne(Ce(n),/^Symbol\(([^)]*)\)/,"$1")+"]"),e&&e.getter&&(n="get "+n),e&&e.setter&&(n="set "+n),(!Ee(t,"name")||xe&&t.name!==n)&&(Ae?De(t,"name",{value:n,configurable:!0}):t.name=n),ke&&e&&Ee(e,"arity")&&t.length!==e.arity&&De(t,"length",{value:e.arity});try{e&&Ee(e,"constructor")&&e.constructor?Ae&&De(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=Fe(t);return Ee(r,"source")||(r.source=_e(ze,"string"==typeof n?n:"")),t};Function.prototype.toString=Re((function(){return Te(this)&&Ie(this).source||Me(this)}),"toString");var Be=Hn.exports,Ge=q,qe=jn,He=Be,Ue=Et,We={},Ke=Math.ceil,Qe=Math.floor,Ve=Math.trunc||function(t){var n=+t;return(n>0?Qe:Ke)(n)},Xe=function(t){var n=+t;return n!=n||0===n?0:Ve(n)},Ye=Xe,$e=Math.max,Je=Math.min,Ze=Xe,tr=Math.min,nr=function(t){return t>0?tr(Ze(t),9007199254740991):0},er=function(t){return nr(t.length)},rr=z,or=function(t,n){var e=Ye(t);return e<0?$e(e+n,0):Je(e,n)},ir=er,ur=function(t){return function(n,e,r){var o,i=rr(n),u=ir(i),c=or(r,u);if(t&&e!=e){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===e)return t||c||0;return!t&&-1}},cr={includes:ur(!0),indexOf:ur(!1)},ar=kt,fr=z,lr=cr.indexOf,sr=ae,pr=O([].push),yr=function(t,n){var e,r=fr(t),o=0,i=[];for(e in r)!ar(sr,e)&&ar(r,e)&&pr(i,e);for(;n.length>o;)ar(r,e=n[o++])&&(~lr(i,e)||pr(i,e));return i},br=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");We.f=Object.getOwnPropertyNames||function(t){return yr(t,br)};var dr={};dr.f=Object.getOwnPropertySymbols;var vr=V,gr=We,hr=dr,mr=xn,Sr=O([].concat),wr=vr("Reflect","ownKeys")||function(t){var n=gr.f(mr(t)),e=hr.f;return e?Sr(n,e(t)):n},Or=kt,jr=wr,Pr=o,Tr=jn,Er=i,Ar=q,xr=/#|\.prototype\./,Mr=function(t,n){var e=Ir[Fr(t)];return e==Dr||e!=Cr&&(Ar(n)?Er(n):!!n)},Fr=Mr.normalize=function(t){return String(t).replace(xr,".").toLowerCase()},Ir=Mr.data={},Cr=Mr.NATIVE="N",Dr=Mr.POLYFILL="P",Lr=Mr,Nr=r,_r=o.f,kr=qn,zr=function(t,n,e,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:n;if(Ge(e)&&He(e,i,r),r.global)o?t[n]=e:Ue(n,e);else{try{r.unsafe?t[n]&&(o=!0):delete t[n]}catch(t){}o?t[n]=e:qe.f(t,n,{value:e,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},Rr=Et,Br=function(t,n,e){for(var r=jr(n),o=Tr.f,i=Pr.f,u=0;u9007199254740991)throw Ur("Maximum allowed index exceeded");return t},Co=function(t,n,e){var r=Wr(n);r in t?Kr.f(t,r,Qr(0,e)):t[r]=e},Do=function(t,n){return new(wo(t))(0===n?0:n)},Lo=function(t){return jo>=51||!Oo((function(){var n=[];return(n.constructor={})[Po]=function(){return{foo:1}},1!==n[t](Boolean).foo}))},No=et,_o=$t("isConcatSpreadable"),ko=No>=51||!Eo((function(){var t=[];return t[_o]=!1,t.concat()[0]!==t})),zo=function(t){if(!xo(t))return!1;var n=t[_o];return void 0!==n?!!n:Ao(t)};To({target:"Array",proto:!0,arity:1,forced:!ko||!Lo("concat")},{concat:function(t){var n,e,r,o,i,u=Mo(this),c=Do(u,0),a=0;for(n=-1,r=arguments.length;n 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 && userAgent) { + match = userAgent.match(/Edge\/(\d+)/); + if (!match || match[1] >= 74) { + match = userAgent.match(/Chrome\/(\d+)/); + if (match) version = +match[1]; + } + } + + var engineV8Version = version; + + /* eslint-disable es/no-symbol -- required for testing */ + + var V8_VERSION$2 = engineV8Version; + var fails$7 = fails$b; + var global$8 = global$b; + + var $String$3 = global$8.String; + + // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing + var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$7(function () { + var symbol = Symbol(); + // 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$3(symbol) || !(Object(symbol) instanceof Symbol) || + // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances + !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41; + }); + + /* eslint-disable es/no-symbol -- required for testing */ + + var NATIVE_SYMBOL$1 = symbolConstructorDetection; + + var useSymbolAsUid = NATIVE_SYMBOL$1 + && !Symbol.sham + && typeof Symbol.iterator == 'symbol'; + + var getBuiltIn$2 = getBuiltIn$3; + var isCallable$9 = isCallable$c; + var isPrototypeOf = objectIsPrototypeOf; + var USE_SYMBOL_AS_UID$1 = useSymbolAsUid; + + var $Object$2 = Object; + + var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) { + return typeof it == 'symbol'; + } : function (it) { + var $Symbol = getBuiltIn$2('Symbol'); + return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it)); + }; + + var $String$2 = String; + + var tryToString$1 = function (argument) { + try { + return $String$2(argument); + } catch (error) { + return 'Object'; + } + }; + + var isCallable$8 = isCallable$c; + var tryToString = tryToString$1; + + var $TypeError$5 = TypeError; + + // `Assert: IsCallable(argument) is true` + var aCallable$1 = function (argument) { + if (isCallable$8(argument)) return argument; + throw $TypeError$5(tryToString(argument) + ' is not a function'); + }; + + var aCallable = aCallable$1; + var isNullOrUndefined = isNullOrUndefined$2; + + // `GetMethod` abstract operation + // https://tc39.es/ecma262/#sec-getmethod + var getMethod$1 = function (V, P) { + var func = V[P]; + return isNullOrUndefined(func) ? undefined : aCallable(func); + }; + + var call$2 = functionCall; + var isCallable$7 = isCallable$c; + var isObject$6 = isObject$7; + + var $TypeError$4 = TypeError; + + // `OrdinaryToPrimitive` abstract operation + // https://tc39.es/ecma262/#sec-ordinarytoprimitive + var ordinaryToPrimitive$1 = function (input, pref) { + var fn, val; + if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val; + if (isCallable$7(fn = input.valueOf) && !isObject$6(val = call$2(fn, input))) return val; + if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val; + throw $TypeError$4("Can't convert object to primitive value"); + }; + + var shared$3 = {exports: {}}; + + var global$7 = global$b; + + // eslint-disable-next-line es/no-object-defineproperty -- safe + var defineProperty$1 = Object.defineProperty; + + var defineGlobalProperty$3 = function (key, value) { + try { + defineProperty$1(global$7, key, { value: value, configurable: true, writable: true }); + } catch (error) { + global$7[key] = value; + } return value; + }; + + var global$6 = global$b; + var defineGlobalProperty$2 = defineGlobalProperty$3; + + var SHARED = '__core-js_shared__'; + var store$3 = global$6[SHARED] || defineGlobalProperty$2(SHARED, {}); + + var sharedStore = store$3; + + var store$2 = sharedStore; + + (shared$3.exports = function (key, value) { + return store$2[key] || (store$2[key] = value !== undefined ? value : {}); + })('versions', []).push({ + version: '3.30.2', + mode: 'global', + copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)', + license: 'https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE', + source: 'https://github.com/zloirock/core-js' + }); + + var sharedExports = shared$3.exports; + + var requireObjectCoercible = requireObjectCoercible$2; + + var $Object$1 = Object; + + // `ToObject` abstract operation + // https://tc39.es/ecma262/#sec-toobject + var toObject$2 = function (argument) { + return $Object$1(requireObjectCoercible(argument)); + }; + + var uncurryThis$6 = functionUncurryThis; + var toObject$1 = toObject$2; + + var hasOwnProperty = uncurryThis$6({}.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$1(it), key); + }; + + var uncurryThis$5 = functionUncurryThis; + + var id = 0; + var postfix = Math.random(); + var toString = uncurryThis$5(1.0.toString); + + var uid$2 = function (key) { + return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36); + }; + + var global$5 = global$b; + var shared$2 = sharedExports; + var hasOwn$6 = hasOwnProperty_1; + var uid$1 = uid$2; + var NATIVE_SYMBOL = symbolConstructorDetection; + var USE_SYMBOL_AS_UID = useSymbolAsUid; + + var Symbol$1 = global$5.Symbol; + var WellKnownSymbolsStore = shared$2('wks'); + var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1; + + var wellKnownSymbol$6 = function (name) { + if (!hasOwn$6(WellKnownSymbolsStore, name)) { + WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name) + ? Symbol$1[name] + : createWellKnownSymbol('Symbol.' + name); + } return WellKnownSymbolsStore[name]; + }; + + var call$1 = functionCall; + var isObject$5 = isObject$7; + var isSymbol$1 = isSymbol$2; + var getMethod = getMethod$1; + var ordinaryToPrimitive = ordinaryToPrimitive$1; + var wellKnownSymbol$5 = wellKnownSymbol$6; + + var $TypeError$3 = TypeError; + var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive'); + + // `ToPrimitive` abstract operation + // https://tc39.es/ecma262/#sec-toprimitive + var toPrimitive$1 = function (input, pref) { + if (!isObject$5(input) || isSymbol$1(input)) return input; + var exoticToPrim = getMethod(input, TO_PRIMITIVE); + var result; + if (exoticToPrim) { + if (pref === undefined) pref = 'default'; + result = call$1(exoticToPrim, input, pref); + if (!isObject$5(result) || isSymbol$1(result)) return result; + throw $TypeError$3("Can't convert object to primitive value"); + } + if (pref === undefined) pref = 'number'; + return ordinaryToPrimitive(input, pref); + }; + + var toPrimitive = toPrimitive$1; + var isSymbol = isSymbol$2; + + // `ToPropertyKey` abstract operation + // https://tc39.es/ecma262/#sec-topropertykey + var toPropertyKey$3 = function (argument) { + var key = toPrimitive(argument, 'string'); + return isSymbol(key) ? key : key + ''; + }; + + var global$4 = global$b; + var isObject$4 = isObject$7; + + var document$1 = global$4.document; + // typeof document.createElement is 'object' in old IE + var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement); + + var documentCreateElement = function (it) { + return EXISTS$1 ? document$1.createElement(it) : {}; + }; + + var DESCRIPTORS$6 = descriptors; + var fails$6 = fails$b; + var createElement = documentCreateElement; + + // Thanks to IE8 for its funny defineProperty + var ie8DomDefine = !DESCRIPTORS$6 && !fails$6(function () { + // eslint-disable-next-line es/no-object-defineproperty -- required for testing + return Object.defineProperty(createElement('div'), 'a', { + get: function () { return 7; } + }).a != 7; + }); + + var DESCRIPTORS$5 = descriptors; + var call = functionCall; + var propertyIsEnumerableModule = objectPropertyIsEnumerable; + var createPropertyDescriptor$2 = createPropertyDescriptor$3; + var toIndexedObject$2 = toIndexedObject$3; + var toPropertyKey$2 = toPropertyKey$3; + var hasOwn$5 = hasOwnProperty_1; + var IE8_DOM_DEFINE$1 = ie8DomDefine; + + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; + + // `Object.getOwnPropertyDescriptor` method + // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor + objectGetOwnPropertyDescriptor.f = DESCRIPTORS$5 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) { + O = toIndexedObject$2(O); + P = toPropertyKey$2(P); + if (IE8_DOM_DEFINE$1) try { + return $getOwnPropertyDescriptor$1(O, P); + } catch (error) { /* empty */ } + if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call(propertyIsEnumerableModule.f, O, P), O[P]); + }; + + var objectDefineProperty = {}; + + var DESCRIPTORS$4 = descriptors; + var fails$5 = fails$b; + + // V8 ~ Chrome 36- + // https://bugs.chromium.org/p/v8/issues/detail?id=3334 + var v8PrototypeDefineBug = DESCRIPTORS$4 && fails$5(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$3 = isObject$7; + + var $String$1 = String; + var $TypeError$2 = TypeError; + + // `Assert: Type(argument) is Object` + var anObject$2 = function (argument) { + if (isObject$3(argument)) return argument; + throw $TypeError$2($String$1(argument) + ' is not an object'); + }; + + var DESCRIPTORS$3 = descriptors; + var IE8_DOM_DEFINE = ie8DomDefine; + var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug; + var anObject$1 = anObject$2; + var toPropertyKey$1 = toPropertyKey$3; + + var $TypeError$1 = TypeError; + // eslint-disable-next-line es/no-object-defineproperty -- safe + var $defineProperty = Object.defineProperty; + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var $getOwnPropertyDescriptor = 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$3 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) { + anObject$1(O); + P = toPropertyKey$1(P); + anObject$1(Attributes); + if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) { + var current = $getOwnPropertyDescriptor(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(O, P, Attributes); + } : $defineProperty : function defineProperty(O, P, Attributes) { + anObject$1(O); + P = toPropertyKey$1(P); + anObject$1(Attributes); + if (IE8_DOM_DEFINE) try { + return $defineProperty(O, P, Attributes); + } catch (error) { /* empty */ } + if ('get' in Attributes || 'set' in Attributes) throw $TypeError$1('Accessors not supported'); + if ('value' in Attributes) O[P] = Attributes.value; + return O; + }; + + var DESCRIPTORS$2 = descriptors; + var definePropertyModule$3 = objectDefineProperty; + var createPropertyDescriptor$1 = createPropertyDescriptor$3; + + var createNonEnumerableProperty$2 = DESCRIPTORS$2 ? function (object, key, value) { + return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value)); + } : function (object, key, value) { + object[key] = value; + return object; + }; + + var makeBuiltIn$2 = {exports: {}}; + + var DESCRIPTORS$1 = descriptors; + var hasOwn$4 = hasOwnProperty_1; + + var FunctionPrototype = Function.prototype; + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var getDescriptor = DESCRIPTORS$1 && Object.getOwnPropertyDescriptor; + + var EXISTS = hasOwn$4(FunctionPrototype, 'name'); + // additional protection from minified / mangled / dropped function names + var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something'; + var CONFIGURABLE = EXISTS && (!DESCRIPTORS$1 || (DESCRIPTORS$1 && getDescriptor(FunctionPrototype, 'name').configurable)); + + var functionName = { + EXISTS: EXISTS, + PROPER: PROPER, + CONFIGURABLE: CONFIGURABLE + }; + + var uncurryThis$4 = functionUncurryThis; + var isCallable$6 = isCallable$c; + var store$1 = sharedStore; + + var functionToString = uncurryThis$4(Function.toString); + + // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper + if (!isCallable$6(store$1.inspectSource)) { + store$1.inspectSource = function (it) { + return functionToString(it); + }; + } + + var inspectSource$2 = store$1.inspectSource; + + var global$3 = global$b; + var isCallable$5 = isCallable$c; + + var WeakMap$1 = global$3.WeakMap; + + var weakMapBasicDetection = isCallable$5(WeakMap$1) && /native code/.test(String(WeakMap$1)); + + var shared$1 = sharedExports; + var uid = uid$2; + + var keys = shared$1('keys'); + + var sharedKey$1 = function (key) { + return keys[key] || (keys[key] = uid(key)); + }; + + var hiddenKeys$3 = {}; + + var NATIVE_WEAK_MAP = weakMapBasicDetection; + var global$2 = global$b; + var isObject$2 = isObject$7; + var createNonEnumerableProperty$1 = createNonEnumerableProperty$2; + var hasOwn$3 = hasOwnProperty_1; + var shared = sharedStore; + var sharedKey = sharedKey$1; + var hiddenKeys$2 = hiddenKeys$3; + + var OBJECT_ALREADY_INITIALIZED = 'Object already initialized'; + var TypeError$1 = global$2.TypeError; + var WeakMap = global$2.WeakMap; + var set, get, has; + + var enforce = function (it) { + return has(it) ? get(it) : set(it, {}); + }; + + var getterFor = function (TYPE) { + return function (it) { + var state; + if (!isObject$2(it) || (state = get(it)).type !== TYPE) { + throw TypeError$1('Incompatible receiver, ' + TYPE + ' required'); + } return state; + }; + }; + + if (NATIVE_WEAK_MAP || shared.state) { + var store = shared.state || (shared.state = new WeakMap()); + /* 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 = function (it, metadata) { + if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED); + metadata.facade = it; + store.set(it, metadata); + return metadata; + }; + get = function (it) { + return store.get(it) || {}; + }; + has = function (it) { + return store.has(it); + }; + } else { + var STATE = sharedKey('state'); + hiddenKeys$2[STATE] = true; + set = function (it, metadata) { + if (hasOwn$3(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED); + metadata.facade = it; + createNonEnumerableProperty$1(it, STATE, metadata); + return metadata; + }; + get = function (it) { + return hasOwn$3(it, STATE) ? it[STATE] : {}; + }; + has = function (it) { + return hasOwn$3(it, STATE); + }; + } + + var internalState = { + set: set, + get: get, + has: has, + enforce: enforce, + getterFor: getterFor + }; + + var uncurryThis$3 = functionUncurryThis; + var fails$4 = fails$b; + var isCallable$4 = isCallable$c; + var hasOwn$2 = hasOwnProperty_1; + var DESCRIPTORS = descriptors; + var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE; + var inspectSource$1 = inspectSource$2; + var InternalStateModule = internalState; + + var enforceInternalState = InternalStateModule.enforce; + var getInternalState = InternalStateModule.get; + var $String = String; + // eslint-disable-next-line es/no-object-defineproperty -- safe + var defineProperty = Object.defineProperty; + var stringSlice = uncurryThis$3(''.slice); + var replace = uncurryThis$3(''.replace); + var join = uncurryThis$3([].join); + + var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails$4(function () { + return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8; + }); + + var TEMPLATE = String(String).split('String'); + + var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) { + if (stringSlice($String(name), 0, 7) === 'Symbol(') { + name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']'; + } + if (options && options.getter) name = 'get ' + name; + if (options && options.setter) name = 'set ' + name; + if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) { + if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true }); + else value.name = name; + } + if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) { + defineProperty(value, 'length', { value: options.arity }); + } + try { + if (options && hasOwn$2(options, 'constructor') && options.constructor) { + if (DESCRIPTORS) defineProperty(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(value); + if (!hasOwn$2(state, 'source')) { + state.source = join(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$1(function toString() { + return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this); + }, 'toString'); + + var makeBuiltInExports = makeBuiltIn$2.exports; + + var isCallable$3 = isCallable$c; + var definePropertyModule$2 = objectDefineProperty; + var makeBuiltIn = makeBuiltInExports; + var defineGlobalProperty$1 = defineGlobalProperty$3; + + var defineBuiltIn$1 = function (O, key, value, options) { + if (!options) options = {}; + var simple = options.enumerable; + var name = options.name !== undefined ? options.name : key; + if (isCallable$3(value)) makeBuiltIn(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$2.f(O, key, { + value: value, + enumerable: false, + configurable: !options.nonConfigurable, + writable: !options.nonWritable + }); + } return O; + }; + + var objectGetOwnPropertyNames = {}; + + var ceil = Math.ceil; + var floor = 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 : ceil)(n); + }; + + var trunc = mathTrunc; + + // `ToIntegerOrInfinity` abstract operation + // https://tc39.es/ecma262/#sec-tointegerorinfinity + var toIntegerOrInfinity$2 = function (argument) { + var number = +argument; + // eslint-disable-next-line no-self-compare -- NaN check + return number !== number || number === 0 ? 0 : trunc(number); + }; + + var toIntegerOrInfinity$1 = toIntegerOrInfinity$2; + + var max = Math.max; + var min$1 = 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$1 = function (index, length) { + var integer = toIntegerOrInfinity$1(index); + return integer < 0 ? max(integer + length, 0) : min$1(integer, length); + }; + + var toIntegerOrInfinity = toIntegerOrInfinity$2; + + var min = Math.min; + + // `ToLength` abstract operation + // https://tc39.es/ecma262/#sec-tolength + var toLength$1 = function (argument) { + return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 + }; + + var toLength = toLength$1; + + // `LengthOfArrayLike` abstract operation + // https://tc39.es/ecma262/#sec-lengthofarraylike + var lengthOfArrayLike$2 = function (obj) { + return toLength(obj.length); + }; + + var toIndexedObject$1 = toIndexedObject$3; + var toAbsoluteIndex = toAbsoluteIndex$1; + var lengthOfArrayLike$1 = lengthOfArrayLike$2; + + // `Array.prototype.{ indexOf, includes }` methods implementation + var createMethod = function (IS_INCLUDES) { + return function ($this, el, fromIndex) { + var O = toIndexedObject$1($this); + var length = lengthOfArrayLike$1(O); + var index = toAbsoluteIndex(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(true), + // `Array.prototype.indexOf` method + // https://tc39.es/ecma262/#sec-array.prototype.indexof + indexOf: createMethod(false) + }; + + var uncurryThis$2 = functionUncurryThis; + var hasOwn$1 = hasOwnProperty_1; + var toIndexedObject = toIndexedObject$3; + var indexOf = arrayIncludes.indexOf; + var hiddenKeys$1 = hiddenKeys$3; + + var push = uncurryThis$2([].push); + + var objectKeysInternal = function (object, names) { + var O = toIndexedObject(object); + var i = 0; + var result = []; + var key; + for (key in O) !hasOwn$1(hiddenKeys$1, key) && hasOwn$1(O, key) && push(result, key); + // Don't enum bug & hidden keys + while (names.length > i) if (hasOwn$1(O, key = names[i++])) { + ~indexOf(result, key) || push(result, key); + } + return result; + }; + + // IE8- don't enum bug keys + var enumBugKeys$1 = [ + 'constructor', + 'hasOwnProperty', + 'isPrototypeOf', + 'propertyIsEnumerable', + 'toLocaleString', + 'toString', + 'valueOf' + ]; + + var internalObjectKeys = objectKeysInternal; + var enumBugKeys = enumBugKeys$1; + + var hiddenKeys = enumBugKeys.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(O, hiddenKeys); + }; + + var objectGetOwnPropertySymbols = {}; + + // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe + objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols; + + var getBuiltIn$1 = getBuiltIn$3; + var uncurryThis$1 = functionUncurryThis; + var getOwnPropertyNamesModule = objectGetOwnPropertyNames; + var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols; + var anObject = anObject$2; + + var concat = uncurryThis$1([].concat); + + // all object keys, includes non-enumerable and symbols + var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) { + var keys = getOwnPropertyNamesModule.f(anObject(it)); + var getOwnPropertySymbols = getOwnPropertySymbolsModule.f; + return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys; + }; + + var hasOwn = hasOwnProperty_1; + var ownKeys = ownKeys$1; + var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor; + var definePropertyModule$1 = objectDefineProperty; + + var copyConstructorProperties$1 = function (target, source, exceptions) { + var keys = ownKeys(source); + var defineProperty = definePropertyModule$1.f; + var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) { + defineProperty(target, key, getOwnPropertyDescriptor(source, key)); + } + } + }; + + var fails$3 = fails$b; + var isCallable$2 = isCallable$c; + + var replacement = /#|\.prototype\./; + + var isForced$1 = function (feature, detection) { + var value = data[normalize(feature)]; + return value == POLYFILL ? true + : value == NATIVE ? false + : isCallable$2(detection) ? fails$3(detection) + : !!detection; + }; + + var normalize = isForced$1.normalize = function (string) { + return String(string).replace(replacement, '.').toLowerCase(); + }; + + var data = isForced$1.data = {}; + var NATIVE = isForced$1.NATIVE = 'N'; + var POLYFILL = isForced$1.POLYFILL = 'P'; + + var isForced_1 = isForced$1; + + var global$1 = global$b; + var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f; + var createNonEnumerableProperty = createNonEnumerableProperty$2; + var defineBuiltIn = defineBuiltIn$1; + var defineGlobalProperty = defineGlobalProperty$3; + var copyConstructorProperties = copyConstructorProperties$1; + var isForced = 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 = global$1; + } else if (STATIC) { + target = global$1[TARGET] || defineGlobalProperty(TARGET, {}); + } else { + target = (global$1[TARGET] || {}).prototype; + } + if (target) for (key in source) { + sourceProperty = source[key]; + if (options.dontCallGetSet) { + descriptor = getOwnPropertyDescriptor(target, key); + targetProperty = descriptor && descriptor.value; + } else targetProperty = target[key]; + FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); + // contained in target + if (!FORCED && targetProperty !== undefined) { + if (typeof sourceProperty == typeof targetProperty) continue; + copyConstructorProperties(sourceProperty, targetProperty); + } + // add a flag to not completely full polyfills + if (options.sham || (targetProperty && targetProperty.sham)) { + createNonEnumerableProperty(sourceProperty, 'sham', true); + } + defineBuiltIn(target, key, sourceProperty, options); + } + }; + + var classof$2 = classofRaw$1; + + // `IsArray` abstract operation + // https://tc39.es/ecma262/#sec-isarray + // eslint-disable-next-line es/no-array-isarray -- safe + var isArray$2 = Array.isArray || function isArray(argument) { + return classof$2(argument) == 'Array'; + }; + + var $TypeError = TypeError; + var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991 + + var doesNotExceedSafeInteger$1 = function (it) { + if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded'); + return it; + }; + + var toPropertyKey = toPropertyKey$3; + var definePropertyModule = objectDefineProperty; + var createPropertyDescriptor = createPropertyDescriptor$3; + + var createProperty$1 = function (object, key, value) { + var propertyKey = toPropertyKey(key); + if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value)); + else object[propertyKey] = value; + }; + + var wellKnownSymbol$4 = wellKnownSymbol$6; + + var TO_STRING_TAG$1 = wellKnownSymbol$4('toStringTag'); + var test = {}; + + test[TO_STRING_TAG$1] = 'z'; + + var toStringTagSupport = String(test) === '[object z]'; + + var TO_STRING_TAG_SUPPORT = toStringTagSupport; + var isCallable$1 = isCallable$c; + var classofRaw = classofRaw$1; + var wellKnownSymbol$3 = wellKnownSymbol$6; + + var TO_STRING_TAG = wellKnownSymbol$3('toStringTag'); + var $Object = Object; + + // ES3 wrong here + var CORRECT_ARGUMENTS = classofRaw(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$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) { + var O, tag, result; + return it === undefined ? 'Undefined' : it === null ? 'Null' + // @@toStringTag case + : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag + // builtinTag case + : CORRECT_ARGUMENTS ? classofRaw(O) + // ES3 arguments fallback + : (result = classofRaw(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result; + }; + + var uncurryThis = functionUncurryThis; + var fails$2 = fails$b; + var isCallable = isCallable$c; + var classof = classof$1; + var getBuiltIn = getBuiltIn$3; + var inspectSource = inspectSource$2; + + var noop = function () { /* empty */ }; + var empty = []; + var construct = getBuiltIn('Reflect', 'construct'); + var constructorRegExp = /^\s*(?:class|function)\b/; + var exec = uncurryThis(constructorRegExp.exec); + var INCORRECT_TO_STRING = !constructorRegExp.exec(noop); + + var isConstructorModern = function isConstructor(argument) { + if (!isCallable(argument)) return false; + try { + construct(noop, empty, argument); + return true; + } catch (error) { + return false; + } + }; + + var isConstructorLegacy = function isConstructor(argument) { + if (!isCallable(argument)) return false; + switch (classof(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 || !!exec(constructorRegExp, inspectSource(argument)); + } catch (error) { + return true; + } + }; + + isConstructorLegacy.sham = true; + + // `IsConstructor` abstract operation + // https://tc39.es/ecma262/#sec-isconstructor + var isConstructor$1 = !construct || fails$2(function () { + var called; + return isConstructorModern(isConstructorModern.call) + || !isConstructorModern(Object) + || !isConstructorModern(function () { called = true; }) + || called; + }) ? isConstructorLegacy : isConstructorModern; + + var isArray$1 = isArray$2; + var isConstructor = isConstructor$1; + var isObject$1 = isObject$7; + var wellKnownSymbol$2 = wellKnownSymbol$6; + + var SPECIES$1 = wellKnownSymbol$2('species'); + var $Array = Array; + + // a part of `ArraySpeciesCreate` abstract operation + // https://tc39.es/ecma262/#sec-arrayspeciescreate + var arraySpeciesConstructor$1 = function (originalArray) { + var C; + if (isArray$1(originalArray)) { + C = originalArray.constructor; + // cross-realm fallback + if (isConstructor(C) && (C === $Array || isArray$1(C.prototype))) C = undefined; + else if (isObject$1(C)) { + C = C[SPECIES$1]; + if (C === null) C = undefined; + } + } return C === undefined ? $Array : C; + }; + + var arraySpeciesConstructor = arraySpeciesConstructor$1; + + // `ArraySpeciesCreate` abstract operation + // https://tc39.es/ecma262/#sec-arrayspeciescreate + var arraySpeciesCreate$1 = function (originalArray, length) { + return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length); + }; + + var fails$1 = fails$b; + var wellKnownSymbol$1 = wellKnownSymbol$6; + var V8_VERSION$1 = engineV8Version; + + var SPECIES = wellKnownSymbol$1('species'); + + var arrayMethodHasSpeciesSupport$1 = function (METHOD_NAME) { + // We can't use this feature detection in V8 since it causes + // deoptimization and serious performance degradation + // https://github.com/zloirock/core-js/issues/677 + return V8_VERSION$1 >= 51 || !fails$1(function () { + var array = []; + var constructor = array.constructor = {}; + constructor[SPECIES] = function () { + return { foo: 1 }; + }; + return array[METHOD_NAME](Boolean).foo !== 1; + }); + }; + + var $ = _export; + var fails = fails$b; + var isArray = isArray$2; + var isObject = isObject$7; + var toObject = toObject$2; + var lengthOfArrayLike = lengthOfArrayLike$2; + var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1; + var createProperty = createProperty$1; + var arraySpeciesCreate = arraySpeciesCreate$1; + var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1; + var wellKnownSymbol = wellKnownSymbol$6; + var V8_VERSION = engineV8Version; + + var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable'); + + // We can't use this feature detection in V8 since it causes + // deoptimization and serious performance degradation + // https://github.com/zloirock/core-js/issues/679 + var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () { + var array = []; + array[IS_CONCAT_SPREADABLE] = false; + return array.concat()[0] !== array; + }); + + var isConcatSpreadable = function (O) { + if (!isObject(O)) return false; + var spreadable = O[IS_CONCAT_SPREADABLE]; + return spreadable !== undefined ? !!spreadable : isArray(O); + }; + + var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat'); + + // `Array.prototype.concat` method + // https://tc39.es/ecma262/#sec-array.prototype.concat + // with adding support of @@isConcatSpreadable and @@species + $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, { + // eslint-disable-next-line no-unused-vars -- required for `.length` + concat: function concat(arg) { + var O = toObject(this); + var A = arraySpeciesCreate(O, 0); + var n = 0; + var i, k, length, len, E; + for (i = -1, length = arguments.length; i < length; i++) { + E = i === -1 ? O : arguments[i]; + if (isConcatSpreadable(E)) { + len = lengthOfArrayLike(E); + doesNotExceedSafeInteger(n + len); + for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]); + } else { + doesNotExceedSafeInteger(n + 1); + createProperty(A, n++, E); + } + } + A.length = n; + return A; + } + }); + + /** + * Multiple Select ru-RU translation + * Author: Zhixin Wen + */ + + $$1.fn.multipleSelect.locales['ru-RU'] = { + formatSelectAll: function formatSelectAll() { + return '[Выбрать все]'; + }, + formatAllSelected: function formatAllSelected() { + return 'Выбрано все'; + }, + formatCountSelected: function formatCountSelected(count, total) { + return "".concat(count, " \u0438\u0437 ").concat(total, " \u0432\u044B\u0431\u0440\u0430\u043D\u043E"); + }, + formatNoMatchesFound: function formatNoMatchesFound() { + return 'Совпадений не найдено'; + } + }; + $$1.extend($$1.fn.multipleSelect.defaults, $$1.fn.multipleSelect.locales['ru-RU']); + +})); diff --git a/dist/locale/multiple-select-ru-RU.min.js b/dist/locale/multiple-select-ru-RU.min.js new file mode 100644 index 00000000..f057f1f0 --- /dev/null +++ b/dist/locale/multiple-select-ru-RU.min.js @@ -0,0 +1,10 @@ +/** + * multiple-select - Multiple select is a jQuery plugin to select multiple elements with checkboxes :). + * + * @version v1.6.0 + * @homepage http://multiple-select.wenzhixin.net.cn + * @author wenzhixin (http://wenzhixin.net.cn/) + * @license MIT + */ + +!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=function(t){return t&&t.Math==Math&&t},e=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n&&n)||function(){return this}()||n||Function("return this")(),o={},i=function(t){try{return!!t()}catch(t){return!0}},u=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=c,a=Function.prototype.call,l=f?a.bind(a):function(){return a.apply(a,arguments)},s={},p={}.propertyIsEnumerable,y=Object.getOwnPropertyDescriptor,b=y&&!p.call({1:2},1);s.f=b?function(t){var n=y(this,t);return!!n&&n.enumerable}:p;var v,g,d=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},h=c,m=Function.prototype,S=m.call,w=h&&m.bind.bind(S,S),O=h?w:function(t){return function(){return S.apply(t,arguments)}},j=O,P=j({}.toString),E=j("".slice),T=function(t){return E(P(t),8,-1)},A=i,x=T,M=Object,F=O("".split),I=A((function(){return!M("z").propertyIsEnumerable(0)}))?function(t){return"String"==x(t)?F(t,""):M(t)}:M,C=function(t){return null==t},D=C,L=TypeError,_=function(t){if(D(t))throw L("Can't call method on "+t);return t},k=I,z=_,N=function(t){return k(z(t))},R="object"==typeof document&&document.all,G={all:R,IS_HTMLDDA:void 0===R&&void 0!==R},U=G.all,q=G.IS_HTMLDDA?function(t){return"function"==typeof t||t===U}:function(t){return"function"==typeof t},B=q,H=G.all,W=G.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:B(t)||t===H}:function(t){return"object"==typeof t?null!==t:B(t)},K=e,Q=q,V=function(t,n){return arguments.length<2?(r=K[t],Q(r)?r:void 0):K[t]&&K[t][n];var r},X=O({}.isPrototypeOf),Y=e,$="undefined"!=typeof navigator&&String(navigator.userAgent)||"",J=Y.process,Z=Y.Deno,tt=J&&J.versions||Z&&Z.version,nt=tt&&tt.v8;nt&&(g=(v=nt.split("."))[0]>0&&v[0]<4?1:+(v[0]+v[1])),!g&&$&&(!(v=$.match(/Edge\/(\d+)/))||v[1]>=74)&&(v=$.match(/Chrome\/(\d+)/))&&(g=+v[1]);var rt=g,et=rt,ot=i,it=e.String,ut=!!Object.getOwnPropertySymbols&&!ot((function(){var t=Symbol();return!it(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&et&&et<41})),ct=ut&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ft=V,at=q,lt=X,st=Object,pt=ct?function(t){return"symbol"==typeof t}:function(t){var n=ft("Symbol");return at(n)&<(n.prototype,st(t))},yt=String,bt=q,vt=function(t){try{return yt(t)}catch(t){return"Object"}},gt=TypeError,dt=function(t){if(bt(t))return t;throw gt(vt(t)+" is not a function")},ht=C,mt=l,St=q,wt=W,Ot=TypeError,jt={exports:{}},Pt=e,Et=Object.defineProperty,Tt=function(t,n){try{Et(Pt,t,{value:n,configurable:!0,writable:!0})}catch(r){Pt[t]=n}return n},At=Tt,xt="__core-js_shared__",Mt=e[xt]||At(xt,{}),Ft=Mt;(jt.exports=function(t,n){return Ft[t]||(Ft[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.30.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var It=jt.exports,Ct=_,Dt=Object,Lt=function(t){return Dt(Ct(t))},_t=Lt,kt=O({}.hasOwnProperty),zt=Object.hasOwn||function(t,n){return kt(_t(t),n)},Nt=O,Rt=0,Gt=Math.random(),Ut=Nt(1..toString),qt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Ut(++Rt+Gt,36)},Bt=It,Ht=zt,Wt=qt,Kt=ut,Qt=ct,Vt=e.Symbol,Xt=Bt("wks"),Yt=Qt?Vt.for||Vt:Vt&&Vt.withoutSetter||Wt,$t=function(t){return Ht(Xt,t)||(Xt[t]=Kt&&Ht(Vt,t)?Vt[t]:Yt("Symbol."+t)),Xt[t]},Jt=l,Zt=W,tn=pt,nn=function(t,n){var r=t[n];return ht(r)?void 0:dt(r)},rn=function(t,n){var r,e;if("string"===n&&St(r=t.toString)&&!wt(e=mt(r,t)))return e;if(St(r=t.valueOf)&&!wt(e=mt(r,t)))return e;if("string"!==n&&St(r=t.toString)&&!wt(e=mt(r,t)))return e;throw Ot("Can't convert object to primitive value")},en=TypeError,on=$t("toPrimitive"),un=function(t,n){if(!Zt(t)||tn(t))return t;var r,e=nn(t,on);if(e){if(void 0===n&&(n="default"),r=Jt(e,t,n),!Zt(r)||tn(r))return r;throw en("Can't convert object to primitive value")}return void 0===n&&(n="number"),rn(t,n)},cn=pt,fn=function(t){var n=un(t,"string");return cn(n)?n:n+""},an=W,ln=e.document,sn=an(ln)&&an(ln.createElement),pn=function(t){return sn?ln.createElement(t):{}},yn=!u&&!i((function(){return 7!=Object.defineProperty(pn("div"),"a",{get:function(){return 7}}).a})),bn=u,vn=l,gn=s,dn=d,hn=N,mn=fn,Sn=zt,wn=yn,On=Object.getOwnPropertyDescriptor;o.f=bn?On:function(t,n){if(t=hn(t),n=mn(n),wn)try{return On(t,n)}catch(t){}if(Sn(t,n))return dn(!vn(gn.f,t,n),t[n])};var jn={},Pn=u&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),En=W,Tn=String,An=TypeError,xn=function(t){if(En(t))return t;throw An(Tn(t)+" is not an object")},Mn=u,Fn=yn,In=Pn,Cn=xn,Dn=fn,Ln=TypeError,_n=Object.defineProperty,kn=Object.getOwnPropertyDescriptor,zn="enumerable",Nn="configurable",Rn="writable";jn.f=Mn?In?function(t,n,r){if(Cn(t),n=Dn(n),Cn(r),"function"==typeof t&&"prototype"===n&&"value"in r&&Rn in r&&!r[Rn]){var e=kn(t,n);e&&e[Rn]&&(t[n]=r.value,r={configurable:Nn in r?r[Nn]:e[Nn],enumerable:zn in r?r[zn]:e[zn],writable:!1})}return _n(t,n,r)}:_n:function(t,n,r){if(Cn(t),n=Dn(n),Cn(r),Fn)try{return _n(t,n,r)}catch(t){}if("get"in r||"set"in r)throw Ln("Accessors not supported");return"value"in r&&(t[n]=r.value),t};var Gn=jn,Un=d,qn=u?function(t,n,r){return Gn.f(t,n,Un(1,r))}:function(t,n,r){return t[n]=r,t},Bn={exports:{}},Hn=u,Wn=zt,Kn=Function.prototype,Qn=Hn&&Object.getOwnPropertyDescriptor,Vn=Wn(Kn,"name"),Xn={EXISTS:Vn,PROPER:Vn&&"something"===function(){}.name,CONFIGURABLE:Vn&&(!Hn||Hn&&Qn(Kn,"name").configurable)},Yn=q,$n=Mt,Jn=O(Function.toString);Yn($n.inspectSource)||($n.inspectSource=function(t){return Jn(t)});var Zn,tr,nr,rr=$n.inspectSource,er=q,or=e.WeakMap,ir=er(or)&&/native code/.test(String(or)),ur=qt,cr=It("keys"),fr={},ar=ir,lr=e,sr=W,pr=qn,yr=zt,br=Mt,vr=function(t){return cr[t]||(cr[t]=ur(t))},gr=fr,dr="Object already initialized",hr=lr.TypeError,mr=lr.WeakMap;if(ar||br.state){var Sr=br.state||(br.state=new mr);Sr.get=Sr.get,Sr.has=Sr.has,Sr.set=Sr.set,Zn=function(t,n){if(Sr.has(t))throw hr(dr);return n.facade=t,Sr.set(t,n),n},tr=function(t){return Sr.get(t)||{}},nr=function(t){return Sr.has(t)}}else{var wr=vr("state");gr[wr]=!0,Zn=function(t,n){if(yr(t,wr))throw hr(dr);return n.facade=t,pr(t,wr,n),n},tr=function(t){return yr(t,wr)?t[wr]:{}},nr=function(t){return yr(t,wr)}}var Or={set:Zn,get:tr,has:nr,enforce:function(t){return nr(t)?tr(t):Zn(t,{})},getterFor:function(t){return function(n){var r;if(!sr(n)||(r=tr(n)).type!==t)throw hr("Incompatible receiver, "+t+" required");return r}}},jr=O,Pr=i,Er=q,Tr=zt,Ar=u,xr=Xn.CONFIGURABLE,Mr=rr,Fr=Or.enforce,Ir=Or.get,Cr=String,Dr=Object.defineProperty,Lr=jr("".slice),_r=jr("".replace),kr=jr([].join),zr=Ar&&!Pr((function(){return 8!==Dr((function(){}),"length",{value:8}).length})),Nr=String(String).split("String"),Rr=Bn.exports=function(t,n,r){"Symbol("===Lr(Cr(n),0,7)&&(n="["+_r(Cr(n),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(n="get "+n),r&&r.setter&&(n="set "+n),(!Tr(t,"name")||xr&&t.name!==n)&&(Ar?Dr(t,"name",{value:n,configurable:!0}):t.name=n),zr&&r&&Tr(r,"arity")&&t.length!==r.arity&&Dr(t,"length",{value:r.arity});try{r&&Tr(r,"constructor")&&r.constructor?Ar&&Dr(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var e=Fr(t);return Tr(e,"source")||(e.source=kr(Nr,"string"==typeof n?n:"")),t};Function.prototype.toString=Rr((function(){return Er(this)&&Ir(this).source||Mr(this)}),"toString");var Gr=Bn.exports,Ur=q,qr=jn,Br=Gr,Hr=Tt,Wr={},Kr=Math.ceil,Qr=Math.floor,Vr=Math.trunc||function(t){var n=+t;return(n>0?Qr:Kr)(n)},Xr=function(t){var n=+t;return n!=n||0===n?0:Vr(n)},Yr=Xr,$r=Math.max,Jr=Math.min,Zr=Xr,te=Math.min,ne=function(t){return t>0?te(Zr(t),9007199254740991):0},re=function(t){return ne(t.length)},ee=N,oe=function(t,n){var r=Yr(t);return r<0?$r(r+n,0):Jr(r,n)},ie=re,ue=function(t){return function(n,r,e){var o,i=ee(n),u=ie(i),c=oe(e,u);if(t&&r!=r){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===r)return t||c||0;return!t&&-1}},ce={includes:ue(!0),indexOf:ue(!1)},fe=zt,ae=N,le=ce.indexOf,se=fr,pe=O([].push),ye=function(t,n){var r,e=ae(t),o=0,i=[];for(r in e)!fe(se,r)&&fe(e,r)&&pe(i,r);for(;n.length>o;)fe(e,r=n[o++])&&(~le(i,r)||pe(i,r));return i},be=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");Wr.f=Object.getOwnPropertyNames||function(t){return ye(t,be)};var ve={};ve.f=Object.getOwnPropertySymbols;var ge=V,de=Wr,he=ve,me=xn,Se=O([].concat),we=ge("Reflect","ownKeys")||function(t){var n=de.f(me(t)),r=he.f;return r?Se(n,r(t)):n},Oe=zt,je=we,Pe=o,Ee=jn,Te=i,Ae=q,xe=/#|\.prototype\./,Me=function(t,n){var r=Ie[Fe(t)];return r==De||r!=Ce&&(Ae(n)?Te(n):!!n)},Fe=Me.normalize=function(t){return String(t).replace(xe,".").toLowerCase()},Ie=Me.data={},Ce=Me.NATIVE="N",De=Me.POLYFILL="P",Le=Me,_e=e,ke=o.f,ze=qn,Ne=function(t,n,r,e){e||(e={});var o=e.enumerable,i=void 0!==e.name?e.name:n;if(Ur(r)&&Br(r,i,e),e.global)o?t[n]=r:Hr(n,r);else{try{e.unsafe?t[n]&&(o=!0):delete t[n]}catch(t){}o?t[n]=r:qr.f(t,n,{value:r,enumerable:!1,configurable:!e.nonConfigurable,writable:!e.nonWritable})}return t},Re=Tt,Ge=function(t,n,r){for(var e=je(n),o=Ee.f,i=Pe.f,u=0;u9007199254740991)throw He("Maximum allowed index exceeded");return t},Co=function(t,n,r){var e=We(n);e in t?Ke.f(t,e,Qe(0,r)):t[e]=r},Do=function(t,n){return new(wo(t))(0===n?0:n)},Lo=function(t){return jo>=51||!Oo((function(){var n=[];return(n.constructor={})[Po]=function(){return{foo:1}},1!==n[t](Boolean).foo}))},_o=rt,ko=$t("isConcatSpreadable"),zo=_o>=51||!To((function(){var t=[];return t[ko]=!1,t.concat()[0]!==t})),No=function(t){if(!xo(t))return!1;var n=t[ko];return void 0!==n?!!n:Ao(t)};Eo({target:"Array",proto:!0,arity:1,forced:!zo||!Lo("concat")},{concat:function(t){var n,r,e,o,i,u=Mo(this),c=Do(u,0),f=0;for(n=-1,e=arguments.length;n 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 && userAgent) { + match = userAgent.match(/Edge\/(\d+)/); + if (!match || match[1] >= 74) { + match = userAgent.match(/Chrome\/(\d+)/); + if (match) version = +match[1]; + } + } + + var engineV8Version = version; + + /* eslint-disable es/no-symbol -- required for testing */ + + var V8_VERSION$2 = engineV8Version; + var fails$7 = fails$b; + var global$8 = global$b; + + var $String$3 = global$8.String; + + // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing + var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$7(function () { + var symbol = Symbol(); + // 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$3(symbol) || !(Object(symbol) instanceof Symbol) || + // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances + !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41; + }); + + /* eslint-disable es/no-symbol -- required for testing */ + + var NATIVE_SYMBOL$1 = symbolConstructorDetection; + + var useSymbolAsUid = NATIVE_SYMBOL$1 + && !Symbol.sham + && typeof Symbol.iterator == 'symbol'; + + var getBuiltIn$2 = getBuiltIn$3; + var isCallable$9 = isCallable$c; + var isPrototypeOf = objectIsPrototypeOf; + var USE_SYMBOL_AS_UID$1 = useSymbolAsUid; + + var $Object$2 = Object; + + var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) { + return typeof it == 'symbol'; + } : function (it) { + var $Symbol = getBuiltIn$2('Symbol'); + return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it)); + }; + + var $String$2 = String; + + var tryToString$1 = function (argument) { + try { + return $String$2(argument); + } catch (error) { + return 'Object'; + } + }; + + var isCallable$8 = isCallable$c; + var tryToString = tryToString$1; + + var $TypeError$5 = TypeError; + + // `Assert: IsCallable(argument) is true` + var aCallable$1 = function (argument) { + if (isCallable$8(argument)) return argument; + throw $TypeError$5(tryToString(argument) + ' is not a function'); + }; + + var aCallable = aCallable$1; + var isNullOrUndefined = isNullOrUndefined$2; + + // `GetMethod` abstract operation + // https://tc39.es/ecma262/#sec-getmethod + var getMethod$1 = function (V, P) { + var func = V[P]; + return isNullOrUndefined(func) ? undefined : aCallable(func); + }; + + var call$2 = functionCall; + var isCallable$7 = isCallable$c; + var isObject$6 = isObject$7; + + var $TypeError$4 = TypeError; + + // `OrdinaryToPrimitive` abstract operation + // https://tc39.es/ecma262/#sec-ordinarytoprimitive + var ordinaryToPrimitive$1 = function (input, pref) { + var fn, val; + if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val; + if (isCallable$7(fn = input.valueOf) && !isObject$6(val = call$2(fn, input))) return val; + if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val; + throw $TypeError$4("Can't convert object to primitive value"); + }; + + var shared$3 = {exports: {}}; + + var global$7 = global$b; + + // eslint-disable-next-line es/no-object-defineproperty -- safe + var defineProperty$1 = Object.defineProperty; + + var defineGlobalProperty$3 = function (key, value) { + try { + defineProperty$1(global$7, key, { value: value, configurable: true, writable: true }); + } catch (error) { + global$7[key] = value; + } return value; + }; + + var global$6 = global$b; + var defineGlobalProperty$2 = defineGlobalProperty$3; + + var SHARED = '__core-js_shared__'; + var store$3 = global$6[SHARED] || defineGlobalProperty$2(SHARED, {}); + + var sharedStore = store$3; + + var store$2 = sharedStore; + + (shared$3.exports = function (key, value) { + return store$2[key] || (store$2[key] = value !== undefined ? value : {}); + })('versions', []).push({ + version: '3.30.2', + mode: 'global', + copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)', + license: 'https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE', + source: 'https://github.com/zloirock/core-js' + }); + + var sharedExports = shared$3.exports; + + var requireObjectCoercible = requireObjectCoercible$2; + + var $Object$1 = Object; + + // `ToObject` abstract operation + // https://tc39.es/ecma262/#sec-toobject + var toObject$2 = function (argument) { + return $Object$1(requireObjectCoercible(argument)); + }; + + var uncurryThis$6 = functionUncurryThis; + var toObject$1 = toObject$2; + + var hasOwnProperty = uncurryThis$6({}.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$1(it), key); + }; + + var uncurryThis$5 = functionUncurryThis; + + var id = 0; + var postfix = Math.random(); + var toString = uncurryThis$5(1.0.toString); + + var uid$2 = function (key) { + return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36); + }; + + var global$5 = global$b; + var shared$2 = sharedExports; + var hasOwn$6 = hasOwnProperty_1; + var uid$1 = uid$2; + var NATIVE_SYMBOL = symbolConstructorDetection; + var USE_SYMBOL_AS_UID = useSymbolAsUid; + + var Symbol$1 = global$5.Symbol; + var WellKnownSymbolsStore = shared$2('wks'); + var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1; + + var wellKnownSymbol$6 = function (name) { + if (!hasOwn$6(WellKnownSymbolsStore, name)) { + WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name) + ? Symbol$1[name] + : createWellKnownSymbol('Symbol.' + name); + } return WellKnownSymbolsStore[name]; + }; + + var call$1 = functionCall; + var isObject$5 = isObject$7; + var isSymbol$1 = isSymbol$2; + var getMethod = getMethod$1; + var ordinaryToPrimitive = ordinaryToPrimitive$1; + var wellKnownSymbol$5 = wellKnownSymbol$6; + + var $TypeError$3 = TypeError; + var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive'); + + // `ToPrimitive` abstract operation + // https://tc39.es/ecma262/#sec-toprimitive + var toPrimitive$1 = function (input, pref) { + if (!isObject$5(input) || isSymbol$1(input)) return input; + var exoticToPrim = getMethod(input, TO_PRIMITIVE); + var result; + if (exoticToPrim) { + if (pref === undefined) pref = 'default'; + result = call$1(exoticToPrim, input, pref); + if (!isObject$5(result) || isSymbol$1(result)) return result; + throw $TypeError$3("Can't convert object to primitive value"); + } + if (pref === undefined) pref = 'number'; + return ordinaryToPrimitive(input, pref); + }; + + var toPrimitive = toPrimitive$1; + var isSymbol = isSymbol$2; + + // `ToPropertyKey` abstract operation + // https://tc39.es/ecma262/#sec-topropertykey + var toPropertyKey$3 = function (argument) { + var key = toPrimitive(argument, 'string'); + return isSymbol(key) ? key : key + ''; + }; + + var global$4 = global$b; + var isObject$4 = isObject$7; + + var document$1 = global$4.document; + // typeof document.createElement is 'object' in old IE + var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement); + + var documentCreateElement = function (it) { + return EXISTS$1 ? document$1.createElement(it) : {}; + }; + + var DESCRIPTORS$6 = descriptors; + var fails$6 = fails$b; + var createElement = documentCreateElement; + + // Thanks to IE8 for its funny defineProperty + var ie8DomDefine = !DESCRIPTORS$6 && !fails$6(function () { + // eslint-disable-next-line es/no-object-defineproperty -- required for testing + return Object.defineProperty(createElement('div'), 'a', { + get: function () { return 7; } + }).a != 7; + }); + + var DESCRIPTORS$5 = descriptors; + var call = functionCall; + var propertyIsEnumerableModule = objectPropertyIsEnumerable; + var createPropertyDescriptor$2 = createPropertyDescriptor$3; + var toIndexedObject$2 = toIndexedObject$3; + var toPropertyKey$2 = toPropertyKey$3; + var hasOwn$5 = hasOwnProperty_1; + var IE8_DOM_DEFINE$1 = ie8DomDefine; + + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; + + // `Object.getOwnPropertyDescriptor` method + // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor + objectGetOwnPropertyDescriptor.f = DESCRIPTORS$5 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) { + O = toIndexedObject$2(O); + P = toPropertyKey$2(P); + if (IE8_DOM_DEFINE$1) try { + return $getOwnPropertyDescriptor$1(O, P); + } catch (error) { /* empty */ } + if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call(propertyIsEnumerableModule.f, O, P), O[P]); + }; + + var objectDefineProperty = {}; + + var DESCRIPTORS$4 = descriptors; + var fails$5 = fails$b; + + // V8 ~ Chrome 36- + // https://bugs.chromium.org/p/v8/issues/detail?id=3334 + var v8PrototypeDefineBug = DESCRIPTORS$4 && fails$5(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$3 = isObject$7; + + var $String$1 = String; + var $TypeError$2 = TypeError; + + // `Assert: Type(argument) is Object` + var anObject$2 = function (argument) { + if (isObject$3(argument)) return argument; + throw $TypeError$2($String$1(argument) + ' is not an object'); + }; + + var DESCRIPTORS$3 = descriptors; + var IE8_DOM_DEFINE = ie8DomDefine; + var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug; + var anObject$1 = anObject$2; + var toPropertyKey$1 = toPropertyKey$3; + + var $TypeError$1 = TypeError; + // eslint-disable-next-line es/no-object-defineproperty -- safe + var $defineProperty = Object.defineProperty; + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var $getOwnPropertyDescriptor = 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$3 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) { + anObject$1(O); + P = toPropertyKey$1(P); + anObject$1(Attributes); + if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) { + var current = $getOwnPropertyDescriptor(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(O, P, Attributes); + } : $defineProperty : function defineProperty(O, P, Attributes) { + anObject$1(O); + P = toPropertyKey$1(P); + anObject$1(Attributes); + if (IE8_DOM_DEFINE) try { + return $defineProperty(O, P, Attributes); + } catch (error) { /* empty */ } + if ('get' in Attributes || 'set' in Attributes) throw $TypeError$1('Accessors not supported'); + if ('value' in Attributes) O[P] = Attributes.value; + return O; + }; + + var DESCRIPTORS$2 = descriptors; + var definePropertyModule$3 = objectDefineProperty; + var createPropertyDescriptor$1 = createPropertyDescriptor$3; + + var createNonEnumerableProperty$2 = DESCRIPTORS$2 ? function (object, key, value) { + return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value)); + } : function (object, key, value) { + object[key] = value; + return object; + }; + + var makeBuiltIn$2 = {exports: {}}; + + var DESCRIPTORS$1 = descriptors; + var hasOwn$4 = hasOwnProperty_1; + + var FunctionPrototype = Function.prototype; + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var getDescriptor = DESCRIPTORS$1 && Object.getOwnPropertyDescriptor; + + var EXISTS = hasOwn$4(FunctionPrototype, 'name'); + // additional protection from minified / mangled / dropped function names + var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something'; + var CONFIGURABLE = EXISTS && (!DESCRIPTORS$1 || (DESCRIPTORS$1 && getDescriptor(FunctionPrototype, 'name').configurable)); + + var functionName = { + EXISTS: EXISTS, + PROPER: PROPER, + CONFIGURABLE: CONFIGURABLE + }; + + var uncurryThis$4 = functionUncurryThis; + var isCallable$6 = isCallable$c; + var store$1 = sharedStore; + + var functionToString = uncurryThis$4(Function.toString); + + // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper + if (!isCallable$6(store$1.inspectSource)) { + store$1.inspectSource = function (it) { + return functionToString(it); + }; + } + + var inspectSource$2 = store$1.inspectSource; + + var global$3 = global$b; + var isCallable$5 = isCallable$c; + + var WeakMap$1 = global$3.WeakMap; + + var weakMapBasicDetection = isCallable$5(WeakMap$1) && /native code/.test(String(WeakMap$1)); + + var shared$1 = sharedExports; + var uid = uid$2; + + var keys = shared$1('keys'); + + var sharedKey$1 = function (key) { + return keys[key] || (keys[key] = uid(key)); + }; + + var hiddenKeys$3 = {}; + + var NATIVE_WEAK_MAP = weakMapBasicDetection; + var global$2 = global$b; + var isObject$2 = isObject$7; + var createNonEnumerableProperty$1 = createNonEnumerableProperty$2; + var hasOwn$3 = hasOwnProperty_1; + var shared = sharedStore; + var sharedKey = sharedKey$1; + var hiddenKeys$2 = hiddenKeys$3; + + var OBJECT_ALREADY_INITIALIZED = 'Object already initialized'; + var TypeError$1 = global$2.TypeError; + var WeakMap = global$2.WeakMap; + var set, get, has; + + var enforce = function (it) { + return has(it) ? get(it) : set(it, {}); + }; + + var getterFor = function (TYPE) { + return function (it) { + var state; + if (!isObject$2(it) || (state = get(it)).type !== TYPE) { + throw TypeError$1('Incompatible receiver, ' + TYPE + ' required'); + } return state; + }; + }; + + if (NATIVE_WEAK_MAP || shared.state) { + var store = shared.state || (shared.state = new WeakMap()); + /* 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 = function (it, metadata) { + if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED); + metadata.facade = it; + store.set(it, metadata); + return metadata; + }; + get = function (it) { + return store.get(it) || {}; + }; + has = function (it) { + return store.has(it); + }; + } else { + var STATE = sharedKey('state'); + hiddenKeys$2[STATE] = true; + set = function (it, metadata) { + if (hasOwn$3(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED); + metadata.facade = it; + createNonEnumerableProperty$1(it, STATE, metadata); + return metadata; + }; + get = function (it) { + return hasOwn$3(it, STATE) ? it[STATE] : {}; + }; + has = function (it) { + return hasOwn$3(it, STATE); + }; + } + + var internalState = { + set: set, + get: get, + has: has, + enforce: enforce, + getterFor: getterFor + }; + + var uncurryThis$3 = functionUncurryThis; + var fails$4 = fails$b; + var isCallable$4 = isCallable$c; + var hasOwn$2 = hasOwnProperty_1; + var DESCRIPTORS = descriptors; + var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE; + var inspectSource$1 = inspectSource$2; + var InternalStateModule = internalState; + + var enforceInternalState = InternalStateModule.enforce; + var getInternalState = InternalStateModule.get; + var $String = String; + // eslint-disable-next-line es/no-object-defineproperty -- safe + var defineProperty = Object.defineProperty; + var stringSlice = uncurryThis$3(''.slice); + var replace = uncurryThis$3(''.replace); + var join = uncurryThis$3([].join); + + var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails$4(function () { + return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8; + }); + + var TEMPLATE = String(String).split('String'); + + var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) { + if (stringSlice($String(name), 0, 7) === 'Symbol(') { + name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']'; + } + if (options && options.getter) name = 'get ' + name; + if (options && options.setter) name = 'set ' + name; + if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) { + if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true }); + else value.name = name; + } + if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) { + defineProperty(value, 'length', { value: options.arity }); + } + try { + if (options && hasOwn$2(options, 'constructor') && options.constructor) { + if (DESCRIPTORS) defineProperty(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(value); + if (!hasOwn$2(state, 'source')) { + state.source = join(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$1(function toString() { + return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this); + }, 'toString'); + + var makeBuiltInExports = makeBuiltIn$2.exports; + + var isCallable$3 = isCallable$c; + var definePropertyModule$2 = objectDefineProperty; + var makeBuiltIn = makeBuiltInExports; + var defineGlobalProperty$1 = defineGlobalProperty$3; + + var defineBuiltIn$1 = function (O, key, value, options) { + if (!options) options = {}; + var simple = options.enumerable; + var name = options.name !== undefined ? options.name : key; + if (isCallable$3(value)) makeBuiltIn(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$2.f(O, key, { + value: value, + enumerable: false, + configurable: !options.nonConfigurable, + writable: !options.nonWritable + }); + } return O; + }; + + var objectGetOwnPropertyNames = {}; + + var ceil = Math.ceil; + var floor = 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 : ceil)(n); + }; + + var trunc = mathTrunc; + + // `ToIntegerOrInfinity` abstract operation + // https://tc39.es/ecma262/#sec-tointegerorinfinity + var toIntegerOrInfinity$2 = function (argument) { + var number = +argument; + // eslint-disable-next-line no-self-compare -- NaN check + return number !== number || number === 0 ? 0 : trunc(number); + }; + + var toIntegerOrInfinity$1 = toIntegerOrInfinity$2; + + var max = Math.max; + var min$1 = 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$1 = function (index, length) { + var integer = toIntegerOrInfinity$1(index); + return integer < 0 ? max(integer + length, 0) : min$1(integer, length); + }; + + var toIntegerOrInfinity = toIntegerOrInfinity$2; + + var min = Math.min; + + // `ToLength` abstract operation + // https://tc39.es/ecma262/#sec-tolength + var toLength$1 = function (argument) { + return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 + }; + + var toLength = toLength$1; + + // `LengthOfArrayLike` abstract operation + // https://tc39.es/ecma262/#sec-lengthofarraylike + var lengthOfArrayLike$2 = function (obj) { + return toLength(obj.length); + }; + + var toIndexedObject$1 = toIndexedObject$3; + var toAbsoluteIndex = toAbsoluteIndex$1; + var lengthOfArrayLike$1 = lengthOfArrayLike$2; + + // `Array.prototype.{ indexOf, includes }` methods implementation + var createMethod = function (IS_INCLUDES) { + return function ($this, el, fromIndex) { + var O = toIndexedObject$1($this); + var length = lengthOfArrayLike$1(O); + var index = toAbsoluteIndex(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(true), + // `Array.prototype.indexOf` method + // https://tc39.es/ecma262/#sec-array.prototype.indexof + indexOf: createMethod(false) + }; + + var uncurryThis$2 = functionUncurryThis; + var hasOwn$1 = hasOwnProperty_1; + var toIndexedObject = toIndexedObject$3; + var indexOf = arrayIncludes.indexOf; + var hiddenKeys$1 = hiddenKeys$3; + + var push = uncurryThis$2([].push); + + var objectKeysInternal = function (object, names) { + var O = toIndexedObject(object); + var i = 0; + var result = []; + var key; + for (key in O) !hasOwn$1(hiddenKeys$1, key) && hasOwn$1(O, key) && push(result, key); + // Don't enum bug & hidden keys + while (names.length > i) if (hasOwn$1(O, key = names[i++])) { + ~indexOf(result, key) || push(result, key); + } + return result; + }; + + // IE8- don't enum bug keys + var enumBugKeys$1 = [ + 'constructor', + 'hasOwnProperty', + 'isPrototypeOf', + 'propertyIsEnumerable', + 'toLocaleString', + 'toString', + 'valueOf' + ]; + + var internalObjectKeys = objectKeysInternal; + var enumBugKeys = enumBugKeys$1; + + var hiddenKeys = enumBugKeys.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(O, hiddenKeys); + }; + + var objectGetOwnPropertySymbols = {}; + + // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe + objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols; + + var getBuiltIn$1 = getBuiltIn$3; + var uncurryThis$1 = functionUncurryThis; + var getOwnPropertyNamesModule = objectGetOwnPropertyNames; + var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols; + var anObject = anObject$2; + + var concat = uncurryThis$1([].concat); + + // all object keys, includes non-enumerable and symbols + var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) { + var keys = getOwnPropertyNamesModule.f(anObject(it)); + var getOwnPropertySymbols = getOwnPropertySymbolsModule.f; + return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys; + }; + + var hasOwn = hasOwnProperty_1; + var ownKeys = ownKeys$1; + var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor; + var definePropertyModule$1 = objectDefineProperty; + + var copyConstructorProperties$1 = function (target, source, exceptions) { + var keys = ownKeys(source); + var defineProperty = definePropertyModule$1.f; + var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) { + defineProperty(target, key, getOwnPropertyDescriptor(source, key)); + } + } + }; + + var fails$3 = fails$b; + var isCallable$2 = isCallable$c; + + var replacement = /#|\.prototype\./; + + var isForced$1 = function (feature, detection) { + var value = data[normalize(feature)]; + return value == POLYFILL ? true + : value == NATIVE ? false + : isCallable$2(detection) ? fails$3(detection) + : !!detection; + }; + + var normalize = isForced$1.normalize = function (string) { + return String(string).replace(replacement, '.').toLowerCase(); + }; + + var data = isForced$1.data = {}; + var NATIVE = isForced$1.NATIVE = 'N'; + var POLYFILL = isForced$1.POLYFILL = 'P'; + + var isForced_1 = isForced$1; + + var global$1 = global$b; + var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f; + var createNonEnumerableProperty = createNonEnumerableProperty$2; + var defineBuiltIn = defineBuiltIn$1; + var defineGlobalProperty = defineGlobalProperty$3; + var copyConstructorProperties = copyConstructorProperties$1; + var isForced = 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 = global$1; + } else if (STATIC) { + target = global$1[TARGET] || defineGlobalProperty(TARGET, {}); + } else { + target = (global$1[TARGET] || {}).prototype; + } + if (target) for (key in source) { + sourceProperty = source[key]; + if (options.dontCallGetSet) { + descriptor = getOwnPropertyDescriptor(target, key); + targetProperty = descriptor && descriptor.value; + } else targetProperty = target[key]; + FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); + // contained in target + if (!FORCED && targetProperty !== undefined) { + if (typeof sourceProperty == typeof targetProperty) continue; + copyConstructorProperties(sourceProperty, targetProperty); + } + // add a flag to not completely full polyfills + if (options.sham || (targetProperty && targetProperty.sham)) { + createNonEnumerableProperty(sourceProperty, 'sham', true); + } + defineBuiltIn(target, key, sourceProperty, options); + } + }; + + var classof$2 = classofRaw$1; + + // `IsArray` abstract operation + // https://tc39.es/ecma262/#sec-isarray + // eslint-disable-next-line es/no-array-isarray -- safe + var isArray$2 = Array.isArray || function isArray(argument) { + return classof$2(argument) == 'Array'; + }; + + var $TypeError = TypeError; + var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991 + + var doesNotExceedSafeInteger$1 = function (it) { + if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded'); + return it; + }; + + var toPropertyKey = toPropertyKey$3; + var definePropertyModule = objectDefineProperty; + var createPropertyDescriptor = createPropertyDescriptor$3; + + var createProperty$1 = function (object, key, value) { + var propertyKey = toPropertyKey(key); + if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value)); + else object[propertyKey] = value; + }; + + var wellKnownSymbol$4 = wellKnownSymbol$6; + + var TO_STRING_TAG$1 = wellKnownSymbol$4('toStringTag'); + var test = {}; + + test[TO_STRING_TAG$1] = 'z'; + + var toStringTagSupport = String(test) === '[object z]'; + + var TO_STRING_TAG_SUPPORT = toStringTagSupport; + var isCallable$1 = isCallable$c; + var classofRaw = classofRaw$1; + var wellKnownSymbol$3 = wellKnownSymbol$6; + + var TO_STRING_TAG = wellKnownSymbol$3('toStringTag'); + var $Object = Object; + + // ES3 wrong here + var CORRECT_ARGUMENTS = classofRaw(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$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) { + var O, tag, result; + return it === undefined ? 'Undefined' : it === null ? 'Null' + // @@toStringTag case + : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag + // builtinTag case + : CORRECT_ARGUMENTS ? classofRaw(O) + // ES3 arguments fallback + : (result = classofRaw(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result; + }; + + var uncurryThis = functionUncurryThis; + var fails$2 = fails$b; + var isCallable = isCallable$c; + var classof = classof$1; + var getBuiltIn = getBuiltIn$3; + var inspectSource = inspectSource$2; + + var noop = function () { /* empty */ }; + var empty = []; + var construct = getBuiltIn('Reflect', 'construct'); + var constructorRegExp = /^\s*(?:class|function)\b/; + var exec = uncurryThis(constructorRegExp.exec); + var INCORRECT_TO_STRING = !constructorRegExp.exec(noop); + + var isConstructorModern = function isConstructor(argument) { + if (!isCallable(argument)) return false; + try { + construct(noop, empty, argument); + return true; + } catch (error) { + return false; + } + }; + + var isConstructorLegacy = function isConstructor(argument) { + if (!isCallable(argument)) return false; + switch (classof(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 || !!exec(constructorRegExp, inspectSource(argument)); + } catch (error) { + return true; + } + }; + + isConstructorLegacy.sham = true; + + // `IsConstructor` abstract operation + // https://tc39.es/ecma262/#sec-isconstructor + var isConstructor$1 = !construct || fails$2(function () { + var called; + return isConstructorModern(isConstructorModern.call) + || !isConstructorModern(Object) + || !isConstructorModern(function () { called = true; }) + || called; + }) ? isConstructorLegacy : isConstructorModern; + + var isArray$1 = isArray$2; + var isConstructor = isConstructor$1; + var isObject$1 = isObject$7; + var wellKnownSymbol$2 = wellKnownSymbol$6; + + var SPECIES$1 = wellKnownSymbol$2('species'); + var $Array = Array; + + // a part of `ArraySpeciesCreate` abstract operation + // https://tc39.es/ecma262/#sec-arrayspeciescreate + var arraySpeciesConstructor$1 = function (originalArray) { + var C; + if (isArray$1(originalArray)) { + C = originalArray.constructor; + // cross-realm fallback + if (isConstructor(C) && (C === $Array || isArray$1(C.prototype))) C = undefined; + else if (isObject$1(C)) { + C = C[SPECIES$1]; + if (C === null) C = undefined; + } + } return C === undefined ? $Array : C; + }; + + var arraySpeciesConstructor = arraySpeciesConstructor$1; + + // `ArraySpeciesCreate` abstract operation + // https://tc39.es/ecma262/#sec-arrayspeciescreate + var arraySpeciesCreate$1 = function (originalArray, length) { + return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length); + }; + + var fails$1 = fails$b; + var wellKnownSymbol$1 = wellKnownSymbol$6; + var V8_VERSION$1 = engineV8Version; + + var SPECIES = wellKnownSymbol$1('species'); + + var arrayMethodHasSpeciesSupport$1 = function (METHOD_NAME) { + // We can't use this feature detection in V8 since it causes + // deoptimization and serious performance degradation + // https://github.com/zloirock/core-js/issues/677 + return V8_VERSION$1 >= 51 || !fails$1(function () { + var array = []; + var constructor = array.constructor = {}; + constructor[SPECIES] = function () { + return { foo: 1 }; + }; + return array[METHOD_NAME](Boolean).foo !== 1; + }); + }; + + var $ = _export; + var fails = fails$b; + var isArray = isArray$2; + var isObject = isObject$7; + var toObject = toObject$2; + var lengthOfArrayLike = lengthOfArrayLike$2; + var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1; + var createProperty = createProperty$1; + var arraySpeciesCreate = arraySpeciesCreate$1; + var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1; + var wellKnownSymbol = wellKnownSymbol$6; + var V8_VERSION = engineV8Version; + + var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable'); + + // We can't use this feature detection in V8 since it causes + // deoptimization and serious performance degradation + // https://github.com/zloirock/core-js/issues/679 + var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () { + var array = []; + array[IS_CONCAT_SPREADABLE] = false; + return array.concat()[0] !== array; + }); + + var isConcatSpreadable = function (O) { + if (!isObject(O)) return false; + var spreadable = O[IS_CONCAT_SPREADABLE]; + return spreadable !== undefined ? !!spreadable : isArray(O); + }; + + var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat'); + + // `Array.prototype.concat` method + // https://tc39.es/ecma262/#sec-array.prototype.concat + // with adding support of @@isConcatSpreadable and @@species + $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, { + // eslint-disable-next-line no-unused-vars -- required for `.length` + concat: function concat(arg) { + var O = toObject(this); + var A = arraySpeciesCreate(O, 0); + var n = 0; + var i, k, length, len, E; + for (i = -1, length = arguments.length; i < length; i++) { + E = i === -1 ? O : arguments[i]; + if (isConcatSpreadable(E)) { + len = lengthOfArrayLike(E); + doesNotExceedSafeInteger(n + len); + for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]); + } else { + doesNotExceedSafeInteger(n + 1); + createProperty(A, n++, E); + } + } + A.length = n; + return A; + } + }); + + /** + * Multiple Select vi-VN translation + * Author: hoangbaovu + */ + + $$1.fn.multipleSelect.locales['vi-VN'] = { + formatSelectAll: function formatSelectAll() { + return '[Tất cả]'; + }, + formatAllSelected: function formatAllSelected() { + return 'Chọn tất cả'; + }, + formatCountSelected: function formatCountSelected(count, total) { + return "\u0110\xE3 ch\u1ECDn ".concat(count, " trong ").concat(total); + }, + formatNoMatchesFound: function formatNoMatchesFound() { + return 'Không tìm thấy kết quả.'; + } + }; + $$1.extend($$1.fn.multipleSelect.defaults, $$1.fn.multipleSelect.locales['vi-VN']); + +})); diff --git a/dist/locale/multiple-select-vi-VN.min.js b/dist/locale/multiple-select-vi-VN.min.js new file mode 100644 index 00000000..ccbfa0d9 --- /dev/null +++ b/dist/locale/multiple-select-vi-VN.min.js @@ -0,0 +1,10 @@ +/** + * multiple-select - Multiple select is a jQuery plugin to select multiple elements with checkboxes :). + * + * @version v1.6.0 + * @homepage http://multiple-select.wenzhixin.net.cn + * @author wenzhixin (http://wenzhixin.net.cn/) + * @license MIT + */ + +!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=function(t){return t&&t.Math==Math&&t},r=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n&&n)||function(){return this}()||n||Function("return this")(),o={},i=function(t){try{return!!t()}catch(t){return!0}},u=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=c,a=Function.prototype.call,l=f?a.bind(a):function(){return a.apply(a,arguments)},s={},p={}.propertyIsEnumerable,y=Object.getOwnPropertyDescriptor,b=y&&!p.call({1:2},1);s.f=b?function(t){var n=y(this,t);return!!n&&n.enumerable}:p;var v,g,h=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},d=c,m=Function.prototype,S=m.call,w=d&&m.bind.bind(S,S),O=d?w:function(t){return function(){return S.apply(t,arguments)}},j=O,P=j({}.toString),T=j("".slice),E=function(t){return T(P(t),8,-1)},A=i,x=E,M=Object,F=O("".split),C=A((function(){return!M("z").propertyIsEnumerable(0)}))?function(t){return"String"==x(t)?F(t,""):M(t)}:M,I=function(t){return null==t},D=I,L=TypeError,N=function(t){if(D(t))throw L("Can't call method on "+t);return t},k=C,_=N,z=function(t){return k(_(t))},R="object"==typeof document&&document.all,q={all:R,IS_HTMLDDA:void 0===R&&void 0!==R},G=q.all,B=q.IS_HTMLDDA?function(t){return"function"==typeof t||t===G}:function(t){return"function"==typeof t},H=B,U=q.all,V=q.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:H(t)||t===U}:function(t){return"object"==typeof t?null!==t:H(t)},W=r,K=B,Q=function(t,n){return arguments.length<2?(e=W[t],K(e)?e:void 0):W[t]&&W[t][n];var e},X=O({}.isPrototypeOf),Y=r,$="undefined"!=typeof navigator&&String(navigator.userAgent)||"",J=Y.process,Z=Y.Deno,tt=J&&J.versions||Z&&Z.version,nt=tt&&tt.v8;nt&&(g=(v=nt.split("."))[0]>0&&v[0]<4?1:+(v[0]+v[1])),!g&&$&&(!(v=$.match(/Edge\/(\d+)/))||v[1]>=74)&&(v=$.match(/Chrome\/(\d+)/))&&(g=+v[1]);var et=g,rt=et,ot=i,it=r.String,ut=!!Object.getOwnPropertySymbols&&!ot((function(){var t=Symbol();return!it(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&rt&&rt<41})),ct=ut&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ft=Q,at=B,lt=X,st=Object,pt=ct?function(t){return"symbol"==typeof t}:function(t){var n=ft("Symbol");return at(n)&<(n.prototype,st(t))},yt=String,bt=B,vt=function(t){try{return yt(t)}catch(t){return"Object"}},gt=TypeError,ht=function(t){if(bt(t))return t;throw gt(vt(t)+" is not a function")},dt=I,mt=l,St=B,wt=V,Ot=TypeError,jt={exports:{}},Pt=r,Tt=Object.defineProperty,Et=function(t,n){try{Tt(Pt,t,{value:n,configurable:!0,writable:!0})}catch(e){Pt[t]=n}return n},At=Et,xt="__core-js_shared__",Mt=r[xt]||At(xt,{}),Ft=Mt;(jt.exports=function(t,n){return Ft[t]||(Ft[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.30.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Ct=jt.exports,It=N,Dt=Object,Lt=function(t){return Dt(It(t))},Nt=Lt,kt=O({}.hasOwnProperty),_t=Object.hasOwn||function(t,n){return kt(Nt(t),n)},zt=O,Rt=0,qt=Math.random(),Gt=zt(1..toString),Bt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Gt(++Rt+qt,36)},Ht=Ct,Ut=_t,Vt=Bt,Wt=ut,Kt=ct,Qt=r.Symbol,Xt=Ht("wks"),Yt=Kt?Qt.for||Qt:Qt&&Qt.withoutSetter||Vt,$t=function(t){return Ut(Xt,t)||(Xt[t]=Wt&&Ut(Qt,t)?Qt[t]:Yt("Symbol."+t)),Xt[t]},Jt=l,Zt=V,tn=pt,nn=function(t,n){var e=t[n];return dt(e)?void 0:ht(e)},en=function(t,n){var e,r;if("string"===n&&St(e=t.toString)&&!wt(r=mt(e,t)))return r;if(St(e=t.valueOf)&&!wt(r=mt(e,t)))return r;if("string"!==n&&St(e=t.toString)&&!wt(r=mt(e,t)))return r;throw Ot("Can't convert object to primitive value")},rn=TypeError,on=$t("toPrimitive"),un=function(t,n){if(!Zt(t)||tn(t))return t;var e,r=nn(t,on);if(r){if(void 0===n&&(n="default"),e=Jt(r,t,n),!Zt(e)||tn(e))return e;throw rn("Can't convert object to primitive value")}return void 0===n&&(n="number"),en(t,n)},cn=pt,fn=function(t){var n=un(t,"string");return cn(n)?n:n+""},an=V,ln=r.document,sn=an(ln)&&an(ln.createElement),pn=function(t){return sn?ln.createElement(t):{}},yn=!u&&!i((function(){return 7!=Object.defineProperty(pn("div"),"a",{get:function(){return 7}}).a})),bn=u,vn=l,gn=s,hn=h,dn=z,mn=fn,Sn=_t,wn=yn,On=Object.getOwnPropertyDescriptor;o.f=bn?On:function(t,n){if(t=dn(t),n=mn(n),wn)try{return On(t,n)}catch(t){}if(Sn(t,n))return hn(!vn(gn.f,t,n),t[n])};var jn={},Pn=u&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Tn=V,En=String,An=TypeError,xn=function(t){if(Tn(t))return t;throw An(En(t)+" is not an object")},Mn=u,Fn=yn,Cn=Pn,In=xn,Dn=fn,Ln=TypeError,Nn=Object.defineProperty,kn=Object.getOwnPropertyDescriptor,_n="enumerable",zn="configurable",Rn="writable";jn.f=Mn?Cn?function(t,n,e){if(In(t),n=Dn(n),In(e),"function"==typeof t&&"prototype"===n&&"value"in e&&Rn in e&&!e[Rn]){var r=kn(t,n);r&&r[Rn]&&(t[n]=e.value,e={configurable:zn in e?e[zn]:r[zn],enumerable:_n in e?e[_n]:r[_n],writable:!1})}return Nn(t,n,e)}:Nn:function(t,n,e){if(In(t),n=Dn(n),In(e),Fn)try{return Nn(t,n,e)}catch(t){}if("get"in e||"set"in e)throw Ln("Accessors not supported");return"value"in e&&(t[n]=e.value),t};var qn=jn,Gn=h,Bn=u?function(t,n,e){return qn.f(t,n,Gn(1,e))}:function(t,n,e){return t[n]=e,t},Hn={exports:{}},Un=u,Vn=_t,Wn=Function.prototype,Kn=Un&&Object.getOwnPropertyDescriptor,Qn=Vn(Wn,"name"),Xn={EXISTS:Qn,PROPER:Qn&&"something"===function(){}.name,CONFIGURABLE:Qn&&(!Un||Un&&Kn(Wn,"name").configurable)},Yn=B,$n=Mt,Jn=O(Function.toString);Yn($n.inspectSource)||($n.inspectSource=function(t){return Jn(t)});var Zn,te,ne,ee=$n.inspectSource,re=B,oe=r.WeakMap,ie=re(oe)&&/native code/.test(String(oe)),ue=Bt,ce=Ct("keys"),fe={},ae=ie,le=r,se=V,pe=Bn,ye=_t,be=Mt,ve=function(t){return ce[t]||(ce[t]=ue(t))},ge=fe,he="Object already initialized",de=le.TypeError,me=le.WeakMap;if(ae||be.state){var Se=be.state||(be.state=new me);Se.get=Se.get,Se.has=Se.has,Se.set=Se.set,Zn=function(t,n){if(Se.has(t))throw de(he);return n.facade=t,Se.set(t,n),n},te=function(t){return Se.get(t)||{}},ne=function(t){return Se.has(t)}}else{var we=ve("state");ge[we]=!0,Zn=function(t,n){if(ye(t,we))throw de(he);return n.facade=t,pe(t,we,n),n},te=function(t){return ye(t,we)?t[we]:{}},ne=function(t){return ye(t,we)}}var Oe={set:Zn,get:te,has:ne,enforce:function(t){return ne(t)?te(t):Zn(t,{})},getterFor:function(t){return function(n){var e;if(!se(n)||(e=te(n)).type!==t)throw de("Incompatible receiver, "+t+" required");return e}}},je=O,Pe=i,Te=B,Ee=_t,Ae=u,xe=Xn.CONFIGURABLE,Me=ee,Fe=Oe.enforce,Ce=Oe.get,Ie=String,De=Object.defineProperty,Le=je("".slice),Ne=je("".replace),ke=je([].join),_e=Ae&&!Pe((function(){return 8!==De((function(){}),"length",{value:8}).length})),ze=String(String).split("String"),Re=Hn.exports=function(t,n,e){"Symbol("===Le(Ie(n),0,7)&&(n="["+Ne(Ie(n),/^Symbol\(([^)]*)\)/,"$1")+"]"),e&&e.getter&&(n="get "+n),e&&e.setter&&(n="set "+n),(!Ee(t,"name")||xe&&t.name!==n)&&(Ae?De(t,"name",{value:n,configurable:!0}):t.name=n),_e&&e&&Ee(e,"arity")&&t.length!==e.arity&&De(t,"length",{value:e.arity});try{e&&Ee(e,"constructor")&&e.constructor?Ae&&De(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=Fe(t);return Ee(r,"source")||(r.source=ke(ze,"string"==typeof n?n:"")),t};Function.prototype.toString=Re((function(){return Te(this)&&Ce(this).source||Me(this)}),"toString");var qe=Hn.exports,Ge=B,Be=jn,He=qe,Ue=Et,Ve={},We=Math.ceil,Ke=Math.floor,Qe=Math.trunc||function(t){var n=+t;return(n>0?Ke:We)(n)},Xe=function(t){var n=+t;return n!=n||0===n?0:Qe(n)},Ye=Xe,$e=Math.max,Je=Math.min,Ze=Xe,tr=Math.min,nr=function(t){return t>0?tr(Ze(t),9007199254740991):0},er=function(t){return nr(t.length)},rr=z,or=function(t,n){var e=Ye(t);return e<0?$e(e+n,0):Je(e,n)},ir=er,ur=function(t){return function(n,e,r){var o,i=rr(n),u=ir(i),c=or(r,u);if(t&&e!=e){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===e)return t||c||0;return!t&&-1}},cr={includes:ur(!0),indexOf:ur(!1)},fr=_t,ar=z,lr=cr.indexOf,sr=fe,pr=O([].push),yr=function(t,n){var e,r=ar(t),o=0,i=[];for(e in r)!fr(sr,e)&&fr(r,e)&&pr(i,e);for(;n.length>o;)fr(r,e=n[o++])&&(~lr(i,e)||pr(i,e));return i},br=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");Ve.f=Object.getOwnPropertyNames||function(t){return yr(t,br)};var vr={};vr.f=Object.getOwnPropertySymbols;var gr=Q,hr=Ve,dr=vr,mr=xn,Sr=O([].concat),wr=gr("Reflect","ownKeys")||function(t){var n=hr.f(mr(t)),e=dr.f;return e?Sr(n,e(t)):n},Or=_t,jr=wr,Pr=o,Tr=jn,Er=i,Ar=B,xr=/#|\.prototype\./,Mr=function(t,n){var e=Cr[Fr(t)];return e==Dr||e!=Ir&&(Ar(n)?Er(n):!!n)},Fr=Mr.normalize=function(t){return String(t).replace(xr,".").toLowerCase()},Cr=Mr.data={},Ir=Mr.NATIVE="N",Dr=Mr.POLYFILL="P",Lr=Mr,Nr=r,kr=o.f,_r=Bn,zr=function(t,n,e,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:n;if(Ge(e)&&He(e,i,r),r.global)o?t[n]=e:Ue(n,e);else{try{r.unsafe?t[n]&&(o=!0):delete t[n]}catch(t){}o?t[n]=e:Be.f(t,n,{value:e,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},Rr=Et,qr=function(t,n,e){for(var r=jr(n),o=Tr.f,i=Pr.f,u=0;u9007199254740991)throw Ur("Maximum allowed index exceeded");return t},Io=function(t,n,e){var r=Vr(n);r in t?Wr.f(t,r,Kr(0,e)):t[r]=e},Do=function(t,n){return new(wo(t))(0===n?0:n)},Lo=function(t){return jo>=51||!Oo((function(){var n=[];return(n.constructor={})[Po]=function(){return{foo:1}},1!==n[t](Boolean).foo}))},No=et,ko=$t("isConcatSpreadable"),_o=No>=51||!Eo((function(){var t=[];return t[ko]=!1,t.concat()[0]!==t})),zo=function(t){if(!xo(t))return!1;var n=t[ko];return void 0!==n?!!n:Ao(t)};To({target:"Array",proto:!0,arity:1,forced:!_o||!Lo("concat")},{concat:function(t){var n,e,r,o,i,u=Mo(this),c=Do(u,0),f=0;for(n=-1,r=arguments.length;n - */ - - $.fn.multipleSelect.locales['zh-CN'] = { - formatSelectAll: function formatSelectAll() { - return '[全选]'; - }, - formatAllSelected: function formatAllSelected() { - return '已选择所有记录'; - }, - formatCountSelected: function formatCountSelected(count, total) { - return '已从' + total + '条记录中选择' + count + '条'; - }, - formatNoMatchesFound: function formatNoMatchesFound() { - return '没有找到记录'; - } - }; - $.extend($.fn.multipleSelect.defaults, $.fn.multipleSelect.locales['zh-CN']); + typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) : + typeof define === 'function' && define.amd ? define(['jquery'], factory) : + (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jQuery)); +})(this, (function ($$1) { 'use strict'; + + 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 global$b = + // 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) || + // eslint-disable-next-line no-new-func -- fallback + (function () { return this; })() || commonjsGlobal || Function('return this')(); + + var objectGetOwnPropertyDescriptor = {}; + + var fails$b = function (exec) { + try { + return !!exec(); + } catch (error) { + return true; + } + }; + + var fails$a = fails$b; + + // Detect IE8's incomplete defineProperty implementation + var descriptors = !fails$a(function () { + // eslint-disable-next-line es/no-object-defineproperty -- required for testing + return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7; + }); + + var fails$9 = fails$b; + + var functionBindNative = !fails$9(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$1 = functionBindNative; + + var call$4 = Function.prototype.call; + + var functionCall = NATIVE_BIND$1 ? call$4.bind(call$4) : function () { + return call$4.apply(call$4, arguments); + }; + + var objectPropertyIsEnumerable = {}; + + var $propertyIsEnumerable = {}.propertyIsEnumerable; + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; + + // Nashorn ~ JDK8 bug + var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.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$1(this, V); + return !!descriptor && descriptor.enumerable; + } : $propertyIsEnumerable; + + var createPropertyDescriptor$3 = function (bitmap, value) { + return { + enumerable: !(bitmap & 1), + configurable: !(bitmap & 2), + writable: !(bitmap & 4), + value: value + }; + }; + + var NATIVE_BIND = functionBindNative; + + var FunctionPrototype$1 = Function.prototype; + var call$3 = FunctionPrototype$1.call; + var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$3, call$3); + + var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) { + return function () { + return call$3.apply(fn, arguments); + }; + }; + + var uncurryThis$9 = functionUncurryThis; + + var toString$1 = uncurryThis$9({}.toString); + var stringSlice$1 = uncurryThis$9(''.slice); + + var classofRaw$1 = function (it) { + return stringSlice$1(toString$1(it), 8, -1); + }; + + var uncurryThis$8 = functionUncurryThis; + var fails$8 = fails$b; + var classof$3 = classofRaw$1; + + var $Object$3 = Object; + var split = uncurryThis$8(''.split); + + // fallback for non-array-like ES3 and non-enumerable old V8 strings + var indexedObject = fails$8(function () { + // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346 + // eslint-disable-next-line no-prototype-builtins -- safe + return !$Object$3('z').propertyIsEnumerable(0); + }) ? function (it) { + return classof$3(it) == 'String' ? split(it, '') : $Object$3(it); + } : $Object$3; + + // we can't use just `it == null` since of `document.all` special case + // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec + var isNullOrUndefined$2 = function (it) { + return it === null || it === undefined; + }; + + var isNullOrUndefined$1 = isNullOrUndefined$2; + + var $TypeError$6 = TypeError; + + // `RequireObjectCoercible` abstract operation + // https://tc39.es/ecma262/#sec-requireobjectcoercible + var requireObjectCoercible$2 = function (it) { + if (isNullOrUndefined$1(it)) throw $TypeError$6("Can't call method on " + it); + return it; + }; + + // toObject with fallback for non-array-like ES3 strings + var IndexedObject = indexedObject; + var requireObjectCoercible$1 = requireObjectCoercible$2; + + var toIndexedObject$3 = function (it) { + return IndexedObject(requireObjectCoercible$1(it)); + }; + + var documentAll$2 = typeof document == 'object' && document.all; + + // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot + // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing + var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined; + + var documentAll_1 = { + all: documentAll$2, + IS_HTMLDDA: IS_HTMLDDA + }; + + var $documentAll$1 = documentAll_1; + + var documentAll$1 = $documentAll$1.all; + + // `IsCallable` abstract operation + // https://tc39.es/ecma262/#sec-iscallable + var isCallable$c = $documentAll$1.IS_HTMLDDA ? function (argument) { + return typeof argument == 'function' || argument === documentAll$1; + } : function (argument) { + return typeof argument == 'function'; + }; + + var isCallable$b = isCallable$c; + var $documentAll = documentAll_1; + + var documentAll = $documentAll.all; + + var isObject$7 = $documentAll.IS_HTMLDDA ? function (it) { + return typeof it == 'object' ? it !== null : isCallable$b(it) || it === documentAll; + } : function (it) { + return typeof it == 'object' ? it !== null : isCallable$b(it); + }; + + var global$a = global$b; + var isCallable$a = isCallable$c; + + var aFunction = function (argument) { + return isCallable$a(argument) ? argument : undefined; + }; + + var getBuiltIn$3 = function (namespace, method) { + return arguments.length < 2 ? aFunction(global$a[namespace]) : global$a[namespace] && global$a[namespace][method]; + }; + + var uncurryThis$7 = functionUncurryThis; + + var objectIsPrototypeOf = uncurryThis$7({}.isPrototypeOf); + + var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || ''; + + var global$9 = global$b; + var userAgent = engineUserAgent; + + var process = global$9.process; + var Deno = global$9.Deno; + var versions = process && process.versions || Deno && Deno.version; + var v8 = versions && versions.v8; + var match, version; + + 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 = 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 && userAgent) { + match = userAgent.match(/Edge\/(\d+)/); + if (!match || match[1] >= 74) { + match = userAgent.match(/Chrome\/(\d+)/); + if (match) version = +match[1]; + } + } + + var engineV8Version = version; + + /* eslint-disable es/no-symbol -- required for testing */ + + var V8_VERSION$2 = engineV8Version; + var fails$7 = fails$b; + var global$8 = global$b; + + var $String$3 = global$8.String; + + // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing + var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$7(function () { + var symbol = Symbol(); + // 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$3(symbol) || !(Object(symbol) instanceof Symbol) || + // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances + !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41; + }); + + /* eslint-disable es/no-symbol -- required for testing */ + + var NATIVE_SYMBOL$1 = symbolConstructorDetection; + + var useSymbolAsUid = NATIVE_SYMBOL$1 + && !Symbol.sham + && typeof Symbol.iterator == 'symbol'; + + var getBuiltIn$2 = getBuiltIn$3; + var isCallable$9 = isCallable$c; + var isPrototypeOf = objectIsPrototypeOf; + var USE_SYMBOL_AS_UID$1 = useSymbolAsUid; + + var $Object$2 = Object; + + var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) { + return typeof it == 'symbol'; + } : function (it) { + var $Symbol = getBuiltIn$2('Symbol'); + return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it)); + }; + + var $String$2 = String; + + var tryToString$1 = function (argument) { + try { + return $String$2(argument); + } catch (error) { + return 'Object'; + } + }; + + var isCallable$8 = isCallable$c; + var tryToString = tryToString$1; + + var $TypeError$5 = TypeError; + + // `Assert: IsCallable(argument) is true` + var aCallable$1 = function (argument) { + if (isCallable$8(argument)) return argument; + throw $TypeError$5(tryToString(argument) + ' is not a function'); + }; + + var aCallable = aCallable$1; + var isNullOrUndefined = isNullOrUndefined$2; + + // `GetMethod` abstract operation + // https://tc39.es/ecma262/#sec-getmethod + var getMethod$1 = function (V, P) { + var func = V[P]; + return isNullOrUndefined(func) ? undefined : aCallable(func); + }; + + var call$2 = functionCall; + var isCallable$7 = isCallable$c; + var isObject$6 = isObject$7; + + var $TypeError$4 = TypeError; + + // `OrdinaryToPrimitive` abstract operation + // https://tc39.es/ecma262/#sec-ordinarytoprimitive + var ordinaryToPrimitive$1 = function (input, pref) { + var fn, val; + if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val; + if (isCallable$7(fn = input.valueOf) && !isObject$6(val = call$2(fn, input))) return val; + if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val; + throw $TypeError$4("Can't convert object to primitive value"); + }; + + var shared$3 = {exports: {}}; + + var global$7 = global$b; + + // eslint-disable-next-line es/no-object-defineproperty -- safe + var defineProperty$1 = Object.defineProperty; + + var defineGlobalProperty$3 = function (key, value) { + try { + defineProperty$1(global$7, key, { value: value, configurable: true, writable: true }); + } catch (error) { + global$7[key] = value; + } return value; + }; + + var global$6 = global$b; + var defineGlobalProperty$2 = defineGlobalProperty$3; + + var SHARED = '__core-js_shared__'; + var store$3 = global$6[SHARED] || defineGlobalProperty$2(SHARED, {}); + + var sharedStore = store$3; + + var store$2 = sharedStore; + + (shared$3.exports = function (key, value) { + return store$2[key] || (store$2[key] = value !== undefined ? value : {}); + })('versions', []).push({ + version: '3.30.2', + mode: 'global', + copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)', + license: 'https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE', + source: 'https://github.com/zloirock/core-js' + }); + + var sharedExports = shared$3.exports; + + var requireObjectCoercible = requireObjectCoercible$2; + + var $Object$1 = Object; + + // `ToObject` abstract operation + // https://tc39.es/ecma262/#sec-toobject + var toObject$2 = function (argument) { + return $Object$1(requireObjectCoercible(argument)); + }; + + var uncurryThis$6 = functionUncurryThis; + var toObject$1 = toObject$2; + + var hasOwnProperty = uncurryThis$6({}.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$1(it), key); + }; + + var uncurryThis$5 = functionUncurryThis; + + var id = 0; + var postfix = Math.random(); + var toString = uncurryThis$5(1.0.toString); + + var uid$2 = function (key) { + return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36); + }; + + var global$5 = global$b; + var shared$2 = sharedExports; + var hasOwn$6 = hasOwnProperty_1; + var uid$1 = uid$2; + var NATIVE_SYMBOL = symbolConstructorDetection; + var USE_SYMBOL_AS_UID = useSymbolAsUid; + + var Symbol$1 = global$5.Symbol; + var WellKnownSymbolsStore = shared$2('wks'); + var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1; + + var wellKnownSymbol$6 = function (name) { + if (!hasOwn$6(WellKnownSymbolsStore, name)) { + WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name) + ? Symbol$1[name] + : createWellKnownSymbol('Symbol.' + name); + } return WellKnownSymbolsStore[name]; + }; + + var call$1 = functionCall; + var isObject$5 = isObject$7; + var isSymbol$1 = isSymbol$2; + var getMethod = getMethod$1; + var ordinaryToPrimitive = ordinaryToPrimitive$1; + var wellKnownSymbol$5 = wellKnownSymbol$6; + + var $TypeError$3 = TypeError; + var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive'); + + // `ToPrimitive` abstract operation + // https://tc39.es/ecma262/#sec-toprimitive + var toPrimitive$1 = function (input, pref) { + if (!isObject$5(input) || isSymbol$1(input)) return input; + var exoticToPrim = getMethod(input, TO_PRIMITIVE); + var result; + if (exoticToPrim) { + if (pref === undefined) pref = 'default'; + result = call$1(exoticToPrim, input, pref); + if (!isObject$5(result) || isSymbol$1(result)) return result; + throw $TypeError$3("Can't convert object to primitive value"); + } + if (pref === undefined) pref = 'number'; + return ordinaryToPrimitive(input, pref); + }; + + var toPrimitive = toPrimitive$1; + var isSymbol = isSymbol$2; + + // `ToPropertyKey` abstract operation + // https://tc39.es/ecma262/#sec-topropertykey + var toPropertyKey$3 = function (argument) { + var key = toPrimitive(argument, 'string'); + return isSymbol(key) ? key : key + ''; + }; + + var global$4 = global$b; + var isObject$4 = isObject$7; + + var document$1 = global$4.document; + // typeof document.createElement is 'object' in old IE + var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement); + + var documentCreateElement = function (it) { + return EXISTS$1 ? document$1.createElement(it) : {}; + }; + + var DESCRIPTORS$6 = descriptors; + var fails$6 = fails$b; + var createElement = documentCreateElement; + + // Thanks to IE8 for its funny defineProperty + var ie8DomDefine = !DESCRIPTORS$6 && !fails$6(function () { + // eslint-disable-next-line es/no-object-defineproperty -- required for testing + return Object.defineProperty(createElement('div'), 'a', { + get: function () { return 7; } + }).a != 7; + }); + + var DESCRIPTORS$5 = descriptors; + var call = functionCall; + var propertyIsEnumerableModule = objectPropertyIsEnumerable; + var createPropertyDescriptor$2 = createPropertyDescriptor$3; + var toIndexedObject$2 = toIndexedObject$3; + var toPropertyKey$2 = toPropertyKey$3; + var hasOwn$5 = hasOwnProperty_1; + var IE8_DOM_DEFINE$1 = ie8DomDefine; + + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; + + // `Object.getOwnPropertyDescriptor` method + // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor + objectGetOwnPropertyDescriptor.f = DESCRIPTORS$5 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) { + O = toIndexedObject$2(O); + P = toPropertyKey$2(P); + if (IE8_DOM_DEFINE$1) try { + return $getOwnPropertyDescriptor$1(O, P); + } catch (error) { /* empty */ } + if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call(propertyIsEnumerableModule.f, O, P), O[P]); + }; + + var objectDefineProperty = {}; + + var DESCRIPTORS$4 = descriptors; + var fails$5 = fails$b; + + // V8 ~ Chrome 36- + // https://bugs.chromium.org/p/v8/issues/detail?id=3334 + var v8PrototypeDefineBug = DESCRIPTORS$4 && fails$5(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$3 = isObject$7; + + var $String$1 = String; + var $TypeError$2 = TypeError; + + // `Assert: Type(argument) is Object` + var anObject$2 = function (argument) { + if (isObject$3(argument)) return argument; + throw $TypeError$2($String$1(argument) + ' is not an object'); + }; + + var DESCRIPTORS$3 = descriptors; + var IE8_DOM_DEFINE = ie8DomDefine; + var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug; + var anObject$1 = anObject$2; + var toPropertyKey$1 = toPropertyKey$3; + + var $TypeError$1 = TypeError; + // eslint-disable-next-line es/no-object-defineproperty -- safe + var $defineProperty = Object.defineProperty; + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var $getOwnPropertyDescriptor = 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$3 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) { + anObject$1(O); + P = toPropertyKey$1(P); + anObject$1(Attributes); + if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) { + var current = $getOwnPropertyDescriptor(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(O, P, Attributes); + } : $defineProperty : function defineProperty(O, P, Attributes) { + anObject$1(O); + P = toPropertyKey$1(P); + anObject$1(Attributes); + if (IE8_DOM_DEFINE) try { + return $defineProperty(O, P, Attributes); + } catch (error) { /* empty */ } + if ('get' in Attributes || 'set' in Attributes) throw $TypeError$1('Accessors not supported'); + if ('value' in Attributes) O[P] = Attributes.value; + return O; + }; + + var DESCRIPTORS$2 = descriptors; + var definePropertyModule$3 = objectDefineProperty; + var createPropertyDescriptor$1 = createPropertyDescriptor$3; + + var createNonEnumerableProperty$2 = DESCRIPTORS$2 ? function (object, key, value) { + return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value)); + } : function (object, key, value) { + object[key] = value; + return object; + }; + + var makeBuiltIn$2 = {exports: {}}; + + var DESCRIPTORS$1 = descriptors; + var hasOwn$4 = hasOwnProperty_1; + + var FunctionPrototype = Function.prototype; + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var getDescriptor = DESCRIPTORS$1 && Object.getOwnPropertyDescriptor; + + var EXISTS = hasOwn$4(FunctionPrototype, 'name'); + // additional protection from minified / mangled / dropped function names + var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something'; + var CONFIGURABLE = EXISTS && (!DESCRIPTORS$1 || (DESCRIPTORS$1 && getDescriptor(FunctionPrototype, 'name').configurable)); + + var functionName = { + EXISTS: EXISTS, + PROPER: PROPER, + CONFIGURABLE: CONFIGURABLE + }; + + var uncurryThis$4 = functionUncurryThis; + var isCallable$6 = isCallable$c; + var store$1 = sharedStore; + + var functionToString = uncurryThis$4(Function.toString); + + // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper + if (!isCallable$6(store$1.inspectSource)) { + store$1.inspectSource = function (it) { + return functionToString(it); + }; + } + + var inspectSource$2 = store$1.inspectSource; + + var global$3 = global$b; + var isCallable$5 = isCallable$c; + + var WeakMap$1 = global$3.WeakMap; + + var weakMapBasicDetection = isCallable$5(WeakMap$1) && /native code/.test(String(WeakMap$1)); + + var shared$1 = sharedExports; + var uid = uid$2; + + var keys = shared$1('keys'); + + var sharedKey$1 = function (key) { + return keys[key] || (keys[key] = uid(key)); + }; + + var hiddenKeys$3 = {}; + + var NATIVE_WEAK_MAP = weakMapBasicDetection; + var global$2 = global$b; + var isObject$2 = isObject$7; + var createNonEnumerableProperty$1 = createNonEnumerableProperty$2; + var hasOwn$3 = hasOwnProperty_1; + var shared = sharedStore; + var sharedKey = sharedKey$1; + var hiddenKeys$2 = hiddenKeys$3; + + var OBJECT_ALREADY_INITIALIZED = 'Object already initialized'; + var TypeError$1 = global$2.TypeError; + var WeakMap = global$2.WeakMap; + var set, get, has; + + var enforce = function (it) { + return has(it) ? get(it) : set(it, {}); + }; + + var getterFor = function (TYPE) { + return function (it) { + var state; + if (!isObject$2(it) || (state = get(it)).type !== TYPE) { + throw TypeError$1('Incompatible receiver, ' + TYPE + ' required'); + } return state; + }; + }; + + if (NATIVE_WEAK_MAP || shared.state) { + var store = shared.state || (shared.state = new WeakMap()); + /* 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 = function (it, metadata) { + if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED); + metadata.facade = it; + store.set(it, metadata); + return metadata; + }; + get = function (it) { + return store.get(it) || {}; + }; + has = function (it) { + return store.has(it); + }; + } else { + var STATE = sharedKey('state'); + hiddenKeys$2[STATE] = true; + set = function (it, metadata) { + if (hasOwn$3(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED); + metadata.facade = it; + createNonEnumerableProperty$1(it, STATE, metadata); + return metadata; + }; + get = function (it) { + return hasOwn$3(it, STATE) ? it[STATE] : {}; + }; + has = function (it) { + return hasOwn$3(it, STATE); + }; + } + + var internalState = { + set: set, + get: get, + has: has, + enforce: enforce, + getterFor: getterFor + }; + + var uncurryThis$3 = functionUncurryThis; + var fails$4 = fails$b; + var isCallable$4 = isCallable$c; + var hasOwn$2 = hasOwnProperty_1; + var DESCRIPTORS = descriptors; + var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE; + var inspectSource$1 = inspectSource$2; + var InternalStateModule = internalState; + + var enforceInternalState = InternalStateModule.enforce; + var getInternalState = InternalStateModule.get; + var $String = String; + // eslint-disable-next-line es/no-object-defineproperty -- safe + var defineProperty = Object.defineProperty; + var stringSlice = uncurryThis$3(''.slice); + var replace = uncurryThis$3(''.replace); + var join = uncurryThis$3([].join); + + var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails$4(function () { + return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8; + }); + + var TEMPLATE = String(String).split('String'); + + var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) { + if (stringSlice($String(name), 0, 7) === 'Symbol(') { + name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']'; + } + if (options && options.getter) name = 'get ' + name; + if (options && options.setter) name = 'set ' + name; + if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) { + if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true }); + else value.name = name; + } + if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) { + defineProperty(value, 'length', { value: options.arity }); + } + try { + if (options && hasOwn$2(options, 'constructor') && options.constructor) { + if (DESCRIPTORS) defineProperty(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(value); + if (!hasOwn$2(state, 'source')) { + state.source = join(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$1(function toString() { + return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this); + }, 'toString'); + + var makeBuiltInExports = makeBuiltIn$2.exports; + + var isCallable$3 = isCallable$c; + var definePropertyModule$2 = objectDefineProperty; + var makeBuiltIn = makeBuiltInExports; + var defineGlobalProperty$1 = defineGlobalProperty$3; + + var defineBuiltIn$1 = function (O, key, value, options) { + if (!options) options = {}; + var simple = options.enumerable; + var name = options.name !== undefined ? options.name : key; + if (isCallable$3(value)) makeBuiltIn(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$2.f(O, key, { + value: value, + enumerable: false, + configurable: !options.nonConfigurable, + writable: !options.nonWritable + }); + } return O; + }; + + var objectGetOwnPropertyNames = {}; + + var ceil = Math.ceil; + var floor = 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 : ceil)(n); + }; + + var trunc = mathTrunc; + + // `ToIntegerOrInfinity` abstract operation + // https://tc39.es/ecma262/#sec-tointegerorinfinity + var toIntegerOrInfinity$2 = function (argument) { + var number = +argument; + // eslint-disable-next-line no-self-compare -- NaN check + return number !== number || number === 0 ? 0 : trunc(number); + }; + + var toIntegerOrInfinity$1 = toIntegerOrInfinity$2; + + var max = Math.max; + var min$1 = 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$1 = function (index, length) { + var integer = toIntegerOrInfinity$1(index); + return integer < 0 ? max(integer + length, 0) : min$1(integer, length); + }; + + var toIntegerOrInfinity = toIntegerOrInfinity$2; + + var min = Math.min; + + // `ToLength` abstract operation + // https://tc39.es/ecma262/#sec-tolength + var toLength$1 = function (argument) { + return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 + }; + + var toLength = toLength$1; + + // `LengthOfArrayLike` abstract operation + // https://tc39.es/ecma262/#sec-lengthofarraylike + var lengthOfArrayLike$2 = function (obj) { + return toLength(obj.length); + }; + + var toIndexedObject$1 = toIndexedObject$3; + var toAbsoluteIndex = toAbsoluteIndex$1; + var lengthOfArrayLike$1 = lengthOfArrayLike$2; + + // `Array.prototype.{ indexOf, includes }` methods implementation + var createMethod = function (IS_INCLUDES) { + return function ($this, el, fromIndex) { + var O = toIndexedObject$1($this); + var length = lengthOfArrayLike$1(O); + var index = toAbsoluteIndex(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(true), + // `Array.prototype.indexOf` method + // https://tc39.es/ecma262/#sec-array.prototype.indexof + indexOf: createMethod(false) + }; + + var uncurryThis$2 = functionUncurryThis; + var hasOwn$1 = hasOwnProperty_1; + var toIndexedObject = toIndexedObject$3; + var indexOf = arrayIncludes.indexOf; + var hiddenKeys$1 = hiddenKeys$3; + + var push = uncurryThis$2([].push); + + var objectKeysInternal = function (object, names) { + var O = toIndexedObject(object); + var i = 0; + var result = []; + var key; + for (key in O) !hasOwn$1(hiddenKeys$1, key) && hasOwn$1(O, key) && push(result, key); + // Don't enum bug & hidden keys + while (names.length > i) if (hasOwn$1(O, key = names[i++])) { + ~indexOf(result, key) || push(result, key); + } + return result; + }; + + // IE8- don't enum bug keys + var enumBugKeys$1 = [ + 'constructor', + 'hasOwnProperty', + 'isPrototypeOf', + 'propertyIsEnumerable', + 'toLocaleString', + 'toString', + 'valueOf' + ]; + + var internalObjectKeys = objectKeysInternal; + var enumBugKeys = enumBugKeys$1; + + var hiddenKeys = enumBugKeys.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(O, hiddenKeys); + }; + + var objectGetOwnPropertySymbols = {}; + + // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe + objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols; + + var getBuiltIn$1 = getBuiltIn$3; + var uncurryThis$1 = functionUncurryThis; + var getOwnPropertyNamesModule = objectGetOwnPropertyNames; + var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols; + var anObject = anObject$2; + + var concat = uncurryThis$1([].concat); + + // all object keys, includes non-enumerable and symbols + var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) { + var keys = getOwnPropertyNamesModule.f(anObject(it)); + var getOwnPropertySymbols = getOwnPropertySymbolsModule.f; + return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys; + }; + + var hasOwn = hasOwnProperty_1; + var ownKeys = ownKeys$1; + var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor; + var definePropertyModule$1 = objectDefineProperty; + + var copyConstructorProperties$1 = function (target, source, exceptions) { + var keys = ownKeys(source); + var defineProperty = definePropertyModule$1.f; + var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) { + defineProperty(target, key, getOwnPropertyDescriptor(source, key)); + } + } + }; + + var fails$3 = fails$b; + var isCallable$2 = isCallable$c; + + var replacement = /#|\.prototype\./; + + var isForced$1 = function (feature, detection) { + var value = data[normalize(feature)]; + return value == POLYFILL ? true + : value == NATIVE ? false + : isCallable$2(detection) ? fails$3(detection) + : !!detection; + }; + + var normalize = isForced$1.normalize = function (string) { + return String(string).replace(replacement, '.').toLowerCase(); + }; + + var data = isForced$1.data = {}; + var NATIVE = isForced$1.NATIVE = 'N'; + var POLYFILL = isForced$1.POLYFILL = 'P'; + + var isForced_1 = isForced$1; + + var global$1 = global$b; + var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f; + var createNonEnumerableProperty = createNonEnumerableProperty$2; + var defineBuiltIn = defineBuiltIn$1; + var defineGlobalProperty = defineGlobalProperty$3; + var copyConstructorProperties = copyConstructorProperties$1; + var isForced = 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 = global$1; + } else if (STATIC) { + target = global$1[TARGET] || defineGlobalProperty(TARGET, {}); + } else { + target = (global$1[TARGET] || {}).prototype; + } + if (target) for (key in source) { + sourceProperty = source[key]; + if (options.dontCallGetSet) { + descriptor = getOwnPropertyDescriptor(target, key); + targetProperty = descriptor && descriptor.value; + } else targetProperty = target[key]; + FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); + // contained in target + if (!FORCED && targetProperty !== undefined) { + if (typeof sourceProperty == typeof targetProperty) continue; + copyConstructorProperties(sourceProperty, targetProperty); + } + // add a flag to not completely full polyfills + if (options.sham || (targetProperty && targetProperty.sham)) { + createNonEnumerableProperty(sourceProperty, 'sham', true); + } + defineBuiltIn(target, key, sourceProperty, options); + } + }; + + var classof$2 = classofRaw$1; + + // `IsArray` abstract operation + // https://tc39.es/ecma262/#sec-isarray + // eslint-disable-next-line es/no-array-isarray -- safe + var isArray$2 = Array.isArray || function isArray(argument) { + return classof$2(argument) == 'Array'; + }; + + var $TypeError = TypeError; + var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991 + + var doesNotExceedSafeInteger$1 = function (it) { + if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded'); + return it; + }; + + var toPropertyKey = toPropertyKey$3; + var definePropertyModule = objectDefineProperty; + var createPropertyDescriptor = createPropertyDescriptor$3; + + var createProperty$1 = function (object, key, value) { + var propertyKey = toPropertyKey(key); + if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value)); + else object[propertyKey] = value; + }; + + var wellKnownSymbol$4 = wellKnownSymbol$6; + + var TO_STRING_TAG$1 = wellKnownSymbol$4('toStringTag'); + var test = {}; + + test[TO_STRING_TAG$1] = 'z'; + + var toStringTagSupport = String(test) === '[object z]'; + + var TO_STRING_TAG_SUPPORT = toStringTagSupport; + var isCallable$1 = isCallable$c; + var classofRaw = classofRaw$1; + var wellKnownSymbol$3 = wellKnownSymbol$6; + + var TO_STRING_TAG = wellKnownSymbol$3('toStringTag'); + var $Object = Object; + + // ES3 wrong here + var CORRECT_ARGUMENTS = classofRaw(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$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) { + var O, tag, result; + return it === undefined ? 'Undefined' : it === null ? 'Null' + // @@toStringTag case + : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag + // builtinTag case + : CORRECT_ARGUMENTS ? classofRaw(O) + // ES3 arguments fallback + : (result = classofRaw(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result; + }; + + var uncurryThis = functionUncurryThis; + var fails$2 = fails$b; + var isCallable = isCallable$c; + var classof = classof$1; + var getBuiltIn = getBuiltIn$3; + var inspectSource = inspectSource$2; + + var noop = function () { /* empty */ }; + var empty = []; + var construct = getBuiltIn('Reflect', 'construct'); + var constructorRegExp = /^\s*(?:class|function)\b/; + var exec = uncurryThis(constructorRegExp.exec); + var INCORRECT_TO_STRING = !constructorRegExp.exec(noop); + + var isConstructorModern = function isConstructor(argument) { + if (!isCallable(argument)) return false; + try { + construct(noop, empty, argument); + return true; + } catch (error) { + return false; + } + }; + + var isConstructorLegacy = function isConstructor(argument) { + if (!isCallable(argument)) return false; + switch (classof(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 || !!exec(constructorRegExp, inspectSource(argument)); + } catch (error) { + return true; + } + }; + + isConstructorLegacy.sham = true; + + // `IsConstructor` abstract operation + // https://tc39.es/ecma262/#sec-isconstructor + var isConstructor$1 = !construct || fails$2(function () { + var called; + return isConstructorModern(isConstructorModern.call) + || !isConstructorModern(Object) + || !isConstructorModern(function () { called = true; }) + || called; + }) ? isConstructorLegacy : isConstructorModern; + + var isArray$1 = isArray$2; + var isConstructor = isConstructor$1; + var isObject$1 = isObject$7; + var wellKnownSymbol$2 = wellKnownSymbol$6; + + var SPECIES$1 = wellKnownSymbol$2('species'); + var $Array = Array; + + // a part of `ArraySpeciesCreate` abstract operation + // https://tc39.es/ecma262/#sec-arrayspeciescreate + var arraySpeciesConstructor$1 = function (originalArray) { + var C; + if (isArray$1(originalArray)) { + C = originalArray.constructor; + // cross-realm fallback + if (isConstructor(C) && (C === $Array || isArray$1(C.prototype))) C = undefined; + else if (isObject$1(C)) { + C = C[SPECIES$1]; + if (C === null) C = undefined; + } + } return C === undefined ? $Array : C; + }; + + var arraySpeciesConstructor = arraySpeciesConstructor$1; + + // `ArraySpeciesCreate` abstract operation + // https://tc39.es/ecma262/#sec-arrayspeciescreate + var arraySpeciesCreate$1 = function (originalArray, length) { + return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length); + }; + + var fails$1 = fails$b; + var wellKnownSymbol$1 = wellKnownSymbol$6; + var V8_VERSION$1 = engineV8Version; + + var SPECIES = wellKnownSymbol$1('species'); + + var arrayMethodHasSpeciesSupport$1 = function (METHOD_NAME) { + // We can't use this feature detection in V8 since it causes + // deoptimization and serious performance degradation + // https://github.com/zloirock/core-js/issues/677 + return V8_VERSION$1 >= 51 || !fails$1(function () { + var array = []; + var constructor = array.constructor = {}; + constructor[SPECIES] = function () { + return { foo: 1 }; + }; + return array[METHOD_NAME](Boolean).foo !== 1; + }); + }; + + var $ = _export; + var fails = fails$b; + var isArray = isArray$2; + var isObject = isObject$7; + var toObject = toObject$2; + var lengthOfArrayLike = lengthOfArrayLike$2; + var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1; + var createProperty = createProperty$1; + var arraySpeciesCreate = arraySpeciesCreate$1; + var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1; + var wellKnownSymbol = wellKnownSymbol$6; + var V8_VERSION = engineV8Version; + + var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable'); + + // We can't use this feature detection in V8 since it causes + // deoptimization and serious performance degradation + // https://github.com/zloirock/core-js/issues/679 + var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () { + var array = []; + array[IS_CONCAT_SPREADABLE] = false; + return array.concat()[0] !== array; + }); + + var isConcatSpreadable = function (O) { + if (!isObject(O)) return false; + var spreadable = O[IS_CONCAT_SPREADABLE]; + return spreadable !== undefined ? !!spreadable : isArray(O); + }; + + var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat'); + + // `Array.prototype.concat` method + // https://tc39.es/ecma262/#sec-array.prototype.concat + // with adding support of @@isConcatSpreadable and @@species + $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, { + // eslint-disable-next-line no-unused-vars -- required for `.length` + concat: function concat(arg) { + var O = toObject(this); + var A = arraySpeciesCreate(O, 0); + var n = 0; + var i, k, length, len, E; + for (i = -1, length = arguments.length; i < length; i++) { + E = i === -1 ? O : arguments[i]; + if (isConcatSpreadable(E)) { + len = lengthOfArrayLike(E); + doesNotExceedSafeInteger(n + len); + for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]); + } else { + doesNotExceedSafeInteger(n + 1); + createProperty(A, n++, E); + } + } + A.length = n; + return A; + } + }); + + /** + * Multiple Select zh-CN translation + * Author: Zhixin Wen + */ + + $$1.fn.multipleSelect.locales['zh-CN'] = { + formatSelectAll: function formatSelectAll() { + return '[全选]'; + }, + formatAllSelected: function formatAllSelected() { + return '已选择所有记录'; + }, + formatCountSelected: function formatCountSelected(count, total) { + return "\u5DF2\u4ECE".concat(total, "\u6761\u8BB0\u5F55\u4E2D\u9009\u62E9").concat(count, "\u6761"); + }, + formatNoMatchesFound: function formatNoMatchesFound() { + return '没有找到记录'; + } + }; + $$1.extend($$1.fn.multipleSelect.defaults, $$1.fn.multipleSelect.locales['zh-CN']); })); diff --git a/dist/locale/multiple-select-zh-CN.min.js b/dist/locale/multiple-select-zh-CN.min.js index 8de044b3..5aef8280 100644 --- a/dist/locale/multiple-select-zh-CN.min.js +++ b/dist/locale/multiple-select-zh-CN.min.js @@ -1,10 +1,10 @@ /** * multiple-select - Multiple select is a jQuery plugin to select multiple elements with checkboxes :). * - * @version v1.5.2 + * @version v1.6.0 * @homepage http://multiple-select.wenzhixin.net.cn * @author wenzhixin (http://wenzhixin.net.cn/) * @license MIT */ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):t((e=e||self).jQuery)}(this,(function(e){"use strict";(e=e&&e.hasOwnProperty("default")?e.default:e).fn.multipleSelect.locales["zh-CN"]={formatSelectAll:function(){return"[全选]"},formatAllSelected:function(){return"已选择所有记录"},formatCountSelected:function(e,t){return"已从"+t+"条记录中选择"+e+"条"},formatNoMatchesFound:function(){return"没有找到记录"}},e.extend(e.fn.multipleSelect.defaults,e.fn.multipleSelect.locales["zh-CN"])})); +!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=function(t){return t&&t.Math==Math&&t},r=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n&&n)||function(){return this}()||n||Function("return this")(),o={},i=function(t){try{return!!t()}catch(t){return!0}},u=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=c,a=Function.prototype.call,l=f?a.bind(a):function(){return a.apply(a,arguments)},s={},p={}.propertyIsEnumerable,y=Object.getOwnPropertyDescriptor,b=y&&!p.call({1:2},1);s.f=b?function(t){var n=y(this,t);return!!n&&n.enumerable}:p;var v,g,h=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},d=c,m=Function.prototype,S=m.call,w=d&&m.bind.bind(S,S),O=d?w:function(t){return function(){return S.apply(t,arguments)}},j=O,P=j({}.toString),E=j("".slice),T=function(t){return E(P(t),8,-1)},A=i,x=T,M=Object,C=O("".split),F=A((function(){return!M("z").propertyIsEnumerable(0)}))?function(t){return"String"==x(t)?C(t,""):M(t)}:M,I=function(t){return null==t},D=I,L=TypeError,z=function(t){if(D(t))throw L("Can't call method on "+t);return t},N=F,_=z,k=function(t){return N(_(t))},R="object"==typeof document&&document.all,G={all:R,IS_HTMLDDA:void 0===R&&void 0!==R},q=G.all,B=G.IS_HTMLDDA?function(t){return"function"==typeof t||t===q}:function(t){return"function"==typeof t},H=B,U=G.all,W=G.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:H(t)||t===U}:function(t){return"object"==typeof t?null!==t:H(t)},K=r,Q=B,V=function(t,n){return arguments.length<2?(e=K[t],Q(e)?e:void 0):K[t]&&K[t][n];var e},X=O({}.isPrototypeOf),Y=r,$="undefined"!=typeof navigator&&String(navigator.userAgent)||"",J=Y.process,Z=Y.Deno,tt=J&&J.versions||Z&&Z.version,nt=tt&&tt.v8;nt&&(g=(v=nt.split("."))[0]>0&&v[0]<4?1:+(v[0]+v[1])),!g&&$&&(!(v=$.match(/Edge\/(\d+)/))||v[1]>=74)&&(v=$.match(/Chrome\/(\d+)/))&&(g=+v[1]);var et=g,rt=et,ot=i,it=r.String,ut=!!Object.getOwnPropertySymbols&&!ot((function(){var t=Symbol();return!it(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&rt&&rt<41})),ct=ut&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ft=V,at=B,lt=X,st=Object,pt=ct?function(t){return"symbol"==typeof t}:function(t){var n=ft("Symbol");return at(n)&<(n.prototype,st(t))},yt=String,bt=B,vt=function(t){try{return yt(t)}catch(t){return"Object"}},gt=TypeError,ht=function(t){if(bt(t))return t;throw gt(vt(t)+" is not a function")},dt=I,mt=l,St=B,wt=W,Ot=TypeError,jt={exports:{}},Pt=r,Et=Object.defineProperty,Tt=function(t,n){try{Et(Pt,t,{value:n,configurable:!0,writable:!0})}catch(e){Pt[t]=n}return n},At=Tt,xt="__core-js_shared__",Mt=r[xt]||At(xt,{}),Ct=Mt;(jt.exports=function(t,n){return Ct[t]||(Ct[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.30.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Ft=jt.exports,It=z,Dt=Object,Lt=function(t){return Dt(It(t))},zt=Lt,Nt=O({}.hasOwnProperty),_t=Object.hasOwn||function(t,n){return Nt(zt(t),n)},kt=O,Rt=0,Gt=Math.random(),qt=kt(1..toString),Bt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+qt(++Rt+Gt,36)},Ht=Ft,Ut=_t,Wt=Bt,Kt=ut,Qt=ct,Vt=r.Symbol,Xt=Ht("wks"),Yt=Qt?Vt.for||Vt:Vt&&Vt.withoutSetter||Wt,$t=function(t){return Ut(Xt,t)||(Xt[t]=Kt&&Ut(Vt,t)?Vt[t]:Yt("Symbol."+t)),Xt[t]},Jt=l,Zt=W,tn=pt,nn=function(t,n){var e=t[n];return dt(e)?void 0:ht(e)},en=function(t,n){var e,r;if("string"===n&&St(e=t.toString)&&!wt(r=mt(e,t)))return r;if(St(e=t.valueOf)&&!wt(r=mt(e,t)))return r;if("string"!==n&&St(e=t.toString)&&!wt(r=mt(e,t)))return r;throw Ot("Can't convert object to primitive value")},rn=TypeError,on=$t("toPrimitive"),un=function(t,n){if(!Zt(t)||tn(t))return t;var e,r=nn(t,on);if(r){if(void 0===n&&(n="default"),e=Jt(r,t,n),!Zt(e)||tn(e))return e;throw rn("Can't convert object to primitive value")}return void 0===n&&(n="number"),en(t,n)},cn=pt,fn=function(t){var n=un(t,"string");return cn(n)?n:n+""},an=W,ln=r.document,sn=an(ln)&&an(ln.createElement),pn=function(t){return sn?ln.createElement(t):{}},yn=!u&&!i((function(){return 7!=Object.defineProperty(pn("div"),"a",{get:function(){return 7}}).a})),bn=u,vn=l,gn=s,hn=h,dn=k,mn=fn,Sn=_t,wn=yn,On=Object.getOwnPropertyDescriptor;o.f=bn?On:function(t,n){if(t=dn(t),n=mn(n),wn)try{return On(t,n)}catch(t){}if(Sn(t,n))return hn(!vn(gn.f,t,n),t[n])};var jn={},Pn=u&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),En=W,Tn=String,An=TypeError,xn=function(t){if(En(t))return t;throw An(Tn(t)+" is not an object")},Mn=u,Cn=yn,Fn=Pn,In=xn,Dn=fn,Ln=TypeError,zn=Object.defineProperty,Nn=Object.getOwnPropertyDescriptor,_n="enumerable",kn="configurable",Rn="writable";jn.f=Mn?Fn?function(t,n,e){if(In(t),n=Dn(n),In(e),"function"==typeof t&&"prototype"===n&&"value"in e&&Rn in e&&!e[Rn]){var r=Nn(t,n);r&&r[Rn]&&(t[n]=e.value,e={configurable:kn in e?e[kn]:r[kn],enumerable:_n in e?e[_n]:r[_n],writable:!1})}return zn(t,n,e)}:zn:function(t,n,e){if(In(t),n=Dn(n),In(e),Cn)try{return zn(t,n,e)}catch(t){}if("get"in e||"set"in e)throw Ln("Accessors not supported");return"value"in e&&(t[n]=e.value),t};var Gn=jn,qn=h,Bn=u?function(t,n,e){return Gn.f(t,n,qn(1,e))}:function(t,n,e){return t[n]=e,t},Hn={exports:{}},Un=u,Wn=_t,Kn=Function.prototype,Qn=Un&&Object.getOwnPropertyDescriptor,Vn=Wn(Kn,"name"),Xn={EXISTS:Vn,PROPER:Vn&&"something"===function(){}.name,CONFIGURABLE:Vn&&(!Un||Un&&Qn(Kn,"name").configurable)},Yn=B,$n=Mt,Jn=O(Function.toString);Yn($n.inspectSource)||($n.inspectSource=function(t){return Jn(t)});var Zn,te,ne,ee=$n.inspectSource,re=B,oe=r.WeakMap,ie=re(oe)&&/native code/.test(String(oe)),ue=Bt,ce=Ft("keys"),fe={},ae=ie,le=r,se=W,pe=Bn,ye=_t,be=Mt,ve=function(t){return ce[t]||(ce[t]=ue(t))},ge=fe,he="Object already initialized",de=le.TypeError,me=le.WeakMap;if(ae||be.state){var Se=be.state||(be.state=new me);Se.get=Se.get,Se.has=Se.has,Se.set=Se.set,Zn=function(t,n){if(Se.has(t))throw de(he);return n.facade=t,Se.set(t,n),n},te=function(t){return Se.get(t)||{}},ne=function(t){return Se.has(t)}}else{var we=ve("state");ge[we]=!0,Zn=function(t,n){if(ye(t,we))throw de(he);return n.facade=t,pe(t,we,n),n},te=function(t){return ye(t,we)?t[we]:{}},ne=function(t){return ye(t,we)}}var Oe={set:Zn,get:te,has:ne,enforce:function(t){return ne(t)?te(t):Zn(t,{})},getterFor:function(t){return function(n){var e;if(!se(n)||(e=te(n)).type!==t)throw de("Incompatible receiver, "+t+" required");return e}}},je=O,Pe=i,Ee=B,Te=_t,Ae=u,xe=Xn.CONFIGURABLE,Me=ee,Ce=Oe.enforce,Fe=Oe.get,Ie=String,De=Object.defineProperty,Le=je("".slice),ze=je("".replace),Ne=je([].join),_e=Ae&&!Pe((function(){return 8!==De((function(){}),"length",{value:8}).length})),ke=String(String).split("String"),Re=Hn.exports=function(t,n,e){"Symbol("===Le(Ie(n),0,7)&&(n="["+ze(Ie(n),/^Symbol\(([^)]*)\)/,"$1")+"]"),e&&e.getter&&(n="get "+n),e&&e.setter&&(n="set "+n),(!Te(t,"name")||xe&&t.name!==n)&&(Ae?De(t,"name",{value:n,configurable:!0}):t.name=n),_e&&e&&Te(e,"arity")&&t.length!==e.arity&&De(t,"length",{value:e.arity});try{e&&Te(e,"constructor")&&e.constructor?Ae&&De(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=Ce(t);return Te(r,"source")||(r.source=Ne(ke,"string"==typeof n?n:"")),t};Function.prototype.toString=Re((function(){return Ee(this)&&Fe(this).source||Me(this)}),"toString");var Ge=Hn.exports,qe=B,Be=jn,He=Ge,Ue=Tt,We={},Ke=Math.ceil,Qe=Math.floor,Ve=Math.trunc||function(t){var n=+t;return(n>0?Qe:Ke)(n)},Xe=function(t){var n=+t;return n!=n||0===n?0:Ve(n)},Ye=Xe,$e=Math.max,Je=Math.min,Ze=Xe,tr=Math.min,nr=function(t){return t>0?tr(Ze(t),9007199254740991):0},er=function(t){return nr(t.length)},rr=k,or=function(t,n){var e=Ye(t);return e<0?$e(e+n,0):Je(e,n)},ir=er,ur=function(t){return function(n,e,r){var o,i=rr(n),u=ir(i),c=or(r,u);if(t&&e!=e){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===e)return t||c||0;return!t&&-1}},cr={includes:ur(!0),indexOf:ur(!1)},fr=_t,ar=k,lr=cr.indexOf,sr=fe,pr=O([].push),yr=function(t,n){var e,r=ar(t),o=0,i=[];for(e in r)!fr(sr,e)&&fr(r,e)&&pr(i,e);for(;n.length>o;)fr(r,e=n[o++])&&(~lr(i,e)||pr(i,e));return i},br=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");We.f=Object.getOwnPropertyNames||function(t){return yr(t,br)};var vr={};vr.f=Object.getOwnPropertySymbols;var gr=V,hr=We,dr=vr,mr=xn,Sr=O([].concat),wr=gr("Reflect","ownKeys")||function(t){var n=hr.f(mr(t)),e=dr.f;return e?Sr(n,e(t)):n},Or=_t,jr=wr,Pr=o,Er=jn,Tr=i,Ar=B,xr=/#|\.prototype\./,Mr=function(t,n){var e=Fr[Cr(t)];return e==Dr||e!=Ir&&(Ar(n)?Tr(n):!!n)},Cr=Mr.normalize=function(t){return String(t).replace(xr,".").toLowerCase()},Fr=Mr.data={},Ir=Mr.NATIVE="N",Dr=Mr.POLYFILL="P",Lr=Mr,zr=r,Nr=o.f,_r=Bn,kr=function(t,n,e,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:n;if(qe(e)&&He(e,i,r),r.global)o?t[n]=e:Ue(n,e);else{try{r.unsafe?t[n]&&(o=!0):delete t[n]}catch(t){}o?t[n]=e:Be.f(t,n,{value:e,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},Rr=Tt,Gr=function(t,n,e){for(var r=jr(n),o=Er.f,i=Pr.f,u=0;u9007199254740991)throw Ur("Maximum allowed index exceeded");return t},Io=function(t,n,e){var r=Wr(n);r in t?Kr.f(t,r,Qr(0,e)):t[r]=e},Do=function(t,n){return new(wo(t))(0===n?0:n)},Lo=function(t){return jo>=51||!Oo((function(){var n=[];return(n.constructor={})[Po]=function(){return{foo:1}},1!==n[t](Boolean).foo}))},zo=et,No=$t("isConcatSpreadable"),_o=zo>=51||!To((function(){var t=[];return t[No]=!1,t.concat()[0]!==t})),ko=function(t){if(!xo(t))return!1;var n=t[No];return void 0!==n?!!n:Ao(t)};Eo({target:"Array",proto:!0,arity:1,forced:!_o||!Lo("concat")},{concat:function(t){var n,e,r,o,i,u=Mo(this),c=Do(u,0),f=0;for(n=-1,r=arguments.length;n - */ - - $.fn.multipleSelect.locales['zh-TW'] = { - formatSelectAll: function formatSelectAll() { - return '[全選]'; - }, - formatAllSelected: function formatAllSelected() { - return '已選擇所有記錄'; - }, - formatCountSelected: function formatCountSelected(count, total) { - return '已從' + total + '條記錄中選擇' + count + '條'; - }, - formatNoMatchesFound: function formatNoMatchesFound() { - return '沒有找到記錄'; - } - }; - $.extend($.fn.multipleSelect.defaults, $.fn.multipleSelect.locales['zh-TW']); + typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) : + typeof define === 'function' && define.amd ? define(['jquery'], factory) : + (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jQuery)); +})(this, (function ($$1) { 'use strict'; + + 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 global$b = + // 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) || + // eslint-disable-next-line no-new-func -- fallback + (function () { return this; })() || commonjsGlobal || Function('return this')(); + + var objectGetOwnPropertyDescriptor = {}; + + var fails$b = function (exec) { + try { + return !!exec(); + } catch (error) { + return true; + } + }; + + var fails$a = fails$b; + + // Detect IE8's incomplete defineProperty implementation + var descriptors = !fails$a(function () { + // eslint-disable-next-line es/no-object-defineproperty -- required for testing + return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7; + }); + + var fails$9 = fails$b; + + var functionBindNative = !fails$9(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$1 = functionBindNative; + + var call$4 = Function.prototype.call; + + var functionCall = NATIVE_BIND$1 ? call$4.bind(call$4) : function () { + return call$4.apply(call$4, arguments); + }; + + var objectPropertyIsEnumerable = {}; + + var $propertyIsEnumerable = {}.propertyIsEnumerable; + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; + + // Nashorn ~ JDK8 bug + var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.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$1(this, V); + return !!descriptor && descriptor.enumerable; + } : $propertyIsEnumerable; + + var createPropertyDescriptor$3 = function (bitmap, value) { + return { + enumerable: !(bitmap & 1), + configurable: !(bitmap & 2), + writable: !(bitmap & 4), + value: value + }; + }; + + var NATIVE_BIND = functionBindNative; + + var FunctionPrototype$1 = Function.prototype; + var call$3 = FunctionPrototype$1.call; + var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$3, call$3); + + var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) { + return function () { + return call$3.apply(fn, arguments); + }; + }; + + var uncurryThis$9 = functionUncurryThis; + + var toString$1 = uncurryThis$9({}.toString); + var stringSlice$1 = uncurryThis$9(''.slice); + + var classofRaw$1 = function (it) { + return stringSlice$1(toString$1(it), 8, -1); + }; + + var uncurryThis$8 = functionUncurryThis; + var fails$8 = fails$b; + var classof$3 = classofRaw$1; + + var $Object$3 = Object; + var split = uncurryThis$8(''.split); + + // fallback for non-array-like ES3 and non-enumerable old V8 strings + var indexedObject = fails$8(function () { + // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346 + // eslint-disable-next-line no-prototype-builtins -- safe + return !$Object$3('z').propertyIsEnumerable(0); + }) ? function (it) { + return classof$3(it) == 'String' ? split(it, '') : $Object$3(it); + } : $Object$3; + + // we can't use just `it == null` since of `document.all` special case + // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec + var isNullOrUndefined$2 = function (it) { + return it === null || it === undefined; + }; + + var isNullOrUndefined$1 = isNullOrUndefined$2; + + var $TypeError$6 = TypeError; + + // `RequireObjectCoercible` abstract operation + // https://tc39.es/ecma262/#sec-requireobjectcoercible + var requireObjectCoercible$2 = function (it) { + if (isNullOrUndefined$1(it)) throw $TypeError$6("Can't call method on " + it); + return it; + }; + + // toObject with fallback for non-array-like ES3 strings + var IndexedObject = indexedObject; + var requireObjectCoercible$1 = requireObjectCoercible$2; + + var toIndexedObject$3 = function (it) { + return IndexedObject(requireObjectCoercible$1(it)); + }; + + var documentAll$2 = typeof document == 'object' && document.all; + + // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot + // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing + var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined; + + var documentAll_1 = { + all: documentAll$2, + IS_HTMLDDA: IS_HTMLDDA + }; + + var $documentAll$1 = documentAll_1; + + var documentAll$1 = $documentAll$1.all; + + // `IsCallable` abstract operation + // https://tc39.es/ecma262/#sec-iscallable + var isCallable$c = $documentAll$1.IS_HTMLDDA ? function (argument) { + return typeof argument == 'function' || argument === documentAll$1; + } : function (argument) { + return typeof argument == 'function'; + }; + + var isCallable$b = isCallable$c; + var $documentAll = documentAll_1; + + var documentAll = $documentAll.all; + + var isObject$7 = $documentAll.IS_HTMLDDA ? function (it) { + return typeof it == 'object' ? it !== null : isCallable$b(it) || it === documentAll; + } : function (it) { + return typeof it == 'object' ? it !== null : isCallable$b(it); + }; + + var global$a = global$b; + var isCallable$a = isCallable$c; + + var aFunction = function (argument) { + return isCallable$a(argument) ? argument : undefined; + }; + + var getBuiltIn$3 = function (namespace, method) { + return arguments.length < 2 ? aFunction(global$a[namespace]) : global$a[namespace] && global$a[namespace][method]; + }; + + var uncurryThis$7 = functionUncurryThis; + + var objectIsPrototypeOf = uncurryThis$7({}.isPrototypeOf); + + var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || ''; + + var global$9 = global$b; + var userAgent = engineUserAgent; + + var process = global$9.process; + var Deno = global$9.Deno; + var versions = process && process.versions || Deno && Deno.version; + var v8 = versions && versions.v8; + var match, version; + + 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 = 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 && userAgent) { + match = userAgent.match(/Edge\/(\d+)/); + if (!match || match[1] >= 74) { + match = userAgent.match(/Chrome\/(\d+)/); + if (match) version = +match[1]; + } + } + + var engineV8Version = version; + + /* eslint-disable es/no-symbol -- required for testing */ + + var V8_VERSION$2 = engineV8Version; + var fails$7 = fails$b; + var global$8 = global$b; + + var $String$3 = global$8.String; + + // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing + var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$7(function () { + var symbol = Symbol(); + // 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$3(symbol) || !(Object(symbol) instanceof Symbol) || + // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances + !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41; + }); + + /* eslint-disable es/no-symbol -- required for testing */ + + var NATIVE_SYMBOL$1 = symbolConstructorDetection; + + var useSymbolAsUid = NATIVE_SYMBOL$1 + && !Symbol.sham + && typeof Symbol.iterator == 'symbol'; + + var getBuiltIn$2 = getBuiltIn$3; + var isCallable$9 = isCallable$c; + var isPrototypeOf = objectIsPrototypeOf; + var USE_SYMBOL_AS_UID$1 = useSymbolAsUid; + + var $Object$2 = Object; + + var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) { + return typeof it == 'symbol'; + } : function (it) { + var $Symbol = getBuiltIn$2('Symbol'); + return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it)); + }; + + var $String$2 = String; + + var tryToString$1 = function (argument) { + try { + return $String$2(argument); + } catch (error) { + return 'Object'; + } + }; + + var isCallable$8 = isCallable$c; + var tryToString = tryToString$1; + + var $TypeError$5 = TypeError; + + // `Assert: IsCallable(argument) is true` + var aCallable$1 = function (argument) { + if (isCallable$8(argument)) return argument; + throw $TypeError$5(tryToString(argument) + ' is not a function'); + }; + + var aCallable = aCallable$1; + var isNullOrUndefined = isNullOrUndefined$2; + + // `GetMethod` abstract operation + // https://tc39.es/ecma262/#sec-getmethod + var getMethod$1 = function (V, P) { + var func = V[P]; + return isNullOrUndefined(func) ? undefined : aCallable(func); + }; + + var call$2 = functionCall; + var isCallable$7 = isCallable$c; + var isObject$6 = isObject$7; + + var $TypeError$4 = TypeError; + + // `OrdinaryToPrimitive` abstract operation + // https://tc39.es/ecma262/#sec-ordinarytoprimitive + var ordinaryToPrimitive$1 = function (input, pref) { + var fn, val; + if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val; + if (isCallable$7(fn = input.valueOf) && !isObject$6(val = call$2(fn, input))) return val; + if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val; + throw $TypeError$4("Can't convert object to primitive value"); + }; + + var shared$3 = {exports: {}}; + + var global$7 = global$b; + + // eslint-disable-next-line es/no-object-defineproperty -- safe + var defineProperty$1 = Object.defineProperty; + + var defineGlobalProperty$3 = function (key, value) { + try { + defineProperty$1(global$7, key, { value: value, configurable: true, writable: true }); + } catch (error) { + global$7[key] = value; + } return value; + }; + + var global$6 = global$b; + var defineGlobalProperty$2 = defineGlobalProperty$3; + + var SHARED = '__core-js_shared__'; + var store$3 = global$6[SHARED] || defineGlobalProperty$2(SHARED, {}); + + var sharedStore = store$3; + + var store$2 = sharedStore; + + (shared$3.exports = function (key, value) { + return store$2[key] || (store$2[key] = value !== undefined ? value : {}); + })('versions', []).push({ + version: '3.30.2', + mode: 'global', + copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)', + license: 'https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE', + source: 'https://github.com/zloirock/core-js' + }); + + var sharedExports = shared$3.exports; + + var requireObjectCoercible = requireObjectCoercible$2; + + var $Object$1 = Object; + + // `ToObject` abstract operation + // https://tc39.es/ecma262/#sec-toobject + var toObject$2 = function (argument) { + return $Object$1(requireObjectCoercible(argument)); + }; + + var uncurryThis$6 = functionUncurryThis; + var toObject$1 = toObject$2; + + var hasOwnProperty = uncurryThis$6({}.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$1(it), key); + }; + + var uncurryThis$5 = functionUncurryThis; + + var id = 0; + var postfix = Math.random(); + var toString = uncurryThis$5(1.0.toString); + + var uid$2 = function (key) { + return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36); + }; + + var global$5 = global$b; + var shared$2 = sharedExports; + var hasOwn$6 = hasOwnProperty_1; + var uid$1 = uid$2; + var NATIVE_SYMBOL = symbolConstructorDetection; + var USE_SYMBOL_AS_UID = useSymbolAsUid; + + var Symbol$1 = global$5.Symbol; + var WellKnownSymbolsStore = shared$2('wks'); + var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1; + + var wellKnownSymbol$6 = function (name) { + if (!hasOwn$6(WellKnownSymbolsStore, name)) { + WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name) + ? Symbol$1[name] + : createWellKnownSymbol('Symbol.' + name); + } return WellKnownSymbolsStore[name]; + }; + + var call$1 = functionCall; + var isObject$5 = isObject$7; + var isSymbol$1 = isSymbol$2; + var getMethod = getMethod$1; + var ordinaryToPrimitive = ordinaryToPrimitive$1; + var wellKnownSymbol$5 = wellKnownSymbol$6; + + var $TypeError$3 = TypeError; + var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive'); + + // `ToPrimitive` abstract operation + // https://tc39.es/ecma262/#sec-toprimitive + var toPrimitive$1 = function (input, pref) { + if (!isObject$5(input) || isSymbol$1(input)) return input; + var exoticToPrim = getMethod(input, TO_PRIMITIVE); + var result; + if (exoticToPrim) { + if (pref === undefined) pref = 'default'; + result = call$1(exoticToPrim, input, pref); + if (!isObject$5(result) || isSymbol$1(result)) return result; + throw $TypeError$3("Can't convert object to primitive value"); + } + if (pref === undefined) pref = 'number'; + return ordinaryToPrimitive(input, pref); + }; + + var toPrimitive = toPrimitive$1; + var isSymbol = isSymbol$2; + + // `ToPropertyKey` abstract operation + // https://tc39.es/ecma262/#sec-topropertykey + var toPropertyKey$3 = function (argument) { + var key = toPrimitive(argument, 'string'); + return isSymbol(key) ? key : key + ''; + }; + + var global$4 = global$b; + var isObject$4 = isObject$7; + + var document$1 = global$4.document; + // typeof document.createElement is 'object' in old IE + var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement); + + var documentCreateElement = function (it) { + return EXISTS$1 ? document$1.createElement(it) : {}; + }; + + var DESCRIPTORS$6 = descriptors; + var fails$6 = fails$b; + var createElement = documentCreateElement; + + // Thanks to IE8 for its funny defineProperty + var ie8DomDefine = !DESCRIPTORS$6 && !fails$6(function () { + // eslint-disable-next-line es/no-object-defineproperty -- required for testing + return Object.defineProperty(createElement('div'), 'a', { + get: function () { return 7; } + }).a != 7; + }); + + var DESCRIPTORS$5 = descriptors; + var call = functionCall; + var propertyIsEnumerableModule = objectPropertyIsEnumerable; + var createPropertyDescriptor$2 = createPropertyDescriptor$3; + var toIndexedObject$2 = toIndexedObject$3; + var toPropertyKey$2 = toPropertyKey$3; + var hasOwn$5 = hasOwnProperty_1; + var IE8_DOM_DEFINE$1 = ie8DomDefine; + + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; + + // `Object.getOwnPropertyDescriptor` method + // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor + objectGetOwnPropertyDescriptor.f = DESCRIPTORS$5 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) { + O = toIndexedObject$2(O); + P = toPropertyKey$2(P); + if (IE8_DOM_DEFINE$1) try { + return $getOwnPropertyDescriptor$1(O, P); + } catch (error) { /* empty */ } + if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call(propertyIsEnumerableModule.f, O, P), O[P]); + }; + + var objectDefineProperty = {}; + + var DESCRIPTORS$4 = descriptors; + var fails$5 = fails$b; + + // V8 ~ Chrome 36- + // https://bugs.chromium.org/p/v8/issues/detail?id=3334 + var v8PrototypeDefineBug = DESCRIPTORS$4 && fails$5(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$3 = isObject$7; + + var $String$1 = String; + var $TypeError$2 = TypeError; + + // `Assert: Type(argument) is Object` + var anObject$2 = function (argument) { + if (isObject$3(argument)) return argument; + throw $TypeError$2($String$1(argument) + ' is not an object'); + }; + + var DESCRIPTORS$3 = descriptors; + var IE8_DOM_DEFINE = ie8DomDefine; + var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug; + var anObject$1 = anObject$2; + var toPropertyKey$1 = toPropertyKey$3; + + var $TypeError$1 = TypeError; + // eslint-disable-next-line es/no-object-defineproperty -- safe + var $defineProperty = Object.defineProperty; + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var $getOwnPropertyDescriptor = 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$3 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) { + anObject$1(O); + P = toPropertyKey$1(P); + anObject$1(Attributes); + if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) { + var current = $getOwnPropertyDescriptor(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(O, P, Attributes); + } : $defineProperty : function defineProperty(O, P, Attributes) { + anObject$1(O); + P = toPropertyKey$1(P); + anObject$1(Attributes); + if (IE8_DOM_DEFINE) try { + return $defineProperty(O, P, Attributes); + } catch (error) { /* empty */ } + if ('get' in Attributes || 'set' in Attributes) throw $TypeError$1('Accessors not supported'); + if ('value' in Attributes) O[P] = Attributes.value; + return O; + }; + + var DESCRIPTORS$2 = descriptors; + var definePropertyModule$3 = objectDefineProperty; + var createPropertyDescriptor$1 = createPropertyDescriptor$3; + + var createNonEnumerableProperty$2 = DESCRIPTORS$2 ? function (object, key, value) { + return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value)); + } : function (object, key, value) { + object[key] = value; + return object; + }; + + var makeBuiltIn$2 = {exports: {}}; + + var DESCRIPTORS$1 = descriptors; + var hasOwn$4 = hasOwnProperty_1; + + var FunctionPrototype = Function.prototype; + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var getDescriptor = DESCRIPTORS$1 && Object.getOwnPropertyDescriptor; + + var EXISTS = hasOwn$4(FunctionPrototype, 'name'); + // additional protection from minified / mangled / dropped function names + var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something'; + var CONFIGURABLE = EXISTS && (!DESCRIPTORS$1 || (DESCRIPTORS$1 && getDescriptor(FunctionPrototype, 'name').configurable)); + + var functionName = { + EXISTS: EXISTS, + PROPER: PROPER, + CONFIGURABLE: CONFIGURABLE + }; + + var uncurryThis$4 = functionUncurryThis; + var isCallable$6 = isCallable$c; + var store$1 = sharedStore; + + var functionToString = uncurryThis$4(Function.toString); + + // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper + if (!isCallable$6(store$1.inspectSource)) { + store$1.inspectSource = function (it) { + return functionToString(it); + }; + } + + var inspectSource$2 = store$1.inspectSource; + + var global$3 = global$b; + var isCallable$5 = isCallable$c; + + var WeakMap$1 = global$3.WeakMap; + + var weakMapBasicDetection = isCallable$5(WeakMap$1) && /native code/.test(String(WeakMap$1)); + + var shared$1 = sharedExports; + var uid = uid$2; + + var keys = shared$1('keys'); + + var sharedKey$1 = function (key) { + return keys[key] || (keys[key] = uid(key)); + }; + + var hiddenKeys$3 = {}; + + var NATIVE_WEAK_MAP = weakMapBasicDetection; + var global$2 = global$b; + var isObject$2 = isObject$7; + var createNonEnumerableProperty$1 = createNonEnumerableProperty$2; + var hasOwn$3 = hasOwnProperty_1; + var shared = sharedStore; + var sharedKey = sharedKey$1; + var hiddenKeys$2 = hiddenKeys$3; + + var OBJECT_ALREADY_INITIALIZED = 'Object already initialized'; + var TypeError$1 = global$2.TypeError; + var WeakMap = global$2.WeakMap; + var set, get, has; + + var enforce = function (it) { + return has(it) ? get(it) : set(it, {}); + }; + + var getterFor = function (TYPE) { + return function (it) { + var state; + if (!isObject$2(it) || (state = get(it)).type !== TYPE) { + throw TypeError$1('Incompatible receiver, ' + TYPE + ' required'); + } return state; + }; + }; + + if (NATIVE_WEAK_MAP || shared.state) { + var store = shared.state || (shared.state = new WeakMap()); + /* 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 = function (it, metadata) { + if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED); + metadata.facade = it; + store.set(it, metadata); + return metadata; + }; + get = function (it) { + return store.get(it) || {}; + }; + has = function (it) { + return store.has(it); + }; + } else { + var STATE = sharedKey('state'); + hiddenKeys$2[STATE] = true; + set = function (it, metadata) { + if (hasOwn$3(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED); + metadata.facade = it; + createNonEnumerableProperty$1(it, STATE, metadata); + return metadata; + }; + get = function (it) { + return hasOwn$3(it, STATE) ? it[STATE] : {}; + }; + has = function (it) { + return hasOwn$3(it, STATE); + }; + } + + var internalState = { + set: set, + get: get, + has: has, + enforce: enforce, + getterFor: getterFor + }; + + var uncurryThis$3 = functionUncurryThis; + var fails$4 = fails$b; + var isCallable$4 = isCallable$c; + var hasOwn$2 = hasOwnProperty_1; + var DESCRIPTORS = descriptors; + var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE; + var inspectSource$1 = inspectSource$2; + var InternalStateModule = internalState; + + var enforceInternalState = InternalStateModule.enforce; + var getInternalState = InternalStateModule.get; + var $String = String; + // eslint-disable-next-line es/no-object-defineproperty -- safe + var defineProperty = Object.defineProperty; + var stringSlice = uncurryThis$3(''.slice); + var replace = uncurryThis$3(''.replace); + var join = uncurryThis$3([].join); + + var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails$4(function () { + return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8; + }); + + var TEMPLATE = String(String).split('String'); + + var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) { + if (stringSlice($String(name), 0, 7) === 'Symbol(') { + name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']'; + } + if (options && options.getter) name = 'get ' + name; + if (options && options.setter) name = 'set ' + name; + if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) { + if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true }); + else value.name = name; + } + if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) { + defineProperty(value, 'length', { value: options.arity }); + } + try { + if (options && hasOwn$2(options, 'constructor') && options.constructor) { + if (DESCRIPTORS) defineProperty(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(value); + if (!hasOwn$2(state, 'source')) { + state.source = join(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$1(function toString() { + return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this); + }, 'toString'); + + var makeBuiltInExports = makeBuiltIn$2.exports; + + var isCallable$3 = isCallable$c; + var definePropertyModule$2 = objectDefineProperty; + var makeBuiltIn = makeBuiltInExports; + var defineGlobalProperty$1 = defineGlobalProperty$3; + + var defineBuiltIn$1 = function (O, key, value, options) { + if (!options) options = {}; + var simple = options.enumerable; + var name = options.name !== undefined ? options.name : key; + if (isCallable$3(value)) makeBuiltIn(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$2.f(O, key, { + value: value, + enumerable: false, + configurable: !options.nonConfigurable, + writable: !options.nonWritable + }); + } return O; + }; + + var objectGetOwnPropertyNames = {}; + + var ceil = Math.ceil; + var floor = 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 : ceil)(n); + }; + + var trunc = mathTrunc; + + // `ToIntegerOrInfinity` abstract operation + // https://tc39.es/ecma262/#sec-tointegerorinfinity + var toIntegerOrInfinity$2 = function (argument) { + var number = +argument; + // eslint-disable-next-line no-self-compare -- NaN check + return number !== number || number === 0 ? 0 : trunc(number); + }; + + var toIntegerOrInfinity$1 = toIntegerOrInfinity$2; + + var max = Math.max; + var min$1 = 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$1 = function (index, length) { + var integer = toIntegerOrInfinity$1(index); + return integer < 0 ? max(integer + length, 0) : min$1(integer, length); + }; + + var toIntegerOrInfinity = toIntegerOrInfinity$2; + + var min = Math.min; + + // `ToLength` abstract operation + // https://tc39.es/ecma262/#sec-tolength + var toLength$1 = function (argument) { + return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 + }; + + var toLength = toLength$1; + + // `LengthOfArrayLike` abstract operation + // https://tc39.es/ecma262/#sec-lengthofarraylike + var lengthOfArrayLike$2 = function (obj) { + return toLength(obj.length); + }; + + var toIndexedObject$1 = toIndexedObject$3; + var toAbsoluteIndex = toAbsoluteIndex$1; + var lengthOfArrayLike$1 = lengthOfArrayLike$2; + + // `Array.prototype.{ indexOf, includes }` methods implementation + var createMethod = function (IS_INCLUDES) { + return function ($this, el, fromIndex) { + var O = toIndexedObject$1($this); + var length = lengthOfArrayLike$1(O); + var index = toAbsoluteIndex(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(true), + // `Array.prototype.indexOf` method + // https://tc39.es/ecma262/#sec-array.prototype.indexof + indexOf: createMethod(false) + }; + + var uncurryThis$2 = functionUncurryThis; + var hasOwn$1 = hasOwnProperty_1; + var toIndexedObject = toIndexedObject$3; + var indexOf = arrayIncludes.indexOf; + var hiddenKeys$1 = hiddenKeys$3; + + var push = uncurryThis$2([].push); + + var objectKeysInternal = function (object, names) { + var O = toIndexedObject(object); + var i = 0; + var result = []; + var key; + for (key in O) !hasOwn$1(hiddenKeys$1, key) && hasOwn$1(O, key) && push(result, key); + // Don't enum bug & hidden keys + while (names.length > i) if (hasOwn$1(O, key = names[i++])) { + ~indexOf(result, key) || push(result, key); + } + return result; + }; + + // IE8- don't enum bug keys + var enumBugKeys$1 = [ + 'constructor', + 'hasOwnProperty', + 'isPrototypeOf', + 'propertyIsEnumerable', + 'toLocaleString', + 'toString', + 'valueOf' + ]; + + var internalObjectKeys = objectKeysInternal; + var enumBugKeys = enumBugKeys$1; + + var hiddenKeys = enumBugKeys.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(O, hiddenKeys); + }; + + var objectGetOwnPropertySymbols = {}; + + // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe + objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols; + + var getBuiltIn$1 = getBuiltIn$3; + var uncurryThis$1 = functionUncurryThis; + var getOwnPropertyNamesModule = objectGetOwnPropertyNames; + var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols; + var anObject = anObject$2; + + var concat = uncurryThis$1([].concat); + + // all object keys, includes non-enumerable and symbols + var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) { + var keys = getOwnPropertyNamesModule.f(anObject(it)); + var getOwnPropertySymbols = getOwnPropertySymbolsModule.f; + return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys; + }; + + var hasOwn = hasOwnProperty_1; + var ownKeys = ownKeys$1; + var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor; + var definePropertyModule$1 = objectDefineProperty; + + var copyConstructorProperties$1 = function (target, source, exceptions) { + var keys = ownKeys(source); + var defineProperty = definePropertyModule$1.f; + var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) { + defineProperty(target, key, getOwnPropertyDescriptor(source, key)); + } + } + }; + + var fails$3 = fails$b; + var isCallable$2 = isCallable$c; + + var replacement = /#|\.prototype\./; + + var isForced$1 = function (feature, detection) { + var value = data[normalize(feature)]; + return value == POLYFILL ? true + : value == NATIVE ? false + : isCallable$2(detection) ? fails$3(detection) + : !!detection; + }; + + var normalize = isForced$1.normalize = function (string) { + return String(string).replace(replacement, '.').toLowerCase(); + }; + + var data = isForced$1.data = {}; + var NATIVE = isForced$1.NATIVE = 'N'; + var POLYFILL = isForced$1.POLYFILL = 'P'; + + var isForced_1 = isForced$1; + + var global$1 = global$b; + var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f; + var createNonEnumerableProperty = createNonEnumerableProperty$2; + var defineBuiltIn = defineBuiltIn$1; + var defineGlobalProperty = defineGlobalProperty$3; + var copyConstructorProperties = copyConstructorProperties$1; + var isForced = 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 = global$1; + } else if (STATIC) { + target = global$1[TARGET] || defineGlobalProperty(TARGET, {}); + } else { + target = (global$1[TARGET] || {}).prototype; + } + if (target) for (key in source) { + sourceProperty = source[key]; + if (options.dontCallGetSet) { + descriptor = getOwnPropertyDescriptor(target, key); + targetProperty = descriptor && descriptor.value; + } else targetProperty = target[key]; + FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); + // contained in target + if (!FORCED && targetProperty !== undefined) { + if (typeof sourceProperty == typeof targetProperty) continue; + copyConstructorProperties(sourceProperty, targetProperty); + } + // add a flag to not completely full polyfills + if (options.sham || (targetProperty && targetProperty.sham)) { + createNonEnumerableProperty(sourceProperty, 'sham', true); + } + defineBuiltIn(target, key, sourceProperty, options); + } + }; + + var classof$2 = classofRaw$1; + + // `IsArray` abstract operation + // https://tc39.es/ecma262/#sec-isarray + // eslint-disable-next-line es/no-array-isarray -- safe + var isArray$2 = Array.isArray || function isArray(argument) { + return classof$2(argument) == 'Array'; + }; + + var $TypeError = TypeError; + var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991 + + var doesNotExceedSafeInteger$1 = function (it) { + if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded'); + return it; + }; + + var toPropertyKey = toPropertyKey$3; + var definePropertyModule = objectDefineProperty; + var createPropertyDescriptor = createPropertyDescriptor$3; + + var createProperty$1 = function (object, key, value) { + var propertyKey = toPropertyKey(key); + if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value)); + else object[propertyKey] = value; + }; + + var wellKnownSymbol$4 = wellKnownSymbol$6; + + var TO_STRING_TAG$1 = wellKnownSymbol$4('toStringTag'); + var test = {}; + + test[TO_STRING_TAG$1] = 'z'; + + var toStringTagSupport = String(test) === '[object z]'; + + var TO_STRING_TAG_SUPPORT = toStringTagSupport; + var isCallable$1 = isCallable$c; + var classofRaw = classofRaw$1; + var wellKnownSymbol$3 = wellKnownSymbol$6; + + var TO_STRING_TAG = wellKnownSymbol$3('toStringTag'); + var $Object = Object; + + // ES3 wrong here + var CORRECT_ARGUMENTS = classofRaw(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$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) { + var O, tag, result; + return it === undefined ? 'Undefined' : it === null ? 'Null' + // @@toStringTag case + : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag + // builtinTag case + : CORRECT_ARGUMENTS ? classofRaw(O) + // ES3 arguments fallback + : (result = classofRaw(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result; + }; + + var uncurryThis = functionUncurryThis; + var fails$2 = fails$b; + var isCallable = isCallable$c; + var classof = classof$1; + var getBuiltIn = getBuiltIn$3; + var inspectSource = inspectSource$2; + + var noop = function () { /* empty */ }; + var empty = []; + var construct = getBuiltIn('Reflect', 'construct'); + var constructorRegExp = /^\s*(?:class|function)\b/; + var exec = uncurryThis(constructorRegExp.exec); + var INCORRECT_TO_STRING = !constructorRegExp.exec(noop); + + var isConstructorModern = function isConstructor(argument) { + if (!isCallable(argument)) return false; + try { + construct(noop, empty, argument); + return true; + } catch (error) { + return false; + } + }; + + var isConstructorLegacy = function isConstructor(argument) { + if (!isCallable(argument)) return false; + switch (classof(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 || !!exec(constructorRegExp, inspectSource(argument)); + } catch (error) { + return true; + } + }; + + isConstructorLegacy.sham = true; + + // `IsConstructor` abstract operation + // https://tc39.es/ecma262/#sec-isconstructor + var isConstructor$1 = !construct || fails$2(function () { + var called; + return isConstructorModern(isConstructorModern.call) + || !isConstructorModern(Object) + || !isConstructorModern(function () { called = true; }) + || called; + }) ? isConstructorLegacy : isConstructorModern; + + var isArray$1 = isArray$2; + var isConstructor = isConstructor$1; + var isObject$1 = isObject$7; + var wellKnownSymbol$2 = wellKnownSymbol$6; + + var SPECIES$1 = wellKnownSymbol$2('species'); + var $Array = Array; + + // a part of `ArraySpeciesCreate` abstract operation + // https://tc39.es/ecma262/#sec-arrayspeciescreate + var arraySpeciesConstructor$1 = function (originalArray) { + var C; + if (isArray$1(originalArray)) { + C = originalArray.constructor; + // cross-realm fallback + if (isConstructor(C) && (C === $Array || isArray$1(C.prototype))) C = undefined; + else if (isObject$1(C)) { + C = C[SPECIES$1]; + if (C === null) C = undefined; + } + } return C === undefined ? $Array : C; + }; + + var arraySpeciesConstructor = arraySpeciesConstructor$1; + + // `ArraySpeciesCreate` abstract operation + // https://tc39.es/ecma262/#sec-arrayspeciescreate + var arraySpeciesCreate$1 = function (originalArray, length) { + return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length); + }; + + var fails$1 = fails$b; + var wellKnownSymbol$1 = wellKnownSymbol$6; + var V8_VERSION$1 = engineV8Version; + + var SPECIES = wellKnownSymbol$1('species'); + + var arrayMethodHasSpeciesSupport$1 = function (METHOD_NAME) { + // We can't use this feature detection in V8 since it causes + // deoptimization and serious performance degradation + // https://github.com/zloirock/core-js/issues/677 + return V8_VERSION$1 >= 51 || !fails$1(function () { + var array = []; + var constructor = array.constructor = {}; + constructor[SPECIES] = function () { + return { foo: 1 }; + }; + return array[METHOD_NAME](Boolean).foo !== 1; + }); + }; + + var $ = _export; + var fails = fails$b; + var isArray = isArray$2; + var isObject = isObject$7; + var toObject = toObject$2; + var lengthOfArrayLike = lengthOfArrayLike$2; + var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1; + var createProperty = createProperty$1; + var arraySpeciesCreate = arraySpeciesCreate$1; + var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1; + var wellKnownSymbol = wellKnownSymbol$6; + var V8_VERSION = engineV8Version; + + var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable'); + + // We can't use this feature detection in V8 since it causes + // deoptimization and serious performance degradation + // https://github.com/zloirock/core-js/issues/679 + var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () { + var array = []; + array[IS_CONCAT_SPREADABLE] = false; + return array.concat()[0] !== array; + }); + + var isConcatSpreadable = function (O) { + if (!isObject(O)) return false; + var spreadable = O[IS_CONCAT_SPREADABLE]; + return spreadable !== undefined ? !!spreadable : isArray(O); + }; + + var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat'); + + // `Array.prototype.concat` method + // https://tc39.es/ecma262/#sec-array.prototype.concat + // with adding support of @@isConcatSpreadable and @@species + $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, { + // eslint-disable-next-line no-unused-vars -- required for `.length` + concat: function concat(arg) { + var O = toObject(this); + var A = arraySpeciesCreate(O, 0); + var n = 0; + var i, k, length, len, E; + for (i = -1, length = arguments.length; i < length; i++) { + E = i === -1 ? O : arguments[i]; + if (isConcatSpreadable(E)) { + len = lengthOfArrayLike(E); + doesNotExceedSafeInteger(n + len); + for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]); + } else { + doesNotExceedSafeInteger(n + 1); + createProperty(A, n++, E); + } + } + A.length = n; + return A; + } + }); + + /** + * Multiple Select zh-TW translation + * Author: Zhixin Wen + */ + + $$1.fn.multipleSelect.locales['zh-TW'] = { + formatSelectAll: function formatSelectAll() { + return '[全選]'; + }, + formatAllSelected: function formatAllSelected() { + return '已選擇所有記錄'; + }, + formatCountSelected: function formatCountSelected(count, total) { + return "\u5DF2\u5F9E".concat(total, "\u689D\u8A18\u9304\u4E2D\u9078\u64C7").concat(count, "\u689D"); + }, + formatNoMatchesFound: function formatNoMatchesFound() { + return '沒有找到記錄'; + } + }; + $$1.extend($$1.fn.multipleSelect.defaults, $$1.fn.multipleSelect.locales['zh-TW']); })); diff --git a/dist/locale/multiple-select-zh-TW.min.js b/dist/locale/multiple-select-zh-TW.min.js index a6cc294f..e92ad74b 100644 --- a/dist/locale/multiple-select-zh-TW.min.js +++ b/dist/locale/multiple-select-zh-TW.min.js @@ -1,10 +1,10 @@ /** * multiple-select - Multiple select is a jQuery plugin to select multiple elements with checkboxes :). * - * @version v1.5.2 + * @version v1.6.0 * @homepage http://multiple-select.wenzhixin.net.cn * @author wenzhixin (http://wenzhixin.net.cn/) * @license MIT */ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):t((e=e||self).jQuery)}(this,(function(e){"use strict";(e=e&&e.hasOwnProperty("default")?e.default:e).fn.multipleSelect.locales["zh-TW"]={formatSelectAll:function(){return"[全選]"},formatAllSelected:function(){return"已選擇所有記錄"},formatCountSelected:function(e,t){return"已從"+t+"條記錄中選擇"+e+"條"},formatNoMatchesFound:function(){return"沒有找到記錄"}},e.extend(e.fn.multipleSelect.defaults,e.fn.multipleSelect.locales["zh-TW"])})); +!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=function(t){return t&&t.Math==Math&&t},r=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n&&n)||function(){return this}()||n||Function("return this")(),o={},i=function(t){try{return!!t()}catch(t){return!0}},u=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=c,a=Function.prototype.call,l=f?a.bind(a):function(){return a.apply(a,arguments)},s={},p={}.propertyIsEnumerable,y=Object.getOwnPropertyDescriptor,b=y&&!p.call({1:2},1);s.f=b?function(t){var n=y(this,t);return!!n&&n.enumerable}:p;var v,g,h=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},d=c,m=Function.prototype,S=m.call,w=d&&m.bind.bind(S,S),O=d?w:function(t){return function(){return S.apply(t,arguments)}},j=O,P=j({}.toString),T=j("".slice),E=function(t){return T(P(t),8,-1)},A=i,x=E,M=Object,F=O("".split),I=A((function(){return!M("z").propertyIsEnumerable(0)}))?function(t){return"String"==x(t)?F(t,""):M(t)}:M,C=function(t){return null==t},D=C,L=TypeError,z=function(t){if(D(t))throw L("Can't call method on "+t);return t},_=I,k=z,N=function(t){return _(k(t))},R="object"==typeof document&&document.all,G={all:R,IS_HTMLDDA:void 0===R&&void 0!==R},W=G.all,q=G.IS_HTMLDDA?function(t){return"function"==typeof t||t===W}:function(t){return"function"==typeof t},B=q,H=G.all,U=G.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:B(t)||t===H}:function(t){return"object"==typeof t?null!==t:B(t)},K=r,Q=q,V=function(t,n){return arguments.length<2?(e=K[t],Q(e)?e:void 0):K[t]&&K[t][n];var e},X=O({}.isPrototypeOf),Y=r,$="undefined"!=typeof navigator&&String(navigator.userAgent)||"",J=Y.process,Z=Y.Deno,tt=J&&J.versions||Z&&Z.version,nt=tt&&tt.v8;nt&&(g=(v=nt.split("."))[0]>0&&v[0]<4?1:+(v[0]+v[1])),!g&&$&&(!(v=$.match(/Edge\/(\d+)/))||v[1]>=74)&&(v=$.match(/Chrome\/(\d+)/))&&(g=+v[1]);var et=g,rt=et,ot=i,it=r.String,ut=!!Object.getOwnPropertySymbols&&!ot((function(){var t=Symbol();return!it(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&rt&&rt<41})),ct=ut&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ft=V,at=q,lt=X,st=Object,pt=ct?function(t){return"symbol"==typeof t}:function(t){var n=ft("Symbol");return at(n)&<(n.prototype,st(t))},yt=String,bt=q,vt=function(t){try{return yt(t)}catch(t){return"Object"}},gt=TypeError,ht=function(t){if(bt(t))return t;throw gt(vt(t)+" is not a function")},dt=C,mt=l,St=q,wt=U,Ot=TypeError,jt={exports:{}},Pt=r,Tt=Object.defineProperty,Et=function(t,n){try{Tt(Pt,t,{value:n,configurable:!0,writable:!0})}catch(e){Pt[t]=n}return n},At=Et,xt="__core-js_shared__",Mt=r[xt]||At(xt,{}),Ft=Mt;(jt.exports=function(t,n){return Ft[t]||(Ft[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.30.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var It=jt.exports,Ct=z,Dt=Object,Lt=function(t){return Dt(Ct(t))},zt=Lt,_t=O({}.hasOwnProperty),kt=Object.hasOwn||function(t,n){return _t(zt(t),n)},Nt=O,Rt=0,Gt=Math.random(),Wt=Nt(1..toString),qt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Wt(++Rt+Gt,36)},Bt=It,Ht=kt,Ut=qt,Kt=ut,Qt=ct,Vt=r.Symbol,Xt=Bt("wks"),Yt=Qt?Vt.for||Vt:Vt&&Vt.withoutSetter||Ut,$t=function(t){return Ht(Xt,t)||(Xt[t]=Kt&&Ht(Vt,t)?Vt[t]:Yt("Symbol."+t)),Xt[t]},Jt=l,Zt=U,tn=pt,nn=function(t,n){var e=t[n];return dt(e)?void 0:ht(e)},en=function(t,n){var e,r;if("string"===n&&St(e=t.toString)&&!wt(r=mt(e,t)))return r;if(St(e=t.valueOf)&&!wt(r=mt(e,t)))return r;if("string"!==n&&St(e=t.toString)&&!wt(r=mt(e,t)))return r;throw Ot("Can't convert object to primitive value")},rn=TypeError,on=$t("toPrimitive"),un=function(t,n){if(!Zt(t)||tn(t))return t;var e,r=nn(t,on);if(r){if(void 0===n&&(n="default"),e=Jt(r,t,n),!Zt(e)||tn(e))return e;throw rn("Can't convert object to primitive value")}return void 0===n&&(n="number"),en(t,n)},cn=pt,fn=function(t){var n=un(t,"string");return cn(n)?n:n+""},an=U,ln=r.document,sn=an(ln)&&an(ln.createElement),pn=function(t){return sn?ln.createElement(t):{}},yn=!u&&!i((function(){return 7!=Object.defineProperty(pn("div"),"a",{get:function(){return 7}}).a})),bn=u,vn=l,gn=s,hn=h,dn=N,mn=fn,Sn=kt,wn=yn,On=Object.getOwnPropertyDescriptor;o.f=bn?On:function(t,n){if(t=dn(t),n=mn(n),wn)try{return On(t,n)}catch(t){}if(Sn(t,n))return hn(!vn(gn.f,t,n),t[n])};var jn={},Pn=u&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Tn=U,En=String,An=TypeError,xn=function(t){if(Tn(t))return t;throw An(En(t)+" is not an object")},Mn=u,Fn=yn,In=Pn,Cn=xn,Dn=fn,Ln=TypeError,zn=Object.defineProperty,_n=Object.getOwnPropertyDescriptor,kn="enumerable",Nn="configurable",Rn="writable";jn.f=Mn?In?function(t,n,e){if(Cn(t),n=Dn(n),Cn(e),"function"==typeof t&&"prototype"===n&&"value"in e&&Rn in e&&!e[Rn]){var r=_n(t,n);r&&r[Rn]&&(t[n]=e.value,e={configurable:Nn in e?e[Nn]:r[Nn],enumerable:kn in e?e[kn]:r[kn],writable:!1})}return zn(t,n,e)}:zn:function(t,n,e){if(Cn(t),n=Dn(n),Cn(e),Fn)try{return zn(t,n,e)}catch(t){}if("get"in e||"set"in e)throw Ln("Accessors not supported");return"value"in e&&(t[n]=e.value),t};var Gn=jn,Wn=h,qn=u?function(t,n,e){return Gn.f(t,n,Wn(1,e))}:function(t,n,e){return t[n]=e,t},Bn={exports:{}},Hn=u,Un=kt,Kn=Function.prototype,Qn=Hn&&Object.getOwnPropertyDescriptor,Vn=Un(Kn,"name"),Xn={EXISTS:Vn,PROPER:Vn&&"something"===function(){}.name,CONFIGURABLE:Vn&&(!Hn||Hn&&Qn(Kn,"name").configurable)},Yn=q,$n=Mt,Jn=O(Function.toString);Yn($n.inspectSource)||($n.inspectSource=function(t){return Jn(t)});var Zn,te,ne,ee=$n.inspectSource,re=q,oe=r.WeakMap,ie=re(oe)&&/native code/.test(String(oe)),ue=qt,ce=It("keys"),fe={},ae=ie,le=r,se=U,pe=qn,ye=kt,be=Mt,ve=function(t){return ce[t]||(ce[t]=ue(t))},ge=fe,he="Object already initialized",de=le.TypeError,me=le.WeakMap;if(ae||be.state){var Se=be.state||(be.state=new me);Se.get=Se.get,Se.has=Se.has,Se.set=Se.set,Zn=function(t,n){if(Se.has(t))throw de(he);return n.facade=t,Se.set(t,n),n},te=function(t){return Se.get(t)||{}},ne=function(t){return Se.has(t)}}else{var we=ve("state");ge[we]=!0,Zn=function(t,n){if(ye(t,we))throw de(he);return n.facade=t,pe(t,we,n),n},te=function(t){return ye(t,we)?t[we]:{}},ne=function(t){return ye(t,we)}}var Oe={set:Zn,get:te,has:ne,enforce:function(t){return ne(t)?te(t):Zn(t,{})},getterFor:function(t){return function(n){var e;if(!se(n)||(e=te(n)).type!==t)throw de("Incompatible receiver, "+t+" required");return e}}},je=O,Pe=i,Te=q,Ee=kt,Ae=u,xe=Xn.CONFIGURABLE,Me=ee,Fe=Oe.enforce,Ie=Oe.get,Ce=String,De=Object.defineProperty,Le=je("".slice),ze=je("".replace),_e=je([].join),ke=Ae&&!Pe((function(){return 8!==De((function(){}),"length",{value:8}).length})),Ne=String(String).split("String"),Re=Bn.exports=function(t,n,e){"Symbol("===Le(Ce(n),0,7)&&(n="["+ze(Ce(n),/^Symbol\(([^)]*)\)/,"$1")+"]"),e&&e.getter&&(n="get "+n),e&&e.setter&&(n="set "+n),(!Ee(t,"name")||xe&&t.name!==n)&&(Ae?De(t,"name",{value:n,configurable:!0}):t.name=n),ke&&e&&Ee(e,"arity")&&t.length!==e.arity&&De(t,"length",{value:e.arity});try{e&&Ee(e,"constructor")&&e.constructor?Ae&&De(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=Fe(t);return Ee(r,"source")||(r.source=_e(Ne,"string"==typeof n?n:"")),t};Function.prototype.toString=Re((function(){return Te(this)&&Ie(this).source||Me(this)}),"toString");var Ge=Bn.exports,We=q,qe=jn,Be=Ge,He=Et,Ue={},Ke=Math.ceil,Qe=Math.floor,Ve=Math.trunc||function(t){var n=+t;return(n>0?Qe:Ke)(n)},Xe=function(t){var n=+t;return n!=n||0===n?0:Ve(n)},Ye=Xe,$e=Math.max,Je=Math.min,Ze=Xe,tr=Math.min,nr=function(t){return t>0?tr(Ze(t),9007199254740991):0},er=function(t){return nr(t.length)},rr=N,or=function(t,n){var e=Ye(t);return e<0?$e(e+n,0):Je(e,n)},ir=er,ur=function(t){return function(n,e,r){var o,i=rr(n),u=ir(i),c=or(r,u);if(t&&e!=e){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===e)return t||c||0;return!t&&-1}},cr={includes:ur(!0),indexOf:ur(!1)},fr=kt,ar=N,lr=cr.indexOf,sr=fe,pr=O([].push),yr=function(t,n){var e,r=ar(t),o=0,i=[];for(e in r)!fr(sr,e)&&fr(r,e)&&pr(i,e);for(;n.length>o;)fr(r,e=n[o++])&&(~lr(i,e)||pr(i,e));return i},br=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");Ue.f=Object.getOwnPropertyNames||function(t){return yr(t,br)};var vr={};vr.f=Object.getOwnPropertySymbols;var gr=V,hr=Ue,dr=vr,mr=xn,Sr=O([].concat),wr=gr("Reflect","ownKeys")||function(t){var n=hr.f(mr(t)),e=dr.f;return e?Sr(n,e(t)):n},Or=kt,jr=wr,Pr=o,Tr=jn,Er=i,Ar=q,xr=/#|\.prototype\./,Mr=function(t,n){var e=Ir[Fr(t)];return e==Dr||e!=Cr&&(Ar(n)?Er(n):!!n)},Fr=Mr.normalize=function(t){return String(t).replace(xr,".").toLowerCase()},Ir=Mr.data={},Cr=Mr.NATIVE="N",Dr=Mr.POLYFILL="P",Lr=Mr,zr=r,_r=o.f,kr=qn,Nr=function(t,n,e,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:n;if(We(e)&&Be(e,i,r),r.global)o?t[n]=e:He(n,e);else{try{r.unsafe?t[n]&&(o=!0):delete t[n]}catch(t){}o?t[n]=e:qe.f(t,n,{value:e,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},Rr=Et,Gr=function(t,n,e){for(var r=jr(n),o=Tr.f,i=Pr.f,u=0;u9007199254740991)throw Hr("Maximum allowed index exceeded");return t},Co=function(t,n,e){var r=Ur(n);r in t?Kr.f(t,r,Qr(0,e)):t[r]=e},Do=function(t,n){return new(wo(t))(0===n?0:n)},Lo=function(t){return jo>=51||!Oo((function(){var n=[];return(n.constructor={})[Po]=function(){return{foo:1}},1!==n[t](Boolean).foo}))},zo=et,_o=$t("isConcatSpreadable"),ko=zo>=51||!Eo((function(){var t=[];return t[_o]=!1,t.concat()[0]!==t})),No=function(t){if(!xo(t))return!1;var n=t[_o];return void 0!==n?!!n:Ao(t)};To({target:"Array",proto:!0,arity:1,forced:!ko||!Lo("concat")},{concat:function(t){var n,e,r,o,i,u=Mo(this),c=Do(u,0),f=0;for(n=-1,r=arguments.length;n arr.length) len = arr.length; + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; } - function _nonIterableSpread() { - throw new TypeError("Invalid attempt to spread non-iterable instance"); + 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 _nonIterableRest() { - throw new TypeError("Invalid attempt to destructure non-iterable instance"); + 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 _createForOfIteratorHelper(o, allowArrayLike) { + var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; + if (!it) { + if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { + if (it) o = it; + var i = 0; + var F = function () {}; + return { + s: F, + n: function () { + if (i >= o.length) return { + done: true + }; + return { + done: false, + value: o[i++] + }; + }, + e: function (e) { + throw e; + }, + f: F + }; + } + throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + } + var normalCompletion = true, + didErr = false, + err; + return { + s: function () { + it = it.call(o); + }, + n: function () { + var step = it.next(); + normalCompletion = step.done; + return step; + }, + e: function (e) { + didErr = true; + err = e; + }, + f: function () { + try { + if (!normalCompletion && it.return != null) it.return(); + } finally { + if (didErr) throw err; + } + } + }; +} +function _toPrimitive(input, hint) { + if (typeof input !== "object" || input === null) return input; + var prim = input[Symbol.toPrimitive]; + if (prim !== undefined) { + var res = prim.call(input, hint || "default"); + if (typeof res !== "object") return res; + throw new TypeError("@@toPrimitive must return a primitive value."); + } + return (hint === "string" ? String : Number)(input); +} +function _toPropertyKey(arg) { + var key = _toPrimitive(arg, "string"); + return typeof key === "symbol" ? key : String(key); } var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; -function createCommonjsModule(fn, module) { - return module = { exports: {} }, fn(module, module.exports), module.exports; -} - -var O = 'object'; var check = function (it) { return it && it.Math == Math && it; }; // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 -var global_1 = - // eslint-disable-next-line no-undef - check(typeof globalThis == O && globalThis) || - check(typeof window == O && window) || - check(typeof self == O && self) || - check(typeof commonjsGlobal == O && commonjsGlobal) || - // eslint-disable-next-line no-new-func - Function('return this')(); - -var fails = function (exec) { +var global$f = + // 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) || + // eslint-disable-next-line no-new-func -- fallback + (function () { return this; })() || commonjsGlobal || Function('return this')(); + +var objectGetOwnPropertyDescriptor = {}; + +var fails$m = function (exec) { try { return !!exec(); } catch (error) { @@ -125,29 +183,48 @@ var fails = function (exec) { } }; -// Thank's IE8 for his funny defineProperty -var descriptors = !fails(function () { - return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; +var fails$l = fails$m; + +// Detect IE8's incomplete defineProperty implementation +var descriptors = !fails$l(function () { + // eslint-disable-next-line es/no-object-defineproperty -- required for testing + return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7; }); -var nativePropertyIsEnumerable = {}.propertyIsEnumerable; -var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; +var fails$k = fails$m; + +var functionBindNative = !fails$k(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$3 = functionBindNative; + +var call$b = Function.prototype.call; + +var functionCall = NATIVE_BIND$3 ? call$b.bind(call$b) : function () { + return call$b.apply(call$b, arguments); +}; + +var objectPropertyIsEnumerable = {}; + +var $propertyIsEnumerable$1 = {}.propertyIsEnumerable; +// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe +var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; // Nashorn ~ JDK8 bug -var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1); +var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable$1.call({ 1: 2 }, 1); // `Object.prototype.propertyIsEnumerable` method implementation -// https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable -var f = NASHORN_BUG ? function propertyIsEnumerable(V) { - var descriptor = getOwnPropertyDescriptor(this, V); +// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable +objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) { + var descriptor = getOwnPropertyDescriptor$1(this, V); return !!descriptor && descriptor.enumerable; -} : nativePropertyIsEnumerable; +} : $propertyIsEnumerable$1; -var objectPropertyIsEnumerable = { - f: f -}; - -var createPropertyDescriptor = function (bitmap, value) { +var createPropertyDescriptor$3 = function (bitmap, value) { return { enumerable: !(bitmap & 1), configurable: !(bitmap & 2), @@ -156,307 +233,766 @@ var createPropertyDescriptor = function (bitmap, value) { }; }; -var toString = {}.toString; +var NATIVE_BIND$2 = functionBindNative; + +var FunctionPrototype$3 = Function.prototype; +var call$a = FunctionPrototype$3.call; +var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$3.bind.bind(call$a, call$a); + +var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) { + return function () { + return call$a.apply(fn, arguments); + }; +}; + +var uncurryThis$p = functionUncurryThis; + +var toString$a = uncurryThis$p({}.toString); +var stringSlice$6 = uncurryThis$p(''.slice); -var classofRaw = function (it) { - return toString.call(it).slice(8, -1); +var classofRaw$2 = function (it) { + return stringSlice$6(toString$a(it), 8, -1); }; -var split = ''.split; +var uncurryThis$o = functionUncurryThis; +var fails$j = fails$m; +var classof$8 = classofRaw$2; + +var $Object$3 = Object; +var split = uncurryThis$o(''.split); // fallback for non-array-like ES3 and non-enumerable old V8 strings -var indexedObject = fails(function () { +var indexedObject = fails$j(function () { // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346 - // eslint-disable-next-line no-prototype-builtins - return !Object('z').propertyIsEnumerable(0); + // eslint-disable-next-line no-prototype-builtins -- safe + return !$Object$3('z').propertyIsEnumerable(0); }) ? function (it) { - return classofRaw(it) == 'String' ? split.call(it, '') : Object(it); -} : Object; + return classof$8(it) == 'String' ? split(it, '') : $Object$3(it); +} : $Object$3; + +// we can't use just `it == null` since of `document.all` special case +// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec +var isNullOrUndefined$6 = function (it) { + return it === null || it === undefined; +}; + +var isNullOrUndefined$5 = isNullOrUndefined$6; + +var $TypeError$a = TypeError; // `RequireObjectCoercible` abstract operation -// https://tc39.github.io/ecma262/#sec-requireobjectcoercible -var requireObjectCoercible = function (it) { - if (it == undefined) throw TypeError("Can't call method on " + it); +// https://tc39.es/ecma262/#sec-requireobjectcoercible +var requireObjectCoercible$8 = function (it) { + if (isNullOrUndefined$5(it)) throw $TypeError$a("Can't call method on " + it); return it; }; // toObject with fallback for non-array-like ES3 strings +var IndexedObject$4 = indexedObject; +var requireObjectCoercible$7 = requireObjectCoercible$8; + +var toIndexedObject$7 = function (it) { + return IndexedObject$4(requireObjectCoercible$7(it)); +}; + +var documentAll$2 = typeof document == 'object' && document.all; +// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot +// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing +var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined; +var documentAll_1 = { + all: documentAll$2, + IS_HTMLDDA: IS_HTMLDDA +}; + +var $documentAll$1 = documentAll_1; -var toIndexedObject = function (it) { - return indexedObject(requireObjectCoercible(it)); +var documentAll$1 = $documentAll$1.all; + +// `IsCallable` abstract operation +// https://tc39.es/ecma262/#sec-iscallable +var isCallable$e = $documentAll$1.IS_HTMLDDA ? function (argument) { + return typeof argument == 'function' || argument === documentAll$1; +} : function (argument) { + return typeof argument == 'function'; }; -var isObject = function (it) { - return typeof it === 'object' ? it !== null : typeof it === 'function'; +var isCallable$d = isCallable$e; +var $documentAll = documentAll_1; + +var documentAll = $documentAll.all; + +var isObject$9 = $documentAll.IS_HTMLDDA ? function (it) { + return typeof it == 'object' ? it !== null : isCallable$d(it) || it === documentAll; +} : function (it) { + return typeof it == 'object' ? it !== null : isCallable$d(it); }; -// `ToPrimitive` abstract operation -// https://tc39.github.io/ecma262/#sec-toprimitive -// instead of the ES6 spec version, we didn't implement @@toPrimitive case -// and the second argument - flag - preferred type is a string -var toPrimitive = function (input, PREFERRED_STRING) { - if (!isObject(input)) return input; +var global$e = global$f; +var isCallable$c = isCallable$e; + +var aFunction = function (argument) { + return isCallable$c(argument) ? argument : undefined; +}; + +var getBuiltIn$4 = function (namespace, method) { + return arguments.length < 2 ? aFunction(global$e[namespace]) : global$e[namespace] && global$e[namespace][method]; +}; + +var uncurryThis$n = functionUncurryThis; + +var objectIsPrototypeOf = uncurryThis$n({}.isPrototypeOf); + +var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || ''; + +var global$d = global$f; +var userAgent = engineUserAgent; + +var process$1 = global$d.process; +var Deno = global$d.Deno; +var versions = process$1 && process$1.versions || Deno && Deno.version; +var v8 = versions && versions.v8; +var match, version; + +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 = 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 && userAgent) { + match = userAgent.match(/Edge\/(\d+)/); + if (!match || match[1] >= 74) { + match = userAgent.match(/Chrome\/(\d+)/); + if (match) version = +match[1]; + } +} + +var engineV8Version = version; + +/* eslint-disable es/no-symbol -- required for testing */ + +var V8_VERSION$2 = engineV8Version; +var fails$i = fails$m; +var global$c = global$f; + +var $String$4 = global$c.String; + +// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing +var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$i(function () { + var symbol = Symbol(); + // 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$4(symbol) || !(Object(symbol) instanceof Symbol) || + // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances + !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41; +}); + +/* eslint-disable es/no-symbol -- required for testing */ + +var NATIVE_SYMBOL$1 = symbolConstructorDetection; + +var useSymbolAsUid = NATIVE_SYMBOL$1 + && !Symbol.sham + && typeof Symbol.iterator == 'symbol'; + +var getBuiltIn$3 = getBuiltIn$4; +var isCallable$b = isCallable$e; +var isPrototypeOf = objectIsPrototypeOf; +var USE_SYMBOL_AS_UID$1 = useSymbolAsUid; + +var $Object$2 = Object; + +var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) { + return typeof it == 'symbol'; +} : function (it) { + var $Symbol = getBuiltIn$3('Symbol'); + return isCallable$b($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it)); +}; + +var $String$3 = String; + +var tryToString$2 = function (argument) { + try { + return $String$3(argument); + } catch (error) { + return 'Object'; + } +}; + +var isCallable$a = isCallable$e; +var tryToString$1 = tryToString$2; + +var $TypeError$9 = TypeError; + +// `Assert: IsCallable(argument) is true` +var aCallable$3 = function (argument) { + if (isCallable$a(argument)) return argument; + throw $TypeError$9(tryToString$1(argument) + ' is not a function'); +}; + +var aCallable$2 = aCallable$3; +var isNullOrUndefined$4 = isNullOrUndefined$6; + +// `GetMethod` abstract operation +// https://tc39.es/ecma262/#sec-getmethod +var getMethod$4 = function (V, P) { + var func = V[P]; + return isNullOrUndefined$4(func) ? undefined : aCallable$2(func); +}; + +var call$9 = functionCall; +var isCallable$9 = isCallable$e; +var isObject$8 = isObject$9; + +var $TypeError$8 = TypeError; + +// `OrdinaryToPrimitive` abstract operation +// https://tc39.es/ecma262/#sec-ordinarytoprimitive +var ordinaryToPrimitive$1 = function (input, pref) { var fn, val; - if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val; - if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val; - if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val; - throw TypeError("Can't convert object to primitive value"); + if (pref === 'string' && isCallable$9(fn = input.toString) && !isObject$8(val = call$9(fn, input))) return val; + if (isCallable$9(fn = input.valueOf) && !isObject$8(val = call$9(fn, input))) return val; + if (pref !== 'string' && isCallable$9(fn = input.toString) && !isObject$8(val = call$9(fn, input))) return val; + throw $TypeError$8("Can't convert object to primitive value"); +}; + +var shared$4 = {exports: {}}; + +var global$b = global$f; + +// eslint-disable-next-line es/no-object-defineproperty -- safe +var defineProperty$4 = Object.defineProperty; + +var defineGlobalProperty$3 = function (key, value) { + try { + defineProperty$4(global$b, key, { value: value, configurable: true, writable: true }); + } catch (error) { + global$b[key] = value; + } return value; +}; + +var global$a = global$f; +var defineGlobalProperty$2 = defineGlobalProperty$3; + +var SHARED = '__core-js_shared__'; +var store$3 = global$a[SHARED] || defineGlobalProperty$2(SHARED, {}); + +var sharedStore = store$3; + +var store$2 = sharedStore; + +(shared$4.exports = function (key, value) { + return store$2[key] || (store$2[key] = value !== undefined ? value : {}); +})('versions', []).push({ + version: '3.30.2', + mode: 'global', + copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)', + license: 'https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE', + source: 'https://github.com/zloirock/core-js' +}); + +var sharedExports = shared$4.exports; + +var requireObjectCoercible$6 = requireObjectCoercible$8; + +var $Object$1 = Object; + +// `ToObject` abstract operation +// https://tc39.es/ecma262/#sec-toobject +var toObject$7 = function (argument) { + return $Object$1(requireObjectCoercible$6(argument)); +}; + +var uncurryThis$m = functionUncurryThis; +var toObject$6 = toObject$7; + +var hasOwnProperty = uncurryThis$m({}.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$6(it), key); +}; + +var uncurryThis$l = functionUncurryThis; + +var id = 0; +var postfix = Math.random(); +var toString$9 = uncurryThis$l(1.0.toString); + +var uid$2 = function (key) { + return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$9(++id + postfix, 36); +}; + +var global$9 = global$f; +var shared$3 = sharedExports; +var hasOwn$6 = hasOwnProperty_1; +var uid$1 = uid$2; +var NATIVE_SYMBOL = symbolConstructorDetection; +var USE_SYMBOL_AS_UID = useSymbolAsUid; + +var Symbol$1 = global$9.Symbol; +var WellKnownSymbolsStore = shared$3('wks'); +var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1; + +var wellKnownSymbol$d = function (name) { + if (!hasOwn$6(WellKnownSymbolsStore, name)) { + WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name) + ? Symbol$1[name] + : createWellKnownSymbol('Symbol.' + name); + } return WellKnownSymbolsStore[name]; }; -var hasOwnProperty = {}.hasOwnProperty; +var call$8 = functionCall; +var isObject$7 = isObject$9; +var isSymbol$1 = isSymbol$2; +var getMethod$3 = getMethod$4; +var ordinaryToPrimitive = ordinaryToPrimitive$1; +var wellKnownSymbol$c = wellKnownSymbol$d; -var has = function (it, key) { - return hasOwnProperty.call(it, key); +var $TypeError$7 = TypeError; +var TO_PRIMITIVE = wellKnownSymbol$c('toPrimitive'); + +// `ToPrimitive` abstract operation +// https://tc39.es/ecma262/#sec-toprimitive +var toPrimitive$1 = function (input, pref) { + if (!isObject$7(input) || isSymbol$1(input)) return input; + var exoticToPrim = getMethod$3(input, TO_PRIMITIVE); + var result; + if (exoticToPrim) { + if (pref === undefined) pref = 'default'; + result = call$8(exoticToPrim, input, pref); + if (!isObject$7(result) || isSymbol$1(result)) return result; + throw $TypeError$7("Can't convert object to primitive value"); + } + if (pref === undefined) pref = 'number'; + return ordinaryToPrimitive(input, pref); }; -var document$1 = global_1.document; +var toPrimitive = toPrimitive$1; +var isSymbol = isSymbol$2; + +// `ToPropertyKey` abstract operation +// https://tc39.es/ecma262/#sec-topropertykey +var toPropertyKey$3 = function (argument) { + var key = toPrimitive(argument, 'string'); + return isSymbol(key) ? key : key + ''; +}; + +var global$8 = global$f; +var isObject$6 = isObject$9; + +var document$1 = global$8.document; // typeof document.createElement is 'object' in old IE -var EXISTS = isObject(document$1) && isObject(document$1.createElement); +var EXISTS$1 = isObject$6(document$1) && isObject$6(document$1.createElement); -var documentCreateElement = function (it) { - return EXISTS ? document$1.createElement(it) : {}; +var documentCreateElement$2 = function (it) { + return EXISTS$1 ? document$1.createElement(it) : {}; }; -// Thank's IE8 for his funny defineProperty -var ie8DomDefine = !descriptors && !fails(function () { - return Object.defineProperty(documentCreateElement('div'), 'a', { +var DESCRIPTORS$a = descriptors; +var fails$h = fails$m; +var createElement = documentCreateElement$2; + +// Thanks to IE8 for its funny defineProperty +var ie8DomDefine = !DESCRIPTORS$a && !fails$h(function () { + // eslint-disable-next-line es/no-object-defineproperty -- required for testing + return Object.defineProperty(createElement('div'), 'a', { get: function () { return 7; } }).a != 7; }); -var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; +var DESCRIPTORS$9 = descriptors; +var call$7 = functionCall; +var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable; +var createPropertyDescriptor$2 = createPropertyDescriptor$3; +var toIndexedObject$6 = toIndexedObject$7; +var toPropertyKey$2 = toPropertyKey$3; +var hasOwn$5 = hasOwnProperty_1; +var IE8_DOM_DEFINE$1 = ie8DomDefine; + +// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe +var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; // `Object.getOwnPropertyDescriptor` method -// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor -var f$1 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) { - O = toIndexedObject(O); - P = toPrimitive(P, true); - if (ie8DomDefine) try { - return nativeGetOwnPropertyDescriptor(O, P); +// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor +objectGetOwnPropertyDescriptor.f = DESCRIPTORS$9 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) { + O = toIndexedObject$6(O); + P = toPropertyKey$2(P); + if (IE8_DOM_DEFINE$1) try { + return $getOwnPropertyDescriptor$1(O, P); } catch (error) { /* empty */ } - if (has(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]); + if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call$7(propertyIsEnumerableModule$1.f, O, P), O[P]); }; -var objectGetOwnPropertyDescriptor = { - f: f$1 -}; +var objectDefineProperty = {}; -var anObject = function (it) { - if (!isObject(it)) { - throw TypeError(String(it) + ' is not an object'); - } return it; +var DESCRIPTORS$8 = descriptors; +var fails$g = fails$m; + +// V8 ~ Chrome 36- +// https://bugs.chromium.org/p/v8/issues/detail?id=3334 +var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$g(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$5 = isObject$9; + +var $String$2 = String; +var $TypeError$6 = TypeError; + +// `Assert: Type(argument) is Object` +var anObject$a = function (argument) { + if (isObject$5(argument)) return argument; + throw $TypeError$6($String$2(argument) + ' is not an object'); }; -var nativeDefineProperty = Object.defineProperty; +var DESCRIPTORS$7 = descriptors; +var IE8_DOM_DEFINE = ie8DomDefine; +var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug; +var anObject$9 = anObject$a; +var toPropertyKey$1 = toPropertyKey$3; + +var $TypeError$5 = TypeError; +// eslint-disable-next-line es/no-object-defineproperty -- safe +var $defineProperty = Object.defineProperty; +// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe +var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; +var ENUMERABLE = 'enumerable'; +var CONFIGURABLE$1 = 'configurable'; +var WRITABLE = 'writable'; // `Object.defineProperty` method -// https://tc39.github.io/ecma262/#sec-object.defineproperty -var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) { - anObject(O); - P = toPrimitive(P, true); - anObject(Attributes); - if (ie8DomDefine) try { - return nativeDefineProperty(O, P, Attributes); +// https://tc39.es/ecma262/#sec-object.defineproperty +objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) { + anObject$9(O); + P = toPropertyKey$1(P); + anObject$9(Attributes); + if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) { + var current = $getOwnPropertyDescriptor(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(O, P, Attributes); +} : $defineProperty : function defineProperty(O, P, Attributes) { + anObject$9(O); + P = toPropertyKey$1(P); + anObject$9(Attributes); + if (IE8_DOM_DEFINE) try { + return $defineProperty(O, P, Attributes); } catch (error) { /* empty */ } - if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported'); + if ('get' in Attributes || 'set' in Attributes) throw $TypeError$5('Accessors not supported'); if ('value' in Attributes) O[P] = Attributes.value; return O; }; -var objectDefineProperty = { - f: f$2 -}; +var DESCRIPTORS$6 = descriptors; +var definePropertyModule$4 = objectDefineProperty; +var createPropertyDescriptor$1 = createPropertyDescriptor$3; -var hide = descriptors ? function (object, key, value) { - return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value)); +var createNonEnumerableProperty$4 = DESCRIPTORS$6 ? function (object, key, value) { + return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value)); } : function (object, key, value) { object[key] = value; return object; }; -var setGlobal = function (key, value) { - try { - hide(global_1, key, value); - } catch (error) { - global_1[key] = value; - } return value; +var makeBuiltIn$3 = {exports: {}}; + +var DESCRIPTORS$5 = descriptors; +var hasOwn$4 = hasOwnProperty_1; + +var FunctionPrototype$2 = Function.prototype; +// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe +var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor; + +var EXISTS = hasOwn$4(FunctionPrototype$2, 'name'); +// additional protection from minified / mangled / dropped function names +var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something'; +var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype$2, 'name').configurable)); + +var functionName = { + EXISTS: EXISTS, + PROPER: PROPER, + CONFIGURABLE: CONFIGURABLE }; -var shared = createCommonjsModule(function (module) { -var SHARED = '__core-js_shared__'; -var store = global_1[SHARED] || setGlobal(SHARED, {}); +var uncurryThis$k = functionUncurryThis; +var isCallable$8 = isCallable$e; +var store$1 = sharedStore; -(module.exports = function (key, value) { - return store[key] || (store[key] = value !== undefined ? value : {}); -})('versions', []).push({ - version: '3.2.1', - mode: 'global', - copyright: '© 2019 Denis Pushkarev (zloirock.ru)' -}); -}); +var functionToString$1 = uncurryThis$k(Function.toString); + +// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper +if (!isCallable$8(store$1.inspectSource)) { + store$1.inspectSource = function (it) { + return functionToString$1(it); + }; +} -var functionToString = shared('native-function-to-string', Function.toString); +var inspectSource$2 = store$1.inspectSource; -var WeakMap = global_1.WeakMap; +var global$7 = global$f; +var isCallable$7 = isCallable$e; -var nativeWeakMap = typeof WeakMap === 'function' && /native code/.test(functionToString.call(WeakMap)); +var WeakMap$1 = global$7.WeakMap; -var id = 0; -var postfix = Math.random(); +var weakMapBasicDetection = isCallable$7(WeakMap$1) && /native code/.test(String(WeakMap$1)); -var uid = function (key) { - return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36); -}; +var shared$2 = sharedExports; +var uid = uid$2; -var keys = shared('keys'); +var keys = shared$2('keys'); -var sharedKey = function (key) { +var sharedKey$2 = function (key) { return keys[key] || (keys[key] = uid(key)); }; -var hiddenKeys = {}; +var hiddenKeys$4 = {}; + +var NATIVE_WEAK_MAP = weakMapBasicDetection; +var global$6 = global$f; +var isObject$4 = isObject$9; +var createNonEnumerableProperty$3 = createNonEnumerableProperty$4; +var hasOwn$3 = hasOwnProperty_1; +var shared$1 = sharedStore; +var sharedKey$1 = sharedKey$2; +var hiddenKeys$3 = hiddenKeys$4; -var WeakMap$1 = global_1.WeakMap; -var set, get, has$1; +var OBJECT_ALREADY_INITIALIZED = 'Object already initialized'; +var TypeError$1 = global$6.TypeError; +var WeakMap = global$6.WeakMap; +var set, get, has; var enforce = function (it) { - return has$1(it) ? get(it) : set(it, {}); + return has(it) ? get(it) : set(it, {}); }; var getterFor = function (TYPE) { return function (it) { var state; - if (!isObject(it) || (state = get(it)).type !== TYPE) { - throw TypeError('Incompatible receiver, ' + TYPE + ' required'); + if (!isObject$4(it) || (state = get(it)).type !== TYPE) { + throw TypeError$1('Incompatible receiver, ' + TYPE + ' required'); } return state; }; }; -if (nativeWeakMap) { - var store = new WeakMap$1(); - var wmget = store.get; - var wmhas = store.has; - var wmset = store.set; +if (NATIVE_WEAK_MAP || shared$1.state) { + var store = shared$1.state || (shared$1.state = new WeakMap()); + /* 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 = function (it, metadata) { - wmset.call(store, it, metadata); + if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED); + metadata.facade = it; + store.set(it, metadata); return metadata; }; get = function (it) { - return wmget.call(store, it) || {}; + return store.get(it) || {}; }; - has$1 = function (it) { - return wmhas.call(store, it); + has = function (it) { + return store.has(it); }; } else { - var STATE = sharedKey('state'); - hiddenKeys[STATE] = true; + var STATE = sharedKey$1('state'); + hiddenKeys$3[STATE] = true; set = function (it, metadata) { - hide(it, STATE, metadata); + if (hasOwn$3(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED); + metadata.facade = it; + createNonEnumerableProperty$3(it, STATE, metadata); return metadata; }; get = function (it) { - return has(it, STATE) ? it[STATE] : {}; + return hasOwn$3(it, STATE) ? it[STATE] : {}; }; - has$1 = function (it) { - return has(it, STATE); + has = function (it) { + return hasOwn$3(it, STATE); }; } var internalState = { set: set, get: get, - has: has$1, + has: has, enforce: enforce, getterFor: getterFor }; -var redefine = createCommonjsModule(function (module) { -var getInternalState = internalState.get; -var enforceInternalState = internalState.enforce; -var TEMPLATE = String(functionToString).split('toString'); - -shared('inspectSource', function (it) { - return functionToString.call(it); +var uncurryThis$j = functionUncurryThis; +var fails$f = fails$m; +var isCallable$6 = isCallable$e; +var hasOwn$2 = hasOwnProperty_1; +var DESCRIPTORS$4 = descriptors; +var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE; +var inspectSource$1 = inspectSource$2; +var InternalStateModule = internalState; + +var enforceInternalState = InternalStateModule.enforce; +var getInternalState$1 = InternalStateModule.get; +var $String$1 = String; +// eslint-disable-next-line es/no-object-defineproperty -- safe +var defineProperty$3 = Object.defineProperty; +var stringSlice$5 = uncurryThis$j(''.slice); +var replace$3 = uncurryThis$j(''.replace); +var join = uncurryThis$j([].join); + +var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$f(function () { + return defineProperty$3(function () { /* empty */ }, 'length', { value: 8 }).length !== 8; }); -(module.exports = function (O, key, value, options) { - var unsafe = options ? !!options.unsafe : false; - var simple = options ? !!options.enumerable : false; - var noTargetGet = options ? !!options.noTargetGet : false; - if (typeof value == 'function') { - if (typeof key == 'string' && !has(value, 'name')) hide(value, 'name', key); - enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : ''); +var TEMPLATE = String(String).split('String'); + +var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) { + if (stringSlice$5($String$1(name), 0, 7) === 'Symbol(') { + name = '[' + replace$3($String$1(name), /^Symbol\(([^)]*)\)/, '$1') + ']'; } - if (O === global_1) { - if (simple) O[key] = value; - else setGlobal(key, value); - return; - } else if (!unsafe) { - delete O[key]; - } else if (!noTargetGet && O[key]) { - simple = true; + if (options && options.getter) name = 'get ' + name; + if (options && options.setter) name = 'set ' + name; + if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) { + if (DESCRIPTORS$4) defineProperty$3(value, 'name', { value: name, configurable: true }); + else value.name = name; } - if (simple) O[key] = value; - else hide(O, key, value); + if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) { + defineProperty$3(value, 'length', { value: options.arity }); + } + try { + if (options && hasOwn$2(options, 'constructor') && options.constructor) { + if (DESCRIPTORS$4) defineProperty$3(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(value); + if (!hasOwn$2(state, 'source')) { + state.source = join(TEMPLATE, typeof name == 'string' ? name : ''); + } return value; +}; + // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative -})(Function.prototype, 'toString', function toString() { - return typeof this == 'function' && getInternalState(this).source || functionToString.call(this); -}); -}); +// eslint-disable-next-line no-extend-native -- required +Function.prototype.toString = makeBuiltIn$2(function toString() { + return isCallable$6(this) && getInternalState$1(this).source || inspectSource$1(this); +}, 'toString'); + +var makeBuiltInExports = makeBuiltIn$3.exports; + +var isCallable$5 = isCallable$e; +var definePropertyModule$3 = objectDefineProperty; +var makeBuiltIn$1 = makeBuiltInExports; +var defineGlobalProperty$1 = defineGlobalProperty$3; + +var defineBuiltIn$3 = function (O, key, value, options) { + if (!options) options = {}; + var simple = options.enumerable; + var name = options.name !== undefined ? options.name : key; + if (isCallable$5(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$3.f(O, key, { + value: value, + enumerable: false, + configurable: !options.nonConfigurable, + writable: !options.nonWritable + }); + } return O; +}; -var path = global_1; +var objectGetOwnPropertyNames = {}; -var aFunction = function (variable) { - return typeof variable == 'function' ? variable : undefined; +var ceil = Math.ceil; +var floor$1 = 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$1 : ceil)(n); }; -var getBuiltIn = function (namespace, method) { - return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global_1[namespace]) - : path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method]; +var trunc = mathTrunc; + +// `ToIntegerOrInfinity` abstract operation +// https://tc39.es/ecma262/#sec-tointegerorinfinity +var toIntegerOrInfinity$4 = function (argument) { + var number = +argument; + // eslint-disable-next-line no-self-compare -- NaN check + return number !== number || number === 0 ? 0 : trunc(number); }; -var ceil = Math.ceil; -var floor = Math.floor; +var toIntegerOrInfinity$3 = toIntegerOrInfinity$4; + +var max$3 = Math.max; +var min$3 = Math.min; -// `ToInteger` abstract operation -// https://tc39.github.io/ecma262/#sec-tointeger -var toInteger = function (argument) { - return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument); +// 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$3 = function (index, length) { + var integer = toIntegerOrInfinity$3(index); + return integer < 0 ? max$3(integer + length, 0) : min$3(integer, length); }; -var min = Math.min; +var toIntegerOrInfinity$2 = toIntegerOrInfinity$4; + +var min$2 = Math.min; // `ToLength` abstract operation -// https://tc39.github.io/ecma262/#sec-tolength -var toLength = function (argument) { - return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 +// https://tc39.es/ecma262/#sec-tolength +var toLength$3 = function (argument) { + return argument > 0 ? min$2(toIntegerOrInfinity$2(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 }; -var max = Math.max; -var min$1 = Math.min; +var toLength$2 = toLength$3; -// 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(length, length). -var toAbsoluteIndex = function (index, length) { - var integer = toInteger(index); - return integer < 0 ? max(integer + length, 0) : min$1(integer, length); +// `LengthOfArrayLike` abstract operation +// https://tc39.es/ecma262/#sec-lengthofarraylike +var lengthOfArrayLike$6 = function (obj) { + return toLength$2(obj.length); }; +var toIndexedObject$5 = toIndexedObject$7; +var toAbsoluteIndex$2 = toAbsoluteIndex$3; +var lengthOfArrayLike$5 = lengthOfArrayLike$6; + // `Array.prototype.{ indexOf, includes }` methods implementation -var createMethod = function (IS_INCLUDES) { +var createMethod$5 = function (IS_INCLUDES) { return function ($this, el, fromIndex) { - var O = toIndexedObject($this); - var length = toLength(O.length); - var index = toAbsoluteIndex(fromIndex, length); + var O = toIndexedObject$5($this); + var length = lengthOfArrayLike$5(O); + var index = toAbsoluteIndex$2(fromIndex, length); var value; // Array#includes uses SameValueZero equality algorithm - // eslint-disable-next-line no-self-compare + // 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 + // 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++) { @@ -467,31 +1003,36 @@ var createMethod = function (IS_INCLUDES) { var arrayIncludes = { // `Array.prototype.includes` method - // https://tc39.github.io/ecma262/#sec-array.prototype.includes - includes: createMethod(true), + // https://tc39.es/ecma262/#sec-array.prototype.includes + includes: createMethod$5(true), // `Array.prototype.indexOf` method - // https://tc39.github.io/ecma262/#sec-array.prototype.indexof - indexOf: createMethod(false) + // https://tc39.es/ecma262/#sec-array.prototype.indexof + indexOf: createMethod$5(false) }; -var indexOf = arrayIncludes.indexOf; +var uncurryThis$i = functionUncurryThis; +var hasOwn$1 = hasOwnProperty_1; +var toIndexedObject$4 = toIndexedObject$7; +var indexOf$1 = arrayIncludes.indexOf; +var hiddenKeys$2 = hiddenKeys$4; +var push$4 = uncurryThis$i([].push); var objectKeysInternal = function (object, names) { - var O = toIndexedObject(object); + var O = toIndexedObject$4(object); var i = 0; var result = []; var key; - for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key); + for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && push$4(result, key); // Don't enum bug & hidden keys - while (names.length > i) if (has(O, key = names[i++])) { - ~indexOf(result, key) || result.push(key); + while (names.length > i) if (hasOwn$1(O, key = names[i++])) { + ~indexOf$1(result, key) || push$4(result, key); } return result; }; // IE8- don't enum bug keys -var enumBugKeys = [ +var enumBugKeys$3 = [ 'constructor', 'hasOwnProperty', 'isPrototypeOf', @@ -501,81 +1042,100 @@ var enumBugKeys = [ 'valueOf' ]; -var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype'); +var internalObjectKeys$1 = objectKeysInternal; +var enumBugKeys$2 = enumBugKeys$3; + +var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype'); // `Object.getOwnPropertyNames` method -// https://tc39.github.io/ecma262/#sec-object.getownpropertynames -var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { - return objectKeysInternal(O, hiddenKeys$1); +// 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$1); }; -var objectGetOwnPropertyNames = { - f: f$3 -}; +var objectGetOwnPropertySymbols = {}; -var f$4 = Object.getOwnPropertySymbols; +// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe +objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols; -var objectGetOwnPropertySymbols = { - f: f$4 -}; +var getBuiltIn$2 = getBuiltIn$4; +var uncurryThis$h = functionUncurryThis; +var getOwnPropertyNamesModule = objectGetOwnPropertyNames; +var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols; +var anObject$8 = anObject$a; + +var concat$2 = uncurryThis$h([].concat); // all object keys, includes non-enumerable and symbols -var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) { - var keys = objectGetOwnPropertyNames.f(anObject(it)); - var getOwnPropertySymbols = objectGetOwnPropertySymbols.f; - return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys; +var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) { + var keys = getOwnPropertyNamesModule.f(anObject$8(it)); + var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f; + return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys; }; -var copyConstructorProperties = function (target, source) { +var hasOwn = hasOwnProperty_1; +var ownKeys = ownKeys$1; +var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor; +var definePropertyModule$2 = objectDefineProperty; + +var copyConstructorProperties$1 = function (target, source, exceptions) { var keys = ownKeys(source); - var defineProperty = objectDefineProperty.f; - var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f; + var defineProperty = definePropertyModule$2.f; + var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; for (var i = 0; i < keys.length; i++) { var key = keys[i]; - if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key)); + if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) { + defineProperty(target, key, getOwnPropertyDescriptor(source, key)); + } } }; +var fails$e = fails$m; +var isCallable$4 = isCallable$e; + var replacement = /#|\.prototype\./; -var isForced = function (feature, detection) { +var isForced$1 = function (feature, detection) { var value = data[normalize(feature)]; return value == POLYFILL ? true : value == NATIVE ? false - : typeof detection == 'function' ? fails(detection) + : isCallable$4(detection) ? fails$e(detection) : !!detection; }; -var normalize = isForced.normalize = function (string) { +var normalize = isForced$1.normalize = function (string) { return String(string).replace(replacement, '.').toLowerCase(); }; -var data = isForced.data = {}; -var NATIVE = isForced.NATIVE = 'N'; -var POLYFILL = isForced.POLYFILL = 'P'; - -var isForced_1 = isForced; - -var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f; - - - +var data = isForced$1.data = {}; +var NATIVE = isForced$1.NATIVE = 'N'; +var POLYFILL = isForced$1.POLYFILL = 'P'; +var isForced_1 = isForced$1; +var global$5 = global$f; +var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f; +var createNonEnumerableProperty$2 = createNonEnumerableProperty$4; +var defineBuiltIn$2 = defineBuiltIn$3; +var defineGlobalProperty = defineGlobalProperty$3; +var copyConstructorProperties = copyConstructorProperties$1; +var isForced = 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.noTargetGet - prevent calling a getter on target + 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; @@ -583,294 +1143,998 @@ var _export = function (options, source) { var STATIC = options.stat; var FORCED, target, key, targetProperty, sourceProperty, descriptor; if (GLOBAL) { - target = global_1; + target = global$5; } else if (STATIC) { - target = global_1[TARGET] || setGlobal(TARGET, {}); + target = global$5[TARGET] || defineGlobalProperty(TARGET, {}); } else { - target = (global_1[TARGET] || {}).prototype; + target = (global$5[TARGET] || {}).prototype; } if (target) for (key in source) { sourceProperty = source[key]; - if (options.noTargetGet) { - descriptor = getOwnPropertyDescriptor$1(target, key); + if (options.dontCallGetSet) { + descriptor = getOwnPropertyDescriptor(target, key); targetProperty = descriptor && descriptor.value; } else targetProperty = target[key]; - FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); + FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); // contained in target if (!FORCED && targetProperty !== undefined) { - if (typeof sourceProperty === typeof targetProperty) continue; + if (typeof sourceProperty == typeof targetProperty) continue; copyConstructorProperties(sourceProperty, targetProperty); } // add a flag to not completely full polyfills if (options.sham || (targetProperty && targetProperty.sham)) { - hide(sourceProperty, 'sham', true); + createNonEnumerableProperty$2(sourceProperty, 'sham', true); } - // extend global - redefine(target, key, sourceProperty, options); + defineBuiltIn$2(target, key, sourceProperty, options); } }; -var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () { - // Chrome 38 Symbol has incorrect toString conversion - // eslint-disable-next-line no-undef - return !String(Symbol()); +var wellKnownSymbol$b = wellKnownSymbol$d; + +var TO_STRING_TAG$1 = wellKnownSymbol$b('toStringTag'); +var test = {}; + +test[TO_STRING_TAG$1] = 'z'; + +var toStringTagSupport = String(test) === '[object z]'; + +var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport; +var isCallable$3 = isCallable$e; +var classofRaw$1 = classofRaw$2; +var wellKnownSymbol$a = wellKnownSymbol$d; + +var TO_STRING_TAG = wellKnownSymbol$a('toStringTag'); +var $Object = 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$7 = 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(it), TO_STRING_TAG)) == 'string' ? tag + // builtinTag case + : CORRECT_ARGUMENTS ? classofRaw$1(O) + // ES3 arguments fallback + : (result = classofRaw$1(O)) == 'Object' && isCallable$3(O.callee) ? 'Arguments' : result; +}; + +var classof$6 = classof$7; + +var $String = String; + +var toString$8 = function (argument) { + if (classof$6(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string'); + return $String(argument); +}; + +var anObject$7 = anObject$a; + +// `RegExp.prototype.flags` getter implementation +// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags +var regexpFlags$1 = function () { + var that = anObject$7(this); + var result = ''; + if (that.hasIndices) result += 'd'; + if (that.global) result += 'g'; + if (that.ignoreCase) result += 'i'; + if (that.multiline) result += 'm'; + if (that.dotAll) result += 's'; + if (that.unicode) result += 'u'; + if (that.unicodeSets) result += 'v'; + if (that.sticky) result += 'y'; + return result; +}; + +var fails$d = fails$m; +var global$4 = global$f; + +// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError +var $RegExp$2 = global$4.RegExp; + +var UNSUPPORTED_Y$2 = fails$d(function () { + var re = $RegExp$2('a', 'y'); + re.lastIndex = 2; + return re.exec('abcd') != null; +}); + +// UC Browser bug +// https://github.com/zloirock/core-js/issues/1008 +var MISSED_STICKY = UNSUPPORTED_Y$2 || fails$d(function () { + return !$RegExp$2('a', 'y').sticky; }); -var Symbol$1 = global_1.Symbol; -var store$1 = shared('wks'); +var BROKEN_CARET = UNSUPPORTED_Y$2 || fails$d(function () { + // https://bugzilla.mozilla.org/show_bug.cgi?id=773687 + var re = $RegExp$2('^r', 'gy'); + re.lastIndex = 2; + return re.exec('str') != null; +}); -var wellKnownSymbol = function (name) { - return store$1[name] || (store$1[name] = nativeSymbol && Symbol$1[name] - || (nativeSymbol ? Symbol$1 : uid)('Symbol.' + name)); +var regexpStickyHelpers = { + BROKEN_CARET: BROKEN_CARET, + MISSED_STICKY: MISSED_STICKY, + UNSUPPORTED_Y: UNSUPPORTED_Y$2 }; +var objectDefineProperties = {}; + +var internalObjectKeys = objectKeysInternal; +var enumBugKeys$1 = enumBugKeys$3; + // `Object.keys` method -// https://tc39.github.io/ecma262/#sec-object.keys -var objectKeys = Object.keys || function keys(O) { - return objectKeysInternal(O, enumBugKeys); +// https://tc39.es/ecma262/#sec-object.keys +// eslint-disable-next-line es/no-object-keys -- safe +var objectKeys$3 = Object.keys || function keys(O) { + return internalObjectKeys(O, enumBugKeys$1); }; +var DESCRIPTORS$3 = descriptors; +var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug; +var definePropertyModule$1 = objectDefineProperty; +var anObject$6 = anObject$a; +var toIndexedObject$3 = toIndexedObject$7; +var objectKeys$2 = objectKeys$3; + // `Object.defineProperties` method -// https://tc39.github.io/ecma262/#sec-object.defineproperties -var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) { - anObject(O); - var keys = objectKeys(Properties); +// https://tc39.es/ecma262/#sec-object.defineproperties +// eslint-disable-next-line es/no-object-defineproperties -- safe +objectDefineProperties.f = DESCRIPTORS$3 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) { + anObject$6(O); + var props = toIndexedObject$3(Properties); + var keys = objectKeys$2(Properties); var length = keys.length; var index = 0; var key; - while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]); + while (length > index) definePropertyModule$1.f(O, key = keys[index++], props[key]); return O; }; -var html = getBuiltIn('document', 'documentElement'); +var getBuiltIn$1 = getBuiltIn$4; -var IE_PROTO = sharedKey('IE_PROTO'); +var html$1 = getBuiltIn$1('document', 'documentElement'); +/* global ActiveXObject -- old IE, WSH */ + +var anObject$5 = anObject$a; +var definePropertiesModule = objectDefineProperties; +var enumBugKeys = enumBugKeys$3; +var hiddenKeys = hiddenKeys$4; +var html = html$1; +var documentCreateElement$1 = documentCreateElement$2; +var sharedKey = sharedKey$2; + +var GT = '>'; +var LT = '<'; var PROTOTYPE = 'prototype'; -var Empty = function () { /* empty */ }; +var SCRIPT = 'script'; +var IE_PROTO = sharedKey('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; + activeXDocument = null; // avoid memory leak + return temp; +}; // Create object with fake `null` prototype: use iframe Object with cleared prototype -var createDict = function () { +var NullProtoObjectViaIFrame = function () { // Thrash, waste and sodomy: IE GC bug - var iframe = documentCreateElement('iframe'); - var length = enumBugKeys.length; - var lt = '<'; - var script = 'script'; - var gt = '>'; - var js = 'java' + script + ':'; + var iframe = documentCreateElement$1('iframe'); + var JS = 'java' + SCRIPT + ':'; var iframeDocument; iframe.style.display = 'none'; html.appendChild(iframe); - iframe.src = String(js); + // https://github.com/zloirock/core-js/issues/475 + iframe.src = String(JS); iframeDocument = iframe.contentWindow.document; iframeDocument.open(); - iframeDocument.write(lt + script + gt + 'document.F=Object' + lt + '/' + script + gt); + iframeDocument.write(scriptTag('document.F=Object')); iframeDocument.close(); - createDict = iframeDocument.F; - while (length--) delete createDict[PROTOTYPE][enumBugKeys[length]]; - return createDict(); + 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][enumBugKeys[length]]; + return NullProtoObject(); }; +hiddenKeys[IE_PROTO] = true; + // `Object.create` method -// https://tc39.github.io/ecma262/#sec-object.create +// 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) { - Empty[PROTOTYPE] = anObject(O); - result = new Empty(); - Empty[PROTOTYPE] = null; + EmptyConstructor[PROTOTYPE] = anObject$5(O); + result = new EmptyConstructor(); + EmptyConstructor[PROTOTYPE] = null; // add "__proto__" for Object.getPrototypeOf polyfill result[IE_PROTO] = O; - } else result = createDict(); - return Properties === undefined ? result : objectDefineProperties(result, Properties); + } else result = NullProtoObject(); + return Properties === undefined ? result : definePropertiesModule.f(result, Properties); }; -hiddenKeys[IE_PROTO] = true; +var fails$c = fails$m; +var global$3 = global$f; + +// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError +var $RegExp$1 = global$3.RegExp; + +var regexpUnsupportedDotAll = fails$c(function () { + var re = $RegExp$1('.', 's'); + return !(re.dotAll && re.exec('\n') && re.flags === 's'); +}); + +var fails$b = fails$m; +var global$2 = global$f; + +// babel-minify and Closure Compiler transpiles RegExp('(?b)', 'g') -> /(?b)/g and it causes SyntaxError +var $RegExp = global$2.RegExp; + +var regexpUnsupportedNcg = fails$b(function () { + var re = $RegExp('(?b)', 'g'); + return re.exec('b').groups.a !== 'b' || + 'b'.replace(re, '$c') !== 'bc'; +}); + +/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */ +/* eslint-disable regexp/no-useless-quantifier -- testing */ +var call$6 = functionCall; +var uncurryThis$g = functionUncurryThis; +var toString$7 = toString$8; +var regexpFlags = regexpFlags$1; +var stickyHelpers$1 = regexpStickyHelpers; +var shared = sharedExports; +var create$1 = objectCreate; +var getInternalState = internalState.get; +var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll; +var UNSUPPORTED_NCG = regexpUnsupportedNcg; + +var nativeReplace = shared('native-string-replace', String.prototype.replace); +var nativeExec = RegExp.prototype.exec; +var patchedExec = nativeExec; +var charAt$3 = uncurryThis$g(''.charAt); +var indexOf = uncurryThis$g(''.indexOf); +var replace$2 = uncurryThis$g(''.replace); +var stringSlice$4 = uncurryThis$g(''.slice); + +var UPDATES_LAST_INDEX_WRONG = (function () { + var re1 = /a/; + var re2 = /b*/g; + call$6(nativeExec, re1, 'a'); + call$6(nativeExec, re2, 'a'); + return re1.lastIndex !== 0 || re2.lastIndex !== 0; +})(); + +var UNSUPPORTED_Y$1 = stickyHelpers$1.BROKEN_CARET; + +// nonparticipating capturing group, copied from es5-shim's String#split patch. +var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined; + +var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1 || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG; + +if (PATCH) { + patchedExec = function exec(string) { + var re = this; + var state = getInternalState(re); + var str = toString$7(string); + var raw = state.raw; + var result, reCopy, lastIndex, match, i, object, group; + + if (raw) { + raw.lastIndex = re.lastIndex; + result = call$6(patchedExec, raw, str); + re.lastIndex = raw.lastIndex; + return result; + } + + var groups = state.groups; + var sticky = UNSUPPORTED_Y$1 && re.sticky; + var flags = call$6(regexpFlags, re); + var source = re.source; + var charsAdded = 0; + var strCopy = str; + + if (sticky) { + flags = replace$2(flags, 'y', ''); + if (indexOf(flags, 'g') === -1) { + flags += 'g'; + } + + strCopy = stringSlice$4(str, re.lastIndex); + // Support anchored sticky behavior. + if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) { + source = '(?: ' + source + ')'; + strCopy = ' ' + strCopy; + charsAdded++; + } + // ^(? + rx + ) is needed, in combination with some str slicing, to + // simulate the 'y' flag. + reCopy = new RegExp('^(?:' + source + ')', flags); + } + + if (NPCG_INCLUDED) { + reCopy = new RegExp('^' + source + '$(?!\\s)', flags); + } + if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex; + + match = call$6(nativeExec, sticky ? reCopy : re, strCopy); + + if (sticky) { + if (match) { + match.input = stringSlice$4(match.input, charsAdded); + match[0] = stringSlice$4(match[0], charsAdded); + match.index = re.lastIndex; + re.lastIndex += match[0].length; + } else re.lastIndex = 0; + } else if (UPDATES_LAST_INDEX_WRONG && match) { + re.lastIndex = re.global ? match.index + match[0].length : lastIndex; + } + if (NPCG_INCLUDED && match && match.length > 1) { + // Fix browsers whose `exec` methods don't consistently return `undefined` + // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/ + call$6(nativeReplace, match[0], reCopy, function () { + for (i = 1; i < arguments.length - 2; i++) { + if (arguments[i] === undefined) match[i] = undefined; + } + }); + } + + if (match && groups) { + match.groups = object = create$1(null); + for (i = 0; i < groups.length; i++) { + group = groups[i]; + object[group[0]] = match[group[1]]; + } + } + + return match; + }; +} + +var regexpExec$3 = patchedExec; -var UNSCOPABLES = wellKnownSymbol('unscopables'); +var $$e = _export; +var exec$2 = regexpExec$3; + +// `RegExp.prototype.exec` method +// https://tc39.es/ecma262/#sec-regexp.prototype.exec +$$e({ target: 'RegExp', proto: true, forced: /./.exec !== exec$2 }, { + exec: exec$2 +}); + +var classofRaw = classofRaw$2; +var uncurryThis$f = 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$f(fn); +}; + +// TODO: Remove from `core-js@4` since it's moved to entry points + +var uncurryThis$e = functionUncurryThisClause; +var defineBuiltIn$1 = defineBuiltIn$3; +var regexpExec$2 = regexpExec$3; +var fails$a = fails$m; +var wellKnownSymbol$9 = wellKnownSymbol$d; +var createNonEnumerableProperty$1 = createNonEnumerableProperty$4; + +var SPECIES$4 = wellKnownSymbol$9('species'); +var RegExpPrototype = RegExp.prototype; + +var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) { + var SYMBOL = wellKnownSymbol$9(KEY); + + var DELEGATES_TO_SYMBOL = !fails$a(function () { + // String methods call symbol-named RegEp methods + var O = {}; + O[SYMBOL] = function () { return 7; }; + return ''[KEY](O) != 7; + }); + + var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$a(function () { + // Symbol-named RegExp methods call .exec + var execCalled = false; + var re = /a/; + + if (KEY === 'split') { + // We can't use real regex here since it causes deoptimization + // and serious performance degradation in V8 + // https://github.com/zloirock/core-js/issues/306 + re = {}; + // RegExp[@@split] doesn't call the regex's exec method, but first creates + // a new one. We need to return the patched regex when creating the new one. + re.constructor = {}; + re.constructor[SPECIES$4] = function () { return re; }; + re.flags = ''; + re[SYMBOL] = /./[SYMBOL]; + } + + re.exec = function () { execCalled = true; return null; }; + + re[SYMBOL](''); + return !execCalled; + }); + + if ( + !DELEGATES_TO_SYMBOL || + !DELEGATES_TO_EXEC || + FORCED + ) { + var uncurriedNativeRegExpMethod = uncurryThis$e(/./[SYMBOL]); + var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) { + var uncurriedNativeMethod = uncurryThis$e(nativeMethod); + var $exec = regexp.exec; + if ($exec === regexpExec$2 || $exec === RegExpPrototype.exec) { + if (DELEGATES_TO_SYMBOL && !forceStringMethod) { + // The native String method already delegates to @@method (this + // polyfilled function), leasing to infinite recursion. + // We avoid it by directly calling the native @@method method. + return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) }; + } + return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) }; + } + return { done: false }; + }); + + defineBuiltIn$1(String.prototype, KEY, methods[0]); + defineBuiltIn$1(RegExpPrototype, SYMBOL, methods[1]); + } + + if (SHAM) createNonEnumerableProperty$1(RegExpPrototype[SYMBOL], 'sham', true); +}; + +// `SameValue` abstract operation +// https://tc39.es/ecma262/#sec-samevalue +// eslint-disable-next-line es/no-object-is -- safe +var sameValue$1 = Object.is || function is(x, y) { + // eslint-disable-next-line no-self-compare -- NaN check + return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y; +}; + +var call$5 = functionCall; +var anObject$4 = anObject$a; +var isCallable$2 = isCallable$e; +var classof$5 = classofRaw$2; +var regexpExec$1 = regexpExec$3; + +var $TypeError$4 = TypeError; + +// `RegExpExec` abstract operation +// https://tc39.es/ecma262/#sec-regexpexec +var regexpExecAbstract = function (R, S) { + var exec = R.exec; + if (isCallable$2(exec)) { + var result = call$5(exec, R, S); + if (result !== null) anObject$4(result); + return result; + } + if (classof$5(R) === 'RegExp') return call$5(regexpExec$1, R, S); + throw $TypeError$4('RegExp#exec called on incompatible receiver'); +}; + +var call$4 = functionCall; +var fixRegExpWellKnownSymbolLogic$2 = fixRegexpWellKnownSymbolLogic; +var anObject$3 = anObject$a; +var isNullOrUndefined$3 = isNullOrUndefined$6; +var requireObjectCoercible$5 = requireObjectCoercible$8; +var sameValue = sameValue$1; +var toString$6 = toString$8; +var getMethod$2 = getMethod$4; +var regExpExec$2 = regexpExecAbstract; + +// @@search logic +fixRegExpWellKnownSymbolLogic$2('search', function (SEARCH, nativeSearch, maybeCallNative) { + return [ + // `String.prototype.search` method + // https://tc39.es/ecma262/#sec-string.prototype.search + function search(regexp) { + var O = requireObjectCoercible$5(this); + var searcher = isNullOrUndefined$3(regexp) ? undefined : getMethod$2(regexp, SEARCH); + return searcher ? call$4(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString$6(O)); + }, + // `RegExp.prototype[@@search]` method + // https://tc39.es/ecma262/#sec-regexp.prototype-@@search + function (string) { + var rx = anObject$3(this); + var S = toString$6(string); + var res = maybeCallNative(nativeSearch, rx, S); + + if (res.done) return res.value; + + var previousLastIndex = rx.lastIndex; + if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0; + var result = regExpExec$2(rx, S); + if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex; + return result === null ? -1 : result.index; + } + ]; +}); + +var wellKnownSymbol$8 = wellKnownSymbol$d; +var create = objectCreate; +var defineProperty$2 = objectDefineProperty.f; + +var UNSCOPABLES = wellKnownSymbol$8('unscopables'); var ArrayPrototype = Array.prototype; // Array.prototype[@@unscopables] -// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables +// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables if (ArrayPrototype[UNSCOPABLES] == undefined) { - hide(ArrayPrototype, UNSCOPABLES, objectCreate(null)); + defineProperty$2(ArrayPrototype, UNSCOPABLES, { + configurable: true, + value: create(null) + }); } // add a key to Array.prototype[@@unscopables] -var addToUnscopables = function (key) { +var addToUnscopables$2 = function (key) { ArrayPrototype[UNSCOPABLES][key] = true; }; +var $$d = _export; var $includes = arrayIncludes.includes; +var fails$9 = fails$m; +var addToUnscopables$1 = addToUnscopables$2; +// FF99+ bug +var BROKEN_ON_SPARSE = fails$9(function () { + // eslint-disable-next-line es/no-array-prototype-includes -- detection + return !Array(1).includes(); +}); // `Array.prototype.includes` method -// https://tc39.github.io/ecma262/#sec-array.prototype.includes -_export({ target: 'Array', proto: true }, { +// https://tc39.es/ecma262/#sec-array.prototype.includes +$$d({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, { includes: function includes(el /* , fromIndex = 0 */) { return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined); } }); -// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables -addToUnscopables('includes'); - -// `ToObject` abstract operation -// https://tc39.github.io/ecma262/#sec-toobject -var toObject = function (argument) { - return Object(requireObjectCoercible(argument)); -}; - -var nativeAssign = Object.assign; - -// `Object.assign` method -// https://tc39.github.io/ecma262/#sec-object.assign -// should work with symbols and should have deterministic property order (V8 bug) -var objectAssign = !nativeAssign || fails(function () { - var A = {}; - var B = {}; - // eslint-disable-next-line no-undef - var symbol = Symbol(); - var alphabet = 'abcdefghijklmnopqrst'; - A[symbol] = 7; - alphabet.split('').forEach(function (chr) { B[chr] = chr; }); - return nativeAssign({}, A)[symbol] != 7 || objectKeys(nativeAssign({}, B)).join('') != alphabet; -}) ? function assign(target, source) { // eslint-disable-line no-unused-vars - var T = toObject(target); - var argumentsLength = arguments.length; - var index = 1; - var getOwnPropertySymbols = objectGetOwnPropertySymbols.f; - var propertyIsEnumerable = objectPropertyIsEnumerable.f; - while (argumentsLength > index) { - var S = indexedObject(arguments[index++]); - var keys = getOwnPropertySymbols ? objectKeys(S).concat(getOwnPropertySymbols(S)) : objectKeys(S); - var length = keys.length; - var j = 0; - var key; - while (length > j) { - key = keys[j++]; - if (!descriptors || propertyIsEnumerable.call(S, key)) T[key] = S[key]; - } - } return T; -} : nativeAssign; +// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables +addToUnscopables$1('includes'); -// `Object.assign` method -// https://tc39.github.io/ecma262/#sec-object.assign -_export({ target: 'Object', stat: true, forced: Object.assign !== objectAssign }, { - assign: objectAssign -}); +var isObject$3 = isObject$9; +var classof$4 = classofRaw$2; +var wellKnownSymbol$7 = wellKnownSymbol$d; -var MATCH = wellKnownSymbol('match'); +var MATCH$1 = wellKnownSymbol$7('match'); // `IsRegExp` abstract operation -// https://tc39.github.io/ecma262/#sec-isregexp +// https://tc39.es/ecma262/#sec-isregexp var isRegexp = function (it) { var isRegExp; - return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classofRaw(it) == 'RegExp'); + return isObject$3(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$4(it) == 'RegExp'); }; +var isRegExp$1 = isRegexp; + +var $TypeError$3 = TypeError; + var notARegexp = function (it) { - if (isRegexp(it)) { - throw TypeError("The method doesn't accept regular expressions"); + if (isRegExp$1(it)) { + throw $TypeError$3("The method doesn't accept regular expressions"); } return it; }; -var MATCH$1 = wellKnownSymbol('match'); +var wellKnownSymbol$6 = wellKnownSymbol$d; + +var MATCH = wellKnownSymbol$6('match'); var correctIsRegexpLogic = function (METHOD_NAME) { var regexp = /./; try { '/./'[METHOD_NAME](regexp); - } catch (e) { + } catch (error1) { try { - regexp[MATCH$1] = false; + regexp[MATCH] = false; return '/./'[METHOD_NAME](regexp); - } catch (f) { /* empty */ } + } catch (error2) { /* empty */ } } return false; }; +var $$c = _export; +var uncurryThis$d = functionUncurryThis; +var notARegExp = notARegexp; +var requireObjectCoercible$4 = requireObjectCoercible$8; +var toString$5 = toString$8; +var correctIsRegExpLogic = correctIsRegexpLogic; + +var stringIndexOf$1 = uncurryThis$d(''.indexOf); + // `String.prototype.includes` method -// https://tc39.github.io/ecma262/#sec-string.prototype.includes -_export({ target: 'String', proto: true, forced: !correctIsRegexpLogic('includes') }, { +// https://tc39.es/ecma262/#sec-string.prototype.includes +$$c({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, { includes: function includes(searchString /* , position = 0 */) { - return !!~String(requireObjectCoercible(this)) - .indexOf(notARegexp(searchString), arguments.length > 1 ? arguments[1] : undefined); + return !!~stringIndexOf$1( + toString$5(requireObjectCoercible$4(this)), + toString$5(notARegExp(searchString)), + arguments.length > 1 ? arguments[1] : undefined + ); } }); // a string of all valid unicode whitespaces -// eslint-disable-next-line max-len -var whitespaces = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'; +var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' + + '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'; + +var uncurryThis$c = functionUncurryThis; +var requireObjectCoercible$3 = requireObjectCoercible$8; +var toString$4 = toString$8; +var whitespaces$1 = whitespaces$2; -var whitespace = '[' + whitespaces + ']'; -var ltrim = RegExp('^' + whitespace + whitespace + '*'); -var rtrim = RegExp(whitespace + whitespace + '*$'); +var replace$1 = uncurryThis$c(''.replace); +var ltrim = RegExp('^[' + whitespaces$1 + ']+'); +var rtrim = RegExp('(^|[^' + whitespaces$1 + '])[' + whitespaces$1 + ']+$'); // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation -var createMethod$1 = function (TYPE) { +var createMethod$4 = function (TYPE) { return function ($this) { - var string = String(requireObjectCoercible($this)); - if (TYPE & 1) string = string.replace(ltrim, ''); - if (TYPE & 2) string = string.replace(rtrim, ''); + var string = toString$4(requireObjectCoercible$3($this)); + if (TYPE & 1) string = replace$1(string, ltrim, ''); + if (TYPE & 2) string = replace$1(string, rtrim, '$1'); return string; }; }; var stringTrim = { // `String.prototype.{ trimLeft, trimStart }` methods - // https://tc39.github.io/ecma262/#sec-string.prototype.trimstart - start: createMethod$1(1), + // https://tc39.es/ecma262/#sec-string.prototype.trimstart + start: createMethod$4(1), // `String.prototype.{ trimRight, trimEnd }` methods - // https://tc39.github.io/ecma262/#sec-string.prototype.trimend - end: createMethod$1(2), + // https://tc39.es/ecma262/#sec-string.prototype.trimend + end: createMethod$4(2), // `String.prototype.trim` method - // https://tc39.github.io/ecma262/#sec-string.prototype.trim - trim: createMethod$1(3) + // https://tc39.es/ecma262/#sec-string.prototype.trim + trim: createMethod$4(3) }; +var PROPER_FUNCTION_NAME = functionName.PROPER; +var fails$8 = fails$m; +var whitespaces = whitespaces$2; + var non = '\u200B\u0085\u180E'; // check that a method works with the correct list // of whitespaces and has a correct name -var forcedStringTrimMethod = function (METHOD_NAME) { - return fails(function () { - return !!whitespaces[METHOD_NAME]() || non[METHOD_NAME]() != non || whitespaces[METHOD_NAME].name !== METHOD_NAME; +var stringTrimForced = function (METHOD_NAME) { + return fails$8(function () { + return !!whitespaces[METHOD_NAME]() + || non[METHOD_NAME]() !== non + || (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME); }); }; +var $$b = _export; var $trim = stringTrim.trim; - +var forcedStringTrimMethod = stringTrimForced; // `String.prototype.trim` method -// https://tc39.github.io/ecma262/#sec-string.prototype.trim -_export({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, { +// https://tc39.es/ecma262/#sec-string.prototype.trim +$$b({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, { trim: function trim() { return $trim(this); } }); -var VERSION = '1.5.2'; -var BLOCK_ROWS = 50; -var CLUSTER_BLOCKS = 4; -var DEFAULTS = { - name: '', - placeholder: '', - data: undefined, - locale: undefined, - selectAll: true, - single: undefined, - singleRadio: false, - multiple: false, - hideOptgroupCheckboxes: false, - multipleWidth: 80, - width: undefined, - dropWidth: undefined, - maxHeight: 250, - maxHeightUnit: 'px', - position: 'bottom', - displayValues: false, - displayTitle: false, - displayDelimiter: ', ', +var classof$3 = classofRaw$2; + +// `IsArray` abstract operation +// https://tc39.es/ecma262/#sec-isarray +// eslint-disable-next-line es/no-array-isarray -- safe +var isArray$3 = Array.isArray || function isArray(argument) { + return classof$3(argument) == 'Array'; +}; + +var $TypeError$2 = TypeError; +var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991 + +var doesNotExceedSafeInteger$1 = function (it) { + if (it > MAX_SAFE_INTEGER) throw $TypeError$2('Maximum allowed index exceeded'); + return it; +}; + +var toPropertyKey = toPropertyKey$3; +var definePropertyModule = objectDefineProperty; +var createPropertyDescriptor = createPropertyDescriptor$3; + +var createProperty$3 = function (object, key, value) { + var propertyKey = toPropertyKey(key); + if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value)); + else object[propertyKey] = value; +}; + +var uncurryThis$b = functionUncurryThis; +var fails$7 = fails$m; +var isCallable$1 = isCallable$e; +var classof$2 = classof$7; +var getBuiltIn = getBuiltIn$4; +var inspectSource = inspectSource$2; + +var noop = function () { /* empty */ }; +var empty = []; +var construct = getBuiltIn('Reflect', 'construct'); +var constructorRegExp = /^\s*(?:class|function)\b/; +var exec$1 = uncurryThis$b(constructorRegExp.exec); +var INCORRECT_TO_STRING = !constructorRegExp.exec(noop); + +var isConstructorModern = function isConstructor(argument) { + if (!isCallable$1(argument)) return false; + try { + construct(noop, empty, argument); + return true; + } catch (error) { + return false; + } +}; + +var isConstructorLegacy = function isConstructor(argument) { + if (!isCallable$1(argument)) return false; + switch (classof$2(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 || !!exec$1(constructorRegExp, inspectSource(argument)); + } catch (error) { + return true; + } +}; + +isConstructorLegacy.sham = true; + +// `IsConstructor` abstract operation +// https://tc39.es/ecma262/#sec-isconstructor +var isConstructor$3 = !construct || fails$7(function () { + var called; + return isConstructorModern(isConstructorModern.call) + || !isConstructorModern(Object) + || !isConstructorModern(function () { called = true; }) + || called; +}) ? isConstructorLegacy : isConstructorModern; + +var isArray$2 = isArray$3; +var isConstructor$2 = isConstructor$3; +var isObject$2 = isObject$9; +var wellKnownSymbol$5 = wellKnownSymbol$d; + +var SPECIES$3 = wellKnownSymbol$5('species'); +var $Array$2 = Array; + +// a part of `ArraySpeciesCreate` abstract operation +// https://tc39.es/ecma262/#sec-arrayspeciescreate +var arraySpeciesConstructor$1 = function (originalArray) { + var C; + if (isArray$2(originalArray)) { + C = originalArray.constructor; + // cross-realm fallback + if (isConstructor$2(C) && (C === $Array$2 || isArray$2(C.prototype))) C = undefined; + else if (isObject$2(C)) { + C = C[SPECIES$3]; + if (C === null) C = undefined; + } + } return C === undefined ? $Array$2 : C; +}; + +var arraySpeciesConstructor = arraySpeciesConstructor$1; + +// `ArraySpeciesCreate` abstract operation +// https://tc39.es/ecma262/#sec-arrayspeciescreate +var arraySpeciesCreate$2 = function (originalArray, length) { + return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length); +}; + +var fails$6 = fails$m; +var wellKnownSymbol$4 = wellKnownSymbol$d; +var V8_VERSION$1 = engineV8Version; + +var SPECIES$2 = wellKnownSymbol$4('species'); + +var arrayMethodHasSpeciesSupport$4 = function (METHOD_NAME) { + // We can't use this feature detection in V8 since it causes + // deoptimization and serious performance degradation + // https://github.com/zloirock/core-js/issues/677 + return V8_VERSION$1 >= 51 || !fails$6(function () { + var array = []; + var constructor = array.constructor = {}; + constructor[SPECIES$2] = function () { + return { foo: 1 }; + }; + return array[METHOD_NAME](Boolean).foo !== 1; + }); +}; + +var $$a = _export; +var fails$5 = fails$m; +var isArray$1 = isArray$3; +var isObject$1 = isObject$9; +var toObject$5 = toObject$7; +var lengthOfArrayLike$4 = lengthOfArrayLike$6; +var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1; +var createProperty$2 = createProperty$3; +var arraySpeciesCreate$1 = arraySpeciesCreate$2; +var arrayMethodHasSpeciesSupport$3 = arrayMethodHasSpeciesSupport$4; +var wellKnownSymbol$3 = wellKnownSymbol$d; +var V8_VERSION = engineV8Version; + +var IS_CONCAT_SPREADABLE = wellKnownSymbol$3('isConcatSpreadable'); + +// We can't use this feature detection in V8 since it causes +// deoptimization and serious performance degradation +// https://github.com/zloirock/core-js/issues/679 +var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$5(function () { + var array = []; + array[IS_CONCAT_SPREADABLE] = false; + return array.concat()[0] !== array; +}); + +var isConcatSpreadable = function (O) { + if (!isObject$1(O)) return false; + var spreadable = O[IS_CONCAT_SPREADABLE]; + return spreadable !== undefined ? !!spreadable : isArray$1(O); +}; + +var FORCED$2 = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport$3('concat'); + +// `Array.prototype.concat` method +// https://tc39.es/ecma262/#sec-array.prototype.concat +// with adding support of @@isConcatSpreadable and @@species +$$a({ target: 'Array', proto: true, arity: 1, forced: FORCED$2 }, { + // eslint-disable-next-line no-unused-vars -- required for `.length` + concat: function concat(arg) { + var O = toObject$5(this); + var A = arraySpeciesCreate$1(O, 0); + var n = 0; + var i, k, length, len, E; + for (i = -1, length = arguments.length; i < length; i++) { + E = i === -1 ? O : arguments[i]; + if (isConcatSpreadable(E)) { + len = lengthOfArrayLike$4(E); + doesNotExceedSafeInteger(n + len); + for (k = 0; k < len; k++, n++) if (k in E) createProperty$2(A, n, E[k]); + } else { + doesNotExceedSafeInteger(n + 1); + createProperty$2(A, n++, E); + } + } + A.length = n; + return A; + } +}); + +var DESCRIPTORS$2 = descriptors; +var uncurryThis$a = functionUncurryThis; +var call$3 = functionCall; +var fails$4 = fails$m; +var objectKeys$1 = objectKeys$3; +var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols; +var propertyIsEnumerableModule = objectPropertyIsEnumerable; +var toObject$4 = toObject$7; +var IndexedObject$3 = indexedObject; + +// eslint-disable-next-line es/no-object-assign -- safe +var $assign = Object.assign; +// eslint-disable-next-line es/no-object-defineproperty -- required for testing +var defineProperty$1 = Object.defineProperty; +var concat$1 = uncurryThis$a([].concat); + +// `Object.assign` method +// https://tc39.es/ecma262/#sec-object.assign +var objectAssign = !$assign || fails$4(function () { + // should have correct order of operations (Edge bug) + if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$1({}, 'a', { + enumerable: true, + get: function () { + defineProperty$1(this, 'b', { + value: 3, + enumerable: false + }); + } + }), { b: 2 })).b !== 1) return true; + // should work with symbols and should have deterministic property order (V8 bug) + var A = {}; + var B = {}; + // eslint-disable-next-line es/no-symbol -- safe + var symbol = Symbol(); + var alphabet = 'abcdefghijklmnopqrst'; + A[symbol] = 7; + alphabet.split('').forEach(function (chr) { B[chr] = chr; }); + return $assign({}, A)[symbol] != 7 || objectKeys$1($assign({}, B)).join('') != alphabet; +}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length` + var T = toObject$4(target); + var argumentsLength = arguments.length; + var index = 1; + var getOwnPropertySymbols = getOwnPropertySymbolsModule.f; + var propertyIsEnumerable = propertyIsEnumerableModule.f; + while (argumentsLength > index) { + var S = IndexedObject$3(arguments[index++]); + var keys = getOwnPropertySymbols ? concat$1(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S); + var length = keys.length; + var j = 0; + var key; + while (length > j) { + key = keys[j++]; + if (!DESCRIPTORS$2 || call$3(propertyIsEnumerable, S, key)) T[key] = S[key]; + } + } return T; +} : $assign; + +var $$9 = _export; +var assign = objectAssign; + +// `Object.assign` method +// https://tc39.es/ecma262/#sec-object.assign +// eslint-disable-next-line es/no-object-assign -- required for testing +$$9({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, { + assign: assign +}); + +var VERSION = '1.6.0'; +var BLOCK_ROWS = 500; +var CLUSTER_BLOCKS = 4; +var DEFAULTS = { + name: '', + placeholder: '', + classes: '', + classPrefix: '', + data: undefined, + locale: undefined, + selectAll: true, + single: undefined, + singleRadio: false, + multiple: false, + hideOptgroupCheckboxes: false, + multipleWidth: 80, + width: undefined, + size: undefined, + dropWidth: undefined, + maxHeight: 250, + maxHeightUnit: 'px', + position: 'bottom', + displayValues: false, + displayTitle: false, + displayDelimiter: ', ', minimumCountSelected: 3, ellipsis: false, isOpen: false, @@ -882,9 +2146,11 @@ var DEFAULTS = { filterPlaceholder: '', filterAcceptOnEnter: false, filterByDataLength: undefined, - customFilter: function customFilter(label, text) { - // originalLabel, originalText - return label.includes(text); + customFilter: function customFilter(_ref) { + var text = _ref.text, + label = _ref.label, + search = _ref.search; + return (label || text).includes(search); }, showClear: false, animate: undefined, @@ -939,13 +2205,13 @@ var EN = { return 'All selected'; }, formatCountSelected: function formatCountSelected(count, total) { - return count + ' of ' + total + ' selected'; + return "".concat(count, " of ").concat(total, " selected"); }, formatNoMatchesFound: function formatNoMatchesFound() { return 'No matches found'; } }; -var METHODS = ['getOptions', 'refreshOptions', 'getSelects', 'setSelects', 'enable', 'disable', 'open', 'close', 'check', 'uncheck', 'checkAll', 'uncheckAll', 'checkInvert', 'focus', 'blur', 'refresh', 'destroy']; +var METHODS = ['getOptions', 'refreshOptions', 'getData', 'getSelects', 'setSelects', 'enable', 'disable', 'open', 'close', 'check', 'uncheck', 'checkAll', 'uncheckAll', 'checkInvert', 'focus', 'blur', 'refresh', 'destroy']; Object.assign(DEFAULTS, EN); var Constants = { VERSION: VERSION, @@ -959,129 +2225,366 @@ var Constants = { } }; -// `IsArray` abstract operation -// https://tc39.github.io/ecma262/#sec-isarray -var isArray = Array.isArray || function isArray(arg) { - return classofRaw(arg) == 'Array'; -}; +var NATIVE_BIND$1 = functionBindNative; -var nativeGetOwnPropertyNames = objectGetOwnPropertyNames.f; +var FunctionPrototype$1 = Function.prototype; +var apply$2 = FunctionPrototype$1.apply; +var call$2 = FunctionPrototype$1.call; -var toString$1 = {}.toString; +// eslint-disable-next-line es/no-reflect -- safe +var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$2.bind(apply$2) : function () { + return call$2.apply(apply$2, arguments); +}); -var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames - ? Object.getOwnPropertyNames(window) : []; +var isConstructor$1 = isConstructor$3; +var tryToString = tryToString$2; -var getWindowNames = function (it) { - try { - return nativeGetOwnPropertyNames(it); - } catch (error) { - return windowNames.slice(); - } -}; +var $TypeError$1 = TypeError; -// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window -var f$5 = function getOwnPropertyNames(it) { - return windowNames && toString$1.call(it) == '[object Window]' - ? getWindowNames(it) - : nativeGetOwnPropertyNames(toIndexedObject(it)); +// `Assert: IsConstructor(argument) is true` +var aConstructor$1 = function (argument) { + if (isConstructor$1(argument)) return argument; + throw $TypeError$1(tryToString(argument) + ' is not a constructor'); }; -var objectGetOwnPropertyNamesExternal = { - f: f$5 -}; +var anObject$2 = anObject$a; +var aConstructor = aConstructor$1; +var isNullOrUndefined$2 = isNullOrUndefined$6; +var wellKnownSymbol$2 = wellKnownSymbol$d; -var f$6 = wellKnownSymbol; +var SPECIES$1 = wellKnownSymbol$2('species'); -var wrappedWellKnownSymbol = { - f: f$6 +// `SpeciesConstructor` abstract operation +// https://tc39.es/ecma262/#sec-speciesconstructor +var speciesConstructor$1 = function (O, defaultConstructor) { + var C = anObject$2(O).constructor; + var S; + return C === undefined || isNullOrUndefined$2(S = anObject$2(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S); }; -var defineProperty = objectDefineProperty.f; +var uncurryThis$9 = functionUncurryThis; +var toIntegerOrInfinity$1 = toIntegerOrInfinity$4; +var toString$3 = toString$8; +var requireObjectCoercible$2 = requireObjectCoercible$8; -var defineWellKnownSymbol = function (NAME) { - var Symbol = path.Symbol || (path.Symbol = {}); - if (!has(Symbol, NAME)) defineProperty(Symbol, NAME, { - value: wrappedWellKnownSymbol.f(NAME) - }); +var charAt$2 = uncurryThis$9(''.charAt); +var charCodeAt = uncurryThis$9(''.charCodeAt); +var stringSlice$3 = uncurryThis$9(''.slice); + +var createMethod$3 = function (CONVERT_TO_STRING) { + return function ($this, pos) { + var S = toString$3(requireObjectCoercible$2($this)); + var position = toIntegerOrInfinity$1(pos); + var size = S.length; + var first, second; + if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined; + first = charCodeAt(S, position); + return first < 0xD800 || first > 0xDBFF || position + 1 === size + || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF + ? CONVERT_TO_STRING + ? charAt$2(S, position) + : first + : CONVERT_TO_STRING + ? stringSlice$3(S, position, position + 2) + : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000; + }; }; -var defineProperty$1 = objectDefineProperty.f; +var stringMultibyte = { + // `String.prototype.codePointAt` method + // https://tc39.es/ecma262/#sec-string.prototype.codepointat + codeAt: createMethod$3(false), + // `String.prototype.at` method + // https://github.com/mathiasbynens/String.prototype.at + charAt: createMethod$3(true) +}; + +var charAt$1 = stringMultibyte.charAt; +// `AdvanceStringIndex` abstract operation +// https://tc39.es/ecma262/#sec-advancestringindex +var advanceStringIndex$2 = function (S, index, unicode) { + return index + (unicode ? charAt$1(S, index).length : 1); +}; +var toAbsoluteIndex$1 = toAbsoluteIndex$3; +var lengthOfArrayLike$3 = lengthOfArrayLike$6; +var createProperty$1 = createProperty$3; -var TO_STRING_TAG = wellKnownSymbol('toStringTag'); +var $Array$1 = Array; +var max$2 = Math.max; -var setToStringTag = function (it, TAG, STATIC) { - if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) { - defineProperty$1(it, TO_STRING_TAG, { configurable: true, value: TAG }); - } +var arraySliceSimple = function (O, start, end) { + var length = lengthOfArrayLike$3(O); + var k = toAbsoluteIndex$1(start, length); + var fin = toAbsoluteIndex$1(end === undefined ? length : end, length); + var result = $Array$1(max$2(fin - k, 0)); + for (var n = 0; k < fin; k++, n++) createProperty$1(result, n, O[k]); + result.length = n; + return result; }; -var aFunction$1 = function (it) { - if (typeof it != 'function') { - throw TypeError(String(it) + ' is not a function'); - } return it; -}; +var apply$1 = functionApply; +var call$1 = functionCall; +var uncurryThis$8 = functionUncurryThis; +var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic; +var anObject$1 = anObject$a; +var isNullOrUndefined$1 = isNullOrUndefined$6; +var isRegExp = isRegexp; +var requireObjectCoercible$1 = requireObjectCoercible$8; +var speciesConstructor = speciesConstructor$1; +var advanceStringIndex$1 = advanceStringIndex$2; +var toLength$1 = toLength$3; +var toString$2 = toString$8; +var getMethod$1 = getMethod$4; +var arraySlice$1 = arraySliceSimple; +var callRegExpExec = regexpExecAbstract; +var regexpExec = regexpExec$3; +var stickyHelpers = regexpStickyHelpers; +var fails$3 = fails$m; + +var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y; +var MAX_UINT32 = 0xFFFFFFFF; +var min$1 = Math.min; +var $push = [].push; +var exec = uncurryThis$8(/./.exec); +var push$3 = uncurryThis$8($push); +var stringSlice$2 = uncurryThis$8(''.slice); -// optional / simple context binding -var bindContext = function (fn, that, length) { - aFunction$1(fn); - if (that === undefined) return fn; - switch (length) { - case 0: return function () { - return fn.call(that); - }; - case 1: return function (a) { - return fn.call(that, a); - }; - case 2: return function (a, b) { - return fn.call(that, a, b); +// Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec +// Weex JS has frozen built-in prototypes, so use try / catch wrapper +var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails$3(function () { + // eslint-disable-next-line regexp/no-empty-group -- required for testing + var re = /(?:)/; + var originalExec = re.exec; + re.exec = function () { return originalExec.apply(this, arguments); }; + var result = 'ab'.split(re); + return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b'; +}); + +// @@split logic +fixRegExpWellKnownSymbolLogic$1('split', function (SPLIT, nativeSplit, maybeCallNative) { + var internalSplit; + if ( + 'abbc'.split(/(b)*/)[1] == 'c' || + // eslint-disable-next-line regexp/no-empty-group -- required for testing + 'test'.split(/(?:)/, -1).length != 4 || + 'ab'.split(/(?:ab)*/).length != 2 || + '.'.split(/(.?)(.?)/).length != 4 || + // eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing + '.'.split(/()()/).length > 1 || + ''.split(/.?/).length + ) { + // based on es5-shim implementation, need to rework it + internalSplit = function (separator, limit) { + var string = toString$2(requireObjectCoercible$1(this)); + var lim = limit === undefined ? MAX_UINT32 : limit >>> 0; + if (lim === 0) return []; + if (separator === undefined) return [string]; + // If `separator` is not a regex, use native split + if (!isRegExp(separator)) { + return call$1(nativeSplit, string, separator, lim); + } + var output = []; + var flags = (separator.ignoreCase ? 'i' : '') + + (separator.multiline ? 'm' : '') + + (separator.unicode ? 'u' : '') + + (separator.sticky ? 'y' : ''); + var lastLastIndex = 0; + // Make `global` and avoid `lastIndex` issues by working with a copy + var separatorCopy = new RegExp(separator.source, flags + 'g'); + var match, lastIndex, lastLength; + while (match = call$1(regexpExec, separatorCopy, string)) { + lastIndex = separatorCopy.lastIndex; + if (lastIndex > lastLastIndex) { + push$3(output, stringSlice$2(string, lastLastIndex, match.index)); + if (match.length > 1 && match.index < string.length) apply$1($push, output, arraySlice$1(match, 1)); + lastLength = match[0].length; + lastLastIndex = lastIndex; + if (output.length >= lim) break; + } + if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop + } + if (lastLastIndex === string.length) { + if (lastLength || !exec(separatorCopy, '')) push$3(output, ''); + } else push$3(output, stringSlice$2(string, lastLastIndex)); + return output.length > lim ? arraySlice$1(output, 0, lim) : output; }; - case 3: return function (a, b, c) { - return fn.call(that, a, b, c); + // Chakra, V8 + } else if ('0'.split(undefined, 0).length) { + internalSplit = function (separator, limit) { + return separator === undefined && limit === 0 ? [] : call$1(nativeSplit, this, separator, limit); }; - } - return function (/* ...args */) { - return fn.apply(that, arguments); - }; -}; + } else internalSplit = nativeSplit; -var SPECIES = wellKnownSymbol('species'); + return [ + // `String.prototype.split` method + // https://tc39.es/ecma262/#sec-string.prototype.split + function split(separator, limit) { + var O = requireObjectCoercible$1(this); + var splitter = isNullOrUndefined$1(separator) ? undefined : getMethod$1(separator, SPLIT); + return splitter + ? call$1(splitter, separator, O, limit) + : call$1(internalSplit, toString$2(O), separator, limit); + }, + // `RegExp.prototype[@@split]` method + // https://tc39.es/ecma262/#sec-regexp.prototype-@@split + // + // NOTE: This cannot be properly polyfilled in engines that don't support + // the 'y' flag. + function (string, limit) { + var rx = anObject$1(this); + var S = toString$2(string); + var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit); -// `ArraySpeciesCreate` abstract operation -// https://tc39.github.io/ecma262/#sec-arrayspeciescreate -var arraySpeciesCreate = function (originalArray, length) { - var C; - if (isArray(originalArray)) { - C = originalArray.constructor; - // cross-realm fallback - if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined; - else if (isObject(C)) { - C = C[SPECIES]; - if (C === null) C = undefined; + if (res.done) return res.value; + + var C = speciesConstructor(rx, RegExp); + + var unicodeMatching = rx.unicode; + var flags = (rx.ignoreCase ? 'i' : '') + + (rx.multiline ? 'm' : '') + + (rx.unicode ? 'u' : '') + + (UNSUPPORTED_Y ? 'g' : 'y'); + + // ^(? + rx + ) is needed, in combination with some S slicing, to + // simulate the 'y' flag. + var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags); + var lim = limit === undefined ? MAX_UINT32 : limit >>> 0; + if (lim === 0) return []; + if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : []; + var p = 0; + var q = 0; + var A = []; + while (q < S.length) { + splitter.lastIndex = UNSUPPORTED_Y ? 0 : q; + var z = callRegExpExec(splitter, UNSUPPORTED_Y ? stringSlice$2(S, q) : S); + var e; + if ( + z === null || + (e = min$1(toLength$1(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p + ) { + q = advanceStringIndex$1(S, q, unicodeMatching); + } else { + push$3(A, stringSlice$2(S, p, q)); + if (A.length === lim) return A; + for (var i = 1; i <= z.length - 1; i++) { + push$3(A, z[i]); + if (A.length === lim) return A; + } + q = p = e; + } + } + push$3(A, stringSlice$2(S, p)); + return A; } - } return new (C === undefined ? Array : C)(length === 0 ? 0 : length); + ]; +}, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y); + +var fails$2 = fails$m; + +var arrayMethodIsStrict$3 = function (METHOD_NAME, argument) { + var method = [][METHOD_NAME]; + return !!method && fails$2(function () { + // eslint-disable-next-line no-useless-call -- required for testing + method.call(null, argument || function () { return 1; }, 1); + }); }; -var push = [].push; +var $$8 = _export; +var uncurryThis$7 = functionUncurryThis; +var IndexedObject$2 = indexedObject; +var toIndexedObject$2 = toIndexedObject$7; +var arrayMethodIsStrict$2 = arrayMethodIsStrict$3; -// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation +var nativeJoin = uncurryThis$7([].join); + +var ES3_STRINGS = IndexedObject$2 != Object; +var FORCED$1 = ES3_STRINGS || !arrayMethodIsStrict$2('join', ','); + +// `Array.prototype.join` method +// https://tc39.es/ecma262/#sec-array.prototype.join +$$8({ target: 'Array', proto: true, forced: FORCED$1 }, { + join: function join(separator) { + return nativeJoin(toIndexedObject$2(this), separator === undefined ? ',' : separator); + } +}); + +var makeBuiltIn = makeBuiltInExports; +var defineProperty = objectDefineProperty; + +var defineBuiltInAccessor$1 = function (target, name, descriptor) { + if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true }); + if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true }); + return defineProperty.f(target, name, descriptor); +}; + +var DESCRIPTORS$1 = descriptors; +var FUNCTION_NAME_EXISTS = functionName.EXISTS; +var uncurryThis$6 = functionUncurryThis; +var defineBuiltInAccessor = defineBuiltInAccessor$1; + +var FunctionPrototype = Function.prototype; +var functionToString = uncurryThis$6(FunctionPrototype.toString); +var nameRE = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/; +var regExpExec$1 = uncurryThis$6(nameRE.exec); +var NAME = 'name'; + +// Function instances `.name` property +// https://tc39.es/ecma262/#sec-function-instances-name +if (DESCRIPTORS$1 && !FUNCTION_NAME_EXISTS) { + defineBuiltInAccessor(FunctionPrototype, NAME, { + configurable: true, + get: function () { + try { + return regExpExec$1(nameRE, functionToString(this))[1]; + } catch (error) { + return ''; + } + } + }); +} + +var uncurryThis$5 = functionUncurryThisClause; +var aCallable$1 = aCallable$3; +var NATIVE_BIND = functionBindNative; + +var bind$1 = uncurryThis$5(uncurryThis$5.bind); + +// optional / simple context binding +var functionBindContext = function (fn, that) { + aCallable$1(fn); + return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) { + return fn.apply(that, arguments); + }; +}; + +var bind = functionBindContext; +var uncurryThis$4 = functionUncurryThis; +var IndexedObject$1 = indexedObject; +var toObject$3 = toObject$7; +var lengthOfArrayLike$2 = lengthOfArrayLike$6; +var arraySpeciesCreate = arraySpeciesCreate$2; + +var push$2 = uncurryThis$4([].push); + +// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation var createMethod$2 = 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($this); - var self = indexedObject(O); - var boundFunction = bindContext(callbackfn, that, 3); - var length = toLength(self.length); + var O = toObject$3($this); + var self = IndexedObject$1(O); + var boundFunction = bind(callbackfn, that); + var length = lengthOfArrayLike$2(self); var index = 0; var create = specificCreate || arraySpeciesCreate; - var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined; + 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]; @@ -1092,8 +2595,11 @@ var createMethod$2 = function (TYPE) { case 3: return true; // some case 5: return value; // find case 6: return index; // findIndex - case 2: push.call(target, value); // filter - } else if (IS_EVERY) return false; // every + case 2: push$2(target, value); // filter + } else switch (TYPE) { + case 4: return false; // every + case 7: push$2(target, value); // filterReject + } } } return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target; @@ -1102,1188 +2608,164 @@ var createMethod$2 = function (TYPE) { var arrayIteration = { // `Array.prototype.forEach` method - // https://tc39.github.io/ecma262/#sec-array.prototype.foreach + // https://tc39.es/ecma262/#sec-array.prototype.foreach forEach: createMethod$2(0), // `Array.prototype.map` method - // https://tc39.github.io/ecma262/#sec-array.prototype.map + // https://tc39.es/ecma262/#sec-array.prototype.map map: createMethod$2(1), // `Array.prototype.filter` method - // https://tc39.github.io/ecma262/#sec-array.prototype.filter + // https://tc39.es/ecma262/#sec-array.prototype.filter filter: createMethod$2(2), // `Array.prototype.some` method - // https://tc39.github.io/ecma262/#sec-array.prototype.some + // https://tc39.es/ecma262/#sec-array.prototype.some some: createMethod$2(3), // `Array.prototype.every` method - // https://tc39.github.io/ecma262/#sec-array.prototype.every + // https://tc39.es/ecma262/#sec-array.prototype.every every: createMethod$2(4), // `Array.prototype.find` method - // https://tc39.github.io/ecma262/#sec-array.prototype.find + // https://tc39.es/ecma262/#sec-array.prototype.find find: createMethod$2(5), // `Array.prototype.findIndex` method - // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex - findIndex: createMethod$2(6) -}; - -var $forEach = arrayIteration.forEach; - -var HIDDEN = sharedKey('hidden'); -var SYMBOL = 'Symbol'; -var PROTOTYPE$1 = 'prototype'; -var TO_PRIMITIVE = wellKnownSymbol('toPrimitive'); -var setInternalState = internalState.set; -var getInternalState = internalState.getterFor(SYMBOL); -var ObjectPrototype = Object[PROTOTYPE$1]; -var $Symbol = global_1.Symbol; -var JSON = global_1.JSON; -var nativeJSONStringify = JSON && JSON.stringify; -var nativeGetOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f; -var nativeDefineProperty$1 = objectDefineProperty.f; -var nativeGetOwnPropertyNames$1 = objectGetOwnPropertyNamesExternal.f; -var nativePropertyIsEnumerable$1 = objectPropertyIsEnumerable.f; -var AllSymbols = shared('symbols'); -var ObjectPrototypeSymbols = shared('op-symbols'); -var StringToSymbolRegistry = shared('string-to-symbol-registry'); -var SymbolToStringRegistry = shared('symbol-to-string-registry'); -var WellKnownSymbolsStore = shared('wks'); -var QObject = global_1.QObject; -// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173 -var USE_SETTER = !QObject || !QObject[PROTOTYPE$1] || !QObject[PROTOTYPE$1].findChild; - -// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687 -var setSymbolDescriptor = descriptors && fails(function () { - return objectCreate(nativeDefineProperty$1({}, 'a', { - get: function () { return nativeDefineProperty$1(this, 'a', { value: 7 }).a; } - })).a != 7; -}) ? function (O, P, Attributes) { - var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor$1(ObjectPrototype, P); - if (ObjectPrototypeDescriptor) delete ObjectPrototype[P]; - nativeDefineProperty$1(O, P, Attributes); - if (ObjectPrototypeDescriptor && O !== ObjectPrototype) { - nativeDefineProperty$1(ObjectPrototype, P, ObjectPrototypeDescriptor); - } -} : nativeDefineProperty$1; - -var wrap = function (tag, description) { - var symbol = AllSymbols[tag] = objectCreate($Symbol[PROTOTYPE$1]); - setInternalState(symbol, { - type: SYMBOL, - tag: tag, - description: description - }); - if (!descriptors) symbol.description = description; - return symbol; -}; - -var isSymbol = nativeSymbol && typeof $Symbol.iterator == 'symbol' ? function (it) { - return typeof it == 'symbol'; -} : function (it) { - return Object(it) instanceof $Symbol; -}; - -var $defineProperty = function defineProperty(O, P, Attributes) { - if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes); - anObject(O); - var key = toPrimitive(P, true); - anObject(Attributes); - if (has(AllSymbols, key)) { - if (!Attributes.enumerable) { - if (!has(O, HIDDEN)) nativeDefineProperty$1(O, HIDDEN, createPropertyDescriptor(1, {})); - O[HIDDEN][key] = true; - } else { - if (has(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false; - Attributes = objectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) }); - } return setSymbolDescriptor(O, key, Attributes); - } return nativeDefineProperty$1(O, key, Attributes); -}; - -var $defineProperties = function defineProperties(O, Properties) { - anObject(O); - var properties = toIndexedObject(Properties); - var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties)); - $forEach(keys, function (key) { - if (!descriptors || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]); - }); - return O; -}; - -var $create = function create(O, Properties) { - return Properties === undefined ? objectCreate(O) : $defineProperties(objectCreate(O), Properties); -}; - -var $propertyIsEnumerable = function propertyIsEnumerable(V) { - var P = toPrimitive(V, true); - var enumerable = nativePropertyIsEnumerable$1.call(this, P); - if (this === ObjectPrototype && has(AllSymbols, P) && !has(ObjectPrototypeSymbols, P)) return false; - return enumerable || !has(this, P) || !has(AllSymbols, P) || has(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true; -}; - -var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) { - var it = toIndexedObject(O); - var key = toPrimitive(P, true); - if (it === ObjectPrototype && has(AllSymbols, key) && !has(ObjectPrototypeSymbols, key)) return; - var descriptor = nativeGetOwnPropertyDescriptor$1(it, key); - if (descriptor && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) { - descriptor.enumerable = true; - } - return descriptor; + // https://tc39.es/ecma262/#sec-array.prototype.findIndex + findIndex: createMethod$2(6), + // `Array.prototype.filterReject` method + // https://github.com/tc39/proposal-array-filtering + filterReject: createMethod$2(7) }; -var $getOwnPropertyNames = function getOwnPropertyNames(O) { - var names = nativeGetOwnPropertyNames$1(toIndexedObject(O)); - var result = []; - $forEach(names, function (key) { - if (!has(AllSymbols, key) && !has(hiddenKeys, key)) result.push(key); - }); - return result; -}; - -var $getOwnPropertySymbols = function getOwnPropertySymbols(O) { - var IS_OBJECT_PROTOTYPE = O === ObjectPrototype; - var names = nativeGetOwnPropertyNames$1(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O)); - var result = []; - $forEach(names, function (key) { - if (has(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || has(ObjectPrototype, key))) { - result.push(AllSymbols[key]); - } - }); - return result; -}; - -// `Symbol` constructor -// https://tc39.github.io/ecma262/#sec-symbol-constructor -if (!nativeSymbol) { - $Symbol = function Symbol() { - if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor'); - var description = !arguments.length || arguments[0] === undefined ? undefined : String(arguments[0]); - var tag = uid(description); - var setter = function (value) { - if (this === ObjectPrototype) setter.call(ObjectPrototypeSymbols, value); - if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false; - setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value)); - }; - if (descriptors && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter }); - return wrap(tag, description); - }; - - redefine($Symbol[PROTOTYPE$1], 'toString', function toString() { - return getInternalState(this).tag; - }); - - objectPropertyIsEnumerable.f = $propertyIsEnumerable; - objectDefineProperty.f = $defineProperty; - objectGetOwnPropertyDescriptor.f = $getOwnPropertyDescriptor; - objectGetOwnPropertyNames.f = objectGetOwnPropertyNamesExternal.f = $getOwnPropertyNames; - objectGetOwnPropertySymbols.f = $getOwnPropertySymbols; - - if (descriptors) { - // https://github.com/tc39/proposal-Symbol-description - nativeDefineProperty$1($Symbol[PROTOTYPE$1], 'description', { - configurable: true, - get: function description() { - return getInternalState(this).description; - } - }); - { - redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true }); - } - } - - wrappedWellKnownSymbol.f = function (name) { - return wrap(wellKnownSymbol(name), name); - }; -} - -_export({ global: true, wrap: true, forced: !nativeSymbol, sham: !nativeSymbol }, { - Symbol: $Symbol -}); - -$forEach(objectKeys(WellKnownSymbolsStore), function (name) { - defineWellKnownSymbol(name); -}); - -_export({ target: SYMBOL, stat: true, forced: !nativeSymbol }, { - // `Symbol.for` method - // https://tc39.github.io/ecma262/#sec-symbol.for - 'for': function (key) { - var string = String(key); - if (has(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string]; - var symbol = $Symbol(string); - StringToSymbolRegistry[string] = symbol; - SymbolToStringRegistry[symbol] = string; - return symbol; - }, - // `Symbol.keyFor` method - // https://tc39.github.io/ecma262/#sec-symbol.keyfor - keyFor: function keyFor(sym) { - if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol'); - if (has(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym]; - }, - useSetter: function () { USE_SETTER = true; }, - useSimple: function () { USE_SETTER = false; } -}); - -_export({ target: 'Object', stat: true, forced: !nativeSymbol, sham: !descriptors }, { - // `Object.create` method - // https://tc39.github.io/ecma262/#sec-object.create - create: $create, - // `Object.defineProperty` method - // https://tc39.github.io/ecma262/#sec-object.defineproperty - defineProperty: $defineProperty, - // `Object.defineProperties` method - // https://tc39.github.io/ecma262/#sec-object.defineproperties - defineProperties: $defineProperties, - // `Object.getOwnPropertyDescriptor` method - // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors - getOwnPropertyDescriptor: $getOwnPropertyDescriptor -}); - -_export({ target: 'Object', stat: true, forced: !nativeSymbol }, { - // `Object.getOwnPropertyNames` method - // https://tc39.github.io/ecma262/#sec-object.getownpropertynames - getOwnPropertyNames: $getOwnPropertyNames, - // `Object.getOwnPropertySymbols` method - // https://tc39.github.io/ecma262/#sec-object.getownpropertysymbols - getOwnPropertySymbols: $getOwnPropertySymbols -}); - -// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives -// https://bugs.chromium.org/p/v8/issues/detail?id=3443 -_export({ target: 'Object', stat: true, forced: fails(function () { objectGetOwnPropertySymbols.f(1); }) }, { - getOwnPropertySymbols: function getOwnPropertySymbols(it) { - return objectGetOwnPropertySymbols.f(toObject(it)); - } -}); - -// `JSON.stringify` method behavior with symbols -// https://tc39.github.io/ecma262/#sec-json.stringify -JSON && _export({ target: 'JSON', stat: true, forced: !nativeSymbol || fails(function () { - var symbol = $Symbol(); - // MS Edge converts symbol values to JSON as {} - return nativeJSONStringify([symbol]) != '[null]' - // WebKit converts symbol values to JSON as null - || nativeJSONStringify({ a: symbol }) != '{}' - // V8 throws on boxed symbols - || nativeJSONStringify(Object(symbol)) != '{}'; -}) }, { - stringify: function stringify(it) { - var args = [it]; - var index = 1; - var replacer, $replacer; - while (arguments.length > index) args.push(arguments[index++]); - $replacer = replacer = args[1]; - if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined - if (!isArray(replacer)) replacer = function (key, value) { - if (typeof $replacer == 'function') value = $replacer.call(this, key, value); - if (!isSymbol(value)) return value; - }; - args[1] = replacer; - return nativeJSONStringify.apply(JSON, args); - } -}); - -// `Symbol.prototype[@@toPrimitive]` method -// https://tc39.github.io/ecma262/#sec-symbol.prototype-@@toprimitive -if (!$Symbol[PROTOTYPE$1][TO_PRIMITIVE]) hide($Symbol[PROTOTYPE$1], TO_PRIMITIVE, $Symbol[PROTOTYPE$1].valueOf); -// `Symbol.prototype[@@toStringTag]` property -// https://tc39.github.io/ecma262/#sec-symbol.prototype-@@tostringtag -setToStringTag($Symbol, SYMBOL); - -hiddenKeys[HIDDEN] = true; - -var defineProperty$2 = objectDefineProperty.f; - - -var NativeSymbol = global_1.Symbol; - -if (descriptors && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) || - // Safari 12 bug - NativeSymbol().description !== undefined -)) { - var EmptyStringDescriptionStore = {}; - // wrap Symbol constructor for correct work with undefined description - var SymbolWrapper = function Symbol() { - var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]); - var result = this instanceof SymbolWrapper - ? new NativeSymbol(description) - // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)' - : description === undefined ? NativeSymbol() : NativeSymbol(description); - if (description === '') EmptyStringDescriptionStore[result] = true; - return result; - }; - copyConstructorProperties(SymbolWrapper, NativeSymbol); - var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype; - symbolPrototype.constructor = SymbolWrapper; - - var symbolToString = symbolPrototype.toString; - var native = String(NativeSymbol('test')) == 'Symbol(test)'; - var regexp = /^Symbol\((.*)\)[^)]+$/; - defineProperty$2(symbolPrototype, 'description', { - configurable: true, - get: function description() { - var symbol = isObject(this) ? this.valueOf() : this; - var string = symbolToString.call(symbol); - if (has(EmptyStringDescriptionStore, symbol)) return ''; - var desc = native ? string.slice(7, -1) : string.replace(regexp, '$1'); - return desc === '' ? undefined : desc; - } - }); - - _export({ global: true, forced: true }, { - Symbol: SymbolWrapper - }); -} - -// `Symbol.iterator` well-known symbol -// https://tc39.github.io/ecma262/#sec-symbol.iterator -defineWellKnownSymbol('iterator'); - -var createProperty = function (object, key, value) { - var propertyKey = toPrimitive(key); - if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value)); - else object[propertyKey] = value; -}; - -var SPECIES$1 = wellKnownSymbol('species'); - -var arrayMethodHasSpeciesSupport = function (METHOD_NAME) { - return !fails(function () { - var array = []; - var constructor = array.constructor = {}; - constructor[SPECIES$1] = function () { - return { foo: 1 }; - }; - return array[METHOD_NAME](Boolean).foo !== 1; - }); -}; - -var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable'); -var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; -var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded'; - -var IS_CONCAT_SPREADABLE_SUPPORT = !fails(function () { - var array = []; - array[IS_CONCAT_SPREADABLE] = false; - return array.concat()[0] !== array; -}); - -var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat'); - -var isConcatSpreadable = function (O) { - if (!isObject(O)) return false; - var spreadable = O[IS_CONCAT_SPREADABLE]; - return spreadable !== undefined ? !!spreadable : isArray(O); -}; - -var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT; - -// `Array.prototype.concat` method -// https://tc39.github.io/ecma262/#sec-array.prototype.concat -// with adding support of @@isConcatSpreadable and @@species -_export({ target: 'Array', proto: true, forced: FORCED }, { - concat: function concat(arg) { // eslint-disable-line no-unused-vars - var O = toObject(this); - var A = arraySpeciesCreate(O, 0); - var n = 0; - var i, k, length, len, E; - for (i = -1, length = arguments.length; i < length; i++) { - E = i === -1 ? O : arguments[i]; - if (isConcatSpreadable(E)) { - len = toLength(E.length); - if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED); - for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]); - } else { - if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED); - createProperty(A, n++, E); - } - } - A.length = n; - return A; - } -}); - -var $filter = arrayIteration.filter; - - -// `Array.prototype.filter` method -// https://tc39.github.io/ecma262/#sec-array.prototype.filter -// with adding support of @@species -_export({ target: 'Array', proto: true, forced: !arrayMethodHasSpeciesSupport('filter') }, { - filter: function filter(callbackfn /* , thisArg */) { - return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); - } -}); - +var $$7 = _export; var $find = arrayIteration.find; - +var addToUnscopables = addToUnscopables$2; var FIND = 'find'; var SKIPS_HOLES = true; // Shouldn't skip holes +// eslint-disable-next-line es/no-array-prototype-find -- testing if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; }); -// `Array.prototype.find` method -// https://tc39.github.io/ecma262/#sec-array.prototype.find -_export({ target: 'Array', proto: true, forced: SKIPS_HOLES }, { - find: function find(callbackfn /* , that = undefined */) { - return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); - } -}); - -// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables -addToUnscopables(FIND); - -var correctPrototypeGetter = !fails(function () { - function F() { /* empty */ } - F.prototype.constructor = null; - return Object.getPrototypeOf(new F()) !== F.prototype; -}); - -var IE_PROTO$1 = sharedKey('IE_PROTO'); -var ObjectPrototype$1 = Object.prototype; - -// `Object.getPrototypeOf` method -// https://tc39.github.io/ecma262/#sec-object.getprototypeof -var objectGetPrototypeOf = correctPrototypeGetter ? Object.getPrototypeOf : function (O) { - O = toObject(O); - if (has(O, IE_PROTO$1)) return O[IE_PROTO$1]; - if (typeof O.constructor == 'function' && O instanceof O.constructor) { - return O.constructor.prototype; - } return O instanceof Object ? ObjectPrototype$1 : null; -}; - -var ITERATOR = wellKnownSymbol('iterator'); -var BUGGY_SAFARI_ITERATORS = false; - -var returnThis = function () { return this; }; - -// `%IteratorPrototype%` object -// https://tc39.github.io/ecma262/#sec-%iteratorprototype%-object -var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator; - -if ([].keys) { - arrayIterator = [].keys(); - // Safari 8 has buggy iterators w/o `next` - if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true; - else { - PrototypeOfArrayIteratorPrototype = objectGetPrototypeOf(objectGetPrototypeOf(arrayIterator)); - if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype; - } -} - -if (IteratorPrototype == undefined) IteratorPrototype = {}; - -// 25.1.2.1.1 %IteratorPrototype%[@@iterator]() -if ( !has(IteratorPrototype, ITERATOR)) hide(IteratorPrototype, ITERATOR, returnThis); - -var iteratorsCore = { - IteratorPrototype: IteratorPrototype, - BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS -}; - -var IteratorPrototype$1 = iteratorsCore.IteratorPrototype; - -var createIteratorConstructor = function (IteratorConstructor, NAME, next) { - var TO_STRING_TAG = NAME + ' Iterator'; - IteratorConstructor.prototype = objectCreate(IteratorPrototype$1, { next: createPropertyDescriptor(1, next) }); - setToStringTag(IteratorConstructor, TO_STRING_TAG, false); - return IteratorConstructor; -}; - -var aPossiblePrototype = function (it) { - if (!isObject(it) && it !== null) { - throw TypeError("Can't set " + String(it) + ' as a prototype'); - } return it; -}; - -// `Object.setPrototypeOf` method -// https://tc39.github.io/ecma262/#sec-object.setprototypeof -// Works with __proto__ only. Old v8 can't work with null proto objects. -/* eslint-disable no-proto */ -var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () { - var CORRECT_SETTER = false; - var test = {}; - var setter; - try { - setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set; - setter.call(test, []); - CORRECT_SETTER = test instanceof Array; - } catch (error) { /* empty */ } - return function setPrototypeOf(O, proto) { - anObject(O); - aPossiblePrototype(proto); - if (CORRECT_SETTER) setter.call(O, proto); - else O.__proto__ = proto; - return O; - }; -}() : undefined); - -var IteratorPrototype$2 = iteratorsCore.IteratorPrototype; -var BUGGY_SAFARI_ITERATORS$1 = iteratorsCore.BUGGY_SAFARI_ITERATORS; -var ITERATOR$1 = wellKnownSymbol('iterator'); -var KEYS = 'keys'; -var VALUES = 'values'; -var ENTRIES = 'entries'; - -var returnThis$1 = function () { return this; }; - -var defineIterator = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) { - createIteratorConstructor(IteratorConstructor, NAME, next); - - var getIterationMethod = function (KIND) { - if (KIND === DEFAULT && defaultIterator) return defaultIterator; - if (!BUGGY_SAFARI_ITERATORS$1 && KIND in IterablePrototype) return IterablePrototype[KIND]; - switch (KIND) { - case KEYS: return function keys() { return new IteratorConstructor(this, KIND); }; - case VALUES: return function values() { return new IteratorConstructor(this, KIND); }; - case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); }; - } return function () { return new IteratorConstructor(this); }; - }; - - var TO_STRING_TAG = NAME + ' Iterator'; - var INCORRECT_VALUES_NAME = false; - var IterablePrototype = Iterable.prototype; - var nativeIterator = IterablePrototype[ITERATOR$1] - || IterablePrototype['@@iterator'] - || DEFAULT && IterablePrototype[DEFAULT]; - var defaultIterator = !BUGGY_SAFARI_ITERATORS$1 && nativeIterator || getIterationMethod(DEFAULT); - var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator; - var CurrentIteratorPrototype, methods, KEY; - - // fix native - if (anyNativeIterator) { - CurrentIteratorPrototype = objectGetPrototypeOf(anyNativeIterator.call(new Iterable())); - if (IteratorPrototype$2 !== Object.prototype && CurrentIteratorPrototype.next) { - if ( objectGetPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype$2) { - if (objectSetPrototypeOf) { - objectSetPrototypeOf(CurrentIteratorPrototype, IteratorPrototype$2); - } else if (typeof CurrentIteratorPrototype[ITERATOR$1] != 'function') { - hide(CurrentIteratorPrototype, ITERATOR$1, returnThis$1); - } - } - // Set @@toStringTag to native iterators - setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true); - } - } - - // fix Array#{values, @@iterator}.name in V8 / FF - if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) { - INCORRECT_VALUES_NAME = true; - defaultIterator = function values() { return nativeIterator.call(this); }; - } - - // define iterator - if ( IterablePrototype[ITERATOR$1] !== defaultIterator) { - hide(IterablePrototype, ITERATOR$1, defaultIterator); - } - - // export additional methods - if (DEFAULT) { - methods = { - values: getIterationMethod(VALUES), - keys: IS_SET ? defaultIterator : getIterationMethod(KEYS), - entries: getIterationMethod(ENTRIES) - }; - if (FORCED) for (KEY in methods) { - if (BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) { - redefine(IterablePrototype, KEY, methods[KEY]); - } - } else _export({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME }, methods); - } - - return methods; -}; - -var ARRAY_ITERATOR = 'Array Iterator'; -var setInternalState$1 = internalState.set; -var getInternalState$1 = internalState.getterFor(ARRAY_ITERATOR); - -// `Array.prototype.entries` method -// https://tc39.github.io/ecma262/#sec-array.prototype.entries -// `Array.prototype.keys` method -// https://tc39.github.io/ecma262/#sec-array.prototype.keys -// `Array.prototype.values` method -// https://tc39.github.io/ecma262/#sec-array.prototype.values -// `Array.prototype[@@iterator]` method -// https://tc39.github.io/ecma262/#sec-array.prototype-@@iterator -// `CreateArrayIterator` internal method -// https://tc39.github.io/ecma262/#sec-createarrayiterator -var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) { - setInternalState$1(this, { - type: ARRAY_ITERATOR, - target: toIndexedObject(iterated), // target - index: 0, // next index - kind: kind // kind - }); -// `%ArrayIteratorPrototype%.next` method -// https://tc39.github.io/ecma262/#sec-%arrayiteratorprototype%.next -}, function () { - var state = getInternalState$1(this); - var target = state.target; - var kind = state.kind; - var index = state.index++; - if (!target || index >= target.length) { - state.target = undefined; - return { value: undefined, done: true }; - } - if (kind == 'keys') return { value: index, done: false }; - if (kind == 'values') return { value: target[index], done: false }; - return { value: [index, target[index]], done: false }; -}, 'values'); - -// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables -addToUnscopables('keys'); -addToUnscopables('values'); -addToUnscopables('entries'); - -var sloppyArrayMethod = function (METHOD_NAME, argument) { - var method = [][METHOD_NAME]; - return !method || !fails(function () { - // eslint-disable-next-line no-useless-call,no-throw-literal - method.call(null, argument || function () { throw 1; }, 1); - }); -}; - -var nativeJoin = [].join; - -var ES3_STRINGS = indexedObject != Object; -var SLOPPY_METHOD = sloppyArrayMethod('join', ','); - -// `Array.prototype.join` method -// https://tc39.github.io/ecma262/#sec-array.prototype.join -_export({ target: 'Array', proto: true, forced: ES3_STRINGS || SLOPPY_METHOD }, { - join: function join(separator) { - return nativeJoin.call(toIndexedObject(this), separator === undefined ? ',' : separator); - } -}); - -var $map = arrayIteration.map; - - -// `Array.prototype.map` method -// https://tc39.github.io/ecma262/#sec-array.prototype.map -// with adding support of @@species -_export({ target: 'Array', proto: true, forced: !arrayMethodHasSpeciesSupport('map') }, { - map: function map(callbackfn /* , thisArg */) { - return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); - } -}); - -var SPECIES$2 = wellKnownSymbol('species'); -var nativeSlice = [].slice; -var max$1 = Math.max; - -// `Array.prototype.slice` method -// https://tc39.github.io/ecma262/#sec-array.prototype.slice -// fallback for not array-like ES3 strings and DOM objects -_export({ target: 'Array', proto: true, forced: !arrayMethodHasSpeciesSupport('slice') }, { - slice: function slice(start, end) { - var O = toIndexedObject(this); - var length = toLength(O.length); - var k = toAbsoluteIndex(start, length); - var fin = toAbsoluteIndex(end === undefined ? length : end, length); - // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible - var Constructor, result, n; - if (isArray(O)) { - Constructor = O.constructor; - // cross-realm fallback - if (typeof Constructor == 'function' && (Constructor === Array || isArray(Constructor.prototype))) { - Constructor = undefined; - } else if (isObject(Constructor)) { - Constructor = Constructor[SPECIES$2]; - if (Constructor === null) Constructor = undefined; - } - if (Constructor === Array || Constructor === undefined) { - return nativeSlice.call(O, k, fin); - } - } - result = new (Constructor === undefined ? Array : Constructor)(max$1(fin - k, 0)); - for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]); - result.length = n; - return result; - } -}); - -var defineProperty$3 = objectDefineProperty.f; - -var FunctionPrototype = Function.prototype; -var FunctionPrototypeToString = FunctionPrototype.toString; -var nameRE = /^\s*function ([^ (]*)/; -var NAME = 'name'; - -// Function instances `.name` property -// https://tc39.github.io/ecma262/#sec-function-instances-name -if (descriptors && !(NAME in FunctionPrototype)) { - defineProperty$3(FunctionPrototype, NAME, { - configurable: true, - get: function () { - try { - return FunctionPrototypeToString.call(this).match(nameRE)[1]; - } catch (error) { - return ''; - } - } - }); -} - -var propertyIsEnumerable = objectPropertyIsEnumerable.f; - -// `Object.{ entries, values }` methods implementation -var createMethod$3 = function (TO_ENTRIES) { - return function (it) { - var O = toIndexedObject(it); - var keys = objectKeys(O); - var length = keys.length; - var i = 0; - var result = []; - var key; - while (length > i) { - key = keys[i++]; - if (!descriptors || propertyIsEnumerable.call(O, key)) { - result.push(TO_ENTRIES ? [key, O[key]] : O[key]); - } - } - return result; - }; -}; - -var objectToArray = { - // `Object.entries` method - // https://tc39.github.io/ecma262/#sec-object.entries - entries: createMethod$3(true), - // `Object.values` method - // https://tc39.github.io/ecma262/#sec-object.values - values: createMethod$3(false) -}; - -var $entries = objectToArray.entries; - -// `Object.entries` method -// https://tc39.github.io/ecma262/#sec-object.entries -_export({ target: 'Object', stat: true }, { - entries: function entries(O) { - return $entries(O); - } -}); - -var FAILS_ON_PRIMITIVES = fails(function () { objectKeys(1); }); - -// `Object.keys` method -// https://tc39.github.io/ecma262/#sec-object.keys -_export({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, { - keys: function keys(it) { - return objectKeys(toObject(it)); - } -}); - -var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag'); -// ES3 wrong here -var CORRECT_ARGUMENTS = classofRaw(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 = function (it) { - var O, tag, result; - return it === undefined ? 'Undefined' : it === null ? 'Null' - // @@toStringTag case - : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG$1)) == 'string' ? tag - // builtinTag case - : CORRECT_ARGUMENTS ? classofRaw(O) - // ES3 arguments fallback - : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result; -}; - -var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag'); -var test = {}; - -test[TO_STRING_TAG$2] = 'z'; - -// `Object.prototype.toString` method implementation -// https://tc39.github.io/ecma262/#sec-object.prototype.tostring -var objectToString = String(test) !== '[object z]' ? function toString() { - return '[object ' + classof(this) + ']'; -} : test.toString; - -var ObjectPrototype$2 = Object.prototype; - -// `Object.prototype.toString` method -// https://tc39.github.io/ecma262/#sec-object.prototype.tostring -if (objectToString !== ObjectPrototype$2.toString) { - redefine(ObjectPrototype$2, 'toString', objectToString, { unsafe: true }); -} - -// `String.prototype.{ codePointAt, at }` methods implementation -var createMethod$4 = function (CONVERT_TO_STRING) { - return function ($this, pos) { - var S = String(requireObjectCoercible($this)); - var position = toInteger(pos); - var size = S.length; - var first, second; - if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined; - first = S.charCodeAt(position); - return first < 0xD800 || first > 0xDBFF || position + 1 === size - || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF - ? CONVERT_TO_STRING ? S.charAt(position) : first - : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000; - }; -}; - -var stringMultibyte = { - // `String.prototype.codePointAt` method - // https://tc39.github.io/ecma262/#sec-string.prototype.codepointat - codeAt: createMethod$4(false), - // `String.prototype.at` method - // https://github.com/mathiasbynens/String.prototype.at - charAt: createMethod$4(true) -}; - -var charAt = stringMultibyte.charAt; - - - -var STRING_ITERATOR = 'String Iterator'; -var setInternalState$2 = internalState.set; -var getInternalState$2 = internalState.getterFor(STRING_ITERATOR); - -// `String.prototype[@@iterator]` method -// https://tc39.github.io/ecma262/#sec-string.prototype-@@iterator -defineIterator(String, 'String', function (iterated) { - setInternalState$2(this, { - type: STRING_ITERATOR, - string: String(iterated), - index: 0 - }); -// `%StringIteratorPrototype%.next` method -// https://tc39.github.io/ecma262/#sec-%stringiteratorprototype%.next -}, function next() { - var state = getInternalState$2(this); - var string = state.string; - var index = state.index; - var point; - if (index >= string.length) return { value: undefined, done: true }; - point = charAt(string, index); - state.index += point.length; - return { value: point, done: false }; -}); - -// `RegExp.prototype.flags` getter implementation -// https://tc39.github.io/ecma262/#sec-get-regexp.prototype.flags -var regexpFlags = function () { - var that = anObject(this); - var result = ''; - if (that.global) result += 'g'; - if (that.ignoreCase) result += 'i'; - if (that.multiline) result += 'm'; - if (that.dotAll) result += 's'; - if (that.unicode) result += 'u'; - if (that.sticky) result += 'y'; - return result; -}; - -var nativeExec = RegExp.prototype.exec; -// This always refers to the native implementation, because the -// String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js, -// which loads this file before patching the method. -var nativeReplace = String.prototype.replace; - -var patchedExec = nativeExec; - -var UPDATES_LAST_INDEX_WRONG = (function () { - var re1 = /a/; - var re2 = /b*/g; - nativeExec.call(re1, 'a'); - nativeExec.call(re2, 'a'); - return re1.lastIndex !== 0 || re2.lastIndex !== 0; -})(); - -// nonparticipating capturing group, copied from es5-shim's String#split patch. -var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined; - -var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED; - -if (PATCH) { - patchedExec = function exec(str) { - var re = this; - var lastIndex, reCopy, match, i; - - if (NPCG_INCLUDED) { - reCopy = new RegExp('^' + re.source + '$(?!\\s)', regexpFlags.call(re)); - } - if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex; - - match = nativeExec.call(re, str); - - if (UPDATES_LAST_INDEX_WRONG && match) { - re.lastIndex = re.global ? match.index + match[0].length : lastIndex; - } - if (NPCG_INCLUDED && match && match.length > 1) { - // Fix browsers whose `exec` methods don't consistently return `undefined` - // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/ - nativeReplace.call(match[0], reCopy, function () { - for (i = 1; i < arguments.length - 2; i++) { - if (arguments[i] === undefined) match[i] = undefined; - } - }); - } - - return match; - }; -} - -var regexpExec = patchedExec; - -var SPECIES$3 = wellKnownSymbol('species'); - -var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () { - // #replace needs built-in support for named groups. - // #match works fine because it just return the exec results, even if it has - // a "grops" property. - var re = /./; - re.exec = function () { - var result = []; - result.groups = { a: '7' }; - return result; - }; - return ''.replace(re, '$') !== '7'; -}); - -// Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec -// Weex JS has frozen built-in prototypes, so use try / catch wrapper -var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () { - var re = /(?:)/; - var originalExec = re.exec; - re.exec = function () { return originalExec.apply(this, arguments); }; - var result = 'ab'.split(re); - return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b'; -}); - -var fixRegexpWellKnownSymbolLogic = function (KEY, length, exec, sham) { - var SYMBOL = wellKnownSymbol(KEY); - - var DELEGATES_TO_SYMBOL = !fails(function () { - // String methods call symbol-named RegEp methods - var O = {}; - O[SYMBOL] = function () { return 7; }; - return ''[KEY](O) != 7; - }); - - var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () { - // Symbol-named RegExp methods call .exec - var execCalled = false; - var re = /a/; - re.exec = function () { execCalled = true; return null; }; - - if (KEY === 'split') { - // RegExp[@@split] doesn't call the regex's exec method, but first creates - // a new one. We need to return the patched regex when creating the new one. - re.constructor = {}; - re.constructor[SPECIES$3] = function () { return re; }; - } - - re[SYMBOL](''); - return !execCalled; - }); - - if ( - !DELEGATES_TO_SYMBOL || - !DELEGATES_TO_EXEC || - (KEY === 'replace' && !REPLACE_SUPPORTS_NAMED_GROUPS) || - (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC) - ) { - var nativeRegExpMethod = /./[SYMBOL]; - var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) { - if (regexp.exec === regexpExec) { - if (DELEGATES_TO_SYMBOL && !forceStringMethod) { - // The native String method already delegates to @@method (this - // polyfilled function), leasing to infinite recursion. - // We avoid it by directly calling the native @@method method. - return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) }; - } - return { done: true, value: nativeMethod.call(str, regexp, arg2) }; - } - return { done: false }; - }); - var stringMethod = methods[0]; - var regexMethod = methods[1]; - - redefine(String.prototype, KEY, stringMethod); - redefine(RegExp.prototype, SYMBOL, length == 2 - // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue) - // 21.2.5.11 RegExp.prototype[@@split](string, limit) - ? function (string, arg) { return regexMethod.call(string, this, arg); } - // 21.2.5.6 RegExp.prototype[@@match](string) - // 21.2.5.9 RegExp.prototype[@@search](string) - : function (string) { return regexMethod.call(string, this); } - ); - if (sham) hide(RegExp.prototype[SYMBOL], 'sham', true); +// `Array.prototype.find` method +// https://tc39.es/ecma262/#sec-array.prototype.find +$$7({ target: 'Array', proto: true, forced: SKIPS_HOLES }, { + find: function find(callbackfn /* , that = undefined */) { + return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); } -}; +}); -var SPECIES$4 = wellKnownSymbol('species'); +// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables +addToUnscopables(FIND); -// `SpeciesConstructor` abstract operation -// https://tc39.github.io/ecma262/#sec-speciesconstructor -var speciesConstructor = function (O, defaultConstructor) { - var C = anObject(O).constructor; - var S; - return C === undefined || (S = anObject(C)[SPECIES$4]) == undefined ? defaultConstructor : aFunction$1(S); +var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport; +var classof$1 = classof$7; + +// `Object.prototype.toString` method implementation +// https://tc39.es/ecma262/#sec-object.prototype.tostring +var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() { + return '[object ' + classof$1(this) + ']'; }; -var charAt$1 = stringMultibyte.charAt; +var TO_STRING_TAG_SUPPORT = toStringTagSupport; +var defineBuiltIn = defineBuiltIn$3; +var toString$1 = objectToString; -// `AdvanceStringIndex` abstract operation -// https://tc39.github.io/ecma262/#sec-advancestringindex -var advanceStringIndex = function (S, index, unicode) { - return index + (unicode ? charAt$1(S, index).length : 1); -}; +// `Object.prototype.toString` method +// https://tc39.es/ecma262/#sec-object.prototype.tostring +if (!TO_STRING_TAG_SUPPORT) { + defineBuiltIn(Object.prototype, 'toString', toString$1, { unsafe: true }); +} -// `RegExpExec` abstract operation -// https://tc39.github.io/ecma262/#sec-regexpexec -var regexpExecAbstract = function (R, S) { - var exec = R.exec; - if (typeof exec === 'function') { - var result = exec.call(R, S); - if (typeof result !== 'object') { - throw TypeError('RegExp exec method returned something other than an Object or null'); - } - return result; - } +var $$6 = _export; +var $map = arrayIteration.map; +var arrayMethodHasSpeciesSupport$2 = arrayMethodHasSpeciesSupport$4; + +var HAS_SPECIES_SUPPORT$2 = arrayMethodHasSpeciesSupport$2('map'); - if (classofRaw(R) !== 'RegExp') { - throw TypeError('RegExp#exec called on incompatible receiver'); +// `Array.prototype.map` method +// https://tc39.es/ecma262/#sec-array.prototype.map +// with adding support of @@species +$$6({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$2 }, { + map: function map(callbackfn /* , thisArg */) { + return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); } +}); + +var DESCRIPTORS = descriptors; +var uncurryThis$3 = functionUncurryThis; +var objectKeys = objectKeys$3; +var toIndexedObject$1 = toIndexedObject$7; +var $propertyIsEnumerable = objectPropertyIsEnumerable.f; - return regexpExec.call(R, S); +var propertyIsEnumerable = uncurryThis$3($propertyIsEnumerable); +var push$1 = uncurryThis$3([].push); + +// `Object.{ entries, values }` methods implementation +var createMethod$1 = function (TO_ENTRIES) { + return function (it) { + var O = toIndexedObject$1(it); + var keys = objectKeys(O); + var length = keys.length; + var i = 0; + var result = []; + var key; + while (length > i) { + key = keys[i++]; + if (!DESCRIPTORS || propertyIsEnumerable(O, key)) { + push$1(result, TO_ENTRIES ? [key, O[key]] : O[key]); + } + } + return result; + }; }; -var arrayPush = [].push; -var min$2 = Math.min; -var MAX_UINT32 = 0xFFFFFFFF; +var objectToArray = { + // `Object.entries` method + // https://tc39.es/ecma262/#sec-object.entries + entries: createMethod$1(true), + // `Object.values` method + // https://tc39.es/ecma262/#sec-object.values + values: createMethod$1(false) +}; -// babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError -var SUPPORTS_Y = !fails(function () { return !RegExp(MAX_UINT32, 'y'); }); +var $$5 = _export; +var $entries = objectToArray.entries; -// @@split logic -fixRegexpWellKnownSymbolLogic('split', 2, function (SPLIT, nativeSplit, maybeCallNative) { - var internalSplit; - if ( - 'abbc'.split(/(b)*/)[1] == 'c' || - 'test'.split(/(?:)/, -1).length != 4 || - 'ab'.split(/(?:ab)*/).length != 2 || - '.'.split(/(.?)(.?)/).length != 4 || - '.'.split(/()()/).length > 1 || - ''.split(/.?/).length - ) { - // based on es5-shim implementation, need to rework it - internalSplit = function (separator, limit) { - var string = String(requireObjectCoercible(this)); - var lim = limit === undefined ? MAX_UINT32 : limit >>> 0; - if (lim === 0) return []; - if (separator === undefined) return [string]; - // If `separator` is not a regex, use native split - if (!isRegexp(separator)) { - return nativeSplit.call(string, separator, lim); - } - var output = []; - var flags = (separator.ignoreCase ? 'i' : '') + - (separator.multiline ? 'm' : '') + - (separator.unicode ? 'u' : '') + - (separator.sticky ? 'y' : ''); - var lastLastIndex = 0; - // Make `global` and avoid `lastIndex` issues by working with a copy - var separatorCopy = new RegExp(separator.source, flags + 'g'); - var match, lastIndex, lastLength; - while (match = regexpExec.call(separatorCopy, string)) { - lastIndex = separatorCopy.lastIndex; - if (lastIndex > lastLastIndex) { - output.push(string.slice(lastLastIndex, match.index)); - if (match.length > 1 && match.index < string.length) arrayPush.apply(output, match.slice(1)); - lastLength = match[0].length; - lastLastIndex = lastIndex; - if (output.length >= lim) break; - } - if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop - } - if (lastLastIndex === string.length) { - if (lastLength || !separatorCopy.test('')) output.push(''); - } else output.push(string.slice(lastLastIndex)); - return output.length > lim ? output.slice(0, lim) : output; - }; - // Chakra, V8 - } else if ('0'.split(undefined, 0).length) { - internalSplit = function (separator, limit) { - return separator === undefined && limit === 0 ? [] : nativeSplit.call(this, separator, limit); - }; - } else internalSplit = nativeSplit; +// `Object.entries` method +// https://tc39.es/ecma262/#sec-object.entries +$$5({ target: 'Object', stat: true }, { + entries: function entries(O) { + return $entries(O); + } +}); - return [ - // `String.prototype.split` method - // https://tc39.github.io/ecma262/#sec-string.prototype.split - function split(separator, limit) { - var O = requireObjectCoercible(this); - var splitter = separator == undefined ? undefined : separator[SPLIT]; - return splitter !== undefined - ? splitter.call(separator, O, limit) - : internalSplit.call(String(O), separator, limit); - }, - // `RegExp.prototype[@@split]` method - // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@split - // - // NOTE: This cannot be properly polyfilled in engines that don't support - // the 'y' flag. - function (regexp, limit) { - var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== nativeSplit); - if (res.done) return res.value; +var $$4 = _export; +var toObject$2 = toObject$7; +var nativeKeys = objectKeys$3; +var fails$1 = fails$m; - var rx = anObject(regexp); - var S = String(this); - var C = speciesConstructor(rx, RegExp); +var FAILS_ON_PRIMITIVES = fails$1(function () { nativeKeys(1); }); - var unicodeMatching = rx.unicode; - var flags = (rx.ignoreCase ? 'i' : '') + - (rx.multiline ? 'm' : '') + - (rx.unicode ? 'u' : '') + - (SUPPORTS_Y ? 'y' : 'g'); +// `Object.keys` method +// https://tc39.es/ecma262/#sec-object.keys +$$4({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, { + keys: function keys(it) { + return nativeKeys(toObject$2(it)); + } +}); - // ^(? + rx + ) is needed, in combination with some S slicing, to - // simulate the 'y' flag. - var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags); - var lim = limit === undefined ? MAX_UINT32 : limit >>> 0; - if (lim === 0) return []; - if (S.length === 0) return regexpExecAbstract(splitter, S) === null ? [S] : []; - var p = 0; - var q = 0; - var A = []; - while (q < S.length) { - splitter.lastIndex = SUPPORTS_Y ? q : 0; - var z = regexpExecAbstract(splitter, SUPPORTS_Y ? S : S.slice(q)); - var e; - if ( - z === null || - (e = min$2(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p - ) { - q = advanceStringIndex(S, q, unicodeMatching); - } else { - A.push(S.slice(p, q)); - if (A.length === lim) return A; - for (var i = 1; i <= z.length - 1; i++) { - A.push(z[i]); - if (A.length === lim) return A; - } - q = p = e; - } - } - A.push(S.slice(p)); - return A; - } - ]; -}, !SUPPORTS_Y); +var $$3 = _export; +var $filter = arrayIteration.filter; +var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$4; + +var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport$1('filter'); + +// `Array.prototype.filter` method +// https://tc39.es/ecma262/#sec-array.prototype.filter +// with adding support of @@species +$$3({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, { + filter: function filter(callbackfn /* , thisArg */) { + return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); + } +}); // iterable DOM collections // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods @@ -2321,60 +2803,106 @@ var domIterables = { TouchList: 0 }; -var $forEach$1 = arrayIteration.forEach; +// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList` +var documentCreateElement = documentCreateElement$2; + +var classList = documentCreateElement('span').classList; +var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype; + +var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1; + +var $forEach = arrayIteration.forEach; +var arrayMethodIsStrict$1 = arrayMethodIsStrict$3; +var STRICT_METHOD = arrayMethodIsStrict$1('forEach'); // `Array.prototype.forEach` method implementation -// https://tc39.github.io/ecma262/#sec-array.prototype.foreach -var arrayForEach = sloppyArrayMethod('forEach') ? function forEach(callbackfn /* , thisArg */) { - return $forEach$1(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); +// https://tc39.es/ecma262/#sec-array.prototype.foreach +var arrayForEach = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) { + return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); +// eslint-disable-next-line es/no-array-prototype-foreach -- safe } : [].forEach; -for (var COLLECTION_NAME in domIterables) { - var Collection = global_1[COLLECTION_NAME]; - var CollectionPrototype = Collection && Collection.prototype; +var global$1 = global$f; +var DOMIterables = domIterables; +var DOMTokenListPrototype = domTokenListPrototype; +var forEach = arrayForEach; +var createNonEnumerableProperty = createNonEnumerableProperty$4; + +var handlePrototype = function (CollectionPrototype) { // some Chrome versions have non-configurable methods on DOMTokenList - if (CollectionPrototype && CollectionPrototype.forEach !== arrayForEach) try { - hide(CollectionPrototype, 'forEach', arrayForEach); + if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try { + createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach); } catch (error) { - CollectionPrototype.forEach = arrayForEach; + CollectionPrototype.forEach = forEach; + } +}; + +for (var COLLECTION_NAME in DOMIterables) { + if (DOMIterables[COLLECTION_NAME]) { + handlePrototype(global$1[COLLECTION_NAME] && global$1[COLLECTION_NAME].prototype); } } -var ITERATOR$2 = wellKnownSymbol('iterator'); -var TO_STRING_TAG$3 = wellKnownSymbol('toStringTag'); -var ArrayValues = es_array_iterator.values; - -for (var COLLECTION_NAME$1 in domIterables) { - var Collection$1 = global_1[COLLECTION_NAME$1]; - var CollectionPrototype$1 = Collection$1 && Collection$1.prototype; - if (CollectionPrototype$1) { - // some Chrome versions have non-configurable methods on DOMTokenList - if (CollectionPrototype$1[ITERATOR$2] !== ArrayValues) try { - hide(CollectionPrototype$1, ITERATOR$2, ArrayValues); - } catch (error) { - CollectionPrototype$1[ITERATOR$2] = ArrayValues; - } - if (!CollectionPrototype$1[TO_STRING_TAG$3]) hide(CollectionPrototype$1, TO_STRING_TAG$3, COLLECTION_NAME$1); - if (domIterables[COLLECTION_NAME$1]) for (var METHOD_NAME in es_array_iterator) { - // some Chrome versions have non-configurable methods on DOMTokenList - if (CollectionPrototype$1[METHOD_NAME] !== es_array_iterator[METHOD_NAME]) try { - hide(CollectionPrototype$1, METHOD_NAME, es_array_iterator[METHOD_NAME]); - } catch (error) { - CollectionPrototype$1[METHOD_NAME] = es_array_iterator[METHOD_NAME]; +handlePrototype(DOMTokenListPrototype); + +var uncurryThis$2 = functionUncurryThis; + +var arraySlice = uncurryThis$2([].slice); + +var $$2 = _export; +var isArray = isArray$3; +var isConstructor = isConstructor$3; +var isObject = isObject$9; +var toAbsoluteIndex = toAbsoluteIndex$3; +var lengthOfArrayLike$1 = lengthOfArrayLike$6; +var toIndexedObject = toIndexedObject$7; +var createProperty = createProperty$3; +var wellKnownSymbol$1 = wellKnownSymbol$d; +var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$4; +var nativeSlice = arraySlice; + +var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice'); + +var SPECIES = wellKnownSymbol$1('species'); +var $Array = Array; +var max$1 = Math.max; + +// `Array.prototype.slice` method +// https://tc39.es/ecma262/#sec-array.prototype.slice +// fallback for not array-like ES3 strings and DOM objects +$$2({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, { + slice: function slice(start, end) { + var O = toIndexedObject(this); + var length = lengthOfArrayLike$1(O); + var k = toAbsoluteIndex(start, length); + var fin = toAbsoluteIndex(end === undefined ? length : end, length); + // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible + var Constructor, result, n; + if (isArray(O)) { + Constructor = O.constructor; + // cross-realm fallback + if (isConstructor(Constructor) && (Constructor === $Array || isArray(Constructor.prototype))) { + Constructor = undefined; + } else if (isObject(Constructor)) { + Constructor = Constructor[SPECIES]; + if (Constructor === null) Constructor = undefined; + } + if (Constructor === $Array || Constructor === undefined) { + return nativeSlice(O, k, fin); } } + result = new (Constructor === undefined ? $Array : Constructor)(max$1(fin - k, 0)); + for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]); + result.length = n; + return result; } -} +}); -var VirtualScroll = -/*#__PURE__*/ -function () { +var VirtualScroll = /*#__PURE__*/function () { function VirtualScroll(options) { var _this = this; - _classCallCheck(this, VirtualScroll); - this.rows = options.rows; this.scrollEl = options.scrollEl; this.contentEl = options.contentEl; @@ -2384,24 +2912,18 @@ function () { this.initDOM(this.rows); this.scrollEl.scrollTop = this.scrollTop; this.lastCluster = 0; - var onScroll = function onScroll() { if (_this.lastCluster !== (_this.lastCluster = _this.getNum())) { _this.initDOM(_this.rows); - _this.callback(); } }; - this.scrollEl.addEventListener('scroll', onScroll, false); - this.destroy = function () { _this.contentEl.innerHtml = ''; - _this.scrollEl.removeEventListener('scroll', onScroll, false); }; } - _createClass(VirtualScroll, [{ key: "initDOM", value: function initDOM(rows) { @@ -2410,25 +2932,20 @@ function () { this.cache.data = this.contentEl.innerHTML = rows[0] + rows[0] + rows[0]; this.getRowsHeight(rows); } - var data = this.initData(rows, this.getNum()); var thisRows = data.rows.join(''); var dataChanged = this.checkChanges('data', thisRows); var topOffsetChanged = this.checkChanges('top', data.topOffset); var bottomOffsetChanged = this.checkChanges('bottom', data.bottomOffset); var html = []; - if (dataChanged && topOffsetChanged) { if (data.topOffset) { html.push(this.getExtra('top', data.topOffset)); } - html.push(thisRows); - if (data.bottomOffset) { html.push(this.getExtra('bottom', data.bottomOffset)); } - this.contentEl.innerHTML = html.join(''); } else if (bottomOffsetChanged) { this.contentEl.lastChild.style.height = "".concat(data.bottomOffset, "px"); @@ -2442,7 +2959,6 @@ function () { var node = nodes[Math.floor(nodes.length / 2)]; this.itemHeight = node.offsetHeight; } - this.blockHeight = this.itemHeight * Constants.BLOCK_ROWS; this.clusterRows = Constants.BLOCK_ROWS * Constants.CLUSTER_BLOCKS; this.clusterHeight = this.blockHeight * Constants.CLUSTER_BLOCKS; @@ -2464,22 +2980,18 @@ function () { rows: rows }; } - var start = Math.max((this.clusterRows - Constants.BLOCK_ROWS) * num, 0); var end = start + this.clusterRows; var topOffset = Math.max(start * this.itemHeight, 0); var bottomOffset = Math.max((rows.length - end) * this.itemHeight, 0); var thisRows = []; var rowsAbove = start; - if (topOffset < 1) { rowsAbove++; } - for (var i = start; i < end; i++) { rows[i] && thisRows.push(rows[i]); } - this.dataStart = start; this.dataEnd = end; return { @@ -2501,51 +3013,148 @@ function () { value: function getExtra(className, height) { var tag = document.createElement('li'); tag.className = "virtual-scroll-".concat(className); - if (height) { tag.style.height = "".concat(height, "px"); } - return tag.outerHTML; } }]); - return VirtualScroll; }(); -var max$2 = Math.max; -var min$3 = Math.min; -var floor$1 = Math.floor; -var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d\d?|<[^>]*>)/g; -var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d\d?)/g; +var uncurryThis$1 = functionUncurryThis; +var toObject$1 = toObject$7; + +var floor = Math.floor; +var charAt = uncurryThis$1(''.charAt); +var replace = uncurryThis$1(''.replace); +var stringSlice$1 = uncurryThis$1(''.slice); +// eslint-disable-next-line redos/no-vulnerable -- safe +var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g; +var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g; + +// `GetSubstitution` abstract operation +// https://tc39.es/ecma262/#sec-getsubstitution +var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) { + var tailPos = position + matched.length; + var m = captures.length; + var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED; + if (namedCaptures !== undefined) { + namedCaptures = toObject$1(namedCaptures); + symbols = SUBSTITUTION_SYMBOLS; + } + return replace(replacement, symbols, function (match, ch) { + var capture; + switch (charAt(ch, 0)) { + case '$': return '$'; + case '&': return matched; + case '`': return stringSlice$1(str, 0, position); + case "'": return stringSlice$1(str, tailPos); + case '<': + capture = namedCaptures[stringSlice$1(ch, 1, -1)]; + break; + default: // \d\d? + var n = +ch; + if (n === 0) return match; + if (n > m) { + var f = floor(n / 10); + if (f === 0) return match; + if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1); + return match; + } + capture = captures[n - 1]; + } + return capture === undefined ? '' : capture; + }); +}; + +var apply = functionApply; +var call = functionCall; +var uncurryThis = functionUncurryThis; +var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic; +var fails = fails$m; +var anObject = anObject$a; +var isCallable = isCallable$e; +var isNullOrUndefined = isNullOrUndefined$6; +var toIntegerOrInfinity = toIntegerOrInfinity$4; +var toLength = toLength$3; +var toString = toString$8; +var requireObjectCoercible = requireObjectCoercible$8; +var advanceStringIndex = advanceStringIndex$2; +var getMethod = getMethod$4; +var getSubstitution = getSubstitution$1; +var regExpExec = regexpExecAbstract; +var wellKnownSymbol = wellKnownSymbol$d; + +var REPLACE = wellKnownSymbol('replace'); +var max = Math.max; +var min = Math.min; +var concat = uncurryThis([].concat); +var push = uncurryThis([].push); +var stringIndexOf = uncurryThis(''.indexOf); +var stringSlice = uncurryThis(''.slice); var maybeToString = function (it) { return it === undefined ? it : String(it); }; +// IE <= 11 replaces $0 with the whole match, as if it was $& +// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0 +var REPLACE_KEEPS_$0 = (function () { + // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing + return 'a'.replace(/./, '$0') === '$0'; +})(); + +// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string +var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () { + if (/./[REPLACE]) { + return /./[REPLACE]('a', '$0') === ''; + } + return false; +})(); + +var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () { + var re = /./; + re.exec = function () { + var result = []; + result.groups = { a: '7' }; + return result; + }; + // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive + return ''.replace(re, '$') !== '7'; +}); + // @@replace logic -fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative) { +fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) { + var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0'; + return [ // `String.prototype.replace` method - // https://tc39.github.io/ecma262/#sec-string.prototype.replace + // https://tc39.es/ecma262/#sec-string.prototype.replace function replace(searchValue, replaceValue) { var O = requireObjectCoercible(this); - var replacer = searchValue == undefined ? undefined : searchValue[REPLACE]; - return replacer !== undefined - ? replacer.call(searchValue, O, replaceValue) - : nativeReplace.call(String(O), searchValue, replaceValue); + var replacer = isNullOrUndefined(searchValue) ? undefined : getMethod(searchValue, REPLACE); + return replacer + ? call(replacer, searchValue, O, replaceValue) + : call(nativeReplace, toString(O), searchValue, replaceValue); }, // `RegExp.prototype[@@replace]` method - // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace - function (regexp, replaceValue) { - var res = maybeCallNative(nativeReplace, regexp, this, replaceValue); - if (res.done) return res.value; - - var rx = anObject(regexp); - var S = String(this); + // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace + function (string, replaceValue) { + var rx = anObject(this); + var S = toString(string); + + if ( + typeof replaceValue == 'string' && + stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 && + stringIndexOf(replaceValue, '$<') === -1 + ) { + var res = maybeCallNative(nativeReplace, rx, S, replaceValue); + if (res.done) return res.value; + } - var functionalReplace = typeof replaceValue === 'function'; - if (!functionalReplace) replaceValue = String(replaceValue); + var functionalReplace = isCallable(replaceValue); + if (!functionalReplace) replaceValue = toString(replaceValue); var global = rx.global; if (global) { @@ -2554,13 +3163,13 @@ fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, ma } var results = []; while (true) { - var result = regexpExecAbstract(rx, S); + var result = regExpExec(rx, S); if (result === null) break; - results.push(result); + push(results, result); if (!global) break; - var matchStr = String(result[0]); + var matchStr = toString(result[0]); if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode); } @@ -2569,351 +3178,377 @@ fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, ma for (var i = 0; i < results.length; i++) { result = results[i]; - var matched = String(result[0]); - var position = max$2(min$3(toInteger(result.index), S.length), 0); + var matched = toString(result[0]); + var position = max(min(toIntegerOrInfinity(result.index), S.length), 0); var captures = []; // NOTE: This is equivalent to // captures = result.slice(1).map(maybeToString) // but for some reason `nativeSlice.call(result, 1, result.length)` (called in // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it. - for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j])); + for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j])); var namedCaptures = result.groups; if (functionalReplace) { - var replacerArgs = [matched].concat(captures, position, S); - if (namedCaptures !== undefined) replacerArgs.push(namedCaptures); - var replacement = String(replaceValue.apply(undefined, replacerArgs)); + var replacerArgs = concat([matched], captures, position, S); + if (namedCaptures !== undefined) push(replacerArgs, namedCaptures); + var replacement = toString(apply(replaceValue, undefined, replacerArgs)); } else { replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue); } if (position >= nextSourcePosition) { - accumulatedResult += S.slice(nextSourcePosition, position) + replacement; + accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement; nextSourcePosition = position + matched.length; } } - return accumulatedResult + S.slice(nextSourcePosition); + return accumulatedResult + stringSlice(S, nextSourcePosition); } ]; - - // https://tc39.github.io/ecma262/#sec-getsubstitution - function getSubstitution(matched, str, position, captures, namedCaptures, replacement) { - var tailPos = position + matched.length; - var m = captures.length; - var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED; - if (namedCaptures !== undefined) { - namedCaptures = toObject(namedCaptures); - symbols = SUBSTITUTION_SYMBOLS; - } - return nativeReplace.call(replacement, symbols, function (match, ch) { - var capture; - switch (ch.charAt(0)) { - case '$': return '$'; - case '&': return matched; - case '`': return str.slice(0, position); - case "'": return str.slice(tailPos); - case '<': - capture = namedCaptures[ch.slice(1, -1)]; - break; - default: // \d\d? - var n = +ch; - if (n === 0) return match; - if (n > m) { - var f = floor$1(n / 10); - if (f === 0) return match; - if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1); - return match; - } - capture = captures[n - 1]; +}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE); + +var aCallable = aCallable$3; +var toObject = toObject$7; +var IndexedObject = indexedObject; +var lengthOfArrayLike = lengthOfArrayLike$6; + +var $TypeError = TypeError; + +// `Array.prototype.{ reduce, reduceRight }` methods implementation +var createMethod = function (IS_RIGHT) { + return function (that, callbackfn, argumentsLength, memo) { + aCallable(callbackfn); + var O = toObject(that); + var self = IndexedObject(O); + var length = lengthOfArrayLike(O); + var index = IS_RIGHT ? length - 1 : 0; + var i = IS_RIGHT ? -1 : 1; + if (argumentsLength < 2) while (true) { + if (index in self) { + memo = self[index]; + index += i; + break; } - return capture === undefined ? '' : capture; - }); + index += i; + if (IS_RIGHT ? index < 0 : length <= index) { + throw $TypeError('Reduce of empty array with no initial value'); + } + } + for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) { + memo = callbackfn(memo, self[index], index, O); + } + return memo; + }; +}; + +var arrayReduce = { + // `Array.prototype.reduce` method + // https://tc39.es/ecma262/#sec-array.prototype.reduce + left: createMethod(false), + // `Array.prototype.reduceRight` method + // https://tc39.es/ecma262/#sec-array.prototype.reduceright + right: createMethod(true) +}; + +var classof = classofRaw$2; + +var engineIsNode = typeof process != 'undefined' && classof(process) == 'process'; + +var $$1 = _export; +var $reduce = arrayReduce.left; +var arrayMethodIsStrict = arrayMethodIsStrict$3; +var CHROME_VERSION = engineV8Version; +var IS_NODE = engineIsNode; + +// Chrome 80-82 has a critical bug +// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982 +var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83; +var FORCED = CHROME_BUG || !arrayMethodIsStrict('reduce'); + +// `Array.prototype.reduce` method +// https://tc39.es/ecma262/#sec-array.prototype.reduce +$$1({ target: 'Array', proto: true, forced: FORCED }, { + reduce: function reduce(callbackfn /* , initialValue */) { + var length = arguments.length; + return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined); } }); var compareObjects = function compareObjects(objectA, objectB, compareLength) { var aKeys = Object.keys(objectA); var bKeys = Object.keys(objectB); - if (compareLength && aKeys.length !== bKeys.length) { return false; } - for (var _i = 0, _aKeys = aKeys; _i < _aKeys.length; _i++) { var key = _aKeys[_i]; - if (bKeys.includes(key) && objectA[key] !== objectB[key]) { return false; } } - return true; }; - var removeDiacritics = function removeDiacritics(str) { if (str.normalize) { return str.normalize('NFD').replace(/[\u0300-\u036F]/g, ''); } - var defaultDiacriticsRemovalMap = [{ - 'base': 'A', - 'letters': /[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g + base: 'A', + letters: /[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g }, { - 'base': 'AA', - 'letters': /[\uA732]/g + base: 'AA', + letters: /[\uA732]/g }, { - 'base': 'AE', - 'letters': /[\u00C6\u01FC\u01E2]/g + base: 'AE', + letters: /[\u00C6\u01FC\u01E2]/g }, { - 'base': 'AO', - 'letters': /[\uA734]/g + base: 'AO', + letters: /[\uA734]/g }, { - 'base': 'AU', - 'letters': /[\uA736]/g + base: 'AU', + letters: /[\uA736]/g }, { - 'base': 'AV', - 'letters': /[\uA738\uA73A]/g + base: 'AV', + letters: /[\uA738\uA73A]/g }, { - 'base': 'AY', - 'letters': /[\uA73C]/g + base: 'AY', + letters: /[\uA73C]/g }, { - 'base': 'B', - 'letters': /[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g + base: 'B', + letters: /[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g }, { - 'base': 'C', - 'letters': /[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g + base: 'C', + letters: /[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g }, { - 'base': 'D', - 'letters': /[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g + base: 'D', + letters: /[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g }, { - 'base': 'DZ', - 'letters': /[\u01F1\u01C4]/g + base: 'DZ', + letters: /[\u01F1\u01C4]/g }, { - 'base': 'Dz', - 'letters': /[\u01F2\u01C5]/g + base: 'Dz', + letters: /[\u01F2\u01C5]/g }, { - 'base': 'E', - 'letters': /[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g + base: 'E', + letters: /[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g }, { - 'base': 'F', - 'letters': /[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g + base: 'F', + letters: /[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g }, { - 'base': 'G', - 'letters': /[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g + base: 'G', + letters: /[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g }, { - 'base': 'H', - 'letters': /[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g + base: 'H', + letters: /[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g }, { - 'base': 'I', - 'letters': /[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g + base: 'I', + letters: /[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g }, { - 'base': 'J', - 'letters': /[\u004A\u24BF\uFF2A\u0134\u0248]/g + base: 'J', + letters: /[\u004A\u24BF\uFF2A\u0134\u0248]/g }, { - 'base': 'K', - 'letters': /[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g + base: 'K', + letters: /[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g }, { - 'base': 'L', - 'letters': /[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g + base: 'L', + letters: /[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g }, { - 'base': 'LJ', - 'letters': /[\u01C7]/g + base: 'LJ', + letters: /[\u01C7]/g }, { - 'base': 'Lj', - 'letters': /[\u01C8]/g + base: 'Lj', + letters: /[\u01C8]/g }, { - 'base': 'M', - 'letters': /[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g + base: 'M', + letters: /[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g }, { - 'base': 'N', - 'letters': /[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g + base: 'N', + letters: /[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g }, { - 'base': 'NJ', - 'letters': /[\u01CA]/g + base: 'NJ', + letters: /[\u01CA]/g }, { - 'base': 'Nj', - 'letters': /[\u01CB]/g + base: 'Nj', + letters: /[\u01CB]/g }, { - 'base': 'O', - 'letters': /[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g + base: 'O', + letters: /[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g }, { - 'base': 'OI', - 'letters': /[\u01A2]/g + base: 'OI', + letters: /[\u01A2]/g }, { - 'base': 'OO', - 'letters': /[\uA74E]/g + base: 'OO', + letters: /[\uA74E]/g }, { - 'base': 'OU', - 'letters': /[\u0222]/g + base: 'OU', + letters: /[\u0222]/g }, { - 'base': 'P', - 'letters': /[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g + base: 'P', + letters: /[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g }, { - 'base': 'Q', - 'letters': /[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g + base: 'Q', + letters: /[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g }, { - 'base': 'R', - 'letters': /[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g + base: 'R', + letters: /[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g }, { - 'base': 'S', - 'letters': /[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g + base: 'S', + letters: /[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g }, { - 'base': 'T', - 'letters': /[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g + base: 'T', + letters: /[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g }, { - 'base': 'TZ', - 'letters': /[\uA728]/g + base: 'TZ', + letters: /[\uA728]/g }, { - 'base': 'U', - 'letters': /[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g + base: 'U', + letters: /[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g }, { - 'base': 'V', - 'letters': /[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g + base: 'V', + letters: /[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g }, { - 'base': 'VY', - 'letters': /[\uA760]/g + base: 'VY', + letters: /[\uA760]/g }, { - 'base': 'W', - 'letters': /[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g + base: 'W', + letters: /[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g }, { - 'base': 'X', - 'letters': /[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g + base: 'X', + letters: /[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g }, { - 'base': 'Y', - 'letters': /[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g + base: 'Y', + letters: /[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g }, { - 'base': 'Z', - 'letters': /[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g + base: 'Z', + letters: /[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g }, { - 'base': 'a', - 'letters': /[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g + base: 'a', + letters: /[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g }, { - 'base': 'aa', - 'letters': /[\uA733]/g + base: 'aa', + letters: /[\uA733]/g }, { - 'base': 'ae', - 'letters': /[\u00E6\u01FD\u01E3]/g + base: 'ae', + letters: /[\u00E6\u01FD\u01E3]/g }, { - 'base': 'ao', - 'letters': /[\uA735]/g + base: 'ao', + letters: /[\uA735]/g }, { - 'base': 'au', - 'letters': /[\uA737]/g + base: 'au', + letters: /[\uA737]/g }, { - 'base': 'av', - 'letters': /[\uA739\uA73B]/g + base: 'av', + letters: /[\uA739\uA73B]/g }, { - 'base': 'ay', - 'letters': /[\uA73D]/g + base: 'ay', + letters: /[\uA73D]/g }, { - 'base': 'b', - 'letters': /[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g + base: 'b', + letters: /[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g }, { - 'base': 'c', - 'letters': /[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g + base: 'c', + letters: /[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g }, { - 'base': 'd', - 'letters': /[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g + base: 'd', + letters: /[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g }, { - 'base': 'dz', - 'letters': /[\u01F3\u01C6]/g + base: 'dz', + letters: /[\u01F3\u01C6]/g }, { - 'base': 'e', - 'letters': /[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g + base: 'e', + letters: /[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g }, { - 'base': 'f', - 'letters': /[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g + base: 'f', + letters: /[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g }, { - 'base': 'g', - 'letters': /[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g + base: 'g', + letters: /[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g }, { - 'base': 'h', - 'letters': /[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g + base: 'h', + letters: /[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g }, { - 'base': 'hv', - 'letters': /[\u0195]/g + base: 'hv', + letters: /[\u0195]/g }, { - 'base': 'i', - 'letters': /[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g + base: 'i', + letters: /[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g }, { - 'base': 'j', - 'letters': /[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g + base: 'j', + letters: /[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g }, { - 'base': 'k', - 'letters': /[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g + base: 'k', + letters: /[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g }, { - 'base': 'l', - 'letters': /[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g + base: 'l', + letters: /[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g }, { - 'base': 'lj', - 'letters': /[\u01C9]/g + base: 'lj', + letters: /[\u01C9]/g }, { - 'base': 'm', - 'letters': /[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g + base: 'm', + letters: /[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g }, { - 'base': 'n', - 'letters': /[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g + base: 'n', + letters: /[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g }, { - 'base': 'nj', - 'letters': /[\u01CC]/g + base: 'nj', + letters: /[\u01CC]/g }, { - 'base': 'o', - 'letters': /[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g + base: 'o', + letters: /[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g }, { - 'base': 'oi', - 'letters': /[\u01A3]/g + base: 'oi', + letters: /[\u01A3]/g }, { - 'base': 'ou', - 'letters': /[\u0223]/g + base: 'ou', + letters: /[\u0223]/g }, { - 'base': 'oo', - 'letters': /[\uA74F]/g + base: 'oo', + letters: /[\uA74F]/g }, { - 'base': 'p', - 'letters': /[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g + base: 'p', + letters: /[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g }, { - 'base': 'q', - 'letters': /[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g + base: 'q', + letters: /[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g }, { - 'base': 'r', - 'letters': /[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g + base: 'r', + letters: /[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g }, { - 'base': 's', - 'letters': /[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g + base: 's', + letters: /[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g }, { - 'base': 't', - 'letters': /[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g + base: 't', + letters: /[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g }, { - 'base': 'tz', - 'letters': /[\uA729]/g + base: 'tz', + letters: /[\uA729]/g }, { - 'base': 'u', - 'letters': /[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g + base: 'u', + letters: /[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g }, { - 'base': 'v', - 'letters': /[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g + base: 'v', + letters: /[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g }, { - 'base': 'vy', - 'letters': /[\uA761]/g + base: 'vy', + letters: /[\uA761]/g }, { - 'base': 'w', - 'letters': /[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g + base: 'w', + letters: /[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g }, { - 'base': 'x', - 'letters': /[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g + base: 'x', + letters: /[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g }, { - 'base': 'y', - 'letters': /[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g + base: 'y', + letters: /[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g }, { - 'base': 'z', - 'letters': /[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g + base: 'z', + letters: /[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g }]; return defaultDiacriticsRemovalMap.reduce(function (string, _ref) { var letters = _ref.letters, - base = _ref.base; + base = _ref.base; return string.replace(letters, base); }, str); }; - var setDataKeys = function setDataKeys(data) { var total = 0; data.forEach(function (row, i) { @@ -2921,100 +3556,72 @@ var setDataKeys = function setDataKeys(data) { row._key = "group_".concat(i); row.visible = typeof row.visible === 'undefined' ? true : row.visible; row.children.forEach(function (child, j) { - child._key = "option_".concat(i, "_").concat(j); child.visible = typeof child.visible === 'undefined' ? true : child.visible; + if (!child.divider) { + child._key = "option_".concat(i, "_").concat(j); + total += 1; + } }); - total += row.children.length; } else { - row._key = "option_".concat(i); row.visible = typeof row.visible === 'undefined' ? true : row.visible; - total += 1; + if (!row.divider) { + row._key = "option_".concat(i); + total += 1; + } } }); return total; }; - var findByParam = function findByParam(data, param, value) { - var _iteratorNormalCompletion = true; - var _didIteratorError = false; - var _iteratorError = undefined; - + var _iterator = _createForOfIteratorHelper(data), + _step; try { - for (var _iterator = data[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { + for (_iterator.s(); !(_step = _iterator.n()).done;) { var row = _step.value; - - if (row[param] === value || row[param] === +row[param] + '' && +row[param] === value) { + if (row[param] === value || row[param] === "".concat(+row[param]) && +row[param] === value) { return row; } - if (row.type === 'optgroup') { - var _iteratorNormalCompletion2 = true; - var _didIteratorError2 = false; - var _iteratorError2 = undefined; - + var _iterator2 = _createForOfIteratorHelper(row.children), + _step2; try { - for (var _iterator2 = row.children[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { + for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { var child = _step2.value; - - if (child[param] === value || child[param] === +child[param] + '' && +child[param] === value) { + if (child[param] === value || child[param] === "".concat(+child[param]) && +child[param] === value) { return child; } } } catch (err) { - _didIteratorError2 = true; - _iteratorError2 = err; + _iterator2.e(err); } finally { - try { - if (!_iteratorNormalCompletion2 && _iterator2.return != null) { - _iterator2.return(); - } - } finally { - if (_didIteratorError2) { - throw _iteratorError2; - } - } + _iterator2.f(); } } } } catch (err) { - _didIteratorError = true; - _iteratorError = err; + _iterator.e(err); } finally { - try { - if (!_iteratorNormalCompletion && _iterator.return != null) { - _iterator.return(); - } - } finally { - if (_didIteratorError) { - throw _iteratorError; - } - } + _iterator.f(); } }; - var removeUndefined = function removeUndefined(obj) { Object.keys(obj).forEach(function (key) { return obj[key] === undefined ? delete obj[key] : ''; }); return obj; }; - var getDocumentClickEvent = function getDocumentClickEvent() { var id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; id = id || "".concat(+new Date()).concat(~~(Math.random() * 1000000)); return "click.multiple-select-".concat(id); }; -var MultipleSelect = -/*#__PURE__*/ -function () { +var MultipleSelect = /*#__PURE__*/function () { function MultipleSelect($el, options) { _classCallCheck(this, MultipleSelect); - this.$el = $el; this.options = $.extend({}, Constants.DEFAULTS, options); } - _createClass(MultipleSelect, [{ key: "init", value: function init() { @@ -3034,11 +3641,9 @@ function () { var locales = $.fn.multipleSelect.locales; var parts = this.options.locale.split(/-|_/); parts[0] = parts[0].toLowerCase(); - if (parts[1]) { parts[1] = parts[1].toUpperCase(); } - if (locales[this.options.locale]) { $.extend(this.options, locales[this.options.locale]); } else if (locales[parts.join('-')]) { @@ -3052,67 +3657,69 @@ function () { key: "initContainer", value: function initContainer() { var _this = this; - var el = this.$el[0]; - var name = el.getAttribute('name') || this.options.name || ''; // hide select element + var name = el.getAttribute('name') || this.options.name || ''; + if (this.options.classes) { + this.$el.addClass(this.options.classes); + } + if (this.options.classPrefix) { + this.$el.addClass(this.options.classPrefix); + if (this.options.size) { + this.$el.addClass("".concat(this.options.classPrefix, "-").concat(this.options.size)); + } + } - this.$el.hide(); // label element + // hide select element + this.$el.hide(); + // label element this.$label = this.$el.closest('label'); - if (!this.$label.length && this.$el.attr('id')) { this.$label = $("label[for=\"".concat(this.$el.attr('id'), "\"]")); } - if (this.$label.find('>input').length) { this.$label = null; - } // single or multiple - + } + // single or multiple if (typeof this.options.single === 'undefined') { this.options.single = el.getAttribute('multiple') === null; - } // restore class and title from select element - + } - this.$parent = $("\n
\n ")); // add placeholder to choice button + // restore class and title from select element + this.$parent = $("\n
\n ")); + // add placeholder to choice button this.options.placeholder = this.options.placeholder || el.getAttribute('placeholder') || ''; this.tabIndex = el.getAttribute('tabindex'); var tabIndex = ''; - if (this.tabIndex !== null) { this.$el.attr('tabindex', -1); tabIndex = this.tabIndex && "tabindex=\"".concat(this.tabIndex, "\""); } + this.$choice = $("\n \n ")); - this.$choice = $("\n \n ")); // default position is bottom - + // default position is bottom this.$drop = $("
")); this.$close = this.$choice.find('.icon-close'); - if (this.options.dropWidth) { this.$drop.css('width', this.options.dropWidth); } - this.$el.after(this.$parent); this.$parent.append(this.$choice); this.$parent.append(this.$drop); - if (el.disabled) { this.$choice.addClass('disabled'); } - this.selectAllName = "data-name=\"selectAll".concat(name, "\""); this.selectGroupName = "data-name=\"selectGroup".concat(name, "\""); this.selectItemName = "data-name=\"selectItem".concat(name, "\""); - if (!this.options.keepOpen) { var clickEvent = getDocumentClickEvent(this.$el.attr('id')); $(document).off(clickEvent).on(clickEvent, function (e) { if ($(e.target)[0] === _this.$choice[0] || $(e.target).parents('.ms-choice')[0] === _this.$choice[0]) { return; } - if (($(e.target)[0] === _this.$drop[0] || $(e.target).parents('.ms-drop')[0] !== _this.$drop[0] && e.target !== el) && _this.options.isOpen) { _this.close(); } @@ -3123,9 +3730,7 @@ function () { key: "initData", value: function initData() { var _this2 = this; - var data = []; - if (this.options.data) { if (Array.isArray(this.options.data)) { this.data = this.options.data.map(function (it) { @@ -3135,27 +3740,23 @@ function () { value: it }; } - return it; }); } else if (_typeof(this.options.data) === 'object') { for (var _i = 0, _Object$entries = Object.entries(this.options.data); _i < _Object$entries.length; _i++) { var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2), - value = _Object$entries$_i[0], - text = _Object$entries$_i[1]; - + value = _Object$entries$_i[0], + text = _Object$entries$_i[1]; data.push({ value: value, text: text }); } - this.data = data; } } else { $.each(this.$el.children(), function (i, elm) { var row = _this2.initRow(i, elm); - if (row) { data.push(_this2.initRow(i, elm)); } @@ -3164,17 +3765,14 @@ function () { this.data = data; this.fromHtml = true; } - this.dataTotal = setDataKeys(this.data); } }, { key: "initRow", value: function initRow(i, elm, groupDisabled) { var _this3 = this; - var row = {}; var $elm = $(elm); - if ($elm.is('option')) { row.type = 'option'; row.text = this.options.textTemplate($elm); @@ -3184,18 +3782,18 @@ function () { row.disabled = groupDisabled || elm.disabled; row.classes = elm.getAttribute('class') || ''; row.title = elm.getAttribute('title') || ''; - if ($elm.data('value')) { row._value = $elm.data('value'); // value for object } if (Object.keys($elm.data()).length) { row._data = $elm.data(); + if (row._data.divider) { + row.divider = row._data.divider; + } } - return row; } - if ($elm.is('optgroup')) { row.type = 'optgroup'; row.label = this.options.labelTemplate($elm); @@ -3203,64 +3801,49 @@ function () { row.selected = !!elm.selected; row.disabled = elm.disabled; row.children = []; - if (Object.keys($elm.data()).length) { row._data = $elm.data(); } - $.each($elm.children(), function (j, elem) { row.children.push(_this3.initRow(j, elem, row.disabled)); }); return row; } - return null; } }, { key: "initSelected", value: function initSelected(ignoreTrigger) { var selectedTotal = 0; - var _iteratorNormalCompletion = true; - var _didIteratorError = false; - var _iteratorError = undefined; - + var _iterator = _createForOfIteratorHelper(this.data), + _step; try { - for (var _iterator = this.data[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { + for (_iterator.s(); !(_step = _iterator.n()).done;) { var row = _step.value; - if (row.type === 'optgroup') { var selectedCount = row.children.filter(function (child) { return child.selected && !child.disabled && child.visible; }).length; - row.selected = selectedCount && selectedCount === row.children.filter(function (child) { - return !child.disabled && child.visible; - }).length; + if (row.children.length) { + row.selected = !this.options.single && selectedCount && selectedCount === row.children.filter(function (child) { + return !child.disabled && child.visible && !child.divider; + }).length; + } selectedTotal += selectedCount; } else { selectedTotal += row.selected && !row.disabled && row.visible ? 1 : 0; } } } catch (err) { - _didIteratorError = true; - _iteratorError = err; + _iterator.e(err); } finally { - try { - if (!_iteratorNormalCompletion && _iterator.return != null) { - _iterator.return(); - } - } finally { - if (_didIteratorError) { - throw _iteratorError; - } - } + _iterator.f(); } - this.allSelected = this.data.filter(function (row) { return row.selected && !row.disabled && row.visible; }).length === this.data.filter(function (row) { - return !row.disabled && row.visible; + return !row.disabled && row.visible && !row.divider; }).length; - if (!ignoreTrigger) { if (this.allSelected) { this.options.onCheckAll(); @@ -3273,20 +3856,15 @@ function () { key: "initFilter", value: function initFilter() { this.filterText = ''; - if (this.options.filter || !this.options.filterByDataLength) { return; } - var length = 0; - var _iteratorNormalCompletion2 = true; - var _didIteratorError2 = false; - var _iteratorError2 = undefined; - + var _iterator2 = _createForOfIteratorHelper(this.data), + _step2; try { - for (var _iterator2 = this.data[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { + for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { var option = _step2.value; - if (option.type === 'optgroup') { length += option.children.length; } else { @@ -3294,36 +3872,23 @@ function () { } } } catch (err) { - _didIteratorError2 = true; - _iteratorError2 = err; + _iterator2.e(err); } finally { - try { - if (!_iteratorNormalCompletion2 && _iterator2.return != null) { - _iterator2.return(); - } - } finally { - if (_didIteratorError2) { - throw _iteratorError2; - } - } + _iterator2.f(); } - this.options.filter = length > this.options.filterByDataLength; } }, { key: "initDrop", value: function initDrop() { var _this4 = this; - this.initList(); this.update(true); - if (this.options.isOpen) { setTimeout(function () { _this4.open(); }, 50); } - if (this.options.openOnHover) { this.$parent.hover(function () { _this4.open(); @@ -3336,11 +3901,9 @@ function () { key: "initList", value: function initList() { var html = []; - if (this.options.filter) { html.push("\n
\n \n
\n ")); } - html.push('
    '); this.$drop.html(html.join('')); this.$ul = this.$drop.find('>ul'); @@ -3350,50 +3913,39 @@ function () { key: "initListItems", value: function initListItems() { var _this5 = this; - var rows = this.getListRows(); var offset = 0; - if (this.options.selectAll && !this.options.single) { offset = -1; } - if (rows.length > Constants.BLOCK_ROWS * Constants.CLUSTER_BLOCKS) { if (this.virtualScroll) { this.virtualScroll.destroy(); } - var dropVisible = this.$drop.is(':visible'); - if (!dropVisible) { this.$drop.css('left', -10000).show(); } - var updateDataOffset = function updateDataOffset() { _this5.updateDataStart = _this5.virtualScroll.dataStart + offset; _this5.updateDataEnd = _this5.virtualScroll.dataEnd + offset; - if (_this5.updateDataStart < 0) { _this5.updateDataStart = 0; } - if (_this5.updateDataEnd > _this5.data.length) { _this5.updateDataEnd = _this5.data.length; } }; - this.virtualScroll = new VirtualScroll({ rows: rows, scrollEl: this.$ul[0], contentEl: this.$ul[0], callback: function callback() { updateDataOffset(); - _this5.events(); } }); updateDataOffset(); - if (!dropVisible) { this.$drop.css('left', 0).hide(); } @@ -3403,20 +3955,16 @@ function () { this.updateDataEnd = this.updateData.length; this.virtualScroll = null; } - this.events(); } }, { key: "getListRows", value: function getListRows() { var _this6 = this; - var rows = []; - if (this.options.selectAll && !this.options.single) { rows.push("\n
  • \n \n
  • \n ")); } - this.updateData = []; this.data.forEach(function (row) { rows.push.apply(rows, _toConsumableArray(_this6.initListItem(row))); @@ -3428,90 +3976,72 @@ function () { key: "initListItem", value: function initListItem(row) { var _this7 = this; - var level = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; var title = row.title ? "title=\"".concat(row.title, "\"") : ''; var multiple = this.options.multiple ? 'multiple' : ''; var type = this.options.single ? 'radio' : 'checkbox'; var classes = ''; - if (!row.visible) { return []; } - this.updateData.push(row); - if (this.options.single && !this.options.singleRadio) { classes = 'hide-radio '; } - if (row.selected) { classes += 'selected '; } - if (row.type === 'optgroup') { var _customStyle = this.options.styler(row); - var _style = _customStyle ? "style=\"".concat(_customStyle, "\"") : ''; - var html = []; var group = this.options.hideOptgroupCheckboxes || this.options.single ? "") : ""); - if (!classes.includes('hide-radio') && (this.options.hideOptgroupCheckboxes || this.options.single)) { classes += 'hide-radio '; } - html.push("\n
  • \n \n
  • \n ")); row.children.forEach(function (child) { html.push.apply(html, _toConsumableArray(_this7.initListItem(child, 1))); }); return html; } - var customStyle = this.options.styler(row); var style = customStyle ? "style=\"".concat(customStyle, "\"") : ''; classes += row.classes || ''; - if (level && this.options.single) { classes += "option-level-".concat(level, " "); } - + if (row.divider) { + return '
  • '; + } return ["\n
  • \n \n
  • \n ")]; } }, { key: "events", value: function events() { var _this8 = this; - this.$searchInput = this.$drop.find('.ms-search input'); this.$selectAll = this.$drop.find("input[".concat(this.selectAllName, "]")); this.$selectGroups = this.$drop.find("input[".concat(this.selectGroupName, "],span[").concat(this.selectGroupName, "]")); this.$selectItems = this.$drop.find("input[".concat(this.selectItemName, "]:enabled")); this.$disableItems = this.$drop.find("input[".concat(this.selectItemName, "]:disabled")); this.$noResults = this.$drop.find('.ms-no-results'); - var toggleOpen = function toggleOpen(e) { e.preventDefault(); - if ($(e.target).hasClass('icon-close')) { return; } - _this8[_this8.options.isOpen ? 'close' : 'open'](); }; - if (this.$label && this.$label.length) { this.$label.off('click').on('click', function (e) { if (e.target.nodeName.toLowerCase() !== 'label') { return; } - toggleOpen(e); - if (!_this8.options.filter || !_this8.options.isOpen) { _this8.focus(); } - e.stopPropagation(); // Causes lost focus otherwise }); } @@ -3521,21 +4051,15 @@ function () { // esc key if (e.which === 27 && !_this8.options.keepOpen) { _this8.close(); - _this8.$choice.focus(); } }); this.$close.off('click').on('click', function (e) { e.preventDefault(); - _this8._checkAll(false, true); - _this8.initSelected(false); - _this8.updateSelected(); - _this8.update(); - _this8.options.onClear(); }); this.$searchInput.off('keydown').on('keydown', function (e) { @@ -3549,21 +4073,16 @@ function () { if (_this8.options.filterAcceptOnEnter && [13, 32].includes(e.which) && _this8.$searchInput.val()) { if (_this8.options.single) { var $items = _this8.$selectItems.closest('li').filter(':visible'); - if ($items.length) { _this8.setSelects([$items.first().find("input[".concat(_this8.selectItemName, "]")).val()]); } } else { _this8.$selectAll.click(); } - _this8.close(); - _this8.focus(); - return; } - _this8.filter(); }); this.$selectAll.off('click').on('click', function (e) { @@ -3573,9 +4092,7 @@ function () { var $this = $(e.currentTarget); var checked = $this.prop('checked'); var group = findByParam(_this8.data, '_key', $this.data('key')); - _this8._checkGroup(group, checked); - _this8.options.onOptgroupClick(removeUndefined({ label: group.label, selected: group.selected, @@ -3595,16 +4112,13 @@ function () { var $this = $(e.currentTarget); var checked = $this.prop('checked'); var option = findByParam(_this8.data, '_key', $this.data('key')); - _this8._check(option, checked); - _this8.options.onClick(removeUndefined({ text: option.text, value: option.value, selected: option.selected, data: option._data })); - if (_this8.options.single && _this8.options.isOpen && !_this8.options.keepOpen) { _this8.close(); } @@ -3614,17 +4128,14 @@ function () { key: "initView", value: function initView() { var computedWidth; - if (window.getComputedStyle) { computedWidth = window.getComputedStyle(this.$el[0]).width; - if (computedWidth === 'auto') { computedWidth = this.$drop.outerWidth() + 20; } } else { computedWidth = this.$el.outerWidth() + 20; } - this.$parent.css('width', this.options.width || computedWidth); this.$el.show().addClass('ms-offscreen'); } @@ -3634,19 +4145,20 @@ function () { if (this.$choice.hasClass('disabled')) { return; } - this.options.isOpen = true; + this.$parent.addClass('ms-parent-open'); this.$choice.find('>div').addClass('open'); - this.$drop[this.animateMethod('show')](); // fix filter bug: no results show + this.$drop[this.animateMethod('show')](); + // fix filter bug: no results show this.$selectAll.parent().show(); - this.$noResults.hide(); // Fix #77: 'All selected' when no options + this.$noResults.hide(); + // Fix #77: 'All selected' when no options if (!this.data.length) { this.$selectAll.parent().hide(); this.$noResults.show(); } - if (this.options.container) { var offset = this.$drop.offset(); this.$drop.appendTo($(this.options.container)); @@ -3655,39 +4167,33 @@ function () { left: offset.left }).css('min-width', 'auto').outerWidth(this.$parent.outerWidth()); } - var maxHeight = this.options.maxHeight; - if (this.options.maxHeightUnit === 'row') { maxHeight = this.$drop.find('>ul>li').first().outerHeight() * this.options.maxHeight; } - this.$drop.find('>ul').css('max-height', "".concat(maxHeight, "px")); this.$drop.find('.multiple').css('width', "".concat(this.options.multipleWidth, "px")); - if (this.data.length && this.options.filter) { this.$searchInput.val(''); this.$searchInput.focus(); this.filter(true); } - this.options.onOpen(); } }, { key: "close", value: function close() { this.options.isOpen = false; + this.$parent.removeClass('ms-parent-open'); this.$choice.find('>div').removeClass('open'); this.$drop[this.animateMethod('hide')](); - if (this.options.container) { this.$parent.append(this.$drop); this.$drop.css({ - 'top': 'auto', - 'left': 'auto' + top: 'auto', + left: 'auto' }); } - this.options.onClose(); } }, { @@ -3710,15 +4216,12 @@ function () { value: function update(ignoreTrigger) { var valueSelects = this.getSelects(); var textSelects = this.getSelects('text'); - if (this.options.displayValues) { textSelects = valueSelects; } - var $span = this.$choice.find('>span'); var sl = valueSelects.length; var html = ''; - if (sl === 0) { $span.addClass('placeholder').html(this.options.placeholder); } else if (sl < this.options.minimumCountSelected) { @@ -3732,18 +4235,17 @@ function () { } else { html = textSelects.join(this.options.displayDelimiter); } - if (html) { $span.removeClass('placeholder').html(html); } - if (this.options.displayTitle) { $span.prop('title', this.getSelects('text')); - } // set selects to select - + } - this.$el.val(this.getSelects()); // trigger change event if (!ignoreTrigger) { this.$el.trigger('change'); } @@ -3755,21 +4257,22 @@ function () { var row = this.updateData[i]; this.$drop.find("input[data-key=".concat(row._key, "]")).prop('checked', row.selected).closest('li').toggleClass('selected', row.selected); } - var noResult = this.data.filter(function (row) { return row.visible; }).length === 0; - if (this.$selectAll.length) { this.$selectAll.prop('checked', this.allSelected).closest('li').toggle(!noResult); } - this.$noResults.toggle(noResult); - if (this.virtualScroll) { this.virtualScroll.rows = this.getListRows(); } } + }, { + key: "getData", + value: function getData() { + return this.options.data; + } }, { key: "getOptions", value: function getOptions() { @@ -3785,34 +4288,29 @@ function () { if (compareObjects(this.options, options, true)) { return; } - this.options = $.extend(this.options, options); this.destroy(); this.init(); - } // value html, or text, default: 'value' + } + // value html, or text, default: 'value' }, { key: "getSelects", value: function getSelects() { var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'value'; var values = []; - var _iteratorNormalCompletion3 = true; - var _didIteratorError3 = false; - var _iteratorError3 = undefined; - + var _iterator3 = _createForOfIteratorHelper(this.data), + _step3; try { - for (var _iterator3 = this.data[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) { + for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) { var row = _step3.value; - if (row.type === 'optgroup') { var selectedChildren = row.children.filter(function (child) { return child.selected; }); - if (!selectedChildren.length) { continue; } - if (type === 'value' || this.options.single) { values.push.apply(values, _toConsumableArray(selectedChildren.map(function (child) { return type === 'value' ? child._value || child[type] : child[type]; @@ -3832,71 +4330,49 @@ function () { } } } catch (err) { - _didIteratorError3 = true; - _iteratorError3 = err; + _iterator3.e(err); } finally { - try { - if (!_iteratorNormalCompletion3 && _iterator3.return != null) { - _iterator3.return(); - } - } finally { - if (_didIteratorError3) { - throw _iteratorError3; - } - } + _iterator3.f(); } - return values; } }, { key: "setSelects", - value: function setSelects(values, ignoreTrigger) { + value: function setSelects(values) { + var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'value'; + var ignoreTrigger = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; var hasChanged = false; - var _setSelects = function _setSelects(rows) { - var _iteratorNormalCompletion4 = true; - var _didIteratorError4 = false; - var _iteratorError4 = undefined; - + var _iterator4 = _createForOfIteratorHelper(rows), + _step4; try { - for (var _iterator4 = rows[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) { + for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) { var row = _step4.value; - var selected = values.includes(row._value || row.value); - - if (!selected && row.value === +row.value + '') { - selected = values.includes(+row.value); + var selected = false; + if (type === 'text') { + selected = values.includes($('
    ').html(row.text).text().trim()); + } else { + selected = values.includes(row._value || row.value); + if (!selected && row.value === "".concat(+row.value)) { + selected = values.includes(+row.value); + } } - if (row.selected !== selected) { hasChanged = true; } - row.selected = selected; } } catch (err) { - _didIteratorError4 = true; - _iteratorError4 = err; + _iterator4.e(err); } finally { - try { - if (!_iteratorNormalCompletion4 && _iterator4.return != null) { - _iterator4.return(); - } - } finally { - if (_didIteratorError4) { - throw _iteratorError4; - } - } + _iterator4.f(); } }; - - var _iteratorNormalCompletion5 = true; - var _didIteratorError5 = false; - var _iteratorError5 = undefined; - + var _iterator5 = _createForOfIteratorHelper(this.data), + _step5; try { - for (var _iterator5 = this.data[Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true) { + for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) { var row = _step5.value; - if (row.type === 'optgroup') { _setSelects(row.children); } else { @@ -3904,20 +4380,10 @@ function () { } } } catch (err) { - _didIteratorError5 = true; - _iteratorError5 = err; + _iterator5.e(err); } finally { - try { - if (!_iteratorNormalCompletion5 && _iterator5.return != null) { - _iterator5.return(); - } - } finally { - if (_didIteratorError5) { - throw _iteratorError5; - } - } + _iterator5.f(); } - if (hasChanged) { this.initSelected(ignoreTrigger); this.updateSelected(); @@ -3938,22 +4404,18 @@ function () { key: "check", value: function check(value) { var option = findByParam(this.data, 'value', value); - if (!option) { return; } - this._check(option, true); } }, { key: "uncheck", value: function uncheck(value) { var option = findByParam(this.data, 'value', value); - if (!option) { return; } - this._check(option, false); } }, { @@ -3962,7 +4424,6 @@ function () { if (this.options.single) { this._checkAll(false, true); } - option.selected = checked; this.initSelected(); this.updateSelected(); @@ -3981,35 +4442,22 @@ function () { }, { key: "_checkAll", value: function _checkAll(checked, ignoreUpdate) { - var _iteratorNormalCompletion6 = true; - var _didIteratorError6 = false; - var _iteratorError6 = undefined; - + var _iterator6 = _createForOfIteratorHelper(this.data), + _step6; try { - for (var _iterator6 = this.data[Symbol.iterator](), _step6; !(_iteratorNormalCompletion6 = (_step6 = _iterator6.next()).done); _iteratorNormalCompletion6 = true) { + for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) { var row = _step6.value; - if (row.type === 'optgroup') { this._checkGroup(row, checked, true); - } else if (!row.disabled && (ignoreUpdate || row.visible)) { + } else if (!row.disabled && !row.divider && (ignoreUpdate || row.visible)) { row.selected = checked; } } } catch (err) { - _didIteratorError6 = true; - _iteratorError6 = err; + _iterator6.e(err); } finally { - try { - if (!_iteratorNormalCompletion6 && _iterator6.return != null) { - _iterator6.return(); - } - } finally { - if (_didIteratorError6) { - throw _iteratorError6; - } - } + _iterator6.f(); } - if (!ignoreUpdate) { this.initSelected(); this.updateSelected(); @@ -4021,11 +4469,10 @@ function () { value: function _checkGroup(group, checked, ignoreUpdate) { group.selected = checked; group.children.forEach(function (row) { - if (!row.disabled && (ignoreUpdate || row.visible)) { + if (!row.disabled && !row.divider && (ignoreUpdate || row.visible)) { row.selected = checked; } }); - if (!ignoreUpdate) { this.initSelected(); this.updateSelected(); @@ -4038,58 +4485,35 @@ function () { if (this.options.single) { return; } - - var _iteratorNormalCompletion7 = true; - var _didIteratorError7 = false; - var _iteratorError7 = undefined; - + var _iterator7 = _createForOfIteratorHelper(this.data), + _step7; try { - for (var _iterator7 = this.data[Symbol.iterator](), _step7; !(_iteratorNormalCompletion7 = (_step7 = _iterator7.next()).done); _iteratorNormalCompletion7 = true) { + for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) { var row = _step7.value; - if (row.type === 'optgroup') { - var _iteratorNormalCompletion8 = true; - var _didIteratorError8 = false; - var _iteratorError8 = undefined; - + var _iterator8 = _createForOfIteratorHelper(row.children), + _step8; try { - for (var _iterator8 = row.children[Symbol.iterator](), _step8; !(_iteratorNormalCompletion8 = (_step8 = _iterator8.next()).done); _iteratorNormalCompletion8 = true) { + for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) { var child = _step8.value; - child.selected = !child.selected; + if (!child.divider) { + child.selected = !child.selected; + } } } catch (err) { - _didIteratorError8 = true; - _iteratorError8 = err; + _iterator8.e(err); } finally { - try { - if (!_iteratorNormalCompletion8 && _iterator8.return != null) { - _iterator8.return(); - } - } finally { - if (_didIteratorError8) { - throw _iteratorError8; - } - } + _iterator8.f(); } - } else { + } else if (!row.divider) { row.selected = !row.selected; } } } catch (err) { - _didIteratorError7 = true; - _iteratorError7 = err; + _iterator7.e(err); } finally { - try { - if (!_iteratorNormalCompletion7 && _iterator7.return != null) { - _iterator7.return(); - } - } finally { - if (_didIteratorError7) { - throw _iteratorError7; - } - } + _iterator7.f(); } - this.initSelected(); this.updateSelected(); this.update(); @@ -4115,103 +4539,83 @@ function () { }, { key: "filter", value: function filter(ignoreTrigger) { - var originalText = $.trim(this.$searchInput.val()); - var text = originalText.toLowerCase(); - - if (this.filterText === text) { + var originalSearch = $.trim(this.$searchInput.val()); + var search = originalSearch.toLowerCase(); + if (this.filterText === search) { return; } - - this.filterText = text; - var _iteratorNormalCompletion9 = true; - var _didIteratorError9 = false; - var _iteratorError9 = undefined; - + this.filterText = search; + var _iterator9 = _createForOfIteratorHelper(this.data), + _step9; try { - for (var _iterator9 = this.data[Symbol.iterator](), _step9; !(_iteratorNormalCompletion9 = (_step9 = _iterator9.next()).done); _iteratorNormalCompletion9 = true) { + for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) { var row = _step9.value; - if (row.type === 'optgroup') { if (this.options.filterGroup) { - var visible = this.options.customFilter(removeDiacritics(row.label.toLowerCase()), removeDiacritics(text), row.label, originalText); + var visible = this.options.customFilter({ + label: removeDiacritics(row.label.toLowerCase()), + search: removeDiacritics(search), + originalLabel: row.label, + originalSearch: originalSearch, + row: row + }); row.visible = visible; - var _iteratorNormalCompletion10 = true; - var _didIteratorError10 = false; - var _iteratorError10 = undefined; - + var _iterator10 = _createForOfIteratorHelper(row.children), + _step10; try { - for (var _iterator10 = row.children[Symbol.iterator](), _step10; !(_iteratorNormalCompletion10 = (_step10 = _iterator10.next()).done); _iteratorNormalCompletion10 = true) { + for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) { var child = _step10.value; child.visible = visible; } } catch (err) { - _didIteratorError10 = true; - _iteratorError10 = err; + _iterator10.e(err); } finally { - try { - if (!_iteratorNormalCompletion10 && _iterator10.return != null) { - _iterator10.return(); - } - } finally { - if (_didIteratorError10) { - throw _iteratorError10; - } - } + _iterator10.f(); } } else { - var _iteratorNormalCompletion11 = true; - var _didIteratorError11 = false; - var _iteratorError11 = undefined; - + var _iterator11 = _createForOfIteratorHelper(row.children), + _step11; try { - for (var _iterator11 = row.children[Symbol.iterator](), _step11; !(_iteratorNormalCompletion11 = (_step11 = _iterator11.next()).done); _iteratorNormalCompletion11 = true) { + for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) { var _child = _step11.value; - _child.visible = this.options.customFilter(removeDiacritics(_child.text.toLowerCase()), removeDiacritics(text), _child.text, originalText); + _child.visible = this.options.customFilter({ + text: removeDiacritics(_child.text.toLowerCase()), + search: removeDiacritics(search), + originalText: _child.text, + originalSearch: originalSearch, + row: _child, + parent: row + }); } } catch (err) { - _didIteratorError11 = true; - _iteratorError11 = err; + _iterator11.e(err); } finally { - try { - if (!_iteratorNormalCompletion11 && _iterator11.return != null) { - _iterator11.return(); - } - } finally { - if (_didIteratorError11) { - throw _iteratorError11; - } - } + _iterator11.f(); } - row.visible = row.children.filter(function (child) { return child.visible; }).length > 0; } } else { - row.visible = this.options.customFilter(removeDiacritics(row.text.toLowerCase()), removeDiacritics(text), row.text, originalText); + row.visible = this.options.customFilter({ + text: removeDiacritics(row.text.toLowerCase()), + search: removeDiacritics(search), + originalText: row.text, + originalSearch: originalSearch, + row: row + }); } } } catch (err) { - _didIteratorError9 = true; - _iteratorError9 = err; + _iterator9.e(err); } finally { - try { - if (!_iteratorNormalCompletion9 && _iterator9.return != null) { - _iterator9.return(); - } - } finally { - if (_didIteratorError9) { - throw _iteratorError9; - } - } + _iterator9.f(); } - this.initListItems(); this.initSelected(ignoreTrigger); this.updateSelected(); - if (!ignoreTrigger) { - this.options.onFilter(text); + this.options.onFilter(search); } } }, { @@ -4220,22 +4624,17 @@ function () { if (!this.$parent) { return; } - this.$el.before(this.$parent).removeClass('ms-offscreen'); - if (this.tabIndex !== null) { this.$el.attr('tabindex', this.tabIndex); } - this.$parent.remove(); - if (this.fromHtml) { delete this.options.data; this.fromHtml = false; } } }]); - return MultipleSelect; }(); @@ -4243,27 +4642,21 @@ $.fn.multipleSelect = function (option) { for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { args[_key - 1] = arguments[_key]; } - var value; this.each(function (i, el) { var $this = $(el); var data = $this.data('multipleSelect'); var options = $.extend({}, $this.data(), _typeof(option) === 'object' && option); - if (!data) { data = new MultipleSelect($this, options); $this.data('multipleSelect', data); } - if (typeof option === 'string') { var _data; - if ($.inArray(option, Constants.METHODS) < 0) { throw new Error("Unknown method: ".concat(option)); } - value = (_data = data)[option].apply(_data, args); - if (option === 'destroy') { $this.removeData('multipleSelect'); } @@ -4273,7 +4666,6 @@ $.fn.multipleSelect = function (option) { }); return typeof value !== 'undefined' ? value : this; }; - $.fn.multipleSelect.defaults = Constants.DEFAULTS; $.fn.multipleSelect.locales = Constants.LOCALES; $.fn.multipleSelect.methods = Constants.METHODS; diff --git a/dist/multiple-select-es.min.js b/dist/multiple-select-es.min.js index 5b8f25bd..9b5cb179 100644 --- a/dist/multiple-select-es.min.js +++ b/dist/multiple-select-es.min.js @@ -1,10 +1,10 @@ /** * multiple-select - Multiple select is a jQuery plugin to select multiple elements with checkboxes :). * - * @version v1.5.2 + * @version v1.6.0 * @homepage http://multiple-select.wenzhixin.net.cn * @author wenzhixin (http://wenzhixin.net.cn/) * @license MIT */ -function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var n=0;n0?ct:at)(t)},ft=Math.min,pt=function(t){return t>0?ft(ht(t),9007199254740991):0},dt=Math.max,vt=Math.min,gt=function(t,e){var n=ht(t);return n<0?dt(n+e,0):vt(n,e)},Et=function(t){return function(e,n,i){var r,u=k(e),o=pt(u.length),s=gt(i,o);if(t&&n!=n){for(;o>s;)if((r=u[s++])!=r)return!0}else for(;o>s;s++)if((t||s in u)&&u[s]===n)return t||s||0;return!t&&-1}},yt={includes:Et(!0),indexOf:Et(!1)},bt=yt.indexOf,mt=function(t,e){var n,i=k(t),r=0,u=[];for(n in i)!x(Z,n)&&x(i,n)&&u.push(n);for(;e.length>r;)x(i,n=e[r++])&&(~bt(u,n)||u.push(n));return u},At=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ft=At.concat("length","prototype"),St={f:Object.getOwnPropertyNames||function(t){return mt(t,Ft)}},Ct={f:Object.getOwnPropertySymbols},kt=lt("Reflect","ownKeys")||function(t){var e=St.f(R(t)),n=Ct.f;return n?e.concat(n(t)):e},Dt=function(t,e){for(var n=kt(e),i=P.f,r=I.f,u=0;uu;)P.f(t,n=i[u++],e[n]);return t},Gt=lt("document","documentElement"),Ut=J("IE_PROTO"),Wt=function(){},Vt=function(){var t,e=T("iframe"),n=At.length;for(e.style.display="none",Gt.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write("