UNPKG

49.1 kBJavaScriptView Raw
1(function (global, factory) {
2 typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
3 typeof define === 'function' && define.amd ? define(['jquery'], factory) :
4 (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jQuery));
5})(this, (function ($$1) { 'use strict';
6
7 function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
9 var $__default = /*#__PURE__*/_interopDefaultLegacy($$1);
10
11 function _classCallCheck(instance, Constructor) {
12 if (!(instance instanceof Constructor)) {
13 throw new TypeError("Cannot call a class as a function");
14 }
15 }
16
17 function _defineProperties(target, props) {
18 for (var i = 0; i < props.length; i++) {
19 var descriptor = props[i];
20 descriptor.enumerable = descriptor.enumerable || false;
21 descriptor.configurable = true;
22 if ("value" in descriptor) descriptor.writable = true;
23 Object.defineProperty(target, descriptor.key, descriptor);
24 }
25 }
26
27 function _createClass(Constructor, protoProps, staticProps) {
28 if (protoProps) _defineProperties(Constructor.prototype, protoProps);
29 if (staticProps) _defineProperties(Constructor, staticProps);
30 Object.defineProperty(Constructor, "prototype", {
31 writable: false
32 });
33 return Constructor;
34 }
35
36 function _inherits(subClass, superClass) {
37 if (typeof superClass !== "function" && superClass !== null) {
38 throw new TypeError("Super expression must either be null or a function");
39 }
40
41 subClass.prototype = Object.create(superClass && superClass.prototype, {
42 constructor: {
43 value: subClass,
44 writable: true,
45 configurable: true
46 }
47 });
48 Object.defineProperty(subClass, "prototype", {
49 writable: false
50 });
51 if (superClass) _setPrototypeOf(subClass, superClass);
52 }
53
54 function _getPrototypeOf(o) {
55 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
56 return o.__proto__ || Object.getPrototypeOf(o);
57 };
58 return _getPrototypeOf(o);
59 }
60
61 function _setPrototypeOf(o, p) {
62 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
63 o.__proto__ = p;
64 return o;
65 };
66
67 return _setPrototypeOf(o, p);
68 }
69
70 function _isNativeReflectConstruct() {
71 if (typeof Reflect === "undefined" || !Reflect.construct) return false;
72 if (Reflect.construct.sham) return false;
73 if (typeof Proxy === "function") return true;
74
75 try {
76 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
77 return true;
78 } catch (e) {
79 return false;
80 }
81 }
82
83 function _assertThisInitialized(self) {
84 if (self === void 0) {
85 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
86 }
87
88 return self;
89 }
90
91 function _possibleConstructorReturn(self, call) {
92 if (call && (typeof call === "object" || typeof call === "function")) {
93 return call;
94 } else if (call !== void 0) {
95 throw new TypeError("Derived constructors may only return object or undefined");
96 }
97
98 return _assertThisInitialized(self);
99 }
100
101 function _createSuper(Derived) {
102 var hasNativeReflectConstruct = _isNativeReflectConstruct();
103
104 return function _createSuperInternal() {
105 var Super = _getPrototypeOf(Derived),
106 result;
107
108 if (hasNativeReflectConstruct) {
109 var NewTarget = _getPrototypeOf(this).constructor;
110
111 result = Reflect.construct(Super, arguments, NewTarget);
112 } else {
113 result = Super.apply(this, arguments);
114 }
115
116 return _possibleConstructorReturn(this, result);
117 };
118 }
119
120 function _superPropBase(object, property) {
121 while (!Object.prototype.hasOwnProperty.call(object, property)) {
122 object = _getPrototypeOf(object);
123 if (object === null) break;
124 }
125
126 return object;
127 }
128
129 function _get() {
130 if (typeof Reflect !== "undefined" && Reflect.get) {
131 _get = Reflect.get;
132 } else {
133 _get = function _get(target, property, receiver) {
134 var base = _superPropBase(target, property);
135
136 if (!base) return;
137 var desc = Object.getOwnPropertyDescriptor(base, property);
138
139 if (desc.get) {
140 return desc.get.call(arguments.length < 3 ? target : receiver);
141 }
142
143 return desc.value;
144 };
145 }
146
147 return _get.apply(this, arguments);
148 }
149
150 var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
151
152 var check = function (it) {
153 return it && it.Math == Math && it;
154 };
155
156 // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
157 var global$o =
158 // eslint-disable-next-line es-x/no-global-this -- safe
159 check(typeof globalThis == 'object' && globalThis) ||
160 check(typeof window == 'object' && window) ||
161 // eslint-disable-next-line no-restricted-globals -- safe
162 check(typeof self == 'object' && self) ||
163 check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
164 // eslint-disable-next-line no-new-func -- fallback
165 (function () { return this; })() || Function('return this')();
166
167 var objectGetOwnPropertyDescriptor = {};
168
169 var fails$b = function (exec) {
170 try {
171 return !!exec();
172 } catch (error) {
173 return true;
174 }
175 };
176
177 var fails$a = fails$b;
178
179 // Detect IE8's incomplete defineProperty implementation
180 var descriptors = !fails$a(function () {
181 // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
182 return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
183 });
184
185 var fails$9 = fails$b;
186
187 var functionBindNative = !fails$9(function () {
188 // eslint-disable-next-line es-x/no-function-prototype-bind -- safe
189 var test = (function () { /* empty */ }).bind();
190 // eslint-disable-next-line no-prototype-builtins -- safe
191 return typeof test != 'function' || test.hasOwnProperty('prototype');
192 });
193
194 var NATIVE_BIND$1 = functionBindNative;
195
196 var call$4 = Function.prototype.call;
197
198 var functionCall = NATIVE_BIND$1 ? call$4.bind(call$4) : function () {
199 return call$4.apply(call$4, arguments);
200 };
201
202 var objectPropertyIsEnumerable = {};
203
204 var $propertyIsEnumerable = {}.propertyIsEnumerable;
205 // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
206 var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
207
208 // Nashorn ~ JDK8 bug
209 var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
210
211 // `Object.prototype.propertyIsEnumerable` method implementation
212 // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
213 objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
214 var descriptor = getOwnPropertyDescriptor$1(this, V);
215 return !!descriptor && descriptor.enumerable;
216 } : $propertyIsEnumerable;
217
218 var createPropertyDescriptor$3 = function (bitmap, value) {
219 return {
220 enumerable: !(bitmap & 1),
221 configurable: !(bitmap & 2),
222 writable: !(bitmap & 4),
223 value: value
224 };
225 };
226
227 var NATIVE_BIND = functionBindNative;
228
229 var FunctionPrototype$1 = Function.prototype;
230 var bind = FunctionPrototype$1.bind;
231 var call$3 = FunctionPrototype$1.call;
232 var uncurryThis$a = NATIVE_BIND && bind.bind(call$3, call$3);
233
234 var functionUncurryThis = NATIVE_BIND ? function (fn) {
235 return fn && uncurryThis$a(fn);
236 } : function (fn) {
237 return fn && function () {
238 return call$3.apply(fn, arguments);
239 };
240 };
241
242 var uncurryThis$9 = functionUncurryThis;
243
244 var toString$1 = uncurryThis$9({}.toString);
245 var stringSlice = uncurryThis$9(''.slice);
246
247 var classofRaw$1 = function (it) {
248 return stringSlice(toString$1(it), 8, -1);
249 };
250
251 var global$n = global$o;
252 var uncurryThis$8 = functionUncurryThis;
253 var fails$8 = fails$b;
254 var classof$3 = classofRaw$1;
255
256 var Object$4 = global$n.Object;
257 var split = uncurryThis$8(''.split);
258
259 // fallback for non-array-like ES3 and non-enumerable old V8 strings
260 var indexedObject = fails$8(function () {
261 // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
262 // eslint-disable-next-line no-prototype-builtins -- safe
263 return !Object$4('z').propertyIsEnumerable(0);
264 }) ? function (it) {
265 return classof$3(it) == 'String' ? split(it, '') : Object$4(it);
266 } : Object$4;
267
268 var global$m = global$o;
269
270 var TypeError$8 = global$m.TypeError;
271
272 // `RequireObjectCoercible` abstract operation
273 // https://tc39.es/ecma262/#sec-requireobjectcoercible
274 var requireObjectCoercible$2 = function (it) {
275 if (it == undefined) throw TypeError$8("Can't call method on " + it);
276 return it;
277 };
278
279 // toObject with fallback for non-array-like ES3 strings
280 var IndexedObject = indexedObject;
281 var requireObjectCoercible$1 = requireObjectCoercible$2;
282
283 var toIndexedObject$3 = function (it) {
284 return IndexedObject(requireObjectCoercible$1(it));
285 };
286
287 // `IsCallable` abstract operation
288 // https://tc39.es/ecma262/#sec-iscallable
289 var isCallable$c = function (argument) {
290 return typeof argument == 'function';
291 };
292
293 var isCallable$b = isCallable$c;
294
295 var isObject$7 = function (it) {
296 return typeof it == 'object' ? it !== null : isCallable$b(it);
297 };
298
299 var global$l = global$o;
300 var isCallable$a = isCallable$c;
301
302 var aFunction = function (argument) {
303 return isCallable$a(argument) ? argument : undefined;
304 };
305
306 var getBuiltIn$4 = function (namespace, method) {
307 return arguments.length < 2 ? aFunction(global$l[namespace]) : global$l[namespace] && global$l[namespace][method];
308 };
309
310 var uncurryThis$7 = functionUncurryThis;
311
312 var objectIsPrototypeOf = uncurryThis$7({}.isPrototypeOf);
313
314 var getBuiltIn$3 = getBuiltIn$4;
315
316 var engineUserAgent = getBuiltIn$3('navigator', 'userAgent') || '';
317
318 var global$k = global$o;
319 var userAgent = engineUserAgent;
320
321 var process = global$k.process;
322 var Deno = global$k.Deno;
323 var versions = process && process.versions || Deno && Deno.version;
324 var v8 = versions && versions.v8;
325 var match, version;
326
327 if (v8) {
328 match = v8.split('.');
329 // in old Chrome, versions of V8 isn't V8 = Chrome / 10
330 // but their correct versions are not interesting for us
331 version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
332 }
333
334 // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
335 // so check `userAgent` even if `.v8` exists, but 0
336 if (!version && userAgent) {
337 match = userAgent.match(/Edge\/(\d+)/);
338 if (!match || match[1] >= 74) {
339 match = userAgent.match(/Chrome\/(\d+)/);
340 if (match) version = +match[1];
341 }
342 }
343
344 var engineV8Version = version;
345
346 /* eslint-disable es-x/no-symbol -- required for testing */
347
348 var V8_VERSION$2 = engineV8Version;
349 var fails$7 = fails$b;
350
351 // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
352 var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$7(function () {
353 var symbol = Symbol();
354 // Chrome 38 Symbol has incorrect toString conversion
355 // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
356 return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
357 // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
358 !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
359 });
360
361 /* eslint-disable es-x/no-symbol -- required for testing */
362
363 var NATIVE_SYMBOL$1 = nativeSymbol;
364
365 var useSymbolAsUid = NATIVE_SYMBOL$1
366 && !Symbol.sham
367 && typeof Symbol.iterator == 'symbol';
368
369 var global$j = global$o;
370 var getBuiltIn$2 = getBuiltIn$4;
371 var isCallable$9 = isCallable$c;
372 var isPrototypeOf = objectIsPrototypeOf;
373 var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
374
375 var Object$3 = global$j.Object;
376
377 var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
378 return typeof it == 'symbol';
379 } : function (it) {
380 var $Symbol = getBuiltIn$2('Symbol');
381 return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, Object$3(it));
382 };
383
384 var global$i = global$o;
385
386 var String$2 = global$i.String;
387
388 var tryToString$1 = function (argument) {
389 try {
390 return String$2(argument);
391 } catch (error) {
392 return 'Object';
393 }
394 };
395
396 var global$h = global$o;
397 var isCallable$8 = isCallable$c;
398 var tryToString = tryToString$1;
399
400 var TypeError$7 = global$h.TypeError;
401
402 // `Assert: IsCallable(argument) is true`
403 var aCallable$1 = function (argument) {
404 if (isCallable$8(argument)) return argument;
405 throw TypeError$7(tryToString(argument) + ' is not a function');
406 };
407
408 var aCallable = aCallable$1;
409
410 // `GetMethod` abstract operation
411 // https://tc39.es/ecma262/#sec-getmethod
412 var getMethod$1 = function (V, P) {
413 var func = V[P];
414 return func == null ? undefined : aCallable(func);
415 };
416
417 var global$g = global$o;
418 var call$2 = functionCall;
419 var isCallable$7 = isCallable$c;
420 var isObject$6 = isObject$7;
421
422 var TypeError$6 = global$g.TypeError;
423
424 // `OrdinaryToPrimitive` abstract operation
425 // https://tc39.es/ecma262/#sec-ordinarytoprimitive
426 var ordinaryToPrimitive$1 = function (input, pref) {
427 var fn, val;
428 if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val;
429 if (isCallable$7(fn = input.valueOf) && !isObject$6(val = call$2(fn, input))) return val;
430 if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val;
431 throw TypeError$6("Can't convert object to primitive value");
432 };
433
434 var shared$3 = {exports: {}};
435
436 var global$f = global$o;
437
438 // eslint-disable-next-line es-x/no-object-defineproperty -- safe
439 var defineProperty$1 = Object.defineProperty;
440
441 var setGlobal$3 = function (key, value) {
442 try {
443 defineProperty$1(global$f, key, { value: value, configurable: true, writable: true });
444 } catch (error) {
445 global$f[key] = value;
446 } return value;
447 };
448
449 var global$e = global$o;
450 var setGlobal$2 = setGlobal$3;
451
452 var SHARED = '__core-js_shared__';
453 var store$3 = global$e[SHARED] || setGlobal$2(SHARED, {});
454
455 var sharedStore = store$3;
456
457 var store$2 = sharedStore;
458
459 (shared$3.exports = function (key, value) {
460 return store$2[key] || (store$2[key] = value !== undefined ? value : {});
461 })('versions', []).push({
462 version: '3.22.5',
463 mode: 'global',
464 copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
465 license: 'https://github.com/zloirock/core-js/blob/v3.22.5/LICENSE',
466 source: 'https://github.com/zloirock/core-js'
467 });
468
469 var global$d = global$o;
470 var requireObjectCoercible = requireObjectCoercible$2;
471
472 var Object$2 = global$d.Object;
473
474 // `ToObject` abstract operation
475 // https://tc39.es/ecma262/#sec-toobject
476 var toObject$2 = function (argument) {
477 return Object$2(requireObjectCoercible(argument));
478 };
479
480 var uncurryThis$6 = functionUncurryThis;
481 var toObject$1 = toObject$2;
482
483 var hasOwnProperty = uncurryThis$6({}.hasOwnProperty);
484
485 // `HasOwnProperty` abstract operation
486 // https://tc39.es/ecma262/#sec-hasownproperty
487 // eslint-disable-next-line es-x/no-object-hasown -- safe
488 var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
489 return hasOwnProperty(toObject$1(it), key);
490 };
491
492 var uncurryThis$5 = functionUncurryThis;
493
494 var id = 0;
495 var postfix = Math.random();
496 var toString = uncurryThis$5(1.0.toString);
497
498 var uid$2 = function (key) {
499 return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
500 };
501
502 var global$c = global$o;
503 var shared$2 = shared$3.exports;
504 var hasOwn$6 = hasOwnProperty_1;
505 var uid$1 = uid$2;
506 var NATIVE_SYMBOL = nativeSymbol;
507 var USE_SYMBOL_AS_UID = useSymbolAsUid;
508
509 var WellKnownSymbolsStore = shared$2('wks');
510 var Symbol$1 = global$c.Symbol;
511 var symbolFor = Symbol$1 && Symbol$1['for'];
512 var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
513
514 var wellKnownSymbol$6 = function (name) {
515 if (!hasOwn$6(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
516 var description = 'Symbol.' + name;
517 if (NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)) {
518 WellKnownSymbolsStore[name] = Symbol$1[name];
519 } else if (USE_SYMBOL_AS_UID && symbolFor) {
520 WellKnownSymbolsStore[name] = symbolFor(description);
521 } else {
522 WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
523 }
524 } return WellKnownSymbolsStore[name];
525 };
526
527 var global$b = global$o;
528 var call$1 = functionCall;
529 var isObject$5 = isObject$7;
530 var isSymbol$1 = isSymbol$2;
531 var getMethod = getMethod$1;
532 var ordinaryToPrimitive = ordinaryToPrimitive$1;
533 var wellKnownSymbol$5 = wellKnownSymbol$6;
534
535 var TypeError$5 = global$b.TypeError;
536 var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive');
537
538 // `ToPrimitive` abstract operation
539 // https://tc39.es/ecma262/#sec-toprimitive
540 var toPrimitive$1 = function (input, pref) {
541 if (!isObject$5(input) || isSymbol$1(input)) return input;
542 var exoticToPrim = getMethod(input, TO_PRIMITIVE);
543 var result;
544 if (exoticToPrim) {
545 if (pref === undefined) pref = 'default';
546 result = call$1(exoticToPrim, input, pref);
547 if (!isObject$5(result) || isSymbol$1(result)) return result;
548 throw TypeError$5("Can't convert object to primitive value");
549 }
550 if (pref === undefined) pref = 'number';
551 return ordinaryToPrimitive(input, pref);
552 };
553
554 var toPrimitive = toPrimitive$1;
555 var isSymbol = isSymbol$2;
556
557 // `ToPropertyKey` abstract operation
558 // https://tc39.es/ecma262/#sec-topropertykey
559 var toPropertyKey$3 = function (argument) {
560 var key = toPrimitive(argument, 'string');
561 return isSymbol(key) ? key : key + '';
562 };
563
564 var global$a = global$o;
565 var isObject$4 = isObject$7;
566
567 var document = global$a.document;
568 // typeof document.createElement is 'object' in old IE
569 var EXISTS$1 = isObject$4(document) && isObject$4(document.createElement);
570
571 var documentCreateElement = function (it) {
572 return EXISTS$1 ? document.createElement(it) : {};
573 };
574
575 var DESCRIPTORS$6 = descriptors;
576 var fails$6 = fails$b;
577 var createElement = documentCreateElement;
578
579 // Thanks to IE8 for its funny defineProperty
580 var ie8DomDefine = !DESCRIPTORS$6 && !fails$6(function () {
581 // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
582 return Object.defineProperty(createElement('div'), 'a', {
583 get: function () { return 7; }
584 }).a != 7;
585 });
586
587 var DESCRIPTORS$5 = descriptors;
588 var call = functionCall;
589 var propertyIsEnumerableModule = objectPropertyIsEnumerable;
590 var createPropertyDescriptor$2 = createPropertyDescriptor$3;
591 var toIndexedObject$2 = toIndexedObject$3;
592 var toPropertyKey$2 = toPropertyKey$3;
593 var hasOwn$5 = hasOwnProperty_1;
594 var IE8_DOM_DEFINE$1 = ie8DomDefine;
595
596 // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
597 var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
598
599 // `Object.getOwnPropertyDescriptor` method
600 // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
601 objectGetOwnPropertyDescriptor.f = DESCRIPTORS$5 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
602 O = toIndexedObject$2(O);
603 P = toPropertyKey$2(P);
604 if (IE8_DOM_DEFINE$1) try {
605 return $getOwnPropertyDescriptor$1(O, P);
606 } catch (error) { /* empty */ }
607 if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call(propertyIsEnumerableModule.f, O, P), O[P]);
608 };
609
610 var objectDefineProperty = {};
611
612 var DESCRIPTORS$4 = descriptors;
613 var fails$5 = fails$b;
614
615 // V8 ~ Chrome 36-
616 // https://bugs.chromium.org/p/v8/issues/detail?id=3334
617 var v8PrototypeDefineBug = DESCRIPTORS$4 && fails$5(function () {
618 // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
619 return Object.defineProperty(function () { /* empty */ }, 'prototype', {
620 value: 42,
621 writable: false
622 }).prototype != 42;
623 });
624
625 var global$9 = global$o;
626 var isObject$3 = isObject$7;
627
628 var String$1 = global$9.String;
629 var TypeError$4 = global$9.TypeError;
630
631 // `Assert: Type(argument) is Object`
632 var anObject$2 = function (argument) {
633 if (isObject$3(argument)) return argument;
634 throw TypeError$4(String$1(argument) + ' is not an object');
635 };
636
637 var global$8 = global$o;
638 var DESCRIPTORS$3 = descriptors;
639 var IE8_DOM_DEFINE = ie8DomDefine;
640 var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
641 var anObject$1 = anObject$2;
642 var toPropertyKey$1 = toPropertyKey$3;
643
644 var TypeError$3 = global$8.TypeError;
645 // eslint-disable-next-line es-x/no-object-defineproperty -- safe
646 var $defineProperty = Object.defineProperty;
647 // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
648 var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
649 var ENUMERABLE = 'enumerable';
650 var CONFIGURABLE$1 = 'configurable';
651 var WRITABLE = 'writable';
652
653 // `Object.defineProperty` method
654 // https://tc39.es/ecma262/#sec-object.defineproperty
655 objectDefineProperty.f = DESCRIPTORS$3 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
656 anObject$1(O);
657 P = toPropertyKey$1(P);
658 anObject$1(Attributes);
659 if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
660 var current = $getOwnPropertyDescriptor(O, P);
661 if (current && current[WRITABLE]) {
662 O[P] = Attributes.value;
663 Attributes = {
664 configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
665 enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
666 writable: false
667 };
668 }
669 } return $defineProperty(O, P, Attributes);
670 } : $defineProperty : function defineProperty(O, P, Attributes) {
671 anObject$1(O);
672 P = toPropertyKey$1(P);
673 anObject$1(Attributes);
674 if (IE8_DOM_DEFINE) try {
675 return $defineProperty(O, P, Attributes);
676 } catch (error) { /* empty */ }
677 if ('get' in Attributes || 'set' in Attributes) throw TypeError$3('Accessors not supported');
678 if ('value' in Attributes) O[P] = Attributes.value;
679 return O;
680 };
681
682 var DESCRIPTORS$2 = descriptors;
683 var definePropertyModule$2 = objectDefineProperty;
684 var createPropertyDescriptor$1 = createPropertyDescriptor$3;
685
686 var createNonEnumerableProperty$3 = DESCRIPTORS$2 ? function (object, key, value) {
687 return definePropertyModule$2.f(object, key, createPropertyDescriptor$1(1, value));
688 } : function (object, key, value) {
689 object[key] = value;
690 return object;
691 };
692
693 var makeBuiltIn$2 = {exports: {}};
694
695 var DESCRIPTORS$1 = descriptors;
696 var hasOwn$4 = hasOwnProperty_1;
697
698 var FunctionPrototype = Function.prototype;
699 // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
700 var getDescriptor = DESCRIPTORS$1 && Object.getOwnPropertyDescriptor;
701
702 var EXISTS = hasOwn$4(FunctionPrototype, 'name');
703 // additional protection from minified / mangled / dropped function names
704 var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
705 var CONFIGURABLE = EXISTS && (!DESCRIPTORS$1 || (DESCRIPTORS$1 && getDescriptor(FunctionPrototype, 'name').configurable));
706
707 var functionName = {
708 EXISTS: EXISTS,
709 PROPER: PROPER,
710 CONFIGURABLE: CONFIGURABLE
711 };
712
713 var uncurryThis$4 = functionUncurryThis;
714 var isCallable$6 = isCallable$c;
715 var store$1 = sharedStore;
716
717 var functionToString = uncurryThis$4(Function.toString);
718
719 // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
720 if (!isCallable$6(store$1.inspectSource)) {
721 store$1.inspectSource = function (it) {
722 return functionToString(it);
723 };
724 }
725
726 var inspectSource$3 = store$1.inspectSource;
727
728 var global$7 = global$o;
729 var isCallable$5 = isCallable$c;
730 var inspectSource$2 = inspectSource$3;
731
732 var WeakMap$1 = global$7.WeakMap;
733
734 var nativeWeakMap = isCallable$5(WeakMap$1) && /native code/.test(inspectSource$2(WeakMap$1));
735
736 var shared$1 = shared$3.exports;
737 var uid = uid$2;
738
739 var keys = shared$1('keys');
740
741 var sharedKey$1 = function (key) {
742 return keys[key] || (keys[key] = uid(key));
743 };
744
745 var hiddenKeys$3 = {};
746
747 var NATIVE_WEAK_MAP = nativeWeakMap;
748 var global$6 = global$o;
749 var uncurryThis$3 = functionUncurryThis;
750 var isObject$2 = isObject$7;
751 var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
752 var hasOwn$3 = hasOwnProperty_1;
753 var shared = sharedStore;
754 var sharedKey = sharedKey$1;
755 var hiddenKeys$2 = hiddenKeys$3;
756
757 var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
758 var TypeError$2 = global$6.TypeError;
759 var WeakMap = global$6.WeakMap;
760 var set, get, has;
761
762 var enforce = function (it) {
763 return has(it) ? get(it) : set(it, {});
764 };
765
766 var getterFor = function (TYPE) {
767 return function (it) {
768 var state;
769 if (!isObject$2(it) || (state = get(it)).type !== TYPE) {
770 throw TypeError$2('Incompatible receiver, ' + TYPE + ' required');
771 } return state;
772 };
773 };
774
775 if (NATIVE_WEAK_MAP || shared.state) {
776 var store = shared.state || (shared.state = new WeakMap());
777 var wmget = uncurryThis$3(store.get);
778 var wmhas = uncurryThis$3(store.has);
779 var wmset = uncurryThis$3(store.set);
780 set = function (it, metadata) {
781 if (wmhas(store, it)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
782 metadata.facade = it;
783 wmset(store, it, metadata);
784 return metadata;
785 };
786 get = function (it) {
787 return wmget(store, it) || {};
788 };
789 has = function (it) {
790 return wmhas(store, it);
791 };
792 } else {
793 var STATE = sharedKey('state');
794 hiddenKeys$2[STATE] = true;
795 set = function (it, metadata) {
796 if (hasOwn$3(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
797 metadata.facade = it;
798 createNonEnumerableProperty$2(it, STATE, metadata);
799 return metadata;
800 };
801 get = function (it) {
802 return hasOwn$3(it, STATE) ? it[STATE] : {};
803 };
804 has = function (it) {
805 return hasOwn$3(it, STATE);
806 };
807 }
808
809 var internalState = {
810 set: set,
811 get: get,
812 has: has,
813 enforce: enforce,
814 getterFor: getterFor
815 };
816
817 var fails$4 = fails$b;
818 var isCallable$4 = isCallable$c;
819 var hasOwn$2 = hasOwnProperty_1;
820 var DESCRIPTORS = descriptors;
821 var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
822 var inspectSource$1 = inspectSource$3;
823 var InternalStateModule = internalState;
824
825 var enforceInternalState = InternalStateModule.enforce;
826 var getInternalState = InternalStateModule.get;
827 // eslint-disable-next-line es-x/no-object-defineproperty -- safe
828 var defineProperty = Object.defineProperty;
829
830 var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails$4(function () {
831 return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
832 });
833
834 var TEMPLATE = String(String).split('String');
835
836 var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
837 if (String(name).slice(0, 7) === 'Symbol(') {
838 name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
839 }
840 if (options && options.getter) name = 'get ' + name;
841 if (options && options.setter) name = 'set ' + name;
842 if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
843 defineProperty(value, 'name', { value: name, configurable: true });
844 }
845 if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
846 defineProperty(value, 'length', { value: options.arity });
847 }
848 if (options && hasOwn$2(options, 'constructor') && options.constructor) {
849 if (DESCRIPTORS) try {
850 defineProperty(value, 'prototype', { writable: false });
851 } catch (error) { /* empty */ }
852 } else value.prototype = undefined;
853 var state = enforceInternalState(value);
854 if (!hasOwn$2(state, 'source')) {
855 state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
856 } return value;
857 };
858
859 // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
860 // eslint-disable-next-line no-extend-native -- required
861 Function.prototype.toString = makeBuiltIn$1(function toString() {
862 return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this);
863 }, 'toString');
864
865 var global$5 = global$o;
866 var isCallable$3 = isCallable$c;
867 var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
868 var makeBuiltIn = makeBuiltIn$2.exports;
869 var setGlobal$1 = setGlobal$3;
870
871 var defineBuiltIn$1 = function (O, key, value, options) {
872 var unsafe = options ? !!options.unsafe : false;
873 var simple = options ? !!options.enumerable : false;
874 var noTargetGet = options ? !!options.noTargetGet : false;
875 var name = options && options.name !== undefined ? options.name : key;
876 if (isCallable$3(value)) makeBuiltIn(value, name, options);
877 if (O === global$5) {
878 if (simple) O[key] = value;
879 else setGlobal$1(key, value);
880 return O;
881 } else if (!unsafe) {
882 delete O[key];
883 } else if (!noTargetGet && O[key]) {
884 simple = true;
885 }
886 if (simple) O[key] = value;
887 else createNonEnumerableProperty$1(O, key, value);
888 return O;
889 };
890
891 var objectGetOwnPropertyNames = {};
892
893 var ceil = Math.ceil;
894 var floor = Math.floor;
895
896 // `ToIntegerOrInfinity` abstract operation
897 // https://tc39.es/ecma262/#sec-tointegerorinfinity
898 var toIntegerOrInfinity$2 = function (argument) {
899 var number = +argument;
900 // eslint-disable-next-line no-self-compare -- safe
901 return number !== number || number === 0 ? 0 : (number > 0 ? floor : ceil)(number);
902 };
903
904 var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
905
906 var max = Math.max;
907 var min$1 = Math.min;
908
909 // Helper for a popular repeating case of the spec:
910 // Let integer be ? ToInteger(index).
911 // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
912 var toAbsoluteIndex$1 = function (index, length) {
913 var integer = toIntegerOrInfinity$1(index);
914 return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
915 };
916
917 var toIntegerOrInfinity = toIntegerOrInfinity$2;
918
919 var min = Math.min;
920
921 // `ToLength` abstract operation
922 // https://tc39.es/ecma262/#sec-tolength
923 var toLength$1 = function (argument) {
924 return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
925 };
926
927 var toLength = toLength$1;
928
929 // `LengthOfArrayLike` abstract operation
930 // https://tc39.es/ecma262/#sec-lengthofarraylike
931 var lengthOfArrayLike$2 = function (obj) {
932 return toLength(obj.length);
933 };
934
935 var toIndexedObject$1 = toIndexedObject$3;
936 var toAbsoluteIndex = toAbsoluteIndex$1;
937 var lengthOfArrayLike$1 = lengthOfArrayLike$2;
938
939 // `Array.prototype.{ indexOf, includes }` methods implementation
940 var createMethod = function (IS_INCLUDES) {
941 return function ($this, el, fromIndex) {
942 var O = toIndexedObject$1($this);
943 var length = lengthOfArrayLike$1(O);
944 var index = toAbsoluteIndex(fromIndex, length);
945 var value;
946 // Array#includes uses SameValueZero equality algorithm
947 // eslint-disable-next-line no-self-compare -- NaN check
948 if (IS_INCLUDES && el != el) while (length > index) {
949 value = O[index++];
950 // eslint-disable-next-line no-self-compare -- NaN check
951 if (value != value) return true;
952 // Array#indexOf ignores holes, Array#includes - not
953 } else for (;length > index; index++) {
954 if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
955 } return !IS_INCLUDES && -1;
956 };
957 };
958
959 var arrayIncludes = {
960 // `Array.prototype.includes` method
961 // https://tc39.es/ecma262/#sec-array.prototype.includes
962 includes: createMethod(true),
963 // `Array.prototype.indexOf` method
964 // https://tc39.es/ecma262/#sec-array.prototype.indexof
965 indexOf: createMethod(false)
966 };
967
968 var uncurryThis$2 = functionUncurryThis;
969 var hasOwn$1 = hasOwnProperty_1;
970 var toIndexedObject = toIndexedObject$3;
971 var indexOf = arrayIncludes.indexOf;
972 var hiddenKeys$1 = hiddenKeys$3;
973
974 var push = uncurryThis$2([].push);
975
976 var objectKeysInternal = function (object, names) {
977 var O = toIndexedObject(object);
978 var i = 0;
979 var result = [];
980 var key;
981 for (key in O) !hasOwn$1(hiddenKeys$1, key) && hasOwn$1(O, key) && push(result, key);
982 // Don't enum bug & hidden keys
983 while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
984 ~indexOf(result, key) || push(result, key);
985 }
986 return result;
987 };
988
989 // IE8- don't enum bug keys
990 var enumBugKeys$1 = [
991 'constructor',
992 'hasOwnProperty',
993 'isPrototypeOf',
994 'propertyIsEnumerable',
995 'toLocaleString',
996 'toString',
997 'valueOf'
998 ];
999
1000 var internalObjectKeys = objectKeysInternal;
1001 var enumBugKeys = enumBugKeys$1;
1002
1003 var hiddenKeys = enumBugKeys.concat('length', 'prototype');
1004
1005 // `Object.getOwnPropertyNames` method
1006 // https://tc39.es/ecma262/#sec-object.getownpropertynames
1007 // eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
1008 objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1009 return internalObjectKeys(O, hiddenKeys);
1010 };
1011
1012 var objectGetOwnPropertySymbols = {};
1013
1014 // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
1015 objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1016
1017 var getBuiltIn$1 = getBuiltIn$4;
1018 var uncurryThis$1 = functionUncurryThis;
1019 var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1020 var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1021 var anObject = anObject$2;
1022
1023 var concat = uncurryThis$1([].concat);
1024
1025 // all object keys, includes non-enumerable and symbols
1026 var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
1027 var keys = getOwnPropertyNamesModule.f(anObject(it));
1028 var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1029 return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
1030 };
1031
1032 var hasOwn = hasOwnProperty_1;
1033 var ownKeys = ownKeys$1;
1034 var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1035 var definePropertyModule$1 = objectDefineProperty;
1036
1037 var copyConstructorProperties$1 = function (target, source, exceptions) {
1038 var keys = ownKeys(source);
1039 var defineProperty = definePropertyModule$1.f;
1040 var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1041 for (var i = 0; i < keys.length; i++) {
1042 var key = keys[i];
1043 if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
1044 defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1045 }
1046 }
1047 };
1048
1049 var fails$3 = fails$b;
1050 var isCallable$2 = isCallable$c;
1051
1052 var replacement = /#|\.prototype\./;
1053
1054 var isForced$1 = function (feature, detection) {
1055 var value = data[normalize(feature)];
1056 return value == POLYFILL ? true
1057 : value == NATIVE ? false
1058 : isCallable$2(detection) ? fails$3(detection)
1059 : !!detection;
1060 };
1061
1062 var normalize = isForced$1.normalize = function (string) {
1063 return String(string).replace(replacement, '.').toLowerCase();
1064 };
1065
1066 var data = isForced$1.data = {};
1067 var NATIVE = isForced$1.NATIVE = 'N';
1068 var POLYFILL = isForced$1.POLYFILL = 'P';
1069
1070 var isForced_1 = isForced$1;
1071
1072 var global$4 = global$o;
1073 var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1074 var createNonEnumerableProperty = createNonEnumerableProperty$3;
1075 var defineBuiltIn = defineBuiltIn$1;
1076 var setGlobal = setGlobal$3;
1077 var copyConstructorProperties = copyConstructorProperties$1;
1078 var isForced = isForced_1;
1079
1080 /*
1081 options.target - name of the target object
1082 options.global - target is the global object
1083 options.stat - export as static methods of target
1084 options.proto - export as prototype methods of target
1085 options.real - real prototype method for the `pure` version
1086 options.forced - export even if the native feature is available
1087 options.bind - bind methods to the target, required for the `pure` version
1088 options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
1089 options.unsafe - use the simple assignment of property instead of delete + defineProperty
1090 options.sham - add a flag to not completely full polyfills
1091 options.enumerable - export as enumerable property
1092 options.noTargetGet - prevent calling a getter on target
1093 options.name - the .name of the function if it does not match the key
1094 */
1095 var _export = function (options, source) {
1096 var TARGET = options.target;
1097 var GLOBAL = options.global;
1098 var STATIC = options.stat;
1099 var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1100 if (GLOBAL) {
1101 target = global$4;
1102 } else if (STATIC) {
1103 target = global$4[TARGET] || setGlobal(TARGET, {});
1104 } else {
1105 target = (global$4[TARGET] || {}).prototype;
1106 }
1107 if (target) for (key in source) {
1108 sourceProperty = source[key];
1109 if (options.noTargetGet) {
1110 descriptor = getOwnPropertyDescriptor(target, key);
1111 targetProperty = descriptor && descriptor.value;
1112 } else targetProperty = target[key];
1113 FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1114 // contained in target
1115 if (!FORCED && targetProperty !== undefined) {
1116 if (typeof sourceProperty == typeof targetProperty) continue;
1117 copyConstructorProperties(sourceProperty, targetProperty);
1118 }
1119 // add a flag to not completely full polyfills
1120 if (options.sham || (targetProperty && targetProperty.sham)) {
1121 createNonEnumerableProperty(sourceProperty, 'sham', true);
1122 }
1123 defineBuiltIn(target, key, sourceProperty, options);
1124 }
1125 };
1126
1127 var classof$2 = classofRaw$1;
1128
1129 // `IsArray` abstract operation
1130 // https://tc39.es/ecma262/#sec-isarray
1131 // eslint-disable-next-line es-x/no-array-isarray -- safe
1132 var isArray$2 = Array.isArray || function isArray(argument) {
1133 return classof$2(argument) == 'Array';
1134 };
1135
1136 var toPropertyKey = toPropertyKey$3;
1137 var definePropertyModule = objectDefineProperty;
1138 var createPropertyDescriptor = createPropertyDescriptor$3;
1139
1140 var createProperty$1 = function (object, key, value) {
1141 var propertyKey = toPropertyKey(key);
1142 if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
1143 else object[propertyKey] = value;
1144 };
1145
1146 var wellKnownSymbol$4 = wellKnownSymbol$6;
1147
1148 var TO_STRING_TAG$1 = wellKnownSymbol$4('toStringTag');
1149 var test = {};
1150
1151 test[TO_STRING_TAG$1] = 'z';
1152
1153 var toStringTagSupport = String(test) === '[object z]';
1154
1155 var global$3 = global$o;
1156 var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1157 var isCallable$1 = isCallable$c;
1158 var classofRaw = classofRaw$1;
1159 var wellKnownSymbol$3 = wellKnownSymbol$6;
1160
1161 var TO_STRING_TAG = wellKnownSymbol$3('toStringTag');
1162 var Object$1 = global$3.Object;
1163
1164 // ES3 wrong here
1165 var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
1166
1167 // fallback for IE11 Script Access Denied error
1168 var tryGet = function (it, key) {
1169 try {
1170 return it[key];
1171 } catch (error) { /* empty */ }
1172 };
1173
1174 // getting tag from ES6+ `Object.prototype.toString`
1175 var classof$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1176 var O, tag, result;
1177 return it === undefined ? 'Undefined' : it === null ? 'Null'
1178 // @@toStringTag case
1179 : typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
1180 // builtinTag case
1181 : CORRECT_ARGUMENTS ? classofRaw(O)
1182 // ES3 arguments fallback
1183 : (result = classofRaw(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result;
1184 };
1185
1186 var uncurryThis = functionUncurryThis;
1187 var fails$2 = fails$b;
1188 var isCallable = isCallable$c;
1189 var classof = classof$1;
1190 var getBuiltIn = getBuiltIn$4;
1191 var inspectSource = inspectSource$3;
1192
1193 var noop = function () { /* empty */ };
1194 var empty = [];
1195 var construct = getBuiltIn('Reflect', 'construct');
1196 var constructorRegExp = /^\s*(?:class|function)\b/;
1197 var exec = uncurryThis(constructorRegExp.exec);
1198 var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
1199
1200 var isConstructorModern = function isConstructor(argument) {
1201 if (!isCallable(argument)) return false;
1202 try {
1203 construct(noop, empty, argument);
1204 return true;
1205 } catch (error) {
1206 return false;
1207 }
1208 };
1209
1210 var isConstructorLegacy = function isConstructor(argument) {
1211 if (!isCallable(argument)) return false;
1212 switch (classof(argument)) {
1213 case 'AsyncFunction':
1214 case 'GeneratorFunction':
1215 case 'AsyncGeneratorFunction': return false;
1216 }
1217 try {
1218 // we can't check .prototype since constructors produced by .bind haven't it
1219 // `Function#toString` throws on some built-it function in some legacy engines
1220 // (for example, `DOMQuad` and similar in FF41-)
1221 return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
1222 } catch (error) {
1223 return true;
1224 }
1225 };
1226
1227 isConstructorLegacy.sham = true;
1228
1229 // `IsConstructor` abstract operation
1230 // https://tc39.es/ecma262/#sec-isconstructor
1231 var isConstructor$1 = !construct || fails$2(function () {
1232 var called;
1233 return isConstructorModern(isConstructorModern.call)
1234 || !isConstructorModern(Object)
1235 || !isConstructorModern(function () { called = true; })
1236 || called;
1237 }) ? isConstructorLegacy : isConstructorModern;
1238
1239 var global$2 = global$o;
1240 var isArray$1 = isArray$2;
1241 var isConstructor = isConstructor$1;
1242 var isObject$1 = isObject$7;
1243 var wellKnownSymbol$2 = wellKnownSymbol$6;
1244
1245 var SPECIES$1 = wellKnownSymbol$2('species');
1246 var Array$1 = global$2.Array;
1247
1248 // a part of `ArraySpeciesCreate` abstract operation
1249 // https://tc39.es/ecma262/#sec-arrayspeciescreate
1250 var arraySpeciesConstructor$1 = function (originalArray) {
1251 var C;
1252 if (isArray$1(originalArray)) {
1253 C = originalArray.constructor;
1254 // cross-realm fallback
1255 if (isConstructor(C) && (C === Array$1 || isArray$1(C.prototype))) C = undefined;
1256 else if (isObject$1(C)) {
1257 C = C[SPECIES$1];
1258 if (C === null) C = undefined;
1259 }
1260 } return C === undefined ? Array$1 : C;
1261 };
1262
1263 var arraySpeciesConstructor = arraySpeciesConstructor$1;
1264
1265 // `ArraySpeciesCreate` abstract operation
1266 // https://tc39.es/ecma262/#sec-arrayspeciescreate
1267 var arraySpeciesCreate$1 = function (originalArray, length) {
1268 return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
1269 };
1270
1271 var fails$1 = fails$b;
1272 var wellKnownSymbol$1 = wellKnownSymbol$6;
1273 var V8_VERSION$1 = engineV8Version;
1274
1275 var SPECIES = wellKnownSymbol$1('species');
1276
1277 var arrayMethodHasSpeciesSupport$1 = function (METHOD_NAME) {
1278 // We can't use this feature detection in V8 since it causes
1279 // deoptimization and serious performance degradation
1280 // https://github.com/zloirock/core-js/issues/677
1281 return V8_VERSION$1 >= 51 || !fails$1(function () {
1282 var array = [];
1283 var constructor = array.constructor = {};
1284 constructor[SPECIES] = function () {
1285 return { foo: 1 };
1286 };
1287 return array[METHOD_NAME](Boolean).foo !== 1;
1288 });
1289 };
1290
1291 var $ = _export;
1292 var global$1 = global$o;
1293 var fails = fails$b;
1294 var isArray = isArray$2;
1295 var isObject = isObject$7;
1296 var toObject = toObject$2;
1297 var lengthOfArrayLike = lengthOfArrayLike$2;
1298 var createProperty = createProperty$1;
1299 var arraySpeciesCreate = arraySpeciesCreate$1;
1300 var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1;
1301 var wellKnownSymbol = wellKnownSymbol$6;
1302 var V8_VERSION = engineV8Version;
1303
1304 var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
1305 var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
1306 var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
1307 var TypeError$1 = global$1.TypeError;
1308
1309 // We can't use this feature detection in V8 since it causes
1310 // deoptimization and serious performance degradation
1311 // https://github.com/zloirock/core-js/issues/679
1312 var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {
1313 var array = [];
1314 array[IS_CONCAT_SPREADABLE] = false;
1315 return array.concat()[0] !== array;
1316 });
1317
1318 var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
1319
1320 var isConcatSpreadable = function (O) {
1321 if (!isObject(O)) return false;
1322 var spreadable = O[IS_CONCAT_SPREADABLE];
1323 return spreadable !== undefined ? !!spreadable : isArray(O);
1324 };
1325
1326 var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
1327
1328 // `Array.prototype.concat` method
1329 // https://tc39.es/ecma262/#sec-array.prototype.concat
1330 // with adding support of @@isConcatSpreadable and @@species
1331 $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
1332 // eslint-disable-next-line no-unused-vars -- required for `.length`
1333 concat: function concat(arg) {
1334 var O = toObject(this);
1335 var A = arraySpeciesCreate(O, 0);
1336 var n = 0;
1337 var i, k, length, len, E;
1338 for (i = -1, length = arguments.length; i < length; i++) {
1339 E = i === -1 ? O : arguments[i];
1340 if (isConcatSpreadable(E)) {
1341 len = lengthOfArrayLike(E);
1342 if (n + len > MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1343 for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
1344 } else {
1345 if (n >= MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1346 createProperty(A, n++, E);
1347 }
1348 }
1349 A.length = n;
1350 return A;
1351 }
1352 });
1353
1354 /**
1355 * @author: Dennis Hernández
1356 * @webSite: http://djhvscf.github.io/Blog
1357 * @version: v2.0.0
1358 */
1359
1360 var isInit = function isInit(that) {
1361 return that.$el.data('resizableColumns') !== undefined;
1362 };
1363
1364 var initResizable = function initResizable(that) {
1365 if (that.options.resizable && !that.options.cardView && !isInit(that) && that.$el.is(':visible')) {
1366 that.$el.resizableColumns({
1367 store: window.store
1368 });
1369 }
1370 };
1371
1372 var destroy = function destroy(that) {
1373 if (isInit(that)) {
1374 that.$el.data('resizableColumns').destroy();
1375 }
1376 };
1377
1378 var reInitResizable = function reInitResizable(that) {
1379 destroy(that);
1380 initResizable(that);
1381 };
1382
1383 $__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, {
1384 resizable: false
1385 });
1386
1387 $__default["default"].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
1388 _inherits(_class, _$$BootstrapTable);
1389
1390 var _super = _createSuper(_class);
1391
1392 function _class() {
1393 _classCallCheck(this, _class);
1394
1395 return _super.apply(this, arguments);
1396 }
1397
1398 _createClass(_class, [{
1399 key: "initBody",
1400 value: function initBody() {
1401 var _get2,
1402 _this = this;
1403
1404 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1405 args[_key] = arguments[_key];
1406 }
1407
1408 (_get2 = _get(_getPrototypeOf(_class.prototype), "initBody", this)).call.apply(_get2, [this].concat(args));
1409
1410 this.$el.off('column-switch.bs.table page-change.bs.table').on('column-switch.bs.table page-change.bs.table', function () {
1411 reInitResizable(_this);
1412 });
1413 reInitResizable(this);
1414 }
1415 }, {
1416 key: "toggleView",
1417 value: function toggleView() {
1418 var _get3;
1419
1420 for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
1421 args[_key2] = arguments[_key2];
1422 }
1423
1424 (_get3 = _get(_getPrototypeOf(_class.prototype), "toggleView", this)).call.apply(_get3, [this].concat(args));
1425
1426 if (this.options.resizable && this.options.cardView) {
1427 // Destroy the plugin
1428 destroy(this);
1429 }
1430 }
1431 }, {
1432 key: "resetView",
1433 value: function resetView() {
1434 var _get4,
1435 _this2 = this;
1436
1437 for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
1438 args[_key3] = arguments[_key3];
1439 }
1440
1441 (_get4 = _get(_getPrototypeOf(_class.prototype), "resetView", this)).call.apply(_get4, [this].concat(args));
1442
1443 if (this.options.resizable) {
1444 // because in fitHeader function, we use setTimeout(func, 100);
1445 setTimeout(function () {
1446 initResizable(_this2);
1447 }, 100);
1448 }
1449 }
1450 }]);
1451
1452 return _class;
1453 }($__default["default"].BootstrapTable);
1454
1455}));