@fluxo-dev/shell-mfe 0.0.33 → 0.0.34
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/index.esm.js +880 -436
- package/package.json +3 -2
package/index.esm.js
CHANGED
|
@@ -16,6 +16,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
16
16
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
17
17
|
PERFORMANCE OF THIS SOFTWARE.
|
|
18
18
|
***************************************************************************** */
|
|
19
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
20
|
+
|
|
19
21
|
|
|
20
22
|
function __awaiter(thisArg, _arguments, P, generator) {
|
|
21
23
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -34,7 +36,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
34
36
|
|
|
35
37
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
36
38
|
|
|
37
|
-
var fails$
|
|
39
|
+
var fails$a = function (exec) {
|
|
38
40
|
try {
|
|
39
41
|
return !!exec();
|
|
40
42
|
} catch (error) {
|
|
@@ -42,281 +44,549 @@ var fails$6 = function (exec) {
|
|
|
42
44
|
}
|
|
43
45
|
};
|
|
44
46
|
|
|
45
|
-
var
|
|
47
|
+
var fails$9 = fails$a;
|
|
48
|
+
|
|
49
|
+
var functionBindNative = !fails$9(function () {
|
|
50
|
+
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
51
|
+
var test = (function () { /* empty */ }).bind();
|
|
52
|
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
53
|
+
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
var NATIVE_BIND$1 = functionBindNative;
|
|
57
|
+
|
|
58
|
+
var FunctionPrototype$1 = Function.prototype;
|
|
59
|
+
var call$5 = FunctionPrototype$1.call;
|
|
60
|
+
var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$5, call$5);
|
|
61
|
+
|
|
62
|
+
var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
|
|
63
|
+
return function () {
|
|
64
|
+
return call$5.apply(fn, arguments);
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
69
|
+
|
|
70
|
+
var toString$1 = uncurryThis$9({}.toString);
|
|
71
|
+
var stringSlice$1 = uncurryThis$9(''.slice);
|
|
46
72
|
|
|
47
73
|
var classofRaw = function (it) {
|
|
48
|
-
return toString
|
|
74
|
+
return stringSlice$1(toString$1(it), 8, -1);
|
|
49
75
|
};
|
|
50
76
|
|
|
51
|
-
var
|
|
77
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
78
|
+
var fails$8 = fails$a;
|
|
52
79
|
var classof = classofRaw;
|
|
53
80
|
|
|
54
|
-
var
|
|
81
|
+
var $Object$3 = Object;
|
|
82
|
+
var split = uncurryThis$8(''.split);
|
|
55
83
|
|
|
56
84
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
57
|
-
var indexedObject = fails$
|
|
85
|
+
var indexedObject = fails$8(function () {
|
|
58
86
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
59
|
-
// eslint-disable-next-line no-prototype-builtins
|
|
60
|
-
return
|
|
87
|
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
88
|
+
return !$Object$3('z').propertyIsEnumerable(0);
|
|
61
89
|
}) ? function (it) {
|
|
62
|
-
return classof(it)
|
|
63
|
-
} : Object;
|
|
90
|
+
return classof(it) === 'String' ? split(it, '') : $Object$3(it);
|
|
91
|
+
} : $Object$3;
|
|
92
|
+
|
|
93
|
+
// we can't use just `it == null` since of `document.all` special case
|
|
94
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
95
|
+
var isNullOrUndefined$2 = function (it) {
|
|
96
|
+
return it === null || it === undefined;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
var isNullOrUndefined$1 = isNullOrUndefined$2;
|
|
100
|
+
|
|
101
|
+
var $TypeError$6 = TypeError;
|
|
64
102
|
|
|
65
103
|
// `RequireObjectCoercible` abstract operation
|
|
66
|
-
// https://tc39.
|
|
67
|
-
var requireObjectCoercible$
|
|
68
|
-
if (it
|
|
104
|
+
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
105
|
+
var requireObjectCoercible$3 = function (it) {
|
|
106
|
+
if (isNullOrUndefined$1(it)) throw new $TypeError$6("Can't call method on " + it);
|
|
69
107
|
return it;
|
|
70
108
|
};
|
|
71
109
|
|
|
72
110
|
// toObject with fallback for non-array-like ES3 strings
|
|
73
111
|
var IndexedObject = indexedObject;
|
|
74
|
-
var requireObjectCoercible$
|
|
112
|
+
var requireObjectCoercible$2 = requireObjectCoercible$3;
|
|
75
113
|
|
|
76
|
-
var toIndexedObject$
|
|
77
|
-
return IndexedObject(requireObjectCoercible$
|
|
114
|
+
var toIndexedObject$5 = function (it) {
|
|
115
|
+
return IndexedObject(requireObjectCoercible$2(it));
|
|
78
116
|
};
|
|
79
117
|
|
|
80
118
|
var check = function (it) {
|
|
81
|
-
return it && it.Math
|
|
119
|
+
return it && it.Math === Math && it;
|
|
82
120
|
};
|
|
83
121
|
|
|
84
122
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
85
|
-
var global$
|
|
86
|
-
// eslint-disable-next-line no-
|
|
123
|
+
var global$b =
|
|
124
|
+
// eslint-disable-next-line es/no-global-this -- safe
|
|
87
125
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
88
126
|
check(typeof window == 'object' && window) ||
|
|
127
|
+
// eslint-disable-next-line no-restricted-globals -- safe
|
|
89
128
|
check(typeof self == 'object' && self) ||
|
|
90
129
|
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
91
|
-
|
|
92
|
-
|
|
130
|
+
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
131
|
+
// eslint-disable-next-line no-new-func -- fallback
|
|
132
|
+
(function () { return this; })() || Function('return this')();
|
|
133
|
+
|
|
134
|
+
var sharedStore = {exports: {}};
|
|
93
135
|
|
|
94
|
-
var
|
|
136
|
+
var global$a = global$b;
|
|
95
137
|
|
|
96
|
-
|
|
138
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
139
|
+
var defineProperty$4 = Object.defineProperty;
|
|
97
140
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
141
|
+
var defineGlobalProperty$3 = function (key, value) {
|
|
142
|
+
try {
|
|
143
|
+
defineProperty$4(global$a, key, { value: value, configurable: true, writable: true });
|
|
144
|
+
} catch (error) {
|
|
145
|
+
global$a[key] = value;
|
|
146
|
+
} return value;
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
var globalThis$1 = global$b;
|
|
150
|
+
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
151
|
+
|
|
152
|
+
var SHARED = '__core-js_shared__';
|
|
153
|
+
var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
154
|
+
|
|
155
|
+
(store$3.versions || (store$3.versions = [])).push({
|
|
156
|
+
version: '3.36.1',
|
|
157
|
+
mode: 'global',
|
|
158
|
+
copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
|
|
159
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE',
|
|
160
|
+
source: 'https://github.com/zloirock/core-js'
|
|
101
161
|
});
|
|
102
162
|
|
|
103
|
-
var
|
|
163
|
+
var sharedStoreExports = sharedStore.exports;
|
|
164
|
+
|
|
165
|
+
var store$2 = sharedStoreExports;
|
|
166
|
+
|
|
167
|
+
var shared$3 = function (key, value) {
|
|
168
|
+
return store$2[key] || (store$2[key] = value || {});
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
var requireObjectCoercible$1 = requireObjectCoercible$3;
|
|
172
|
+
|
|
173
|
+
var $Object$2 = Object;
|
|
174
|
+
|
|
175
|
+
// `ToObject` abstract operation
|
|
176
|
+
// https://tc39.es/ecma262/#sec-toobject
|
|
177
|
+
var toObject$2 = function (argument) {
|
|
178
|
+
return $Object$2(requireObjectCoercible$1(argument));
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
182
|
+
var toObject$1 = toObject$2;
|
|
183
|
+
|
|
184
|
+
var hasOwnProperty = uncurryThis$7({}.hasOwnProperty);
|
|
185
|
+
|
|
186
|
+
// `HasOwnProperty` abstract operation
|
|
187
|
+
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
188
|
+
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
189
|
+
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
190
|
+
return hasOwnProperty(toObject$1(it), key);
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
194
|
+
|
|
195
|
+
var id = 0;
|
|
196
|
+
var postfix = Math.random();
|
|
197
|
+
var toString = uncurryThis$6(1.0.toString);
|
|
198
|
+
|
|
199
|
+
var uid$2 = function (key) {
|
|
200
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
204
|
+
|
|
205
|
+
var global$9 = global$b;
|
|
206
|
+
var userAgent = engineUserAgent;
|
|
207
|
+
|
|
208
|
+
var process = global$9.process;
|
|
209
|
+
var Deno = global$9.Deno;
|
|
210
|
+
var versions = process && process.versions || Deno && Deno.version;
|
|
211
|
+
var v8 = versions && versions.v8;
|
|
212
|
+
var match, version;
|
|
213
|
+
|
|
214
|
+
if (v8) {
|
|
215
|
+
match = v8.split('.');
|
|
216
|
+
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
|
217
|
+
// but their correct versions are not interesting for us
|
|
218
|
+
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
222
|
+
// so check `userAgent` even if `.v8` exists, but 0
|
|
223
|
+
if (!version && userAgent) {
|
|
224
|
+
match = userAgent.match(/Edge\/(\d+)/);
|
|
225
|
+
if (!match || match[1] >= 74) {
|
|
226
|
+
match = userAgent.match(/Chrome\/(\d+)/);
|
|
227
|
+
if (match) version = +match[1];
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
var engineV8Version = version;
|
|
232
|
+
|
|
233
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
|
234
|
+
var V8_VERSION = engineV8Version;
|
|
235
|
+
var fails$7 = fails$a;
|
|
236
|
+
var global$8 = global$b;
|
|
237
|
+
|
|
238
|
+
var $String$4 = global$8.String;
|
|
239
|
+
|
|
240
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
241
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$7(function () {
|
|
242
|
+
var symbol = Symbol('symbol detection');
|
|
243
|
+
// Chrome 38 Symbol has incorrect toString conversion
|
|
244
|
+
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
245
|
+
// nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
|
|
246
|
+
// of course, fail.
|
|
247
|
+
return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
248
|
+
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
249
|
+
!Symbol.sham && V8_VERSION && V8_VERSION < 41;
|
|
250
|
+
});
|
|
251
|
+
|
|
252
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
|
253
|
+
var NATIVE_SYMBOL$1 = symbolConstructorDetection;
|
|
254
|
+
|
|
255
|
+
var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
256
|
+
&& !Symbol.sham
|
|
257
|
+
&& typeof Symbol.iterator == 'symbol';
|
|
258
|
+
|
|
259
|
+
var global$7 = global$b;
|
|
260
|
+
var shared$2 = shared$3;
|
|
261
|
+
var hasOwn$8 = hasOwnProperty_1;
|
|
262
|
+
var uid$1 = uid$2;
|
|
263
|
+
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
264
|
+
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
265
|
+
|
|
266
|
+
var Symbol$1 = global$7.Symbol;
|
|
267
|
+
var WellKnownSymbolsStore = shared$2('wks');
|
|
268
|
+
var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
269
|
+
|
|
270
|
+
var wellKnownSymbol$6 = function (name) {
|
|
271
|
+
if (!hasOwn$8(WellKnownSymbolsStore, name)) {
|
|
272
|
+
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)
|
|
273
|
+
? Symbol$1[name]
|
|
274
|
+
: createWellKnownSymbol('Symbol.' + name);
|
|
275
|
+
} return WellKnownSymbolsStore[name];
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
279
|
+
var documentAll = typeof document == 'object' && document.all;
|
|
104
280
|
|
|
105
|
-
|
|
106
|
-
|
|
281
|
+
// `IsCallable` abstract operation
|
|
282
|
+
// https://tc39.es/ecma262/#sec-iscallable
|
|
283
|
+
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
284
|
+
var isCallable$d = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
|
|
285
|
+
return typeof argument == 'function' || argument === documentAll;
|
|
286
|
+
} : function (argument) {
|
|
287
|
+
return typeof argument == 'function';
|
|
107
288
|
};
|
|
108
289
|
|
|
109
|
-
var
|
|
110
|
-
var isObject$4 = isObject$5;
|
|
290
|
+
var isCallable$c = isCallable$d;
|
|
111
291
|
|
|
112
|
-
var
|
|
292
|
+
var isObject$8 = function (it) {
|
|
293
|
+
return typeof it == 'object' ? it !== null : isCallable$c(it);
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
var isObject$7 = isObject$8;
|
|
297
|
+
|
|
298
|
+
var $String$3 = String;
|
|
299
|
+
var $TypeError$5 = TypeError;
|
|
300
|
+
|
|
301
|
+
// `Assert: Type(argument) is Object`
|
|
302
|
+
var anObject$4 = function (argument) {
|
|
303
|
+
if (isObject$7(argument)) return argument;
|
|
304
|
+
throw new $TypeError$5($String$3(argument) + ' is not an object');
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
var objectDefineProperties = {};
|
|
308
|
+
|
|
309
|
+
var fails$6 = fails$a;
|
|
310
|
+
|
|
311
|
+
// Detect IE8's incomplete defineProperty implementation
|
|
312
|
+
var descriptors = !fails$6(function () {
|
|
313
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
314
|
+
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
315
|
+
});
|
|
316
|
+
|
|
317
|
+
var DESCRIPTORS$8 = descriptors;
|
|
318
|
+
var fails$5 = fails$a;
|
|
319
|
+
|
|
320
|
+
// V8 ~ Chrome 36-
|
|
321
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
322
|
+
var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$5(function () {
|
|
323
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
324
|
+
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
325
|
+
value: 42,
|
|
326
|
+
writable: false
|
|
327
|
+
}).prototype !== 42;
|
|
328
|
+
});
|
|
329
|
+
|
|
330
|
+
var objectDefineProperty = {};
|
|
331
|
+
|
|
332
|
+
var global$6 = global$b;
|
|
333
|
+
var isObject$6 = isObject$8;
|
|
334
|
+
|
|
335
|
+
var document$1 = global$6.document;
|
|
113
336
|
// typeof document.createElement is 'object' in old IE
|
|
114
|
-
var EXISTS = isObject$
|
|
337
|
+
var EXISTS$1 = isObject$6(document$1) && isObject$6(document$1.createElement);
|
|
115
338
|
|
|
116
|
-
var documentCreateElement$
|
|
117
|
-
return EXISTS ? document$1.createElement(it) : {};
|
|
339
|
+
var documentCreateElement$2 = function (it) {
|
|
340
|
+
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
118
341
|
};
|
|
119
342
|
|
|
120
|
-
var DESCRIPTORS$
|
|
121
|
-
var fails$
|
|
122
|
-
var createElement = documentCreateElement$
|
|
343
|
+
var DESCRIPTORS$7 = descriptors;
|
|
344
|
+
var fails$4 = fails$a;
|
|
345
|
+
var createElement = documentCreateElement$2;
|
|
123
346
|
|
|
124
|
-
//
|
|
125
|
-
var ie8DomDefine = !DESCRIPTORS$
|
|
347
|
+
// Thanks to IE8 for its funny defineProperty
|
|
348
|
+
var ie8DomDefine = !DESCRIPTORS$7 && !fails$4(function () {
|
|
349
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
126
350
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
127
351
|
get: function () { return 7; }
|
|
128
|
-
}).a
|
|
352
|
+
}).a !== 7;
|
|
129
353
|
});
|
|
130
354
|
|
|
131
|
-
var
|
|
355
|
+
var NATIVE_BIND = functionBindNative;
|
|
132
356
|
|
|
133
|
-
var
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
357
|
+
var call$4 = Function.prototype.call;
|
|
358
|
+
|
|
359
|
+
var functionCall = NATIVE_BIND ? call$4.bind(call$4) : function () {
|
|
360
|
+
return call$4.apply(call$4, arguments);
|
|
137
361
|
};
|
|
138
362
|
|
|
139
|
-
var
|
|
363
|
+
var global$5 = global$b;
|
|
364
|
+
var isCallable$b = isCallable$d;
|
|
140
365
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
// instead of the ES6 spec version, we didn't implement @@toPrimitive case
|
|
144
|
-
// and the second argument - flag - preferred type is a string
|
|
145
|
-
var toPrimitive$2 = function (input, PREFERRED_STRING) {
|
|
146
|
-
if (!isObject$2(input)) return input;
|
|
147
|
-
var fn, val;
|
|
148
|
-
if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject$2(val = fn.call(input))) return val;
|
|
149
|
-
if (typeof (fn = input.valueOf) == 'function' && !isObject$2(val = fn.call(input))) return val;
|
|
150
|
-
if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject$2(val = fn.call(input))) return val;
|
|
151
|
-
throw TypeError("Can't convert object to primitive value");
|
|
366
|
+
var aFunction = function (argument) {
|
|
367
|
+
return isCallable$b(argument) ? argument : undefined;
|
|
152
368
|
};
|
|
153
369
|
|
|
154
|
-
var
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
var toPrimitive$1 = toPrimitive$2;
|
|
370
|
+
var getBuiltIn$3 = function (namespace, method) {
|
|
371
|
+
return arguments.length < 2 ? aFunction(global$5[namespace]) : global$5[namespace] && global$5[namespace][method];
|
|
372
|
+
};
|
|
158
373
|
|
|
159
|
-
var
|
|
374
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
160
375
|
|
|
161
|
-
|
|
162
|
-
// https://tc39.github.io/ecma262/#sec-object.defineproperty
|
|
163
|
-
objectDefineProperty.f = DESCRIPTORS$3 ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
|
|
164
|
-
anObject$4(O);
|
|
165
|
-
P = toPrimitive$1(P, true);
|
|
166
|
-
anObject$4(Attributes);
|
|
167
|
-
if (IE8_DOM_DEFINE$1) try {
|
|
168
|
-
return nativeDefineProperty(O, P, Attributes);
|
|
169
|
-
} catch (error) { /* empty */ }
|
|
170
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
|
|
171
|
-
if ('value' in Attributes) O[P] = Attributes.value;
|
|
172
|
-
return O;
|
|
173
|
-
};
|
|
376
|
+
var objectIsPrototypeOf = uncurryThis$5({}.isPrototypeOf);
|
|
174
377
|
|
|
175
|
-
var
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
writable: !(bitmap & 4),
|
|
180
|
-
value: value
|
|
181
|
-
};
|
|
182
|
-
};
|
|
378
|
+
var getBuiltIn$2 = getBuiltIn$3;
|
|
379
|
+
var isCallable$a = isCallable$d;
|
|
380
|
+
var isPrototypeOf = objectIsPrototypeOf;
|
|
381
|
+
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
183
382
|
|
|
184
|
-
var
|
|
185
|
-
var definePropertyModule$3 = objectDefineProperty;
|
|
186
|
-
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
383
|
+
var $Object$1 = Object;
|
|
187
384
|
|
|
188
|
-
var
|
|
189
|
-
return
|
|
190
|
-
} : function (
|
|
191
|
-
|
|
192
|
-
return
|
|
385
|
+
var isSymbol$2 = USE_SYMBOL_AS_UID ? function (it) {
|
|
386
|
+
return typeof it == 'symbol';
|
|
387
|
+
} : function (it) {
|
|
388
|
+
var $Symbol = getBuiltIn$2('Symbol');
|
|
389
|
+
return isCallable$a($Symbol) && isPrototypeOf($Symbol.prototype, $Object$1(it));
|
|
193
390
|
};
|
|
194
391
|
|
|
195
|
-
var
|
|
196
|
-
var createNonEnumerableProperty$6 = createNonEnumerableProperty$7;
|
|
392
|
+
var $String$2 = String;
|
|
197
393
|
|
|
198
|
-
var
|
|
394
|
+
var tryToString$1 = function (argument) {
|
|
199
395
|
try {
|
|
200
|
-
|
|
396
|
+
return $String$2(argument);
|
|
201
397
|
} catch (error) {
|
|
202
|
-
|
|
203
|
-
}
|
|
398
|
+
return 'Object';
|
|
399
|
+
}
|
|
204
400
|
};
|
|
205
401
|
|
|
206
|
-
var
|
|
207
|
-
var
|
|
208
|
-
|
|
209
|
-
var SHARED = '__core-js_shared__';
|
|
210
|
-
var store$3 = global$9[SHARED] || setGlobal$2(SHARED, {});
|
|
211
|
-
|
|
212
|
-
var sharedStore = store$3;
|
|
402
|
+
var isCallable$9 = isCallable$d;
|
|
403
|
+
var tryToString = tryToString$1;
|
|
213
404
|
|
|
214
|
-
var
|
|
405
|
+
var $TypeError$4 = TypeError;
|
|
215
406
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
|
|
222
|
-
});
|
|
407
|
+
// `Assert: IsCallable(argument) is true`
|
|
408
|
+
var aCallable$2 = function (argument) {
|
|
409
|
+
if (isCallable$9(argument)) return argument;
|
|
410
|
+
throw new $TypeError$4(tryToString(argument) + ' is not a function');
|
|
411
|
+
};
|
|
223
412
|
|
|
224
|
-
var
|
|
413
|
+
var aCallable$1 = aCallable$2;
|
|
414
|
+
var isNullOrUndefined = isNullOrUndefined$2;
|
|
225
415
|
|
|
226
|
-
|
|
227
|
-
|
|
416
|
+
// `GetMethod` abstract operation
|
|
417
|
+
// https://tc39.es/ecma262/#sec-getmethod
|
|
418
|
+
var getMethod$1 = function (V, P) {
|
|
419
|
+
var func = V[P];
|
|
420
|
+
return isNullOrUndefined(func) ? undefined : aCallable$1(func);
|
|
228
421
|
};
|
|
229
422
|
|
|
230
|
-
var
|
|
231
|
-
var
|
|
423
|
+
var call$3 = functionCall;
|
|
424
|
+
var isCallable$8 = isCallable$d;
|
|
425
|
+
var isObject$5 = isObject$8;
|
|
232
426
|
|
|
233
|
-
var
|
|
234
|
-
|
|
427
|
+
var $TypeError$3 = TypeError;
|
|
428
|
+
|
|
429
|
+
// `OrdinaryToPrimitive` abstract operation
|
|
430
|
+
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
431
|
+
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
432
|
+
var fn, val;
|
|
433
|
+
if (pref === 'string' && isCallable$8(fn = input.toString) && !isObject$5(val = call$3(fn, input))) return val;
|
|
434
|
+
if (isCallable$8(fn = input.valueOf) && !isObject$5(val = call$3(fn, input))) return val;
|
|
435
|
+
if (pref !== 'string' && isCallable$8(fn = input.toString) && !isObject$5(val = call$3(fn, input))) return val;
|
|
436
|
+
throw new $TypeError$3("Can't convert object to primitive value");
|
|
235
437
|
};
|
|
236
438
|
|
|
237
|
-
var
|
|
439
|
+
var call$2 = functionCall;
|
|
440
|
+
var isObject$4 = isObject$8;
|
|
441
|
+
var isSymbol$1 = isSymbol$2;
|
|
442
|
+
var getMethod = getMethod$1;
|
|
443
|
+
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
444
|
+
var wellKnownSymbol$5 = wellKnownSymbol$6;
|
|
238
445
|
|
|
239
|
-
var
|
|
240
|
-
|
|
241
|
-
// eslint-disable-next-line no-undef
|
|
242
|
-
return !String(Symbol());
|
|
243
|
-
});
|
|
446
|
+
var $TypeError$2 = TypeError;
|
|
447
|
+
var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive');
|
|
244
448
|
|
|
245
|
-
|
|
449
|
+
// `ToPrimitive` abstract operation
|
|
450
|
+
// https://tc39.es/ecma262/#sec-toprimitive
|
|
451
|
+
var toPrimitive$1 = function (input, pref) {
|
|
452
|
+
if (!isObject$4(input) || isSymbol$1(input)) return input;
|
|
453
|
+
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
|
454
|
+
var result;
|
|
455
|
+
if (exoticToPrim) {
|
|
456
|
+
if (pref === undefined) pref = 'default';
|
|
457
|
+
result = call$2(exoticToPrim, input, pref);
|
|
458
|
+
if (!isObject$4(result) || isSymbol$1(result)) return result;
|
|
459
|
+
throw new $TypeError$2("Can't convert object to primitive value");
|
|
460
|
+
}
|
|
461
|
+
if (pref === undefined) pref = 'number';
|
|
462
|
+
return ordinaryToPrimitive(input, pref);
|
|
463
|
+
};
|
|
246
464
|
|
|
247
|
-
var
|
|
248
|
-
|
|
249
|
-
&& !Symbol.sham
|
|
250
|
-
// eslint-disable-next-line no-undef
|
|
251
|
-
&& typeof Symbol.iterator == 'symbol';
|
|
465
|
+
var toPrimitive = toPrimitive$1;
|
|
466
|
+
var isSymbol = isSymbol$2;
|
|
252
467
|
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
var
|
|
256
|
-
var
|
|
257
|
-
|
|
258
|
-
|
|
468
|
+
// `ToPropertyKey` abstract operation
|
|
469
|
+
// https://tc39.es/ecma262/#sec-topropertykey
|
|
470
|
+
var toPropertyKey$2 = function (argument) {
|
|
471
|
+
var key = toPrimitive(argument, 'string');
|
|
472
|
+
return isSymbol(key) ? key : key + '';
|
|
473
|
+
};
|
|
259
474
|
|
|
260
|
-
var
|
|
261
|
-
var
|
|
262
|
-
var
|
|
475
|
+
var DESCRIPTORS$6 = descriptors;
|
|
476
|
+
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
477
|
+
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
478
|
+
var anObject$3 = anObject$4;
|
|
479
|
+
var toPropertyKey$1 = toPropertyKey$2;
|
|
480
|
+
|
|
481
|
+
var $TypeError$1 = TypeError;
|
|
482
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
483
|
+
var $defineProperty = Object.defineProperty;
|
|
484
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
485
|
+
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
486
|
+
var ENUMERABLE = 'enumerable';
|
|
487
|
+
var CONFIGURABLE$1 = 'configurable';
|
|
488
|
+
var WRITABLE = 'writable';
|
|
263
489
|
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
490
|
+
// `Object.defineProperty` method
|
|
491
|
+
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
492
|
+
objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
493
|
+
anObject$3(O);
|
|
494
|
+
P = toPropertyKey$1(P);
|
|
495
|
+
anObject$3(Attributes);
|
|
496
|
+
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
497
|
+
var current = $getOwnPropertyDescriptor$1(O, P);
|
|
498
|
+
if (current && current[WRITABLE]) {
|
|
499
|
+
O[P] = Attributes.value;
|
|
500
|
+
Attributes = {
|
|
501
|
+
configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
|
|
502
|
+
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
|
|
503
|
+
writable: false
|
|
504
|
+
};
|
|
505
|
+
}
|
|
506
|
+
} return $defineProperty(O, P, Attributes);
|
|
507
|
+
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
508
|
+
anObject$3(O);
|
|
509
|
+
P = toPropertyKey$1(P);
|
|
510
|
+
anObject$3(Attributes);
|
|
511
|
+
if (IE8_DOM_DEFINE$1) try {
|
|
512
|
+
return $defineProperty(O, P, Attributes);
|
|
513
|
+
} catch (error) { /* empty */ }
|
|
514
|
+
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$1('Accessors not supported');
|
|
515
|
+
if ('value' in Attributes) O[P] = Attributes.value;
|
|
516
|
+
return O;
|
|
269
517
|
};
|
|
270
518
|
|
|
271
519
|
var ceil = Math.ceil;
|
|
272
520
|
var floor = Math.floor;
|
|
273
521
|
|
|
274
|
-
// `
|
|
275
|
-
// https://tc39.
|
|
276
|
-
|
|
277
|
-
|
|
522
|
+
// `Math.trunc` method
|
|
523
|
+
// https://tc39.es/ecma262/#sec-math.trunc
|
|
524
|
+
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
525
|
+
var mathTrunc = Math.trunc || function trunc(x) {
|
|
526
|
+
var n = +x;
|
|
527
|
+
return (n > 0 ? floor : ceil)(n);
|
|
278
528
|
};
|
|
279
529
|
|
|
280
|
-
var
|
|
530
|
+
var trunc = mathTrunc;
|
|
281
531
|
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
return
|
|
532
|
+
// `ToIntegerOrInfinity` abstract operation
|
|
533
|
+
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
534
|
+
var toIntegerOrInfinity$2 = function (argument) {
|
|
535
|
+
var number = +argument;
|
|
536
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
537
|
+
return number !== number || number === 0 ? 0 : trunc(number);
|
|
288
538
|
};
|
|
289
539
|
|
|
290
|
-
var
|
|
540
|
+
var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
|
|
291
541
|
|
|
292
542
|
var max = Math.max;
|
|
293
|
-
var min = Math.min;
|
|
543
|
+
var min$1 = Math.min;
|
|
294
544
|
|
|
295
545
|
// Helper for a popular repeating case of the spec:
|
|
296
546
|
// Let integer be ? ToInteger(index).
|
|
297
547
|
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
298
548
|
var toAbsoluteIndex$1 = function (index, length) {
|
|
299
|
-
var integer =
|
|
300
|
-
return integer < 0 ? max(integer + length, 0) : min(integer, length);
|
|
549
|
+
var integer = toIntegerOrInfinity$1(index);
|
|
550
|
+
return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
|
|
551
|
+
};
|
|
552
|
+
|
|
553
|
+
var toIntegerOrInfinity = toIntegerOrInfinity$2;
|
|
554
|
+
|
|
555
|
+
var min = Math.min;
|
|
556
|
+
|
|
557
|
+
// `ToLength` abstract operation
|
|
558
|
+
// https://tc39.es/ecma262/#sec-tolength
|
|
559
|
+
var toLength$1 = function (argument) {
|
|
560
|
+
var len = toIntegerOrInfinity(argument);
|
|
561
|
+
return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
301
562
|
};
|
|
302
563
|
|
|
303
|
-
var toIndexedObject$3 = toIndexedObject$4;
|
|
304
564
|
var toLength = toLength$1;
|
|
565
|
+
|
|
566
|
+
// `LengthOfArrayLike` abstract operation
|
|
567
|
+
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
568
|
+
var lengthOfArrayLike$1 = function (obj) {
|
|
569
|
+
return toLength(obj.length);
|
|
570
|
+
};
|
|
571
|
+
|
|
572
|
+
var toIndexedObject$4 = toIndexedObject$5;
|
|
305
573
|
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
574
|
+
var lengthOfArrayLike = lengthOfArrayLike$1;
|
|
306
575
|
|
|
307
576
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
308
577
|
var createMethod = function (IS_INCLUDES) {
|
|
309
578
|
return function ($this, el, fromIndex) {
|
|
310
|
-
var O = toIndexedObject$
|
|
311
|
-
var length =
|
|
579
|
+
var O = toIndexedObject$4($this);
|
|
580
|
+
var length = lengthOfArrayLike(O);
|
|
581
|
+
if (length === 0) return !IS_INCLUDES && -1;
|
|
312
582
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
313
583
|
var value;
|
|
314
584
|
// Array#includes uses SameValueZero equality algorithm
|
|
315
|
-
// eslint-disable-next-line no-self-compare
|
|
316
|
-
if (IS_INCLUDES && el
|
|
585
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
586
|
+
if (IS_INCLUDES && el !== el) while (length > index) {
|
|
317
587
|
value = O[index++];
|
|
318
|
-
// eslint-disable-next-line no-self-compare
|
|
319
|
-
if (value
|
|
588
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
589
|
+
if (value !== value) return true;
|
|
320
590
|
// Array#indexOf ignores holes, Array#includes - not
|
|
321
591
|
} else for (;length > index; index++) {
|
|
322
592
|
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
@@ -326,29 +596,32 @@ var createMethod = function (IS_INCLUDES) {
|
|
|
326
596
|
|
|
327
597
|
var arrayIncludes = {
|
|
328
598
|
// `Array.prototype.includes` method
|
|
329
|
-
// https://tc39.
|
|
599
|
+
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
330
600
|
includes: createMethod(true),
|
|
331
601
|
// `Array.prototype.indexOf` method
|
|
332
|
-
// https://tc39.
|
|
602
|
+
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
333
603
|
indexOf: createMethod(false)
|
|
334
604
|
};
|
|
335
605
|
|
|
336
606
|
var hiddenKeys$4 = {};
|
|
337
607
|
|
|
338
|
-
var
|
|
339
|
-
var
|
|
608
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
609
|
+
var hasOwn$7 = hasOwnProperty_1;
|
|
610
|
+
var toIndexedObject$3 = toIndexedObject$5;
|
|
340
611
|
var indexOf = arrayIncludes.indexOf;
|
|
341
612
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
342
613
|
|
|
614
|
+
var push = uncurryThis$4([].push);
|
|
615
|
+
|
|
343
616
|
var objectKeysInternal = function (object, names) {
|
|
344
|
-
var O = toIndexedObject$
|
|
617
|
+
var O = toIndexedObject$3(object);
|
|
345
618
|
var i = 0;
|
|
346
619
|
var result = [];
|
|
347
620
|
var key;
|
|
348
|
-
for (key in O) !
|
|
621
|
+
for (key in O) !hasOwn$7(hiddenKeys$3, key) && hasOwn$7(O, key) && push(result, key);
|
|
349
622
|
// Don't enum bug & hidden keys
|
|
350
|
-
while (names.length > i) if (
|
|
351
|
-
~indexOf(result, key) ||
|
|
623
|
+
while (names.length > i) if (hasOwn$7(O, key = names[i++])) {
|
|
624
|
+
~indexOf(result, key) || push(result, key);
|
|
352
625
|
}
|
|
353
626
|
return result;
|
|
354
627
|
};
|
|
@@ -368,63 +641,53 @@ var internalObjectKeys$1 = objectKeysInternal;
|
|
|
368
641
|
var enumBugKeys$2 = enumBugKeys$3;
|
|
369
642
|
|
|
370
643
|
// `Object.keys` method
|
|
371
|
-
// https://tc39.
|
|
644
|
+
// https://tc39.es/ecma262/#sec-object.keys
|
|
645
|
+
// eslint-disable-next-line es/no-object-keys -- safe
|
|
372
646
|
var objectKeys$1 = Object.keys || function keys(O) {
|
|
373
647
|
return internalObjectKeys$1(O, enumBugKeys$2);
|
|
374
648
|
};
|
|
375
649
|
|
|
376
|
-
var DESCRIPTORS$
|
|
377
|
-
var
|
|
378
|
-
var
|
|
650
|
+
var DESCRIPTORS$5 = descriptors;
|
|
651
|
+
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
652
|
+
var definePropertyModule$3 = objectDefineProperty;
|
|
653
|
+
var anObject$2 = anObject$4;
|
|
654
|
+
var toIndexedObject$2 = toIndexedObject$5;
|
|
379
655
|
var objectKeys = objectKeys$1;
|
|
380
656
|
|
|
381
657
|
// `Object.defineProperties` method
|
|
382
|
-
// https://tc39.
|
|
383
|
-
|
|
384
|
-
|
|
658
|
+
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
659
|
+
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
660
|
+
objectDefineProperties.f = DESCRIPTORS$5 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
661
|
+
anObject$2(O);
|
|
662
|
+
var props = toIndexedObject$2(Properties);
|
|
385
663
|
var keys = objectKeys(Properties);
|
|
386
664
|
var length = keys.length;
|
|
387
665
|
var index = 0;
|
|
388
666
|
var key;
|
|
389
|
-
while (length > index) definePropertyModule$
|
|
667
|
+
while (length > index) definePropertyModule$3.f(O, key = keys[index++], props[key]);
|
|
390
668
|
return O;
|
|
391
669
|
};
|
|
392
670
|
|
|
393
|
-
var
|
|
394
|
-
|
|
395
|
-
var path$1 = global$7;
|
|
396
|
-
|
|
397
|
-
var path = path$1;
|
|
398
|
-
var global$6 = global$c;
|
|
399
|
-
|
|
400
|
-
var aFunction = function (variable) {
|
|
401
|
-
return typeof variable == 'function' ? variable : undefined;
|
|
402
|
-
};
|
|
403
|
-
|
|
404
|
-
var getBuiltIn$2 = function (namespace, method) {
|
|
405
|
-
return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global$6[namespace])
|
|
406
|
-
: path[namespace] && path[namespace][method] || global$6[namespace] && global$6[namespace][method];
|
|
407
|
-
};
|
|
408
|
-
|
|
409
|
-
var getBuiltIn$1 = getBuiltIn$2;
|
|
671
|
+
var getBuiltIn$1 = getBuiltIn$3;
|
|
410
672
|
|
|
411
673
|
var html$1 = getBuiltIn$1('document', 'documentElement');
|
|
412
674
|
|
|
413
|
-
var shared = shared$
|
|
675
|
+
var shared$1 = shared$3;
|
|
414
676
|
var uid = uid$2;
|
|
415
677
|
|
|
416
|
-
var keys = shared('keys');
|
|
678
|
+
var keys = shared$1('keys');
|
|
417
679
|
|
|
418
680
|
var sharedKey$3 = function (key) {
|
|
419
681
|
return keys[key] || (keys[key] = uid(key));
|
|
420
682
|
};
|
|
421
683
|
|
|
422
|
-
|
|
423
|
-
var
|
|
684
|
+
/* global ActiveXObject -- old IE, WSH */
|
|
685
|
+
var anObject$1 = anObject$4;
|
|
686
|
+
var definePropertiesModule = objectDefineProperties;
|
|
424
687
|
var enumBugKeys$1 = enumBugKeys$3;
|
|
425
688
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
426
689
|
var html = html$1;
|
|
427
|
-
var documentCreateElement = documentCreateElement$
|
|
690
|
+
var documentCreateElement$1 = documentCreateElement$2;
|
|
428
691
|
var sharedKey$2 = sharedKey$3;
|
|
429
692
|
|
|
430
693
|
var GT = '>';
|
|
@@ -451,7 +714,7 @@ var NullProtoObjectViaActiveX = function (activeXDocument) {
|
|
|
451
714
|
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
452
715
|
var NullProtoObjectViaIFrame = function () {
|
|
453
716
|
// Thrash, waste and sodomy: IE GC bug
|
|
454
|
-
var iframe = documentCreateElement('iframe');
|
|
717
|
+
var iframe = documentCreateElement$1('iframe');
|
|
455
718
|
var JS = 'java' + SCRIPT + ':';
|
|
456
719
|
var iframeDocument;
|
|
457
720
|
iframe.style.display = 'none';
|
|
@@ -473,10 +736,13 @@ var NullProtoObjectViaIFrame = function () {
|
|
|
473
736
|
var activeXDocument;
|
|
474
737
|
var NullProtoObject = function () {
|
|
475
738
|
try {
|
|
476
|
-
|
|
477
|
-
activeXDocument = document.domain && new ActiveXObject('htmlfile');
|
|
739
|
+
activeXDocument = new ActiveXObject('htmlfile');
|
|
478
740
|
} catch (error) { /* ignore */ }
|
|
479
|
-
NullProtoObject =
|
|
741
|
+
NullProtoObject = typeof document != 'undefined'
|
|
742
|
+
? document.domain && activeXDocument
|
|
743
|
+
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
|
744
|
+
: NullProtoObjectViaIFrame()
|
|
745
|
+
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
|
480
746
|
var length = enumBugKeys$1.length;
|
|
481
747
|
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys$1[length]];
|
|
482
748
|
return NullProtoObject();
|
|
@@ -485,30 +751,31 @@ var NullProtoObject = function () {
|
|
|
485
751
|
hiddenKeys$2[IE_PROTO$1] = true;
|
|
486
752
|
|
|
487
753
|
// `Object.create` method
|
|
488
|
-
// https://tc39.
|
|
754
|
+
// https://tc39.es/ecma262/#sec-object.create
|
|
755
|
+
// eslint-disable-next-line es/no-object-create -- safe
|
|
489
756
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
490
757
|
var result;
|
|
491
758
|
if (O !== null) {
|
|
492
|
-
EmptyConstructor[PROTOTYPE] = anObject$
|
|
759
|
+
EmptyConstructor[PROTOTYPE] = anObject$1(O);
|
|
493
760
|
result = new EmptyConstructor();
|
|
494
761
|
EmptyConstructor[PROTOTYPE] = null;
|
|
495
762
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
496
763
|
result[IE_PROTO$1] = O;
|
|
497
764
|
} else result = NullProtoObject();
|
|
498
|
-
return Properties === undefined ? result :
|
|
765
|
+
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
499
766
|
};
|
|
500
767
|
|
|
501
|
-
var wellKnownSymbol$4 = wellKnownSymbol$
|
|
768
|
+
var wellKnownSymbol$4 = wellKnownSymbol$6;
|
|
502
769
|
var create$1 = objectCreate;
|
|
503
|
-
var
|
|
770
|
+
var defineProperty$3 = objectDefineProperty.f;
|
|
504
771
|
|
|
505
772
|
var UNSCOPABLES = wellKnownSymbol$4('unscopables');
|
|
506
773
|
var ArrayPrototype = Array.prototype;
|
|
507
774
|
|
|
508
775
|
// Array.prototype[@@unscopables]
|
|
509
|
-
// https://tc39.
|
|
510
|
-
if (ArrayPrototype[UNSCOPABLES]
|
|
511
|
-
|
|
776
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
777
|
+
if (ArrayPrototype[UNSCOPABLES] === undefined) {
|
|
778
|
+
defineProperty$3(ArrayPrototype, UNSCOPABLES, {
|
|
512
779
|
configurable: true,
|
|
513
780
|
value: create$1(null)
|
|
514
781
|
});
|
|
@@ -521,84 +788,100 @@ var addToUnscopables$1 = function (key) {
|
|
|
521
788
|
|
|
522
789
|
var iterators = {};
|
|
523
790
|
|
|
524
|
-
var
|
|
791
|
+
var global$4 = global$b;
|
|
792
|
+
var isCallable$7 = isCallable$d;
|
|
525
793
|
|
|
526
|
-
var
|
|
794
|
+
var WeakMap$1 = global$4.WeakMap;
|
|
527
795
|
|
|
528
|
-
|
|
529
|
-
if (typeof store$1.inspectSource != 'function') {
|
|
530
|
-
store$1.inspectSource = function (it) {
|
|
531
|
-
return functionToString.call(it);
|
|
532
|
-
};
|
|
533
|
-
}
|
|
796
|
+
var weakMapBasicDetection = isCallable$7(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
534
797
|
|
|
535
|
-
var
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
798
|
+
var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
799
|
+
return {
|
|
800
|
+
enumerable: !(bitmap & 1),
|
|
801
|
+
configurable: !(bitmap & 2),
|
|
802
|
+
writable: !(bitmap & 4),
|
|
803
|
+
value: value
|
|
804
|
+
};
|
|
805
|
+
};
|
|
539
806
|
|
|
540
|
-
var
|
|
807
|
+
var DESCRIPTORS$4 = descriptors;
|
|
808
|
+
var definePropertyModule$2 = objectDefineProperty;
|
|
809
|
+
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
541
810
|
|
|
542
|
-
var
|
|
811
|
+
var createNonEnumerableProperty$4 = DESCRIPTORS$4 ? function (object, key, value) {
|
|
812
|
+
return definePropertyModule$2.f(object, key, createPropertyDescriptor$2(1, value));
|
|
813
|
+
} : function (object, key, value) {
|
|
814
|
+
object[key] = value;
|
|
815
|
+
return object;
|
|
816
|
+
};
|
|
543
817
|
|
|
544
|
-
var NATIVE_WEAK_MAP =
|
|
545
|
-
var global$
|
|
546
|
-
var isObject$
|
|
547
|
-
var createNonEnumerableProperty$
|
|
548
|
-
var
|
|
818
|
+
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
819
|
+
var global$3 = global$b;
|
|
820
|
+
var isObject$3 = isObject$8;
|
|
821
|
+
var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
|
|
822
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
823
|
+
var shared = sharedStoreExports;
|
|
549
824
|
var sharedKey$1 = sharedKey$3;
|
|
550
825
|
var hiddenKeys$1 = hiddenKeys$4;
|
|
551
826
|
|
|
552
|
-
var
|
|
553
|
-
var
|
|
827
|
+
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
828
|
+
var TypeError$1 = global$3.TypeError;
|
|
829
|
+
var WeakMap = global$3.WeakMap;
|
|
830
|
+
var set, get, has;
|
|
554
831
|
|
|
555
832
|
var enforce = function (it) {
|
|
556
|
-
return has
|
|
833
|
+
return has(it) ? get(it) : set(it, {});
|
|
557
834
|
};
|
|
558
835
|
|
|
559
836
|
var getterFor = function (TYPE) {
|
|
560
837
|
return function (it) {
|
|
561
838
|
var state;
|
|
562
|
-
if (!isObject$
|
|
563
|
-
throw TypeError('Incompatible receiver, ' + TYPE + ' required');
|
|
839
|
+
if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
|
|
840
|
+
throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
|
|
564
841
|
} return state;
|
|
565
842
|
};
|
|
566
843
|
};
|
|
567
844
|
|
|
568
|
-
if (NATIVE_WEAK_MAP) {
|
|
569
|
-
var store = new WeakMap();
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
845
|
+
if (NATIVE_WEAK_MAP || shared.state) {
|
|
846
|
+
var store$1 = shared.state || (shared.state = new WeakMap());
|
|
847
|
+
/* eslint-disable no-self-assign -- prototype methods protection */
|
|
848
|
+
store$1.get = store$1.get;
|
|
849
|
+
store$1.has = store$1.has;
|
|
850
|
+
store$1.set = store$1.set;
|
|
851
|
+
/* eslint-enable no-self-assign -- prototype methods protection */
|
|
573
852
|
set = function (it, metadata) {
|
|
574
|
-
|
|
853
|
+
if (store$1.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
854
|
+
metadata.facade = it;
|
|
855
|
+
store$1.set(it, metadata);
|
|
575
856
|
return metadata;
|
|
576
857
|
};
|
|
577
858
|
get = function (it) {
|
|
578
|
-
return
|
|
859
|
+
return store$1.get(it) || {};
|
|
579
860
|
};
|
|
580
|
-
has
|
|
581
|
-
return
|
|
861
|
+
has = function (it) {
|
|
862
|
+
return store$1.has(it);
|
|
582
863
|
};
|
|
583
864
|
} else {
|
|
584
865
|
var STATE = sharedKey$1('state');
|
|
585
866
|
hiddenKeys$1[STATE] = true;
|
|
586
867
|
set = function (it, metadata) {
|
|
587
|
-
|
|
868
|
+
if (hasOwn$6(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
869
|
+
metadata.facade = it;
|
|
870
|
+
createNonEnumerableProperty$3(it, STATE, metadata);
|
|
588
871
|
return metadata;
|
|
589
872
|
};
|
|
590
873
|
get = function (it) {
|
|
591
|
-
return
|
|
874
|
+
return hasOwn$6(it, STATE) ? it[STATE] : {};
|
|
592
875
|
};
|
|
593
|
-
has
|
|
594
|
-
return
|
|
876
|
+
has = function (it) {
|
|
877
|
+
return hasOwn$6(it, STATE);
|
|
595
878
|
};
|
|
596
879
|
}
|
|
597
880
|
|
|
598
881
|
var internalState = {
|
|
599
882
|
set: set,
|
|
600
883
|
get: get,
|
|
601
|
-
has: has
|
|
884
|
+
has: has,
|
|
602
885
|
enforce: enforce,
|
|
603
886
|
getterFor: getterFor
|
|
604
887
|
};
|
|
@@ -607,76 +890,162 @@ var objectGetOwnPropertyDescriptor = {};
|
|
|
607
890
|
|
|
608
891
|
var objectPropertyIsEnumerable = {};
|
|
609
892
|
|
|
610
|
-
var
|
|
893
|
+
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
894
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
611
895
|
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
612
896
|
|
|
613
897
|
// Nashorn ~ JDK8 bug
|
|
614
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$1 &&
|
|
898
|
+
var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
615
899
|
|
|
616
900
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
617
|
-
// https://tc39.
|
|
901
|
+
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
618
902
|
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
619
903
|
var descriptor = getOwnPropertyDescriptor$1(this, V);
|
|
620
904
|
return !!descriptor && descriptor.enumerable;
|
|
621
|
-
} :
|
|
905
|
+
} : $propertyIsEnumerable;
|
|
622
906
|
|
|
623
|
-
var DESCRIPTORS = descriptors;
|
|
907
|
+
var DESCRIPTORS$3 = descriptors;
|
|
908
|
+
var call$1 = functionCall;
|
|
624
909
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
625
910
|
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
|
626
|
-
var toIndexedObject$1 = toIndexedObject$
|
|
627
|
-
var
|
|
628
|
-
var
|
|
911
|
+
var toIndexedObject$1 = toIndexedObject$5;
|
|
912
|
+
var toPropertyKey = toPropertyKey$2;
|
|
913
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
629
914
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
630
915
|
|
|
631
|
-
|
|
916
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
917
|
+
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
632
918
|
|
|
633
919
|
// `Object.getOwnPropertyDescriptor` method
|
|
634
|
-
// https://tc39.
|
|
635
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS ?
|
|
920
|
+
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
921
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$3 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
|
636
922
|
O = toIndexedObject$1(O);
|
|
637
|
-
P =
|
|
923
|
+
P = toPropertyKey(P);
|
|
638
924
|
if (IE8_DOM_DEFINE) try {
|
|
639
|
-
return
|
|
925
|
+
return $getOwnPropertyDescriptor(O, P);
|
|
640
926
|
} catch (error) { /* empty */ }
|
|
641
|
-
if (
|
|
927
|
+
if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$1(propertyIsEnumerableModule.f, O, P), O[P]);
|
|
642
928
|
};
|
|
643
929
|
|
|
644
|
-
var
|
|
930
|
+
var makeBuiltIn$2 = {exports: {}};
|
|
931
|
+
|
|
932
|
+
var DESCRIPTORS$2 = descriptors;
|
|
933
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
934
|
+
|
|
935
|
+
var FunctionPrototype = Function.prototype;
|
|
936
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
937
|
+
var getDescriptor = DESCRIPTORS$2 && Object.getOwnPropertyDescriptor;
|
|
938
|
+
|
|
939
|
+
var EXISTS = hasOwn$4(FunctionPrototype, 'name');
|
|
940
|
+
// additional protection from minified / mangled / dropped function names
|
|
941
|
+
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
942
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$2 || (DESCRIPTORS$2 && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
943
|
+
|
|
944
|
+
var functionName = {
|
|
945
|
+
EXISTS: EXISTS,
|
|
946
|
+
PROPER: PROPER,
|
|
947
|
+
CONFIGURABLE: CONFIGURABLE
|
|
948
|
+
};
|
|
949
|
+
|
|
950
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
951
|
+
var isCallable$6 = isCallable$d;
|
|
952
|
+
var store = sharedStoreExports;
|
|
953
|
+
|
|
954
|
+
var functionToString = uncurryThis$3(Function.toString);
|
|
955
|
+
|
|
956
|
+
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
957
|
+
if (!isCallable$6(store.inspectSource)) {
|
|
958
|
+
store.inspectSource = function (it) {
|
|
959
|
+
return functionToString(it);
|
|
960
|
+
};
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
var inspectSource$1 = store.inspectSource;
|
|
645
964
|
|
|
646
|
-
var
|
|
647
|
-
var
|
|
648
|
-
var
|
|
649
|
-
var
|
|
650
|
-
var
|
|
965
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
966
|
+
var fails$3 = fails$a;
|
|
967
|
+
var isCallable$5 = isCallable$d;
|
|
968
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
969
|
+
var DESCRIPTORS$1 = descriptors;
|
|
970
|
+
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
971
|
+
var inspectSource = inspectSource$1;
|
|
651
972
|
var InternalStateModule$1 = internalState;
|
|
652
973
|
|
|
653
|
-
var getInternalState$1 = InternalStateModule$1.get;
|
|
654
974
|
var enforceInternalState = InternalStateModule$1.enforce;
|
|
975
|
+
var getInternalState$1 = InternalStateModule$1.get;
|
|
976
|
+
var $String$1 = String;
|
|
977
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
978
|
+
var defineProperty$2 = Object.defineProperty;
|
|
979
|
+
var stringSlice = uncurryThis$2(''.slice);
|
|
980
|
+
var replace = uncurryThis$2(''.replace);
|
|
981
|
+
var join = uncurryThis$2([].join);
|
|
982
|
+
|
|
983
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$1 && !fails$3(function () {
|
|
984
|
+
return defineProperty$2(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
985
|
+
});
|
|
986
|
+
|
|
655
987
|
var TEMPLATE = String(String).split('String');
|
|
656
988
|
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
var noTargetGet = options ? !!options.noTargetGet : false;
|
|
661
|
-
if (typeof value == 'function') {
|
|
662
|
-
if (typeof key == 'string' && !has$4(value, 'name')) createNonEnumerableProperty$4(value, 'name', key);
|
|
663
|
-
enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');
|
|
989
|
+
var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
990
|
+
if (stringSlice($String$1(name), 0, 7) === 'Symbol(') {
|
|
991
|
+
name = '[' + replace($String$1(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
|
|
664
992
|
}
|
|
665
|
-
if (
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
993
|
+
if (options && options.getter) name = 'get ' + name;
|
|
994
|
+
if (options && options.setter) name = 'set ' + name;
|
|
995
|
+
if (!hasOwn$3(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
996
|
+
if (DESCRIPTORS$1) defineProperty$2(value, 'name', { value: name, configurable: true });
|
|
997
|
+
else value.name = name;
|
|
998
|
+
}
|
|
999
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$3(options, 'arity') && value.length !== options.arity) {
|
|
1000
|
+
defineProperty$2(value, 'length', { value: options.arity });
|
|
673
1001
|
}
|
|
674
|
-
|
|
675
|
-
|
|
1002
|
+
try {
|
|
1003
|
+
if (options && hasOwn$3(options, 'constructor') && options.constructor) {
|
|
1004
|
+
if (DESCRIPTORS$1) defineProperty$2(value, 'prototype', { writable: false });
|
|
1005
|
+
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
1006
|
+
} else if (value.prototype) value.prototype = undefined;
|
|
1007
|
+
} catch (error) { /* empty */ }
|
|
1008
|
+
var state = enforceInternalState(value);
|
|
1009
|
+
if (!hasOwn$3(state, 'source')) {
|
|
1010
|
+
state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
|
|
1011
|
+
} return value;
|
|
1012
|
+
};
|
|
1013
|
+
|
|
676
1014
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
1015
|
+
// eslint-disable-next-line no-extend-native -- required
|
|
1016
|
+
Function.prototype.toString = makeBuiltIn$1(function toString() {
|
|
1017
|
+
return isCallable$5(this) && getInternalState$1(this).source || inspectSource(this);
|
|
1018
|
+
}, 'toString');
|
|
1019
|
+
|
|
1020
|
+
var makeBuiltInExports = makeBuiltIn$2.exports;
|
|
1021
|
+
|
|
1022
|
+
var isCallable$4 = isCallable$d;
|
|
1023
|
+
var definePropertyModule$1 = objectDefineProperty;
|
|
1024
|
+
var makeBuiltIn = makeBuiltInExports;
|
|
1025
|
+
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
1026
|
+
|
|
1027
|
+
var defineBuiltIn$3 = function (O, key, value, options) {
|
|
1028
|
+
if (!options) options = {};
|
|
1029
|
+
var simple = options.enumerable;
|
|
1030
|
+
var name = options.name !== undefined ? options.name : key;
|
|
1031
|
+
if (isCallable$4(value)) makeBuiltIn(value, name, options);
|
|
1032
|
+
if (options.global) {
|
|
1033
|
+
if (simple) O[key] = value;
|
|
1034
|
+
else defineGlobalProperty$1(key, value);
|
|
1035
|
+
} else {
|
|
1036
|
+
try {
|
|
1037
|
+
if (!options.unsafe) delete O[key];
|
|
1038
|
+
else if (O[key]) simple = true;
|
|
1039
|
+
} catch (error) { /* empty */ }
|
|
1040
|
+
if (simple) O[key] = value;
|
|
1041
|
+
else definePropertyModule$1.f(O, key, {
|
|
1042
|
+
value: value,
|
|
1043
|
+
enumerable: false,
|
|
1044
|
+
configurable: !options.nonConfigurable,
|
|
1045
|
+
writable: !options.nonWritable
|
|
1046
|
+
});
|
|
1047
|
+
} return O;
|
|
1048
|
+
};
|
|
680
1049
|
|
|
681
1050
|
var objectGetOwnPropertyNames = {};
|
|
682
1051
|
|
|
@@ -686,51 +1055,59 @@ var enumBugKeys = enumBugKeys$3;
|
|
|
686
1055
|
var hiddenKeys = enumBugKeys.concat('length', 'prototype');
|
|
687
1056
|
|
|
688
1057
|
// `Object.getOwnPropertyNames` method
|
|
689
|
-
// https://tc39.
|
|
1058
|
+
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
1059
|
+
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
690
1060
|
objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
691
1061
|
return internalObjectKeys(O, hiddenKeys);
|
|
692
1062
|
};
|
|
693
1063
|
|
|
694
1064
|
var objectGetOwnPropertySymbols = {};
|
|
695
1065
|
|
|
1066
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
696
1067
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
697
1068
|
|
|
698
|
-
var getBuiltIn = getBuiltIn$
|
|
1069
|
+
var getBuiltIn = getBuiltIn$3;
|
|
1070
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
699
1071
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
700
1072
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
701
|
-
var anObject
|
|
1073
|
+
var anObject = anObject$4;
|
|
1074
|
+
|
|
1075
|
+
var concat = uncurryThis$1([].concat);
|
|
702
1076
|
|
|
703
1077
|
// all object keys, includes non-enumerable and symbols
|
|
704
1078
|
var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
705
|
-
var keys = getOwnPropertyNamesModule.f(anObject
|
|
1079
|
+
var keys = getOwnPropertyNamesModule.f(anObject(it));
|
|
706
1080
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
707
|
-
return getOwnPropertySymbols ?
|
|
1081
|
+
return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
|
|
708
1082
|
};
|
|
709
1083
|
|
|
710
|
-
var
|
|
1084
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
711
1085
|
var ownKeys = ownKeys$1;
|
|
712
1086
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
713
1087
|
var definePropertyModule = objectDefineProperty;
|
|
714
1088
|
|
|
715
|
-
var copyConstructorProperties$1 = function (target, source) {
|
|
1089
|
+
var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
716
1090
|
var keys = ownKeys(source);
|
|
717
1091
|
var defineProperty = definePropertyModule.f;
|
|
718
1092
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
719
1093
|
for (var i = 0; i < keys.length; i++) {
|
|
720
1094
|
var key = keys[i];
|
|
721
|
-
if (!
|
|
1095
|
+
if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
|
|
1096
|
+
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
1097
|
+
}
|
|
722
1098
|
}
|
|
723
1099
|
};
|
|
724
1100
|
|
|
725
|
-
var fails$
|
|
1101
|
+
var fails$2 = fails$a;
|
|
1102
|
+
var isCallable$3 = isCallable$d;
|
|
726
1103
|
|
|
727
1104
|
var replacement = /#|\.prototype\./;
|
|
728
1105
|
|
|
729
1106
|
var isForced$1 = function (feature, detection) {
|
|
730
1107
|
var value = data[normalize(feature)];
|
|
731
|
-
return value
|
|
732
|
-
: value
|
|
733
|
-
:
|
|
1108
|
+
return value === POLYFILL ? true
|
|
1109
|
+
: value === NATIVE ? false
|
|
1110
|
+
: isCallable$3(detection) ? fails$2(detection)
|
|
734
1111
|
: !!detection;
|
|
735
1112
|
};
|
|
736
1113
|
|
|
@@ -744,27 +1121,28 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
|
744
1121
|
|
|
745
1122
|
var isForced_1 = isForced$1;
|
|
746
1123
|
|
|
747
|
-
var global$2 = global$
|
|
1124
|
+
var global$2 = global$b;
|
|
748
1125
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
749
|
-
var createNonEnumerableProperty$
|
|
750
|
-
var
|
|
751
|
-
var
|
|
1126
|
+
var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
|
|
1127
|
+
var defineBuiltIn$2 = defineBuiltIn$3;
|
|
1128
|
+
var defineGlobalProperty = defineGlobalProperty$3;
|
|
752
1129
|
var copyConstructorProperties = copyConstructorProperties$1;
|
|
753
1130
|
var isForced = isForced_1;
|
|
754
1131
|
|
|
755
1132
|
/*
|
|
756
|
-
options.target
|
|
757
|
-
options.global
|
|
758
|
-
options.stat
|
|
759
|
-
options.proto
|
|
760
|
-
options.real
|
|
761
|
-
options.forced
|
|
762
|
-
options.bind
|
|
763
|
-
options.wrap
|
|
764
|
-
options.unsafe
|
|
765
|
-
options.sham
|
|
766
|
-
options.enumerable
|
|
767
|
-
options.
|
|
1133
|
+
options.target - name of the target object
|
|
1134
|
+
options.global - target is the global object
|
|
1135
|
+
options.stat - export as static methods of target
|
|
1136
|
+
options.proto - export as prototype methods of target
|
|
1137
|
+
options.real - real prototype method for the `pure` version
|
|
1138
|
+
options.forced - export even if the native feature is available
|
|
1139
|
+
options.bind - bind methods to the target, required for the `pure` version
|
|
1140
|
+
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
|
|
1141
|
+
options.unsafe - use the simple assignment of property instead of delete + defineProperty
|
|
1142
|
+
options.sham - add a flag to not completely full polyfills
|
|
1143
|
+
options.enumerable - export as enumerable property
|
|
1144
|
+
options.dontCallGetSet - prevent calling a getter on target
|
|
1145
|
+
options.name - the .name of the function if it does not match the key
|
|
768
1146
|
*/
|
|
769
1147
|
var _export = function (options, source) {
|
|
770
1148
|
var TARGET = options.target;
|
|
@@ -774,79 +1152,76 @@ var _export = function (options, source) {
|
|
|
774
1152
|
if (GLOBAL) {
|
|
775
1153
|
target = global$2;
|
|
776
1154
|
} else if (STATIC) {
|
|
777
|
-
target = global$2[TARGET] ||
|
|
1155
|
+
target = global$2[TARGET] || defineGlobalProperty(TARGET, {});
|
|
778
1156
|
} else {
|
|
779
|
-
target =
|
|
1157
|
+
target = global$2[TARGET] && global$2[TARGET].prototype;
|
|
780
1158
|
}
|
|
781
1159
|
if (target) for (key in source) {
|
|
782
1160
|
sourceProperty = source[key];
|
|
783
|
-
if (options.
|
|
1161
|
+
if (options.dontCallGetSet) {
|
|
784
1162
|
descriptor = getOwnPropertyDescriptor(target, key);
|
|
785
1163
|
targetProperty = descriptor && descriptor.value;
|
|
786
1164
|
} else targetProperty = target[key];
|
|
787
1165
|
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
788
1166
|
// contained in target
|
|
789
1167
|
if (!FORCED && targetProperty !== undefined) {
|
|
790
|
-
if (typeof sourceProperty
|
|
1168
|
+
if (typeof sourceProperty == typeof targetProperty) continue;
|
|
791
1169
|
copyConstructorProperties(sourceProperty, targetProperty);
|
|
792
1170
|
}
|
|
793
1171
|
// add a flag to not completely full polyfills
|
|
794
1172
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
795
|
-
createNonEnumerableProperty$
|
|
1173
|
+
createNonEnumerableProperty$2(sourceProperty, 'sham', true);
|
|
796
1174
|
}
|
|
797
|
-
|
|
798
|
-
redefine$1(target, key, sourceProperty, options);
|
|
1175
|
+
defineBuiltIn$2(target, key, sourceProperty, options);
|
|
799
1176
|
}
|
|
800
1177
|
};
|
|
801
1178
|
|
|
802
|
-
var
|
|
803
|
-
|
|
804
|
-
// `ToObject` abstract operation
|
|
805
|
-
// https://tc39.github.io/ecma262/#sec-toobject
|
|
806
|
-
var toObject$1 = function (argument) {
|
|
807
|
-
return Object(requireObjectCoercible(argument));
|
|
808
|
-
};
|
|
809
|
-
|
|
810
|
-
var fails = fails$6;
|
|
1179
|
+
var fails$1 = fails$a;
|
|
811
1180
|
|
|
812
|
-
var correctPrototypeGetter = !fails(function () {
|
|
1181
|
+
var correctPrototypeGetter = !fails$1(function () {
|
|
813
1182
|
function F() { /* empty */ }
|
|
814
1183
|
F.prototype.constructor = null;
|
|
1184
|
+
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
815
1185
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
816
1186
|
});
|
|
817
1187
|
|
|
818
|
-
var
|
|
819
|
-
var
|
|
1188
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
1189
|
+
var isCallable$2 = isCallable$d;
|
|
1190
|
+
var toObject = toObject$2;
|
|
820
1191
|
var sharedKey = sharedKey$3;
|
|
821
1192
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
822
1193
|
|
|
823
1194
|
var IE_PROTO = sharedKey('IE_PROTO');
|
|
824
|
-
var
|
|
1195
|
+
var $Object = Object;
|
|
1196
|
+
var ObjectPrototype = $Object.prototype;
|
|
825
1197
|
|
|
826
1198
|
// `Object.getPrototypeOf` method
|
|
827
|
-
// https://tc39.
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
if (
|
|
832
|
-
|
|
833
|
-
|
|
1199
|
+
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
1200
|
+
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
1201
|
+
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
|
|
1202
|
+
var object = toObject(O);
|
|
1203
|
+
if (hasOwn$1(object, IE_PROTO)) return object[IE_PROTO];
|
|
1204
|
+
var constructor = object.constructor;
|
|
1205
|
+
if (isCallable$2(constructor) && object instanceof constructor) {
|
|
1206
|
+
return constructor.prototype;
|
|
1207
|
+
} return object instanceof $Object ? ObjectPrototype : null;
|
|
834
1208
|
};
|
|
835
1209
|
|
|
1210
|
+
var fails = fails$a;
|
|
1211
|
+
var isCallable$1 = isCallable$d;
|
|
1212
|
+
var isObject$2 = isObject$8;
|
|
836
1213
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
837
|
-
var
|
|
838
|
-
var
|
|
839
|
-
var wellKnownSymbol$3 = wellKnownSymbol$5;
|
|
1214
|
+
var defineBuiltIn$1 = defineBuiltIn$3;
|
|
1215
|
+
var wellKnownSymbol$3 = wellKnownSymbol$6;
|
|
840
1216
|
|
|
841
1217
|
var ITERATOR$2 = wellKnownSymbol$3('iterator');
|
|
842
1218
|
var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
843
1219
|
|
|
844
|
-
var returnThis$2 = function () { return this; };
|
|
845
|
-
|
|
846
1220
|
// `%IteratorPrototype%` object
|
|
847
|
-
// https://tc39.
|
|
1221
|
+
// https://tc39.es/ecma262/#sec-%iteratorprototype%-object
|
|
848
1222
|
var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
|
849
1223
|
|
|
1224
|
+
/* eslint-disable es/no-array-prototype-keys -- safe */
|
|
850
1225
|
if ([].keys) {
|
|
851
1226
|
arrayIterator = [].keys();
|
|
852
1227
|
// Safari 8 has buggy iterators w/o `next`
|
|
@@ -857,11 +1232,20 @@ if ([].keys) {
|
|
|
857
1232
|
}
|
|
858
1233
|
}
|
|
859
1234
|
|
|
860
|
-
|
|
1235
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject$2(IteratorPrototype$2) || fails(function () {
|
|
1236
|
+
var test = {};
|
|
1237
|
+
// FF44- legacy iterators case
|
|
1238
|
+
return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
|
|
1239
|
+
});
|
|
1240
|
+
|
|
1241
|
+
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
|
|
861
1242
|
|
|
862
|
-
//
|
|
863
|
-
|
|
864
|
-
|
|
1243
|
+
// `%IteratorPrototype%[@@iterator]()` method
|
|
1244
|
+
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
1245
|
+
if (!isCallable$1(IteratorPrototype$2[ITERATOR$2])) {
|
|
1246
|
+
defineBuiltIn$1(IteratorPrototype$2, ITERATOR$2, function () {
|
|
1247
|
+
return this;
|
|
1248
|
+
});
|
|
865
1249
|
}
|
|
866
1250
|
|
|
867
1251
|
var iteratorsCore = {
|
|
@@ -869,78 +1253,106 @@ var iteratorsCore = {
|
|
|
869
1253
|
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
|
|
870
1254
|
};
|
|
871
1255
|
|
|
872
|
-
var defineProperty = objectDefineProperty.f;
|
|
873
|
-
var
|
|
874
|
-
var wellKnownSymbol$2 = wellKnownSymbol$
|
|
1256
|
+
var defineProperty$1 = objectDefineProperty.f;
|
|
1257
|
+
var hasOwn = hasOwnProperty_1;
|
|
1258
|
+
var wellKnownSymbol$2 = wellKnownSymbol$6;
|
|
875
1259
|
|
|
876
|
-
var TO_STRING_TAG
|
|
1260
|
+
var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
|
|
877
1261
|
|
|
878
|
-
var setToStringTag$
|
|
879
|
-
if (
|
|
880
|
-
|
|
1262
|
+
var setToStringTag$3 = function (target, TAG, STATIC) {
|
|
1263
|
+
if (target && !STATIC) target = target.prototype;
|
|
1264
|
+
if (target && !hasOwn(target, TO_STRING_TAG)) {
|
|
1265
|
+
defineProperty$1(target, TO_STRING_TAG, { configurable: true, value: TAG });
|
|
881
1266
|
}
|
|
882
1267
|
};
|
|
883
1268
|
|
|
884
1269
|
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
|
885
1270
|
var create = objectCreate;
|
|
886
1271
|
var createPropertyDescriptor = createPropertyDescriptor$3;
|
|
887
|
-
var setToStringTag$
|
|
1272
|
+
var setToStringTag$2 = setToStringTag$3;
|
|
888
1273
|
var Iterators$2 = iterators;
|
|
889
1274
|
|
|
890
1275
|
var returnThis$1 = function () { return this; };
|
|
891
1276
|
|
|
892
|
-
var
|
|
1277
|
+
var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
|
893
1278
|
var TO_STRING_TAG = NAME + ' Iterator';
|
|
894
|
-
IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(
|
|
895
|
-
setToStringTag$
|
|
1279
|
+
IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
|
|
1280
|
+
setToStringTag$2(IteratorConstructor, TO_STRING_TAG, false);
|
|
896
1281
|
Iterators$2[TO_STRING_TAG] = returnThis$1;
|
|
897
1282
|
return IteratorConstructor;
|
|
898
1283
|
};
|
|
899
1284
|
|
|
900
|
-
var
|
|
1285
|
+
var uncurryThis = functionUncurryThis;
|
|
1286
|
+
var aCallable = aCallable$2;
|
|
1287
|
+
|
|
1288
|
+
var functionUncurryThisAccessor = function (object, key, method) {
|
|
1289
|
+
try {
|
|
1290
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1291
|
+
return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
1292
|
+
} catch (error) { /* empty */ }
|
|
1293
|
+
};
|
|
1294
|
+
|
|
1295
|
+
var isObject$1 = isObject$8;
|
|
901
1296
|
|
|
902
|
-
var
|
|
903
|
-
|
|
904
|
-
throw TypeError("Can't set " + String(it) + ' as a prototype');
|
|
905
|
-
} return it;
|
|
1297
|
+
var isPossiblePrototype$1 = function (argument) {
|
|
1298
|
+
return isObject$1(argument) || argument === null;
|
|
906
1299
|
};
|
|
907
1300
|
|
|
908
|
-
var
|
|
1301
|
+
var isPossiblePrototype = isPossiblePrototype$1;
|
|
1302
|
+
|
|
1303
|
+
var $String = String;
|
|
1304
|
+
var $TypeError = TypeError;
|
|
1305
|
+
|
|
1306
|
+
var aPossiblePrototype$1 = function (argument) {
|
|
1307
|
+
if (isPossiblePrototype(argument)) return argument;
|
|
1308
|
+
throw new $TypeError("Can't set " + $String(argument) + ' as a prototype');
|
|
1309
|
+
};
|
|
1310
|
+
|
|
1311
|
+
/* eslint-disable no-proto -- safe */
|
|
1312
|
+
var uncurryThisAccessor = functionUncurryThisAccessor;
|
|
1313
|
+
var isObject = isObject$8;
|
|
1314
|
+
var requireObjectCoercible = requireObjectCoercible$3;
|
|
909
1315
|
var aPossiblePrototype = aPossiblePrototype$1;
|
|
910
1316
|
|
|
911
1317
|
// `Object.setPrototypeOf` method
|
|
912
|
-
// https://tc39.
|
|
1318
|
+
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
913
1319
|
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
914
|
-
|
|
1320
|
+
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
915
1321
|
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
916
1322
|
var CORRECT_SETTER = false;
|
|
917
1323
|
var test = {};
|
|
918
1324
|
var setter;
|
|
919
1325
|
try {
|
|
920
|
-
setter =
|
|
921
|
-
setter
|
|
1326
|
+
setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
|
|
1327
|
+
setter(test, []);
|
|
922
1328
|
CORRECT_SETTER = test instanceof Array;
|
|
923
1329
|
} catch (error) { /* empty */ }
|
|
924
1330
|
return function setPrototypeOf(O, proto) {
|
|
925
|
-
|
|
1331
|
+
requireObjectCoercible(O);
|
|
926
1332
|
aPossiblePrototype(proto);
|
|
927
|
-
if (
|
|
1333
|
+
if (!isObject(O)) return O;
|
|
1334
|
+
if (CORRECT_SETTER) setter(O, proto);
|
|
928
1335
|
else O.__proto__ = proto;
|
|
929
1336
|
return O;
|
|
930
1337
|
};
|
|
931
1338
|
}() : undefined);
|
|
932
1339
|
|
|
933
1340
|
var $ = _export;
|
|
934
|
-
var
|
|
1341
|
+
var call = functionCall;
|
|
1342
|
+
var FunctionName = functionName;
|
|
1343
|
+
var isCallable = isCallable$d;
|
|
1344
|
+
var createIteratorConstructor = iteratorCreateConstructor;
|
|
935
1345
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
936
1346
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
937
|
-
var setToStringTag = setToStringTag$
|
|
938
|
-
var createNonEnumerableProperty$1 = createNonEnumerableProperty$
|
|
939
|
-
var
|
|
940
|
-
var wellKnownSymbol$1 = wellKnownSymbol$
|
|
1347
|
+
var setToStringTag$1 = setToStringTag$3;
|
|
1348
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
|
|
1349
|
+
var defineBuiltIn = defineBuiltIn$3;
|
|
1350
|
+
var wellKnownSymbol$1 = wellKnownSymbol$6;
|
|
941
1351
|
var Iterators$1 = iterators;
|
|
942
1352
|
var IteratorsCore = iteratorsCore;
|
|
943
1353
|
|
|
1354
|
+
var PROPER_FUNCTION_NAME = FunctionName.PROPER;
|
|
1355
|
+
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
|
|
944
1356
|
var IteratorPrototype = IteratorsCore.IteratorPrototype;
|
|
945
1357
|
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
946
1358
|
var ITERATOR$1 = wellKnownSymbol$1('iterator');
|
|
@@ -950,17 +1362,20 @@ var ENTRIES = 'entries';
|
|
|
950
1362
|
|
|
951
1363
|
var returnThis = function () { return this; };
|
|
952
1364
|
|
|
953
|
-
var
|
|
1365
|
+
var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
|
|
954
1366
|
createIteratorConstructor(IteratorConstructor, NAME, next);
|
|
955
1367
|
|
|
956
1368
|
var getIterationMethod = function (KIND) {
|
|
957
1369
|
if (KIND === DEFAULT && defaultIterator) return defaultIterator;
|
|
958
|
-
if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
|
|
1370
|
+
if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
|
|
1371
|
+
|
|
959
1372
|
switch (KIND) {
|
|
960
1373
|
case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
|
|
961
1374
|
case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
|
|
962
1375
|
case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
|
|
963
|
-
}
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
return function () { return new IteratorConstructor(this); };
|
|
964
1379
|
};
|
|
965
1380
|
|
|
966
1381
|
var TO_STRING_TAG = NAME + ' Iterator';
|
|
@@ -970,36 +1385,34 @@ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFA
|
|
|
970
1385
|
|| IterablePrototype['@@iterator']
|
|
971
1386
|
|| DEFAULT && IterablePrototype[DEFAULT];
|
|
972
1387
|
var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
|
|
973
|
-
var anyNativeIterator = NAME
|
|
1388
|
+
var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
|
|
974
1389
|
var CurrentIteratorPrototype, methods, KEY;
|
|
975
1390
|
|
|
976
1391
|
// fix native
|
|
977
1392
|
if (anyNativeIterator) {
|
|
978
1393
|
CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
|
|
979
|
-
if (
|
|
1394
|
+
if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
|
|
980
1395
|
if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
|
981
1396
|
if (setPrototypeOf) {
|
|
982
1397
|
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
|
|
983
|
-
} else if (
|
|
984
|
-
|
|
1398
|
+
} else if (!isCallable(CurrentIteratorPrototype[ITERATOR$1])) {
|
|
1399
|
+
defineBuiltIn(CurrentIteratorPrototype, ITERATOR$1, returnThis);
|
|
985
1400
|
}
|
|
986
1401
|
}
|
|
987
1402
|
// Set @@toStringTag to native iterators
|
|
988
|
-
setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);
|
|
1403
|
+
setToStringTag$1(CurrentIteratorPrototype, TO_STRING_TAG, true);
|
|
989
1404
|
}
|
|
990
1405
|
}
|
|
991
1406
|
|
|
992
|
-
// fix Array
|
|
993
|
-
if (DEFAULT
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
createNonEnumerableProperty$1(IterablePrototype, ITERATOR$1, defaultIterator);
|
|
1407
|
+
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
|
|
1408
|
+
if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
1409
|
+
if (CONFIGURABLE_FUNCTION_NAME) {
|
|
1410
|
+
createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
|
|
1411
|
+
} else {
|
|
1412
|
+
INCORRECT_VALUES_NAME = true;
|
|
1413
|
+
defaultIterator = function values() { return call(nativeIterator, this); };
|
|
1414
|
+
}
|
|
1001
1415
|
}
|
|
1002
|
-
Iterators$1[NAME] = defaultIterator;
|
|
1003
1416
|
|
|
1004
1417
|
// export additional methods
|
|
1005
1418
|
if (DEFAULT) {
|
|
@@ -1010,34 +1423,49 @@ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFA
|
|
|
1010
1423
|
};
|
|
1011
1424
|
if (FORCED) for (KEY in methods) {
|
|
1012
1425
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1013
|
-
|
|
1426
|
+
defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
|
|
1014
1427
|
}
|
|
1015
1428
|
} else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
1016
1429
|
}
|
|
1017
1430
|
|
|
1431
|
+
// define iterator
|
|
1432
|
+
if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
|
|
1433
|
+
defineBuiltIn(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
|
|
1434
|
+
}
|
|
1435
|
+
Iterators$1[NAME] = defaultIterator;
|
|
1436
|
+
|
|
1018
1437
|
return methods;
|
|
1019
1438
|
};
|
|
1020
1439
|
|
|
1021
|
-
|
|
1440
|
+
// `CreateIterResultObject` abstract operation
|
|
1441
|
+
// https://tc39.es/ecma262/#sec-createiterresultobject
|
|
1442
|
+
var createIterResultObject$1 = function (value, done) {
|
|
1443
|
+
return { value: value, done: done };
|
|
1444
|
+
};
|
|
1445
|
+
|
|
1446
|
+
var toIndexedObject = toIndexedObject$5;
|
|
1022
1447
|
var addToUnscopables = addToUnscopables$1;
|
|
1023
1448
|
var Iterators = iterators;
|
|
1024
1449
|
var InternalStateModule = internalState;
|
|
1025
|
-
var
|
|
1450
|
+
var defineProperty = objectDefineProperty.f;
|
|
1451
|
+
var defineIterator = iteratorDefine;
|
|
1452
|
+
var createIterResultObject = createIterResultObject$1;
|
|
1453
|
+
var DESCRIPTORS = descriptors;
|
|
1026
1454
|
|
|
1027
1455
|
var ARRAY_ITERATOR = 'Array Iterator';
|
|
1028
1456
|
var setInternalState = InternalStateModule.set;
|
|
1029
1457
|
var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
|
|
1030
1458
|
|
|
1031
1459
|
// `Array.prototype.entries` method
|
|
1032
|
-
// https://tc39.
|
|
1460
|
+
// https://tc39.es/ecma262/#sec-array.prototype.entries
|
|
1033
1461
|
// `Array.prototype.keys` method
|
|
1034
|
-
// https://tc39.
|
|
1462
|
+
// https://tc39.es/ecma262/#sec-array.prototype.keys
|
|
1035
1463
|
// `Array.prototype.values` method
|
|
1036
|
-
// https://tc39.
|
|
1464
|
+
// https://tc39.es/ecma262/#sec-array.prototype.values
|
|
1037
1465
|
// `Array.prototype[@@iterator]` method
|
|
1038
|
-
// https://tc39.
|
|
1466
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@iterator
|
|
1039
1467
|
// `CreateArrayIterator` internal method
|
|
1040
|
-
// https://tc39.
|
|
1468
|
+
// https://tc39.es/ecma262/#sec-createarrayiterator
|
|
1041
1469
|
var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
|
|
1042
1470
|
setInternalState(this, {
|
|
1043
1471
|
type: ARRAY_ITERATOR,
|
|
@@ -1046,31 +1474,36 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
|
|
|
1046
1474
|
kind: kind // kind
|
|
1047
1475
|
});
|
|
1048
1476
|
// `%ArrayIteratorPrototype%.next` method
|
|
1049
|
-
// https://tc39.
|
|
1477
|
+
// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
|
|
1050
1478
|
}, function () {
|
|
1051
1479
|
var state = getInternalState(this);
|
|
1052
1480
|
var target = state.target;
|
|
1053
|
-
var kind = state.kind;
|
|
1054
1481
|
var index = state.index++;
|
|
1055
1482
|
if (!target || index >= target.length) {
|
|
1056
1483
|
state.target = undefined;
|
|
1057
|
-
return
|
|
1484
|
+
return createIterResultObject(undefined, true);
|
|
1058
1485
|
}
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1486
|
+
switch (state.kind) {
|
|
1487
|
+
case 'keys': return createIterResultObject(index, false);
|
|
1488
|
+
case 'values': return createIterResultObject(target[index], false);
|
|
1489
|
+
} return createIterResultObject([index, target[index]], false);
|
|
1062
1490
|
}, 'values');
|
|
1063
1491
|
|
|
1064
1492
|
// argumentsList[@@iterator] is %ArrayProto_values%
|
|
1065
|
-
// https://tc39.
|
|
1066
|
-
// https://tc39.
|
|
1067
|
-
Iterators.Arguments = Iterators.Array;
|
|
1493
|
+
// https://tc39.es/ecma262/#sec-createunmappedargumentsobject
|
|
1494
|
+
// https://tc39.es/ecma262/#sec-createmappedargumentsobject
|
|
1495
|
+
var values = Iterators.Arguments = Iterators.Array;
|
|
1068
1496
|
|
|
1069
|
-
// https://tc39.
|
|
1497
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1070
1498
|
addToUnscopables('keys');
|
|
1071
1499
|
addToUnscopables('values');
|
|
1072
1500
|
addToUnscopables('entries');
|
|
1073
1501
|
|
|
1502
|
+
// V8 ~ Chrome 45- bug
|
|
1503
|
+
if (DESCRIPTORS && values.name !== 'values') try {
|
|
1504
|
+
defineProperty(values, 'name', { value: 'values' });
|
|
1505
|
+
} catch (error) { /* empty */ }
|
|
1506
|
+
|
|
1074
1507
|
// iterable DOM collections
|
|
1075
1508
|
// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
|
|
1076
1509
|
var domIterables = {
|
|
@@ -1107,19 +1540,26 @@ var domIterables = {
|
|
|
1107
1540
|
TouchList: 0
|
|
1108
1541
|
};
|
|
1109
1542
|
|
|
1110
|
-
|
|
1543
|
+
// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
|
|
1544
|
+
var documentCreateElement = documentCreateElement$2;
|
|
1545
|
+
|
|
1546
|
+
var classList = documentCreateElement('span').classList;
|
|
1547
|
+
var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
|
|
1548
|
+
|
|
1549
|
+
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1550
|
+
|
|
1551
|
+
var global$1 = global$b;
|
|
1111
1552
|
var DOMIterables = domIterables;
|
|
1553
|
+
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1112
1554
|
var ArrayIteratorMethods = es_array_iterator;
|
|
1113
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$
|
|
1114
|
-
var
|
|
1555
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$4;
|
|
1556
|
+
var setToStringTag = setToStringTag$3;
|
|
1557
|
+
var wellKnownSymbol = wellKnownSymbol$6;
|
|
1115
1558
|
|
|
1116
1559
|
var ITERATOR = wellKnownSymbol('iterator');
|
|
1117
|
-
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
1118
1560
|
var ArrayValues = ArrayIteratorMethods.values;
|
|
1119
1561
|
|
|
1120
|
-
|
|
1121
|
-
var Collection = global$1[COLLECTION_NAME];
|
|
1122
|
-
var CollectionPrototype = Collection && Collection.prototype;
|
|
1562
|
+
var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
1123
1563
|
if (CollectionPrototype) {
|
|
1124
1564
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1125
1565
|
if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
|
|
@@ -1127,9 +1567,7 @@ for (var COLLECTION_NAME in DOMIterables) {
|
|
|
1127
1567
|
} catch (error) {
|
|
1128
1568
|
CollectionPrototype[ITERATOR] = ArrayValues;
|
|
1129
1569
|
}
|
|
1130
|
-
|
|
1131
|
-
createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
|
|
1132
|
-
}
|
|
1570
|
+
setToStringTag(CollectionPrototype, COLLECTION_NAME, true);
|
|
1133
1571
|
if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
|
|
1134
1572
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1135
1573
|
if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
|
|
@@ -1139,8 +1577,14 @@ for (var COLLECTION_NAME in DOMIterables) {
|
|
|
1139
1577
|
}
|
|
1140
1578
|
}
|
|
1141
1579
|
}
|
|
1580
|
+
};
|
|
1581
|
+
|
|
1582
|
+
for (var COLLECTION_NAME in DOMIterables) {
|
|
1583
|
+
handlePrototype(global$1[COLLECTION_NAME] && global$1[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
1142
1584
|
}
|
|
1143
1585
|
|
|
1586
|
+
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
1587
|
+
|
|
1144
1588
|
const useDynamicScript = args => {
|
|
1145
1589
|
const [ready, setReady] = React.useState(false);
|
|
1146
1590
|
const [failed, setFailed] = React.useState(false);
|