UNPKG

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