UNPKG

61.8 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 ($$4) { 'use strict';
6
7 function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
9 var $__default = /*#__PURE__*/_interopDefaultLegacy($$4);
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.bind() : 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 ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
63 o.__proto__ = p;
64 return o;
65 };
66 return _setPrototypeOf(o, p);
67 }
68
69 function _isNativeReflectConstruct() {
70 if (typeof Reflect === "undefined" || !Reflect.construct) return false;
71 if (Reflect.construct.sham) return false;
72 if (typeof Proxy === "function") return true;
73
74 try {
75 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
76 return true;
77 } catch (e) {
78 return false;
79 }
80 }
81
82 function _assertThisInitialized(self) {
83 if (self === void 0) {
84 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
85 }
86
87 return self;
88 }
89
90 function _possibleConstructorReturn(self, call) {
91 if (call && (typeof call === "object" || typeof call === "function")) {
92 return call;
93 } else if (call !== void 0) {
94 throw new TypeError("Derived constructors may only return object or undefined");
95 }
96
97 return _assertThisInitialized(self);
98 }
99
100 function _createSuper(Derived) {
101 var hasNativeReflectConstruct = _isNativeReflectConstruct();
102
103 return function _createSuperInternal() {
104 var Super = _getPrototypeOf(Derived),
105 result;
106
107 if (hasNativeReflectConstruct) {
108 var NewTarget = _getPrototypeOf(this).constructor;
109
110 result = Reflect.construct(Super, arguments, NewTarget);
111 } else {
112 result = Super.apply(this, arguments);
113 }
114
115 return _possibleConstructorReturn(this, result);
116 };
117 }
118
119 function _superPropBase(object, property) {
120 while (!Object.prototype.hasOwnProperty.call(object, property)) {
121 object = _getPrototypeOf(object);
122 if (object === null) break;
123 }
124
125 return object;
126 }
127
128 function _get() {
129 if (typeof Reflect !== "undefined" && Reflect.get) {
130 _get = Reflect.get.bind();
131 } else {
132 _get = function _get(target, property, receiver) {
133 var base = _superPropBase(target, property);
134
135 if (!base) return;
136 var desc = Object.getOwnPropertyDescriptor(base, property);
137
138 if (desc.get) {
139 return desc.get.call(arguments.length < 3 ? target : receiver);
140 }
141
142 return desc.value;
143 };
144 }
145
146 return _get.apply(this, arguments);
147 }
148
149 function _unsupportedIterableToArray(o, minLen) {
150 if (!o) return;
151 if (typeof o === "string") return _arrayLikeToArray(o, minLen);
152 var n = Object.prototype.toString.call(o).slice(8, -1);
153 if (n === "Object" && o.constructor) n = o.constructor.name;
154 if (n === "Map" || n === "Set") return Array.from(o);
155 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
156 }
157
158 function _arrayLikeToArray(arr, len) {
159 if (len == null || len > arr.length) len = arr.length;
160
161 for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
162
163 return arr2;
164 }
165
166 function _createForOfIteratorHelper(o, allowArrayLike) {
167 var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
168
169 if (!it) {
170 if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
171 if (it) o = it;
172 var i = 0;
173
174 var F = function () {};
175
176 return {
177 s: F,
178 n: function () {
179 if (i >= o.length) return {
180 done: true
181 };
182 return {
183 done: false,
184 value: o[i++]
185 };
186 },
187 e: function (e) {
188 throw e;
189 },
190 f: F
191 };
192 }
193
194 throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
195 }
196
197 var normalCompletion = true,
198 didErr = false,
199 err;
200 return {
201 s: function () {
202 it = it.call(o);
203 },
204 n: function () {
205 var step = it.next();
206 normalCompletion = step.done;
207 return step;
208 },
209 e: function (e) {
210 didErr = true;
211 err = e;
212 },
213 f: function () {
214 try {
215 if (!normalCompletion && it.return != null) it.return();
216 } finally {
217 if (didErr) throw err;
218 }
219 }
220 };
221 }
222
223 var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
224
225 var check = function (it) {
226 return it && it.Math == Math && it;
227 };
228
229 // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
230 var global$b =
231 // eslint-disable-next-line es-x/no-global-this -- safe
232 check(typeof globalThis == 'object' && globalThis) ||
233 check(typeof window == 'object' && window) ||
234 // eslint-disable-next-line no-restricted-globals -- safe
235 check(typeof self == 'object' && self) ||
236 check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
237 // eslint-disable-next-line no-new-func -- fallback
238 (function () { return this; })() || Function('return this')();
239
240 var objectGetOwnPropertyDescriptor = {};
241
242 var fails$d = function (exec) {
243 try {
244 return !!exec();
245 } catch (error) {
246 return true;
247 }
248 };
249
250 var fails$c = fails$d;
251
252 // Detect IE8's incomplete defineProperty implementation
253 var descriptors = !fails$c(function () {
254 // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
255 return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
256 });
257
258 var fails$b = fails$d;
259
260 var functionBindNative = !fails$b(function () {
261 // eslint-disable-next-line es-x/no-function-prototype-bind -- safe
262 var test = (function () { /* empty */ }).bind();
263 // eslint-disable-next-line no-prototype-builtins -- safe
264 return typeof test != 'function' || test.hasOwnProperty('prototype');
265 });
266
267 var NATIVE_BIND$2 = functionBindNative;
268
269 var call$4 = Function.prototype.call;
270
271 var functionCall = NATIVE_BIND$2 ? call$4.bind(call$4) : function () {
272 return call$4.apply(call$4, arguments);
273 };
274
275 var objectPropertyIsEnumerable = {};
276
277 var $propertyIsEnumerable = {}.propertyIsEnumerable;
278 // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
279 var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
280
281 // Nashorn ~ JDK8 bug
282 var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
283
284 // `Object.prototype.propertyIsEnumerable` method implementation
285 // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
286 objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
287 var descriptor = getOwnPropertyDescriptor$1(this, V);
288 return !!descriptor && descriptor.enumerable;
289 } : $propertyIsEnumerable;
290
291 var createPropertyDescriptor$3 = function (bitmap, value) {
292 return {
293 enumerable: !(bitmap & 1),
294 configurable: !(bitmap & 2),
295 writable: !(bitmap & 4),
296 value: value
297 };
298 };
299
300 var NATIVE_BIND$1 = functionBindNative;
301
302 var FunctionPrototype$1 = Function.prototype;
303 var bind$2 = FunctionPrototype$1.bind;
304 var call$3 = FunctionPrototype$1.call;
305 var uncurryThis$f = NATIVE_BIND$1 && bind$2.bind(call$3, call$3);
306
307 var functionUncurryThis = NATIVE_BIND$1 ? function (fn) {
308 return fn && uncurryThis$f(fn);
309 } : function (fn) {
310 return fn && function () {
311 return call$3.apply(fn, arguments);
312 };
313 };
314
315 var uncurryThis$e = functionUncurryThis;
316
317 var toString$5 = uncurryThis$e({}.toString);
318 var stringSlice = uncurryThis$e(''.slice);
319
320 var classofRaw$1 = function (it) {
321 return stringSlice(toString$5(it), 8, -1);
322 };
323
324 var uncurryThis$d = functionUncurryThis;
325 var fails$a = fails$d;
326 var classof$5 = classofRaw$1;
327
328 var $Object$3 = Object;
329 var split = uncurryThis$d(''.split);
330
331 // fallback for non-array-like ES3 and non-enumerable old V8 strings
332 var indexedObject = fails$a(function () {
333 // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
334 // eslint-disable-next-line no-prototype-builtins -- safe
335 return !$Object$3('z').propertyIsEnumerable(0);
336 }) ? function (it) {
337 return classof$5(it) == 'String' ? split(it, '') : $Object$3(it);
338 } : $Object$3;
339
340 var $TypeError$6 = TypeError;
341
342 // `RequireObjectCoercible` abstract operation
343 // https://tc39.es/ecma262/#sec-requireobjectcoercible
344 var requireObjectCoercible$3 = function (it) {
345 if (it == undefined) throw $TypeError$6("Can't call method on " + it);
346 return it;
347 };
348
349 // toObject with fallback for non-array-like ES3 strings
350 var IndexedObject$2 = indexedObject;
351 var requireObjectCoercible$2 = requireObjectCoercible$3;
352
353 var toIndexedObject$4 = function (it) {
354 return IndexedObject$2(requireObjectCoercible$2(it));
355 };
356
357 // `IsCallable` abstract operation
358 // https://tc39.es/ecma262/#sec-iscallable
359 var isCallable$c = function (argument) {
360 return typeof argument == 'function';
361 };
362
363 var isCallable$b = isCallable$c;
364
365 var isObject$7 = function (it) {
366 return typeof it == 'object' ? it !== null : isCallable$b(it);
367 };
368
369 var global$a = global$b;
370 var isCallable$a = isCallable$c;
371
372 var aFunction = function (argument) {
373 return isCallable$a(argument) ? argument : undefined;
374 };
375
376 var getBuiltIn$4 = function (namespace, method) {
377 return arguments.length < 2 ? aFunction(global$a[namespace]) : global$a[namespace] && global$a[namespace][method];
378 };
379
380 var uncurryThis$c = functionUncurryThis;
381
382 var objectIsPrototypeOf = uncurryThis$c({}.isPrototypeOf);
383
384 var getBuiltIn$3 = getBuiltIn$4;
385
386 var engineUserAgent = getBuiltIn$3('navigator', 'userAgent') || '';
387
388 var global$9 = global$b;
389 var userAgent = engineUserAgent;
390
391 var process = global$9.process;
392 var Deno = global$9.Deno;
393 var versions = process && process.versions || Deno && Deno.version;
394 var v8 = versions && versions.v8;
395 var match, version;
396
397 if (v8) {
398 match = v8.split('.');
399 // in old Chrome, versions of V8 isn't V8 = Chrome / 10
400 // but their correct versions are not interesting for us
401 version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
402 }
403
404 // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
405 // so check `userAgent` even if `.v8` exists, but 0
406 if (!version && userAgent) {
407 match = userAgent.match(/Edge\/(\d+)/);
408 if (!match || match[1] >= 74) {
409 match = userAgent.match(/Chrome\/(\d+)/);
410 if (match) version = +match[1];
411 }
412 }
413
414 var engineV8Version = version;
415
416 /* eslint-disable es-x/no-symbol -- required for testing */
417
418 var V8_VERSION$2 = engineV8Version;
419 var fails$9 = fails$d;
420
421 // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
422 var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$9(function () {
423 var symbol = Symbol();
424 // Chrome 38 Symbol has incorrect toString conversion
425 // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
426 return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
427 // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
428 !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
429 });
430
431 /* eslint-disable es-x/no-symbol -- required for testing */
432
433 var NATIVE_SYMBOL$1 = nativeSymbol;
434
435 var useSymbolAsUid = NATIVE_SYMBOL$1
436 && !Symbol.sham
437 && typeof Symbol.iterator == 'symbol';
438
439 var getBuiltIn$2 = getBuiltIn$4;
440 var isCallable$9 = isCallable$c;
441 var isPrototypeOf = objectIsPrototypeOf;
442 var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
443
444 var $Object$2 = Object;
445
446 var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
447 return typeof it == 'symbol';
448 } : function (it) {
449 var $Symbol = getBuiltIn$2('Symbol');
450 return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
451 };
452
453 var $String$2 = String;
454
455 var tryToString$1 = function (argument) {
456 try {
457 return $String$2(argument);
458 } catch (error) {
459 return 'Object';
460 }
461 };
462
463 var isCallable$8 = isCallable$c;
464 var tryToString = tryToString$1;
465
466 var $TypeError$5 = TypeError;
467
468 // `Assert: IsCallable(argument) is true`
469 var aCallable$2 = function (argument) {
470 if (isCallable$8(argument)) return argument;
471 throw $TypeError$5(tryToString(argument) + ' is not a function');
472 };
473
474 var aCallable$1 = aCallable$2;
475
476 // `GetMethod` abstract operation
477 // https://tc39.es/ecma262/#sec-getmethod
478 var getMethod$1 = function (V, P) {
479 var func = V[P];
480 return func == null ? undefined : aCallable$1(func);
481 };
482
483 var call$2 = functionCall;
484 var isCallable$7 = isCallable$c;
485 var isObject$6 = isObject$7;
486
487 var $TypeError$4 = TypeError;
488
489 // `OrdinaryToPrimitive` abstract operation
490 // https://tc39.es/ecma262/#sec-ordinarytoprimitive
491 var ordinaryToPrimitive$1 = function (input, pref) {
492 var fn, val;
493 if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val;
494 if (isCallable$7(fn = input.valueOf) && !isObject$6(val = call$2(fn, input))) return val;
495 if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val;
496 throw $TypeError$4("Can't convert object to primitive value");
497 };
498
499 var shared$3 = {exports: {}};
500
501 var global$8 = global$b;
502
503 // eslint-disable-next-line es-x/no-object-defineproperty -- safe
504 var defineProperty$1 = Object.defineProperty;
505
506 var defineGlobalProperty$3 = function (key, value) {
507 try {
508 defineProperty$1(global$8, key, { value: value, configurable: true, writable: true });
509 } catch (error) {
510 global$8[key] = value;
511 } return value;
512 };
513
514 var global$7 = global$b;
515 var defineGlobalProperty$2 = defineGlobalProperty$3;
516
517 var SHARED = '__core-js_shared__';
518 var store$3 = global$7[SHARED] || defineGlobalProperty$2(SHARED, {});
519
520 var sharedStore = store$3;
521
522 var store$2 = sharedStore;
523
524 (shared$3.exports = function (key, value) {
525 return store$2[key] || (store$2[key] = value !== undefined ? value : {});
526 })('versions', []).push({
527 version: '3.22.8',
528 mode: 'global',
529 copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
530 license: 'https://github.com/zloirock/core-js/blob/v3.22.8/LICENSE',
531 source: 'https://github.com/zloirock/core-js'
532 });
533
534 var requireObjectCoercible$1 = requireObjectCoercible$3;
535
536 var $Object$1 = Object;
537
538 // `ToObject` abstract operation
539 // https://tc39.es/ecma262/#sec-toobject
540 var toObject$3 = function (argument) {
541 return $Object$1(requireObjectCoercible$1(argument));
542 };
543
544 var uncurryThis$b = functionUncurryThis;
545 var toObject$2 = toObject$3;
546
547 var hasOwnProperty = uncurryThis$b({}.hasOwnProperty);
548
549 // `HasOwnProperty` abstract operation
550 // https://tc39.es/ecma262/#sec-hasownproperty
551 // eslint-disable-next-line es-x/no-object-hasown -- safe
552 var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
553 return hasOwnProperty(toObject$2(it), key);
554 };
555
556 var uncurryThis$a = functionUncurryThis;
557
558 var id = 0;
559 var postfix = Math.random();
560 var toString$4 = uncurryThis$a(1.0.toString);
561
562 var uid$2 = function (key) {
563 return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$4(++id + postfix, 36);
564 };
565
566 var global$6 = global$b;
567 var shared$2 = shared$3.exports;
568 var hasOwn$6 = hasOwnProperty_1;
569 var uid$1 = uid$2;
570 var NATIVE_SYMBOL = nativeSymbol;
571 var USE_SYMBOL_AS_UID = useSymbolAsUid;
572
573 var WellKnownSymbolsStore = shared$2('wks');
574 var Symbol$2 = global$6.Symbol;
575 var symbolFor = Symbol$2 && Symbol$2['for'];
576 var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$1;
577
578 var wellKnownSymbol$6 = function (name) {
579 if (!hasOwn$6(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
580 var description = 'Symbol.' + name;
581 if (NATIVE_SYMBOL && hasOwn$6(Symbol$2, name)) {
582 WellKnownSymbolsStore[name] = Symbol$2[name];
583 } else if (USE_SYMBOL_AS_UID && symbolFor) {
584 WellKnownSymbolsStore[name] = symbolFor(description);
585 } else {
586 WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
587 }
588 } return WellKnownSymbolsStore[name];
589 };
590
591 var call$1 = functionCall;
592 var isObject$5 = isObject$7;
593 var isSymbol$1 = isSymbol$2;
594 var getMethod = getMethod$1;
595 var ordinaryToPrimitive = ordinaryToPrimitive$1;
596 var wellKnownSymbol$5 = wellKnownSymbol$6;
597
598 var $TypeError$3 = TypeError;
599 var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive');
600
601 // `ToPrimitive` abstract operation
602 // https://tc39.es/ecma262/#sec-toprimitive
603 var toPrimitive$1 = function (input, pref) {
604 if (!isObject$5(input) || isSymbol$1(input)) return input;
605 var exoticToPrim = getMethod(input, TO_PRIMITIVE);
606 var result;
607 if (exoticToPrim) {
608 if (pref === undefined) pref = 'default';
609 result = call$1(exoticToPrim, input, pref);
610 if (!isObject$5(result) || isSymbol$1(result)) return result;
611 throw $TypeError$3("Can't convert object to primitive value");
612 }
613 if (pref === undefined) pref = 'number';
614 return ordinaryToPrimitive(input, pref);
615 };
616
617 var toPrimitive = toPrimitive$1;
618 var isSymbol = isSymbol$2;
619
620 // `ToPropertyKey` abstract operation
621 // https://tc39.es/ecma262/#sec-topropertykey
622 var toPropertyKey$3 = function (argument) {
623 var key = toPrimitive(argument, 'string');
624 return isSymbol(key) ? key : key + '';
625 };
626
627 var global$5 = global$b;
628 var isObject$4 = isObject$7;
629
630 var document = global$5.document;
631 // typeof document.createElement is 'object' in old IE
632 var EXISTS$1 = isObject$4(document) && isObject$4(document.createElement);
633
634 var documentCreateElement = function (it) {
635 return EXISTS$1 ? document.createElement(it) : {};
636 };
637
638 var DESCRIPTORS$6 = descriptors;
639 var fails$8 = fails$d;
640 var createElement = documentCreateElement;
641
642 // Thanks to IE8 for its funny defineProperty
643 var ie8DomDefine = !DESCRIPTORS$6 && !fails$8(function () {
644 // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
645 return Object.defineProperty(createElement('div'), 'a', {
646 get: function () { return 7; }
647 }).a != 7;
648 });
649
650 var DESCRIPTORS$5 = descriptors;
651 var call = functionCall;
652 var propertyIsEnumerableModule = objectPropertyIsEnumerable;
653 var createPropertyDescriptor$2 = createPropertyDescriptor$3;
654 var toIndexedObject$3 = toIndexedObject$4;
655 var toPropertyKey$2 = toPropertyKey$3;
656 var hasOwn$5 = hasOwnProperty_1;
657 var IE8_DOM_DEFINE$1 = ie8DomDefine;
658
659 // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
660 var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
661
662 // `Object.getOwnPropertyDescriptor` method
663 // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
664 objectGetOwnPropertyDescriptor.f = DESCRIPTORS$5 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
665 O = toIndexedObject$3(O);
666 P = toPropertyKey$2(P);
667 if (IE8_DOM_DEFINE$1) try {
668 return $getOwnPropertyDescriptor$1(O, P);
669 } catch (error) { /* empty */ }
670 if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call(propertyIsEnumerableModule.f, O, P), O[P]);
671 };
672
673 var objectDefineProperty = {};
674
675 var DESCRIPTORS$4 = descriptors;
676 var fails$7 = fails$d;
677
678 // V8 ~ Chrome 36-
679 // https://bugs.chromium.org/p/v8/issues/detail?id=3334
680 var v8PrototypeDefineBug = DESCRIPTORS$4 && fails$7(function () {
681 // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
682 return Object.defineProperty(function () { /* empty */ }, 'prototype', {
683 value: 42,
684 writable: false
685 }).prototype != 42;
686 });
687
688 var isObject$3 = isObject$7;
689
690 var $String$1 = String;
691 var $TypeError$2 = TypeError;
692
693 // `Assert: Type(argument) is Object`
694 var anObject$2 = function (argument) {
695 if (isObject$3(argument)) return argument;
696 throw $TypeError$2($String$1(argument) + ' is not an object');
697 };
698
699 var DESCRIPTORS$3 = descriptors;
700 var IE8_DOM_DEFINE = ie8DomDefine;
701 var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
702 var anObject$1 = anObject$2;
703 var toPropertyKey$1 = toPropertyKey$3;
704
705 var $TypeError$1 = TypeError;
706 // eslint-disable-next-line es-x/no-object-defineproperty -- safe
707 var $defineProperty = Object.defineProperty;
708 // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
709 var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
710 var ENUMERABLE = 'enumerable';
711 var CONFIGURABLE$1 = 'configurable';
712 var WRITABLE = 'writable';
713
714 // `Object.defineProperty` method
715 // https://tc39.es/ecma262/#sec-object.defineproperty
716 objectDefineProperty.f = DESCRIPTORS$3 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
717 anObject$1(O);
718 P = toPropertyKey$1(P);
719 anObject$1(Attributes);
720 if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
721 var current = $getOwnPropertyDescriptor(O, P);
722 if (current && current[WRITABLE]) {
723 O[P] = Attributes.value;
724 Attributes = {
725 configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
726 enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
727 writable: false
728 };
729 }
730 } return $defineProperty(O, P, Attributes);
731 } : $defineProperty : function defineProperty(O, P, Attributes) {
732 anObject$1(O);
733 P = toPropertyKey$1(P);
734 anObject$1(Attributes);
735 if (IE8_DOM_DEFINE) try {
736 return $defineProperty(O, P, Attributes);
737 } catch (error) { /* empty */ }
738 if ('get' in Attributes || 'set' in Attributes) throw $TypeError$1('Accessors not supported');
739 if ('value' in Attributes) O[P] = Attributes.value;
740 return O;
741 };
742
743 var DESCRIPTORS$2 = descriptors;
744 var definePropertyModule$2 = objectDefineProperty;
745 var createPropertyDescriptor$1 = createPropertyDescriptor$3;
746
747 var createNonEnumerableProperty$3 = DESCRIPTORS$2 ? function (object, key, value) {
748 return definePropertyModule$2.f(object, key, createPropertyDescriptor$1(1, value));
749 } : function (object, key, value) {
750 object[key] = value;
751 return object;
752 };
753
754 var makeBuiltIn$2 = {exports: {}};
755
756 var DESCRIPTORS$1 = descriptors;
757 var hasOwn$4 = hasOwnProperty_1;
758
759 var FunctionPrototype = Function.prototype;
760 // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
761 var getDescriptor = DESCRIPTORS$1 && Object.getOwnPropertyDescriptor;
762
763 var EXISTS = hasOwn$4(FunctionPrototype, 'name');
764 // additional protection from minified / mangled / dropped function names
765 var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
766 var CONFIGURABLE = EXISTS && (!DESCRIPTORS$1 || (DESCRIPTORS$1 && getDescriptor(FunctionPrototype, 'name').configurable));
767
768 var functionName = {
769 EXISTS: EXISTS,
770 PROPER: PROPER,
771 CONFIGURABLE: CONFIGURABLE
772 };
773
774 var uncurryThis$9 = functionUncurryThis;
775 var isCallable$6 = isCallable$c;
776 var store$1 = sharedStore;
777
778 var functionToString = uncurryThis$9(Function.toString);
779
780 // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
781 if (!isCallable$6(store$1.inspectSource)) {
782 store$1.inspectSource = function (it) {
783 return functionToString(it);
784 };
785 }
786
787 var inspectSource$3 = store$1.inspectSource;
788
789 var global$4 = global$b;
790 var isCallable$5 = isCallable$c;
791 var inspectSource$2 = inspectSource$3;
792
793 var WeakMap$1 = global$4.WeakMap;
794
795 var nativeWeakMap = isCallable$5(WeakMap$1) && /native code/.test(inspectSource$2(WeakMap$1));
796
797 var shared$1 = shared$3.exports;
798 var uid = uid$2;
799
800 var keys = shared$1('keys');
801
802 var sharedKey$1 = function (key) {
803 return keys[key] || (keys[key] = uid(key));
804 };
805
806 var hiddenKeys$3 = {};
807
808 var NATIVE_WEAK_MAP = nativeWeakMap;
809 var global$3 = global$b;
810 var uncurryThis$8 = functionUncurryThis;
811 var isObject$2 = isObject$7;
812 var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
813 var hasOwn$3 = hasOwnProperty_1;
814 var shared = sharedStore;
815 var sharedKey = sharedKey$1;
816 var hiddenKeys$2 = hiddenKeys$3;
817
818 var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
819 var TypeError$1 = global$3.TypeError;
820 var WeakMap = global$3.WeakMap;
821 var set, get, has;
822
823 var enforce = function (it) {
824 return has(it) ? get(it) : set(it, {});
825 };
826
827 var getterFor = function (TYPE) {
828 return function (it) {
829 var state;
830 if (!isObject$2(it) || (state = get(it)).type !== TYPE) {
831 throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
832 } return state;
833 };
834 };
835
836 if (NATIVE_WEAK_MAP || shared.state) {
837 var store = shared.state || (shared.state = new WeakMap());
838 var wmget = uncurryThis$8(store.get);
839 var wmhas = uncurryThis$8(store.has);
840 var wmset = uncurryThis$8(store.set);
841 set = function (it, metadata) {
842 if (wmhas(store, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
843 metadata.facade = it;
844 wmset(store, it, metadata);
845 return metadata;
846 };
847 get = function (it) {
848 return wmget(store, it) || {};
849 };
850 has = function (it) {
851 return wmhas(store, it);
852 };
853 } else {
854 var STATE = sharedKey('state');
855 hiddenKeys$2[STATE] = true;
856 set = function (it, metadata) {
857 if (hasOwn$3(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
858 metadata.facade = it;
859 createNonEnumerableProperty$2(it, STATE, metadata);
860 return metadata;
861 };
862 get = function (it) {
863 return hasOwn$3(it, STATE) ? it[STATE] : {};
864 };
865 has = function (it) {
866 return hasOwn$3(it, STATE);
867 };
868 }
869
870 var internalState = {
871 set: set,
872 get: get,
873 has: has,
874 enforce: enforce,
875 getterFor: getterFor
876 };
877
878 var fails$6 = fails$d;
879 var isCallable$4 = isCallable$c;
880 var hasOwn$2 = hasOwnProperty_1;
881 var DESCRIPTORS = descriptors;
882 var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
883 var inspectSource$1 = inspectSource$3;
884 var InternalStateModule = internalState;
885
886 var enforceInternalState = InternalStateModule.enforce;
887 var getInternalState = InternalStateModule.get;
888 // eslint-disable-next-line es-x/no-object-defineproperty -- safe
889 var defineProperty = Object.defineProperty;
890
891 var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails$6(function () {
892 return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
893 });
894
895 var TEMPLATE = String(String).split('String');
896
897 var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
898 if (String(name).slice(0, 7) === 'Symbol(') {
899 name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
900 }
901 if (options && options.getter) name = 'get ' + name;
902 if (options && options.setter) name = 'set ' + name;
903 if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
904 defineProperty(value, 'name', { value: name, configurable: true });
905 }
906 if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
907 defineProperty(value, 'length', { value: options.arity });
908 }
909 try {
910 if (options && hasOwn$2(options, 'constructor') && options.constructor) {
911 if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });
912 // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
913 } else if (value.prototype) value.prototype = undefined;
914 } catch (error) { /* empty */ }
915 var state = enforceInternalState(value);
916 if (!hasOwn$2(state, 'source')) {
917 state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
918 } return value;
919 };
920
921 // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
922 // eslint-disable-next-line no-extend-native -- required
923 Function.prototype.toString = makeBuiltIn$1(function toString() {
924 return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this);
925 }, 'toString');
926
927 var isCallable$3 = isCallable$c;
928 var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
929 var makeBuiltIn = makeBuiltIn$2.exports;
930 var defineGlobalProperty$1 = defineGlobalProperty$3;
931
932 var defineBuiltIn$2 = function (O, key, value, options) {
933 if (!options) options = {};
934 var simple = options.enumerable;
935 var name = options.name !== undefined ? options.name : key;
936 if (isCallable$3(value)) makeBuiltIn(value, name, options);
937 if (options.global) {
938 if (simple) O[key] = value;
939 else defineGlobalProperty$1(key, value);
940 } else {
941 if (!options.unsafe) delete O[key];
942 else if (O[key]) simple = true;
943 if (simple) O[key] = value;
944 else createNonEnumerableProperty$1(O, key, value);
945 } return O;
946 };
947
948 var objectGetOwnPropertyNames = {};
949
950 var ceil = Math.ceil;
951 var floor = Math.floor;
952
953 // `Math.trunc` method
954 // https://tc39.es/ecma262/#sec-math.trunc
955 // eslint-disable-next-line es-x/no-math-trunc -- safe
956 var mathTrunc = Math.trunc || function trunc(x) {
957 var n = +x;
958 return (n > 0 ? floor : ceil)(n);
959 };
960
961 var trunc = mathTrunc;
962
963 // `ToIntegerOrInfinity` abstract operation
964 // https://tc39.es/ecma262/#sec-tointegerorinfinity
965 var toIntegerOrInfinity$2 = function (argument) {
966 var number = +argument;
967 // eslint-disable-next-line no-self-compare -- NaN check
968 return number !== number || number === 0 ? 0 : trunc(number);
969 };
970
971 var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
972
973 var max = Math.max;
974 var min$1 = Math.min;
975
976 // Helper for a popular repeating case of the spec:
977 // Let integer be ? ToInteger(index).
978 // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
979 var toAbsoluteIndex$1 = function (index, length) {
980 var integer = toIntegerOrInfinity$1(index);
981 return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
982 };
983
984 var toIntegerOrInfinity = toIntegerOrInfinity$2;
985
986 var min = Math.min;
987
988 // `ToLength` abstract operation
989 // https://tc39.es/ecma262/#sec-tolength
990 var toLength$1 = function (argument) {
991 return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
992 };
993
994 var toLength = toLength$1;
995
996 // `LengthOfArrayLike` abstract operation
997 // https://tc39.es/ecma262/#sec-lengthofarraylike
998 var lengthOfArrayLike$3 = function (obj) {
999 return toLength(obj.length);
1000 };
1001
1002 var toIndexedObject$2 = toIndexedObject$4;
1003 var toAbsoluteIndex = toAbsoluteIndex$1;
1004 var lengthOfArrayLike$2 = lengthOfArrayLike$3;
1005
1006 // `Array.prototype.{ indexOf, includes }` methods implementation
1007 var createMethod$2 = function (IS_INCLUDES) {
1008 return function ($this, el, fromIndex) {
1009 var O = toIndexedObject$2($this);
1010 var length = lengthOfArrayLike$2(O);
1011 var index = toAbsoluteIndex(fromIndex, length);
1012 var value;
1013 // Array#includes uses SameValueZero equality algorithm
1014 // eslint-disable-next-line no-self-compare -- NaN check
1015 if (IS_INCLUDES && el != el) while (length > index) {
1016 value = O[index++];
1017 // eslint-disable-next-line no-self-compare -- NaN check
1018 if (value != value) return true;
1019 // Array#indexOf ignores holes, Array#includes - not
1020 } else for (;length > index; index++) {
1021 if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
1022 } return !IS_INCLUDES && -1;
1023 };
1024 };
1025
1026 var arrayIncludes = {
1027 // `Array.prototype.includes` method
1028 // https://tc39.es/ecma262/#sec-array.prototype.includes
1029 includes: createMethod$2(true),
1030 // `Array.prototype.indexOf` method
1031 // https://tc39.es/ecma262/#sec-array.prototype.indexof
1032 indexOf: createMethod$2(false)
1033 };
1034
1035 var uncurryThis$7 = functionUncurryThis;
1036 var hasOwn$1 = hasOwnProperty_1;
1037 var toIndexedObject$1 = toIndexedObject$4;
1038 var indexOf = arrayIncludes.indexOf;
1039 var hiddenKeys$1 = hiddenKeys$3;
1040
1041 var push$1 = uncurryThis$7([].push);
1042
1043 var objectKeysInternal = function (object, names) {
1044 var O = toIndexedObject$1(object);
1045 var i = 0;
1046 var result = [];
1047 var key;
1048 for (key in O) !hasOwn$1(hiddenKeys$1, key) && hasOwn$1(O, key) && push$1(result, key);
1049 // Don't enum bug & hidden keys
1050 while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
1051 ~indexOf(result, key) || push$1(result, key);
1052 }
1053 return result;
1054 };
1055
1056 // IE8- don't enum bug keys
1057 var enumBugKeys$1 = [
1058 'constructor',
1059 'hasOwnProperty',
1060 'isPrototypeOf',
1061 'propertyIsEnumerable',
1062 'toLocaleString',
1063 'toString',
1064 'valueOf'
1065 ];
1066
1067 var internalObjectKeys = objectKeysInternal;
1068 var enumBugKeys = enumBugKeys$1;
1069
1070 var hiddenKeys = enumBugKeys.concat('length', 'prototype');
1071
1072 // `Object.getOwnPropertyNames` method
1073 // https://tc39.es/ecma262/#sec-object.getownpropertynames
1074 // eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
1075 objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1076 return internalObjectKeys(O, hiddenKeys);
1077 };
1078
1079 var objectGetOwnPropertySymbols = {};
1080
1081 // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
1082 objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1083
1084 var getBuiltIn$1 = getBuiltIn$4;
1085 var uncurryThis$6 = functionUncurryThis;
1086 var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1087 var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1088 var anObject = anObject$2;
1089
1090 var concat = uncurryThis$6([].concat);
1091
1092 // all object keys, includes non-enumerable and symbols
1093 var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
1094 var keys = getOwnPropertyNamesModule.f(anObject(it));
1095 var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1096 return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
1097 };
1098
1099 var hasOwn = hasOwnProperty_1;
1100 var ownKeys = ownKeys$1;
1101 var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1102 var definePropertyModule$1 = objectDefineProperty;
1103
1104 var copyConstructorProperties$1 = function (target, source, exceptions) {
1105 var keys = ownKeys(source);
1106 var defineProperty = definePropertyModule$1.f;
1107 var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1108 for (var i = 0; i < keys.length; i++) {
1109 var key = keys[i];
1110 if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
1111 defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1112 }
1113 }
1114 };
1115
1116 var fails$5 = fails$d;
1117 var isCallable$2 = isCallable$c;
1118
1119 var replacement = /#|\.prototype\./;
1120
1121 var isForced$1 = function (feature, detection) {
1122 var value = data[normalize(feature)];
1123 return value == POLYFILL ? true
1124 : value == NATIVE ? false
1125 : isCallable$2(detection) ? fails$5(detection)
1126 : !!detection;
1127 };
1128
1129 var normalize = isForced$1.normalize = function (string) {
1130 return String(string).replace(replacement, '.').toLowerCase();
1131 };
1132
1133 var data = isForced$1.data = {};
1134 var NATIVE = isForced$1.NATIVE = 'N';
1135 var POLYFILL = isForced$1.POLYFILL = 'P';
1136
1137 var isForced_1 = isForced$1;
1138
1139 var global$2 = global$b;
1140 var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1141 var createNonEnumerableProperty = createNonEnumerableProperty$3;
1142 var defineBuiltIn$1 = defineBuiltIn$2;
1143 var defineGlobalProperty = defineGlobalProperty$3;
1144 var copyConstructorProperties = copyConstructorProperties$1;
1145 var isForced = isForced_1;
1146
1147 /*
1148 options.target - name of the target object
1149 options.global - target is the global object
1150 options.stat - export as static methods of target
1151 options.proto - export as prototype methods of target
1152 options.real - real prototype method for the `pure` version
1153 options.forced - export even if the native feature is available
1154 options.bind - bind methods to the target, required for the `pure` version
1155 options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
1156 options.unsafe - use the simple assignment of property instead of delete + defineProperty
1157 options.sham - add a flag to not completely full polyfills
1158 options.enumerable - export as enumerable property
1159 options.dontCallGetSet - prevent calling a getter on target
1160 options.name - the .name of the function if it does not match the key
1161 */
1162 var _export = function (options, source) {
1163 var TARGET = options.target;
1164 var GLOBAL = options.global;
1165 var STATIC = options.stat;
1166 var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1167 if (GLOBAL) {
1168 target = global$2;
1169 } else if (STATIC) {
1170 target = global$2[TARGET] || defineGlobalProperty(TARGET, {});
1171 } else {
1172 target = (global$2[TARGET] || {}).prototype;
1173 }
1174 if (target) for (key in source) {
1175 sourceProperty = source[key];
1176 if (options.dontCallGetSet) {
1177 descriptor = getOwnPropertyDescriptor(target, key);
1178 targetProperty = descriptor && descriptor.value;
1179 } else targetProperty = target[key];
1180 FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1181 // contained in target
1182 if (!FORCED && targetProperty !== undefined) {
1183 if (typeof sourceProperty == typeof targetProperty) continue;
1184 copyConstructorProperties(sourceProperty, targetProperty);
1185 }
1186 // add a flag to not completely full polyfills
1187 if (options.sham || (targetProperty && targetProperty.sham)) {
1188 createNonEnumerableProperty(sourceProperty, 'sham', true);
1189 }
1190 defineBuiltIn$1(target, key, sourceProperty, options);
1191 }
1192 };
1193
1194 var classof$4 = classofRaw$1;
1195
1196 // `IsArray` abstract operation
1197 // https://tc39.es/ecma262/#sec-isarray
1198 // eslint-disable-next-line es-x/no-array-isarray -- safe
1199 var isArray$2 = Array.isArray || function isArray(argument) {
1200 return classof$4(argument) == 'Array';
1201 };
1202
1203 var $TypeError = TypeError;
1204 var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
1205
1206 var doesNotExceedSafeInteger$1 = function (it) {
1207 if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
1208 return it;
1209 };
1210
1211 var toPropertyKey = toPropertyKey$3;
1212 var definePropertyModule = objectDefineProperty;
1213 var createPropertyDescriptor = createPropertyDescriptor$3;
1214
1215 var createProperty$1 = function (object, key, value) {
1216 var propertyKey = toPropertyKey(key);
1217 if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
1218 else object[propertyKey] = value;
1219 };
1220
1221 var wellKnownSymbol$4 = wellKnownSymbol$6;
1222
1223 var TO_STRING_TAG$1 = wellKnownSymbol$4('toStringTag');
1224 var test = {};
1225
1226 test[TO_STRING_TAG$1] = 'z';
1227
1228 var toStringTagSupport = String(test) === '[object z]';
1229
1230 var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
1231 var isCallable$1 = isCallable$c;
1232 var classofRaw = classofRaw$1;
1233 var wellKnownSymbol$3 = wellKnownSymbol$6;
1234
1235 var TO_STRING_TAG = wellKnownSymbol$3('toStringTag');
1236 var $Object = Object;
1237
1238 // ES3 wrong here
1239 var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
1240
1241 // fallback for IE11 Script Access Denied error
1242 var tryGet = function (it, key) {
1243 try {
1244 return it[key];
1245 } catch (error) { /* empty */ }
1246 };
1247
1248 // getting tag from ES6+ `Object.prototype.toString`
1249 var classof$3 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) {
1250 var O, tag, result;
1251 return it === undefined ? 'Undefined' : it === null ? 'Null'
1252 // @@toStringTag case
1253 : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1254 // builtinTag case
1255 : CORRECT_ARGUMENTS ? classofRaw(O)
1256 // ES3 arguments fallback
1257 : (result = classofRaw(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result;
1258 };
1259
1260 var uncurryThis$5 = functionUncurryThis;
1261 var fails$4 = fails$d;
1262 var isCallable = isCallable$c;
1263 var classof$2 = classof$3;
1264 var getBuiltIn = getBuiltIn$4;
1265 var inspectSource = inspectSource$3;
1266
1267 var noop = function () { /* empty */ };
1268 var empty = [];
1269 var construct = getBuiltIn('Reflect', 'construct');
1270 var constructorRegExp = /^\s*(?:class|function)\b/;
1271 var exec$1 = uncurryThis$5(constructorRegExp.exec);
1272 var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
1273
1274 var isConstructorModern = function isConstructor(argument) {
1275 if (!isCallable(argument)) return false;
1276 try {
1277 construct(noop, empty, argument);
1278 return true;
1279 } catch (error) {
1280 return false;
1281 }
1282 };
1283
1284 var isConstructorLegacy = function isConstructor(argument) {
1285 if (!isCallable(argument)) return false;
1286 switch (classof$2(argument)) {
1287 case 'AsyncFunction':
1288 case 'GeneratorFunction':
1289 case 'AsyncGeneratorFunction': return false;
1290 }
1291 try {
1292 // we can't check .prototype since constructors produced by .bind haven't it
1293 // `Function#toString` throws on some built-it function in some legacy engines
1294 // (for example, `DOMQuad` and similar in FF41-)
1295 return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource(argument));
1296 } catch (error) {
1297 return true;
1298 }
1299 };
1300
1301 isConstructorLegacy.sham = true;
1302
1303 // `IsConstructor` abstract operation
1304 // https://tc39.es/ecma262/#sec-isconstructor
1305 var isConstructor$1 = !construct || fails$4(function () {
1306 var called;
1307 return isConstructorModern(isConstructorModern.call)
1308 || !isConstructorModern(Object)
1309 || !isConstructorModern(function () { called = true; })
1310 || called;
1311 }) ? isConstructorLegacy : isConstructorModern;
1312
1313 var isArray$1 = isArray$2;
1314 var isConstructor = isConstructor$1;
1315 var isObject$1 = isObject$7;
1316 var wellKnownSymbol$2 = wellKnownSymbol$6;
1317
1318 var SPECIES$1 = wellKnownSymbol$2('species');
1319 var $Array = Array;
1320
1321 // a part of `ArraySpeciesCreate` abstract operation
1322 // https://tc39.es/ecma262/#sec-arrayspeciescreate
1323 var arraySpeciesConstructor$1 = function (originalArray) {
1324 var C;
1325 if (isArray$1(originalArray)) {
1326 C = originalArray.constructor;
1327 // cross-realm fallback
1328 if (isConstructor(C) && (C === $Array || isArray$1(C.prototype))) C = undefined;
1329 else if (isObject$1(C)) {
1330 C = C[SPECIES$1];
1331 if (C === null) C = undefined;
1332 }
1333 } return C === undefined ? $Array : C;
1334 };
1335
1336 var arraySpeciesConstructor = arraySpeciesConstructor$1;
1337
1338 // `ArraySpeciesCreate` abstract operation
1339 // https://tc39.es/ecma262/#sec-arrayspeciescreate
1340 var arraySpeciesCreate$2 = function (originalArray, length) {
1341 return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
1342 };
1343
1344 var fails$3 = fails$d;
1345 var wellKnownSymbol$1 = wellKnownSymbol$6;
1346 var V8_VERSION$1 = engineV8Version;
1347
1348 var SPECIES = wellKnownSymbol$1('species');
1349
1350 var arrayMethodHasSpeciesSupport$2 = function (METHOD_NAME) {
1351 // We can't use this feature detection in V8 since it causes
1352 // deoptimization and serious performance degradation
1353 // https://github.com/zloirock/core-js/issues/677
1354 return V8_VERSION$1 >= 51 || !fails$3(function () {
1355 var array = [];
1356 var constructor = array.constructor = {};
1357 constructor[SPECIES] = function () {
1358 return { foo: 1 };
1359 };
1360 return array[METHOD_NAME](Boolean).foo !== 1;
1361 });
1362 };
1363
1364 var $$3 = _export;
1365 var fails$2 = fails$d;
1366 var isArray = isArray$2;
1367 var isObject = isObject$7;
1368 var toObject$1 = toObject$3;
1369 var lengthOfArrayLike$1 = lengthOfArrayLike$3;
1370 var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
1371 var createProperty = createProperty$1;
1372 var arraySpeciesCreate$1 = arraySpeciesCreate$2;
1373 var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$2;
1374 var wellKnownSymbol = wellKnownSymbol$6;
1375 var V8_VERSION = engineV8Version;
1376
1377 var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
1378
1379 // We can't use this feature detection in V8 since it causes
1380 // deoptimization and serious performance degradation
1381 // https://github.com/zloirock/core-js/issues/679
1382 var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$2(function () {
1383 var array = [];
1384 array[IS_CONCAT_SPREADABLE] = false;
1385 return array.concat()[0] !== array;
1386 });
1387
1388 var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport$1('concat');
1389
1390 var isConcatSpreadable = function (O) {
1391 if (!isObject(O)) return false;
1392 var spreadable = O[IS_CONCAT_SPREADABLE];
1393 return spreadable !== undefined ? !!spreadable : isArray(O);
1394 };
1395
1396 var FORCED$1 = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
1397
1398 // `Array.prototype.concat` method
1399 // https://tc39.es/ecma262/#sec-array.prototype.concat
1400 // with adding support of @@isConcatSpreadable and @@species
1401 $$3({ target: 'Array', proto: true, arity: 1, forced: FORCED$1 }, {
1402 // eslint-disable-next-line no-unused-vars -- required for `.length`
1403 concat: function concat(arg) {
1404 var O = toObject$1(this);
1405 var A = arraySpeciesCreate$1(O, 0);
1406 var n = 0;
1407 var i, k, length, len, E;
1408 for (i = -1, length = arguments.length; i < length; i++) {
1409 E = i === -1 ? O : arguments[i];
1410 if (isConcatSpreadable(E)) {
1411 len = lengthOfArrayLike$1(E);
1412 doesNotExceedSafeInteger(n + len);
1413 for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
1414 } else {
1415 doesNotExceedSafeInteger(n + 1);
1416 createProperty(A, n++, E);
1417 }
1418 }
1419 A.length = n;
1420 return A;
1421 }
1422 });
1423
1424 var uncurryThis$4 = functionUncurryThis;
1425 var aCallable = aCallable$2;
1426 var NATIVE_BIND = functionBindNative;
1427
1428 var bind$1 = uncurryThis$4(uncurryThis$4.bind);
1429
1430 // optional / simple context binding
1431 var functionBindContext = function (fn, that) {
1432 aCallable(fn);
1433 return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
1434 return fn.apply(that, arguments);
1435 };
1436 };
1437
1438 var bind = functionBindContext;
1439 var uncurryThis$3 = functionUncurryThis;
1440 var IndexedObject$1 = indexedObject;
1441 var toObject = toObject$3;
1442 var lengthOfArrayLike = lengthOfArrayLike$3;
1443 var arraySpeciesCreate = arraySpeciesCreate$2;
1444
1445 var push = uncurryThis$3([].push);
1446
1447 // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
1448 var createMethod$1 = function (TYPE) {
1449 var IS_MAP = TYPE == 1;
1450 var IS_FILTER = TYPE == 2;
1451 var IS_SOME = TYPE == 3;
1452 var IS_EVERY = TYPE == 4;
1453 var IS_FIND_INDEX = TYPE == 6;
1454 var IS_FILTER_REJECT = TYPE == 7;
1455 var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
1456 return function ($this, callbackfn, that, specificCreate) {
1457 var O = toObject($this);
1458 var self = IndexedObject$1(O);
1459 var boundFunction = bind(callbackfn, that);
1460 var length = lengthOfArrayLike(self);
1461 var index = 0;
1462 var create = specificCreate || arraySpeciesCreate;
1463 var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
1464 var value, result;
1465 for (;length > index; index++) if (NO_HOLES || index in self) {
1466 value = self[index];
1467 result = boundFunction(value, index, O);
1468 if (TYPE) {
1469 if (IS_MAP) target[index] = result; // map
1470 else if (result) switch (TYPE) {
1471 case 3: return true; // some
1472 case 5: return value; // find
1473 case 6: return index; // findIndex
1474 case 2: push(target, value); // filter
1475 } else switch (TYPE) {
1476 case 4: return false; // every
1477 case 7: push(target, value); // filterReject
1478 }
1479 }
1480 }
1481 return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
1482 };
1483 };
1484
1485 var arrayIteration = {
1486 // `Array.prototype.forEach` method
1487 // https://tc39.es/ecma262/#sec-array.prototype.foreach
1488 forEach: createMethod$1(0),
1489 // `Array.prototype.map` method
1490 // https://tc39.es/ecma262/#sec-array.prototype.map
1491 map: createMethod$1(1),
1492 // `Array.prototype.filter` method
1493 // https://tc39.es/ecma262/#sec-array.prototype.filter
1494 filter: createMethod$1(2),
1495 // `Array.prototype.some` method
1496 // https://tc39.es/ecma262/#sec-array.prototype.some
1497 some: createMethod$1(3),
1498 // `Array.prototype.every` method
1499 // https://tc39.es/ecma262/#sec-array.prototype.every
1500 every: createMethod$1(4),
1501 // `Array.prototype.find` method
1502 // https://tc39.es/ecma262/#sec-array.prototype.find
1503 find: createMethod$1(5),
1504 // `Array.prototype.findIndex` method
1505 // https://tc39.es/ecma262/#sec-array.prototype.findIndex
1506 findIndex: createMethod$1(6),
1507 // `Array.prototype.filterReject` method
1508 // https://github.com/tc39/proposal-array-filtering
1509 filterReject: createMethod$1(7)
1510 };
1511
1512 var $$2 = _export;
1513 var $filter = arrayIteration.filter;
1514 var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$2;
1515
1516 var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
1517
1518 // `Array.prototype.filter` method
1519 // https://tc39.es/ecma262/#sec-array.prototype.filter
1520 // with adding support of @@species
1521 $$2({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
1522 filter: function filter(callbackfn /* , thisArg */) {
1523 return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
1524 }
1525 });
1526
1527 var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
1528 var classof$1 = classof$3;
1529
1530 // `Object.prototype.toString` method implementation
1531 // https://tc39.es/ecma262/#sec-object.prototype.tostring
1532 var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
1533 return '[object ' + classof$1(this) + ']';
1534 };
1535
1536 var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1537 var defineBuiltIn = defineBuiltIn$2;
1538 var toString$3 = objectToString;
1539
1540 // `Object.prototype.toString` method
1541 // https://tc39.es/ecma262/#sec-object.prototype.tostring
1542 if (!TO_STRING_TAG_SUPPORT) {
1543 defineBuiltIn(Object.prototype, 'toString', toString$3, { unsafe: true });
1544 }
1545
1546 var fails$1 = fails$d;
1547
1548 var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
1549 var method = [][METHOD_NAME];
1550 return !!method && fails$1(function () {
1551 // eslint-disable-next-line no-useless-call -- required for testing
1552 method.call(null, argument || function () { return 1; }, 1);
1553 });
1554 };
1555
1556 var $$1 = _export;
1557 var uncurryThis$2 = functionUncurryThis;
1558 var IndexedObject = indexedObject;
1559 var toIndexedObject = toIndexedObject$4;
1560 var arrayMethodIsStrict = arrayMethodIsStrict$1;
1561
1562 var un$Join = uncurryThis$2([].join);
1563
1564 var ES3_STRINGS = IndexedObject != Object;
1565 var STRICT_METHOD = arrayMethodIsStrict('join', ',');
1566
1567 // `Array.prototype.join` method
1568 // https://tc39.es/ecma262/#sec-array.prototype.join
1569 $$1({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD }, {
1570 join: function join(separator) {
1571 return un$Join(toIndexedObject(this), separator === undefined ? ',' : separator);
1572 }
1573 });
1574
1575 var classof = classof$3;
1576
1577 var $String = String;
1578
1579 var toString$2 = function (argument) {
1580 if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
1581 return $String(argument);
1582 };
1583
1584 // a string of all valid unicode whitespaces
1585 var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
1586 '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
1587
1588 var uncurryThis$1 = functionUncurryThis;
1589 var requireObjectCoercible = requireObjectCoercible$3;
1590 var toString$1 = toString$2;
1591 var whitespaces$1 = whitespaces$2;
1592
1593 var replace = uncurryThis$1(''.replace);
1594 var whitespace = '[' + whitespaces$1 + ']';
1595 var ltrim = RegExp('^' + whitespace + whitespace + '*');
1596 var rtrim = RegExp(whitespace + whitespace + '*$');
1597
1598 // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
1599 var createMethod = function (TYPE) {
1600 return function ($this) {
1601 var string = toString$1(requireObjectCoercible($this));
1602 if (TYPE & 1) string = replace(string, ltrim, '');
1603 if (TYPE & 2) string = replace(string, rtrim, '');
1604 return string;
1605 };
1606 };
1607
1608 var stringTrim = {
1609 // `String.prototype.{ trimLeft, trimStart }` methods
1610 // https://tc39.es/ecma262/#sec-string.prototype.trimstart
1611 start: createMethod(1),
1612 // `String.prototype.{ trimRight, trimEnd }` methods
1613 // https://tc39.es/ecma262/#sec-string.prototype.trimend
1614 end: createMethod(2),
1615 // `String.prototype.trim` method
1616 // https://tc39.es/ecma262/#sec-string.prototype.trim
1617 trim: createMethod(3)
1618 };
1619
1620 var global$1 = global$b;
1621 var fails = fails$d;
1622 var uncurryThis = functionUncurryThis;
1623 var toString = toString$2;
1624 var trim = stringTrim.trim;
1625 var whitespaces = whitespaces$2;
1626
1627 var $parseInt$1 = global$1.parseInt;
1628 var Symbol$1 = global$1.Symbol;
1629 var ITERATOR = Symbol$1 && Symbol$1.iterator;
1630 var hex = /^[+-]?0x/i;
1631 var exec = uncurryThis(hex.exec);
1632 var FORCED = $parseInt$1(whitespaces + '08') !== 8 || $parseInt$1(whitespaces + '0x16') !== 22
1633 // MS Edge 18- broken with boxed symbols
1634 || (ITERATOR && !fails(function () { $parseInt$1(Object(ITERATOR)); }));
1635
1636 // `parseInt` method
1637 // https://tc39.es/ecma262/#sec-parseint-string-radix
1638 var numberParseInt = FORCED ? function parseInt(string, radix) {
1639 var S = trim(toString(string));
1640 return $parseInt$1(S, (radix >>> 0) || (exec(hex, S) ? 16 : 10));
1641 } : $parseInt$1;
1642
1643 var $ = _export;
1644 var $parseInt = numberParseInt;
1645
1646 // `parseInt` method
1647 // https://tc39.es/ecma262/#sec-parseint-string-radix
1648 $({ global: true, forced: parseInt != $parseInt }, {
1649 parseInt: $parseInt
1650 });
1651
1652 /**
1653 * @author: YL
1654 * @update: zhixin wen <wenzhixin2010@gmail.com>
1655 */
1656
1657 $__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, {
1658 treeEnable: false,
1659 treeShowField: null,
1660 idField: 'id',
1661 parentIdField: 'pid',
1662 rootParentId: null
1663 });
1664
1665 $__default["default"].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
1666 _inherits(_class, _$$BootstrapTable);
1667
1668 var _super = _createSuper(_class);
1669
1670 function _class() {
1671 _classCallCheck(this, _class);
1672
1673 return _super.apply(this, arguments);
1674 }
1675
1676 _createClass(_class, [{
1677 key: "init",
1678 value: function init() {
1679 var _get2;
1680
1681 this._rowStyle = this.options.rowStyle;
1682
1683 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1684 args[_key] = arguments[_key];
1685 }
1686
1687 (_get2 = _get(_getPrototypeOf(_class.prototype), "init", this)).call.apply(_get2, [this].concat(args));
1688 }
1689 }, {
1690 key: "initHeader",
1691 value: function initHeader() {
1692 var _get3;
1693
1694 for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
1695 args[_key2] = arguments[_key2];
1696 }
1697
1698 (_get3 = _get(_getPrototypeOf(_class.prototype), "initHeader", this)).call.apply(_get3, [this].concat(args));
1699
1700 var treeShowField = this.options.treeShowField;
1701
1702 if (treeShowField) {
1703 var _iterator = _createForOfIteratorHelper(this.header.fields),
1704 _step;
1705
1706 try {
1707 for (_iterator.s(); !(_step = _iterator.n()).done;) {
1708 var field = _step.value;
1709
1710 if (treeShowField === field) {
1711 this.treeEnable = true;
1712 break;
1713 }
1714 }
1715 } catch (err) {
1716 _iterator.e(err);
1717 } finally {
1718 _iterator.f();
1719 }
1720 }
1721 }
1722 }, {
1723 key: "initBody",
1724 value: function initBody() {
1725 var _get4;
1726
1727 if (this.treeEnable) {
1728 this.options.virtualScroll = false;
1729 }
1730
1731 for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
1732 args[_key3] = arguments[_key3];
1733 }
1734
1735 (_get4 = _get(_getPrototypeOf(_class.prototype), "initBody", this)).call.apply(_get4, [this].concat(args));
1736 }
1737 }, {
1738 key: "initTr",
1739 value: function initTr(item, idx, data, parentDom) {
1740 var _this = this;
1741
1742 var nodes = data.filter(function (it) {
1743 return item[_this.options.idField] === it[_this.options.parentIdField];
1744 });
1745 parentDom.append(_get(_getPrototypeOf(_class.prototype), "initRow", this).call(this, item, idx, data, parentDom)); // init sub node
1746
1747 var len = nodes.length - 1;
1748
1749 for (var i = 0; i <= len; i++) {
1750 var node = nodes[i];
1751 var defaultItem = $__default["default"].extend(true, {}, item);
1752 node._level = defaultItem._level + 1;
1753 node._parent = defaultItem;
1754
1755 if (i === len) {
1756 node._last = 1;
1757 } // jquery.treegrid.js
1758
1759
1760 this.options.rowStyle = function (item, idx) {
1761 var res = _this._rowStyle(item, idx);
1762
1763 var id = item[_this.options.idField] ? item[_this.options.idField] : 0;
1764 var pid = item[_this.options.parentIdField] ? item[_this.options.parentIdField] : 0;
1765 res.classes = [res.classes || '', "treegrid-".concat(id), "treegrid-parent-".concat(pid)].join(' ');
1766 return res;
1767 };
1768
1769 this.initTr(node, $__default["default"].inArray(node, data), data, parentDom);
1770 }
1771 }
1772 }, {
1773 key: "initRow",
1774 value: function initRow(item, idx, data, parentDom) {
1775 var _this2 = this;
1776
1777 if (this.treeEnable) {
1778 var parentId = parseInt(item[this.options.parentIdField], 10);
1779
1780 if (this.options.rootParentId === parentId || !parentId) {
1781 if (item._level === undefined) {
1782 item._level = 0;
1783 } // jquery.treegrid.js
1784
1785
1786 this.options.rowStyle = function (item, idx) {
1787 var res = _this2._rowStyle(item, idx);
1788
1789 var x = item[_this2.options.idField] ? item[_this2.options.idField] : 0;
1790 res.classes = [res.classes || '', "treegrid-".concat(x)].join(' ');
1791 return res;
1792 };
1793
1794 this.initTr(item, idx, data, parentDom);
1795 return true;
1796 }
1797
1798 return false;
1799 }
1800
1801 return _get(_getPrototypeOf(_class.prototype), "initRow", this).call(this, item, idx, data, parentDom);
1802 }
1803 }, {
1804 key: "destroy",
1805 value: function destroy() {
1806 var _get5;
1807
1808 for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
1809 args[_key4] = arguments[_key4];
1810 }
1811
1812 (_get5 = _get(_getPrototypeOf(_class.prototype), "destroy", this)).call.apply(_get5, [this].concat(args));
1813
1814 this.options.rowStyle = this._rowStyle;
1815 }
1816 }]);
1817
1818 return _class;
1819 }($__default["default"].BootstrapTable);
1820
1821}));