@danielgindi/selectbox 1.0.28 → 1.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib.cjs.js +296 -176
- package/dist/lib.cjs.js.map +1 -1
- package/dist/lib.cjs.min.js +2 -2
- package/dist/lib.cjs.min.js.map +1 -1
- package/dist/lib.es6.js +69 -11
- package/dist/lib.es6.js.map +1 -1
- package/dist/lib.es6.min.js +2 -2
- package/dist/lib.es6.min.js.map +1 -1
- package/dist/lib.umd.js +296 -176
- package/dist/lib.umd.js.map +1 -1
- package/dist/lib.umd.min.js +2 -2
- package/dist/lib.umd.min.js.map +1 -1
- package/lib/SelectBox.js +68 -10
- package/package.json +9 -9
- package/vue/SelectBox.vue +10 -0
package/dist/lib.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @danielgindi/selectbox 1.0.
|
|
2
|
+
* @danielgindi/selectbox 1.0.32
|
|
3
3
|
* git://github.com/danielgindi/selectbox.git
|
|
4
4
|
*/
|
|
5
5
|
'use strict';
|
|
@@ -498,7 +498,7 @@ function _objectSpread(target) {
|
|
|
498
498
|
var ownKeys = Object.keys(source);
|
|
499
499
|
|
|
500
500
|
if (typeof Object.getOwnPropertySymbols === 'function') {
|
|
501
|
-
ownKeys
|
|
501
|
+
ownKeys.push.apply(ownKeys, Object.getOwnPropertySymbols(source).filter(function (sym) {
|
|
502
502
|
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
503
503
|
}));
|
|
504
504
|
}
|
|
@@ -738,6 +738,8 @@ function _assertThisInitialized(self) {
|
|
|
738
738
|
function _possibleConstructorReturn(self, call) {
|
|
739
739
|
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
740
740
|
return call;
|
|
741
|
+
} else if (call !== void 0) {
|
|
742
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
741
743
|
}
|
|
742
744
|
|
|
743
745
|
return _assertThisInitialized(self);
|
|
@@ -1676,6 +1678,24 @@ function _classPrivateMethodGet(receiver, privateSet, fn) {
|
|
|
1676
1678
|
return fn;
|
|
1677
1679
|
}
|
|
1678
1680
|
|
|
1681
|
+
function _checkPrivateRedeclaration(obj, privateCollection) {
|
|
1682
|
+
if (privateCollection.has(obj)) {
|
|
1683
|
+
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
1684
|
+
}
|
|
1685
|
+
}
|
|
1686
|
+
|
|
1687
|
+
function _classPrivateFieldInitSpec(obj, privateMap, value) {
|
|
1688
|
+
_checkPrivateRedeclaration(obj, privateMap);
|
|
1689
|
+
|
|
1690
|
+
privateMap.set(obj, value);
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1693
|
+
function _classPrivateMethodInitSpec(obj, privateSet) {
|
|
1694
|
+
_checkPrivateRedeclaration(obj, privateSet);
|
|
1695
|
+
|
|
1696
|
+
privateSet.add(obj);
|
|
1697
|
+
}
|
|
1698
|
+
|
|
1679
1699
|
function _classPrivateMethodSet() {
|
|
1680
1700
|
throw new TypeError("attempted to reassign private method");
|
|
1681
1701
|
}
|
|
@@ -1720,7 +1740,7 @@ var check = function (it) {
|
|
|
1720
1740
|
};
|
|
1721
1741
|
|
|
1722
1742
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
1723
|
-
var global$
|
|
1743
|
+
var global$m =
|
|
1724
1744
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
1725
1745
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
1726
1746
|
check(typeof window == 'object' && window) ||
|
|
@@ -1813,25 +1833,25 @@ var isObject$f = function (it) {
|
|
|
1813
1833
|
return typeof it === 'object' ? it !== null : typeof it === 'function';
|
|
1814
1834
|
};
|
|
1815
1835
|
|
|
1816
|
-
var global$
|
|
1836
|
+
var global$l = global$m;
|
|
1817
1837
|
|
|
1818
1838
|
var aFunction$4 = function (variable) {
|
|
1819
1839
|
return typeof variable == 'function' ? variable : undefined;
|
|
1820
1840
|
};
|
|
1821
1841
|
|
|
1822
1842
|
var getBuiltIn$6 = function (namespace, method) {
|
|
1823
|
-
return arguments.length < 2 ? aFunction$4(global$
|
|
1843
|
+
return arguments.length < 2 ? aFunction$4(global$l[namespace]) : global$l[namespace] && global$l[namespace][method];
|
|
1824
1844
|
};
|
|
1825
1845
|
|
|
1826
1846
|
var getBuiltIn$5 = getBuiltIn$6;
|
|
1827
1847
|
|
|
1828
1848
|
var engineUserAgent = getBuiltIn$5('navigator', 'userAgent') || '';
|
|
1829
1849
|
|
|
1830
|
-
var global$
|
|
1850
|
+
var global$k = global$m;
|
|
1831
1851
|
var userAgent$2 = engineUserAgent;
|
|
1832
1852
|
|
|
1833
|
-
var process = global$
|
|
1834
|
-
var Deno = global$
|
|
1853
|
+
var process = global$k.process;
|
|
1854
|
+
var Deno = global$k.Deno;
|
|
1835
1855
|
var versions = process && process.versions || Deno && Deno.version;
|
|
1836
1856
|
var v8 = versions && versions.v8;
|
|
1837
1857
|
var match, version;
|
|
@@ -1855,7 +1875,7 @@ var V8_VERSION$2 = engineV8Version;
|
|
|
1855
1875
|
var fails$l = fails$o;
|
|
1856
1876
|
|
|
1857
1877
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
1858
|
-
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$l(function () {
|
|
1878
|
+
var nativeSymbol$1 = !!Object.getOwnPropertySymbols && !fails$l(function () {
|
|
1859
1879
|
var symbol = Symbol();
|
|
1860
1880
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
1861
1881
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -1866,7 +1886,7 @@ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$l(function () {
|
|
|
1866
1886
|
|
|
1867
1887
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
1868
1888
|
|
|
1869
|
-
var NATIVE_SYMBOL$2 = nativeSymbol;
|
|
1889
|
+
var NATIVE_SYMBOL$2 = nativeSymbol$1;
|
|
1870
1890
|
|
|
1871
1891
|
var useSymbolAsUid = NATIVE_SYMBOL$2
|
|
1872
1892
|
&& !Symbol.sham
|
|
@@ -1898,22 +1918,22 @@ var shared$6 = {exports: {}};
|
|
|
1898
1918
|
|
|
1899
1919
|
var isPure = false;
|
|
1900
1920
|
|
|
1901
|
-
var global$
|
|
1921
|
+
var global$j = global$m;
|
|
1902
1922
|
|
|
1903
1923
|
var setGlobal$3 = function (key, value) {
|
|
1904
1924
|
try {
|
|
1905
1925
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
1906
|
-
Object.defineProperty(global$
|
|
1926
|
+
Object.defineProperty(global$j, key, { value: value, configurable: true, writable: true });
|
|
1907
1927
|
} catch (error) {
|
|
1908
|
-
global$
|
|
1928
|
+
global$j[key] = value;
|
|
1909
1929
|
} return value;
|
|
1910
1930
|
};
|
|
1911
1931
|
|
|
1912
|
-
var global$
|
|
1932
|
+
var global$i = global$m;
|
|
1913
1933
|
var setGlobal$2 = setGlobal$3;
|
|
1914
1934
|
|
|
1915
1935
|
var SHARED = '__core-js_shared__';
|
|
1916
|
-
var store$3 = global$
|
|
1936
|
+
var store$3 = global$i[SHARED] || setGlobal$2(SHARED, {});
|
|
1917
1937
|
|
|
1918
1938
|
var sharedStore = store$3;
|
|
1919
1939
|
|
|
@@ -1923,7 +1943,7 @@ var store$2 = sharedStore;
|
|
|
1923
1943
|
(shared$6.exports = function (key, value) {
|
|
1924
1944
|
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
1925
1945
|
})('versions', []).push({
|
|
1926
|
-
version: '3.
|
|
1946
|
+
version: '3.17.3',
|
|
1927
1947
|
mode: IS_PURE$4 ? 'pure' : 'global',
|
|
1928
1948
|
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
|
|
1929
1949
|
});
|
|
@@ -1942,7 +1962,7 @@ var toObject$a = toObject$b;
|
|
|
1942
1962
|
|
|
1943
1963
|
var hasOwnProperty$1 = {}.hasOwnProperty;
|
|
1944
1964
|
|
|
1945
|
-
var has$
|
|
1965
|
+
var has$d = Object.hasOwn || function hasOwn(it, key) {
|
|
1946
1966
|
return hasOwnProperty$1.call(toObject$a(it), key);
|
|
1947
1967
|
};
|
|
1948
1968
|
|
|
@@ -1953,20 +1973,20 @@ var uid$4 = function (key) {
|
|
|
1953
1973
|
return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id$1 + postfix).toString(36);
|
|
1954
1974
|
};
|
|
1955
1975
|
|
|
1956
|
-
var global$
|
|
1976
|
+
var global$h = global$m;
|
|
1957
1977
|
var shared$4 = shared$6.exports;
|
|
1958
|
-
var has$
|
|
1978
|
+
var has$c = has$d;
|
|
1959
1979
|
var uid$3 = uid$4;
|
|
1960
|
-
var NATIVE_SYMBOL$1 = nativeSymbol;
|
|
1980
|
+
var NATIVE_SYMBOL$1 = nativeSymbol$1;
|
|
1961
1981
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
1962
1982
|
|
|
1963
1983
|
var WellKnownSymbolsStore$1 = shared$4('wks');
|
|
1964
|
-
var Symbol$1 = global$
|
|
1984
|
+
var Symbol$1 = global$h.Symbol;
|
|
1965
1985
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$3;
|
|
1966
1986
|
|
|
1967
1987
|
var wellKnownSymbol$n = function (name) {
|
|
1968
|
-
if (!has$
|
|
1969
|
-
if (NATIVE_SYMBOL$1 && has$
|
|
1988
|
+
if (!has$c(WellKnownSymbolsStore$1, name) || !(NATIVE_SYMBOL$1 || typeof WellKnownSymbolsStore$1[name] == 'string')) {
|
|
1989
|
+
if (NATIVE_SYMBOL$1 && has$c(Symbol$1, name)) {
|
|
1970
1990
|
WellKnownSymbolsStore$1[name] = Symbol$1[name];
|
|
1971
1991
|
} else {
|
|
1972
1992
|
WellKnownSymbolsStore$1[name] = createWellKnownSymbol('Symbol.' + name);
|
|
@@ -2007,20 +2027,20 @@ var toPropertyKey$4 = function (argument) {
|
|
|
2007
2027
|
return isSymbol$2(key) ? key : String(key);
|
|
2008
2028
|
};
|
|
2009
2029
|
|
|
2010
|
-
var global$
|
|
2030
|
+
var global$g = global$m;
|
|
2011
2031
|
var isObject$c = isObject$f;
|
|
2012
2032
|
|
|
2013
|
-
var document$1 = global$
|
|
2033
|
+
var document$1 = global$g.document;
|
|
2014
2034
|
// typeof document.createElement is 'object' in old IE
|
|
2015
2035
|
var EXISTS = isObject$c(document$1) && isObject$c(document$1.createElement);
|
|
2016
2036
|
|
|
2017
|
-
var documentCreateElement$
|
|
2037
|
+
var documentCreateElement$2 = function (it) {
|
|
2018
2038
|
return EXISTS ? document$1.createElement(it) : {};
|
|
2019
2039
|
};
|
|
2020
2040
|
|
|
2021
2041
|
var DESCRIPTORS$b = descriptors;
|
|
2022
2042
|
var fails$k = fails$o;
|
|
2023
|
-
var createElement = documentCreateElement$
|
|
2043
|
+
var createElement = documentCreateElement$2;
|
|
2024
2044
|
|
|
2025
2045
|
// Thank's IE8 for his funny defineProperty
|
|
2026
2046
|
var ie8DomDefine = !DESCRIPTORS$b && !fails$k(function () {
|
|
@@ -2035,7 +2055,7 @@ var propertyIsEnumerableModule$2 = objectPropertyIsEnumerable;
|
|
|
2035
2055
|
var createPropertyDescriptor$4 = createPropertyDescriptor$5;
|
|
2036
2056
|
var toIndexedObject$8 = toIndexedObject$9;
|
|
2037
2057
|
var toPropertyKey$3 = toPropertyKey$4;
|
|
2038
|
-
var has$
|
|
2058
|
+
var has$b = has$d;
|
|
2039
2059
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
2040
2060
|
|
|
2041
2061
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -2049,14 +2069,14 @@ var f$5 = objectGetOwnPropertyDescriptor.f = DESCRIPTORS$a ? $getOwnPropertyDesc
|
|
|
2049
2069
|
if (IE8_DOM_DEFINE$1) try {
|
|
2050
2070
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
2051
2071
|
} catch (error) { /* empty */ }
|
|
2052
|
-
if (has$
|
|
2072
|
+
if (has$b(O, P)) return createPropertyDescriptor$4(!propertyIsEnumerableModule$2.f.call(O, P), O[P]);
|
|
2053
2073
|
};
|
|
2054
2074
|
|
|
2055
2075
|
var objectDefineProperty = {};
|
|
2056
2076
|
|
|
2057
2077
|
var isObject$b = isObject$f;
|
|
2058
2078
|
|
|
2059
|
-
var anObject$
|
|
2079
|
+
var anObject$d = function (it) {
|
|
2060
2080
|
if (!isObject$b(it)) {
|
|
2061
2081
|
throw TypeError(String(it) + ' is not an object');
|
|
2062
2082
|
} return it;
|
|
@@ -2064,7 +2084,7 @@ var anObject$c = function (it) {
|
|
|
2064
2084
|
|
|
2065
2085
|
var DESCRIPTORS$9 = descriptors;
|
|
2066
2086
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
2067
|
-
var anObject$
|
|
2087
|
+
var anObject$c = anObject$d;
|
|
2068
2088
|
var toPropertyKey$2 = toPropertyKey$4;
|
|
2069
2089
|
|
|
2070
2090
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
@@ -2073,9 +2093,9 @@ var $defineProperty$1 = Object.defineProperty;
|
|
|
2073
2093
|
// `Object.defineProperty` method
|
|
2074
2094
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
2075
2095
|
var f$4 = objectDefineProperty.f = DESCRIPTORS$9 ? $defineProperty$1 : function defineProperty(O, P, Attributes) {
|
|
2076
|
-
anObject$
|
|
2096
|
+
anObject$c(O);
|
|
2077
2097
|
P = toPropertyKey$2(P);
|
|
2078
|
-
anObject$
|
|
2098
|
+
anObject$c(Attributes);
|
|
2079
2099
|
if (IE8_DOM_DEFINE) try {
|
|
2080
2100
|
return $defineProperty$1(O, P, Attributes);
|
|
2081
2101
|
} catch (error) { /* empty */ }
|
|
@@ -2110,10 +2130,10 @@ if (typeof store$1.inspectSource != 'function') {
|
|
|
2110
2130
|
|
|
2111
2131
|
var inspectSource$2 = store$1.inspectSource;
|
|
2112
2132
|
|
|
2113
|
-
var global$
|
|
2133
|
+
var global$f = global$m;
|
|
2114
2134
|
var inspectSource$1 = inspectSource$2;
|
|
2115
2135
|
|
|
2116
|
-
var WeakMap$2 = global$
|
|
2136
|
+
var WeakMap$2 = global$f.WeakMap;
|
|
2117
2137
|
|
|
2118
2138
|
var nativeWeakMap = typeof WeakMap$2 === 'function' && /native code/.test(inspectSource$1(WeakMap$2));
|
|
2119
2139
|
|
|
@@ -2129,20 +2149,20 @@ var sharedKey$4 = function (key) {
|
|
|
2129
2149
|
var hiddenKeys$6 = {};
|
|
2130
2150
|
|
|
2131
2151
|
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
2132
|
-
var global$
|
|
2152
|
+
var global$e = global$m;
|
|
2133
2153
|
var isObject$a = isObject$f;
|
|
2134
2154
|
var createNonEnumerableProperty$8 = createNonEnumerableProperty$9;
|
|
2135
|
-
var objectHas = has$
|
|
2155
|
+
var objectHas = has$d;
|
|
2136
2156
|
var shared$2 = sharedStore;
|
|
2137
2157
|
var sharedKey$3 = sharedKey$4;
|
|
2138
2158
|
var hiddenKeys$5 = hiddenKeys$6;
|
|
2139
2159
|
|
|
2140
2160
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
2141
|
-
var WeakMap$1 = global$
|
|
2142
|
-
var set, get, has$
|
|
2161
|
+
var WeakMap$1 = global$e.WeakMap;
|
|
2162
|
+
var set, get, has$a;
|
|
2143
2163
|
|
|
2144
2164
|
var enforce = function (it) {
|
|
2145
|
-
return has$
|
|
2165
|
+
return has$a(it) ? get(it) : set(it, {});
|
|
2146
2166
|
};
|
|
2147
2167
|
|
|
2148
2168
|
var getterFor = function (TYPE) {
|
|
@@ -2168,7 +2188,7 @@ if (NATIVE_WEAK_MAP || shared$2.state) {
|
|
|
2168
2188
|
get = function (it) {
|
|
2169
2189
|
return wmget.call(store, it) || {};
|
|
2170
2190
|
};
|
|
2171
|
-
has$
|
|
2191
|
+
has$a = function (it) {
|
|
2172
2192
|
return wmhas.call(store, it);
|
|
2173
2193
|
};
|
|
2174
2194
|
} else {
|
|
@@ -2183,7 +2203,7 @@ if (NATIVE_WEAK_MAP || shared$2.state) {
|
|
|
2183
2203
|
get = function (it) {
|
|
2184
2204
|
return objectHas(it, STATE) ? it[STATE] : {};
|
|
2185
2205
|
};
|
|
2186
|
-
has$
|
|
2206
|
+
has$a = function (it) {
|
|
2187
2207
|
return objectHas(it, STATE);
|
|
2188
2208
|
};
|
|
2189
2209
|
}
|
|
@@ -2191,14 +2211,14 @@ if (NATIVE_WEAK_MAP || shared$2.state) {
|
|
|
2191
2211
|
var internalState = {
|
|
2192
2212
|
set: set,
|
|
2193
2213
|
get: get,
|
|
2194
|
-
has: has$
|
|
2214
|
+
has: has$a,
|
|
2195
2215
|
enforce: enforce,
|
|
2196
2216
|
getterFor: getterFor
|
|
2197
2217
|
};
|
|
2198
2218
|
|
|
2199
|
-
var global$
|
|
2219
|
+
var global$d = global$m;
|
|
2200
2220
|
var createNonEnumerableProperty$7 = createNonEnumerableProperty$9;
|
|
2201
|
-
var has$
|
|
2221
|
+
var has$9 = has$d;
|
|
2202
2222
|
var setGlobal$1 = setGlobal$3;
|
|
2203
2223
|
var inspectSource = inspectSource$2;
|
|
2204
2224
|
var InternalStateModule$4 = internalState;
|
|
@@ -2213,7 +2233,7 @@ var TEMPLATE = String(String).split('String');
|
|
|
2213
2233
|
var noTargetGet = options ? !!options.noTargetGet : false;
|
|
2214
2234
|
var state;
|
|
2215
2235
|
if (typeof value == 'function') {
|
|
2216
|
-
if (typeof key == 'string' && !has$
|
|
2236
|
+
if (typeof key == 'string' && !has$9(value, 'name')) {
|
|
2217
2237
|
createNonEnumerableProperty$7(value, 'name', key);
|
|
2218
2238
|
}
|
|
2219
2239
|
state = enforceInternalState$1(value);
|
|
@@ -2221,7 +2241,7 @@ var TEMPLATE = String(String).split('String');
|
|
|
2221
2241
|
state.source = TEMPLATE.join(typeof key == 'string' ? key : '');
|
|
2222
2242
|
}
|
|
2223
2243
|
}
|
|
2224
|
-
if (O === global$
|
|
2244
|
+
if (O === global$d) {
|
|
2225
2245
|
if (simple) O[key] = value;
|
|
2226
2246
|
else setGlobal$1(key, value);
|
|
2227
2247
|
return;
|
|
@@ -2306,7 +2326,7 @@ var arrayIncludes = {
|
|
|
2306
2326
|
indexOf: createMethod$5(false)
|
|
2307
2327
|
};
|
|
2308
2328
|
|
|
2309
|
-
var has$
|
|
2329
|
+
var has$8 = has$d;
|
|
2310
2330
|
var toIndexedObject$6 = toIndexedObject$9;
|
|
2311
2331
|
var indexOf = arrayIncludes.indexOf;
|
|
2312
2332
|
var hiddenKeys$4 = hiddenKeys$6;
|
|
@@ -2316,9 +2336,9 @@ var objectKeysInternal = function (object, names) {
|
|
|
2316
2336
|
var i = 0;
|
|
2317
2337
|
var result = [];
|
|
2318
2338
|
var key;
|
|
2319
|
-
for (key in O) !has$
|
|
2339
|
+
for (key in O) !has$8(hiddenKeys$4, key) && has$8(O, key) && result.push(key);
|
|
2320
2340
|
// Don't enum bug & hidden keys
|
|
2321
|
-
while (names.length > i) if (has$
|
|
2341
|
+
while (names.length > i) if (has$8(O, key = names[i++])) {
|
|
2322
2342
|
~indexOf(result, key) || result.push(key);
|
|
2323
2343
|
}
|
|
2324
2344
|
return result;
|
|
@@ -2355,16 +2375,16 @@ var f$2 = objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
|
2355
2375
|
var getBuiltIn$3 = getBuiltIn$6;
|
|
2356
2376
|
var getOwnPropertyNamesModule$2 = objectGetOwnPropertyNames;
|
|
2357
2377
|
var getOwnPropertySymbolsModule$2 = objectGetOwnPropertySymbols;
|
|
2358
|
-
var anObject$
|
|
2378
|
+
var anObject$b = anObject$d;
|
|
2359
2379
|
|
|
2360
2380
|
// all object keys, includes non-enumerable and symbols
|
|
2361
2381
|
var ownKeys$1 = getBuiltIn$3('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
2362
|
-
var keys = getOwnPropertyNamesModule$2.f(anObject$
|
|
2382
|
+
var keys = getOwnPropertyNamesModule$2.f(anObject$b(it));
|
|
2363
2383
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$2.f;
|
|
2364
2384
|
return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
|
|
2365
2385
|
};
|
|
2366
2386
|
|
|
2367
|
-
var has$
|
|
2387
|
+
var has$7 = has$d;
|
|
2368
2388
|
var ownKeys = ownKeys$1;
|
|
2369
2389
|
var getOwnPropertyDescriptorModule$1 = objectGetOwnPropertyDescriptor;
|
|
2370
2390
|
var definePropertyModule$5 = objectDefineProperty;
|
|
@@ -2375,7 +2395,7 @@ var copyConstructorProperties$2 = function (target, source) {
|
|
|
2375
2395
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule$1.f;
|
|
2376
2396
|
for (var i = 0; i < keys.length; i++) {
|
|
2377
2397
|
var key = keys[i];
|
|
2378
|
-
if (!has$
|
|
2398
|
+
if (!has$7(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
2379
2399
|
}
|
|
2380
2400
|
};
|
|
2381
2401
|
|
|
@@ -2401,7 +2421,7 @@ var POLYFILL = isForced$3.POLYFILL = 'P';
|
|
|
2401
2421
|
|
|
2402
2422
|
var isForced_1 = isForced$3;
|
|
2403
2423
|
|
|
2404
|
-
var global$
|
|
2424
|
+
var global$c = global$m;
|
|
2405
2425
|
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
2406
2426
|
var createNonEnumerableProperty$6 = createNonEnumerableProperty$9;
|
|
2407
2427
|
var redefine$8 = redefine$a.exports;
|
|
@@ -2429,11 +2449,11 @@ var _export = function (options, source) {
|
|
|
2429
2449
|
var STATIC = options.stat;
|
|
2430
2450
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
2431
2451
|
if (GLOBAL) {
|
|
2432
|
-
target = global$
|
|
2452
|
+
target = global$c;
|
|
2433
2453
|
} else if (STATIC) {
|
|
2434
|
-
target = global$
|
|
2454
|
+
target = global$c[TARGET] || setGlobal(TARGET, {});
|
|
2435
2455
|
} else {
|
|
2436
|
-
target = (global$
|
|
2456
|
+
target = (global$c[TARGET] || {}).prototype;
|
|
2437
2457
|
}
|
|
2438
2458
|
if (target) for (key in source) {
|
|
2439
2459
|
sourceProperty = source[key];
|
|
@@ -2484,14 +2504,14 @@ var objectKeys$4 = Object.keys || function keys(O) {
|
|
|
2484
2504
|
|
|
2485
2505
|
var DESCRIPTORS$7 = descriptors;
|
|
2486
2506
|
var definePropertyModule$4 = objectDefineProperty;
|
|
2487
|
-
var anObject$
|
|
2507
|
+
var anObject$a = anObject$d;
|
|
2488
2508
|
var objectKeys$3 = objectKeys$4;
|
|
2489
2509
|
|
|
2490
2510
|
// `Object.defineProperties` method
|
|
2491
2511
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
2492
2512
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
2493
2513
|
var objectDefineProperties = DESCRIPTORS$7 ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
2494
|
-
anObject$
|
|
2514
|
+
anObject$a(O);
|
|
2495
2515
|
var keys = objectKeys$3(Properties);
|
|
2496
2516
|
var length = keys.length;
|
|
2497
2517
|
var index = 0;
|
|
@@ -2506,12 +2526,12 @@ var html$1 = getBuiltIn$2('document', 'documentElement');
|
|
|
2506
2526
|
|
|
2507
2527
|
/* global ActiveXObject -- old IE, WSH */
|
|
2508
2528
|
|
|
2509
|
-
var anObject$
|
|
2529
|
+
var anObject$9 = anObject$d;
|
|
2510
2530
|
var defineProperties = objectDefineProperties;
|
|
2511
2531
|
var enumBugKeys = enumBugKeys$3;
|
|
2512
2532
|
var hiddenKeys$2 = hiddenKeys$6;
|
|
2513
2533
|
var html = html$1;
|
|
2514
|
-
var documentCreateElement = documentCreateElement$
|
|
2534
|
+
var documentCreateElement$1 = documentCreateElement$2;
|
|
2515
2535
|
var sharedKey$2 = sharedKey$4;
|
|
2516
2536
|
|
|
2517
2537
|
var GT = '>';
|
|
@@ -2538,20 +2558,18 @@ var NullProtoObjectViaActiveX = function (activeXDocument) {
|
|
|
2538
2558
|
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
2539
2559
|
var NullProtoObjectViaIFrame = function () {
|
|
2540
2560
|
// Thrash, waste and sodomy: IE GC bug
|
|
2541
|
-
var iframe = documentCreateElement('iframe');
|
|
2561
|
+
var iframe = documentCreateElement$1('iframe');
|
|
2542
2562
|
var JS = 'java' + SCRIPT + ':';
|
|
2543
2563
|
var iframeDocument;
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
return iframeDocument.F;
|
|
2554
|
-
}
|
|
2564
|
+
iframe.style.display = 'none';
|
|
2565
|
+
html.appendChild(iframe);
|
|
2566
|
+
// https://github.com/zloirock/core-js/issues/475
|
|
2567
|
+
iframe.src = String(JS);
|
|
2568
|
+
iframeDocument = iframe.contentWindow.document;
|
|
2569
|
+
iframeDocument.open();
|
|
2570
|
+
iframeDocument.write(scriptTag('document.F=Object'));
|
|
2571
|
+
iframeDocument.close();
|
|
2572
|
+
return iframeDocument.F;
|
|
2555
2573
|
};
|
|
2556
2574
|
|
|
2557
2575
|
// Check for document.domain and active x support
|
|
@@ -2564,10 +2582,11 @@ var NullProtoObject = function () {
|
|
|
2564
2582
|
try {
|
|
2565
2583
|
activeXDocument = new ActiveXObject('htmlfile');
|
|
2566
2584
|
} catch (error) { /* ignore */ }
|
|
2567
|
-
NullProtoObject = document
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2585
|
+
NullProtoObject = typeof document != 'undefined'
|
|
2586
|
+
? document.domain && activeXDocument
|
|
2587
|
+
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
|
2588
|
+
: NullProtoObjectViaIFrame()
|
|
2589
|
+
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
|
2571
2590
|
var length = enumBugKeys.length;
|
|
2572
2591
|
while (length--) delete NullProtoObject[PROTOTYPE$1][enumBugKeys[length]];
|
|
2573
2592
|
return NullProtoObject();
|
|
@@ -2580,7 +2599,7 @@ hiddenKeys$2[IE_PROTO$1] = true;
|
|
|
2580
2599
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
2581
2600
|
var result;
|
|
2582
2601
|
if (O !== null) {
|
|
2583
|
-
EmptyConstructor[PROTOTYPE$1] = anObject$
|
|
2602
|
+
EmptyConstructor[PROTOTYPE$1] = anObject$9(O);
|
|
2584
2603
|
result = new EmptyConstructor();
|
|
2585
2604
|
EmptyConstructor[PROTOTYPE$1] = null;
|
|
2586
2605
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
@@ -2622,30 +2641,30 @@ var wellKnownSymbol$l = wellKnownSymbol$n;
|
|
|
2622
2641
|
|
|
2623
2642
|
var f = wellKnownSymbolWrapped.f = wellKnownSymbol$l;
|
|
2624
2643
|
|
|
2625
|
-
var global$
|
|
2644
|
+
var global$b = global$m;
|
|
2626
2645
|
|
|
2627
|
-
var path$1 = global$
|
|
2646
|
+
var path$1 = global$b;
|
|
2628
2647
|
|
|
2629
2648
|
var path = path$1;
|
|
2630
|
-
var has$
|
|
2649
|
+
var has$6 = has$d;
|
|
2631
2650
|
var wrappedWellKnownSymbolModule$1 = wellKnownSymbolWrapped;
|
|
2632
2651
|
var defineProperty$6 = objectDefineProperty.f;
|
|
2633
2652
|
|
|
2634
2653
|
var defineWellKnownSymbol$1 = function (NAME) {
|
|
2635
2654
|
var Symbol = path.Symbol || (path.Symbol = {});
|
|
2636
|
-
if (!has$
|
|
2655
|
+
if (!has$6(Symbol, NAME)) defineProperty$6(Symbol, NAME, {
|
|
2637
2656
|
value: wrappedWellKnownSymbolModule$1.f(NAME)
|
|
2638
2657
|
});
|
|
2639
2658
|
};
|
|
2640
2659
|
|
|
2641
2660
|
var defineProperty$5 = objectDefineProperty.f;
|
|
2642
|
-
var has$
|
|
2661
|
+
var has$5 = has$d;
|
|
2643
2662
|
var wellKnownSymbol$k = wellKnownSymbol$n;
|
|
2644
2663
|
|
|
2645
2664
|
var TO_STRING_TAG$3 = wellKnownSymbol$k('toStringTag');
|
|
2646
2665
|
|
|
2647
2666
|
var setToStringTag$4 = function (it, TAG, STATIC) {
|
|
2648
|
-
if (it && !has$
|
|
2667
|
+
if (it && !has$5(it = STATIC ? it : it.prototype, TO_STRING_TAG$3)) {
|
|
2649
2668
|
defineProperty$5(it, TO_STRING_TAG$3, { configurable: true, value: TAG });
|
|
2650
2669
|
}
|
|
2651
2670
|
};
|
|
@@ -2785,17 +2804,17 @@ var arrayIteration = {
|
|
|
2785
2804
|
|
|
2786
2805
|
'use strict';
|
|
2787
2806
|
var $$n = _export;
|
|
2788
|
-
var global$
|
|
2807
|
+
var global$a = global$m;
|
|
2789
2808
|
var getBuiltIn$1 = getBuiltIn$6;
|
|
2790
2809
|
var IS_PURE$3 = isPure;
|
|
2791
2810
|
var DESCRIPTORS$6 = descriptors;
|
|
2792
|
-
var NATIVE_SYMBOL = nativeSymbol;
|
|
2811
|
+
var NATIVE_SYMBOL = nativeSymbol$1;
|
|
2793
2812
|
var fails$i = fails$o;
|
|
2794
|
-
var has$
|
|
2813
|
+
var has$4 = has$d;
|
|
2795
2814
|
var isArray$2 = isArray$4;
|
|
2796
2815
|
var isObject$8 = isObject$f;
|
|
2797
2816
|
var isSymbol = isSymbol$4;
|
|
2798
|
-
var anObject$
|
|
2817
|
+
var anObject$8 = anObject$d;
|
|
2799
2818
|
var toObject$8 = toObject$b;
|
|
2800
2819
|
var toIndexedObject$4 = toIndexedObject$9;
|
|
2801
2820
|
var toPropertyKey$1 = toPropertyKey$4;
|
|
@@ -2829,7 +2848,7 @@ var TO_PRIMITIVE = wellKnownSymbol$i('toPrimitive');
|
|
|
2829
2848
|
var setInternalState$3 = InternalStateModule$3.set;
|
|
2830
2849
|
var getInternalState$3 = InternalStateModule$3.getterFor(SYMBOL);
|
|
2831
2850
|
var ObjectPrototype$1 = Object[PROTOTYPE];
|
|
2832
|
-
var $Symbol = global$
|
|
2851
|
+
var $Symbol = global$a.Symbol;
|
|
2833
2852
|
var $stringify = getBuiltIn$1('JSON', 'stringify');
|
|
2834
2853
|
var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
2835
2854
|
var nativeDefineProperty = definePropertyModule$3.f;
|
|
@@ -2840,7 +2859,7 @@ var ObjectPrototypeSymbols = shared$1('op-symbols');
|
|
|
2840
2859
|
var StringToSymbolRegistry = shared$1('string-to-symbol-registry');
|
|
2841
2860
|
var SymbolToStringRegistry = shared$1('symbol-to-string-registry');
|
|
2842
2861
|
var WellKnownSymbolsStore = shared$1('wks');
|
|
2843
|
-
var QObject = global$
|
|
2862
|
+
var QObject = global$a.QObject;
|
|
2844
2863
|
// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
|
|
2845
2864
|
var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
|
|
2846
2865
|
|
|
@@ -2871,22 +2890,22 @@ var wrap = function (tag, description) {
|
|
|
2871
2890
|
|
|
2872
2891
|
var $defineProperty = function defineProperty(O, P, Attributes) {
|
|
2873
2892
|
if (O === ObjectPrototype$1) $defineProperty(ObjectPrototypeSymbols, P, Attributes);
|
|
2874
|
-
anObject$
|
|
2893
|
+
anObject$8(O);
|
|
2875
2894
|
var key = toPropertyKey$1(P);
|
|
2876
|
-
anObject$
|
|
2877
|
-
if (has$
|
|
2895
|
+
anObject$8(Attributes);
|
|
2896
|
+
if (has$4(AllSymbols, key)) {
|
|
2878
2897
|
if (!Attributes.enumerable) {
|
|
2879
|
-
if (!has$
|
|
2898
|
+
if (!has$4(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor$2(1, {}));
|
|
2880
2899
|
O[HIDDEN][key] = true;
|
|
2881
2900
|
} else {
|
|
2882
|
-
if (has$
|
|
2901
|
+
if (has$4(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;
|
|
2883
2902
|
Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor$2(0, false) });
|
|
2884
2903
|
} return setSymbolDescriptor(O, key, Attributes);
|
|
2885
2904
|
} return nativeDefineProperty(O, key, Attributes);
|
|
2886
2905
|
};
|
|
2887
2906
|
|
|
2888
2907
|
var $defineProperties = function defineProperties(O, Properties) {
|
|
2889
|
-
anObject$
|
|
2908
|
+
anObject$8(O);
|
|
2890
2909
|
var properties = toIndexedObject$4(Properties);
|
|
2891
2910
|
var keys = objectKeys$2(properties).concat($getOwnPropertySymbols(properties));
|
|
2892
2911
|
$forEach(keys, function (key) {
|
|
@@ -2902,16 +2921,16 @@ var $create = function create(O, Properties) {
|
|
|
2902
2921
|
var $propertyIsEnumerable = function propertyIsEnumerable(V) {
|
|
2903
2922
|
var P = toPropertyKey$1(V);
|
|
2904
2923
|
var enumerable = nativePropertyIsEnumerable.call(this, P);
|
|
2905
|
-
if (this === ObjectPrototype$1 && has$
|
|
2906
|
-
return enumerable || !has$
|
|
2924
|
+
if (this === ObjectPrototype$1 && has$4(AllSymbols, P) && !has$4(ObjectPrototypeSymbols, P)) return false;
|
|
2925
|
+
return enumerable || !has$4(this, P) || !has$4(AllSymbols, P) || has$4(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;
|
|
2907
2926
|
};
|
|
2908
2927
|
|
|
2909
2928
|
var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {
|
|
2910
2929
|
var it = toIndexedObject$4(O);
|
|
2911
2930
|
var key = toPropertyKey$1(P);
|
|
2912
|
-
if (it === ObjectPrototype$1 && has$
|
|
2931
|
+
if (it === ObjectPrototype$1 && has$4(AllSymbols, key) && !has$4(ObjectPrototypeSymbols, key)) return;
|
|
2913
2932
|
var descriptor = nativeGetOwnPropertyDescriptor(it, key);
|
|
2914
|
-
if (descriptor && has$
|
|
2933
|
+
if (descriptor && has$4(AllSymbols, key) && !(has$4(it, HIDDEN) && it[HIDDEN][key])) {
|
|
2915
2934
|
descriptor.enumerable = true;
|
|
2916
2935
|
}
|
|
2917
2936
|
return descriptor;
|
|
@@ -2921,7 +2940,7 @@ var $getOwnPropertyNames = function getOwnPropertyNames(O) {
|
|
|
2921
2940
|
var names = nativeGetOwnPropertyNames(toIndexedObject$4(O));
|
|
2922
2941
|
var result = [];
|
|
2923
2942
|
$forEach(names, function (key) {
|
|
2924
|
-
if (!has$
|
|
2943
|
+
if (!has$4(AllSymbols, key) && !has$4(hiddenKeys$1, key)) result.push(key);
|
|
2925
2944
|
});
|
|
2926
2945
|
return result;
|
|
2927
2946
|
};
|
|
@@ -2931,7 +2950,7 @@ var $getOwnPropertySymbols = function getOwnPropertySymbols(O) {
|
|
|
2931
2950
|
var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject$4(O));
|
|
2932
2951
|
var result = [];
|
|
2933
2952
|
$forEach(names, function (key) {
|
|
2934
|
-
if (has$
|
|
2953
|
+
if (has$4(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || has$4(ObjectPrototype$1, key))) {
|
|
2935
2954
|
result.push(AllSymbols[key]);
|
|
2936
2955
|
}
|
|
2937
2956
|
});
|
|
@@ -2947,7 +2966,7 @@ if (!NATIVE_SYMBOL) {
|
|
|
2947
2966
|
var tag = uid$1(description);
|
|
2948
2967
|
var setter = function (value) {
|
|
2949
2968
|
if (this === ObjectPrototype$1) setter.call(ObjectPrototypeSymbols, value);
|
|
2950
|
-
if (has$
|
|
2969
|
+
if (has$4(this, HIDDEN) && has$4(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
|
|
2951
2970
|
setSymbolDescriptor(this, tag, createPropertyDescriptor$2(1, value));
|
|
2952
2971
|
};
|
|
2953
2972
|
if (DESCRIPTORS$6 && USE_SETTER) setSymbolDescriptor(ObjectPrototype$1, tag, { configurable: true, set: setter });
|
|
@@ -2999,7 +3018,7 @@ $$n({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, {
|
|
|
2999
3018
|
// https://tc39.es/ecma262/#sec-symbol.for
|
|
3000
3019
|
'for': function (key) {
|
|
3001
3020
|
var string = $toString$1(key);
|
|
3002
|
-
if (has$
|
|
3021
|
+
if (has$4(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];
|
|
3003
3022
|
var symbol = $Symbol(string);
|
|
3004
3023
|
StringToSymbolRegistry[string] = symbol;
|
|
3005
3024
|
SymbolToStringRegistry[symbol] = string;
|
|
@@ -3009,7 +3028,7 @@ $$n({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, {
|
|
|
3009
3028
|
// https://tc39.es/ecma262/#sec-symbol.keyfor
|
|
3010
3029
|
keyFor: function keyFor(sym) {
|
|
3011
3030
|
if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');
|
|
3012
|
-
if (has$
|
|
3031
|
+
if (has$4(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
|
|
3013
3032
|
},
|
|
3014
3033
|
useSetter: function () { USE_SETTER = true; },
|
|
3015
3034
|
useSimple: function () { USE_SETTER = false; }
|
|
@@ -3097,13 +3116,13 @@ var es_symbol_description = {};
|
|
|
3097
3116
|
'use strict';
|
|
3098
3117
|
var $$m = _export;
|
|
3099
3118
|
var DESCRIPTORS$5 = descriptors;
|
|
3100
|
-
var global$
|
|
3101
|
-
var has$
|
|
3119
|
+
var global$9 = global$m;
|
|
3120
|
+
var has$3 = has$d;
|
|
3102
3121
|
var isObject$7 = isObject$f;
|
|
3103
3122
|
var defineProperty$4 = objectDefineProperty.f;
|
|
3104
3123
|
var copyConstructorProperties = copyConstructorProperties$2;
|
|
3105
3124
|
|
|
3106
|
-
var NativeSymbol = global$
|
|
3125
|
+
var NativeSymbol = global$9.Symbol;
|
|
3107
3126
|
|
|
3108
3127
|
if (DESCRIPTORS$5 && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||
|
|
3109
3128
|
// Safari 12 bug
|
|
@@ -3125,15 +3144,15 @@ if (DESCRIPTORS$5 && typeof NativeSymbol == 'function' && (!('description' in Na
|
|
|
3125
3144
|
symbolPrototype.constructor = SymbolWrapper;
|
|
3126
3145
|
|
|
3127
3146
|
var symbolToString = symbolPrototype.toString;
|
|
3128
|
-
var
|
|
3147
|
+
var nativeSymbol = String(NativeSymbol('test')) == 'Symbol(test)';
|
|
3129
3148
|
var regexp = /^Symbol\((.*)\)[^)]+$/;
|
|
3130
3149
|
defineProperty$4(symbolPrototype, 'description', {
|
|
3131
3150
|
configurable: true,
|
|
3132
3151
|
get: function description() {
|
|
3133
3152
|
var symbol = isObject$7(this) ? this.valueOf() : this;
|
|
3134
3153
|
var string = symbolToString.call(symbol);
|
|
3135
|
-
if (has$
|
|
3136
|
-
var desc =
|
|
3154
|
+
if (has$3(EmptyStringDescriptionStore, symbol)) return '';
|
|
3155
|
+
var desc = nativeSymbol ? string.slice(7, -1) : string.replace(regexp, '$1');
|
|
3137
3156
|
return desc === '' ? undefined : desc;
|
|
3138
3157
|
}
|
|
3139
3158
|
});
|
|
@@ -3376,25 +3395,37 @@ $$j({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD$3 }, {
|
|
|
3376
3395
|
|
|
3377
3396
|
var es_array_from = {};
|
|
3378
3397
|
|
|
3379
|
-
var anObject$
|
|
3398
|
+
var anObject$7 = anObject$d;
|
|
3380
3399
|
|
|
3381
|
-
var iteratorClose$2 = function (iterator) {
|
|
3382
|
-
var
|
|
3383
|
-
|
|
3384
|
-
|
|
3400
|
+
var iteratorClose$2 = function (iterator, kind, value) {
|
|
3401
|
+
var innerResult, innerError;
|
|
3402
|
+
anObject$7(iterator);
|
|
3403
|
+
try {
|
|
3404
|
+
innerResult = iterator['return'];
|
|
3405
|
+
if (innerResult === undefined) {
|
|
3406
|
+
if (kind === 'throw') throw value;
|
|
3407
|
+
return value;
|
|
3408
|
+
}
|
|
3409
|
+
innerResult = innerResult.call(iterator);
|
|
3410
|
+
} catch (error) {
|
|
3411
|
+
innerError = true;
|
|
3412
|
+
innerResult = error;
|
|
3385
3413
|
}
|
|
3414
|
+
if (kind === 'throw') throw value;
|
|
3415
|
+
if (innerError) throw innerResult;
|
|
3416
|
+
anObject$7(innerResult);
|
|
3417
|
+
return value;
|
|
3386
3418
|
};
|
|
3387
3419
|
|
|
3388
|
-
var anObject$
|
|
3420
|
+
var anObject$6 = anObject$d;
|
|
3389
3421
|
var iteratorClose$1 = iteratorClose$2;
|
|
3390
3422
|
|
|
3391
3423
|
// call something on iterator step with safe closing on error
|
|
3392
3424
|
var callWithSafeIterationClosing$1 = function (iterator, fn, value, ENTRIES) {
|
|
3393
3425
|
try {
|
|
3394
|
-
return ENTRIES ? fn(anObject$
|
|
3426
|
+
return ENTRIES ? fn(anObject$6(value)[0], value[1]) : fn(value);
|
|
3395
3427
|
} catch (error) {
|
|
3396
|
-
iteratorClose$1(iterator);
|
|
3397
|
-
throw error;
|
|
3428
|
+
iteratorClose$1(iterator, 'throw', error);
|
|
3398
3429
|
}
|
|
3399
3430
|
};
|
|
3400
3431
|
|
|
@@ -3417,12 +3448,22 @@ var wellKnownSymbol$c = wellKnownSymbol$n;
|
|
|
3417
3448
|
|
|
3418
3449
|
var ITERATOR$4 = wellKnownSymbol$c('iterator');
|
|
3419
3450
|
|
|
3420
|
-
var getIteratorMethod$
|
|
3451
|
+
var getIteratorMethod$3 = function (it) {
|
|
3421
3452
|
if (it != undefined) return it[ITERATOR$4]
|
|
3422
3453
|
|| it['@@iterator']
|
|
3423
3454
|
|| Iterators$3[classof$3(it)];
|
|
3424
3455
|
};
|
|
3425
3456
|
|
|
3457
|
+
var anObject$5 = anObject$d;
|
|
3458
|
+
var getIteratorMethod$2 = getIteratorMethod$3;
|
|
3459
|
+
|
|
3460
|
+
var getIterator$2 = function (it, usingIterator) {
|
|
3461
|
+
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$2(it) : usingIterator;
|
|
3462
|
+
if (typeof iteratorMethod != 'function') {
|
|
3463
|
+
throw TypeError(String(it) + ' is not iterable');
|
|
3464
|
+
} return anObject$5(iteratorMethod.call(it));
|
|
3465
|
+
};
|
|
3466
|
+
|
|
3426
3467
|
'use strict';
|
|
3427
3468
|
var bind$2 = functionBindContext;
|
|
3428
3469
|
var toObject$6 = toObject$b;
|
|
@@ -3430,7 +3471,8 @@ var callWithSafeIterationClosing = callWithSafeIterationClosing$1;
|
|
|
3430
3471
|
var isArrayIteratorMethod$1 = isArrayIteratorMethod$2;
|
|
3431
3472
|
var toLength$7 = toLength$b;
|
|
3432
3473
|
var createProperty$2 = createProperty$4;
|
|
3433
|
-
var
|
|
3474
|
+
var getIterator$1 = getIterator$2;
|
|
3475
|
+
var getIteratorMethod$1 = getIteratorMethod$3;
|
|
3434
3476
|
|
|
3435
3477
|
// `Array.from` method implementation
|
|
3436
3478
|
// https://tc39.es/ecma262/#sec-array.from
|
|
@@ -3446,7 +3488,7 @@ var arrayFrom = function from(arrayLike /* , mapfn = undefined, thisArg = undefi
|
|
|
3446
3488
|
if (mapping) mapfn = bind$2(mapfn, argumentsLength > 2 ? arguments[2] : undefined, 2);
|
|
3447
3489
|
// if the target is not iterable or it's an array with the default iterator - use a simple case
|
|
3448
3490
|
if (iteratorMethod != undefined && !(C == Array && isArrayIteratorMethod$1(iteratorMethod))) {
|
|
3449
|
-
iterator =
|
|
3491
|
+
iterator = getIterator$1(O, iteratorMethod);
|
|
3450
3492
|
next = iterator.next;
|
|
3451
3493
|
result = new C();
|
|
3452
3494
|
for (;!(step = next.call(iterator)).done; index++) {
|
|
@@ -3559,7 +3601,7 @@ var correctPrototypeGetter = !fails$e(function () {
|
|
|
3559
3601
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
3560
3602
|
});
|
|
3561
3603
|
|
|
3562
|
-
var has$
|
|
3604
|
+
var has$2 = has$d;
|
|
3563
3605
|
var toObject$5 = toObject$b;
|
|
3564
3606
|
var sharedKey = sharedKey$4;
|
|
3565
3607
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
@@ -3572,7 +3614,7 @@ var ObjectPrototype = Object.prototype;
|
|
|
3572
3614
|
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
3573
3615
|
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? Object.getPrototypeOf : function (O) {
|
|
3574
3616
|
O = toObject$5(O);
|
|
3575
|
-
if (has$
|
|
3617
|
+
if (has$2(O, IE_PROTO)) return O[IE_PROTO];
|
|
3576
3618
|
if (typeof O.constructor == 'function' && O instanceof O.constructor) {
|
|
3577
3619
|
return O.constructor.prototype;
|
|
3578
3620
|
} return O instanceof Object ? ObjectPrototype : null;
|
|
@@ -3580,17 +3622,15 @@ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? Object.getPrototypeOf : fu
|
|
|
3580
3622
|
|
|
3581
3623
|
'use strict';
|
|
3582
3624
|
var fails$d = fails$o;
|
|
3625
|
+
var create$4 = objectCreate;
|
|
3583
3626
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
3584
3627
|
var createNonEnumerableProperty$4 = createNonEnumerableProperty$9;
|
|
3585
|
-
var has$2 = has$e;
|
|
3586
3628
|
var wellKnownSymbol$a = wellKnownSymbol$n;
|
|
3587
3629
|
var IS_PURE$2 = isPure;
|
|
3588
3630
|
|
|
3589
3631
|
var ITERATOR$2 = wellKnownSymbol$a('iterator');
|
|
3590
3632
|
var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
3591
3633
|
|
|
3592
|
-
var returnThis$2 = function () { return this; };
|
|
3593
|
-
|
|
3594
3634
|
// `%IteratorPrototype%` object
|
|
3595
3635
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-object
|
|
3596
3636
|
var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
|
@@ -3613,11 +3653,14 @@ var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$d(functio
|
|
|
3613
3653
|
});
|
|
3614
3654
|
|
|
3615
3655
|
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
|
|
3656
|
+
else if (IS_PURE$2) IteratorPrototype$2 = create$4(IteratorPrototype$2);
|
|
3616
3657
|
|
|
3617
3658
|
// `%IteratorPrototype%[@@iterator]()` method
|
|
3618
3659
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
3619
|
-
if (
|
|
3620
|
-
createNonEnumerableProperty$4(IteratorPrototype$2, ITERATOR$2,
|
|
3660
|
+
if (typeof IteratorPrototype$2[ITERATOR$2] !== 'function') {
|
|
3661
|
+
createNonEnumerableProperty$4(IteratorPrototype$2, ITERATOR$2, function () {
|
|
3662
|
+
return this;
|
|
3663
|
+
});
|
|
3621
3664
|
}
|
|
3622
3665
|
|
|
3623
3666
|
var iteratorsCore = {
|
|
@@ -3652,7 +3695,7 @@ var aPossiblePrototype$1 = function (it) {
|
|
|
3652
3695
|
|
|
3653
3696
|
/* eslint-disable no-proto -- safe */
|
|
3654
3697
|
|
|
3655
|
-
var anObject$4 = anObject$
|
|
3698
|
+
var anObject$4 = anObject$d;
|
|
3656
3699
|
var aPossiblePrototype = aPossiblePrototype$1;
|
|
3657
3700
|
|
|
3658
3701
|
// `Object.setPrototypeOf` method
|
|
@@ -3726,7 +3769,7 @@ var defineIterator$3 = function (Iterable, NAME, IteratorConstructor, next, DEFA
|
|
|
3726
3769
|
// fix native
|
|
3727
3770
|
if (anyNativeIterator) {
|
|
3728
3771
|
CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
|
|
3729
|
-
if (
|
|
3772
|
+
if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
|
|
3730
3773
|
if (!IS_PURE$1 && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
|
3731
3774
|
if (setPrototypeOf$1) {
|
|
3732
3775
|
setPrototypeOf$1(CurrentIteratorPrototype, IteratorPrototype);
|
|
@@ -4031,12 +4074,12 @@ var stringTrim = {
|
|
|
4031
4074
|
trim: createMethod$1(3)
|
|
4032
4075
|
};
|
|
4033
4076
|
|
|
4034
|
-
var global$
|
|
4077
|
+
var global$8 = global$m;
|
|
4035
4078
|
var toString$5 = toString$c;
|
|
4036
4079
|
var trim = stringTrim.trim;
|
|
4037
4080
|
var whitespaces$1 = whitespaces$3;
|
|
4038
4081
|
|
|
4039
|
-
var $parseFloat = global$
|
|
4082
|
+
var $parseFloat = global$8.parseFloat;
|
|
4040
4083
|
var FORCED$1 = 1 / $parseFloat(whitespaces$1 + '-0') !== -Infinity;
|
|
4041
4084
|
|
|
4042
4085
|
// `parseFloat` method
|
|
@@ -4164,9 +4207,9 @@ var arrayReduce = {
|
|
|
4164
4207
|
};
|
|
4165
4208
|
|
|
4166
4209
|
var classof$1 = classofRaw$1;
|
|
4167
|
-
var global$
|
|
4210
|
+
var global$7 = global$m;
|
|
4168
4211
|
|
|
4169
|
-
var engineIsNode = classof$1(global$
|
|
4212
|
+
var engineIsNode = classof$1(global$7.process) == 'process';
|
|
4170
4213
|
|
|
4171
4214
|
'use strict';
|
|
4172
4215
|
var $$a = _export;
|
|
@@ -4254,7 +4297,7 @@ var inheritIfRequired$2 = function ($this, dummy, Wrapper) {
|
|
|
4254
4297
|
};
|
|
4255
4298
|
|
|
4256
4299
|
'use strict';
|
|
4257
|
-
var anObject$3 = anObject$
|
|
4300
|
+
var anObject$3 = anObject$d;
|
|
4258
4301
|
|
|
4259
4302
|
// `RegExp.prototype.flags` getter implementation
|
|
4260
4303
|
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
@@ -4273,21 +4316,20 @@ var regexpFlags$1 = function () {
|
|
|
4273
4316
|
var regexpStickyHelpers = {};
|
|
4274
4317
|
|
|
4275
4318
|
var fails$b = fails$o;
|
|
4319
|
+
var global$6 = global$m;
|
|
4276
4320
|
|
|
4277
|
-
// babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
4278
|
-
var
|
|
4279
|
-
return RegExp(s, f);
|
|
4280
|
-
};
|
|
4321
|
+
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
4322
|
+
var $RegExp$2 = global$6.RegExp;
|
|
4281
4323
|
|
|
4282
4324
|
var UNSUPPORTED_Y$2 = regexpStickyHelpers.UNSUPPORTED_Y = fails$b(function () {
|
|
4283
|
-
var re =
|
|
4325
|
+
var re = $RegExp$2('a', 'y');
|
|
4284
4326
|
re.lastIndex = 2;
|
|
4285
4327
|
return re.exec('abcd') != null;
|
|
4286
4328
|
});
|
|
4287
4329
|
|
|
4288
4330
|
var BROKEN_CARET = regexpStickyHelpers.BROKEN_CARET = fails$b(function () {
|
|
4289
4331
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
4290
|
-
var re =
|
|
4332
|
+
var re = $RegExp$2('^r', 'gy');
|
|
4291
4333
|
re.lastIndex = 2;
|
|
4292
4334
|
return re.exec('str') != null;
|
|
4293
4335
|
});
|
|
@@ -4313,24 +4355,30 @@ var setSpecies$2 = function (CONSTRUCTOR_NAME) {
|
|
|
4313
4355
|
};
|
|
4314
4356
|
|
|
4315
4357
|
var fails$a = fails$o;
|
|
4358
|
+
var global$5 = global$m;
|
|
4359
|
+
|
|
4360
|
+
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
4361
|
+
var $RegExp$1 = global$5.RegExp;
|
|
4316
4362
|
|
|
4317
4363
|
var regexpUnsupportedDotAll = fails$a(function () {
|
|
4318
|
-
|
|
4319
|
-
var re = RegExp('.', (typeof '').charAt(0));
|
|
4364
|
+
var re = $RegExp$1('.', 's');
|
|
4320
4365
|
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
|
4321
4366
|
});
|
|
4322
4367
|
|
|
4323
4368
|
var fails$9 = fails$o;
|
|
4369
|
+
var global$4 = global$m;
|
|
4370
|
+
|
|
4371
|
+
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
4372
|
+
var $RegExp = global$4.RegExp;
|
|
4324
4373
|
|
|
4325
4374
|
var regexpUnsupportedNcg = fails$9(function () {
|
|
4326
|
-
|
|
4327
|
-
var re = RegExp('(?<a>b)', (typeof '').charAt(5));
|
|
4375
|
+
var re = $RegExp('(?<a>b)', 'g');
|
|
4328
4376
|
return re.exec('b').groups.a !== 'b' ||
|
|
4329
4377
|
'b'.replace(re, '$<a>c') !== 'bc';
|
|
4330
4378
|
});
|
|
4331
4379
|
|
|
4332
4380
|
var DESCRIPTORS$2 = descriptors;
|
|
4333
|
-
var global$3 = global$
|
|
4381
|
+
var global$3 = global$m;
|
|
4334
4382
|
var isForced$1 = isForced_1;
|
|
4335
4383
|
var inheritIfRequired$1 = inheritIfRequired$2;
|
|
4336
4384
|
var createNonEnumerableProperty$2 = createNonEnumerableProperty$9;
|
|
@@ -4342,7 +4390,7 @@ var getFlags = regexpFlags$1;
|
|
|
4342
4390
|
var stickyHelpers$1 = regexpStickyHelpers;
|
|
4343
4391
|
var redefine$4 = redefine$a.exports;
|
|
4344
4392
|
var fails$8 = fails$o;
|
|
4345
|
-
var has$1 = has$
|
|
4393
|
+
var has$1 = has$d;
|
|
4346
4394
|
var enforceInternalState = internalState.enforce;
|
|
4347
4395
|
var setSpecies$1 = setSpecies$2;
|
|
4348
4396
|
var wellKnownSymbol$3 = wellKnownSymbol$n;
|
|
@@ -4522,7 +4570,7 @@ setSpecies$1('RegExp');
|
|
|
4522
4570
|
var es_regexp_exec = {};
|
|
4523
4571
|
|
|
4524
4572
|
'use strict';
|
|
4525
|
-
/* eslint-disable regexp/no-
|
|
4573
|
+
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
4526
4574
|
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
4527
4575
|
var toString$2 = toString$c;
|
|
4528
4576
|
var regexpFlags = regexpFlags$1;
|
|
@@ -4649,7 +4697,7 @@ var es_regexp_toString = {};
|
|
|
4649
4697
|
|
|
4650
4698
|
'use strict';
|
|
4651
4699
|
var redefine$3 = redefine$a.exports;
|
|
4652
|
-
var anObject$2 = anObject$
|
|
4700
|
+
var anObject$2 = anObject$d;
|
|
4653
4701
|
var $toString = toString$c;
|
|
4654
4702
|
var fails$7 = fails$o;
|
|
4655
4703
|
var flags = regexpFlags$1;
|
|
@@ -4825,7 +4873,7 @@ var regexpExecAbstract = function (R, S) {
|
|
|
4825
4873
|
'use strict';
|
|
4826
4874
|
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
4827
4875
|
var fails$5 = fails$o;
|
|
4828
|
-
var anObject$1 = anObject$
|
|
4876
|
+
var anObject$1 = anObject$d;
|
|
4829
4877
|
var toInteger = toInteger$5;
|
|
4830
4878
|
var toLength$2 = toLength$b;
|
|
4831
4879
|
var toString$1 = toString$c;
|
|
@@ -4865,6 +4913,7 @@ var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$5(function () {
|
|
|
4865
4913
|
result.groups = { a: '7' };
|
|
4866
4914
|
return result;
|
|
4867
4915
|
};
|
|
4916
|
+
// eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
|
|
4868
4917
|
return ''.replace(re, '$<a>') !== '7';
|
|
4869
4918
|
});
|
|
4870
4919
|
|
|
@@ -7055,7 +7104,7 @@ var freezing = !fails$4(function () {
|
|
|
7055
7104
|
var $$7 = _export;
|
|
7056
7105
|
var hiddenKeys = hiddenKeys$6;
|
|
7057
7106
|
var isObject$1 = isObject$f;
|
|
7058
|
-
var has = has$
|
|
7107
|
+
var has = has$d;
|
|
7059
7108
|
var defineProperty$2 = objectDefineProperty.f;
|
|
7060
7109
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
7061
7110
|
var getOwnPropertyNamesExternalModule = objectGetOwnPropertyNamesExternal;
|
|
@@ -7147,11 +7196,12 @@ hiddenKeys[METADATA] = true;
|
|
|
7147
7196
|
|
|
7148
7197
|
var internalMetadata = internalMetadata$1.exports;
|
|
7149
7198
|
|
|
7150
|
-
var anObject = anObject$
|
|
7199
|
+
var anObject = anObject$d;
|
|
7151
7200
|
var isArrayIteratorMethod = isArrayIteratorMethod$2;
|
|
7152
7201
|
var toLength$1 = toLength$b;
|
|
7153
7202
|
var bind$1 = functionBindContext;
|
|
7154
|
-
var
|
|
7203
|
+
var getIterator = getIterator$2;
|
|
7204
|
+
var getIteratorMethod = getIteratorMethod$3;
|
|
7155
7205
|
var iteratorClose = iteratorClose$2;
|
|
7156
7206
|
|
|
7157
7207
|
var Result = function (stopped, result) {
|
|
@@ -7168,7 +7218,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
7168
7218
|
var iterator, iterFn, index, length, result, next, step;
|
|
7169
7219
|
|
|
7170
7220
|
var stop = function (condition) {
|
|
7171
|
-
if (iterator) iteratorClose(iterator);
|
|
7221
|
+
if (iterator) iteratorClose(iterator, 'normal', condition);
|
|
7172
7222
|
return new Result(true, condition);
|
|
7173
7223
|
};
|
|
7174
7224
|
|
|
@@ -7191,7 +7241,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
7191
7241
|
if (result && result instanceof Result) return result;
|
|
7192
7242
|
} return new Result(false);
|
|
7193
7243
|
}
|
|
7194
|
-
iterator =
|
|
7244
|
+
iterator = getIterator(iterable, iterFn);
|
|
7195
7245
|
}
|
|
7196
7246
|
|
|
7197
7247
|
next = iterator.next;
|
|
@@ -7199,8 +7249,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
7199
7249
|
try {
|
|
7200
7250
|
result = callFn(step.value);
|
|
7201
7251
|
} catch (error) {
|
|
7202
|
-
iteratorClose(iterator);
|
|
7203
|
-
throw error;
|
|
7252
|
+
iteratorClose(iterator, 'throw', error);
|
|
7204
7253
|
}
|
|
7205
7254
|
if (typeof result == 'object' && result && result instanceof Result) return result;
|
|
7206
7255
|
} return new Result(false);
|
|
@@ -7214,7 +7263,7 @@ var anInstance$2 = function (it, Constructor, name) {
|
|
|
7214
7263
|
|
|
7215
7264
|
'use strict';
|
|
7216
7265
|
var $$6 = _export;
|
|
7217
|
-
var global$2 = global$
|
|
7266
|
+
var global$2 = global$m;
|
|
7218
7267
|
var isForced = isForced_1;
|
|
7219
7268
|
var redefine$1 = redefine$a.exports;
|
|
7220
7269
|
var InternalMetadataModule = internalMetadata$1.exports;
|
|
@@ -7574,8 +7623,17 @@ var domIterables = {
|
|
|
7574
7623
|
TouchList: 0
|
|
7575
7624
|
};
|
|
7576
7625
|
|
|
7577
|
-
|
|
7626
|
+
// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
|
|
7627
|
+
var documentCreateElement = documentCreateElement$2;
|
|
7628
|
+
|
|
7629
|
+
var classList = documentCreateElement('span').classList;
|
|
7630
|
+
var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
|
|
7631
|
+
|
|
7632
|
+
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
7633
|
+
|
|
7634
|
+
var global$1 = global$m;
|
|
7578
7635
|
var DOMIterables = domIterables;
|
|
7636
|
+
var DOMTokenListPrototype = domTokenListPrototype;
|
|
7579
7637
|
var ArrayIteratorMethods = es_array_iterator;
|
|
7580
7638
|
var createNonEnumerableProperty = createNonEnumerableProperty$9;
|
|
7581
7639
|
var wellKnownSymbol = wellKnownSymbol$n;
|
|
@@ -7584,9 +7642,7 @@ var ITERATOR = wellKnownSymbol('iterator');
|
|
|
7584
7642
|
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
7585
7643
|
var ArrayValues = ArrayIteratorMethods.values;
|
|
7586
7644
|
|
|
7587
|
-
|
|
7588
|
-
var Collection = global$1[COLLECTION_NAME];
|
|
7589
|
-
var CollectionPrototype = Collection && Collection.prototype;
|
|
7645
|
+
var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
7590
7646
|
if (CollectionPrototype) {
|
|
7591
7647
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
7592
7648
|
if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
|
|
@@ -7606,8 +7662,14 @@ for (var COLLECTION_NAME in DOMIterables) {
|
|
|
7606
7662
|
}
|
|
7607
7663
|
}
|
|
7608
7664
|
}
|
|
7665
|
+
};
|
|
7666
|
+
|
|
7667
|
+
for (var COLLECTION_NAME in DOMIterables) {
|
|
7668
|
+
handlePrototype(global$1[COLLECTION_NAME] && global$1[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
7609
7669
|
}
|
|
7610
7670
|
|
|
7671
|
+
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
7672
|
+
|
|
7611
7673
|
var es_object_assign = {};
|
|
7612
7674
|
|
|
7613
7675
|
'use strict';
|
|
@@ -8042,7 +8104,9 @@ var inputBackbufferCssProps = [
|
|
|
8042
8104
|
* @property {string} [multiItemLabelProp='short_label']
|
|
8043
8105
|
* @property {number} [maxMultiItems] maximum number of multi items. The rest will get a single item to represent.
|
|
8044
8106
|
* @property {function(count: number, items: DropList.ItemBase[]):string} [multiItemsRestLabelProvider] label for the item representing the rest of the items.
|
|
8045
|
-
* @property {DropList.ItemBase[]|null} [items]
|
|
8107
|
+
* @property {DropList.ItemBase[]|null} [items] initial items
|
|
8108
|
+
* @property {*[]|null} [selectedValues] initial selected values
|
|
8109
|
+
* @property {*|*[]|null} [value] initial selected value
|
|
8046
8110
|
* @property {function(item: DropList.ItemBase, itemEl: Element):(*|false)} [renderSingleItem]
|
|
8047
8111
|
* @property {function(item: DropList.ItemBase, itemEl: Element)} [unrenderSingleItem]
|
|
8048
8112
|
* @property {function(item: DropList.ItemBase, itemEl: Element):(*|false)} [renderMultiItem]
|
|
@@ -8054,6 +8118,7 @@ var inputBackbufferCssProps = [
|
|
|
8054
8118
|
* @property {function(items: DropList.ItemBase[], term: string):(DropList.ItemBase[]|null)} [filterFn]
|
|
8055
8119
|
* @property {function(name: string, ...args)} [on]
|
|
8056
8120
|
* @property {string|string[]} [additionalClasses]
|
|
8121
|
+
* @property {boolean} [isLoadingMode]
|
|
8057
8122
|
* */
|
|
8058
8123
|
var defaultOptions = {
|
|
8059
8124
|
el: null,
|
|
@@ -8081,7 +8146,10 @@ var defaultOptions = {
|
|
|
8081
8146
|
multiItemLabelProp: 'short_label',
|
|
8082
8147
|
maxMultiItems: null,
|
|
8083
8148
|
multiItemsRestLabelProvider: null,
|
|
8084
|
-
items: []
|
|
8149
|
+
items: [],
|
|
8150
|
+
selectedValues: undefined,
|
|
8151
|
+
value: undefined,
|
|
8152
|
+
isLoadingMode: false };
|
|
8085
8153
|
|
|
8086
8154
|
|
|
8087
8155
|
/**
|
|
@@ -8179,12 +8247,12 @@ var SelectBox = /*#__PURE__*/function () {
|
|
|
8179
8247
|
renderNoResultsItem: o.renderNoResultsItem,
|
|
8180
8248
|
unrenderNoResultsItem: o.unrenderNoResultsItem,
|
|
8181
8249
|
filterFn: o.filterFn,
|
|
8182
|
-
on:
|
|
8250
|
+
on: null,
|
|
8183
8251
|
additionalClasses: o.additionalClasses,
|
|
8184
8252
|
|
|
8185
|
-
isLoadingMode:
|
|
8253
|
+
isLoadingMode: !!o.isLoadingMode,
|
|
8186
8254
|
|
|
8187
|
-
items:
|
|
8255
|
+
items: [],
|
|
8188
8256
|
filteredItems: null,
|
|
8189
8257
|
itemsChanged: true,
|
|
8190
8258
|
|
|
@@ -8278,7 +8346,16 @@ var SelectBox = /*#__PURE__*/function () {
|
|
|
8278
8346
|
p.sink.add(window, 'resize', function () {return _this._resizeInput();});
|
|
8279
8347
|
p.sink.add(window, 'orientationchange', function () {return _this._resizeInput();});
|
|
8280
8348
|
|
|
8281
|
-
this.setItems(
|
|
8349
|
+
this.setItems(o.items);
|
|
8350
|
+
|
|
8351
|
+
if (o.multi && Array.isArray(o.selectedValues)) {
|
|
8352
|
+
this.setSelectedValues(o.selectedValues);
|
|
8353
|
+
} else if (o.value != null) {
|
|
8354
|
+
this.setValue(o.value);
|
|
8355
|
+
}
|
|
8356
|
+
|
|
8357
|
+
// Start firing events
|
|
8358
|
+
p.on = o.on || null;
|
|
8282
8359
|
|
|
8283
8360
|
this._scheduleSync();
|
|
8284
8361
|
|
|
@@ -9246,13 +9323,22 @@ var SelectBox = /*#__PURE__*/function () {
|
|
|
9246
9323
|
* @returns {SelectBox}
|
|
9247
9324
|
*/ }, { key: "toggleLoading", value:
|
|
9248
9325
|
function toggleLoading(on) {
|
|
9326
|
+
return this.setIsLoadingMode(on === undefined ? !this.getIsLoadingMode() : !!on);
|
|
9327
|
+
}
|
|
9328
|
+
|
|
9329
|
+
/**
|
|
9330
|
+
* @param {boolean} isLoadingMode
|
|
9331
|
+
* @returns {SelectBox}
|
|
9332
|
+
*/ }, { key: "setIsLoadingMode", value:
|
|
9333
|
+
function setIsLoadingMode(isLoadingMode) {
|
|
9249
9334
|
var p = this._p;
|
|
9250
|
-
var loading = on === undefined ? !this._p.isLoadingMode : !!on;
|
|
9251
9335
|
|
|
9252
|
-
|
|
9336
|
+
isLoadingMode = isLoadingMode === undefined ? true : !!isLoadingMode;
|
|
9337
|
+
|
|
9338
|
+
if (p.isLoadingMode === isLoadingMode)
|
|
9253
9339
|
return this;
|
|
9254
9340
|
|
|
9255
|
-
p.isLoadingMode =
|
|
9341
|
+
p.isLoadingMode = isLoadingMode;
|
|
9256
9342
|
|
|
9257
9343
|
if (p.isLoadingMode && p.items.length === 0 && this.isListOpen()) {
|
|
9258
9344
|
this.closeList();
|
|
@@ -9266,6 +9352,12 @@ var SelectBox = /*#__PURE__*/function () {
|
|
|
9266
9352
|
return this;
|
|
9267
9353
|
}
|
|
9268
9354
|
|
|
9355
|
+
/**
|
|
9356
|
+
* @returns {boolean}
|
|
9357
|
+
*/ }, { key: "getIsLoadingMode", value:
|
|
9358
|
+
function getIsLoadingMode() {
|
|
9359
|
+
return this._p.isLoadingMode;
|
|
9360
|
+
}
|
|
9269
9361
|
|
|
9270
9362
|
/**
|
|
9271
9363
|
* Can be called in case that the selectbox was attached to the dom late and has a weird size.
|
|
@@ -10902,7 +10994,7 @@ var SelectBox = /*#__PURE__*/function () {
|
|
|
10902
10994
|
return 0;
|
|
10903
10995
|
};
|
|
10904
10996
|
|
|
10905
|
-
var group = [];
|
|
10997
|
+
var group = [],stickyGroup = null;
|
|
10906
10998
|
var groups = [group];
|
|
10907
10999
|
var selectedValuesSet = new Set(p.selectedValues);
|
|
10908
11000
|
var item, i, len;
|
|
@@ -10922,12 +11014,27 @@ var SelectBox = /*#__PURE__*/function () {
|
|
|
10922
11014
|
groups.length = 0;
|
|
10923
11015
|
}
|
|
10924
11016
|
|
|
11017
|
+
// Non-grouped sticky should be first
|
|
11018
|
+
if (stickyValues && items.length > 0 && !items[0]._group) {
|
|
11019
|
+
stickyGroup = groups[0].filter(function (x) {return stickyValues.has(x[valueProp]);});
|
|
11020
|
+
if (stickyGroup.length > 0) {
|
|
11021
|
+
groups[0] = groups[0].filter(function (x) {return !stickyValues.has(x[valueProp]);});
|
|
11022
|
+
}
|
|
11023
|
+
}
|
|
11024
|
+
|
|
10925
11025
|
if (sort) {
|
|
10926
11026
|
// Sort the groups
|
|
10927
11027
|
groups.sort(function (a, b) {
|
|
10928
11028
|
a = a[0];
|
|
10929
11029
|
b = b[0];
|
|
10930
11030
|
|
|
11031
|
+
if (stickyValues !== null) {
|
|
11032
|
+
var sa = stickyValues.has(a[valueProp]);
|
|
11033
|
+
var sb = stickyValues.has(b[valueProp]);
|
|
11034
|
+
if (sa && !sb) return -1;
|
|
11035
|
+
if (!sa && sb) return 1;
|
|
11036
|
+
}
|
|
11037
|
+
|
|
10931
11038
|
// A "group" without a group item will come first
|
|
10932
11039
|
if (!a._group && b._group) return -1;
|
|
10933
11040
|
if (a._group && !b._group) return 1;
|
|
@@ -10936,6 +11043,10 @@ var SelectBox = /*#__PURE__*/function () {
|
|
|
10936
11043
|
});
|
|
10937
11044
|
}
|
|
10938
11045
|
|
|
11046
|
+
if (stickyGroup && stickyGroup.length > 0) {
|
|
11047
|
+
groups.unshift(stickyGroup);
|
|
11048
|
+
}
|
|
11049
|
+
|
|
10939
11050
|
// Now we have an array of groups, possibly sorted.
|
|
10940
11051
|
// Each group is an array that begins with the group item (group name/id).
|
|
10941
11052
|
// A group could possible start with a normal item, if it's a "default group", which had no group item.
|
|
@@ -10949,7 +11060,7 @@ var SelectBox = /*#__PURE__*/function () {
|
|
|
10949
11060
|
// Sort each group
|
|
10950
11061
|
group.sort(function (a, b) {
|
|
10951
11062
|
|
|
10952
|
-
//
|
|
11063
|
+
// Grouping items come first
|
|
10953
11064
|
if (a._group && !b._group) return -1;
|
|
10954
11065
|
if (!a._group && b._group) return 1;
|
|
10955
11066
|
|
|
@@ -10979,6 +11090,15 @@ var SelectBox = /*#__PURE__*/function () {
|
|
|
10979
11090
|
for (var _g = 0, _glen = groups.length; _g < _glen; _g++) {
|
|
10980
11091
|
group = groups[_g];
|
|
10981
11092
|
|
|
11093
|
+
if (group === stickyGroup) {
|
|
11094
|
+
checkedGroups.push(stickyGroup);
|
|
11095
|
+
var sgi = uncheckedGroups.indexOf(stickyGroup);
|
|
11096
|
+
if (sgi !== -1) {
|
|
11097
|
+
uncheckedGroups.splice(sgi, 1);
|
|
11098
|
+
}
|
|
11099
|
+
continue;
|
|
11100
|
+
}
|
|
11101
|
+
|
|
10982
11102
|
virtualGroup = null;
|
|
10983
11103
|
|
|
10984
11104
|
for (var gi = 0, gilen = group.length; gi < gilen; gi++) {
|