UNPKG

57.9 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 ($$3) { 'use strict';
6
7 function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
9 var $__default = /*#__PURE__*/_interopDefaultLegacy($$3);
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$p =
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$a = function (exec) {
170 try {
171 return !!exec();
172 } catch (error) {
173 return true;
174 }
175 };
176
177 var fails$9 = fails$a;
178
179 // Detect IE8's incomplete defineProperty implementation
180 var descriptors = !fails$9(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$8 = fails$a;
186
187 var functionBindNative = !fails$8(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$2 = functionBindNative;
195
196 var call$4 = Function.prototype.call;
197
198 var functionCall = NATIVE_BIND$2 ? 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$2 = 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$1 = functionBindNative;
228
229 var FunctionPrototype$1 = Function.prototype;
230 var bind$2 = FunctionPrototype$1.bind;
231 var call$3 = FunctionPrototype$1.call;
232 var uncurryThis$d = NATIVE_BIND$1 && bind$2.bind(call$3, call$3);
233
234 var functionUncurryThis = NATIVE_BIND$1 ? function (fn) {
235 return fn && uncurryThis$d(fn);
236 } : function (fn) {
237 return fn && function () {
238 return call$3.apply(fn, arguments);
239 };
240 };
241
242 var uncurryThis$c = functionUncurryThis;
243
244 var toString$4 = uncurryThis$c({}.toString);
245 var stringSlice = uncurryThis$c(''.slice);
246
247 var classofRaw$1 = function (it) {
248 return stringSlice(toString$4(it), 8, -1);
249 };
250
251 var global$o = global$p;
252 var uncurryThis$b = functionUncurryThis;
253 var fails$7 = fails$a;
254 var classof$6 = classofRaw$1;
255
256 var Object$4 = global$o.Object;
257 var split = uncurryThis$b(''.split);
258
259 // fallback for non-array-like ES3 and non-enumerable old V8 strings
260 var indexedObject = fails$7(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$6(it) == 'String' ? split(it, '') : Object$4(it);
266 } : Object$4;
267
268 var global$n = global$p;
269
270 var TypeError$8 = global$n.TypeError;
271
272 // `RequireObjectCoercible` abstract operation
273 // https://tc39.es/ecma262/#sec-requireobjectcoercible
274 var requireObjectCoercible$3 = 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$1 = indexedObject;
281 var requireObjectCoercible$2 = requireObjectCoercible$3;
282
283 var toIndexedObject$4 = function (it) {
284 return IndexedObject$1(requireObjectCoercible$2(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$m = global$p;
300 var isCallable$a = isCallable$c;
301
302 var aFunction = function (argument) {
303 return isCallable$a(argument) ? argument : undefined;
304 };
305
306 var getBuiltIn$5 = function (namespace, method) {
307 return arguments.length < 2 ? aFunction(global$m[namespace]) : global$m[namespace] && global$m[namespace][method];
308 };
309
310 var uncurryThis$a = functionUncurryThis;
311
312 var objectIsPrototypeOf = uncurryThis$a({}.isPrototypeOf);
313
314 var getBuiltIn$4 = getBuiltIn$5;
315
316 var engineUserAgent = getBuiltIn$4('navigator', 'userAgent') || '';
317
318 var global$l = global$p;
319 var userAgent = engineUserAgent;
320
321 var process = global$l.process;
322 var Deno = global$l.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 = engineV8Version;
349 var fails$6 = fails$a;
350
351 // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
352 var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$6(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 && V8_VERSION < 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$k = global$p;
370 var getBuiltIn$3 = getBuiltIn$5;
371 var isCallable$9 = isCallable$c;
372 var isPrototypeOf = objectIsPrototypeOf;
373 var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
374
375 var Object$3 = global$k.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$3('Symbol');
381 return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, Object$3(it));
382 };
383
384 var global$j = global$p;
385
386 var String$3 = global$j.String;
387
388 var tryToString$1 = function (argument) {
389 try {
390 return String$3(argument);
391 } catch (error) {
392 return 'Object';
393 }
394 };
395
396 var global$i = global$p;
397 var isCallable$8 = isCallable$c;
398 var tryToString = tryToString$1;
399
400 var TypeError$7 = global$i.TypeError;
401
402 // `Assert: IsCallable(argument) is true`
403 var aCallable$2 = function (argument) {
404 if (isCallable$8(argument)) return argument;
405 throw TypeError$7(tryToString(argument) + ' is not a function');
406 };
407
408 var aCallable$1 = aCallable$2;
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$1(func);
415 };
416
417 var global$h = global$p;
418 var call$2 = functionCall;
419 var isCallable$7 = isCallable$c;
420 var isObject$6 = isObject$7;
421
422 var TypeError$6 = global$h.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$g = global$p;
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$g, key, { value: value, configurable: true, writable: true });
444 } catch (error) {
445 global$g[key] = value;
446 } return value;
447 };
448
449 var global$f = global$p;
450 var setGlobal$2 = setGlobal$3;
451
452 var SHARED = '__core-js_shared__';
453 var store$3 = global$f[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$e = global$p;
470 var requireObjectCoercible$1 = requireObjectCoercible$3;
471
472 var Object$2 = global$e.Object;
473
474 // `ToObject` abstract operation
475 // https://tc39.es/ecma262/#sec-toobject
476 var toObject$2 = function (argument) {
477 return Object$2(requireObjectCoercible$1(argument));
478 };
479
480 var uncurryThis$9 = functionUncurryThis;
481 var toObject$1 = toObject$2;
482
483 var hasOwnProperty = uncurryThis$9({}.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$8 = functionUncurryThis;
493
494 var id = 0;
495 var postfix = Math.random();
496 var toString$3 = uncurryThis$8(1.0.toString);
497
498 var uid$2 = function (key) {
499 return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
500 };
501
502 var global$d = global$p;
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$d.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$7 = 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$c = global$p;
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$6 = wellKnownSymbol$7;
534
535 var TypeError$5 = global$c.TypeError;
536 var TO_PRIMITIVE = wellKnownSymbol$6('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$2 = function (argument) {
560 var key = toPrimitive(argument, 'string');
561 return isSymbol(key) ? key : key + '';
562 };
563
564 var global$b = global$p;
565 var isObject$4 = isObject$7;
566
567 var document$1 = global$b.document;
568 // typeof document.createElement is 'object' in old IE
569 var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement);
570
571 var documentCreateElement$1 = function (it) {
572 return EXISTS$1 ? document$1.createElement(it) : {};
573 };
574
575 var DESCRIPTORS$7 = descriptors;
576 var fails$5 = fails$a;
577 var createElement = documentCreateElement$1;
578
579 // Thanks to IE8 for its funny defineProperty
580 var ie8DomDefine = !DESCRIPTORS$7 && !fails$5(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$6 = descriptors;
588 var call = functionCall;
589 var propertyIsEnumerableModule = objectPropertyIsEnumerable;
590 var createPropertyDescriptor$1 = createPropertyDescriptor$2;
591 var toIndexedObject$3 = toIndexedObject$4;
592 var toPropertyKey$1 = toPropertyKey$2;
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$6 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
602 O = toIndexedObject$3(O);
603 P = toPropertyKey$1(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$1(!call(propertyIsEnumerableModule.f, O, P), O[P]);
608 };
609
610 var objectDefineProperty = {};
611
612 var DESCRIPTORS$5 = descriptors;
613 var fails$4 = fails$a;
614
615 // V8 ~ Chrome 36-
616 // https://bugs.chromium.org/p/v8/issues/detail?id=3334
617 var v8PrototypeDefineBug = DESCRIPTORS$5 && fails$4(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$a = global$p;
626 var isObject$3 = isObject$7;
627
628 var String$2 = global$a.String;
629 var TypeError$4 = global$a.TypeError;
630
631 // `Assert: Type(argument) is Object`
632 var anObject$4 = function (argument) {
633 if (isObject$3(argument)) return argument;
634 throw TypeError$4(String$2(argument) + ' is not an object');
635 };
636
637 var global$9 = global$p;
638 var DESCRIPTORS$4 = descriptors;
639 var IE8_DOM_DEFINE = ie8DomDefine;
640 var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
641 var anObject$3 = anObject$4;
642 var toPropertyKey = toPropertyKey$2;
643
644 var TypeError$3 = global$9.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$4 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
656 anObject$3(O);
657 P = toPropertyKey(P);
658 anObject$3(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$3(O);
672 P = toPropertyKey(P);
673 anObject$3(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$3 = descriptors;
683 var definePropertyModule$3 = objectDefineProperty;
684 var createPropertyDescriptor = createPropertyDescriptor$2;
685
686 var createNonEnumerableProperty$3 = DESCRIPTORS$3 ? function (object, key, value) {
687 return definePropertyModule$3.f(object, key, createPropertyDescriptor(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$2 = 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$2 && 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$2 || (DESCRIPTORS$2 && getDescriptor(FunctionPrototype, 'name').configurable));
706
707 var functionName = {
708 EXISTS: EXISTS,
709 PROPER: PROPER,
710 CONFIGURABLE: CONFIGURABLE
711 };
712
713 var uncurryThis$7 = functionUncurryThis;
714 var isCallable$6 = isCallable$c;
715 var store$1 = sharedStore;
716
717 var functionToString = uncurryThis$7(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$8 = global$p;
729 var isCallable$5 = isCallable$c;
730 var inspectSource$2 = inspectSource$3;
731
732 var WeakMap$1 = global$8.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$2 = function (key) {
742 return keys[key] || (keys[key] = uid(key));
743 };
744
745 var hiddenKeys$4 = {};
746
747 var NATIVE_WEAK_MAP = nativeWeakMap;
748 var global$7 = global$p;
749 var uncurryThis$6 = 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$1 = sharedKey$2;
755 var hiddenKeys$3 = hiddenKeys$4;
756
757 var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
758 var TypeError$2 = global$7.TypeError;
759 var WeakMap = global$7.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$6(store.get);
778 var wmhas = uncurryThis$6(store.has);
779 var wmset = uncurryThis$6(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$1('state');
794 hiddenKeys$3[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$3 = fails$a;
818 var isCallable$4 = isCallable$c;
819 var hasOwn$2 = hasOwnProperty_1;
820 var DESCRIPTORS$1 = 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$1 && !fails$3(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$1) 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$6 = global$p;
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$2 = 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$6) {
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$2 = toIndexedObject$4;
936 var toAbsoluteIndex = toAbsoluteIndex$1;
937 var lengthOfArrayLike$1 = lengthOfArrayLike$2;
938
939 // `Array.prototype.{ indexOf, includes }` methods implementation
940 var createMethod$1 = function (IS_INCLUDES) {
941 return function ($this, el, fromIndex) {
942 var O = toIndexedObject$2($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$1(true),
963 // `Array.prototype.indexOf` method
964 // https://tc39.es/ecma262/#sec-array.prototype.indexof
965 indexOf: createMethod$1(false)
966 };
967
968 var uncurryThis$5 = functionUncurryThis;
969 var hasOwn$1 = hasOwnProperty_1;
970 var toIndexedObject$1 = toIndexedObject$4;
971 var indexOf = arrayIncludes.indexOf;
972 var hiddenKeys$2 = hiddenKeys$4;
973
974 var push$1 = uncurryThis$5([].push);
975
976 var objectKeysInternal = function (object, names) {
977 var O = toIndexedObject$1(object);
978 var i = 0;
979 var result = [];
980 var key;
981 for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && push$1(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$1(result, key);
985 }
986 return result;
987 };
988
989 // IE8- don't enum bug keys
990 var enumBugKeys$3 = [
991 'constructor',
992 'hasOwnProperty',
993 'isPrototypeOf',
994 'propertyIsEnumerable',
995 'toLocaleString',
996 'toString',
997 'valueOf'
998 ];
999
1000 var internalObjectKeys$1 = objectKeysInternal;
1001 var enumBugKeys$2 = enumBugKeys$3;
1002
1003 var hiddenKeys$1 = enumBugKeys$2.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$1(O, hiddenKeys$1);
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$2 = getBuiltIn$5;
1018 var uncurryThis$4 = functionUncurryThis;
1019 var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1020 var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1021 var anObject$2 = anObject$4;
1022
1023 var concat = uncurryThis$4([].concat);
1024
1025 // all object keys, includes non-enumerable and symbols
1026 var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
1027 var keys = getOwnPropertyNamesModule.f(anObject$2(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$2 = objectDefineProperty;
1036
1037 var copyConstructorProperties$1 = function (target, source, exceptions) {
1038 var keys = ownKeys(source);
1039 var defineProperty = definePropertyModule$2.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$2 = fails$a;
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$2(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$5 = global$p;
1073 var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1074 var createNonEnumerableProperty = createNonEnumerableProperty$3;
1075 var defineBuiltIn$1 = defineBuiltIn$2;
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$5;
1102 } else if (STATIC) {
1103 target = global$5[TARGET] || setGlobal(TARGET, {});
1104 } else {
1105 target = (global$5[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$1(target, key, sourceProperty, options);
1124 }
1125 };
1126
1127 var uncurryThis$3 = functionUncurryThis;
1128 var aCallable = aCallable$2;
1129 var NATIVE_BIND = functionBindNative;
1130
1131 var bind$1 = uncurryThis$3(uncurryThis$3.bind);
1132
1133 // optional / simple context binding
1134 var functionBindContext = function (fn, that) {
1135 aCallable(fn);
1136 return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
1137 return fn.apply(that, arguments);
1138 };
1139 };
1140
1141 var classof$5 = classofRaw$1;
1142
1143 // `IsArray` abstract operation
1144 // https://tc39.es/ecma262/#sec-isarray
1145 // eslint-disable-next-line es-x/no-array-isarray -- safe
1146 var isArray$1 = Array.isArray || function isArray(argument) {
1147 return classof$5(argument) == 'Array';
1148 };
1149
1150 var wellKnownSymbol$5 = wellKnownSymbol$7;
1151
1152 var TO_STRING_TAG$1 = wellKnownSymbol$5('toStringTag');
1153 var test = {};
1154
1155 test[TO_STRING_TAG$1] = 'z';
1156
1157 var toStringTagSupport = String(test) === '[object z]';
1158
1159 var global$4 = global$p;
1160 var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
1161 var isCallable$1 = isCallable$c;
1162 var classofRaw = classofRaw$1;
1163 var wellKnownSymbol$4 = wellKnownSymbol$7;
1164
1165 var TO_STRING_TAG = wellKnownSymbol$4('toStringTag');
1166 var Object$1 = global$4.Object;
1167
1168 // ES3 wrong here
1169 var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
1170
1171 // fallback for IE11 Script Access Denied error
1172 var tryGet = function (it, key) {
1173 try {
1174 return it[key];
1175 } catch (error) { /* empty */ }
1176 };
1177
1178 // getting tag from ES6+ `Object.prototype.toString`
1179 var classof$4 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) {
1180 var O, tag, result;
1181 return it === undefined ? 'Undefined' : it === null ? 'Null'
1182 // @@toStringTag case
1183 : typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
1184 // builtinTag case
1185 : CORRECT_ARGUMENTS ? classofRaw(O)
1186 // ES3 arguments fallback
1187 : (result = classofRaw(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result;
1188 };
1189
1190 var uncurryThis$2 = functionUncurryThis;
1191 var fails$1 = fails$a;
1192 var isCallable = isCallable$c;
1193 var classof$3 = classof$4;
1194 var getBuiltIn$1 = getBuiltIn$5;
1195 var inspectSource = inspectSource$3;
1196
1197 var noop = function () { /* empty */ };
1198 var empty = [];
1199 var construct = getBuiltIn$1('Reflect', 'construct');
1200 var constructorRegExp = /^\s*(?:class|function)\b/;
1201 var exec = uncurryThis$2(constructorRegExp.exec);
1202 var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
1203
1204 var isConstructorModern = function isConstructor(argument) {
1205 if (!isCallable(argument)) return false;
1206 try {
1207 construct(noop, empty, argument);
1208 return true;
1209 } catch (error) {
1210 return false;
1211 }
1212 };
1213
1214 var isConstructorLegacy = function isConstructor(argument) {
1215 if (!isCallable(argument)) return false;
1216 switch (classof$3(argument)) {
1217 case 'AsyncFunction':
1218 case 'GeneratorFunction':
1219 case 'AsyncGeneratorFunction': return false;
1220 }
1221 try {
1222 // we can't check .prototype since constructors produced by .bind haven't it
1223 // `Function#toString` throws on some built-it function in some legacy engines
1224 // (for example, `DOMQuad` and similar in FF41-)
1225 return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
1226 } catch (error) {
1227 return true;
1228 }
1229 };
1230
1231 isConstructorLegacy.sham = true;
1232
1233 // `IsConstructor` abstract operation
1234 // https://tc39.es/ecma262/#sec-isconstructor
1235 var isConstructor$1 = !construct || fails$1(function () {
1236 var called;
1237 return isConstructorModern(isConstructorModern.call)
1238 || !isConstructorModern(Object)
1239 || !isConstructorModern(function () { called = true; })
1240 || called;
1241 }) ? isConstructorLegacy : isConstructorModern;
1242
1243 var global$3 = global$p;
1244 var isArray = isArray$1;
1245 var isConstructor = isConstructor$1;
1246 var isObject$1 = isObject$7;
1247 var wellKnownSymbol$3 = wellKnownSymbol$7;
1248
1249 var SPECIES = wellKnownSymbol$3('species');
1250 var Array$1 = global$3.Array;
1251
1252 // a part of `ArraySpeciesCreate` abstract operation
1253 // https://tc39.es/ecma262/#sec-arrayspeciescreate
1254 var arraySpeciesConstructor$1 = function (originalArray) {
1255 var C;
1256 if (isArray(originalArray)) {
1257 C = originalArray.constructor;
1258 // cross-realm fallback
1259 if (isConstructor(C) && (C === Array$1 || isArray(C.prototype))) C = undefined;
1260 else if (isObject$1(C)) {
1261 C = C[SPECIES];
1262 if (C === null) C = undefined;
1263 }
1264 } return C === undefined ? Array$1 : C;
1265 };
1266
1267 var arraySpeciesConstructor = arraySpeciesConstructor$1;
1268
1269 // `ArraySpeciesCreate` abstract operation
1270 // https://tc39.es/ecma262/#sec-arrayspeciescreate
1271 var arraySpeciesCreate$1 = function (originalArray, length) {
1272 return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
1273 };
1274
1275 var bind = functionBindContext;
1276 var uncurryThis$1 = functionUncurryThis;
1277 var IndexedObject = indexedObject;
1278 var toObject = toObject$2;
1279 var lengthOfArrayLike = lengthOfArrayLike$2;
1280 var arraySpeciesCreate = arraySpeciesCreate$1;
1281
1282 var push = uncurryThis$1([].push);
1283
1284 // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
1285 var createMethod = function (TYPE) {
1286 var IS_MAP = TYPE == 1;
1287 var IS_FILTER = TYPE == 2;
1288 var IS_SOME = TYPE == 3;
1289 var IS_EVERY = TYPE == 4;
1290 var IS_FIND_INDEX = TYPE == 6;
1291 var IS_FILTER_REJECT = TYPE == 7;
1292 var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
1293 return function ($this, callbackfn, that, specificCreate) {
1294 var O = toObject($this);
1295 var self = IndexedObject(O);
1296 var boundFunction = bind(callbackfn, that);
1297 var length = lengthOfArrayLike(self);
1298 var index = 0;
1299 var create = specificCreate || arraySpeciesCreate;
1300 var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
1301 var value, result;
1302 for (;length > index; index++) if (NO_HOLES || index in self) {
1303 value = self[index];
1304 result = boundFunction(value, index, O);
1305 if (TYPE) {
1306 if (IS_MAP) target[index] = result; // map
1307 else if (result) switch (TYPE) {
1308 case 3: return true; // some
1309 case 5: return value; // find
1310 case 6: return index; // findIndex
1311 case 2: push(target, value); // filter
1312 } else switch (TYPE) {
1313 case 4: return false; // every
1314 case 7: push(target, value); // filterReject
1315 }
1316 }
1317 }
1318 return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
1319 };
1320 };
1321
1322 var arrayIteration = {
1323 // `Array.prototype.forEach` method
1324 // https://tc39.es/ecma262/#sec-array.prototype.foreach
1325 forEach: createMethod(0),
1326 // `Array.prototype.map` method
1327 // https://tc39.es/ecma262/#sec-array.prototype.map
1328 map: createMethod(1),
1329 // `Array.prototype.filter` method
1330 // https://tc39.es/ecma262/#sec-array.prototype.filter
1331 filter: createMethod(2),
1332 // `Array.prototype.some` method
1333 // https://tc39.es/ecma262/#sec-array.prototype.some
1334 some: createMethod(3),
1335 // `Array.prototype.every` method
1336 // https://tc39.es/ecma262/#sec-array.prototype.every
1337 every: createMethod(4),
1338 // `Array.prototype.find` method
1339 // https://tc39.es/ecma262/#sec-array.prototype.find
1340 find: createMethod(5),
1341 // `Array.prototype.findIndex` method
1342 // https://tc39.es/ecma262/#sec-array.prototype.findIndex
1343 findIndex: createMethod(6),
1344 // `Array.prototype.filterReject` method
1345 // https://github.com/tc39/proposal-array-filtering
1346 filterReject: createMethod(7)
1347 };
1348
1349 var objectDefineProperties = {};
1350
1351 var internalObjectKeys = objectKeysInternal;
1352 var enumBugKeys$1 = enumBugKeys$3;
1353
1354 // `Object.keys` method
1355 // https://tc39.es/ecma262/#sec-object.keys
1356 // eslint-disable-next-line es-x/no-object-keys -- safe
1357 var objectKeys$1 = Object.keys || function keys(O) {
1358 return internalObjectKeys(O, enumBugKeys$1);
1359 };
1360
1361 var DESCRIPTORS = descriptors;
1362 var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1363 var definePropertyModule$1 = objectDefineProperty;
1364 var anObject$1 = anObject$4;
1365 var toIndexedObject = toIndexedObject$4;
1366 var objectKeys = objectKeys$1;
1367
1368 // `Object.defineProperties` method
1369 // https://tc39.es/ecma262/#sec-object.defineproperties
1370 // eslint-disable-next-line es-x/no-object-defineproperties -- safe
1371 objectDefineProperties.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1372 anObject$1(O);
1373 var props = toIndexedObject(Properties);
1374 var keys = objectKeys(Properties);
1375 var length = keys.length;
1376 var index = 0;
1377 var key;
1378 while (length > index) definePropertyModule$1.f(O, key = keys[index++], props[key]);
1379 return O;
1380 };
1381
1382 var getBuiltIn = getBuiltIn$5;
1383
1384 var html$1 = getBuiltIn('document', 'documentElement');
1385
1386 /* global ActiveXObject -- old IE, WSH */
1387
1388 var anObject = anObject$4;
1389 var definePropertiesModule = objectDefineProperties;
1390 var enumBugKeys = enumBugKeys$3;
1391 var hiddenKeys = hiddenKeys$4;
1392 var html = html$1;
1393 var documentCreateElement = documentCreateElement$1;
1394 var sharedKey = sharedKey$2;
1395
1396 var GT = '>';
1397 var LT = '<';
1398 var PROTOTYPE = 'prototype';
1399 var SCRIPT = 'script';
1400 var IE_PROTO = sharedKey('IE_PROTO');
1401
1402 var EmptyConstructor = function () { /* empty */ };
1403
1404 var scriptTag = function (content) {
1405 return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1406 };
1407
1408 // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1409 var NullProtoObjectViaActiveX = function (activeXDocument) {
1410 activeXDocument.write(scriptTag(''));
1411 activeXDocument.close();
1412 var temp = activeXDocument.parentWindow.Object;
1413 activeXDocument = null; // avoid memory leak
1414 return temp;
1415 };
1416
1417 // Create object with fake `null` prototype: use iframe Object with cleared prototype
1418 var NullProtoObjectViaIFrame = function () {
1419 // Thrash, waste and sodomy: IE GC bug
1420 var iframe = documentCreateElement('iframe');
1421 var JS = 'java' + SCRIPT + ':';
1422 var iframeDocument;
1423 iframe.style.display = 'none';
1424 html.appendChild(iframe);
1425 // https://github.com/zloirock/core-js/issues/475
1426 iframe.src = String(JS);
1427 iframeDocument = iframe.contentWindow.document;
1428 iframeDocument.open();
1429 iframeDocument.write(scriptTag('document.F=Object'));
1430 iframeDocument.close();
1431 return iframeDocument.F;
1432 };
1433
1434 // Check for document.domain and active x support
1435 // No need to use active x approach when document.domain is not set
1436 // see https://github.com/es-shims/es5-shim/issues/150
1437 // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1438 // avoid IE GC bug
1439 var activeXDocument;
1440 var NullProtoObject = function () {
1441 try {
1442 activeXDocument = new ActiveXObject('htmlfile');
1443 } catch (error) { /* ignore */ }
1444 NullProtoObject = typeof document != 'undefined'
1445 ? document.domain && activeXDocument
1446 ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1447 : NullProtoObjectViaIFrame()
1448 : NullProtoObjectViaActiveX(activeXDocument); // WSH
1449 var length = enumBugKeys.length;
1450 while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1451 return NullProtoObject();
1452 };
1453
1454 hiddenKeys[IE_PROTO] = true;
1455
1456 // `Object.create` method
1457 // https://tc39.es/ecma262/#sec-object.create
1458 // eslint-disable-next-line es-x/no-object-create -- safe
1459 var objectCreate = Object.create || function create(O, Properties) {
1460 var result;
1461 if (O !== null) {
1462 EmptyConstructor[PROTOTYPE] = anObject(O);
1463 result = new EmptyConstructor();
1464 EmptyConstructor[PROTOTYPE] = null;
1465 // add "__proto__" for Object.getPrototypeOf polyfill
1466 result[IE_PROTO] = O;
1467 } else result = NullProtoObject();
1468 return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1469 };
1470
1471 var wellKnownSymbol$2 = wellKnownSymbol$7;
1472 var create = objectCreate;
1473 var definePropertyModule = objectDefineProperty;
1474
1475 var UNSCOPABLES = wellKnownSymbol$2('unscopables');
1476 var ArrayPrototype = Array.prototype;
1477
1478 // Array.prototype[@@unscopables]
1479 // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1480 if (ArrayPrototype[UNSCOPABLES] == undefined) {
1481 definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {
1482 configurable: true,
1483 value: create(null)
1484 });
1485 }
1486
1487 // add a key to Array.prototype[@@unscopables]
1488 var addToUnscopables$2 = function (key) {
1489 ArrayPrototype[UNSCOPABLES][key] = true;
1490 };
1491
1492 var $$2 = _export;
1493 var $find = arrayIteration.find;
1494 var addToUnscopables$1 = addToUnscopables$2;
1495
1496 var FIND = 'find';
1497 var SKIPS_HOLES = true;
1498
1499 // Shouldn't skip holes
1500 if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
1501
1502 // `Array.prototype.find` method
1503 // https://tc39.es/ecma262/#sec-array.prototype.find
1504 $$2({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
1505 find: function find(callbackfn /* , that = undefined */) {
1506 return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
1507 }
1508 });
1509
1510 // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1511 addToUnscopables$1(FIND);
1512
1513 var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
1514 var classof$2 = classof$4;
1515
1516 // `Object.prototype.toString` method implementation
1517 // https://tc39.es/ecma262/#sec-object.prototype.tostring
1518 var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
1519 return '[object ' + classof$2(this) + ']';
1520 };
1521
1522 var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1523 var defineBuiltIn = defineBuiltIn$2;
1524 var toString$2 = objectToString;
1525
1526 // `Object.prototype.toString` method
1527 // https://tc39.es/ecma262/#sec-object.prototype.tostring
1528 if (!TO_STRING_TAG_SUPPORT) {
1529 defineBuiltIn(Object.prototype, 'toString', toString$2, { unsafe: true });
1530 }
1531
1532 var $$1 = _export;
1533 var $includes = arrayIncludes.includes;
1534 var fails = fails$a;
1535 var addToUnscopables = addToUnscopables$2;
1536
1537 // FF99+ bug
1538 var BROKEN_ON_SPARSE = fails(function () {
1539 return !Array(1).includes();
1540 });
1541
1542 // `Array.prototype.includes` method
1543 // https://tc39.es/ecma262/#sec-array.prototype.includes
1544 $$1({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
1545 includes: function includes(el /* , fromIndex = 0 */) {
1546 return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
1547 }
1548 });
1549
1550 // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1551 addToUnscopables('includes');
1552
1553 var isObject = isObject$7;
1554 var classof$1 = classofRaw$1;
1555 var wellKnownSymbol$1 = wellKnownSymbol$7;
1556
1557 var MATCH$1 = wellKnownSymbol$1('match');
1558
1559 // `IsRegExp` abstract operation
1560 // https://tc39.es/ecma262/#sec-isregexp
1561 var isRegexp = function (it) {
1562 var isRegExp;
1563 return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$1(it) == 'RegExp');
1564 };
1565
1566 var global$2 = global$p;
1567 var isRegExp = isRegexp;
1568
1569 var TypeError$1 = global$2.TypeError;
1570
1571 var notARegexp = function (it) {
1572 if (isRegExp(it)) {
1573 throw TypeError$1("The method doesn't accept regular expressions");
1574 } return it;
1575 };
1576
1577 var global$1 = global$p;
1578 var classof = classof$4;
1579
1580 var String$1 = global$1.String;
1581
1582 var toString$1 = function (argument) {
1583 if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
1584 return String$1(argument);
1585 };
1586
1587 var wellKnownSymbol = wellKnownSymbol$7;
1588
1589 var MATCH = wellKnownSymbol('match');
1590
1591 var correctIsRegexpLogic = function (METHOD_NAME) {
1592 var regexp = /./;
1593 try {
1594 '/./'[METHOD_NAME](regexp);
1595 } catch (error1) {
1596 try {
1597 regexp[MATCH] = false;
1598 return '/./'[METHOD_NAME](regexp);
1599 } catch (error2) { /* empty */ }
1600 } return false;
1601 };
1602
1603 var $ = _export;
1604 var uncurryThis = functionUncurryThis;
1605 var notARegExp = notARegexp;
1606 var requireObjectCoercible = requireObjectCoercible$3;
1607 var toString = toString$1;
1608 var correctIsRegExpLogic = correctIsRegexpLogic;
1609
1610 var stringIndexOf = uncurryThis(''.indexOf);
1611
1612 // `String.prototype.includes` method
1613 // https://tc39.es/ecma262/#sec-string.prototype.includes
1614 $({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
1615 includes: function includes(searchString /* , position = 0 */) {
1616 return !!~stringIndexOf(
1617 toString(requireObjectCoercible(this)),
1618 toString(notARegExp(searchString)),
1619 arguments.length > 1 ? arguments[1] : undefined
1620 );
1621 }
1622 });
1623
1624 /**
1625 * @author Dustin Utecht
1626 * https://github.com/wenzhixin/bootstrap-table/
1627 */
1628
1629 $__default["default"].fn.bootstrapTable.theme = 'bootstrap-table';
1630
1631 $__default["default"].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
1632 _inherits(_class, _$$BootstrapTable);
1633
1634 var _super = _createSuper(_class);
1635
1636 function _class() {
1637 _classCallCheck(this, _class);
1638
1639 return _super.apply(this, arguments);
1640 }
1641
1642 _createClass(_class, [{
1643 key: "init",
1644 value: function init() {
1645 _get(_getPrototypeOf(_class.prototype), "init", this).call(this);
1646
1647 this.constants.classes.dropup = 'dropdown-menu-up';
1648 $__default["default"]('.modal').on('click', '[data-close]', function (e) {
1649 $__default["default"](e.delegateTarget).removeClass('show');
1650 });
1651 }
1652 }, {
1653 key: "initConstants",
1654 value: function initConstants() {
1655 _get(_getPrototypeOf(_class.prototype), "initConstants", this).call(this);
1656
1657 this.constants.html.inputGroup = '<div class="input-group">%s%s</div>';
1658 }
1659 }, {
1660 key: "initToolbar",
1661 value: function initToolbar() {
1662 _get(_getPrototypeOf(_class.prototype), "initToolbar", this).call(this);
1663
1664 this.handleToolbar();
1665 }
1666 }, {
1667 key: "handleToolbar",
1668 value: function handleToolbar() {
1669 if (this.$toolbar.find('.dropdown-toggle').length) {
1670 this._initDropdown();
1671 }
1672 }
1673 }, {
1674 key: "initPagination",
1675 value: function initPagination() {
1676 _get(_getPrototypeOf(_class.prototype), "initPagination", this).call(this);
1677
1678 if (this.options.pagination && this.paginationParts.includes('pageSize')) {
1679 this._initDropdown();
1680 }
1681 }
1682 }, {
1683 key: "_initDropdown",
1684 value: function _initDropdown() {
1685 var $dropdownToggles = $__default["default"]('.dropdown-toggle');
1686 $dropdownToggles.off('click').on('click', function (e) {
1687 var $target = $__default["default"](e.currentTarget);
1688
1689 if ($target.parents('.dropdown-toggle').length > 0) {
1690 $target = $target.parents('.dropdown-toggle');
1691 }
1692
1693 $target.next('.dropdown-menu').toggleClass('open');
1694 });
1695 $__default["default"](window).off('click').on('click', function (e) {
1696 var $dropdownToggles = $__default["default"]('.dropdown-toggle');
1697
1698 if ($__default["default"](e.target).parents('.dropdown-toggle, .dropdown-menu').length === 0 && !$__default["default"](e.target).hasClass('dropdown-toggle')) {
1699 $dropdownToggles.next('.dropdown-menu').removeClass('open');
1700 }
1701 });
1702 }
1703 }]);
1704
1705 return _class;
1706 }($__default["default"].BootstrapTable);
1707
1708}));