1 | var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
2 |
|
3 | function createCommonjsModule(fn, module) {
|
4 | return module = { exports: {} }, fn(module, module.exports), module.exports;
|
5 | }
|
6 |
|
7 | var check = function (it) {
|
8 | return it && it.Math == Math && it;
|
9 | };
|
10 |
|
11 |
|
12 | var global_1 =
|
13 |
|
14 | check(typeof globalThis == 'object' && globalThis) ||
|
15 | check(typeof window == 'object' && window) ||
|
16 | check(typeof self == 'object' && self) ||
|
17 | check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
18 |
|
19 | Function('return this')();
|
20 |
|
21 | var fails = function (exec) {
|
22 | try {
|
23 | return !!exec();
|
24 | } catch (error) {
|
25 | return true;
|
26 | }
|
27 | };
|
28 |
|
29 |
|
30 | var descriptors = !fails(function () {
|
31 | return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
|
32 | });
|
33 |
|
34 | var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
|
35 | var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
36 |
|
37 |
|
38 | var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
|
39 |
|
40 |
|
41 |
|
42 | var f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
43 | var descriptor = getOwnPropertyDescriptor(this, V);
|
44 | return !!descriptor && descriptor.enumerable;
|
45 | } : nativePropertyIsEnumerable;
|
46 |
|
47 | var objectPropertyIsEnumerable = {
|
48 | f: f
|
49 | };
|
50 |
|
51 | var createPropertyDescriptor = function (bitmap, value) {
|
52 | return {
|
53 | enumerable: !(bitmap & 1),
|
54 | configurable: !(bitmap & 2),
|
55 | writable: !(bitmap & 4),
|
56 | value: value
|
57 | };
|
58 | };
|
59 |
|
60 | var toString = {}.toString;
|
61 |
|
62 | var classofRaw = function (it) {
|
63 | return toString.call(it).slice(8, -1);
|
64 | };
|
65 |
|
66 | var split = ''.split;
|
67 |
|
68 |
|
69 | var indexedObject = fails(function () {
|
70 |
|
71 |
|
72 | return !Object('z').propertyIsEnumerable(0);
|
73 | }) ? function (it) {
|
74 | return classofRaw(it) == 'String' ? split.call(it, '') : Object(it);
|
75 | } : Object;
|
76 |
|
77 |
|
78 |
|
79 | var requireObjectCoercible = function (it) {
|
80 | if (it == undefined) throw TypeError("Can't call method on " + it);
|
81 | return it;
|
82 | };
|
83 |
|
84 |
|
85 |
|
86 |
|
87 |
|
88 | var toIndexedObject = function (it) {
|
89 | return indexedObject(requireObjectCoercible(it));
|
90 | };
|
91 |
|
92 | var isObject = function (it) {
|
93 | return typeof it === 'object' ? it !== null : typeof it === 'function';
|
94 | };
|
95 |
|
96 |
|
97 |
|
98 |
|
99 |
|
100 | var toPrimitive = function (input, PREFERRED_STRING) {
|
101 | if (!isObject(input)) return input;
|
102 | var fn, val;
|
103 | if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
|
104 | if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;
|
105 | if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
|
106 | throw TypeError("Can't convert object to primitive value");
|
107 | };
|
108 |
|
109 | var hasOwnProperty = {}.hasOwnProperty;
|
110 |
|
111 | var has = function (it, key) {
|
112 | return hasOwnProperty.call(it, key);
|
113 | };
|
114 |
|
115 | var document$1 = global_1.document;
|
116 |
|
117 | var EXISTS = isObject(document$1) && isObject(document$1.createElement);
|
118 |
|
119 | var documentCreateElement = function (it) {
|
120 | return EXISTS ? document$1.createElement(it) : {};
|
121 | };
|
122 |
|
123 |
|
124 | var ie8DomDefine = !descriptors && !fails(function () {
|
125 | return Object.defineProperty(documentCreateElement('div'), 'a', {
|
126 | get: function () { return 7; }
|
127 | }).a != 7;
|
128 | });
|
129 |
|
130 | var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
131 |
|
132 |
|
133 |
|
134 | var f$1 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
135 | O = toIndexedObject(O);
|
136 | P = toPrimitive(P, true);
|
137 | if (ie8DomDefine) try {
|
138 | return nativeGetOwnPropertyDescriptor(O, P);
|
139 | } catch (error) { }
|
140 | if (has(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
|
141 | };
|
142 |
|
143 | var objectGetOwnPropertyDescriptor = {
|
144 | f: f$1
|
145 | };
|
146 |
|
147 | var anObject = function (it) {
|
148 | if (!isObject(it)) {
|
149 | throw TypeError(String(it) + ' is not an object');
|
150 | } return it;
|
151 | };
|
152 |
|
153 | var nativeDefineProperty = Object.defineProperty;
|
154 |
|
155 |
|
156 |
|
157 | var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
|
158 | anObject(O);
|
159 | P = toPrimitive(P, true);
|
160 | anObject(Attributes);
|
161 | if (ie8DomDefine) try {
|
162 | return nativeDefineProperty(O, P, Attributes);
|
163 | } catch (error) { }
|
164 | if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
|
165 | if ('value' in Attributes) O[P] = Attributes.value;
|
166 | return O;
|
167 | };
|
168 |
|
169 | var objectDefineProperty = {
|
170 | f: f$2
|
171 | };
|
172 |
|
173 | var createNonEnumerableProperty = descriptors ? function (object, key, value) {
|
174 | return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));
|
175 | } : function (object, key, value) {
|
176 | object[key] = value;
|
177 | return object;
|
178 | };
|
179 |
|
180 | var setGlobal = function (key, value) {
|
181 | try {
|
182 | createNonEnumerableProperty(global_1, key, value);
|
183 | } catch (error) {
|
184 | global_1[key] = value;
|
185 | } return value;
|
186 | };
|
187 |
|
188 | var SHARED = '__core-js_shared__';
|
189 | var store = global_1[SHARED] || setGlobal(SHARED, {});
|
190 |
|
191 | var sharedStore = store;
|
192 |
|
193 | var functionToString = Function.toString;
|
194 |
|
195 |
|
196 | if (typeof sharedStore.inspectSource != 'function') {
|
197 | sharedStore.inspectSource = function (it) {
|
198 | return functionToString.call(it);
|
199 | };
|
200 | }
|
201 |
|
202 | var inspectSource = sharedStore.inspectSource;
|
203 |
|
204 | var WeakMap = global_1.WeakMap;
|
205 |
|
206 | var nativeWeakMap = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));
|
207 |
|
208 | var shared = createCommonjsModule(function (module) {
|
209 | (module.exports = function (key, value) {
|
210 | return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
211 | })('versions', []).push({
|
212 | version: '3.6.0',
|
213 | mode: 'global',
|
214 | copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
|
215 | });
|
216 | });
|
217 |
|
218 | var id = 0;
|
219 | var postfix = Math.random();
|
220 |
|
221 | var uid = function (key) {
|
222 | return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
|
223 | };
|
224 |
|
225 | var keys = shared('keys');
|
226 |
|
227 | var sharedKey = function (key) {
|
228 | return keys[key] || (keys[key] = uid(key));
|
229 | };
|
230 |
|
231 | var hiddenKeys = {};
|
232 |
|
233 | var WeakMap$1 = global_1.WeakMap;
|
234 | var set, get, has$1;
|
235 |
|
236 | var enforce = function (it) {
|
237 | return has$1(it) ? get(it) : set(it, {});
|
238 | };
|
239 |
|
240 | var getterFor = function (TYPE) {
|
241 | return function (it) {
|
242 | var state;
|
243 | if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
244 | throw TypeError('Incompatible receiver, ' + TYPE + ' required');
|
245 | } return state;
|
246 | };
|
247 | };
|
248 |
|
249 | if (nativeWeakMap) {
|
250 | var store$1 = new WeakMap$1();
|
251 | var wmget = store$1.get;
|
252 | var wmhas = store$1.has;
|
253 | var wmset = store$1.set;
|
254 | set = function (it, metadata) {
|
255 | wmset.call(store$1, it, metadata);
|
256 | return metadata;
|
257 | };
|
258 | get = function (it) {
|
259 | return wmget.call(store$1, it) || {};
|
260 | };
|
261 | has$1 = function (it) {
|
262 | return wmhas.call(store$1, it);
|
263 | };
|
264 | } else {
|
265 | var STATE = sharedKey('state');
|
266 | hiddenKeys[STATE] = true;
|
267 | set = function (it, metadata) {
|
268 | createNonEnumerableProperty(it, STATE, metadata);
|
269 | return metadata;
|
270 | };
|
271 | get = function (it) {
|
272 | return has(it, STATE) ? it[STATE] : {};
|
273 | };
|
274 | has$1 = function (it) {
|
275 | return has(it, STATE);
|
276 | };
|
277 | }
|
278 |
|
279 | var internalState = {
|
280 | set: set,
|
281 | get: get,
|
282 | has: has$1,
|
283 | enforce: enforce,
|
284 | getterFor: getterFor
|
285 | };
|
286 |
|
287 | var redefine = createCommonjsModule(function (module) {
|
288 | var getInternalState = internalState.get;
|
289 | var enforceInternalState = internalState.enforce;
|
290 | var TEMPLATE = String(String).split('String');
|
291 |
|
292 | (module.exports = function (O, key, value, options) {
|
293 | var unsafe = options ? !!options.unsafe : false;
|
294 | var simple = options ? !!options.enumerable : false;
|
295 | var noTargetGet = options ? !!options.noTargetGet : false;
|
296 | if (typeof value == 'function') {
|
297 | if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key);
|
298 | enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');
|
299 | }
|
300 | if (O === global_1) {
|
301 | if (simple) O[key] = value;
|
302 | else setGlobal(key, value);
|
303 | return;
|
304 | } else if (!unsafe) {
|
305 | delete O[key];
|
306 | } else if (!noTargetGet && O[key]) {
|
307 | simple = true;
|
308 | }
|
309 | if (simple) O[key] = value;
|
310 | else createNonEnumerableProperty(O, key, value);
|
311 |
|
312 | })(Function.prototype, 'toString', function toString() {
|
313 | return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
|
314 | });
|
315 | });
|
316 |
|
317 | var path = global_1;
|
318 |
|
319 | var aFunction = function (variable) {
|
320 | return typeof variable == 'function' ? variable : undefined;
|
321 | };
|
322 |
|
323 | var getBuiltIn = function (namespace, method) {
|
324 | return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global_1[namespace])
|
325 | : path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];
|
326 | };
|
327 |
|
328 | var ceil = Math.ceil;
|
329 | var floor = Math.floor;
|
330 |
|
331 |
|
332 |
|
333 | var toInteger = function (argument) {
|
334 | return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
|
335 | };
|
336 |
|
337 | var min = Math.min;
|
338 |
|
339 |
|
340 |
|
341 | var toLength = function (argument) {
|
342 | return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0;
|
343 | };
|
344 |
|
345 | var max = Math.max;
|
346 | var min$1 = Math.min;
|
347 |
|
348 |
|
349 |
|
350 |
|
351 | var toAbsoluteIndex = function (index, length) {
|
352 | var integer = toInteger(index);
|
353 | return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
|
354 | };
|
355 |
|
356 |
|
357 | var createMethod = function (IS_INCLUDES) {
|
358 | return function ($this, el, fromIndex) {
|
359 | var O = toIndexedObject($this);
|
360 | var length = toLength(O.length);
|
361 | var index = toAbsoluteIndex(fromIndex, length);
|
362 | var value;
|
363 |
|
364 |
|
365 | if (IS_INCLUDES && el != el) while (length > index) {
|
366 | value = O[index++];
|
367 |
|
368 | if (value != value) return true;
|
369 |
|
370 | } else for (;length > index; index++) {
|
371 | if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
372 | } return !IS_INCLUDES && -1;
|
373 | };
|
374 | };
|
375 |
|
376 | var arrayIncludes = {
|
377 |
|
378 |
|
379 | includes: createMethod(true),
|
380 |
|
381 |
|
382 | indexOf: createMethod(false)
|
383 | };
|
384 |
|
385 | var indexOf = arrayIncludes.indexOf;
|
386 |
|
387 |
|
388 | var objectKeysInternal = function (object, names) {
|
389 | var O = toIndexedObject(object);
|
390 | var i = 0;
|
391 | var result = [];
|
392 | var key;
|
393 | for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);
|
394 |
|
395 | while (names.length > i) if (has(O, key = names[i++])) {
|
396 | ~indexOf(result, key) || result.push(key);
|
397 | }
|
398 | return result;
|
399 | };
|
400 |
|
401 |
|
402 | var enumBugKeys = [
|
403 | 'constructor',
|
404 | 'hasOwnProperty',
|
405 | 'isPrototypeOf',
|
406 | 'propertyIsEnumerable',
|
407 | 'toLocaleString',
|
408 | 'toString',
|
409 | 'valueOf'
|
410 | ];
|
411 |
|
412 | var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
|
413 |
|
414 |
|
415 |
|
416 | var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
417 | return objectKeysInternal(O, hiddenKeys$1);
|
418 | };
|
419 |
|
420 | var objectGetOwnPropertyNames = {
|
421 | f: f$3
|
422 | };
|
423 |
|
424 | var f$4 = Object.getOwnPropertySymbols;
|
425 |
|
426 | var objectGetOwnPropertySymbols = {
|
427 | f: f$4
|
428 | };
|
429 |
|
430 |
|
431 | var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
432 | var keys = objectGetOwnPropertyNames.f(anObject(it));
|
433 | var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
|
434 | return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
|
435 | };
|
436 |
|
437 | var copyConstructorProperties = function (target, source) {
|
438 | var keys = ownKeys(source);
|
439 | var defineProperty = objectDefineProperty.f;
|
440 | var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
441 | for (var i = 0; i < keys.length; i++) {
|
442 | var key = keys[i];
|
443 | if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
444 | }
|
445 | };
|
446 |
|
447 | var replacement = /#|\.prototype\./;
|
448 |
|
449 | var isForced = function (feature, detection) {
|
450 | var value = data[normalize(feature)];
|
451 | return value == POLYFILL ? true
|
452 | : value == NATIVE ? false
|
453 | : typeof detection == 'function' ? fails(detection)
|
454 | : !!detection;
|
455 | };
|
456 |
|
457 | var normalize = isForced.normalize = function (string) {
|
458 | return String(string).replace(replacement, '.').toLowerCase();
|
459 | };
|
460 |
|
461 | var data = isForced.data = {};
|
462 | var NATIVE = isForced.NATIVE = 'N';
|
463 | var POLYFILL = isForced.POLYFILL = 'P';
|
464 |
|
465 | var isForced_1 = isForced;
|
466 |
|
467 | var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
468 |
|
469 |
|
470 |
|
471 |
|
472 |
|
473 |
|
474 |
|
475 |
|
476 |
|
477 |
|
478 |
|
479 |
|
480 |
|
481 |
|
482 |
|
483 |
|
484 |
|
485 |
|
486 |
|
487 |
|
488 | var _export = function (options, source) {
|
489 | var TARGET = options.target;
|
490 | var GLOBAL = options.global;
|
491 | var STATIC = options.stat;
|
492 | var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
493 | if (GLOBAL) {
|
494 | target = global_1;
|
495 | } else if (STATIC) {
|
496 | target = global_1[TARGET] || setGlobal(TARGET, {});
|
497 | } else {
|
498 | target = (global_1[TARGET] || {}).prototype;
|
499 | }
|
500 | if (target) for (key in source) {
|
501 | sourceProperty = source[key];
|
502 | if (options.noTargetGet) {
|
503 | descriptor = getOwnPropertyDescriptor$1(target, key);
|
504 | targetProperty = descriptor && descriptor.value;
|
505 | } else targetProperty = target[key];
|
506 | FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
507 |
|
508 | if (!FORCED && targetProperty !== undefined) {
|
509 | if (typeof sourceProperty === typeof targetProperty) continue;
|
510 | copyConstructorProperties(sourceProperty, targetProperty);
|
511 | }
|
512 |
|
513 | if (options.sham || (targetProperty && targetProperty.sham)) {
|
514 | createNonEnumerableProperty(sourceProperty, 'sham', true);
|
515 | }
|
516 |
|
517 | redefine(target, key, sourceProperty, options);
|
518 | }
|
519 | };
|
520 |
|
521 | var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
522 |
|
523 |
|
524 | return !String(Symbol());
|
525 | });
|
526 |
|
527 | var useSymbolAsUid = nativeSymbol
|
528 |
|
529 | && !Symbol.sham
|
530 |
|
531 | && typeof Symbol() == 'symbol';
|
532 |
|
533 |
|
534 |
|
535 | var isArray = Array.isArray || function isArray(arg) {
|
536 | return classofRaw(arg) == 'Array';
|
537 | };
|
538 |
|
539 |
|
540 |
|
541 | var toObject = function (argument) {
|
542 | return Object(requireObjectCoercible(argument));
|
543 | };
|
544 |
|
545 |
|
546 |
|
547 | var objectKeys = Object.keys || function keys(O) {
|
548 | return objectKeysInternal(O, enumBugKeys);
|
549 | };
|
550 |
|
551 |
|
552 |
|
553 | var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
|
554 | anObject(O);
|
555 | var keys = objectKeys(Properties);
|
556 | var length = keys.length;
|
557 | var index = 0;
|
558 | var key;
|
559 | while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]);
|
560 | return O;
|
561 | };
|
562 |
|
563 | var html = getBuiltIn('document', 'documentElement');
|
564 |
|
565 | var GT = '>';
|
566 | var LT = '<';
|
567 | var PROTOTYPE = 'prototype';
|
568 | var SCRIPT = 'script';
|
569 | var IE_PROTO = sharedKey('IE_PROTO');
|
570 |
|
571 | var EmptyConstructor = function () { };
|
572 |
|
573 | var scriptTag = function (content) {
|
574 | return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
575 | };
|
576 |
|
577 |
|
578 | var NullProtoObjectViaActiveX = function (activeXDocument) {
|
579 | activeXDocument.write(scriptTag(''));
|
580 | activeXDocument.close();
|
581 | var temp = activeXDocument.parentWindow.Object;
|
582 | activeXDocument = null;
|
583 | return temp;
|
584 | };
|
585 |
|
586 |
|
587 | var NullProtoObjectViaIFrame = function () {
|
588 |
|
589 | var iframe = documentCreateElement('iframe');
|
590 | var JS = 'java' + SCRIPT + ':';
|
591 | var iframeDocument;
|
592 | iframe.style.display = 'none';
|
593 | html.appendChild(iframe);
|
594 |
|
595 | iframe.src = String(JS);
|
596 | iframeDocument = iframe.contentWindow.document;
|
597 | iframeDocument.open();
|
598 | iframeDocument.write(scriptTag('document.F=Object'));
|
599 | iframeDocument.close();
|
600 | return iframeDocument.F;
|
601 | };
|
602 |
|
603 |
|
604 |
|
605 |
|
606 |
|
607 |
|
608 | var activeXDocument;
|
609 | var NullProtoObject = function () {
|
610 | try {
|
611 |
|
612 | activeXDocument = document.domain && new ActiveXObject('htmlfile');
|
613 | } catch (error) { }
|
614 | NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
|
615 | var length = enumBugKeys.length;
|
616 | while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
617 | return NullProtoObject();
|
618 | };
|
619 |
|
620 | hiddenKeys[IE_PROTO] = true;
|
621 |
|
622 |
|
623 |
|
624 | var objectCreate = Object.create || function create(O, Properties) {
|
625 | var result;
|
626 | if (O !== null) {
|
627 | EmptyConstructor[PROTOTYPE] = anObject(O);
|
628 | result = new EmptyConstructor();
|
629 | EmptyConstructor[PROTOTYPE] = null;
|
630 |
|
631 | result[IE_PROTO] = O;
|
632 | } else result = NullProtoObject();
|
633 | return Properties === undefined ? result : objectDefineProperties(result, Properties);
|
634 | };
|
635 |
|
636 | var nativeGetOwnPropertyNames = objectGetOwnPropertyNames.f;
|
637 |
|
638 | var toString$1 = {}.toString;
|
639 |
|
640 | var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
|
641 | ? Object.getOwnPropertyNames(window) : [];
|
642 |
|
643 | var getWindowNames = function (it) {
|
644 | try {
|
645 | return nativeGetOwnPropertyNames(it);
|
646 | } catch (error) {
|
647 | return windowNames.slice();
|
648 | }
|
649 | };
|
650 |
|
651 |
|
652 | var f$5 = function getOwnPropertyNames(it) {
|
653 | return windowNames && toString$1.call(it) == '[object Window]'
|
654 | ? getWindowNames(it)
|
655 | : nativeGetOwnPropertyNames(toIndexedObject(it));
|
656 | };
|
657 |
|
658 | var objectGetOwnPropertyNamesExternal = {
|
659 | f: f$5
|
660 | };
|
661 |
|
662 | var WellKnownSymbolsStore = shared('wks');
|
663 | var Symbol$1 = global_1.Symbol;
|
664 | var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : uid;
|
665 |
|
666 | var wellKnownSymbol = function (name) {
|
667 | if (!has(WellKnownSymbolsStore, name)) {
|
668 | if (nativeSymbol && has(Symbol$1, name)) WellKnownSymbolsStore[name] = Symbol$1[name];
|
669 | else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
|
670 | } return WellKnownSymbolsStore[name];
|
671 | };
|
672 |
|
673 | var f$6 = wellKnownSymbol;
|
674 |
|
675 | var wrappedWellKnownSymbol = {
|
676 | f: f$6
|
677 | };
|
678 |
|
679 | var defineProperty = objectDefineProperty.f;
|
680 |
|
681 | var defineWellKnownSymbol = function (NAME) {
|
682 | var Symbol = path.Symbol || (path.Symbol = {});
|
683 | if (!has(Symbol, NAME)) defineProperty(Symbol, NAME, {
|
684 | value: wrappedWellKnownSymbol.f(NAME)
|
685 | });
|
686 | };
|
687 |
|
688 | var defineProperty$1 = objectDefineProperty.f;
|
689 |
|
690 |
|
691 |
|
692 | var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
693 |
|
694 | var setToStringTag = function (it, TAG, STATIC) {
|
695 | if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {
|
696 | defineProperty$1(it, TO_STRING_TAG, { configurable: true, value: TAG });
|
697 | }
|
698 | };
|
699 |
|
700 | var aFunction$1 = function (it) {
|
701 | if (typeof it != 'function') {
|
702 | throw TypeError(String(it) + ' is not a function');
|
703 | } return it;
|
704 | };
|
705 |
|
706 |
|
707 | var bindContext = function (fn, that, length) {
|
708 | aFunction$1(fn);
|
709 | if (that === undefined) return fn;
|
710 | switch (length) {
|
711 | case 0: return function () {
|
712 | return fn.call(that);
|
713 | };
|
714 | case 1: return function (a) {
|
715 | return fn.call(that, a);
|
716 | };
|
717 | case 2: return function (a, b) {
|
718 | return fn.call(that, a, b);
|
719 | };
|
720 | case 3: return function (a, b, c) {
|
721 | return fn.call(that, a, b, c);
|
722 | };
|
723 | }
|
724 | return function (/* ...args */) {
|
725 | return fn.apply(that, arguments);
|
726 | };
|
727 | };
|
728 |
|
729 | var SPECIES = wellKnownSymbol('species');
|
730 |
|
731 |
|
732 |
|
733 | var arraySpeciesCreate = function (originalArray, length) {
|
734 | var C;
|
735 | if (isArray(originalArray)) {
|
736 | C = originalArray.constructor;
|
737 |
|
738 | if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
|
739 | else if (isObject(C)) {
|
740 | C = C[SPECIES];
|
741 | if (C === null) C = undefined;
|
742 | }
|
743 | } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
|
744 | };
|
745 |
|
746 | var push = [].push;
|
747 |
|
748 |
|
749 | var createMethod$1 = function (TYPE) {
|
750 | var IS_MAP = TYPE == 1;
|
751 | var IS_FILTER = TYPE == 2;
|
752 | var IS_SOME = TYPE == 3;
|
753 | var IS_EVERY = TYPE == 4;
|
754 | var IS_FIND_INDEX = TYPE == 6;
|
755 | var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
|
756 | return function ($this, callbackfn, that, specificCreate) {
|
757 | var O = toObject($this);
|
758 | var self = indexedObject(O);
|
759 | var boundFunction = bindContext(callbackfn, that, 3);
|
760 | var length = toLength(self.length);
|
761 | var index = 0;
|
762 | var create = specificCreate || arraySpeciesCreate;
|
763 | var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
|
764 | var value, result;
|
765 | for (;length > index; index++) if (NO_HOLES || index in self) {
|
766 | value = self[index];
|
767 | result = boundFunction(value, index, O);
|
768 | if (TYPE) {
|
769 | if (IS_MAP) target[index] = result;
|
770 | else if (result) switch (TYPE) {
|
771 | case 3: return true;
|
772 | case 5: return value;
|
773 | case 6: return index;
|
774 | case 2: push.call(target, value);
|
775 | } else if (IS_EVERY) return false;
|
776 | }
|
777 | }
|
778 | return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
|
779 | };
|
780 | };
|
781 |
|
782 | var arrayIteration = {
|
783 |
|
784 |
|
785 | forEach: createMethod$1(0),
|
786 |
|
787 |
|
788 | map: createMethod$1(1),
|
789 |
|
790 |
|
791 | filter: createMethod$1(2),
|
792 |
|
793 |
|
794 | some: createMethod$1(3),
|
795 |
|
796 |
|
797 | every: createMethod$1(4),
|
798 |
|
799 |
|
800 | find: createMethod$1(5),
|
801 |
|
802 |
|
803 | findIndex: createMethod$1(6)
|
804 | };
|
805 |
|
806 | var $forEach = arrayIteration.forEach;
|
807 |
|
808 | var HIDDEN = sharedKey('hidden');
|
809 | var SYMBOL = 'Symbol';
|
810 | var PROTOTYPE$1 = 'prototype';
|
811 | var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
812 | var setInternalState = internalState.set;
|
813 | var getInternalState = internalState.getterFor(SYMBOL);
|
814 | var ObjectPrototype = Object[PROTOTYPE$1];
|
815 | var $Symbol = global_1.Symbol;
|
816 | var $stringify = getBuiltIn('JSON', 'stringify');
|
817 | var nativeGetOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
818 | var nativeDefineProperty$1 = objectDefineProperty.f;
|
819 | var nativeGetOwnPropertyNames$1 = objectGetOwnPropertyNamesExternal.f;
|
820 | var nativePropertyIsEnumerable$1 = objectPropertyIsEnumerable.f;
|
821 | var AllSymbols = shared('symbols');
|
822 | var ObjectPrototypeSymbols = shared('op-symbols');
|
823 | var StringToSymbolRegistry = shared('string-to-symbol-registry');
|
824 | var SymbolToStringRegistry = shared('symbol-to-string-registry');
|
825 | var WellKnownSymbolsStore$1 = shared('wks');
|
826 | var QObject = global_1.QObject;
|
827 |
|
828 | var USE_SETTER = !QObject || !QObject[PROTOTYPE$1] || !QObject[PROTOTYPE$1].findChild;
|
829 |
|
830 |
|
831 | var setSymbolDescriptor = descriptors && fails(function () {
|
832 | return objectCreate(nativeDefineProperty$1({}, 'a', {
|
833 | get: function () { return nativeDefineProperty$1(this, 'a', { value: 7 }).a; }
|
834 | })).a != 7;
|
835 | }) ? function (O, P, Attributes) {
|
836 | var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor$1(ObjectPrototype, P);
|
837 | if (ObjectPrototypeDescriptor) delete ObjectPrototype[P];
|
838 | nativeDefineProperty$1(O, P, Attributes);
|
839 | if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {
|
840 | nativeDefineProperty$1(ObjectPrototype, P, ObjectPrototypeDescriptor);
|
841 | }
|
842 | } : nativeDefineProperty$1;
|
843 |
|
844 | var wrap = function (tag, description) {
|
845 | var symbol = AllSymbols[tag] = objectCreate($Symbol[PROTOTYPE$1]);
|
846 | setInternalState(symbol, {
|
847 | type: SYMBOL,
|
848 | tag: tag,
|
849 | description: description
|
850 | });
|
851 | if (!descriptors) symbol.description = description;
|
852 | return symbol;
|
853 | };
|
854 |
|
855 | var isSymbol = nativeSymbol && typeof $Symbol.iterator == 'symbol' ? function (it) {
|
856 | return typeof it == 'symbol';
|
857 | } : function (it) {
|
858 | return Object(it) instanceof $Symbol;
|
859 | };
|
860 |
|
861 | var $defineProperty = function defineProperty(O, P, Attributes) {
|
862 | if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes);
|
863 | anObject(O);
|
864 | var key = toPrimitive(P, true);
|
865 | anObject(Attributes);
|
866 | if (has(AllSymbols, key)) {
|
867 | if (!Attributes.enumerable) {
|
868 | if (!has(O, HIDDEN)) nativeDefineProperty$1(O, HIDDEN, createPropertyDescriptor(1, {}));
|
869 | O[HIDDEN][key] = true;
|
870 | } else {
|
871 | if (has(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;
|
872 | Attributes = objectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });
|
873 | } return setSymbolDescriptor(O, key, Attributes);
|
874 | } return nativeDefineProperty$1(O, key, Attributes);
|
875 | };
|
876 |
|
877 | var $defineProperties = function defineProperties(O, Properties) {
|
878 | anObject(O);
|
879 | var properties = toIndexedObject(Properties);
|
880 | var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));
|
881 | $forEach(keys, function (key) {
|
882 | if (!descriptors || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]);
|
883 | });
|
884 | return O;
|
885 | };
|
886 |
|
887 | var $create = function create(O, Properties) {
|
888 | return Properties === undefined ? objectCreate(O) : $defineProperties(objectCreate(O), Properties);
|
889 | };
|
890 |
|
891 | var $propertyIsEnumerable = function propertyIsEnumerable(V) {
|
892 | var P = toPrimitive(V, true);
|
893 | var enumerable = nativePropertyIsEnumerable$1.call(this, P);
|
894 | if (this === ObjectPrototype && has(AllSymbols, P) && !has(ObjectPrototypeSymbols, P)) return false;
|
895 | return enumerable || !has(this, P) || !has(AllSymbols, P) || has(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;
|
896 | };
|
897 |
|
898 | var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {
|
899 | var it = toIndexedObject(O);
|
900 | var key = toPrimitive(P, true);
|
901 | if (it === ObjectPrototype && has(AllSymbols, key) && !has(ObjectPrototypeSymbols, key)) return;
|
902 | var descriptor = nativeGetOwnPropertyDescriptor$1(it, key);
|
903 | if (descriptor && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) {
|
904 | descriptor.enumerable = true;
|
905 | }
|
906 | return descriptor;
|
907 | };
|
908 |
|
909 | var $getOwnPropertyNames = function getOwnPropertyNames(O) {
|
910 | var names = nativeGetOwnPropertyNames$1(toIndexedObject(O));
|
911 | var result = [];
|
912 | $forEach(names, function (key) {
|
913 | if (!has(AllSymbols, key) && !has(hiddenKeys, key)) result.push(key);
|
914 | });
|
915 | return result;
|
916 | };
|
917 |
|
918 | var $getOwnPropertySymbols = function getOwnPropertySymbols(O) {
|
919 | var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;
|
920 | var names = nativeGetOwnPropertyNames$1(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));
|
921 | var result = [];
|
922 | $forEach(names, function (key) {
|
923 | if (has(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || has(ObjectPrototype, key))) {
|
924 | result.push(AllSymbols[key]);
|
925 | }
|
926 | });
|
927 | return result;
|
928 | };
|
929 |
|
930 |
|
931 |
|
932 | if (!nativeSymbol) {
|
933 | $Symbol = function Symbol() {
|
934 | if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor');
|
935 | var description = !arguments.length || arguments[0] === undefined ? undefined : String(arguments[0]);
|
936 | var tag = uid(description);
|
937 | var setter = function (value) {
|
938 | if (this === ObjectPrototype) setter.call(ObjectPrototypeSymbols, value);
|
939 | if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
|
940 | setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));
|
941 | };
|
942 | if (descriptors && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });
|
943 | return wrap(tag, description);
|
944 | };
|
945 |
|
946 | redefine($Symbol[PROTOTYPE$1], 'toString', function toString() {
|
947 | return getInternalState(this).tag;
|
948 | });
|
949 |
|
950 | objectPropertyIsEnumerable.f = $propertyIsEnumerable;
|
951 | objectDefineProperty.f = $defineProperty;
|
952 | objectGetOwnPropertyDescriptor.f = $getOwnPropertyDescriptor;
|
953 | objectGetOwnPropertyNames.f = objectGetOwnPropertyNamesExternal.f = $getOwnPropertyNames;
|
954 | objectGetOwnPropertySymbols.f = $getOwnPropertySymbols;
|
955 |
|
956 | if (descriptors) {
|
957 |
|
958 | nativeDefineProperty$1($Symbol[PROTOTYPE$1], 'description', {
|
959 | configurable: true,
|
960 | get: function description() {
|
961 | return getInternalState(this).description;
|
962 | }
|
963 | });
|
964 | {
|
965 | redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
|
966 | }
|
967 | }
|
968 | }
|
969 |
|
970 | if (!useSymbolAsUid) {
|
971 | wrappedWellKnownSymbol.f = function (name) {
|
972 | return wrap(wellKnownSymbol(name), name);
|
973 | };
|
974 | }
|
975 |
|
976 | _export({ global: true, wrap: true, forced: !nativeSymbol, sham: !nativeSymbol }, {
|
977 | Symbol: $Symbol
|
978 | });
|
979 |
|
980 | $forEach(objectKeys(WellKnownSymbolsStore$1), function (name) {
|
981 | defineWellKnownSymbol(name);
|
982 | });
|
983 |
|
984 | _export({ target: SYMBOL, stat: true, forced: !nativeSymbol }, {
|
985 |
|
986 |
|
987 | 'for': function (key) {
|
988 | var string = String(key);
|
989 | if (has(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];
|
990 | var symbol = $Symbol(string);
|
991 | StringToSymbolRegistry[string] = symbol;
|
992 | SymbolToStringRegistry[symbol] = string;
|
993 | return symbol;
|
994 | },
|
995 |
|
996 |
|
997 | keyFor: function keyFor(sym) {
|
998 | if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');
|
999 | if (has(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
|
1000 | },
|
1001 | useSetter: function () { USE_SETTER = true; },
|
1002 | useSimple: function () { USE_SETTER = false; }
|
1003 | });
|
1004 |
|
1005 | _export({ target: 'Object', stat: true, forced: !nativeSymbol, sham: !descriptors }, {
|
1006 |
|
1007 |
|
1008 | create: $create,
|
1009 |
|
1010 |
|
1011 | defineProperty: $defineProperty,
|
1012 |
|
1013 |
|
1014 | defineProperties: $defineProperties,
|
1015 |
|
1016 |
|
1017 | getOwnPropertyDescriptor: $getOwnPropertyDescriptor
|
1018 | });
|
1019 |
|
1020 | _export({ target: 'Object', stat: true, forced: !nativeSymbol }, {
|
1021 |
|
1022 |
|
1023 | getOwnPropertyNames: $getOwnPropertyNames,
|
1024 |
|
1025 |
|
1026 | getOwnPropertySymbols: $getOwnPropertySymbols
|
1027 | });
|
1028 |
|
1029 |
|
1030 |
|
1031 | _export({ target: 'Object', stat: true, forced: fails(function () { objectGetOwnPropertySymbols.f(1); }) }, {
|
1032 | getOwnPropertySymbols: function getOwnPropertySymbols(it) {
|
1033 | return objectGetOwnPropertySymbols.f(toObject(it));
|
1034 | }
|
1035 | });
|
1036 |
|
1037 |
|
1038 |
|
1039 | if ($stringify) {
|
1040 | var FORCED_JSON_STRINGIFY = !nativeSymbol || fails(function () {
|
1041 | var symbol = $Symbol();
|
1042 |
|
1043 | return $stringify([symbol]) != '[null]'
|
1044 |
|
1045 | || $stringify({ a: symbol }) != '{}'
|
1046 |
|
1047 | || $stringify(Object(symbol)) != '{}';
|
1048 | });
|
1049 |
|
1050 | _export({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {
|
1051 |
|
1052 | stringify: function stringify(it, replacer, space) {
|
1053 | var args = [it];
|
1054 | var index = 1;
|
1055 | var $replacer;
|
1056 | while (arguments.length > index) args.push(arguments[index++]);
|
1057 | $replacer = replacer;
|
1058 | if (!isObject(replacer) && it === undefined || isSymbol(it)) return;
|
1059 | if (!isArray(replacer)) replacer = function (key, value) {
|
1060 | if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
|
1061 | if (!isSymbol(value)) return value;
|
1062 | };
|
1063 | args[1] = replacer;
|
1064 | return $stringify.apply(null, args);
|
1065 | }
|
1066 | });
|
1067 | }
|
1068 |
|
1069 |
|
1070 |
|
1071 | if (!$Symbol[PROTOTYPE$1][TO_PRIMITIVE]) {
|
1072 | createNonEnumerableProperty($Symbol[PROTOTYPE$1], TO_PRIMITIVE, $Symbol[PROTOTYPE$1].valueOf);
|
1073 | }
|
1074 |
|
1075 |
|
1076 | setToStringTag($Symbol, SYMBOL);
|
1077 |
|
1078 | hiddenKeys[HIDDEN] = true;
|
1079 |
|
1080 | var defineProperty$2 = objectDefineProperty.f;
|
1081 |
|
1082 |
|
1083 | var NativeSymbol = global_1.Symbol;
|
1084 |
|
1085 | if (descriptors && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||
|
1086 |
|
1087 | NativeSymbol().description !== undefined
|
1088 | )) {
|
1089 | var EmptyStringDescriptionStore = {};
|
1090 |
|
1091 | var SymbolWrapper = function Symbol() {
|
1092 | var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]);
|
1093 | var result = this instanceof SymbolWrapper
|
1094 | ? new NativeSymbol(description)
|
1095 |
|
1096 | : description === undefined ? NativeSymbol() : NativeSymbol(description);
|
1097 | if (description === '') EmptyStringDescriptionStore[result] = true;
|
1098 | return result;
|
1099 | };
|
1100 | copyConstructorProperties(SymbolWrapper, NativeSymbol);
|
1101 | var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype;
|
1102 | symbolPrototype.constructor = SymbolWrapper;
|
1103 |
|
1104 | var symbolToString = symbolPrototype.toString;
|
1105 | var native = String(NativeSymbol('test')) == 'Symbol(test)';
|
1106 | var regexp = /^Symbol\((.*)\)[^)]+$/;
|
1107 | defineProperty$2(symbolPrototype, 'description', {
|
1108 | configurable: true,
|
1109 | get: function description() {
|
1110 | var symbol = isObject(this) ? this.valueOf() : this;
|
1111 | var string = symbolToString.call(symbol);
|
1112 | if (has(EmptyStringDescriptionStore, symbol)) return '';
|
1113 | var desc = native ? string.slice(7, -1) : string.replace(regexp, '$1');
|
1114 | return desc === '' ? undefined : desc;
|
1115 | }
|
1116 | });
|
1117 |
|
1118 | _export({ global: true, forced: true }, {
|
1119 | Symbol: SymbolWrapper
|
1120 | });
|
1121 | }
|
1122 |
|
1123 |
|
1124 |
|
1125 | defineWellKnownSymbol('iterator');
|
1126 |
|
1127 | var createProperty = function (object, key, value) {
|
1128 | var propertyKey = toPrimitive(key);
|
1129 | if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
|
1130 | else object[propertyKey] = value;
|
1131 | };
|
1132 |
|
1133 | var userAgent = getBuiltIn('navigator', 'userAgent') || '';
|
1134 |
|
1135 | var process = global_1.process;
|
1136 | var versions = process && process.versions;
|
1137 | var v8 = versions && versions.v8;
|
1138 | var match, version;
|
1139 |
|
1140 | if (v8) {
|
1141 | match = v8.split('.');
|
1142 | version = match[0] + match[1];
|
1143 | } else if (userAgent) {
|
1144 | match = userAgent.match(/Edge\/(\d+)/);
|
1145 | if (!match || match[1] >= 74) {
|
1146 | match = userAgent.match(/Chrome\/(\d+)/);
|
1147 | if (match) version = match[1];
|
1148 | }
|
1149 | }
|
1150 |
|
1151 | var v8Version = version && +version;
|
1152 |
|
1153 | var SPECIES$1 = wellKnownSymbol('species');
|
1154 |
|
1155 | var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
|
1156 |
|
1157 |
|
1158 |
|
1159 | return v8Version >= 51 || !fails(function () {
|
1160 | var array = [];
|
1161 | var constructor = array.constructor = {};
|
1162 | constructor[SPECIES$1] = function () {
|
1163 | return { foo: 1 };
|
1164 | };
|
1165 | return array[METHOD_NAME](Boolean).foo !== 1;
|
1166 | });
|
1167 | };
|
1168 |
|
1169 | var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
|
1170 | var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
1171 | var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
|
1172 |
|
1173 |
|
1174 |
|
1175 |
|
1176 | var IS_CONCAT_SPREADABLE_SUPPORT = v8Version >= 51 || !fails(function () {
|
1177 | var array = [];
|
1178 | array[IS_CONCAT_SPREADABLE] = false;
|
1179 | return array.concat()[0] !== array;
|
1180 | });
|
1181 |
|
1182 | var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
|
1183 |
|
1184 | var isConcatSpreadable = function (O) {
|
1185 | if (!isObject(O)) return false;
|
1186 | var spreadable = O[IS_CONCAT_SPREADABLE];
|
1187 | return spreadable !== undefined ? !!spreadable : isArray(O);
|
1188 | };
|
1189 |
|
1190 | var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
|
1191 |
|
1192 |
|
1193 |
|
1194 |
|
1195 | _export({ target: 'Array', proto: true, forced: FORCED }, {
|
1196 | concat: function concat(arg) {
|
1197 | var O = toObject(this);
|
1198 | var A = arraySpeciesCreate(O, 0);
|
1199 | var n = 0;
|
1200 | var i, k, length, len, E;
|
1201 | for (i = -1, length = arguments.length; i < length; i++) {
|
1202 | E = i === -1 ? O : arguments[i];
|
1203 | if (isConcatSpreadable(E)) {
|
1204 | len = toLength(E.length);
|
1205 | if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1206 | for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
|
1207 | } else {
|
1208 | if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1209 | createProperty(A, n++, E);
|
1210 | }
|
1211 | }
|
1212 | A.length = n;
|
1213 | return A;
|
1214 | }
|
1215 | });
|
1216 |
|
1217 | var UNSCOPABLES = wellKnownSymbol('unscopables');
|
1218 | var ArrayPrototype = Array.prototype;
|
1219 |
|
1220 |
|
1221 |
|
1222 | if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
1223 | objectDefineProperty.f(ArrayPrototype, UNSCOPABLES, {
|
1224 | configurable: true,
|
1225 | value: objectCreate(null)
|
1226 | });
|
1227 | }
|
1228 |
|
1229 |
|
1230 | var addToUnscopables = function (key) {
|
1231 | ArrayPrototype[UNSCOPABLES][key] = true;
|
1232 | };
|
1233 |
|
1234 | var correctPrototypeGetter = !fails(function () {
|
1235 | function F() { }
|
1236 | F.prototype.constructor = null;
|
1237 | return Object.getPrototypeOf(new F()) !== F.prototype;
|
1238 | });
|
1239 |
|
1240 | var IE_PROTO$1 = sharedKey('IE_PROTO');
|
1241 | var ObjectPrototype$1 = Object.prototype;
|
1242 |
|
1243 |
|
1244 |
|
1245 | var objectGetPrototypeOf = correctPrototypeGetter ? Object.getPrototypeOf : function (O) {
|
1246 | O = toObject(O);
|
1247 | if (has(O, IE_PROTO$1)) return O[IE_PROTO$1];
|
1248 | if (typeof O.constructor == 'function' && O instanceof O.constructor) {
|
1249 | return O.constructor.prototype;
|
1250 | } return O instanceof Object ? ObjectPrototype$1 : null;
|
1251 | };
|
1252 |
|
1253 | var ITERATOR = wellKnownSymbol('iterator');
|
1254 | var BUGGY_SAFARI_ITERATORS = false;
|
1255 |
|
1256 | var returnThis = function () { return this; };
|
1257 |
|
1258 |
|
1259 |
|
1260 | var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
1261 |
|
1262 | if ([].keys) {
|
1263 | arrayIterator = [].keys();
|
1264 |
|
1265 | if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
|
1266 | else {
|
1267 | PrototypeOfArrayIteratorPrototype = objectGetPrototypeOf(objectGetPrototypeOf(arrayIterator));
|
1268 | if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;
|
1269 | }
|
1270 | }
|
1271 |
|
1272 | if (IteratorPrototype == undefined) IteratorPrototype = {};
|
1273 |
|
1274 |
|
1275 | if ( !has(IteratorPrototype, ITERATOR)) {
|
1276 | createNonEnumerableProperty(IteratorPrototype, ITERATOR, returnThis);
|
1277 | }
|
1278 |
|
1279 | var iteratorsCore = {
|
1280 | IteratorPrototype: IteratorPrototype,
|
1281 | BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
|
1282 | };
|
1283 |
|
1284 | var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
1285 |
|
1286 | var createIteratorConstructor = function (IteratorConstructor, NAME, next) {
|
1287 | var TO_STRING_TAG = NAME + ' Iterator';
|
1288 | IteratorConstructor.prototype = objectCreate(IteratorPrototype$1, { next: createPropertyDescriptor(1, next) });
|
1289 | setToStringTag(IteratorConstructor, TO_STRING_TAG, false);
|
1290 | return IteratorConstructor;
|
1291 | };
|
1292 |
|
1293 | var aPossiblePrototype = function (it) {
|
1294 | if (!isObject(it) && it !== null) {
|
1295 | throw TypeError("Can't set " + String(it) + ' as a prototype');
|
1296 | } return it;
|
1297 | };
|
1298 |
|
1299 |
|
1300 |
|
1301 |
|
1302 |
|
1303 | var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
1304 | var CORRECT_SETTER = false;
|
1305 | var test = {};
|
1306 | var setter;
|
1307 | try {
|
1308 | setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;
|
1309 | setter.call(test, []);
|
1310 | CORRECT_SETTER = test instanceof Array;
|
1311 | } catch (error) { }
|
1312 | return function setPrototypeOf(O, proto) {
|
1313 | anObject(O);
|
1314 | aPossiblePrototype(proto);
|
1315 | if (CORRECT_SETTER) setter.call(O, proto);
|
1316 | else O.__proto__ = proto;
|
1317 | return O;
|
1318 | };
|
1319 | }() : undefined);
|
1320 |
|
1321 | var IteratorPrototype$2 = iteratorsCore.IteratorPrototype;
|
1322 | var BUGGY_SAFARI_ITERATORS$1 = iteratorsCore.BUGGY_SAFARI_ITERATORS;
|
1323 | var ITERATOR$1 = wellKnownSymbol('iterator');
|
1324 | var KEYS = 'keys';
|
1325 | var VALUES = 'values';
|
1326 | var ENTRIES = 'entries';
|
1327 |
|
1328 | var returnThis$1 = function () { return this; };
|
1329 |
|
1330 | var defineIterator = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
|
1331 | createIteratorConstructor(IteratorConstructor, NAME, next);
|
1332 |
|
1333 | var getIterationMethod = function (KIND) {
|
1334 | if (KIND === DEFAULT && defaultIterator) return defaultIterator;
|
1335 | if (!BUGGY_SAFARI_ITERATORS$1 && KIND in IterablePrototype) return IterablePrototype[KIND];
|
1336 | switch (KIND) {
|
1337 | case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
|
1338 | case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
|
1339 | case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
|
1340 | } return function () { return new IteratorConstructor(this); };
|
1341 | };
|
1342 |
|
1343 | var TO_STRING_TAG = NAME + ' Iterator';
|
1344 | var INCORRECT_VALUES_NAME = false;
|
1345 | var IterablePrototype = Iterable.prototype;
|
1346 | var nativeIterator = IterablePrototype[ITERATOR$1]
|
1347 | || IterablePrototype['@@iterator']
|
1348 | || DEFAULT && IterablePrototype[DEFAULT];
|
1349 | var defaultIterator = !BUGGY_SAFARI_ITERATORS$1 && nativeIterator || getIterationMethod(DEFAULT);
|
1350 | var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
|
1351 | var CurrentIteratorPrototype, methods, KEY;
|
1352 |
|
1353 |
|
1354 | if (anyNativeIterator) {
|
1355 | CurrentIteratorPrototype = objectGetPrototypeOf(anyNativeIterator.call(new Iterable()));
|
1356 | if (IteratorPrototype$2 !== Object.prototype && CurrentIteratorPrototype.next) {
|
1357 | if ( objectGetPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype$2) {
|
1358 | if (objectSetPrototypeOf) {
|
1359 | objectSetPrototypeOf(CurrentIteratorPrototype, IteratorPrototype$2);
|
1360 | } else if (typeof CurrentIteratorPrototype[ITERATOR$1] != 'function') {
|
1361 | createNonEnumerableProperty(CurrentIteratorPrototype, ITERATOR$1, returnThis$1);
|
1362 | }
|
1363 | }
|
1364 |
|
1365 | setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);
|
1366 | }
|
1367 | }
|
1368 |
|
1369 |
|
1370 | if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
1371 | INCORRECT_VALUES_NAME = true;
|
1372 | defaultIterator = function values() { return nativeIterator.call(this); };
|
1373 | }
|
1374 |
|
1375 |
|
1376 | if ( IterablePrototype[ITERATOR$1] !== defaultIterator) {
|
1377 | createNonEnumerableProperty(IterablePrototype, ITERATOR$1, defaultIterator);
|
1378 | }
|
1379 |
|
1380 |
|
1381 | if (DEFAULT) {
|
1382 | methods = {
|
1383 | values: getIterationMethod(VALUES),
|
1384 | keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
|
1385 | entries: getIterationMethod(ENTRIES)
|
1386 | };
|
1387 | if (FORCED) for (KEY in methods) {
|
1388 | if (BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
1389 | redefine(IterablePrototype, KEY, methods[KEY]);
|
1390 | }
|
1391 | } else _export({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME }, methods);
|
1392 | }
|
1393 |
|
1394 | return methods;
|
1395 | };
|
1396 |
|
1397 | var ARRAY_ITERATOR = 'Array Iterator';
|
1398 | var setInternalState$1 = internalState.set;
|
1399 | var getInternalState$1 = internalState.getterFor(ARRAY_ITERATOR);
|
1400 |
|
1401 |
|
1402 |
|
1403 |
|
1404 |
|
1405 |
|
1406 |
|
1407 |
|
1408 |
|
1409 |
|
1410 |
|
1411 | var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
|
1412 | setInternalState$1(this, {
|
1413 | type: ARRAY_ITERATOR,
|
1414 | target: toIndexedObject(iterated),
|
1415 | index: 0,
|
1416 | kind: kind
|
1417 | });
|
1418 |
|
1419 |
|
1420 | }, function () {
|
1421 | var state = getInternalState$1(this);
|
1422 | var target = state.target;
|
1423 | var kind = state.kind;
|
1424 | var index = state.index++;
|
1425 | if (!target || index >= target.length) {
|
1426 | state.target = undefined;
|
1427 | return { value: undefined, done: true };
|
1428 | }
|
1429 | if (kind == 'keys') return { value: index, done: false };
|
1430 | if (kind == 'values') return { value: target[index], done: false };
|
1431 | return { value: [index, target[index]], done: false };
|
1432 | }, 'values');
|
1433 |
|
1434 |
|
1435 | addToUnscopables('keys');
|
1436 | addToUnscopables('values');
|
1437 | addToUnscopables('entries');
|
1438 |
|
1439 | var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
|
1440 | var test = {};
|
1441 |
|
1442 | test[TO_STRING_TAG$1] = 'z';
|
1443 |
|
1444 | var toStringTagSupport = String(test) === '[object z]';
|
1445 |
|
1446 | var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
|
1447 |
|
1448 | var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
1449 |
|
1450 |
|
1451 | var tryGet = function (it, key) {
|
1452 | try {
|
1453 | return it[key];
|
1454 | } catch (error) { }
|
1455 | };
|
1456 |
|
1457 |
|
1458 | var classof = toStringTagSupport ? classofRaw : function (it) {
|
1459 | var O, tag, result;
|
1460 | return it === undefined ? 'Undefined' : it === null ? 'Null'
|
1461 |
|
1462 | : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG$2)) == 'string' ? tag
|
1463 |
|
1464 | : CORRECT_ARGUMENTS ? classofRaw(O)
|
1465 |
|
1466 | : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;
|
1467 | };
|
1468 |
|
1469 |
|
1470 |
|
1471 | var objectToString = toStringTagSupport ? {}.toString : function toString() {
|
1472 | return '[object ' + classof(this) + ']';
|
1473 | };
|
1474 |
|
1475 |
|
1476 |
|
1477 | if (!toStringTagSupport) {
|
1478 | redefine(Object.prototype, 'toString', objectToString, { unsafe: true });
|
1479 | }
|
1480 |
|
1481 |
|
1482 |
|
1483 | var regexpFlags = function () {
|
1484 | var that = anObject(this);
|
1485 | var result = '';
|
1486 | if (that.global) result += 'g';
|
1487 | if (that.ignoreCase) result += 'i';
|
1488 | if (that.multiline) result += 'm';
|
1489 | if (that.dotAll) result += 's';
|
1490 | if (that.unicode) result += 'u';
|
1491 | if (that.sticky) result += 'y';
|
1492 | return result;
|
1493 | };
|
1494 |
|
1495 |
|
1496 |
|
1497 | function RE(s, f) {
|
1498 | return RegExp(s, f);
|
1499 | }
|
1500 |
|
1501 | var UNSUPPORTED_Y = fails(function () {
|
1502 |
|
1503 | var re = RE('a', 'y');
|
1504 | re.lastIndex = 2;
|
1505 | return re.exec('abcd') != null;
|
1506 | });
|
1507 |
|
1508 | var BROKEN_CARET = fails(function () {
|
1509 |
|
1510 | var re = RE('^r', 'gy');
|
1511 | re.lastIndex = 2;
|
1512 | return re.exec('str') != null;
|
1513 | });
|
1514 |
|
1515 | var regexpStickyHelpers = {
|
1516 | UNSUPPORTED_Y: UNSUPPORTED_Y,
|
1517 | BROKEN_CARET: BROKEN_CARET
|
1518 | };
|
1519 |
|
1520 | var nativeExec = RegExp.prototype.exec;
|
1521 |
|
1522 |
|
1523 |
|
1524 | var nativeReplace = String.prototype.replace;
|
1525 |
|
1526 | var patchedExec = nativeExec;
|
1527 |
|
1528 | var UPDATES_LAST_INDEX_WRONG = (function () {
|
1529 | var re1 = /a/;
|
1530 | var re2 = /b*/g;
|
1531 | nativeExec.call(re1, 'a');
|
1532 | nativeExec.call(re2, 'a');
|
1533 | return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
1534 | })();
|
1535 |
|
1536 | var UNSUPPORTED_Y$1 = regexpStickyHelpers.UNSUPPORTED_Y || regexpStickyHelpers.BROKEN_CARET;
|
1537 |
|
1538 |
|
1539 | var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
1540 |
|
1541 | var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1;
|
1542 |
|
1543 | if (PATCH) {
|
1544 | patchedExec = function exec(str) {
|
1545 | var re = this;
|
1546 | var lastIndex, reCopy, match, i;
|
1547 | var sticky = UNSUPPORTED_Y$1 && re.sticky;
|
1548 | var flags = regexpFlags.call(re);
|
1549 | var source = re.source;
|
1550 | var charsAdded = 0;
|
1551 | var strCopy = str;
|
1552 |
|
1553 | if (sticky) {
|
1554 | flags = flags.replace('y', '');
|
1555 | if (flags.indexOf('g') === -1) {
|
1556 | flags += 'g';
|
1557 | }
|
1558 |
|
1559 | strCopy = String(str).slice(re.lastIndex);
|
1560 |
|
1561 | if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== '\n')) {
|
1562 | source = '(?: ' + source + ')';
|
1563 | strCopy = ' ' + strCopy;
|
1564 | charsAdded++;
|
1565 | }
|
1566 |
|
1567 |
|
1568 | reCopy = new RegExp('^(?:' + source + ')', flags);
|
1569 | }
|
1570 |
|
1571 | if (NPCG_INCLUDED) {
|
1572 | reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
|
1573 | }
|
1574 | if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
1575 |
|
1576 | match = nativeExec.call(sticky ? reCopy : re, strCopy);
|
1577 |
|
1578 | if (sticky) {
|
1579 | if (match) {
|
1580 | match.input = match.input.slice(charsAdded);
|
1581 | match[0] = match[0].slice(charsAdded);
|
1582 | match.index = re.lastIndex;
|
1583 | re.lastIndex += match[0].length;
|
1584 | } else re.lastIndex = 0;
|
1585 | } else if (UPDATES_LAST_INDEX_WRONG && match) {
|
1586 | re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
|
1587 | }
|
1588 | if (NPCG_INCLUDED && match && match.length > 1) {
|
1589 |
|
1590 |
|
1591 | nativeReplace.call(match[0], reCopy, function () {
|
1592 | for (i = 1; i < arguments.length - 2; i++) {
|
1593 | if (arguments[i] === undefined) match[i] = undefined;
|
1594 | }
|
1595 | });
|
1596 | }
|
1597 |
|
1598 | return match;
|
1599 | };
|
1600 | }
|
1601 |
|
1602 | var regexpExec = patchedExec;
|
1603 |
|
1604 | _export({ target: 'RegExp', proto: true, forced: /./.exec !== regexpExec }, {
|
1605 | exec: regexpExec
|
1606 | });
|
1607 |
|
1608 |
|
1609 | var createMethod$2 = function (CONVERT_TO_STRING) {
|
1610 | return function ($this, pos) {
|
1611 | var S = String(requireObjectCoercible($this));
|
1612 | var position = toInteger(pos);
|
1613 | var size = S.length;
|
1614 | var first, second;
|
1615 | if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
1616 | first = S.charCodeAt(position);
|
1617 | return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
1618 | || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
|
1619 | ? CONVERT_TO_STRING ? S.charAt(position) : first
|
1620 | : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
|
1621 | };
|
1622 | };
|
1623 |
|
1624 | var stringMultibyte = {
|
1625 |
|
1626 |
|
1627 | codeAt: createMethod$2(false),
|
1628 |
|
1629 |
|
1630 | charAt: createMethod$2(true)
|
1631 | };
|
1632 |
|
1633 | var charAt = stringMultibyte.charAt;
|
1634 |
|
1635 |
|
1636 |
|
1637 | var STRING_ITERATOR = 'String Iterator';
|
1638 | var setInternalState$2 = internalState.set;
|
1639 | var getInternalState$2 = internalState.getterFor(STRING_ITERATOR);
|
1640 |
|
1641 |
|
1642 |
|
1643 | defineIterator(String, 'String', function (iterated) {
|
1644 | setInternalState$2(this, {
|
1645 | type: STRING_ITERATOR,
|
1646 | string: String(iterated),
|
1647 | index: 0
|
1648 | });
|
1649 |
|
1650 |
|
1651 | }, function next() {
|
1652 | var state = getInternalState$2(this);
|
1653 | var string = state.string;
|
1654 | var index = state.index;
|
1655 | var point;
|
1656 | if (index >= string.length) return { value: undefined, done: true };
|
1657 | point = charAt(string, index);
|
1658 | state.index += point.length;
|
1659 | return { value: point, done: false };
|
1660 | });
|
1661 |
|
1662 | var SPECIES$2 = wellKnownSymbol('species');
|
1663 |
|
1664 | var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
|
1665 |
|
1666 |
|
1667 |
|
1668 | var re = /./;
|
1669 | re.exec = function () {
|
1670 | var result = [];
|
1671 | result.groups = { a: '7' };
|
1672 | return result;
|
1673 | };
|
1674 | return ''.replace(re, '$<a>') !== '7';
|
1675 | });
|
1676 |
|
1677 |
|
1678 |
|
1679 | var REPLACE_KEEPS_$0 = (function () {
|
1680 | return 'a'.replace(/./, '$0') === '$0';
|
1681 | })();
|
1682 |
|
1683 |
|
1684 |
|
1685 | var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
|
1686 | var re = /(?:)/;
|
1687 | var originalExec = re.exec;
|
1688 | re.exec = function () { return originalExec.apply(this, arguments); };
|
1689 | var result = 'ab'.split(re);
|
1690 | return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
|
1691 | });
|
1692 |
|
1693 | var fixRegexpWellKnownSymbolLogic = function (KEY, length, exec, sham) {
|
1694 | var SYMBOL = wellKnownSymbol(KEY);
|
1695 |
|
1696 | var DELEGATES_TO_SYMBOL = !fails(function () {
|
1697 |
|
1698 | var O = {};
|
1699 | O[SYMBOL] = function () { return 7; };
|
1700 | return ''[KEY](O) != 7;
|
1701 | });
|
1702 |
|
1703 | var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
|
1704 |
|
1705 | var execCalled = false;
|
1706 | var re = /a/;
|
1707 |
|
1708 | if (KEY === 'split') {
|
1709 |
|
1710 |
|
1711 |
|
1712 | re = {};
|
1713 |
|
1714 |
|
1715 | re.constructor = {};
|
1716 | re.constructor[SPECIES$2] = function () { return re; };
|
1717 | re.flags = '';
|
1718 | re[SYMBOL] = /./[SYMBOL];
|
1719 | }
|
1720 |
|
1721 | re.exec = function () { execCalled = true; return null; };
|
1722 |
|
1723 | re[SYMBOL]('');
|
1724 | return !execCalled;
|
1725 | });
|
1726 |
|
1727 | if (
|
1728 | !DELEGATES_TO_SYMBOL ||
|
1729 | !DELEGATES_TO_EXEC ||
|
1730 | (KEY === 'replace' && !(REPLACE_SUPPORTS_NAMED_GROUPS && REPLACE_KEEPS_$0)) ||
|
1731 | (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
|
1732 | ) {
|
1733 | var nativeRegExpMethod = /./[SYMBOL];
|
1734 | var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
1735 | if (regexp.exec === regexpExec) {
|
1736 | if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
1737 |
|
1738 |
|
1739 |
|
1740 | return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
|
1741 | }
|
1742 | return { done: true, value: nativeMethod.call(str, regexp, arg2) };
|
1743 | }
|
1744 | return { done: false };
|
1745 | }, { REPLACE_KEEPS_$0: REPLACE_KEEPS_$0 });
|
1746 | var stringMethod = methods[0];
|
1747 | var regexMethod = methods[1];
|
1748 |
|
1749 | redefine(String.prototype, KEY, stringMethod);
|
1750 | redefine(RegExp.prototype, SYMBOL, length == 2
|
1751 |
|
1752 |
|
1753 | ? function (string, arg) { return regexMethod.call(string, this, arg); }
|
1754 |
|
1755 |
|
1756 | : function (string) { return regexMethod.call(string, this); }
|
1757 | );
|
1758 | }
|
1759 |
|
1760 | if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true);
|
1761 | };
|
1762 |
|
1763 | var charAt$1 = stringMultibyte.charAt;
|
1764 |
|
1765 |
|
1766 |
|
1767 | var advanceStringIndex = function (S, index, unicode) {
|
1768 | return index + (unicode ? charAt$1(S, index).length : 1);
|
1769 | };
|
1770 |
|
1771 |
|
1772 |
|
1773 | var regexpExecAbstract = function (R, S) {
|
1774 | var exec = R.exec;
|
1775 | if (typeof exec === 'function') {
|
1776 | var result = exec.call(R, S);
|
1777 | if (typeof result !== 'object') {
|
1778 | throw TypeError('RegExp exec method returned something other than an Object or null');
|
1779 | }
|
1780 | return result;
|
1781 | }
|
1782 |
|
1783 | if (classofRaw(R) !== 'RegExp') {
|
1784 | throw TypeError('RegExp#exec called on incompatible receiver');
|
1785 | }
|
1786 |
|
1787 | return regexpExec.call(R, S);
|
1788 | };
|
1789 |
|
1790 | var max$1 = Math.max;
|
1791 | var min$2 = Math.min;
|
1792 | var floor$1 = Math.floor;
|
1793 | var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d\d?|<[^>]*>)/g;
|
1794 | var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d\d?)/g;
|
1795 |
|
1796 | var maybeToString = function (it) {
|
1797 | return it === undefined ? it : String(it);
|
1798 | };
|
1799 |
|
1800 |
|
1801 | fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {
|
1802 | return [
|
1803 |
|
1804 |
|
1805 | function replace(searchValue, replaceValue) {
|
1806 | var O = requireObjectCoercible(this);
|
1807 | var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];
|
1808 | return replacer !== undefined
|
1809 | ? replacer.call(searchValue, O, replaceValue)
|
1810 | : nativeReplace.call(String(O), searchValue, replaceValue);
|
1811 | },
|
1812 |
|
1813 |
|
1814 | function (regexp, replaceValue) {
|
1815 | if (reason.REPLACE_KEEPS_$0 || (typeof replaceValue === 'string' && replaceValue.indexOf('$0') === -1)) {
|
1816 | var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);
|
1817 | if (res.done) return res.value;
|
1818 | }
|
1819 |
|
1820 | var rx = anObject(regexp);
|
1821 | var S = String(this);
|
1822 |
|
1823 | var functionalReplace = typeof replaceValue === 'function';
|
1824 | if (!functionalReplace) replaceValue = String(replaceValue);
|
1825 |
|
1826 | var global = rx.global;
|
1827 | if (global) {
|
1828 | var fullUnicode = rx.unicode;
|
1829 | rx.lastIndex = 0;
|
1830 | }
|
1831 | var results = [];
|
1832 | while (true) {
|
1833 | var result = regexpExecAbstract(rx, S);
|
1834 | if (result === null) break;
|
1835 |
|
1836 | results.push(result);
|
1837 | if (!global) break;
|
1838 |
|
1839 | var matchStr = String(result[0]);
|
1840 | if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
1841 | }
|
1842 |
|
1843 | var accumulatedResult = '';
|
1844 | var nextSourcePosition = 0;
|
1845 | for (var i = 0; i < results.length; i++) {
|
1846 | result = results[i];
|
1847 |
|
1848 | var matched = String(result[0]);
|
1849 | var position = max$1(min$2(toInteger(result.index), S.length), 0);
|
1850 | var captures = [];
|
1851 |
|
1852 |
|
1853 |
|
1854 |
|
1855 |
|
1856 | for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
|
1857 | var namedCaptures = result.groups;
|
1858 | if (functionalReplace) {
|
1859 | var replacerArgs = [matched].concat(captures, position, S);
|
1860 | if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
|
1861 | var replacement = String(replaceValue.apply(undefined, replacerArgs));
|
1862 | } else {
|
1863 | replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
1864 | }
|
1865 | if (position >= nextSourcePosition) {
|
1866 | accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
|
1867 | nextSourcePosition = position + matched.length;
|
1868 | }
|
1869 | }
|
1870 | return accumulatedResult + S.slice(nextSourcePosition);
|
1871 | }
|
1872 | ];
|
1873 |
|
1874 |
|
1875 | function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {
|
1876 | var tailPos = position + matched.length;
|
1877 | var m = captures.length;
|
1878 | var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
|
1879 | if (namedCaptures !== undefined) {
|
1880 | namedCaptures = toObject(namedCaptures);
|
1881 | symbols = SUBSTITUTION_SYMBOLS;
|
1882 | }
|
1883 | return nativeReplace.call(replacement, symbols, function (match, ch) {
|
1884 | var capture;
|
1885 | switch (ch.charAt(0)) {
|
1886 | case '$': return '$';
|
1887 | case '&': return matched;
|
1888 | case '`': return str.slice(0, position);
|
1889 | case "'": return str.slice(tailPos);
|
1890 | case '<':
|
1891 | capture = namedCaptures[ch.slice(1, -1)];
|
1892 | break;
|
1893 | default:
|
1894 | var n = +ch;
|
1895 | if (n === 0) return match;
|
1896 | if (n > m) {
|
1897 | var f = floor$1(n / 10);
|
1898 | if (f === 0) return match;
|
1899 | if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
|
1900 | return match;
|
1901 | }
|
1902 | capture = captures[n - 1];
|
1903 | }
|
1904 | return capture === undefined ? '' : capture;
|
1905 | });
|
1906 | }
|
1907 | });
|
1908 |
|
1909 |
|
1910 |
|
1911 | var domIterables = {
|
1912 | CSSRuleList: 0,
|
1913 | CSSStyleDeclaration: 0,
|
1914 | CSSValueList: 0,
|
1915 | ClientRectList: 0,
|
1916 | DOMRectList: 0,
|
1917 | DOMStringList: 0,
|
1918 | DOMTokenList: 1,
|
1919 | DataTransferItemList: 0,
|
1920 | FileList: 0,
|
1921 | HTMLAllCollection: 0,
|
1922 | HTMLCollection: 0,
|
1923 | HTMLFormElement: 0,
|
1924 | HTMLSelectElement: 0,
|
1925 | MediaList: 0,
|
1926 | MimeTypeArray: 0,
|
1927 | NamedNodeMap: 0,
|
1928 | NodeList: 1,
|
1929 | PaintRequestList: 0,
|
1930 | Plugin: 0,
|
1931 | PluginArray: 0,
|
1932 | SVGLengthList: 0,
|
1933 | SVGNumberList: 0,
|
1934 | SVGPathSegList: 0,
|
1935 | SVGPointList: 0,
|
1936 | SVGStringList: 0,
|
1937 | SVGTransformList: 0,
|
1938 | SourceBufferList: 0,
|
1939 | StyleSheetList: 0,
|
1940 | TextTrackCueList: 0,
|
1941 | TextTrackList: 0,
|
1942 | TouchList: 0
|
1943 | };
|
1944 |
|
1945 | var ITERATOR$2 = wellKnownSymbol('iterator');
|
1946 | var TO_STRING_TAG$3 = wellKnownSymbol('toStringTag');
|
1947 | var ArrayValues = es_array_iterator.values;
|
1948 |
|
1949 | for (var COLLECTION_NAME in domIterables) {
|
1950 | var Collection = global_1[COLLECTION_NAME];
|
1951 | var CollectionPrototype = Collection && Collection.prototype;
|
1952 | if (CollectionPrototype) {
|
1953 |
|
1954 | if (CollectionPrototype[ITERATOR$2] !== ArrayValues) try {
|
1955 | createNonEnumerableProperty(CollectionPrototype, ITERATOR$2, ArrayValues);
|
1956 | } catch (error) {
|
1957 | CollectionPrototype[ITERATOR$2] = ArrayValues;
|
1958 | }
|
1959 | if (!CollectionPrototype[TO_STRING_TAG$3]) {
|
1960 | createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG$3, COLLECTION_NAME);
|
1961 | }
|
1962 | if (domIterables[COLLECTION_NAME]) for (var METHOD_NAME in es_array_iterator) {
|
1963 |
|
1964 | if (CollectionPrototype[METHOD_NAME] !== es_array_iterator[METHOD_NAME]) try {
|
1965 | createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, es_array_iterator[METHOD_NAME]);
|
1966 | } catch (error) {
|
1967 | CollectionPrototype[METHOD_NAME] = es_array_iterator[METHOD_NAME];
|
1968 | }
|
1969 | }
|
1970 | }
|
1971 | }
|
1972 |
|
1973 | function _defineProperty(obj, key, value) {
|
1974 | if (key in obj) {
|
1975 | Object.defineProperty(obj, key, {
|
1976 | value: value,
|
1977 | enumerable: true,
|
1978 | configurable: true,
|
1979 | writable: true
|
1980 | });
|
1981 | } else {
|
1982 | obj[key] = value;
|
1983 | }
|
1984 |
|
1985 | return obj;
|
1986 | }
|
1987 |
|
1988 | function ownKeys$1(object, enumerableOnly) {
|
1989 | var keys = Object.keys(object);
|
1990 |
|
1991 | if (Object.getOwnPropertySymbols) {
|
1992 | var symbols = Object.getOwnPropertySymbols(object);
|
1993 | if (enumerableOnly) symbols = symbols.filter(function (sym) {
|
1994 | return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
1995 | });
|
1996 | keys.push.apply(keys, symbols);
|
1997 | }
|
1998 |
|
1999 | return keys;
|
2000 | }
|
2001 |
|
2002 | function _objectSpread2(target) {
|
2003 | for (var i = 1; i < arguments.length; i++) {
|
2004 | var source = arguments[i] != null ? arguments[i] : {};
|
2005 |
|
2006 | if (i % 2) {
|
2007 | ownKeys$1(Object(source), true).forEach(function (key) {
|
2008 | _defineProperty(target, key, source[key]);
|
2009 | });
|
2010 | } else if (Object.getOwnPropertyDescriptors) {
|
2011 | Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
2012 | } else {
|
2013 | ownKeys$1(Object(source)).forEach(function (key) {
|
2014 | Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
2015 | });
|
2016 | }
|
2017 | }
|
2018 |
|
2019 | return target;
|
2020 | }
|
2021 |
|
2022 | function _toConsumableArray(arr) {
|
2023 | return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
|
2024 | }
|
2025 |
|
2026 | function _arrayWithoutHoles(arr) {
|
2027 | if (Array.isArray(arr)) {
|
2028 | for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
|
2029 |
|
2030 | return arr2;
|
2031 | }
|
2032 | }
|
2033 |
|
2034 | function _iterableToArray(iter) {
|
2035 | if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
|
2036 | }
|
2037 |
|
2038 | function _nonIterableSpread() {
|
2039 | throw new TypeError("Invalid attempt to spread non-iterable instance");
|
2040 | }
|
2041 |
|
2042 |
|
2043 |
|
2044 |
|
2045 |
|
2046 | var $ = window.jQuery;
|
2047 |
|
2048 | var deepCopy = function deepCopy(arg) {
|
2049 | if (arg === undefined) {
|
2050 | return arg;
|
2051 | }
|
2052 |
|
2053 | return $.extend(true, Array.isArray(arg) ? [] : {}, arg);
|
2054 | };
|
2055 |
|
2056 | var script = {
|
2057 | name: 'BootstrapTable',
|
2058 | props: {
|
2059 | columns: {
|
2060 | type: Array,
|
2061 | require: true
|
2062 | },
|
2063 | data: {
|
2064 | type: [Array, Object],
|
2065 | default: function _default() {
|
2066 | return undefined;
|
2067 | }
|
2068 | },
|
2069 | options: {
|
2070 | type: Object,
|
2071 | default: function _default() {
|
2072 | return {};
|
2073 | }
|
2074 | }
|
2075 | },
|
2076 | mounted: function mounted() {
|
2077 | var _this = this;
|
2078 |
|
2079 | this.$table = $(this.$el);
|
2080 | this.$table.on('all.bs.table', function (e, name, args) {
|
2081 | var eventName = $.fn.bootstrapTable.events[name];
|
2082 | eventName = eventName.replace(/([A-Z])/g, '-$1').toLowerCase();
|
2083 |
|
2084 | _this.$emit.apply(_this, ['on-all'].concat(_toConsumableArray(args)));
|
2085 |
|
2086 | _this.$emit.apply(_this, [eventName].concat(_toConsumableArray(args)));
|
2087 | });
|
2088 |
|
2089 | this._initTable();
|
2090 | },
|
2091 | methods: _objectSpread2({
|
2092 | _initTable: function _initTable() {
|
2093 | var options = _objectSpread2({}, deepCopy(this.options), {
|
2094 | columns: deepCopy(this.columns),
|
2095 | data: deepCopy(this.data)
|
2096 | });
|
2097 |
|
2098 | if (!this._hasInit) {
|
2099 | this.$table.bootstrapTable(options);
|
2100 | this._hasInit = true;
|
2101 | } else {
|
2102 | this.refreshOptions(options);
|
2103 | }
|
2104 | }
|
2105 | }, function () {
|
2106 | var res = {};
|
2107 | var _iteratorNormalCompletion = true;
|
2108 | var _didIteratorError = false;
|
2109 | var _iteratorError = undefined;
|
2110 |
|
2111 | try {
|
2112 | var _loop = function _loop() {
|
2113 | var method = _step.value;
|
2114 |
|
2115 | res[method] = function () {
|
2116 | var _this$$table;
|
2117 |
|
2118 | for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
2119 | args[_key] = arguments[_key];
|
2120 | }
|
2121 |
|
2122 | return (_this$$table = this.$table).bootstrapTable.apply(_this$$table, [method].concat(args));
|
2123 | };
|
2124 | };
|
2125 |
|
2126 | for (var _iterator = $.fn.bootstrapTable.methods[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
2127 | _loop();
|
2128 | }
|
2129 | } catch (err) {
|
2130 | _didIteratorError = true;
|
2131 | _iteratorError = err;
|
2132 | } finally {
|
2133 | try {
|
2134 | if (!_iteratorNormalCompletion && _iterator.return != null) {
|
2135 | _iterator.return();
|
2136 | }
|
2137 | } finally {
|
2138 | if (_didIteratorError) {
|
2139 | throw _iteratorError;
|
2140 | }
|
2141 | }
|
2142 | }
|
2143 |
|
2144 | return res;
|
2145 | }()),
|
2146 | watch: {
|
2147 | options: {
|
2148 | handler: function handler() {
|
2149 | this._initTable();
|
2150 | },
|
2151 | deep: true
|
2152 | },
|
2153 | columns: {
|
2154 | handler: function handler() {
|
2155 | this._initTable();
|
2156 | },
|
2157 | deep: true
|
2158 | },
|
2159 | data: {
|
2160 | handler: function handler() {
|
2161 | this.load(deepCopy(this.data));
|
2162 | },
|
2163 | deep: true
|
2164 | }
|
2165 | }
|
2166 | };
|
2167 |
|
2168 | function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
|
2169 | if (typeof shadowMode !== 'boolean') {
|
2170 | createInjectorSSR = createInjector;
|
2171 | createInjector = shadowMode;
|
2172 | shadowMode = false;
|
2173 | }
|
2174 |
|
2175 | const options = typeof script === 'function' ? script.options : script;
|
2176 |
|
2177 | if (template && template.render) {
|
2178 | options.render = template.render;
|
2179 | options.staticRenderFns = template.staticRenderFns;
|
2180 | options._compiled = true;
|
2181 |
|
2182 | if (isFunctionalTemplate) {
|
2183 | options.functional = true;
|
2184 | }
|
2185 | }
|
2186 |
|
2187 | if (scopeId) {
|
2188 | options._scopeId = scopeId;
|
2189 | }
|
2190 | let hook;
|
2191 | if (moduleIdentifier) {
|
2192 |
|
2193 | hook = function (context) {
|
2194 |
|
2195 | context =
|
2196 | context ||
|
2197 | (this.$vnode && this.$vnode.ssrContext) ||
|
2198 | (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext);
|
2199 |
|
2200 | if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
2201 | context = __VUE_SSR_CONTEXT__;
|
2202 | }
|
2203 |
|
2204 | if (style) {
|
2205 | style.call(this, createInjectorSSR(context));
|
2206 | }
|
2207 |
|
2208 | if (context && context._registeredComponents) {
|
2209 | context._registeredComponents.add(moduleIdentifier);
|
2210 | }
|
2211 | };
|
2212 |
|
2213 |
|
2214 | options._ssrRegister = hook;
|
2215 | }
|
2216 | else if (style) {
|
2217 | hook = shadowMode
|
2218 | ? function (context) {
|
2219 | style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
|
2220 | }
|
2221 | : function (context) {
|
2222 | style.call(this, createInjector(context));
|
2223 | };
|
2224 | }
|
2225 | if (hook) {
|
2226 | if (options.functional) {
|
2227 |
|
2228 | const originalRender = options.render;
|
2229 | options.render = function renderWithStyleInjection(h, context) {
|
2230 | hook.call(context);
|
2231 | return originalRender(h, context);
|
2232 | };
|
2233 | }
|
2234 | else {
|
2235 |
|
2236 | const existing = options.beforeCreate;
|
2237 | options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
2238 | }
|
2239 | }
|
2240 | return script;
|
2241 | }
|
2242 |
|
2243 |
|
2244 | const __vue_script__ = script;
|
2245 |
|
2246 |
|
2247 | var __vue_render__ = function() {
|
2248 | var _vm = this;
|
2249 | var _h = _vm.$createElement;
|
2250 | var _c = _vm._self._c || _h;
|
2251 | return _c("table")
|
2252 | };
|
2253 | var __vue_staticRenderFns__ = [];
|
2254 | __vue_render__._withStripped = true;
|
2255 |
|
2256 |
|
2257 | const __vue_inject_styles__ = undefined;
|
2258 |
|
2259 | const __vue_scope_id__ = undefined;
|
2260 |
|
2261 | const __vue_module_identifier__ = undefined;
|
2262 |
|
2263 | const __vue_is_functional_template__ = false;
|
2264 |
|
2265 |
|
2266 |
|
2267 |
|
2268 |
|
2269 |
|
2270 |
|
2271 |
|
2272 | const __vue_component__ = normalizeComponent(
|
2273 | { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
2274 | __vue_inject_styles__,
|
2275 | __vue_script__,
|
2276 | __vue_scope_id__,
|
2277 | __vue_is_functional_template__,
|
2278 | __vue_module_identifier__,
|
2279 | false,
|
2280 | undefined,
|
2281 | undefined,
|
2282 | undefined
|
2283 | );
|
2284 |
|
2285 | export default __vue_component__;
|