UNPKG

121 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 ($$9) { 'use strict';
6
7 function _classCallCheck(instance, Constructor) {
8 if (!(instance instanceof Constructor)) {
9 throw new TypeError("Cannot call a class as a function");
10 }
11 }
12 function _defineProperties(target, props) {
13 for (var i = 0; i < props.length; i++) {
14 var descriptor = props[i];
15 descriptor.enumerable = descriptor.enumerable || false;
16 descriptor.configurable = true;
17 if ("value" in descriptor) descriptor.writable = true;
18 Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
19 }
20 }
21 function _createClass(Constructor, protoProps, staticProps) {
22 if (protoProps) _defineProperties(Constructor.prototype, protoProps);
23 if (staticProps) _defineProperties(Constructor, staticProps);
24 Object.defineProperty(Constructor, "prototype", {
25 writable: false
26 });
27 return Constructor;
28 }
29 function _inherits(subClass, superClass) {
30 if (typeof superClass !== "function" && superClass !== null) {
31 throw new TypeError("Super expression must either be null or a function");
32 }
33 subClass.prototype = Object.create(superClass && superClass.prototype, {
34 constructor: {
35 value: subClass,
36 writable: true,
37 configurable: true
38 }
39 });
40 Object.defineProperty(subClass, "prototype", {
41 writable: false
42 });
43 if (superClass) _setPrototypeOf(subClass, superClass);
44 }
45 function _getPrototypeOf(o) {
46 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
47 return o.__proto__ || Object.getPrototypeOf(o);
48 };
49 return _getPrototypeOf(o);
50 }
51 function _setPrototypeOf(o, p) {
52 _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
53 o.__proto__ = p;
54 return o;
55 };
56 return _setPrototypeOf(o, p);
57 }
58 function _isNativeReflectConstruct() {
59 if (typeof Reflect === "undefined" || !Reflect.construct) return false;
60 if (Reflect.construct.sham) return false;
61 if (typeof Proxy === "function") return true;
62 try {
63 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
64 return true;
65 } catch (e) {
66 return false;
67 }
68 }
69 function _assertThisInitialized(self) {
70 if (self === void 0) {
71 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
72 }
73 return self;
74 }
75 function _possibleConstructorReturn(self, call) {
76 if (call && (typeof call === "object" || typeof call === "function")) {
77 return call;
78 } else if (call !== void 0) {
79 throw new TypeError("Derived constructors may only return object or undefined");
80 }
81 return _assertThisInitialized(self);
82 }
83 function _createSuper(Derived) {
84 var hasNativeReflectConstruct = _isNativeReflectConstruct();
85 return function _createSuperInternal() {
86 var Super = _getPrototypeOf(Derived),
87 result;
88 if (hasNativeReflectConstruct) {
89 var NewTarget = _getPrototypeOf(this).constructor;
90 result = Reflect.construct(Super, arguments, NewTarget);
91 } else {
92 result = Super.apply(this, arguments);
93 }
94 return _possibleConstructorReturn(this, result);
95 };
96 }
97 function _superPropBase(object, property) {
98 while (!Object.prototype.hasOwnProperty.call(object, property)) {
99 object = _getPrototypeOf(object);
100 if (object === null) break;
101 }
102 return object;
103 }
104 function _get() {
105 if (typeof Reflect !== "undefined" && Reflect.get) {
106 _get = Reflect.get.bind();
107 } else {
108 _get = function _get(target, property, receiver) {
109 var base = _superPropBase(target, property);
110 if (!base) return;
111 var desc = Object.getOwnPropertyDescriptor(base, property);
112 if (desc.get) {
113 return desc.get.call(arguments.length < 3 ? target : receiver);
114 }
115 return desc.value;
116 };
117 }
118 return _get.apply(this, arguments);
119 }
120 function _unsupportedIterableToArray(o, minLen) {
121 if (!o) return;
122 if (typeof o === "string") return _arrayLikeToArray(o, minLen);
123 var n = Object.prototype.toString.call(o).slice(8, -1);
124 if (n === "Object" && o.constructor) n = o.constructor.name;
125 if (n === "Map" || n === "Set") return Array.from(o);
126 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
127 }
128 function _arrayLikeToArray(arr, len) {
129 if (len == null || len > arr.length) len = arr.length;
130 for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
131 return arr2;
132 }
133 function _createForOfIteratorHelper(o, allowArrayLike) {
134 var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
135 if (!it) {
136 if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
137 if (it) o = it;
138 var i = 0;
139 var F = function () {};
140 return {
141 s: F,
142 n: function () {
143 if (i >= o.length) return {
144 done: true
145 };
146 return {
147 done: false,
148 value: o[i++]
149 };
150 },
151 e: function (e) {
152 throw e;
153 },
154 f: F
155 };
156 }
157 throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
158 }
159 var normalCompletion = true,
160 didErr = false,
161 err;
162 return {
163 s: function () {
164 it = it.call(o);
165 },
166 n: function () {
167 var step = it.next();
168 normalCompletion = step.done;
169 return step;
170 },
171 e: function (e) {
172 didErr = true;
173 err = e;
174 },
175 f: function () {
176 try {
177 if (!normalCompletion && it.return != null) it.return();
178 } finally {
179 if (didErr) throw err;
180 }
181 }
182 };
183 }
184 function _toPrimitive(input, hint) {
185 if (typeof input !== "object" || input === null) return input;
186 var prim = input[Symbol.toPrimitive];
187 if (prim !== undefined) {
188 var res = prim.call(input, hint || "default");
189 if (typeof res !== "object") return res;
190 throw new TypeError("@@toPrimitive must return a primitive value.");
191 }
192 return (hint === "string" ? String : Number)(input);
193 }
194 function _toPropertyKey(arg) {
195 var key = _toPrimitive(arg, "string");
196 return typeof key === "symbol" ? key : String(key);
197 }
198
199 var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
200
201 var check = function (it) {
202 return it && it.Math == Math && it;
203 };
204
205 // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
206 var global$e =
207 // eslint-disable-next-line es/no-global-this -- safe
208 check(typeof globalThis == 'object' && globalThis) ||
209 check(typeof window == 'object' && window) ||
210 // eslint-disable-next-line no-restricted-globals -- safe
211 check(typeof self == 'object' && self) ||
212 check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
213 // eslint-disable-next-line no-new-func -- fallback
214 (function () { return this; })() || Function('return this')();
215
216 var objectGetOwnPropertyDescriptor = {};
217
218 var fails$k = function (exec) {
219 try {
220 return !!exec();
221 } catch (error) {
222 return true;
223 }
224 };
225
226 var fails$j = fails$k;
227
228 // Detect IE8's incomplete defineProperty implementation
229 var descriptors = !fails$j(function () {
230 // eslint-disable-next-line es/no-object-defineproperty -- required for testing
231 return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
232 });
233
234 var fails$i = fails$k;
235
236 var functionBindNative = !fails$i(function () {
237 // eslint-disable-next-line es/no-function-prototype-bind -- safe
238 var test = (function () { /* empty */ }).bind();
239 // eslint-disable-next-line no-prototype-builtins -- safe
240 return typeof test != 'function' || test.hasOwnProperty('prototype');
241 });
242
243 var NATIVE_BIND$3 = functionBindNative;
244
245 var call$b = Function.prototype.call;
246
247 var functionCall = NATIVE_BIND$3 ? call$b.bind(call$b) : function () {
248 return call$b.apply(call$b, arguments);
249 };
250
251 var objectPropertyIsEnumerable = {};
252
253 var $propertyIsEnumerable = {}.propertyIsEnumerable;
254 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
255 var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
256
257 // Nashorn ~ JDK8 bug
258 var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
259
260 // `Object.prototype.propertyIsEnumerable` method implementation
261 // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
262 objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
263 var descriptor = getOwnPropertyDescriptor$1(this, V);
264 return !!descriptor && descriptor.enumerable;
265 } : $propertyIsEnumerable;
266
267 var createPropertyDescriptor$3 = function (bitmap, value) {
268 return {
269 enumerable: !(bitmap & 1),
270 configurable: !(bitmap & 2),
271 writable: !(bitmap & 4),
272 value: value
273 };
274 };
275
276 var NATIVE_BIND$2 = functionBindNative;
277
278 var FunctionPrototype$2 = Function.prototype;
279 var call$a = FunctionPrototype$2.call;
280 var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$a, call$a);
281
282 var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
283 return function () {
284 return call$a.apply(fn, arguments);
285 };
286 };
287
288 var uncurryThis$k = functionUncurryThis;
289
290 var toString$8 = uncurryThis$k({}.toString);
291 var stringSlice$5 = uncurryThis$k(''.slice);
292
293 var classofRaw$2 = function (it) {
294 return stringSlice$5(toString$8(it), 8, -1);
295 };
296
297 var uncurryThis$j = functionUncurryThis;
298 var fails$h = fails$k;
299 var classof$7 = classofRaw$2;
300
301 var $Object$3 = Object;
302 var split = uncurryThis$j(''.split);
303
304 // fallback for non-array-like ES3 and non-enumerable old V8 strings
305 var indexedObject = fails$h(function () {
306 // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
307 // eslint-disable-next-line no-prototype-builtins -- safe
308 return !$Object$3('z').propertyIsEnumerable(0);
309 }) ? function (it) {
310 return classof$7(it) == 'String' ? split(it, '') : $Object$3(it);
311 } : $Object$3;
312
313 // we can't use just `it == null` since of `document.all` special case
314 // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
315 var isNullOrUndefined$4 = function (it) {
316 return it === null || it === undefined;
317 };
318
319 var isNullOrUndefined$3 = isNullOrUndefined$4;
320
321 var $TypeError$8 = TypeError;
322
323 // `RequireObjectCoercible` abstract operation
324 // https://tc39.es/ecma262/#sec-requireobjectcoercible
325 var requireObjectCoercible$6 = function (it) {
326 if (isNullOrUndefined$3(it)) throw $TypeError$8("Can't call method on " + it);
327 return it;
328 };
329
330 // toObject with fallback for non-array-like ES3 strings
331 var IndexedObject$3 = indexedObject;
332 var requireObjectCoercible$5 = requireObjectCoercible$6;
333
334 var toIndexedObject$5 = function (it) {
335 return IndexedObject$3(requireObjectCoercible$5(it));
336 };
337
338 var documentAll$2 = typeof document == 'object' && document.all;
339
340 // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
341 // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
342 var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
343
344 var documentAll_1 = {
345 all: documentAll$2,
346 IS_HTMLDDA: IS_HTMLDDA
347 };
348
349 var $documentAll$1 = documentAll_1;
350
351 var documentAll$1 = $documentAll$1.all;
352
353 // `IsCallable` abstract operation
354 // https://tc39.es/ecma262/#sec-iscallable
355 var isCallable$e = $documentAll$1.IS_HTMLDDA ? function (argument) {
356 return typeof argument == 'function' || argument === documentAll$1;
357 } : function (argument) {
358 return typeof argument == 'function';
359 };
360
361 var isCallable$d = isCallable$e;
362 var $documentAll = documentAll_1;
363
364 var documentAll = $documentAll.all;
365
366 var isObject$8 = $documentAll.IS_HTMLDDA ? function (it) {
367 return typeof it == 'object' ? it !== null : isCallable$d(it) || it === documentAll;
368 } : function (it) {
369 return typeof it == 'object' ? it !== null : isCallable$d(it);
370 };
371
372 var global$d = global$e;
373 var isCallable$c = isCallable$e;
374
375 var aFunction = function (argument) {
376 return isCallable$c(argument) ? argument : undefined;
377 };
378
379 var getBuiltIn$4 = function (namespace, method) {
380 return arguments.length < 2 ? aFunction(global$d[namespace]) : global$d[namespace] && global$d[namespace][method];
381 };
382
383 var uncurryThis$i = functionUncurryThis;
384
385 var objectIsPrototypeOf = uncurryThis$i({}.isPrototypeOf);
386
387 var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
388
389 var global$c = global$e;
390 var userAgent = engineUserAgent;
391
392 var process = global$c.process;
393 var Deno = global$c.Deno;
394 var versions = process && process.versions || Deno && Deno.version;
395 var v8 = versions && versions.v8;
396 var match, version;
397
398 if (v8) {
399 match = v8.split('.');
400 // in old Chrome, versions of V8 isn't V8 = Chrome / 10
401 // but their correct versions are not interesting for us
402 version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
403 }
404
405 // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
406 // so check `userAgent` even if `.v8` exists, but 0
407 if (!version && userAgent) {
408 match = userAgent.match(/Edge\/(\d+)/);
409 if (!match || match[1] >= 74) {
410 match = userAgent.match(/Chrome\/(\d+)/);
411 if (match) version = +match[1];
412 }
413 }
414
415 var engineV8Version = version;
416
417 /* eslint-disable es/no-symbol -- required for testing */
418
419 var V8_VERSION$2 = engineV8Version;
420 var fails$g = fails$k;
421
422 // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
423 var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$g(function () {
424 var symbol = Symbol();
425 // Chrome 38 Symbol has incorrect toString conversion
426 // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
427 return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
428 // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
429 !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
430 });
431
432 /* eslint-disable es/no-symbol -- required for testing */
433
434 var NATIVE_SYMBOL$1 = symbolConstructorDetection;
435
436 var useSymbolAsUid = NATIVE_SYMBOL$1
437 && !Symbol.sham
438 && typeof Symbol.iterator == 'symbol';
439
440 var getBuiltIn$3 = getBuiltIn$4;
441 var isCallable$b = isCallable$e;
442 var isPrototypeOf$1 = objectIsPrototypeOf;
443 var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
444
445 var $Object$2 = Object;
446
447 var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
448 return typeof it == 'symbol';
449 } : function (it) {
450 var $Symbol = getBuiltIn$3('Symbol');
451 return isCallable$b($Symbol) && isPrototypeOf$1($Symbol.prototype, $Object$2(it));
452 };
453
454 var $String$3 = String;
455
456 var tryToString$1 = function (argument) {
457 try {
458 return $String$3(argument);
459 } catch (error) {
460 return 'Object';
461 }
462 };
463
464 var isCallable$a = isCallable$e;
465 var tryToString = tryToString$1;
466
467 var $TypeError$7 = TypeError;
468
469 // `Assert: IsCallable(argument) is true`
470 var aCallable$2 = function (argument) {
471 if (isCallable$a(argument)) return argument;
472 throw $TypeError$7(tryToString(argument) + ' is not a function');
473 };
474
475 var aCallable$1 = aCallable$2;
476 var isNullOrUndefined$2 = isNullOrUndefined$4;
477
478 // `GetMethod` abstract operation
479 // https://tc39.es/ecma262/#sec-getmethod
480 var getMethod$3 = function (V, P) {
481 var func = V[P];
482 return isNullOrUndefined$2(func) ? undefined : aCallable$1(func);
483 };
484
485 var call$9 = functionCall;
486 var isCallable$9 = isCallable$e;
487 var isObject$7 = isObject$8;
488
489 var $TypeError$6 = TypeError;
490
491 // `OrdinaryToPrimitive` abstract operation
492 // https://tc39.es/ecma262/#sec-ordinarytoprimitive
493 var ordinaryToPrimitive$1 = function (input, pref) {
494 var fn, val;
495 if (pref === 'string' && isCallable$9(fn = input.toString) && !isObject$7(val = call$9(fn, input))) return val;
496 if (isCallable$9(fn = input.valueOf) && !isObject$7(val = call$9(fn, input))) return val;
497 if (pref !== 'string' && isCallable$9(fn = input.toString) && !isObject$7(val = call$9(fn, input))) return val;
498 throw $TypeError$6("Can't convert object to primitive value");
499 };
500
501 var sharedExports = {};
502 var shared$4 = {
503 get exports(){ return sharedExports; },
504 set exports(v){ sharedExports = v; },
505 };
506
507 var global$b = global$e;
508
509 // eslint-disable-next-line es/no-object-defineproperty -- safe
510 var defineProperty$3 = Object.defineProperty;
511
512 var defineGlobalProperty$3 = function (key, value) {
513 try {
514 defineProperty$3(global$b, key, { value: value, configurable: true, writable: true });
515 } catch (error) {
516 global$b[key] = value;
517 } return value;
518 };
519
520 var global$a = global$e;
521 var defineGlobalProperty$2 = defineGlobalProperty$3;
522
523 var SHARED = '__core-js_shared__';
524 var store$3 = global$a[SHARED] || defineGlobalProperty$2(SHARED, {});
525
526 var sharedStore = store$3;
527
528 var store$2 = sharedStore;
529
530 (shared$4.exports = function (key, value) {
531 return store$2[key] || (store$2[key] = value !== undefined ? value : {});
532 })('versions', []).push({
533 version: '3.29.0',
534 mode: 'global',
535 copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
536 license: 'https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE',
537 source: 'https://github.com/zloirock/core-js'
538 });
539
540 var requireObjectCoercible$4 = requireObjectCoercible$6;
541
542 var $Object$1 = Object;
543
544 // `ToObject` abstract operation
545 // https://tc39.es/ecma262/#sec-toobject
546 var toObject$5 = function (argument) {
547 return $Object$1(requireObjectCoercible$4(argument));
548 };
549
550 var uncurryThis$h = functionUncurryThis;
551 var toObject$4 = toObject$5;
552
553 var hasOwnProperty = uncurryThis$h({}.hasOwnProperty);
554
555 // `HasOwnProperty` abstract operation
556 // https://tc39.es/ecma262/#sec-hasownproperty
557 // eslint-disable-next-line es/no-object-hasown -- safe
558 var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
559 return hasOwnProperty(toObject$4(it), key);
560 };
561
562 var uncurryThis$g = functionUncurryThis;
563
564 var id = 0;
565 var postfix = Math.random();
566 var toString$7 = uncurryThis$g(1.0.toString);
567
568 var uid$2 = function (key) {
569 return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$7(++id + postfix, 36);
570 };
571
572 var global$9 = global$e;
573 var shared$3 = sharedExports;
574 var hasOwn$7 = hasOwnProperty_1;
575 var uid$1 = uid$2;
576 var NATIVE_SYMBOL = symbolConstructorDetection;
577 var USE_SYMBOL_AS_UID = useSymbolAsUid;
578
579 var Symbol$1 = global$9.Symbol;
580 var WellKnownSymbolsStore = shared$3('wks');
581 var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
582
583 var wellKnownSymbol$b = function (name) {
584 if (!hasOwn$7(WellKnownSymbolsStore, name)) {
585 WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$7(Symbol$1, name)
586 ? Symbol$1[name]
587 : createWellKnownSymbol('Symbol.' + name);
588 } return WellKnownSymbolsStore[name];
589 };
590
591 var call$8 = functionCall;
592 var isObject$6 = isObject$8;
593 var isSymbol$1 = isSymbol$2;
594 var getMethod$2 = getMethod$3;
595 var ordinaryToPrimitive = ordinaryToPrimitive$1;
596 var wellKnownSymbol$a = wellKnownSymbol$b;
597
598 var $TypeError$5 = TypeError;
599 var TO_PRIMITIVE = wellKnownSymbol$a('toPrimitive');
600
601 // `ToPrimitive` abstract operation
602 // https://tc39.es/ecma262/#sec-toprimitive
603 var toPrimitive$1 = function (input, pref) {
604 if (!isObject$6(input) || isSymbol$1(input)) return input;
605 var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
606 var result;
607 if (exoticToPrim) {
608 if (pref === undefined) pref = 'default';
609 result = call$8(exoticToPrim, input, pref);
610 if (!isObject$6(result) || isSymbol$1(result)) return result;
611 throw $TypeError$5("Can't convert object to primitive value");
612 }
613 if (pref === undefined) pref = 'number';
614 return ordinaryToPrimitive(input, pref);
615 };
616
617 var toPrimitive = toPrimitive$1;
618 var isSymbol = isSymbol$2;
619
620 // `ToPropertyKey` abstract operation
621 // https://tc39.es/ecma262/#sec-topropertykey
622 var toPropertyKey$3 = function (argument) {
623 var key = toPrimitive(argument, 'string');
624 return isSymbol(key) ? key : key + '';
625 };
626
627 var global$8 = global$e;
628 var isObject$5 = isObject$8;
629
630 var document$1 = global$8.document;
631 // typeof document.createElement is 'object' in old IE
632 var EXISTS$1 = isObject$5(document$1) && isObject$5(document$1.createElement);
633
634 var documentCreateElement$2 = function (it) {
635 return EXISTS$1 ? document$1.createElement(it) : {};
636 };
637
638 var DESCRIPTORS$8 = descriptors;
639 var fails$f = fails$k;
640 var createElement = documentCreateElement$2;
641
642 // Thanks to IE8 for its funny defineProperty
643 var ie8DomDefine = !DESCRIPTORS$8 && !fails$f(function () {
644 // eslint-disable-next-line es/no-object-defineproperty -- required for testing
645 return Object.defineProperty(createElement('div'), 'a', {
646 get: function () { return 7; }
647 }).a != 7;
648 });
649
650 var DESCRIPTORS$7 = descriptors;
651 var call$7 = functionCall;
652 var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
653 var createPropertyDescriptor$2 = createPropertyDescriptor$3;
654 var toIndexedObject$4 = toIndexedObject$5;
655 var toPropertyKey$2 = toPropertyKey$3;
656 var hasOwn$6 = hasOwnProperty_1;
657 var IE8_DOM_DEFINE$1 = ie8DomDefine;
658
659 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
660 var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
661
662 // `Object.getOwnPropertyDescriptor` method
663 // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
664 objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
665 O = toIndexedObject$4(O);
666 P = toPropertyKey$2(P);
667 if (IE8_DOM_DEFINE$1) try {
668 return $getOwnPropertyDescriptor$1(O, P);
669 } catch (error) { /* empty */ }
670 if (hasOwn$6(O, P)) return createPropertyDescriptor$2(!call$7(propertyIsEnumerableModule$1.f, O, P), O[P]);
671 };
672
673 var objectDefineProperty = {};
674
675 var DESCRIPTORS$6 = descriptors;
676 var fails$e = fails$k;
677
678 // V8 ~ Chrome 36-
679 // https://bugs.chromium.org/p/v8/issues/detail?id=3334
680 var v8PrototypeDefineBug = DESCRIPTORS$6 && fails$e(function () {
681 // eslint-disable-next-line es/no-object-defineproperty -- required for testing
682 return Object.defineProperty(function () { /* empty */ }, 'prototype', {
683 value: 42,
684 writable: false
685 }).prototype != 42;
686 });
687
688 var isObject$4 = isObject$8;
689
690 var $String$2 = String;
691 var $TypeError$4 = TypeError;
692
693 // `Assert: Type(argument) is Object`
694 var anObject$9 = function (argument) {
695 if (isObject$4(argument)) return argument;
696 throw $TypeError$4($String$2(argument) + ' is not an object');
697 };
698
699 var DESCRIPTORS$5 = descriptors;
700 var IE8_DOM_DEFINE = ie8DomDefine;
701 var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
702 var anObject$8 = anObject$9;
703 var toPropertyKey$1 = toPropertyKey$3;
704
705 var $TypeError$3 = TypeError;
706 // eslint-disable-next-line es/no-object-defineproperty -- safe
707 var $defineProperty = Object.defineProperty;
708 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
709 var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
710 var ENUMERABLE = 'enumerable';
711 var CONFIGURABLE$1 = 'configurable';
712 var WRITABLE = 'writable';
713
714 // `Object.defineProperty` method
715 // https://tc39.es/ecma262/#sec-object.defineproperty
716 objectDefineProperty.f = DESCRIPTORS$5 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
717 anObject$8(O);
718 P = toPropertyKey$1(P);
719 anObject$8(Attributes);
720 if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
721 var current = $getOwnPropertyDescriptor(O, P);
722 if (current && current[WRITABLE]) {
723 O[P] = Attributes.value;
724 Attributes = {
725 configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
726 enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
727 writable: false
728 };
729 }
730 } return $defineProperty(O, P, Attributes);
731 } : $defineProperty : function defineProperty(O, P, Attributes) {
732 anObject$8(O);
733 P = toPropertyKey$1(P);
734 anObject$8(Attributes);
735 if (IE8_DOM_DEFINE) try {
736 return $defineProperty(O, P, Attributes);
737 } catch (error) { /* empty */ }
738 if ('get' in Attributes || 'set' in Attributes) throw $TypeError$3('Accessors not supported');
739 if ('value' in Attributes) O[P] = Attributes.value;
740 return O;
741 };
742
743 var DESCRIPTORS$4 = descriptors;
744 var definePropertyModule$4 = objectDefineProperty;
745 var createPropertyDescriptor$1 = createPropertyDescriptor$3;
746
747 var createNonEnumerableProperty$4 = DESCRIPTORS$4 ? function (object, key, value) {
748 return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
749 } : function (object, key, value) {
750 object[key] = value;
751 return object;
752 };
753
754 var makeBuiltInExports = {};
755 var makeBuiltIn$2 = {
756 get exports(){ return makeBuiltInExports; },
757 set exports(v){ makeBuiltInExports = v; },
758 };
759
760 var DESCRIPTORS$3 = descriptors;
761 var hasOwn$5 = hasOwnProperty_1;
762
763 var FunctionPrototype$1 = Function.prototype;
764 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
765 var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
766
767 var EXISTS = hasOwn$5(FunctionPrototype$1, 'name');
768 // additional protection from minified / mangled / dropped function names
769 var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
770 var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype$1, 'name').configurable));
771
772 var functionName = {
773 EXISTS: EXISTS,
774 PROPER: PROPER,
775 CONFIGURABLE: CONFIGURABLE
776 };
777
778 var uncurryThis$f = functionUncurryThis;
779 var isCallable$8 = isCallable$e;
780 var store$1 = sharedStore;
781
782 var functionToString = uncurryThis$f(Function.toString);
783
784 // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
785 if (!isCallable$8(store$1.inspectSource)) {
786 store$1.inspectSource = function (it) {
787 return functionToString(it);
788 };
789 }
790
791 var inspectSource$2 = store$1.inspectSource;
792
793 var global$7 = global$e;
794 var isCallable$7 = isCallable$e;
795
796 var WeakMap$1 = global$7.WeakMap;
797
798 var weakMapBasicDetection = isCallable$7(WeakMap$1) && /native code/.test(String(WeakMap$1));
799
800 var shared$2 = sharedExports;
801 var uid = uid$2;
802
803 var keys = shared$2('keys');
804
805 var sharedKey$2 = function (key) {
806 return keys[key] || (keys[key] = uid(key));
807 };
808
809 var hiddenKeys$4 = {};
810
811 var NATIVE_WEAK_MAP = weakMapBasicDetection;
812 var global$6 = global$e;
813 var isObject$3 = isObject$8;
814 var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
815 var hasOwn$4 = hasOwnProperty_1;
816 var shared$1 = sharedStore;
817 var sharedKey$1 = sharedKey$2;
818 var hiddenKeys$3 = hiddenKeys$4;
819
820 var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
821 var TypeError$1 = global$6.TypeError;
822 var WeakMap = global$6.WeakMap;
823 var set, get, has;
824
825 var enforce = function (it) {
826 return has(it) ? get(it) : set(it, {});
827 };
828
829 var getterFor = function (TYPE) {
830 return function (it) {
831 var state;
832 if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
833 throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
834 } return state;
835 };
836 };
837
838 if (NATIVE_WEAK_MAP || shared$1.state) {
839 var store = shared$1.state || (shared$1.state = new WeakMap());
840 /* eslint-disable no-self-assign -- prototype methods protection */
841 store.get = store.get;
842 store.has = store.has;
843 store.set = store.set;
844 /* eslint-enable no-self-assign -- prototype methods protection */
845 set = function (it, metadata) {
846 if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
847 metadata.facade = it;
848 store.set(it, metadata);
849 return metadata;
850 };
851 get = function (it) {
852 return store.get(it) || {};
853 };
854 has = function (it) {
855 return store.has(it);
856 };
857 } else {
858 var STATE = sharedKey$1('state');
859 hiddenKeys$3[STATE] = true;
860 set = function (it, metadata) {
861 if (hasOwn$4(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
862 metadata.facade = it;
863 createNonEnumerableProperty$3(it, STATE, metadata);
864 return metadata;
865 };
866 get = function (it) {
867 return hasOwn$4(it, STATE) ? it[STATE] : {};
868 };
869 has = function (it) {
870 return hasOwn$4(it, STATE);
871 };
872 }
873
874 var internalState = {
875 set: set,
876 get: get,
877 has: has,
878 enforce: enforce,
879 getterFor: getterFor
880 };
881
882 var uncurryThis$e = functionUncurryThis;
883 var fails$d = fails$k;
884 var isCallable$6 = isCallable$e;
885 var hasOwn$3 = hasOwnProperty_1;
886 var DESCRIPTORS$2 = descriptors;
887 var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
888 var inspectSource$1 = inspectSource$2;
889 var InternalStateModule = internalState;
890
891 var enforceInternalState = InternalStateModule.enforce;
892 var getInternalState$1 = InternalStateModule.get;
893 var $String$1 = String;
894 // eslint-disable-next-line es/no-object-defineproperty -- safe
895 var defineProperty$2 = Object.defineProperty;
896 var stringSlice$4 = uncurryThis$e(''.slice);
897 var replace$2 = uncurryThis$e(''.replace);
898 var join = uncurryThis$e([].join);
899
900 var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$d(function () {
901 return defineProperty$2(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
902 });
903
904 var TEMPLATE = String(String).split('String');
905
906 var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
907 if (stringSlice$4($String$1(name), 0, 7) === 'Symbol(') {
908 name = '[' + replace$2($String$1(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
909 }
910 if (options && options.getter) name = 'get ' + name;
911 if (options && options.setter) name = 'set ' + name;
912 if (!hasOwn$3(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
913 if (DESCRIPTORS$2) defineProperty$2(value, 'name', { value: name, configurable: true });
914 else value.name = name;
915 }
916 if (CONFIGURABLE_LENGTH && options && hasOwn$3(options, 'arity') && value.length !== options.arity) {
917 defineProperty$2(value, 'length', { value: options.arity });
918 }
919 try {
920 if (options && hasOwn$3(options, 'constructor') && options.constructor) {
921 if (DESCRIPTORS$2) defineProperty$2(value, 'prototype', { writable: false });
922 // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
923 } else if (value.prototype) value.prototype = undefined;
924 } catch (error) { /* empty */ }
925 var state = enforceInternalState(value);
926 if (!hasOwn$3(state, 'source')) {
927 state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
928 } return value;
929 };
930
931 // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
932 // eslint-disable-next-line no-extend-native -- required
933 Function.prototype.toString = makeBuiltIn$1(function toString() {
934 return isCallable$6(this) && getInternalState$1(this).source || inspectSource$1(this);
935 }, 'toString');
936
937 var isCallable$5 = isCallable$e;
938 var definePropertyModule$3 = objectDefineProperty;
939 var makeBuiltIn = makeBuiltInExports;
940 var defineGlobalProperty$1 = defineGlobalProperty$3;
941
942 var defineBuiltIn$4 = function (O, key, value, options) {
943 if (!options) options = {};
944 var simple = options.enumerable;
945 var name = options.name !== undefined ? options.name : key;
946 if (isCallable$5(value)) makeBuiltIn(value, name, options);
947 if (options.global) {
948 if (simple) O[key] = value;
949 else defineGlobalProperty$1(key, value);
950 } else {
951 try {
952 if (!options.unsafe) delete O[key];
953 else if (O[key]) simple = true;
954 } catch (error) { /* empty */ }
955 if (simple) O[key] = value;
956 else definePropertyModule$3.f(O, key, {
957 value: value,
958 enumerable: false,
959 configurable: !options.nonConfigurable,
960 writable: !options.nonWritable
961 });
962 } return O;
963 };
964
965 var objectGetOwnPropertyNames = {};
966
967 var ceil = Math.ceil;
968 var floor$1 = Math.floor;
969
970 // `Math.trunc` method
971 // https://tc39.es/ecma262/#sec-math.trunc
972 // eslint-disable-next-line es/no-math-trunc -- safe
973 var mathTrunc = Math.trunc || function trunc(x) {
974 var n = +x;
975 return (n > 0 ? floor$1 : ceil)(n);
976 };
977
978 var trunc = mathTrunc;
979
980 // `ToIntegerOrInfinity` abstract operation
981 // https://tc39.es/ecma262/#sec-tointegerorinfinity
982 var toIntegerOrInfinity$4 = function (argument) {
983 var number = +argument;
984 // eslint-disable-next-line no-self-compare -- NaN check
985 return number !== number || number === 0 ? 0 : trunc(number);
986 };
987
988 var toIntegerOrInfinity$3 = toIntegerOrInfinity$4;
989
990 var max$1 = Math.max;
991 var min$2 = Math.min;
992
993 // Helper for a popular repeating case of the spec:
994 // Let integer be ? ToInteger(index).
995 // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
996 var toAbsoluteIndex$1 = function (index, length) {
997 var integer = toIntegerOrInfinity$3(index);
998 return integer < 0 ? max$1(integer + length, 0) : min$2(integer, length);
999 };
1000
1001 var toIntegerOrInfinity$2 = toIntegerOrInfinity$4;
1002
1003 var min$1 = Math.min;
1004
1005 // `ToLength` abstract operation
1006 // https://tc39.es/ecma262/#sec-tolength
1007 var toLength$2 = function (argument) {
1008 return argument > 0 ? min$1(toIntegerOrInfinity$2(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
1009 };
1010
1011 var toLength$1 = toLength$2;
1012
1013 // `LengthOfArrayLike` abstract operation
1014 // https://tc39.es/ecma262/#sec-lengthofarraylike
1015 var lengthOfArrayLike$3 = function (obj) {
1016 return toLength$1(obj.length);
1017 };
1018
1019 var toIndexedObject$3 = toIndexedObject$5;
1020 var toAbsoluteIndex = toAbsoluteIndex$1;
1021 var lengthOfArrayLike$2 = lengthOfArrayLike$3;
1022
1023 // `Array.prototype.{ indexOf, includes }` methods implementation
1024 var createMethod$2 = function (IS_INCLUDES) {
1025 return function ($this, el, fromIndex) {
1026 var O = toIndexedObject$3($this);
1027 var length = lengthOfArrayLike$2(O);
1028 var index = toAbsoluteIndex(fromIndex, length);
1029 var value;
1030 // Array#includes uses SameValueZero equality algorithm
1031 // eslint-disable-next-line no-self-compare -- NaN check
1032 if (IS_INCLUDES && el != el) while (length > index) {
1033 value = O[index++];
1034 // eslint-disable-next-line no-self-compare -- NaN check
1035 if (value != value) return true;
1036 // Array#indexOf ignores holes, Array#includes - not
1037 } else for (;length > index; index++) {
1038 if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
1039 } return !IS_INCLUDES && -1;
1040 };
1041 };
1042
1043 var arrayIncludes = {
1044 // `Array.prototype.includes` method
1045 // https://tc39.es/ecma262/#sec-array.prototype.includes
1046 includes: createMethod$2(true),
1047 // `Array.prototype.indexOf` method
1048 // https://tc39.es/ecma262/#sec-array.prototype.indexof
1049 indexOf: createMethod$2(false)
1050 };
1051
1052 var uncurryThis$d = functionUncurryThis;
1053 var hasOwn$2 = hasOwnProperty_1;
1054 var toIndexedObject$2 = toIndexedObject$5;
1055 var indexOf$1 = arrayIncludes.indexOf;
1056 var hiddenKeys$2 = hiddenKeys$4;
1057
1058 var push$2 = uncurryThis$d([].push);
1059
1060 var objectKeysInternal = function (object, names) {
1061 var O = toIndexedObject$2(object);
1062 var i = 0;
1063 var result = [];
1064 var key;
1065 for (key in O) !hasOwn$2(hiddenKeys$2, key) && hasOwn$2(O, key) && push$2(result, key);
1066 // Don't enum bug & hidden keys
1067 while (names.length > i) if (hasOwn$2(O, key = names[i++])) {
1068 ~indexOf$1(result, key) || push$2(result, key);
1069 }
1070 return result;
1071 };
1072
1073 // IE8- don't enum bug keys
1074 var enumBugKeys$3 = [
1075 'constructor',
1076 'hasOwnProperty',
1077 'isPrototypeOf',
1078 'propertyIsEnumerable',
1079 'toLocaleString',
1080 'toString',
1081 'valueOf'
1082 ];
1083
1084 var internalObjectKeys$1 = objectKeysInternal;
1085 var enumBugKeys$2 = enumBugKeys$3;
1086
1087 var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
1088
1089 // `Object.getOwnPropertyNames` method
1090 // https://tc39.es/ecma262/#sec-object.getownpropertynames
1091 // eslint-disable-next-line es/no-object-getownpropertynames -- safe
1092 objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1093 return internalObjectKeys$1(O, hiddenKeys$1);
1094 };
1095
1096 var objectGetOwnPropertySymbols = {};
1097
1098 // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
1099 objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1100
1101 var getBuiltIn$2 = getBuiltIn$4;
1102 var uncurryThis$c = functionUncurryThis;
1103 var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1104 var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1105 var anObject$7 = anObject$9;
1106
1107 var concat$2 = uncurryThis$c([].concat);
1108
1109 // all object keys, includes non-enumerable and symbols
1110 var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
1111 var keys = getOwnPropertyNamesModule.f(anObject$7(it));
1112 var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
1113 return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
1114 };
1115
1116 var hasOwn$1 = hasOwnProperty_1;
1117 var ownKeys = ownKeys$1;
1118 var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1119 var definePropertyModule$2 = objectDefineProperty;
1120
1121 var copyConstructorProperties$1 = function (target, source, exceptions) {
1122 var keys = ownKeys(source);
1123 var defineProperty = definePropertyModule$2.f;
1124 var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1125 for (var i = 0; i < keys.length; i++) {
1126 var key = keys[i];
1127 if (!hasOwn$1(target, key) && !(exceptions && hasOwn$1(exceptions, key))) {
1128 defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1129 }
1130 }
1131 };
1132
1133 var fails$c = fails$k;
1134 var isCallable$4 = isCallable$e;
1135
1136 var replacement = /#|\.prototype\./;
1137
1138 var isForced$1 = function (feature, detection) {
1139 var value = data[normalize(feature)];
1140 return value == POLYFILL ? true
1141 : value == NATIVE ? false
1142 : isCallable$4(detection) ? fails$c(detection)
1143 : !!detection;
1144 };
1145
1146 var normalize = isForced$1.normalize = function (string) {
1147 return String(string).replace(replacement, '.').toLowerCase();
1148 };
1149
1150 var data = isForced$1.data = {};
1151 var NATIVE = isForced$1.NATIVE = 'N';
1152 var POLYFILL = isForced$1.POLYFILL = 'P';
1153
1154 var isForced_1 = isForced$1;
1155
1156 var global$5 = global$e;
1157 var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1158 var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
1159 var defineBuiltIn$3 = defineBuiltIn$4;
1160 var defineGlobalProperty = defineGlobalProperty$3;
1161 var copyConstructorProperties = copyConstructorProperties$1;
1162 var isForced = isForced_1;
1163
1164 /*
1165 options.target - name of the target object
1166 options.global - target is the global object
1167 options.stat - export as static methods of target
1168 options.proto - export as prototype methods of target
1169 options.real - real prototype method for the `pure` version
1170 options.forced - export even if the native feature is available
1171 options.bind - bind methods to the target, required for the `pure` version
1172 options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
1173 options.unsafe - use the simple assignment of property instead of delete + defineProperty
1174 options.sham - add a flag to not completely full polyfills
1175 options.enumerable - export as enumerable property
1176 options.dontCallGetSet - prevent calling a getter on target
1177 options.name - the .name of the function if it does not match the key
1178 */
1179 var _export = function (options, source) {
1180 var TARGET = options.target;
1181 var GLOBAL = options.global;
1182 var STATIC = options.stat;
1183 var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1184 if (GLOBAL) {
1185 target = global$5;
1186 } else if (STATIC) {
1187 target = global$5[TARGET] || defineGlobalProperty(TARGET, {});
1188 } else {
1189 target = (global$5[TARGET] || {}).prototype;
1190 }
1191 if (target) for (key in source) {
1192 sourceProperty = source[key];
1193 if (options.dontCallGetSet) {
1194 descriptor = getOwnPropertyDescriptor(target, key);
1195 targetProperty = descriptor && descriptor.value;
1196 } else targetProperty = target[key];
1197 FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1198 // contained in target
1199 if (!FORCED && targetProperty !== undefined) {
1200 if (typeof sourceProperty == typeof targetProperty) continue;
1201 copyConstructorProperties(sourceProperty, targetProperty);
1202 }
1203 // add a flag to not completely full polyfills
1204 if (options.sham || (targetProperty && targetProperty.sham)) {
1205 createNonEnumerableProperty$2(sourceProperty, 'sham', true);
1206 }
1207 defineBuiltIn$3(target, key, sourceProperty, options);
1208 }
1209 };
1210
1211 var objectDefineProperties = {};
1212
1213 var internalObjectKeys = objectKeysInternal;
1214 var enumBugKeys$1 = enumBugKeys$3;
1215
1216 // `Object.keys` method
1217 // https://tc39.es/ecma262/#sec-object.keys
1218 // eslint-disable-next-line es/no-object-keys -- safe
1219 var objectKeys$2 = Object.keys || function keys(O) {
1220 return internalObjectKeys(O, enumBugKeys$1);
1221 };
1222
1223 var DESCRIPTORS$1 = descriptors;
1224 var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1225 var definePropertyModule$1 = objectDefineProperty;
1226 var anObject$6 = anObject$9;
1227 var toIndexedObject$1 = toIndexedObject$5;
1228 var objectKeys$1 = objectKeys$2;
1229
1230 // `Object.defineProperties` method
1231 // https://tc39.es/ecma262/#sec-object.defineproperties
1232 // eslint-disable-next-line es/no-object-defineproperties -- safe
1233 objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1234 anObject$6(O);
1235 var props = toIndexedObject$1(Properties);
1236 var keys = objectKeys$1(Properties);
1237 var length = keys.length;
1238 var index = 0;
1239 var key;
1240 while (length > index) definePropertyModule$1.f(O, key = keys[index++], props[key]);
1241 return O;
1242 };
1243
1244 var getBuiltIn$1 = getBuiltIn$4;
1245
1246 var html$1 = getBuiltIn$1('document', 'documentElement');
1247
1248 /* global ActiveXObject -- old IE, WSH */
1249
1250 var anObject$5 = anObject$9;
1251 var definePropertiesModule = objectDefineProperties;
1252 var enumBugKeys = enumBugKeys$3;
1253 var hiddenKeys = hiddenKeys$4;
1254 var html = html$1;
1255 var documentCreateElement$1 = documentCreateElement$2;
1256 var sharedKey = sharedKey$2;
1257
1258 var GT = '>';
1259 var LT = '<';
1260 var PROTOTYPE = 'prototype';
1261 var SCRIPT = 'script';
1262 var IE_PROTO = sharedKey('IE_PROTO');
1263
1264 var EmptyConstructor = function () { /* empty */ };
1265
1266 var scriptTag = function (content) {
1267 return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1268 };
1269
1270 // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1271 var NullProtoObjectViaActiveX = function (activeXDocument) {
1272 activeXDocument.write(scriptTag(''));
1273 activeXDocument.close();
1274 var temp = activeXDocument.parentWindow.Object;
1275 activeXDocument = null; // avoid memory leak
1276 return temp;
1277 };
1278
1279 // Create object with fake `null` prototype: use iframe Object with cleared prototype
1280 var NullProtoObjectViaIFrame = function () {
1281 // Thrash, waste and sodomy: IE GC bug
1282 var iframe = documentCreateElement$1('iframe');
1283 var JS = 'java' + SCRIPT + ':';
1284 var iframeDocument;
1285 iframe.style.display = 'none';
1286 html.appendChild(iframe);
1287 // https://github.com/zloirock/core-js/issues/475
1288 iframe.src = String(JS);
1289 iframeDocument = iframe.contentWindow.document;
1290 iframeDocument.open();
1291 iframeDocument.write(scriptTag('document.F=Object'));
1292 iframeDocument.close();
1293 return iframeDocument.F;
1294 };
1295
1296 // Check for document.domain and active x support
1297 // No need to use active x approach when document.domain is not set
1298 // see https://github.com/es-shims/es5-shim/issues/150
1299 // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1300 // avoid IE GC bug
1301 var activeXDocument;
1302 var NullProtoObject = function () {
1303 try {
1304 activeXDocument = new ActiveXObject('htmlfile');
1305 } catch (error) { /* ignore */ }
1306 NullProtoObject = typeof document != 'undefined'
1307 ? document.domain && activeXDocument
1308 ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1309 : NullProtoObjectViaIFrame()
1310 : NullProtoObjectViaActiveX(activeXDocument); // WSH
1311 var length = enumBugKeys.length;
1312 while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1313 return NullProtoObject();
1314 };
1315
1316 hiddenKeys[IE_PROTO] = true;
1317
1318 // `Object.create` method
1319 // https://tc39.es/ecma262/#sec-object.create
1320 // eslint-disable-next-line es/no-object-create -- safe
1321 var objectCreate = Object.create || function create(O, Properties) {
1322 var result;
1323 if (O !== null) {
1324 EmptyConstructor[PROTOTYPE] = anObject$5(O);
1325 result = new EmptyConstructor();
1326 EmptyConstructor[PROTOTYPE] = null;
1327 // add "__proto__" for Object.getPrototypeOf polyfill
1328 result[IE_PROTO] = O;
1329 } else result = NullProtoObject();
1330 return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1331 };
1332
1333 var wellKnownSymbol$9 = wellKnownSymbol$b;
1334 var create$1 = objectCreate;
1335 var defineProperty$1 = objectDefineProperty.f;
1336
1337 var UNSCOPABLES = wellKnownSymbol$9('unscopables');
1338 var ArrayPrototype = Array.prototype;
1339
1340 // Array.prototype[@@unscopables]
1341 // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1342 if (ArrayPrototype[UNSCOPABLES] == undefined) {
1343 defineProperty$1(ArrayPrototype, UNSCOPABLES, {
1344 configurable: true,
1345 value: create$1(null)
1346 });
1347 }
1348
1349 // add a key to Array.prototype[@@unscopables]
1350 var addToUnscopables$2 = function (key) {
1351 ArrayPrototype[UNSCOPABLES][key] = true;
1352 };
1353
1354 var $$8 = _export;
1355 var $includes = arrayIncludes.includes;
1356 var fails$b = fails$k;
1357 var addToUnscopables$1 = addToUnscopables$2;
1358
1359 // FF99+ bug
1360 var BROKEN_ON_SPARSE = fails$b(function () {
1361 // eslint-disable-next-line es/no-array-prototype-includes -- detection
1362 return !Array(1).includes();
1363 });
1364
1365 // `Array.prototype.includes` method
1366 // https://tc39.es/ecma262/#sec-array.prototype.includes
1367 $$8({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
1368 includes: function includes(el /* , fromIndex = 0 */) {
1369 return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
1370 }
1371 });
1372
1373 // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1374 addToUnscopables$1('includes');
1375
1376 var isObject$2 = isObject$8;
1377 var classof$6 = classofRaw$2;
1378 var wellKnownSymbol$8 = wellKnownSymbol$b;
1379
1380 var MATCH$1 = wellKnownSymbol$8('match');
1381
1382 // `IsRegExp` abstract operation
1383 // https://tc39.es/ecma262/#sec-isregexp
1384 var isRegexp = function (it) {
1385 var isRegExp;
1386 return isObject$2(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$6(it) == 'RegExp');
1387 };
1388
1389 var isRegExp = isRegexp;
1390
1391 var $TypeError$2 = TypeError;
1392
1393 var notARegexp = function (it) {
1394 if (isRegExp(it)) {
1395 throw $TypeError$2("The method doesn't accept regular expressions");
1396 } return it;
1397 };
1398
1399 var wellKnownSymbol$7 = wellKnownSymbol$b;
1400
1401 var TO_STRING_TAG$1 = wellKnownSymbol$7('toStringTag');
1402 var test = {};
1403
1404 test[TO_STRING_TAG$1] = 'z';
1405
1406 var toStringTagSupport = String(test) === '[object z]';
1407
1408 var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
1409 var isCallable$3 = isCallable$e;
1410 var classofRaw$1 = classofRaw$2;
1411 var wellKnownSymbol$6 = wellKnownSymbol$b;
1412
1413 var TO_STRING_TAG = wellKnownSymbol$6('toStringTag');
1414 var $Object = Object;
1415
1416 // ES3 wrong here
1417 var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) == 'Arguments';
1418
1419 // fallback for IE11 Script Access Denied error
1420 var tryGet = function (it, key) {
1421 try {
1422 return it[key];
1423 } catch (error) { /* empty */ }
1424 };
1425
1426 // getting tag from ES6+ `Object.prototype.toString`
1427 var classof$5 = TO_STRING_TAG_SUPPORT$2 ? classofRaw$1 : function (it) {
1428 var O, tag, result;
1429 return it === undefined ? 'Undefined' : it === null ? 'Null'
1430 // @@toStringTag case
1431 : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1432 // builtinTag case
1433 : CORRECT_ARGUMENTS ? classofRaw$1(O)
1434 // ES3 arguments fallback
1435 : (result = classofRaw$1(O)) == 'Object' && isCallable$3(O.callee) ? 'Arguments' : result;
1436 };
1437
1438 var classof$4 = classof$5;
1439
1440 var $String = String;
1441
1442 var toString$6 = function (argument) {
1443 if (classof$4(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
1444 return $String(argument);
1445 };
1446
1447 var wellKnownSymbol$5 = wellKnownSymbol$b;
1448
1449 var MATCH = wellKnownSymbol$5('match');
1450
1451 var correctIsRegexpLogic = function (METHOD_NAME) {
1452 var regexp = /./;
1453 try {
1454 '/./'[METHOD_NAME](regexp);
1455 } catch (error1) {
1456 try {
1457 regexp[MATCH] = false;
1458 return '/./'[METHOD_NAME](regexp);
1459 } catch (error2) { /* empty */ }
1460 } return false;
1461 };
1462
1463 var $$7 = _export;
1464 var uncurryThis$b = functionUncurryThis;
1465 var notARegExp = notARegexp;
1466 var requireObjectCoercible$3 = requireObjectCoercible$6;
1467 var toString$5 = toString$6;
1468 var correctIsRegExpLogic = correctIsRegexpLogic;
1469
1470 var stringIndexOf$1 = uncurryThis$b(''.indexOf);
1471
1472 // `String.prototype.includes` method
1473 // https://tc39.es/ecma262/#sec-string.prototype.includes
1474 $$7({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
1475 includes: function includes(searchString /* , position = 0 */) {
1476 return !!~stringIndexOf$1(
1477 toString$5(requireObjectCoercible$3(this)),
1478 toString$5(notARegExp(searchString)),
1479 arguments.length > 1 ? arguments[1] : undefined
1480 );
1481 }
1482 });
1483
1484 var classof$3 = classofRaw$2;
1485
1486 // `IsArray` abstract operation
1487 // https://tc39.es/ecma262/#sec-isarray
1488 // eslint-disable-next-line es/no-array-isarray -- safe
1489 var isArray$2 = Array.isArray || function isArray(argument) {
1490 return classof$3(argument) == 'Array';
1491 };
1492
1493 var $TypeError$1 = TypeError;
1494 var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
1495
1496 var doesNotExceedSafeInteger$1 = function (it) {
1497 if (it > MAX_SAFE_INTEGER) throw $TypeError$1('Maximum allowed index exceeded');
1498 return it;
1499 };
1500
1501 var toPropertyKey = toPropertyKey$3;
1502 var definePropertyModule = objectDefineProperty;
1503 var createPropertyDescriptor = createPropertyDescriptor$3;
1504
1505 var createProperty$1 = function (object, key, value) {
1506 var propertyKey = toPropertyKey(key);
1507 if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
1508 else object[propertyKey] = value;
1509 };
1510
1511 var uncurryThis$a = functionUncurryThis;
1512 var fails$a = fails$k;
1513 var isCallable$2 = isCallable$e;
1514 var classof$2 = classof$5;
1515 var getBuiltIn = getBuiltIn$4;
1516 var inspectSource = inspectSource$2;
1517
1518 var noop = function () { /* empty */ };
1519 var empty = [];
1520 var construct = getBuiltIn('Reflect', 'construct');
1521 var constructorRegExp = /^\s*(?:class|function)\b/;
1522 var exec$1 = uncurryThis$a(constructorRegExp.exec);
1523 var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
1524
1525 var isConstructorModern = function isConstructor(argument) {
1526 if (!isCallable$2(argument)) return false;
1527 try {
1528 construct(noop, empty, argument);
1529 return true;
1530 } catch (error) {
1531 return false;
1532 }
1533 };
1534
1535 var isConstructorLegacy = function isConstructor(argument) {
1536 if (!isCallable$2(argument)) return false;
1537 switch (classof$2(argument)) {
1538 case 'AsyncFunction':
1539 case 'GeneratorFunction':
1540 case 'AsyncGeneratorFunction': return false;
1541 }
1542 try {
1543 // we can't check .prototype since constructors produced by .bind haven't it
1544 // `Function#toString` throws on some built-it function in some legacy engines
1545 // (for example, `DOMQuad` and similar in FF41-)
1546 return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource(argument));
1547 } catch (error) {
1548 return true;
1549 }
1550 };
1551
1552 isConstructorLegacy.sham = true;
1553
1554 // `IsConstructor` abstract operation
1555 // https://tc39.es/ecma262/#sec-isconstructor
1556 var isConstructor$1 = !construct || fails$a(function () {
1557 var called;
1558 return isConstructorModern(isConstructorModern.call)
1559 || !isConstructorModern(Object)
1560 || !isConstructorModern(function () { called = true; })
1561 || called;
1562 }) ? isConstructorLegacy : isConstructorModern;
1563
1564 var isArray$1 = isArray$2;
1565 var isConstructor = isConstructor$1;
1566 var isObject$1 = isObject$8;
1567 var wellKnownSymbol$4 = wellKnownSymbol$b;
1568
1569 var SPECIES$2 = wellKnownSymbol$4('species');
1570 var $Array = Array;
1571
1572 // a part of `ArraySpeciesCreate` abstract operation
1573 // https://tc39.es/ecma262/#sec-arrayspeciescreate
1574 var arraySpeciesConstructor$1 = function (originalArray) {
1575 var C;
1576 if (isArray$1(originalArray)) {
1577 C = originalArray.constructor;
1578 // cross-realm fallback
1579 if (isConstructor(C) && (C === $Array || isArray$1(C.prototype))) C = undefined;
1580 else if (isObject$1(C)) {
1581 C = C[SPECIES$2];
1582 if (C === null) C = undefined;
1583 }
1584 } return C === undefined ? $Array : C;
1585 };
1586
1587 var arraySpeciesConstructor = arraySpeciesConstructor$1;
1588
1589 // `ArraySpeciesCreate` abstract operation
1590 // https://tc39.es/ecma262/#sec-arrayspeciescreate
1591 var arraySpeciesCreate$2 = function (originalArray, length) {
1592 return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
1593 };
1594
1595 var fails$9 = fails$k;
1596 var wellKnownSymbol$3 = wellKnownSymbol$b;
1597 var V8_VERSION$1 = engineV8Version;
1598
1599 var SPECIES$1 = wellKnownSymbol$3('species');
1600
1601 var arrayMethodHasSpeciesSupport$3 = function (METHOD_NAME) {
1602 // We can't use this feature detection in V8 since it causes
1603 // deoptimization and serious performance degradation
1604 // https://github.com/zloirock/core-js/issues/677
1605 return V8_VERSION$1 >= 51 || !fails$9(function () {
1606 var array = [];
1607 var constructor = array.constructor = {};
1608 constructor[SPECIES$1] = function () {
1609 return { foo: 1 };
1610 };
1611 return array[METHOD_NAME](Boolean).foo !== 1;
1612 });
1613 };
1614
1615 var $$6 = _export;
1616 var fails$8 = fails$k;
1617 var isArray = isArray$2;
1618 var isObject = isObject$8;
1619 var toObject$3 = toObject$5;
1620 var lengthOfArrayLike$1 = lengthOfArrayLike$3;
1621 var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
1622 var createProperty = createProperty$1;
1623 var arraySpeciesCreate$1 = arraySpeciesCreate$2;
1624 var arrayMethodHasSpeciesSupport$2 = arrayMethodHasSpeciesSupport$3;
1625 var wellKnownSymbol$2 = wellKnownSymbol$b;
1626 var V8_VERSION = engineV8Version;
1627
1628 var IS_CONCAT_SPREADABLE = wellKnownSymbol$2('isConcatSpreadable');
1629
1630 // We can't use this feature detection in V8 since it causes
1631 // deoptimization and serious performance degradation
1632 // https://github.com/zloirock/core-js/issues/679
1633 var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$8(function () {
1634 var array = [];
1635 array[IS_CONCAT_SPREADABLE] = false;
1636 return array.concat()[0] !== array;
1637 });
1638
1639 var isConcatSpreadable = function (O) {
1640 if (!isObject(O)) return false;
1641 var spreadable = O[IS_CONCAT_SPREADABLE];
1642 return spreadable !== undefined ? !!spreadable : isArray(O);
1643 };
1644
1645 var FORCED$1 = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport$2('concat');
1646
1647 // `Array.prototype.concat` method
1648 // https://tc39.es/ecma262/#sec-array.prototype.concat
1649 // with adding support of @@isConcatSpreadable and @@species
1650 $$6({ target: 'Array', proto: true, arity: 1, forced: FORCED$1 }, {
1651 // eslint-disable-next-line no-unused-vars -- required for `.length`
1652 concat: function concat(arg) {
1653 var O = toObject$3(this);
1654 var A = arraySpeciesCreate$1(O, 0);
1655 var n = 0;
1656 var i, k, length, len, E;
1657 for (i = -1, length = arguments.length; i < length; i++) {
1658 E = i === -1 ? O : arguments[i];
1659 if (isConcatSpreadable(E)) {
1660 len = lengthOfArrayLike$1(E);
1661 doesNotExceedSafeInteger(n + len);
1662 for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
1663 } else {
1664 doesNotExceedSafeInteger(n + 1);
1665 createProperty(A, n++, E);
1666 }
1667 }
1668 A.length = n;
1669 return A;
1670 }
1671 });
1672
1673 var anObject$4 = anObject$9;
1674
1675 // `RegExp.prototype.flags` getter implementation
1676 // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
1677 var regexpFlags$1 = function () {
1678 var that = anObject$4(this);
1679 var result = '';
1680 if (that.hasIndices) result += 'd';
1681 if (that.global) result += 'g';
1682 if (that.ignoreCase) result += 'i';
1683 if (that.multiline) result += 'm';
1684 if (that.dotAll) result += 's';
1685 if (that.unicode) result += 'u';
1686 if (that.unicodeSets) result += 'v';
1687 if (that.sticky) result += 'y';
1688 return result;
1689 };
1690
1691 var fails$7 = fails$k;
1692 var global$4 = global$e;
1693
1694 // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
1695 var $RegExp$2 = global$4.RegExp;
1696
1697 var UNSUPPORTED_Y$1 = fails$7(function () {
1698 var re = $RegExp$2('a', 'y');
1699 re.lastIndex = 2;
1700 return re.exec('abcd') != null;
1701 });
1702
1703 // UC Browser bug
1704 // https://github.com/zloirock/core-js/issues/1008
1705 var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$7(function () {
1706 return !$RegExp$2('a', 'y').sticky;
1707 });
1708
1709 var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$7(function () {
1710 // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
1711 var re = $RegExp$2('^r', 'gy');
1712 re.lastIndex = 2;
1713 return re.exec('str') != null;
1714 });
1715
1716 var regexpStickyHelpers = {
1717 BROKEN_CARET: BROKEN_CARET,
1718 MISSED_STICKY: MISSED_STICKY,
1719 UNSUPPORTED_Y: UNSUPPORTED_Y$1
1720 };
1721
1722 var fails$6 = fails$k;
1723 var global$3 = global$e;
1724
1725 // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
1726 var $RegExp$1 = global$3.RegExp;
1727
1728 var regexpUnsupportedDotAll = fails$6(function () {
1729 var re = $RegExp$1('.', 's');
1730 return !(re.dotAll && re.exec('\n') && re.flags === 's');
1731 });
1732
1733 var fails$5 = fails$k;
1734 var global$2 = global$e;
1735
1736 // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
1737 var $RegExp = global$2.RegExp;
1738
1739 var regexpUnsupportedNcg = fails$5(function () {
1740 var re = $RegExp('(?<a>b)', 'g');
1741 return re.exec('b').groups.a !== 'b' ||
1742 'b'.replace(re, '$<a>c') !== 'bc';
1743 });
1744
1745 /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
1746 /* eslint-disable regexp/no-useless-quantifier -- testing */
1747 var call$6 = functionCall;
1748 var uncurryThis$9 = functionUncurryThis;
1749 var toString$4 = toString$6;
1750 var regexpFlags = regexpFlags$1;
1751 var stickyHelpers = regexpStickyHelpers;
1752 var shared = sharedExports;
1753 var create = objectCreate;
1754 var getInternalState = internalState.get;
1755 var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
1756 var UNSUPPORTED_NCG = regexpUnsupportedNcg;
1757
1758 var nativeReplace = shared('native-string-replace', String.prototype.replace);
1759 var nativeExec = RegExp.prototype.exec;
1760 var patchedExec = nativeExec;
1761 var charAt$3 = uncurryThis$9(''.charAt);
1762 var indexOf = uncurryThis$9(''.indexOf);
1763 var replace$1 = uncurryThis$9(''.replace);
1764 var stringSlice$3 = uncurryThis$9(''.slice);
1765
1766 var UPDATES_LAST_INDEX_WRONG = (function () {
1767 var re1 = /a/;
1768 var re2 = /b*/g;
1769 call$6(nativeExec, re1, 'a');
1770 call$6(nativeExec, re2, 'a');
1771 return re1.lastIndex !== 0 || re2.lastIndex !== 0;
1772 })();
1773
1774 var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
1775
1776 // nonparticipating capturing group, copied from es5-shim's String#split patch.
1777 var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
1778
1779 var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
1780
1781 if (PATCH) {
1782 patchedExec = function exec(string) {
1783 var re = this;
1784 var state = getInternalState(re);
1785 var str = toString$4(string);
1786 var raw = state.raw;
1787 var result, reCopy, lastIndex, match, i, object, group;
1788
1789 if (raw) {
1790 raw.lastIndex = re.lastIndex;
1791 result = call$6(patchedExec, raw, str);
1792 re.lastIndex = raw.lastIndex;
1793 return result;
1794 }
1795
1796 var groups = state.groups;
1797 var sticky = UNSUPPORTED_Y && re.sticky;
1798 var flags = call$6(regexpFlags, re);
1799 var source = re.source;
1800 var charsAdded = 0;
1801 var strCopy = str;
1802
1803 if (sticky) {
1804 flags = replace$1(flags, 'y', '');
1805 if (indexOf(flags, 'g') === -1) {
1806 flags += 'g';
1807 }
1808
1809 strCopy = stringSlice$3(str, re.lastIndex);
1810 // Support anchored sticky behavior.
1811 if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
1812 source = '(?: ' + source + ')';
1813 strCopy = ' ' + strCopy;
1814 charsAdded++;
1815 }
1816 // ^(? + rx + ) is needed, in combination with some str slicing, to
1817 // simulate the 'y' flag.
1818 reCopy = new RegExp('^(?:' + source + ')', flags);
1819 }
1820
1821 if (NPCG_INCLUDED) {
1822 reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
1823 }
1824 if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
1825
1826 match = call$6(nativeExec, sticky ? reCopy : re, strCopy);
1827
1828 if (sticky) {
1829 if (match) {
1830 match.input = stringSlice$3(match.input, charsAdded);
1831 match[0] = stringSlice$3(match[0], charsAdded);
1832 match.index = re.lastIndex;
1833 re.lastIndex += match[0].length;
1834 } else re.lastIndex = 0;
1835 } else if (UPDATES_LAST_INDEX_WRONG && match) {
1836 re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
1837 }
1838 if (NPCG_INCLUDED && match && match.length > 1) {
1839 // Fix browsers whose `exec` methods don't consistently return `undefined`
1840 // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
1841 call$6(nativeReplace, match[0], reCopy, function () {
1842 for (i = 1; i < arguments.length - 2; i++) {
1843 if (arguments[i] === undefined) match[i] = undefined;
1844 }
1845 });
1846 }
1847
1848 if (match && groups) {
1849 match.groups = object = create(null);
1850 for (i = 0; i < groups.length; i++) {
1851 group = groups[i];
1852 object[group[0]] = match[group[1]];
1853 }
1854 }
1855
1856 return match;
1857 };
1858 }
1859
1860 var regexpExec$2 = patchedExec;
1861
1862 var $$5 = _export;
1863 var exec = regexpExec$2;
1864
1865 // `RegExp.prototype.exec` method
1866 // https://tc39.es/ecma262/#sec-regexp.prototype.exec
1867 $$5({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
1868 exec: exec
1869 });
1870
1871 var NATIVE_BIND$1 = functionBindNative;
1872
1873 var FunctionPrototype = Function.prototype;
1874 var apply$1 = FunctionPrototype.apply;
1875 var call$5 = FunctionPrototype.call;
1876
1877 // eslint-disable-next-line es/no-reflect -- safe
1878 var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$5.bind(apply$1) : function () {
1879 return call$5.apply(apply$1, arguments);
1880 });
1881
1882 var classofRaw = classofRaw$2;
1883 var uncurryThis$8 = functionUncurryThis;
1884
1885 var functionUncurryThisClause = function (fn) {
1886 // Nashorn bug:
1887 // https://github.com/zloirock/core-js/issues/1128
1888 // https://github.com/zloirock/core-js/issues/1130
1889 if (classofRaw(fn) === 'Function') return uncurryThis$8(fn);
1890 };
1891
1892 // TODO: Remove from `core-js@4` since it's moved to entry points
1893
1894 var uncurryThis$7 = functionUncurryThisClause;
1895 var defineBuiltIn$2 = defineBuiltIn$4;
1896 var regexpExec$1 = regexpExec$2;
1897 var fails$4 = fails$k;
1898 var wellKnownSymbol$1 = wellKnownSymbol$b;
1899 var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
1900
1901 var SPECIES = wellKnownSymbol$1('species');
1902 var RegExpPrototype$2 = RegExp.prototype;
1903
1904 var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
1905 var SYMBOL = wellKnownSymbol$1(KEY);
1906
1907 var DELEGATES_TO_SYMBOL = !fails$4(function () {
1908 // String methods call symbol-named RegEp methods
1909 var O = {};
1910 O[SYMBOL] = function () { return 7; };
1911 return ''[KEY](O) != 7;
1912 });
1913
1914 var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$4(function () {
1915 // Symbol-named RegExp methods call .exec
1916 var execCalled = false;
1917 var re = /a/;
1918
1919 if (KEY === 'split') {
1920 // We can't use real regex here since it causes deoptimization
1921 // and serious performance degradation in V8
1922 // https://github.com/zloirock/core-js/issues/306
1923 re = {};
1924 // RegExp[@@split] doesn't call the regex's exec method, but first creates
1925 // a new one. We need to return the patched regex when creating the new one.
1926 re.constructor = {};
1927 re.constructor[SPECIES] = function () { return re; };
1928 re.flags = '';
1929 re[SYMBOL] = /./[SYMBOL];
1930 }
1931
1932 re.exec = function () { execCalled = true; return null; };
1933
1934 re[SYMBOL]('');
1935 return !execCalled;
1936 });
1937
1938 if (
1939 !DELEGATES_TO_SYMBOL ||
1940 !DELEGATES_TO_EXEC ||
1941 FORCED
1942 ) {
1943 var uncurriedNativeRegExpMethod = uncurryThis$7(/./[SYMBOL]);
1944 var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
1945 var uncurriedNativeMethod = uncurryThis$7(nativeMethod);
1946 var $exec = regexp.exec;
1947 if ($exec === regexpExec$1 || $exec === RegExpPrototype$2.exec) {
1948 if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
1949 // The native String method already delegates to @@method (this
1950 // polyfilled function), leasing to infinite recursion.
1951 // We avoid it by directly calling the native @@method method.
1952 return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
1953 }
1954 return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
1955 }
1956 return { done: false };
1957 });
1958
1959 defineBuiltIn$2(String.prototype, KEY, methods[0]);
1960 defineBuiltIn$2(RegExpPrototype$2, SYMBOL, methods[1]);
1961 }
1962
1963 if (SHAM) createNonEnumerableProperty$1(RegExpPrototype$2[SYMBOL], 'sham', true);
1964 };
1965
1966 var uncurryThis$6 = functionUncurryThis;
1967 var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
1968 var toString$3 = toString$6;
1969 var requireObjectCoercible$2 = requireObjectCoercible$6;
1970
1971 var charAt$2 = uncurryThis$6(''.charAt);
1972 var charCodeAt = uncurryThis$6(''.charCodeAt);
1973 var stringSlice$2 = uncurryThis$6(''.slice);
1974
1975 var createMethod$1 = function (CONVERT_TO_STRING) {
1976 return function ($this, pos) {
1977 var S = toString$3(requireObjectCoercible$2($this));
1978 var position = toIntegerOrInfinity$1(pos);
1979 var size = S.length;
1980 var first, second;
1981 if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
1982 first = charCodeAt(S, position);
1983 return first < 0xD800 || first > 0xDBFF || position + 1 === size
1984 || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
1985 ? CONVERT_TO_STRING
1986 ? charAt$2(S, position)
1987 : first
1988 : CONVERT_TO_STRING
1989 ? stringSlice$2(S, position, position + 2)
1990 : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
1991 };
1992 };
1993
1994 var stringMultibyte = {
1995 // `String.prototype.codePointAt` method
1996 // https://tc39.es/ecma262/#sec-string.prototype.codepointat
1997 codeAt: createMethod$1(false),
1998 // `String.prototype.at` method
1999 // https://github.com/mathiasbynens/String.prototype.at
2000 charAt: createMethod$1(true)
2001 };
2002
2003 var charAt$1 = stringMultibyte.charAt;
2004
2005 // `AdvanceStringIndex` abstract operation
2006 // https://tc39.es/ecma262/#sec-advancestringindex
2007 var advanceStringIndex$1 = function (S, index, unicode) {
2008 return index + (unicode ? charAt$1(S, index).length : 1);
2009 };
2010
2011 var uncurryThis$5 = functionUncurryThis;
2012 var toObject$2 = toObject$5;
2013
2014 var floor = Math.floor;
2015 var charAt = uncurryThis$5(''.charAt);
2016 var replace = uncurryThis$5(''.replace);
2017 var stringSlice$1 = uncurryThis$5(''.slice);
2018 // eslint-disable-next-line redos/no-vulnerable -- safe
2019 var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
2020 var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
2021
2022 // `GetSubstitution` abstract operation
2023 // https://tc39.es/ecma262/#sec-getsubstitution
2024 var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) {
2025 var tailPos = position + matched.length;
2026 var m = captures.length;
2027 var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
2028 if (namedCaptures !== undefined) {
2029 namedCaptures = toObject$2(namedCaptures);
2030 symbols = SUBSTITUTION_SYMBOLS;
2031 }
2032 return replace(replacement, symbols, function (match, ch) {
2033 var capture;
2034 switch (charAt(ch, 0)) {
2035 case '$': return '$';
2036 case '&': return matched;
2037 case '`': return stringSlice$1(str, 0, position);
2038 case "'": return stringSlice$1(str, tailPos);
2039 case '<':
2040 capture = namedCaptures[stringSlice$1(ch, 1, -1)];
2041 break;
2042 default: // \d\d?
2043 var n = +ch;
2044 if (n === 0) return match;
2045 if (n > m) {
2046 var f = floor(n / 10);
2047 if (f === 0) return match;
2048 if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
2049 return match;
2050 }
2051 capture = captures[n - 1];
2052 }
2053 return capture === undefined ? '' : capture;
2054 });
2055 };
2056
2057 var call$4 = functionCall;
2058 var anObject$3 = anObject$9;
2059 var isCallable$1 = isCallable$e;
2060 var classof$1 = classofRaw$2;
2061 var regexpExec = regexpExec$2;
2062
2063 var $TypeError = TypeError;
2064
2065 // `RegExpExec` abstract operation
2066 // https://tc39.es/ecma262/#sec-regexpexec
2067 var regexpExecAbstract = function (R, S) {
2068 var exec = R.exec;
2069 if (isCallable$1(exec)) {
2070 var result = call$4(exec, R, S);
2071 if (result !== null) anObject$3(result);
2072 return result;
2073 }
2074 if (classof$1(R) === 'RegExp') return call$4(regexpExec, R, S);
2075 throw $TypeError('RegExp#exec called on incompatible receiver');
2076 };
2077
2078 var apply = functionApply;
2079 var call$3 = functionCall;
2080 var uncurryThis$4 = functionUncurryThis;
2081 var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
2082 var fails$3 = fails$k;
2083 var anObject$2 = anObject$9;
2084 var isCallable = isCallable$e;
2085 var isNullOrUndefined$1 = isNullOrUndefined$4;
2086 var toIntegerOrInfinity = toIntegerOrInfinity$4;
2087 var toLength = toLength$2;
2088 var toString$2 = toString$6;
2089 var requireObjectCoercible$1 = requireObjectCoercible$6;
2090 var advanceStringIndex = advanceStringIndex$1;
2091 var getMethod$1 = getMethod$3;
2092 var getSubstitution = getSubstitution$1;
2093 var regExpExec$1 = regexpExecAbstract;
2094 var wellKnownSymbol = wellKnownSymbol$b;
2095
2096 var REPLACE = wellKnownSymbol('replace');
2097 var max = Math.max;
2098 var min = Math.min;
2099 var concat$1 = uncurryThis$4([].concat);
2100 var push$1 = uncurryThis$4([].push);
2101 var stringIndexOf = uncurryThis$4(''.indexOf);
2102 var stringSlice = uncurryThis$4(''.slice);
2103
2104 var maybeToString = function (it) {
2105 return it === undefined ? it : String(it);
2106 };
2107
2108 // IE <= 11 replaces $0 with the whole match, as if it was $&
2109 // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
2110 var REPLACE_KEEPS_$0 = (function () {
2111 // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
2112 return 'a'.replace(/./, '$0') === '$0';
2113 })();
2114
2115 // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
2116 var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
2117 if (/./[REPLACE]) {
2118 return /./[REPLACE]('a', '$0') === '';
2119 }
2120 return false;
2121 })();
2122
2123 var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$3(function () {
2124 var re = /./;
2125 re.exec = function () {
2126 var result = [];
2127 result.groups = { a: '7' };
2128 return result;
2129 };
2130 // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
2131 return ''.replace(re, '$<a>') !== '7';
2132 });
2133
2134 // @@replace logic
2135 fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCallNative) {
2136 var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
2137
2138 return [
2139 // `String.prototype.replace` method
2140 // https://tc39.es/ecma262/#sec-string.prototype.replace
2141 function replace(searchValue, replaceValue) {
2142 var O = requireObjectCoercible$1(this);
2143 var replacer = isNullOrUndefined$1(searchValue) ? undefined : getMethod$1(searchValue, REPLACE);
2144 return replacer
2145 ? call$3(replacer, searchValue, O, replaceValue)
2146 : call$3(nativeReplace, toString$2(O), searchValue, replaceValue);
2147 },
2148 // `RegExp.prototype[@@replace]` method
2149 // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
2150 function (string, replaceValue) {
2151 var rx = anObject$2(this);
2152 var S = toString$2(string);
2153
2154 if (
2155 typeof replaceValue == 'string' &&
2156 stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
2157 stringIndexOf(replaceValue, '$<') === -1
2158 ) {
2159 var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
2160 if (res.done) return res.value;
2161 }
2162
2163 var functionalReplace = isCallable(replaceValue);
2164 if (!functionalReplace) replaceValue = toString$2(replaceValue);
2165
2166 var global = rx.global;
2167 if (global) {
2168 var fullUnicode = rx.unicode;
2169 rx.lastIndex = 0;
2170 }
2171 var results = [];
2172 while (true) {
2173 var result = regExpExec$1(rx, S);
2174 if (result === null) break;
2175
2176 push$1(results, result);
2177 if (!global) break;
2178
2179 var matchStr = toString$2(result[0]);
2180 if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
2181 }
2182
2183 var accumulatedResult = '';
2184 var nextSourcePosition = 0;
2185 for (var i = 0; i < results.length; i++) {
2186 result = results[i];
2187
2188 var matched = toString$2(result[0]);
2189 var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
2190 var captures = [];
2191 // NOTE: This is equivalent to
2192 // captures = result.slice(1).map(maybeToString)
2193 // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
2194 // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
2195 // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
2196 for (var j = 1; j < result.length; j++) push$1(captures, maybeToString(result[j]));
2197 var namedCaptures = result.groups;
2198 if (functionalReplace) {
2199 var replacerArgs = concat$1([matched], captures, position, S);
2200 if (namedCaptures !== undefined) push$1(replacerArgs, namedCaptures);
2201 var replacement = toString$2(apply(replaceValue, undefined, replacerArgs));
2202 } else {
2203 replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
2204 }
2205 if (position >= nextSourcePosition) {
2206 accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
2207 nextSourcePosition = position + matched.length;
2208 }
2209 }
2210 return accumulatedResult + stringSlice(S, nextSourcePosition);
2211 }
2212 ];
2213 }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
2214
2215 var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
2216 var classof = classof$5;
2217
2218 // `Object.prototype.toString` method implementation
2219 // https://tc39.es/ecma262/#sec-object.prototype.tostring
2220 var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
2221 return '[object ' + classof(this) + ']';
2222 };
2223
2224 var TO_STRING_TAG_SUPPORT = toStringTagSupport;
2225 var defineBuiltIn$1 = defineBuiltIn$4;
2226 var toString$1 = objectToString;
2227
2228 // `Object.prototype.toString` method
2229 // https://tc39.es/ecma262/#sec-object.prototype.tostring
2230 if (!TO_STRING_TAG_SUPPORT) {
2231 defineBuiltIn$1(Object.prototype, 'toString', toString$1, { unsafe: true });
2232 }
2233
2234 // iterable DOM collections
2235 // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
2236 var domIterables = {
2237 CSSRuleList: 0,
2238 CSSStyleDeclaration: 0,
2239 CSSValueList: 0,
2240 ClientRectList: 0,
2241 DOMRectList: 0,
2242 DOMStringList: 0,
2243 DOMTokenList: 1,
2244 DataTransferItemList: 0,
2245 FileList: 0,
2246 HTMLAllCollection: 0,
2247 HTMLCollection: 0,
2248 HTMLFormElement: 0,
2249 HTMLSelectElement: 0,
2250 MediaList: 0,
2251 MimeTypeArray: 0,
2252 NamedNodeMap: 0,
2253 NodeList: 1,
2254 PaintRequestList: 0,
2255 Plugin: 0,
2256 PluginArray: 0,
2257 SVGLengthList: 0,
2258 SVGNumberList: 0,
2259 SVGPathSegList: 0,
2260 SVGPointList: 0,
2261 SVGStringList: 0,
2262 SVGTransformList: 0,
2263 SourceBufferList: 0,
2264 StyleSheetList: 0,
2265 TextTrackCueList: 0,
2266 TextTrackList: 0,
2267 TouchList: 0
2268 };
2269
2270 // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
2271 var documentCreateElement = documentCreateElement$2;
2272
2273 var classList = documentCreateElement('span').classList;
2274 var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
2275
2276 var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
2277
2278 var uncurryThis$3 = functionUncurryThisClause;
2279 var aCallable = aCallable$2;
2280 var NATIVE_BIND = functionBindNative;
2281
2282 var bind$1 = uncurryThis$3(uncurryThis$3.bind);
2283
2284 // optional / simple context binding
2285 var functionBindContext = function (fn, that) {
2286 aCallable(fn);
2287 return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
2288 return fn.apply(that, arguments);
2289 };
2290 };
2291
2292 var bind = functionBindContext;
2293 var uncurryThis$2 = functionUncurryThis;
2294 var IndexedObject$2 = indexedObject;
2295 var toObject$1 = toObject$5;
2296 var lengthOfArrayLike = lengthOfArrayLike$3;
2297 var arraySpeciesCreate = arraySpeciesCreate$2;
2298
2299 var push = uncurryThis$2([].push);
2300
2301 // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
2302 var createMethod = function (TYPE) {
2303 var IS_MAP = TYPE == 1;
2304 var IS_FILTER = TYPE == 2;
2305 var IS_SOME = TYPE == 3;
2306 var IS_EVERY = TYPE == 4;
2307 var IS_FIND_INDEX = TYPE == 6;
2308 var IS_FILTER_REJECT = TYPE == 7;
2309 var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
2310 return function ($this, callbackfn, that, specificCreate) {
2311 var O = toObject$1($this);
2312 var self = IndexedObject$2(O);
2313 var boundFunction = bind(callbackfn, that);
2314 var length = lengthOfArrayLike(self);
2315 var index = 0;
2316 var create = specificCreate || arraySpeciesCreate;
2317 var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
2318 var value, result;
2319 for (;length > index; index++) if (NO_HOLES || index in self) {
2320 value = self[index];
2321 result = boundFunction(value, index, O);
2322 if (TYPE) {
2323 if (IS_MAP) target[index] = result; // map
2324 else if (result) switch (TYPE) {
2325 case 3: return true; // some
2326 case 5: return value; // find
2327 case 6: return index; // findIndex
2328 case 2: push(target, value); // filter
2329 } else switch (TYPE) {
2330 case 4: return false; // every
2331 case 7: push(target, value); // filterReject
2332 }
2333 }
2334 }
2335 return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
2336 };
2337 };
2338
2339 var arrayIteration = {
2340 // `Array.prototype.forEach` method
2341 // https://tc39.es/ecma262/#sec-array.prototype.foreach
2342 forEach: createMethod(0),
2343 // `Array.prototype.map` method
2344 // https://tc39.es/ecma262/#sec-array.prototype.map
2345 map: createMethod(1),
2346 // `Array.prototype.filter` method
2347 // https://tc39.es/ecma262/#sec-array.prototype.filter
2348 filter: createMethod(2),
2349 // `Array.prototype.some` method
2350 // https://tc39.es/ecma262/#sec-array.prototype.some
2351 some: createMethod(3),
2352 // `Array.prototype.every` method
2353 // https://tc39.es/ecma262/#sec-array.prototype.every
2354 every: createMethod(4),
2355 // `Array.prototype.find` method
2356 // https://tc39.es/ecma262/#sec-array.prototype.find
2357 find: createMethod(5),
2358 // `Array.prototype.findIndex` method
2359 // https://tc39.es/ecma262/#sec-array.prototype.findIndex
2360 findIndex: createMethod(6),
2361 // `Array.prototype.filterReject` method
2362 // https://github.com/tc39/proposal-array-filtering
2363 filterReject: createMethod(7)
2364 };
2365
2366 var fails$2 = fails$k;
2367
2368 var arrayMethodIsStrict$2 = function (METHOD_NAME, argument) {
2369 var method = [][METHOD_NAME];
2370 return !!method && fails$2(function () {
2371 // eslint-disable-next-line no-useless-call -- required for testing
2372 method.call(null, argument || function () { return 1; }, 1);
2373 });
2374 };
2375
2376 var $forEach = arrayIteration.forEach;
2377 var arrayMethodIsStrict$1 = arrayMethodIsStrict$2;
2378
2379 var STRICT_METHOD = arrayMethodIsStrict$1('forEach');
2380
2381 // `Array.prototype.forEach` method implementation
2382 // https://tc39.es/ecma262/#sec-array.prototype.foreach
2383 var arrayForEach = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
2384 return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
2385 // eslint-disable-next-line es/no-array-prototype-foreach -- safe
2386 } : [].forEach;
2387
2388 var global$1 = global$e;
2389 var DOMIterables = domIterables;
2390 var DOMTokenListPrototype = domTokenListPrototype;
2391 var forEach = arrayForEach;
2392 var createNonEnumerableProperty = createNonEnumerableProperty$4;
2393
2394 var handlePrototype = function (CollectionPrototype) {
2395 // some Chrome versions have non-configurable methods on DOMTokenList
2396 if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {
2397 createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);
2398 } catch (error) {
2399 CollectionPrototype.forEach = forEach;
2400 }
2401 };
2402
2403 for (var COLLECTION_NAME in DOMIterables) {
2404 if (DOMIterables[COLLECTION_NAME]) {
2405 handlePrototype(global$1[COLLECTION_NAME] && global$1[COLLECTION_NAME].prototype);
2406 }
2407 }
2408
2409 handlePrototype(DOMTokenListPrototype);
2410
2411 var call$2 = functionCall;
2412 var hasOwn = hasOwnProperty_1;
2413 var isPrototypeOf = objectIsPrototypeOf;
2414 var regExpFlags = regexpFlags$1;
2415
2416 var RegExpPrototype$1 = RegExp.prototype;
2417
2418 var regexpGetFlags = function (R) {
2419 var flags = R.flags;
2420 return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype$1, R)
2421 ? call$2(regExpFlags, R) : flags;
2422 };
2423
2424 var PROPER_FUNCTION_NAME = functionName.PROPER;
2425 var defineBuiltIn = defineBuiltIn$4;
2426 var anObject$1 = anObject$9;
2427 var $toString = toString$6;
2428 var fails$1 = fails$k;
2429 var getRegExpFlags = regexpGetFlags;
2430
2431 var TO_STRING = 'toString';
2432 var RegExpPrototype = RegExp.prototype;
2433 var nativeToString = RegExpPrototype[TO_STRING];
2434
2435 var NOT_GENERIC = fails$1(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
2436 // FF44- RegExp#toString has a wrong name
2437 var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name != TO_STRING;
2438
2439 // `RegExp.prototype.toString` method
2440 // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
2441 if (NOT_GENERIC || INCORRECT_NAME) {
2442 defineBuiltIn(RegExp.prototype, TO_STRING, function toString() {
2443 var R = anObject$1(this);
2444 var pattern = $toString(R.source);
2445 var flags = $toString(getRegExpFlags(R));
2446 return '/' + pattern + '/' + flags;
2447 }, { unsafe: true });
2448 }
2449
2450 var $$4 = _export;
2451 var $find = arrayIteration.find;
2452 var addToUnscopables = addToUnscopables$2;
2453
2454 var FIND = 'find';
2455 var SKIPS_HOLES = true;
2456
2457 // Shouldn't skip holes
2458 if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
2459
2460 // `Array.prototype.find` method
2461 // https://tc39.es/ecma262/#sec-array.prototype.find
2462 $$4({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
2463 find: function find(callbackfn /* , that = undefined */) {
2464 return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
2465 }
2466 });
2467
2468 // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2469 addToUnscopables(FIND);
2470
2471 var $$3 = _export;
2472 var $filter = arrayIteration.filter;
2473 var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$3;
2474
2475 var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport$1('filter');
2476
2477 // `Array.prototype.filter` method
2478 // https://tc39.es/ecma262/#sec-array.prototype.filter
2479 // with adding support of @@species
2480 $$3({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
2481 filter: function filter(callbackfn /* , thisArg */) {
2482 return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
2483 }
2484 });
2485
2486 var DESCRIPTORS = descriptors;
2487 var uncurryThis$1 = functionUncurryThis;
2488 var call$1 = functionCall;
2489 var fails = fails$k;
2490 var objectKeys = objectKeys$2;
2491 var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
2492 var propertyIsEnumerableModule = objectPropertyIsEnumerable;
2493 var toObject = toObject$5;
2494 var IndexedObject$1 = indexedObject;
2495
2496 // eslint-disable-next-line es/no-object-assign -- safe
2497 var $assign = Object.assign;
2498 // eslint-disable-next-line es/no-object-defineproperty -- required for testing
2499 var defineProperty = Object.defineProperty;
2500 var concat = uncurryThis$1([].concat);
2501
2502 // `Object.assign` method
2503 // https://tc39.es/ecma262/#sec-object.assign
2504 var objectAssign = !$assign || fails(function () {
2505 // should have correct order of operations (Edge bug)
2506 if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
2507 enumerable: true,
2508 get: function () {
2509 defineProperty(this, 'b', {
2510 value: 3,
2511 enumerable: false
2512 });
2513 }
2514 }), { b: 2 })).b !== 1) return true;
2515 // should work with symbols and should have deterministic property order (V8 bug)
2516 var A = {};
2517 var B = {};
2518 // eslint-disable-next-line es/no-symbol -- safe
2519 var symbol = Symbol();
2520 var alphabet = 'abcdefghijklmnopqrst';
2521 A[symbol] = 7;
2522 alphabet.split('').forEach(function (chr) { B[chr] = chr; });
2523 return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
2524 }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
2525 var T = toObject(target);
2526 var argumentsLength = arguments.length;
2527 var index = 1;
2528 var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
2529 var propertyIsEnumerable = propertyIsEnumerableModule.f;
2530 while (argumentsLength > index) {
2531 var S = IndexedObject$1(arguments[index++]);
2532 var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
2533 var length = keys.length;
2534 var j = 0;
2535 var key;
2536 while (length > j) {
2537 key = keys[j++];
2538 if (!DESCRIPTORS || call$1(propertyIsEnumerable, S, key)) T[key] = S[key];
2539 }
2540 } return T;
2541 } : $assign;
2542
2543 var $$2 = _export;
2544 var assign = objectAssign;
2545
2546 // `Object.assign` method
2547 // https://tc39.es/ecma262/#sec-object.assign
2548 // eslint-disable-next-line es/no-object-assign -- required for testing
2549 $$2({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
2550 assign: assign
2551 });
2552
2553 var $$1 = _export;
2554 var $map = arrayIteration.map;
2555 var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$3;
2556
2557 var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');
2558
2559 // `Array.prototype.map` method
2560 // https://tc39.es/ecma262/#sec-array.prototype.map
2561 // with adding support of @@species
2562 $$1({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
2563 map: function map(callbackfn /* , thisArg */) {
2564 return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
2565 }
2566 });
2567
2568 // `SameValue` abstract operation
2569 // https://tc39.es/ecma262/#sec-samevalue
2570 // eslint-disable-next-line es/no-object-is -- safe
2571 var sameValue$1 = Object.is || function is(x, y) {
2572 // eslint-disable-next-line no-self-compare -- NaN check
2573 return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
2574 };
2575
2576 var call = functionCall;
2577 var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
2578 var anObject = anObject$9;
2579 var isNullOrUndefined = isNullOrUndefined$4;
2580 var requireObjectCoercible = requireObjectCoercible$6;
2581 var sameValue = sameValue$1;
2582 var toString = toString$6;
2583 var getMethod = getMethod$3;
2584 var regExpExec = regexpExecAbstract;
2585
2586 // @@search logic
2587 fixRegExpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCallNative) {
2588 return [
2589 // `String.prototype.search` method
2590 // https://tc39.es/ecma262/#sec-string.prototype.search
2591 function search(regexp) {
2592 var O = requireObjectCoercible(this);
2593 var searcher = isNullOrUndefined(regexp) ? undefined : getMethod(regexp, SEARCH);
2594 return searcher ? call(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString(O));
2595 },
2596 // `RegExp.prototype[@@search]` method
2597 // https://tc39.es/ecma262/#sec-regexp.prototype-@@search
2598 function (string) {
2599 var rx = anObject(this);
2600 var S = toString(string);
2601 var res = maybeCallNative(nativeSearch, rx, S);
2602
2603 if (res.done) return res.value;
2604
2605 var previousLastIndex = rx.lastIndex;
2606 if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;
2607 var result = regExpExec(rx, S);
2608 if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;
2609 return result === null ? -1 : result.index;
2610 }
2611 ];
2612 });
2613
2614 var $ = _export;
2615 var uncurryThis = functionUncurryThis;
2616 var IndexedObject = indexedObject;
2617 var toIndexedObject = toIndexedObject$5;
2618 var arrayMethodIsStrict = arrayMethodIsStrict$2;
2619
2620 var nativeJoin = uncurryThis([].join);
2621
2622 var ES3_STRINGS = IndexedObject != Object;
2623 var FORCED = ES3_STRINGS || !arrayMethodIsStrict('join', ',');
2624
2625 // `Array.prototype.join` method
2626 // https://tc39.es/ecma262/#sec-array.prototype.join
2627 $({ target: 'Array', proto: true, forced: FORCED }, {
2628 join: function join(separator) {
2629 return nativeJoin(toIndexedObject(this), separator === undefined ? ',' : separator);
2630 }
2631 });
2632
2633 /**
2634 * @author: Dennis Hernández
2635 * @update zhixin wen <wenzhixin2010@gmail.com>
2636 */
2637 var Utils = $$9.fn.bootstrapTable.utils;
2638 var UtilsCookie = {
2639 cookieIds: {
2640 sortOrder: 'bs.table.sortOrder',
2641 sortName: 'bs.table.sortName',
2642 sortPriority: 'bs.table.sortPriority',
2643 pageNumber: 'bs.table.pageNumber',
2644 pageList: 'bs.table.pageList',
2645 columns: 'bs.table.columns',
2646 hiddenColumns: 'bs.table.hiddenColumns',
2647 cardView: 'bs.table.cardView',
2648 searchText: 'bs.table.searchText',
2649 reorderColumns: 'bs.table.reorderColumns',
2650 filterControl: 'bs.table.filterControl',
2651 filterBy: 'bs.table.filterBy'
2652 },
2653 getCurrentHeader: function getCurrentHeader(that) {
2654 return that.options.height ? that.$tableHeader : that.$header;
2655 },
2656 getCurrentSearchControls: function getCurrentSearchControls(that) {
2657 return that.options.height ? 'table select, table input' : 'select, input';
2658 },
2659 isCookieSupportedByBrowser: function isCookieSupportedByBrowser() {
2660 return navigator.cookieEnabled;
2661 },
2662 isCookieEnabled: function isCookieEnabled(that, cookieName) {
2663 return that.options.cookiesEnabled.includes(cookieName);
2664 },
2665 setCookie: function setCookie(that, cookieName, cookieValue) {
2666 if (!that.options.cookie || !UtilsCookie.isCookieEnabled(that, cookieName)) {
2667 return;
2668 }
2669 return that._storage.setItem("".concat(that.options.cookieIdTable, ".").concat(cookieName), cookieValue);
2670 },
2671 getCookie: function getCookie(that, cookieName) {
2672 if (!cookieName || !UtilsCookie.isCookieEnabled(that, cookieName)) {
2673 return null;
2674 }
2675 return that._storage.getItem("".concat(that.options.cookieIdTable, ".").concat(cookieName));
2676 },
2677 deleteCookie: function deleteCookie(that, cookieName) {
2678 return that._storage.removeItem("".concat(that.options.cookieIdTable, ".").concat(cookieName));
2679 },
2680 calculateExpiration: function calculateExpiration(cookieExpire) {
2681 var time = cookieExpire.replace(/[0-9]*/, ''); // s,mi,h,d,m,y
2682
2683 cookieExpire = cookieExpire.replace(/[A-Za-z]{1,2}/, ''); // number
2684
2685 switch (time.toLowerCase()) {
2686 case 's':
2687 cookieExpire = +cookieExpire;
2688 break;
2689 case 'mi':
2690 cookieExpire *= 60;
2691 break;
2692 case 'h':
2693 cookieExpire = cookieExpire * 60 * 60;
2694 break;
2695 case 'd':
2696 cookieExpire = cookieExpire * 24 * 60 * 60;
2697 break;
2698 case 'm':
2699 cookieExpire = cookieExpire * 30 * 24 * 60 * 60;
2700 break;
2701 case 'y':
2702 cookieExpire = cookieExpire * 365 * 24 * 60 * 60;
2703 break;
2704 default:
2705 cookieExpire = undefined;
2706 break;
2707 }
2708 if (!cookieExpire) {
2709 return '';
2710 }
2711 var d = new Date();
2712 d.setTime(d.getTime() + cookieExpire * 1000);
2713 return d.toGMTString();
2714 },
2715 initCookieFilters: function initCookieFilters(bootstrapTable) {
2716 setTimeout(function () {
2717 var parsedCookieFilters = JSON.parse(UtilsCookie.getCookie(bootstrapTable, UtilsCookie.cookieIds.filterControl));
2718 if (!bootstrapTable._filterControlValuesLoaded && parsedCookieFilters) {
2719 var cachedFilters = {};
2720 var header = UtilsCookie.getCurrentHeader(bootstrapTable);
2721 var searchControls = UtilsCookie.getCurrentSearchControls(bootstrapTable);
2722 var applyCookieFilters = function applyCookieFilters(element, filteredCookies) {
2723 filteredCookies.forEach(function (cookie) {
2724 var value = element.value.toString();
2725 var text = cookie.text;
2726 if (text === '' || element.type === 'radio' && value !== text) {
2727 return;
2728 }
2729 if (element.tagName === 'INPUT' && element.type === 'radio' && value === text) {
2730 element.checked = true;
2731 cachedFilters[cookie.field] = text;
2732 } else if (element.tagName === 'INPUT') {
2733 element.value = text;
2734 cachedFilters[cookie.field] = text;
2735 } else if (element.tagName === 'SELECT' && bootstrapTable.options.filterControlContainer) {
2736 element.value = text;
2737 cachedFilters[cookie.field] = text;
2738 } else if (text !== '' && element.tagName === 'SELECT') {
2739 cachedFilters[cookie.field] = text;
2740 var _iterator = _createForOfIteratorHelper(element),
2741 _step;
2742 try {
2743 for (_iterator.s(); !(_step = _iterator.n()).done;) {
2744 var currentElement = _step.value;
2745 if (currentElement.value === text) {
2746 currentElement.selected = true;
2747 return;
2748 }
2749 }
2750 } catch (err) {
2751 _iterator.e(err);
2752 } finally {
2753 _iterator.f();
2754 }
2755 var option = document.createElement('option');
2756 option.value = text;
2757 option.text = text;
2758 element.add(option, element[1]);
2759 element.selectedIndex = 1;
2760 }
2761 });
2762 };
2763 var filterContainer = header;
2764 if (bootstrapTable.options.filterControlContainer) {
2765 filterContainer = $$9("".concat(bootstrapTable.options.filterControlContainer));
2766 }
2767 filterContainer.find(searchControls).each(function () {
2768 var field = $$9(this).closest('[data-field]').data('field');
2769 var filteredCookies = parsedCookieFilters.filter(function (cookie) {
2770 return cookie.field === field;
2771 });
2772 applyCookieFilters(this, filteredCookies);
2773 });
2774 bootstrapTable.initColumnSearch(cachedFilters);
2775 bootstrapTable._filterControlValuesLoaded = true;
2776 bootstrapTable.initServer();
2777 }
2778 }, 250);
2779 }
2780 };
2781 Object.assign($$9.fn.bootstrapTable.defaults, {
2782 cookie: false,
2783 cookieExpire: '2h',
2784 cookiePath: null,
2785 cookieDomain: null,
2786 cookieSecure: null,
2787 cookieSameSite: 'Lax',
2788 cookieIdTable: '',
2789 cookiesEnabled: ['bs.table.sortOrder', 'bs.table.sortName', 'bs.table.sortPriority', 'bs.table.pageNumber', 'bs.table.pageList', 'bs.table.hiddenColumns', 'bs.table.columns', 'bs.table.searchText', 'bs.table.filterControl', 'bs.table.filterBy', 'bs.table.reorderColumns', 'bs.table.cardView'],
2790 cookieStorage: 'cookieStorage',
2791 // localStorage, sessionStorage, customStorage
2792 cookieCustomStorageGet: null,
2793 cookieCustomStorageSet: null,
2794 cookieCustomStorageDelete: null,
2795 // internal variable
2796 _filterControls: [],
2797 _filterControlValuesLoaded: false,
2798 _storage: {
2799 setItem: undefined,
2800 getItem: undefined,
2801 removeItem: undefined
2802 }
2803 });
2804 $$9.fn.bootstrapTable.methods.push('getCookies');
2805 $$9.fn.bootstrapTable.methods.push('deleteCookie');
2806 Object.assign($$9.fn.bootstrapTable.utils, {
2807 setCookie: UtilsCookie.setCookie,
2808 getCookie: UtilsCookie.getCookie
2809 });
2810 $$9.BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
2811 _inherits(_class, _$$BootstrapTable);
2812 var _super = _createSuper(_class);
2813 function _class() {
2814 _classCallCheck(this, _class);
2815 return _super.apply(this, arguments);
2816 }
2817 _createClass(_class, [{
2818 key: "init",
2819 value: function init() {
2820 if (this.options.cookie) {
2821 if (this.options.cookieStorage === 'cookieStorage' && !UtilsCookie.isCookieSupportedByBrowser()) {
2822 throw new Error('Cookies are not enabled in this browser.');
2823 }
2824 this.configureStorage();
2825
2826 // FilterBy logic
2827 var filterByCookieValue = UtilsCookie.getCookie(this, UtilsCookie.cookieIds.filterBy);
2828 if (typeof filterByCookieValue === 'boolean' && !filterByCookieValue) {
2829 throw new Error('The cookie value of filterBy must be a json!');
2830 }
2831 var filterByCookie = {};
2832 try {
2833 filterByCookie = JSON.parse(filterByCookieValue);
2834 } catch (e) {
2835 throw new Error('Could not parse the json of the filterBy cookie!');
2836 }
2837 this.filterColumns = filterByCookie ? filterByCookie : {};
2838
2839 // FilterControl logic
2840 this._filterControls = [];
2841 this._filterControlValuesLoaded = false;
2842 this.options.cookiesEnabled = typeof this.options.cookiesEnabled === 'string' ? this.options.cookiesEnabled.replace('[', '').replace(']', '').replace(/'/g, '').replace(/ /g, '').split(',') : this.options.cookiesEnabled;
2843 if (this.options.filterControl) {
2844 var that = this;
2845 this.$el.on('column-search.bs.table', function (e, field, text) {
2846 var isNewField = true;
2847 for (var i = 0; i < that._filterControls.length; i++) {
2848 if (that._filterControls[i].field === field) {
2849 that._filterControls[i].text = text;
2850 isNewField = false;
2851 break;
2852 }
2853 }
2854 if (isNewField) {
2855 that._filterControls.push({
2856 field: field,
2857 text: text
2858 });
2859 }
2860 UtilsCookie.setCookie(that, UtilsCookie.cookieIds.filterControl, JSON.stringify(that._filterControls));
2861 }).on('created-controls.bs.table', UtilsCookie.initCookieFilters(that));
2862 }
2863 }
2864 _get(_getPrototypeOf(_class.prototype), "init", this).call(this);
2865 }
2866 }, {
2867 key: "initServer",
2868 value: function initServer() {
2869 var _get2;
2870 if (this.options.cookie && this.options.filterControl && !this._filterControlValuesLoaded) {
2871 var cookie = JSON.parse(UtilsCookie.getCookie(this, UtilsCookie.cookieIds.filterControl));
2872 if (cookie) {
2873 return;
2874 }
2875 }
2876 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2877 args[_key] = arguments[_key];
2878 }
2879 (_get2 = _get(_getPrototypeOf(_class.prototype), "initServer", this)).call.apply(_get2, [this].concat(args));
2880 }
2881 }, {
2882 key: "initTable",
2883 value: function initTable() {
2884 var _get3;
2885 for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
2886 args[_key2] = arguments[_key2];
2887 }
2888 (_get3 = _get(_getPrototypeOf(_class.prototype), "initTable", this)).call.apply(_get3, [this].concat(args));
2889 this.initCookie();
2890 }
2891 }, {
2892 key: "onSort",
2893 value: function onSort() {
2894 var _get4;
2895 for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
2896 args[_key3] = arguments[_key3];
2897 }
2898 (_get4 = _get(_getPrototypeOf(_class.prototype), "onSort", this)).call.apply(_get4, [this].concat(args));
2899 if (!this.options.cookie) {
2900 return;
2901 }
2902 if (this.options.sortName === undefined || this.options.sortOrder === undefined) {
2903 UtilsCookie.deleteCookie(this, UtilsCookie.cookieIds.sortName);
2904 UtilsCookie.deleteCookie(this, UtilsCookie.cookieIds.sortOrder);
2905 } else {
2906 this.options.sortPriority = null;
2907 UtilsCookie.deleteCookie(this, UtilsCookie.cookieIds.sortPriority);
2908 UtilsCookie.setCookie(this, UtilsCookie.cookieIds.sortOrder, this.options.sortOrder);
2909 UtilsCookie.setCookie(this, UtilsCookie.cookieIds.sortName, this.options.sortName);
2910 }
2911 }
2912 }, {
2913 key: "onMultipleSort",
2914 value: function onMultipleSort() {
2915 var _get5;
2916 for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
2917 args[_key4] = arguments[_key4];
2918 }
2919 (_get5 = _get(_getPrototypeOf(_class.prototype), "onMultipleSort", this)).call.apply(_get5, [this].concat(args));
2920 if (!this.options.cookie) {
2921 return;
2922 }
2923 if (this.options.sortPriority === undefined) {
2924 UtilsCookie.deleteCookie(this, UtilsCookie.cookieIds.sortPriority);
2925 } else {
2926 this.options.sortName = undefined;
2927 this.options.sortOrder = undefined;
2928 UtilsCookie.deleteCookie(this, UtilsCookie.cookieIds.sortName);
2929 UtilsCookie.deleteCookie(this, UtilsCookie.cookieIds.sortOrder);
2930 UtilsCookie.setCookie(this, UtilsCookie.cookieIds.sortPriority, JSON.stringify(this.options.sortPriority));
2931 }
2932 }
2933 }, {
2934 key: "onPageNumber",
2935 value: function onPageNumber() {
2936 var _get6;
2937 for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
2938 args[_key5] = arguments[_key5];
2939 }
2940 (_get6 = _get(_getPrototypeOf(_class.prototype), "onPageNumber", this)).call.apply(_get6, [this].concat(args));
2941 if (!this.options.cookie) {
2942 return;
2943 }
2944 UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageNumber, this.options.pageNumber);
2945 }
2946 }, {
2947 key: "onPageListChange",
2948 value: function onPageListChange() {
2949 var _get7;
2950 for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
2951 args[_key6] = arguments[_key6];
2952 }
2953 (_get7 = _get(_getPrototypeOf(_class.prototype), "onPageListChange", this)).call.apply(_get7, [this].concat(args));
2954 if (!this.options.cookie) {
2955 return;
2956 }
2957 UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageList, this.options.pageSize);
2958 UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageNumber, this.options.pageNumber);
2959 }
2960 }, {
2961 key: "onPagePre",
2962 value: function onPagePre() {
2963 var _get8;
2964 for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
2965 args[_key7] = arguments[_key7];
2966 }
2967 (_get8 = _get(_getPrototypeOf(_class.prototype), "onPagePre", this)).call.apply(_get8, [this].concat(args));
2968 if (!this.options.cookie) {
2969 return;
2970 }
2971 UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageNumber, this.options.pageNumber);
2972 }
2973 }, {
2974 key: "onPageNext",
2975 value: function onPageNext() {
2976 var _get9;
2977 for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
2978 args[_key8] = arguments[_key8];
2979 }
2980 (_get9 = _get(_getPrototypeOf(_class.prototype), "onPageNext", this)).call.apply(_get9, [this].concat(args));
2981 if (!this.options.cookie) {
2982 return;
2983 }
2984 UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageNumber, this.options.pageNumber);
2985 }
2986 }, {
2987 key: "_toggleColumn",
2988 value: function _toggleColumn() {
2989 var _get10;
2990 for (var _len9 = arguments.length, args = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {
2991 args[_key9] = arguments[_key9];
2992 }
2993 (_get10 = _get(_getPrototypeOf(_class.prototype), "_toggleColumn", this)).call.apply(_get10, [this].concat(args));
2994 if (!this.options.cookie) {
2995 return;
2996 }
2997 UtilsCookie.setCookie(this, UtilsCookie.cookieIds.hiddenColumns, JSON.stringify(this.getHiddenColumns().map(function (column) {
2998 return column.field;
2999 })));
3000 }
3001 }, {
3002 key: "_toggleAllColumns",
3003 value: function _toggleAllColumns() {
3004 var _get11;
3005 for (var _len10 = arguments.length, args = new Array(_len10), _key10 = 0; _key10 < _len10; _key10++) {
3006 args[_key10] = arguments[_key10];
3007 }
3008 (_get11 = _get(_getPrototypeOf(_class.prototype), "_toggleAllColumns", this)).call.apply(_get11, [this].concat(args));
3009 if (!this.options.cookie) {
3010 return;
3011 }
3012 UtilsCookie.setCookie(this, UtilsCookie.cookieIds.hiddenColumns, JSON.stringify(this.getHiddenColumns().map(function (column) {
3013 return column.field;
3014 })));
3015 }
3016 }, {
3017 key: "toggleView",
3018 value: function toggleView() {
3019 _get(_getPrototypeOf(_class.prototype), "toggleView", this).call(this);
3020 UtilsCookie.setCookie(this, UtilsCookie.cookieIds.cardView, this.options.cardView);
3021 }
3022 }, {
3023 key: "selectPage",
3024 value: function selectPage(page) {
3025 _get(_getPrototypeOf(_class.prototype), "selectPage", this).call(this, page);
3026 if (!this.options.cookie) {
3027 return;
3028 }
3029 UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageNumber, page);
3030 }
3031 }, {
3032 key: "onSearch",
3033 value: function onSearch(event) {
3034 _get(_getPrototypeOf(_class.prototype), "onSearch", this).call(this, event, arguments.length > 1 ? arguments[1] : true);
3035 if (!this.options.cookie) {
3036 return;
3037 }
3038 if (this.options.search) {
3039 UtilsCookie.setCookie(this, UtilsCookie.cookieIds.searchText, this.searchText);
3040 }
3041 UtilsCookie.setCookie(this, UtilsCookie.cookieIds.pageNumber, this.options.pageNumber);
3042 }
3043 }, {
3044 key: "initHeader",
3045 value: function initHeader() {
3046 var _get12;
3047 if (this.options.reorderableColumns && this.options.cookie) {
3048 this.columnsSortOrder = JSON.parse(UtilsCookie.getCookie(this, UtilsCookie.cookieIds.reorderColumns));
3049 }
3050 for (var _len11 = arguments.length, args = new Array(_len11), _key11 = 0; _key11 < _len11; _key11++) {
3051 args[_key11] = arguments[_key11];
3052 }
3053 (_get12 = _get(_getPrototypeOf(_class.prototype), "initHeader", this)).call.apply(_get12, [this].concat(args));
3054 }
3055 }, {
3056 key: "persistReorderColumnsState",
3057 value: function persistReorderColumnsState(that) {
3058 UtilsCookie.setCookie(that, UtilsCookie.cookieIds.reorderColumns, JSON.stringify(that.columnsSortOrder));
3059 }
3060 }, {
3061 key: "filterBy",
3062 value: function filterBy() {
3063 var _get13;
3064 for (var _len12 = arguments.length, args = new Array(_len12), _key12 = 0; _key12 < _len12; _key12++) {
3065 args[_key12] = arguments[_key12];
3066 }
3067 (_get13 = _get(_getPrototypeOf(_class.prototype), "filterBy", this)).call.apply(_get13, [this].concat(args));
3068 if (!this.options.cookie) {
3069 return;
3070 }
3071 UtilsCookie.setCookie(this, UtilsCookie.cookieIds.filterBy, JSON.stringify(this.filterColumns));
3072 }
3073 }, {
3074 key: "initCookie",
3075 value: function initCookie() {
3076 var _this = this;
3077 if (!this.options.cookie) {
3078 return;
3079 }
3080 if (this.options.cookieIdTable === '' || this.options.cookieExpire === '') {
3081 console.error('Configuration error. Please review the cookieIdTable and the cookieExpire property. If the properties are correct, then this browser does not support cookies.');
3082 this.options.cookie = false; // Make sure that the cookie extension is disabled
3083 return;
3084 }
3085 var sortOrderCookie = UtilsCookie.getCookie(this, UtilsCookie.cookieIds.sortOrder);
3086 var sortOrderNameCookie = UtilsCookie.getCookie(this, UtilsCookie.cookieIds.sortName);
3087 var sortPriorityCookie = UtilsCookie.getCookie(this, UtilsCookie.cookieIds.sortPriority);
3088 var pageNumberCookie = UtilsCookie.getCookie(this, UtilsCookie.cookieIds.pageNumber);
3089 var pageListCookie = UtilsCookie.getCookie(this, UtilsCookie.cookieIds.pageList);
3090 var searchTextCookie = UtilsCookie.getCookie(this, UtilsCookie.cookieIds.searchText);
3091 var cardViewCookie = UtilsCookie.getCookie(this, UtilsCookie.cookieIds.cardView);
3092 var columnsCookieValue = UtilsCookie.getCookie(this, UtilsCookie.cookieIds.columns);
3093 var hiddenColumnsCookieValue = UtilsCookie.getCookie(this, UtilsCookie.cookieIds.hiddenColumns);
3094 if (typeof columnsCookieValue === 'boolean' && !columnsCookieValue) {
3095 throw new Error('The cookie value of filterBy must be a json!');
3096 }
3097 var columnsCookie = {};
3098 try {
3099 columnsCookie = JSON.parse(columnsCookieValue);
3100 } catch (e) {
3101 throw new Error('Could not parse the json of the columns cookie!', columnsCookieValue);
3102 }
3103 var hiddenColumnsCookie = {};
3104 try {
3105 hiddenColumnsCookie = JSON.parse(hiddenColumnsCookieValue);
3106 } catch (e) {
3107 throw new Error('Could not parse the json of the hidden columns cookie!', hiddenColumnsCookieValue);
3108 }
3109 try {
3110 sortPriorityCookie = JSON.parse(sortPriorityCookie);
3111 } catch (e) {
3112 throw new Error('Could not parse the json of the sortPriority cookie!', sortPriorityCookie);
3113 }
3114 if (!sortPriorityCookie) {
3115 // sortOrder
3116 this.options.sortOrder = sortOrderCookie ? sortOrderCookie : this.options.sortOrder;
3117 // sortName
3118 this.options.sortName = sortOrderNameCookie ? sortOrderNameCookie : this.options.sortName;
3119 } else {
3120 this.options.sortOrder = undefined;
3121 this.options.sortName = undefined;
3122 }
3123
3124 // sortPriority
3125 this.options.sortPriority = sortPriorityCookie ? sortPriorityCookie : this.options.sortPriority;
3126 if (this.options.sortOrder || this.options.sortName) {
3127 // sortPriority
3128 this.options.sortPriority = null;
3129 }
3130
3131 // pageNumber
3132 this.options.pageNumber = pageNumberCookie ? +pageNumberCookie : this.options.pageNumber;
3133 // pageSize
3134 this.options.pageSize = pageListCookie ? pageListCookie === this.options.formatAllRows() ? pageListCookie : +pageListCookie : this.options.pageSize;
3135 // searchText
3136 if (UtilsCookie.isCookieEnabled(this, UtilsCookie.cookieIds.searchText) && this.options.searchText === '') {
3137 this.options.searchText = searchTextCookie ? searchTextCookie : '';
3138 }
3139 // cardView
3140 this.options.cardView = cardViewCookie === 'true' ? cardViewCookie : false;
3141 if (hiddenColumnsCookie) {
3142 var _iterator2 = _createForOfIteratorHelper(this.columns),
3143 _step2;
3144 try {
3145 var _loop = function _loop() {
3146 var column = _step2.value;
3147 column.visible = !hiddenColumnsCookie.filter(function (columnField) {
3148 if (_this.isSelectionColumn(column)) {
3149 return false;
3150 }
3151 return columnField === column.field;
3152 }).length > 0 || !column.switchable;
3153 };
3154 for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
3155 _loop();
3156 }
3157 } catch (err) {
3158 _iterator2.e(err);
3159 } finally {
3160 _iterator2.f();
3161 }
3162 } else if (columnsCookie) {
3163 /**
3164 * This is needed for the old saved cookies!
3165 * It can be removed in 2-3 Versions Later!!
3166 * TODO: Remove this part (column cookie) some versions later e.g. 1.22.0
3167 */
3168 var _iterator3 = _createForOfIteratorHelper(this.columns),
3169 _step3;
3170 try {
3171 var _loop2 = function _loop2() {
3172 var column = _step3.value;
3173 if (!column.switchable) {
3174 return "continue";
3175 }
3176 column.visible = columnsCookie.filter(function (columnField) {
3177 if (_this.isSelectionColumn(column)) {
3178 return true;
3179 }
3180 if (columnField instanceof Object) {
3181 return columnField.field === column.field;
3182 }
3183 return columnField === column.field;
3184 }).length > 0;
3185 };
3186 for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
3187 var _ret = _loop2();
3188 if (_ret === "continue") continue;
3189 }
3190 } catch (err) {
3191 _iterator3.e(err);
3192 } finally {
3193 _iterator3.f();
3194 }
3195 }
3196 }
3197 }, {
3198 key: "getCookies",
3199 value: function getCookies() {
3200 var bootstrapTable = this;
3201 var cookies = {};
3202 $$9.each(UtilsCookie.cookieIds, function (key, value) {
3203 cookies[key] = UtilsCookie.getCookie(bootstrapTable, value);
3204 if (key === 'columns' || key === 'hiddenColumns' || key === 'sortPriority') {
3205 cookies[key] = JSON.parse(cookies[key]);
3206 }
3207 });
3208 return cookies;
3209 }
3210 }, {
3211 key: "deleteCookie",
3212 value: function deleteCookie(cookieName) {
3213 if (!cookieName) {
3214 return;
3215 }
3216 UtilsCookie.deleteCookie(this, UtilsCookie.cookieIds[cookieName]);
3217 }
3218 }, {
3219 key: "configureStorage",
3220 value: function configureStorage() {
3221 var that = this;
3222 this._storage = {};
3223 switch (this.options.cookieStorage) {
3224 case 'cookieStorage':
3225 this._storage.setItem = function (cookieName, cookieValue) {
3226 document.cookie = [cookieName, '=', encodeURIComponent(cookieValue), "; expires=".concat(UtilsCookie.calculateExpiration(that.options.cookieExpire)), that.options.cookiePath ? "; path=".concat(that.options.cookiePath) : '', that.options.cookieDomain ? "; domain=".concat(that.options.cookieDomain) : '', that.options.cookieSecure ? '; secure' : '', ";SameSite=".concat(that.options.cookieSameSite)].join('');
3227 };
3228 this._storage.getItem = function (cookieName) {
3229 var value = "; ".concat(document.cookie);
3230 var parts = value.split("; ".concat(cookieName, "="));
3231 return parts.length === 2 ? decodeURIComponent(parts.pop().split(';').shift()) : null;
3232 };
3233 this._storage.removeItem = function (cookieName) {
3234 document.cookie = [encodeURIComponent(cookieName), '=', '; expires=Thu, 01 Jan 1970 00:00:00 GMT', that.options.cookiePath ? "; path=".concat(that.options.cookiePath) : '', that.options.cookieDomain ? "; domain=".concat(that.options.cookieDomain) : '', ";SameSite=".concat(that.options.cookieSameSite)].join('');
3235 };
3236 break;
3237 case 'localStorage':
3238 this._storage.setItem = function (cookieName, cookieValue) {
3239 localStorage.setItem(cookieName, cookieValue);
3240 };
3241 this._storage.getItem = function (cookieName) {
3242 return localStorage.getItem(cookieName);
3243 };
3244 this._storage.removeItem = function (cookieName) {
3245 localStorage.removeItem(cookieName);
3246 };
3247 break;
3248 case 'sessionStorage':
3249 this._storage.setItem = function (cookieName, cookieValue) {
3250 sessionStorage.setItem(cookieName, cookieValue);
3251 };
3252 this._storage.getItem = function (cookieName) {
3253 return sessionStorage.getItem(cookieName);
3254 };
3255 this._storage.removeItem = function (cookieName) {
3256 sessionStorage.removeItem(cookieName);
3257 };
3258 break;
3259 case 'customStorage':
3260 if (!this.options.cookieCustomStorageSet || !this.options.cookieCustomStorageGet || !this.options.cookieCustomStorageDelete) {
3261 throw new Error('The following options must be set while using the customStorage: cookieCustomStorageSet, cookieCustomStorageGet and cookieCustomStorageDelete');
3262 }
3263 this._storage.setItem = function (cookieName, cookieValue) {
3264 Utils.calculateObjectValue(that.options, that.options.cookieCustomStorageSet, [cookieName, cookieValue], '');
3265 };
3266 this._storage.getItem = function (cookieName) {
3267 return Utils.calculateObjectValue(that.options, that.options.cookieCustomStorageGet, [cookieName], '');
3268 };
3269 this._storage.removeItem = function (cookieName) {
3270 Utils.calculateObjectValue(that.options, that.options.cookieCustomStorageDelete, [cookieName], '');
3271 };
3272 break;
3273 default:
3274 throw new Error('Storage method not supported.');
3275 }
3276 }
3277 }]);
3278 return _class;
3279 }($$9.BootstrapTable);
3280
3281}));