UNPKG

100 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 ($$b) { 'use strict';
6
7 function _iterableToArrayLimit(arr, i) {
8 var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
9 if (null != _i) {
10 var _s,
11 _e,
12 _x,
13 _r,
14 _arr = [],
15 _n = !0,
16 _d = !1;
17 try {
18 if (_x = (_i = _i.call(arr)).next, 0 === i) {
19 if (Object(_i) !== _i) return;
20 _n = !1;
21 } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
22 } catch (err) {
23 _d = !0, _e = err;
24 } finally {
25 try {
26 if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
27 } finally {
28 if (_d) throw _e;
29 }
30 }
31 return _arr;
32 }
33 }
34 function _classCallCheck(instance, Constructor) {
35 if (!(instance instanceof Constructor)) {
36 throw new TypeError("Cannot call a class as a function");
37 }
38 }
39 function _defineProperties(target, props) {
40 for (var i = 0; i < props.length; i++) {
41 var descriptor = props[i];
42 descriptor.enumerable = descriptor.enumerable || false;
43 descriptor.configurable = true;
44 if ("value" in descriptor) descriptor.writable = true;
45 Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
46 }
47 }
48 function _createClass(Constructor, protoProps, staticProps) {
49 if (protoProps) _defineProperties(Constructor.prototype, protoProps);
50 if (staticProps) _defineProperties(Constructor, staticProps);
51 Object.defineProperty(Constructor, "prototype", {
52 writable: false
53 });
54 return Constructor;
55 }
56 function _inherits(subClass, superClass) {
57 if (typeof superClass !== "function" && superClass !== null) {
58 throw new TypeError("Super expression must either be null or a function");
59 }
60 subClass.prototype = Object.create(superClass && superClass.prototype, {
61 constructor: {
62 value: subClass,
63 writable: true,
64 configurable: true
65 }
66 });
67 Object.defineProperty(subClass, "prototype", {
68 writable: false
69 });
70 if (superClass) _setPrototypeOf(subClass, superClass);
71 }
72 function _getPrototypeOf(o) {
73 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
74 return o.__proto__ || Object.getPrototypeOf(o);
75 };
76 return _getPrototypeOf(o);
77 }
78 function _setPrototypeOf(o, p) {
79 _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
80 o.__proto__ = p;
81 return o;
82 };
83 return _setPrototypeOf(o, p);
84 }
85 function _isNativeReflectConstruct() {
86 if (typeof Reflect === "undefined" || !Reflect.construct) return false;
87 if (Reflect.construct.sham) return false;
88 if (typeof Proxy === "function") return true;
89 try {
90 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
91 return true;
92 } catch (e) {
93 return false;
94 }
95 }
96 function _assertThisInitialized(self) {
97 if (self === void 0) {
98 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
99 }
100 return self;
101 }
102 function _possibleConstructorReturn(self, call) {
103 if (call && (typeof call === "object" || typeof call === "function")) {
104 return call;
105 } else if (call !== void 0) {
106 throw new TypeError("Derived constructors may only return object or undefined");
107 }
108 return _assertThisInitialized(self);
109 }
110 function _createSuper(Derived) {
111 var hasNativeReflectConstruct = _isNativeReflectConstruct();
112 return function _createSuperInternal() {
113 var Super = _getPrototypeOf(Derived),
114 result;
115 if (hasNativeReflectConstruct) {
116 var NewTarget = _getPrototypeOf(this).constructor;
117 result = Reflect.construct(Super, arguments, NewTarget);
118 } else {
119 result = Super.apply(this, arguments);
120 }
121 return _possibleConstructorReturn(this, result);
122 };
123 }
124 function _superPropBase(object, property) {
125 while (!Object.prototype.hasOwnProperty.call(object, property)) {
126 object = _getPrototypeOf(object);
127 if (object === null) break;
128 }
129 return object;
130 }
131 function _get() {
132 if (typeof Reflect !== "undefined" && Reflect.get) {
133 _get = Reflect.get.bind();
134 } else {
135 _get = function _get(target, property, receiver) {
136 var base = _superPropBase(target, property);
137 if (!base) return;
138 var desc = Object.getOwnPropertyDescriptor(base, property);
139 if (desc.get) {
140 return desc.get.call(arguments.length < 3 ? target : receiver);
141 }
142 return desc.value;
143 };
144 }
145 return _get.apply(this, arguments);
146 }
147 function _slicedToArray(arr, i) {
148 return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
149 }
150 function _toConsumableArray(arr) {
151 return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
152 }
153 function _arrayWithoutHoles(arr) {
154 if (Array.isArray(arr)) return _arrayLikeToArray(arr);
155 }
156 function _arrayWithHoles(arr) {
157 if (Array.isArray(arr)) return arr;
158 }
159 function _iterableToArray(iter) {
160 if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
161 }
162 function _unsupportedIterableToArray(o, minLen) {
163 if (!o) return;
164 if (typeof o === "string") return _arrayLikeToArray(o, minLen);
165 var n = Object.prototype.toString.call(o).slice(8, -1);
166 if (n === "Object" && o.constructor) n = o.constructor.name;
167 if (n === "Map" || n === "Set") return Array.from(o);
168 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
169 }
170 function _arrayLikeToArray(arr, len) {
171 if (len == null || len > arr.length) len = arr.length;
172 for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
173 return arr2;
174 }
175 function _nonIterableSpread() {
176 throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
177 }
178 function _nonIterableRest() {
179 throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
180 }
181 function _createForOfIteratorHelper(o, allowArrayLike) {
182 var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
183 if (!it) {
184 if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
185 if (it) o = it;
186 var i = 0;
187 var F = function () {};
188 return {
189 s: F,
190 n: function () {
191 if (i >= o.length) return {
192 done: true
193 };
194 return {
195 done: false,
196 value: o[i++]
197 };
198 },
199 e: function (e) {
200 throw e;
201 },
202 f: F
203 };
204 }
205 throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
206 }
207 var normalCompletion = true,
208 didErr = false,
209 err;
210 return {
211 s: function () {
212 it = it.call(o);
213 },
214 n: function () {
215 var step = it.next();
216 normalCompletion = step.done;
217 return step;
218 },
219 e: function (e) {
220 didErr = true;
221 err = e;
222 },
223 f: function () {
224 try {
225 if (!normalCompletion && it.return != null) it.return();
226 } finally {
227 if (didErr) throw err;
228 }
229 }
230 };
231 }
232 function _toPrimitive(input, hint) {
233 if (typeof input !== "object" || input === null) return input;
234 var prim = input[Symbol.toPrimitive];
235 if (prim !== undefined) {
236 var res = prim.call(input, hint || "default");
237 if (typeof res !== "object") return res;
238 throw new TypeError("@@toPrimitive must return a primitive value.");
239 }
240 return (hint === "string" ? String : Number)(input);
241 }
242 function _toPropertyKey(arg) {
243 var key = _toPrimitive(arg, "string");
244 return typeof key === "symbol" ? key : String(key);
245 }
246
247 var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
248
249 var check = function (it) {
250 return it && it.Math == Math && it;
251 };
252
253 // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
254 var global$d =
255 // eslint-disable-next-line es/no-global-this -- safe
256 check(typeof globalThis == 'object' && globalThis) ||
257 check(typeof window == 'object' && window) ||
258 // eslint-disable-next-line no-restricted-globals -- safe
259 check(typeof self == 'object' && self) ||
260 check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
261 // eslint-disable-next-line no-new-func -- fallback
262 (function () { return this; })() || Function('return this')();
263
264 var objectGetOwnPropertyDescriptor = {};
265
266 var fails$j = function (exec) {
267 try {
268 return !!exec();
269 } catch (error) {
270 return true;
271 }
272 };
273
274 var fails$i = fails$j;
275
276 // Detect IE8's incomplete defineProperty implementation
277 var descriptors = !fails$i(function () {
278 // eslint-disable-next-line es/no-object-defineproperty -- required for testing
279 return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
280 });
281
282 var fails$h = fails$j;
283
284 var functionBindNative = !fails$h(function () {
285 // eslint-disable-next-line es/no-function-prototype-bind -- safe
286 var test = (function () { /* empty */ }).bind();
287 // eslint-disable-next-line no-prototype-builtins -- safe
288 return typeof test != 'function' || test.hasOwnProperty('prototype');
289 });
290
291 var NATIVE_BIND$2 = functionBindNative;
292
293 var call$8 = Function.prototype.call;
294
295 var functionCall = NATIVE_BIND$2 ? call$8.bind(call$8) : function () {
296 return call$8.apply(call$8, arguments);
297 };
298
299 var objectPropertyIsEnumerable = {};
300
301 var $propertyIsEnumerable$1 = {}.propertyIsEnumerable;
302 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
303 var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
304
305 // Nashorn ~ JDK8 bug
306 var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable$1.call({ 1: 2 }, 1);
307
308 // `Object.prototype.propertyIsEnumerable` method implementation
309 // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
310 objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
311 var descriptor = getOwnPropertyDescriptor$1(this, V);
312 return !!descriptor && descriptor.enumerable;
313 } : $propertyIsEnumerable$1;
314
315 var createPropertyDescriptor$3 = function (bitmap, value) {
316 return {
317 enumerable: !(bitmap & 1),
318 configurable: !(bitmap & 2),
319 writable: !(bitmap & 4),
320 value: value
321 };
322 };
323
324 var NATIVE_BIND$1 = functionBindNative;
325
326 var FunctionPrototype$1 = Function.prototype;
327 var call$7 = FunctionPrototype$1.call;
328 var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$7, call$7);
329
330 var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
331 return function () {
332 return call$7.apply(fn, arguments);
333 };
334 };
335
336 var uncurryThis$k = functionUncurryThis;
337
338 var toString$7 = uncurryThis$k({}.toString);
339 var stringSlice$2 = uncurryThis$k(''.slice);
340
341 var classofRaw$2 = function (it) {
342 return stringSlice$2(toString$7(it), 8, -1);
343 };
344
345 var uncurryThis$j = functionUncurryThis;
346 var fails$g = fails$j;
347 var classof$7 = classofRaw$2;
348
349 var $Object$3 = Object;
350 var split = uncurryThis$j(''.split);
351
352 // fallback for non-array-like ES3 and non-enumerable old V8 strings
353 var indexedObject = fails$g(function () {
354 // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
355 // eslint-disable-next-line no-prototype-builtins -- safe
356 return !$Object$3('z').propertyIsEnumerable(0);
357 }) ? function (it) {
358 return classof$7(it) == 'String' ? split(it, '') : $Object$3(it);
359 } : $Object$3;
360
361 // we can't use just `it == null` since of `document.all` special case
362 // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
363 var isNullOrUndefined$3 = function (it) {
364 return it === null || it === undefined;
365 };
366
367 var isNullOrUndefined$2 = isNullOrUndefined$3;
368
369 var $TypeError$8 = TypeError;
370
371 // `RequireObjectCoercible` abstract operation
372 // https://tc39.es/ecma262/#sec-requireobjectcoercible
373 var requireObjectCoercible$5 = function (it) {
374 if (isNullOrUndefined$2(it)) throw $TypeError$8("Can't call method on " + it);
375 return it;
376 };
377
378 // toObject with fallback for non-array-like ES3 strings
379 var IndexedObject$3 = indexedObject;
380 var requireObjectCoercible$4 = requireObjectCoercible$5;
381
382 var toIndexedObject$6 = function (it) {
383 return IndexedObject$3(requireObjectCoercible$4(it));
384 };
385
386 var documentAll$2 = typeof document == 'object' && document.all;
387
388 // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
389 // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
390 var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
391
392 var documentAll_1 = {
393 all: documentAll$2,
394 IS_HTMLDDA: IS_HTMLDDA
395 };
396
397 var $documentAll$1 = documentAll_1;
398
399 var documentAll$1 = $documentAll$1.all;
400
401 // `IsCallable` abstract operation
402 // https://tc39.es/ecma262/#sec-iscallable
403 var isCallable$d = $documentAll$1.IS_HTMLDDA ? function (argument) {
404 return typeof argument == 'function' || argument === documentAll$1;
405 } : function (argument) {
406 return typeof argument == 'function';
407 };
408
409 var isCallable$c = isCallable$d;
410 var $documentAll = documentAll_1;
411
412 var documentAll = $documentAll.all;
413
414 var isObject$8 = $documentAll.IS_HTMLDDA ? function (it) {
415 return typeof it == 'object' ? it !== null : isCallable$c(it) || it === documentAll;
416 } : function (it) {
417 return typeof it == 'object' ? it !== null : isCallable$c(it);
418 };
419
420 var global$c = global$d;
421 var isCallable$b = isCallable$d;
422
423 var aFunction = function (argument) {
424 return isCallable$b(argument) ? argument : undefined;
425 };
426
427 var getBuiltIn$4 = function (namespace, method) {
428 return arguments.length < 2 ? aFunction(global$c[namespace]) : global$c[namespace] && global$c[namespace][method];
429 };
430
431 var uncurryThis$i = functionUncurryThis;
432
433 var objectIsPrototypeOf = uncurryThis$i({}.isPrototypeOf);
434
435 var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
436
437 var global$b = global$d;
438 var userAgent = engineUserAgent;
439
440 var process = global$b.process;
441 var Deno = global$b.Deno;
442 var versions = process && process.versions || Deno && Deno.version;
443 var v8 = versions && versions.v8;
444 var match, version;
445
446 if (v8) {
447 match = v8.split('.');
448 // in old Chrome, versions of V8 isn't V8 = Chrome / 10
449 // but their correct versions are not interesting for us
450 version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
451 }
452
453 // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
454 // so check `userAgent` even if `.v8` exists, but 0
455 if (!version && userAgent) {
456 match = userAgent.match(/Edge\/(\d+)/);
457 if (!match || match[1] >= 74) {
458 match = userAgent.match(/Chrome\/(\d+)/);
459 if (match) version = +match[1];
460 }
461 }
462
463 var engineV8Version = version;
464
465 /* eslint-disable es/no-symbol -- required for testing */
466
467 var V8_VERSION$2 = engineV8Version;
468 var fails$f = fails$j;
469
470 // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
471 var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$f(function () {
472 var symbol = Symbol();
473 // Chrome 38 Symbol has incorrect toString conversion
474 // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
475 return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
476 // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
477 !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
478 });
479
480 /* eslint-disable es/no-symbol -- required for testing */
481
482 var NATIVE_SYMBOL$1 = symbolConstructorDetection;
483
484 var useSymbolAsUid = NATIVE_SYMBOL$1
485 && !Symbol.sham
486 && typeof Symbol.iterator == 'symbol';
487
488 var getBuiltIn$3 = getBuiltIn$4;
489 var isCallable$a = isCallable$d;
490 var isPrototypeOf = objectIsPrototypeOf;
491 var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
492
493 var $Object$2 = Object;
494
495 var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
496 return typeof it == 'symbol';
497 } : function (it) {
498 var $Symbol = getBuiltIn$3('Symbol');
499 return isCallable$a($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
500 };
501
502 var $String$3 = String;
503
504 var tryToString$1 = function (argument) {
505 try {
506 return $String$3(argument);
507 } catch (error) {
508 return 'Object';
509 }
510 };
511
512 var isCallable$9 = isCallable$d;
513 var tryToString = tryToString$1;
514
515 var $TypeError$7 = TypeError;
516
517 // `Assert: IsCallable(argument) is true`
518 var aCallable$2 = function (argument) {
519 if (isCallable$9(argument)) return argument;
520 throw $TypeError$7(tryToString(argument) + ' is not a function');
521 };
522
523 var aCallable$1 = aCallable$2;
524 var isNullOrUndefined$1 = isNullOrUndefined$3;
525
526 // `GetMethod` abstract operation
527 // https://tc39.es/ecma262/#sec-getmethod
528 var getMethod$2 = function (V, P) {
529 var func = V[P];
530 return isNullOrUndefined$1(func) ? undefined : aCallable$1(func);
531 };
532
533 var call$6 = functionCall;
534 var isCallable$8 = isCallable$d;
535 var isObject$7 = isObject$8;
536
537 var $TypeError$6 = TypeError;
538
539 // `OrdinaryToPrimitive` abstract operation
540 // https://tc39.es/ecma262/#sec-ordinarytoprimitive
541 var ordinaryToPrimitive$1 = function (input, pref) {
542 var fn, val;
543 if (pref === 'string' && isCallable$8(fn = input.toString) && !isObject$7(val = call$6(fn, input))) return val;
544 if (isCallable$8(fn = input.valueOf) && !isObject$7(val = call$6(fn, input))) return val;
545 if (pref !== 'string' && isCallable$8(fn = input.toString) && !isObject$7(val = call$6(fn, input))) return val;
546 throw $TypeError$6("Can't convert object to primitive value");
547 };
548
549 var sharedExports = {};
550 var shared$4 = {
551 get exports(){ return sharedExports; },
552 set exports(v){ sharedExports = v; },
553 };
554
555 var global$a = global$d;
556
557 // eslint-disable-next-line es/no-object-defineproperty -- safe
558 var defineProperty$3 = Object.defineProperty;
559
560 var defineGlobalProperty$3 = function (key, value) {
561 try {
562 defineProperty$3(global$a, key, { value: value, configurable: true, writable: true });
563 } catch (error) {
564 global$a[key] = value;
565 } return value;
566 };
567
568 var global$9 = global$d;
569 var defineGlobalProperty$2 = defineGlobalProperty$3;
570
571 var SHARED = '__core-js_shared__';
572 var store$3 = global$9[SHARED] || defineGlobalProperty$2(SHARED, {});
573
574 var sharedStore = store$3;
575
576 var store$2 = sharedStore;
577
578 (shared$4.exports = function (key, value) {
579 return store$2[key] || (store$2[key] = value !== undefined ? value : {});
580 })('versions', []).push({
581 version: '3.29.0',
582 mode: 'global',
583 copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
584 license: 'https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE',
585 source: 'https://github.com/zloirock/core-js'
586 });
587
588 var requireObjectCoercible$3 = requireObjectCoercible$5;
589
590 var $Object$1 = Object;
591
592 // `ToObject` abstract operation
593 // https://tc39.es/ecma262/#sec-toobject
594 var toObject$4 = function (argument) {
595 return $Object$1(requireObjectCoercible$3(argument));
596 };
597
598 var uncurryThis$h = functionUncurryThis;
599 var toObject$3 = toObject$4;
600
601 var hasOwnProperty = uncurryThis$h({}.hasOwnProperty);
602
603 // `HasOwnProperty` abstract operation
604 // https://tc39.es/ecma262/#sec-hasownproperty
605 // eslint-disable-next-line es/no-object-hasown -- safe
606 var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
607 return hasOwnProperty(toObject$3(it), key);
608 };
609
610 var uncurryThis$g = functionUncurryThis;
611
612 var id = 0;
613 var postfix = Math.random();
614 var toString$6 = uncurryThis$g(1.0.toString);
615
616 var uid$2 = function (key) {
617 return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$6(++id + postfix, 36);
618 };
619
620 var global$8 = global$d;
621 var shared$3 = sharedExports;
622 var hasOwn$6 = hasOwnProperty_1;
623 var uid$1 = uid$2;
624 var NATIVE_SYMBOL = symbolConstructorDetection;
625 var USE_SYMBOL_AS_UID = useSymbolAsUid;
626
627 var Symbol$1 = global$8.Symbol;
628 var WellKnownSymbolsStore = shared$3('wks');
629 var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
630
631 var wellKnownSymbol$a = function (name) {
632 if (!hasOwn$6(WellKnownSymbolsStore, name)) {
633 WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)
634 ? Symbol$1[name]
635 : createWellKnownSymbol('Symbol.' + name);
636 } return WellKnownSymbolsStore[name];
637 };
638
639 var call$5 = functionCall;
640 var isObject$6 = isObject$8;
641 var isSymbol$1 = isSymbol$2;
642 var getMethod$1 = getMethod$2;
643 var ordinaryToPrimitive = ordinaryToPrimitive$1;
644 var wellKnownSymbol$9 = wellKnownSymbol$a;
645
646 var $TypeError$5 = TypeError;
647 var TO_PRIMITIVE = wellKnownSymbol$9('toPrimitive');
648
649 // `ToPrimitive` abstract operation
650 // https://tc39.es/ecma262/#sec-toprimitive
651 var toPrimitive$1 = function (input, pref) {
652 if (!isObject$6(input) || isSymbol$1(input)) return input;
653 var exoticToPrim = getMethod$1(input, TO_PRIMITIVE);
654 var result;
655 if (exoticToPrim) {
656 if (pref === undefined) pref = 'default';
657 result = call$5(exoticToPrim, input, pref);
658 if (!isObject$6(result) || isSymbol$1(result)) return result;
659 throw $TypeError$5("Can't convert object to primitive value");
660 }
661 if (pref === undefined) pref = 'number';
662 return ordinaryToPrimitive(input, pref);
663 };
664
665 var toPrimitive = toPrimitive$1;
666 var isSymbol = isSymbol$2;
667
668 // `ToPropertyKey` abstract operation
669 // https://tc39.es/ecma262/#sec-topropertykey
670 var toPropertyKey$3 = function (argument) {
671 var key = toPrimitive(argument, 'string');
672 return isSymbol(key) ? key : key + '';
673 };
674
675 var global$7 = global$d;
676 var isObject$5 = isObject$8;
677
678 var document$1 = global$7.document;
679 // typeof document.createElement is 'object' in old IE
680 var EXISTS$1 = isObject$5(document$1) && isObject$5(document$1.createElement);
681
682 var documentCreateElement$1 = function (it) {
683 return EXISTS$1 ? document$1.createElement(it) : {};
684 };
685
686 var DESCRIPTORS$9 = descriptors;
687 var fails$e = fails$j;
688 var createElement = documentCreateElement$1;
689
690 // Thanks to IE8 for its funny defineProperty
691 var ie8DomDefine = !DESCRIPTORS$9 && !fails$e(function () {
692 // eslint-disable-next-line es/no-object-defineproperty -- required for testing
693 return Object.defineProperty(createElement('div'), 'a', {
694 get: function () { return 7; }
695 }).a != 7;
696 });
697
698 var DESCRIPTORS$8 = descriptors;
699 var call$4 = functionCall;
700 var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
701 var createPropertyDescriptor$2 = createPropertyDescriptor$3;
702 var toIndexedObject$5 = toIndexedObject$6;
703 var toPropertyKey$2 = toPropertyKey$3;
704 var hasOwn$5 = hasOwnProperty_1;
705 var IE8_DOM_DEFINE$1 = ie8DomDefine;
706
707 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
708 var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
709
710 // `Object.getOwnPropertyDescriptor` method
711 // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
712 objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
713 O = toIndexedObject$5(O);
714 P = toPropertyKey$2(P);
715 if (IE8_DOM_DEFINE$1) try {
716 return $getOwnPropertyDescriptor$1(O, P);
717 } catch (error) { /* empty */ }
718 if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call$4(propertyIsEnumerableModule$1.f, O, P), O[P]);
719 };
720
721 var objectDefineProperty = {};
722
723 var DESCRIPTORS$7 = descriptors;
724 var fails$d = fails$j;
725
726 // V8 ~ Chrome 36-
727 // https://bugs.chromium.org/p/v8/issues/detail?id=3334
728 var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$d(function () {
729 // eslint-disable-next-line es/no-object-defineproperty -- required for testing
730 return Object.defineProperty(function () { /* empty */ }, 'prototype', {
731 value: 42,
732 writable: false
733 }).prototype != 42;
734 });
735
736 var isObject$4 = isObject$8;
737
738 var $String$2 = String;
739 var $TypeError$4 = TypeError;
740
741 // `Assert: Type(argument) is Object`
742 var anObject$7 = function (argument) {
743 if (isObject$4(argument)) return argument;
744 throw $TypeError$4($String$2(argument) + ' is not an object');
745 };
746
747 var DESCRIPTORS$6 = descriptors;
748 var IE8_DOM_DEFINE = ie8DomDefine;
749 var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
750 var anObject$6 = anObject$7;
751 var toPropertyKey$1 = toPropertyKey$3;
752
753 var $TypeError$3 = TypeError;
754 // eslint-disable-next-line es/no-object-defineproperty -- safe
755 var $defineProperty = Object.defineProperty;
756 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
757 var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
758 var ENUMERABLE = 'enumerable';
759 var CONFIGURABLE$1 = 'configurable';
760 var WRITABLE = 'writable';
761
762 // `Object.defineProperty` method
763 // https://tc39.es/ecma262/#sec-object.defineproperty
764 objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
765 anObject$6(O);
766 P = toPropertyKey$1(P);
767 anObject$6(Attributes);
768 if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
769 var current = $getOwnPropertyDescriptor(O, P);
770 if (current && current[WRITABLE]) {
771 O[P] = Attributes.value;
772 Attributes = {
773 configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
774 enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
775 writable: false
776 };
777 }
778 } return $defineProperty(O, P, Attributes);
779 } : $defineProperty : function defineProperty(O, P, Attributes) {
780 anObject$6(O);
781 P = toPropertyKey$1(P);
782 anObject$6(Attributes);
783 if (IE8_DOM_DEFINE) try {
784 return $defineProperty(O, P, Attributes);
785 } catch (error) { /* empty */ }
786 if ('get' in Attributes || 'set' in Attributes) throw $TypeError$3('Accessors not supported');
787 if ('value' in Attributes) O[P] = Attributes.value;
788 return O;
789 };
790
791 var DESCRIPTORS$5 = descriptors;
792 var definePropertyModule$4 = objectDefineProperty;
793 var createPropertyDescriptor$1 = createPropertyDescriptor$3;
794
795 var createNonEnumerableProperty$3 = DESCRIPTORS$5 ? function (object, key, value) {
796 return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
797 } : function (object, key, value) {
798 object[key] = value;
799 return object;
800 };
801
802 var makeBuiltInExports = {};
803 var makeBuiltIn$2 = {
804 get exports(){ return makeBuiltInExports; },
805 set exports(v){ makeBuiltInExports = v; },
806 };
807
808 var DESCRIPTORS$4 = descriptors;
809 var hasOwn$4 = hasOwnProperty_1;
810
811 var FunctionPrototype = Function.prototype;
812 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
813 var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
814
815 var EXISTS = hasOwn$4(FunctionPrototype, 'name');
816 // additional protection from minified / mangled / dropped function names
817 var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
818 var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype, 'name').configurable));
819
820 var functionName = {
821 EXISTS: EXISTS,
822 PROPER: PROPER,
823 CONFIGURABLE: CONFIGURABLE
824 };
825
826 var uncurryThis$f = functionUncurryThis;
827 var isCallable$7 = isCallable$d;
828 var store$1 = sharedStore;
829
830 var functionToString = uncurryThis$f(Function.toString);
831
832 // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
833 if (!isCallable$7(store$1.inspectSource)) {
834 store$1.inspectSource = function (it) {
835 return functionToString(it);
836 };
837 }
838
839 var inspectSource$2 = store$1.inspectSource;
840
841 var global$6 = global$d;
842 var isCallable$6 = isCallable$d;
843
844 var WeakMap$1 = global$6.WeakMap;
845
846 var weakMapBasicDetection = isCallable$6(WeakMap$1) && /native code/.test(String(WeakMap$1));
847
848 var shared$2 = sharedExports;
849 var uid = uid$2;
850
851 var keys = shared$2('keys');
852
853 var sharedKey$2 = function (key) {
854 return keys[key] || (keys[key] = uid(key));
855 };
856
857 var hiddenKeys$4 = {};
858
859 var NATIVE_WEAK_MAP = weakMapBasicDetection;
860 var global$5 = global$d;
861 var isObject$3 = isObject$8;
862 var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
863 var hasOwn$3 = hasOwnProperty_1;
864 var shared$1 = sharedStore;
865 var sharedKey$1 = sharedKey$2;
866 var hiddenKeys$3 = hiddenKeys$4;
867
868 var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
869 var TypeError$1 = global$5.TypeError;
870 var WeakMap = global$5.WeakMap;
871 var set, get, has;
872
873 var enforce = function (it) {
874 return has(it) ? get(it) : set(it, {});
875 };
876
877 var getterFor = function (TYPE) {
878 return function (it) {
879 var state;
880 if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
881 throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
882 } return state;
883 };
884 };
885
886 if (NATIVE_WEAK_MAP || shared$1.state) {
887 var store = shared$1.state || (shared$1.state = new WeakMap());
888 /* eslint-disable no-self-assign -- prototype methods protection */
889 store.get = store.get;
890 store.has = store.has;
891 store.set = store.set;
892 /* eslint-enable no-self-assign -- prototype methods protection */
893 set = function (it, metadata) {
894 if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
895 metadata.facade = it;
896 store.set(it, metadata);
897 return metadata;
898 };
899 get = function (it) {
900 return store.get(it) || {};
901 };
902 has = function (it) {
903 return store.has(it);
904 };
905 } else {
906 var STATE = sharedKey$1('state');
907 hiddenKeys$3[STATE] = true;
908 set = function (it, metadata) {
909 if (hasOwn$3(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
910 metadata.facade = it;
911 createNonEnumerableProperty$2(it, STATE, metadata);
912 return metadata;
913 };
914 get = function (it) {
915 return hasOwn$3(it, STATE) ? it[STATE] : {};
916 };
917 has = function (it) {
918 return hasOwn$3(it, STATE);
919 };
920 }
921
922 var internalState = {
923 set: set,
924 get: get,
925 has: has,
926 enforce: enforce,
927 getterFor: getterFor
928 };
929
930 var uncurryThis$e = functionUncurryThis;
931 var fails$c = fails$j;
932 var isCallable$5 = isCallable$d;
933 var hasOwn$2 = hasOwnProperty_1;
934 var DESCRIPTORS$3 = descriptors;
935 var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
936 var inspectSource$1 = inspectSource$2;
937 var InternalStateModule = internalState;
938
939 var enforceInternalState = InternalStateModule.enforce;
940 var getInternalState$1 = InternalStateModule.get;
941 var $String$1 = String;
942 // eslint-disable-next-line es/no-object-defineproperty -- safe
943 var defineProperty$2 = Object.defineProperty;
944 var stringSlice$1 = uncurryThis$e(''.slice);
945 var replace$2 = uncurryThis$e(''.replace);
946 var join = uncurryThis$e([].join);
947
948 var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$c(function () {
949 return defineProperty$2(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
950 });
951
952 var TEMPLATE = String(String).split('String');
953
954 var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
955 if (stringSlice$1($String$1(name), 0, 7) === 'Symbol(') {
956 name = '[' + replace$2($String$1(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
957 }
958 if (options && options.getter) name = 'get ' + name;
959 if (options && options.setter) name = 'set ' + name;
960 if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
961 if (DESCRIPTORS$3) defineProperty$2(value, 'name', { value: name, configurable: true });
962 else value.name = name;
963 }
964 if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
965 defineProperty$2(value, 'length', { value: options.arity });
966 }
967 try {
968 if (options && hasOwn$2(options, 'constructor') && options.constructor) {
969 if (DESCRIPTORS$3) defineProperty$2(value, 'prototype', { writable: false });
970 // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
971 } else if (value.prototype) value.prototype = undefined;
972 } catch (error) { /* empty */ }
973 var state = enforceInternalState(value);
974 if (!hasOwn$2(state, 'source')) {
975 state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
976 } return value;
977 };
978
979 // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
980 // eslint-disable-next-line no-extend-native -- required
981 Function.prototype.toString = makeBuiltIn$1(function toString() {
982 return isCallable$5(this) && getInternalState$1(this).source || inspectSource$1(this);
983 }, 'toString');
984
985 var isCallable$4 = isCallable$d;
986 var definePropertyModule$3 = objectDefineProperty;
987 var makeBuiltIn = makeBuiltInExports;
988 var defineGlobalProperty$1 = defineGlobalProperty$3;
989
990 var defineBuiltIn$3 = function (O, key, value, options) {
991 if (!options) options = {};
992 var simple = options.enumerable;
993 var name = options.name !== undefined ? options.name : key;
994 if (isCallable$4(value)) makeBuiltIn(value, name, options);
995 if (options.global) {
996 if (simple) O[key] = value;
997 else defineGlobalProperty$1(key, value);
998 } else {
999 try {
1000 if (!options.unsafe) delete O[key];
1001 else if (O[key]) simple = true;
1002 } catch (error) { /* empty */ }
1003 if (simple) O[key] = value;
1004 else definePropertyModule$3.f(O, key, {
1005 value: value,
1006 enumerable: false,
1007 configurable: !options.nonConfigurable,
1008 writable: !options.nonWritable
1009 });
1010 } return O;
1011 };
1012
1013 var objectGetOwnPropertyNames = {};
1014
1015 var ceil = Math.ceil;
1016 var floor = Math.floor;
1017
1018 // `Math.trunc` method
1019 // https://tc39.es/ecma262/#sec-math.trunc
1020 // eslint-disable-next-line es/no-math-trunc -- safe
1021 var mathTrunc = Math.trunc || function trunc(x) {
1022 var n = +x;
1023 return (n > 0 ? floor : ceil)(n);
1024 };
1025
1026 var trunc = mathTrunc;
1027
1028 // `ToIntegerOrInfinity` abstract operation
1029 // https://tc39.es/ecma262/#sec-tointegerorinfinity
1030 var toIntegerOrInfinity$2 = function (argument) {
1031 var number = +argument;
1032 // eslint-disable-next-line no-self-compare -- NaN check
1033 return number !== number || number === 0 ? 0 : trunc(number);
1034 };
1035
1036 var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
1037
1038 var max = Math.max;
1039 var min$1 = Math.min;
1040
1041 // Helper for a popular repeating case of the spec:
1042 // Let integer be ? ToInteger(index).
1043 // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
1044 var toAbsoluteIndex$1 = function (index, length) {
1045 var integer = toIntegerOrInfinity$1(index);
1046 return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
1047 };
1048
1049 var toIntegerOrInfinity = toIntegerOrInfinity$2;
1050
1051 var min = Math.min;
1052
1053 // `ToLength` abstract operation
1054 // https://tc39.es/ecma262/#sec-tolength
1055 var toLength$1 = function (argument) {
1056 return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
1057 };
1058
1059 var toLength = toLength$1;
1060
1061 // `LengthOfArrayLike` abstract operation
1062 // https://tc39.es/ecma262/#sec-lengthofarraylike
1063 var lengthOfArrayLike$3 = function (obj) {
1064 return toLength(obj.length);
1065 };
1066
1067 var toIndexedObject$4 = toIndexedObject$6;
1068 var toAbsoluteIndex = toAbsoluteIndex$1;
1069 var lengthOfArrayLike$2 = lengthOfArrayLike$3;
1070
1071 // `Array.prototype.{ indexOf, includes }` methods implementation
1072 var createMethod$3 = function (IS_INCLUDES) {
1073 return function ($this, el, fromIndex) {
1074 var O = toIndexedObject$4($this);
1075 var length = lengthOfArrayLike$2(O);
1076 var index = toAbsoluteIndex(fromIndex, length);
1077 var value;
1078 // Array#includes uses SameValueZero equality algorithm
1079 // eslint-disable-next-line no-self-compare -- NaN check
1080 if (IS_INCLUDES && el != el) while (length > index) {
1081 value = O[index++];
1082 // eslint-disable-next-line no-self-compare -- NaN check
1083 if (value != value) return true;
1084 // Array#indexOf ignores holes, Array#includes - not
1085 } else for (;length > index; index++) {
1086 if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
1087 } return !IS_INCLUDES && -1;
1088 };
1089 };
1090
1091 var arrayIncludes = {
1092 // `Array.prototype.includes` method
1093 // https://tc39.es/ecma262/#sec-array.prototype.includes
1094 includes: createMethod$3(true),
1095 // `Array.prototype.indexOf` method
1096 // https://tc39.es/ecma262/#sec-array.prototype.indexof
1097 indexOf: createMethod$3(false)
1098 };
1099
1100 var uncurryThis$d = functionUncurryThis;
1101 var hasOwn$1 = hasOwnProperty_1;
1102 var toIndexedObject$3 = toIndexedObject$6;
1103 var indexOf$1 = arrayIncludes.indexOf;
1104 var hiddenKeys$2 = hiddenKeys$4;
1105
1106 var push$2 = uncurryThis$d([].push);
1107
1108 var objectKeysInternal = function (object, names) {
1109 var O = toIndexedObject$3(object);
1110 var i = 0;
1111 var result = [];
1112 var key;
1113 for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && push$2(result, key);
1114 // Don't enum bug & hidden keys
1115 while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
1116 ~indexOf$1(result, key) || push$2(result, key);
1117 }
1118 return result;
1119 };
1120
1121 // IE8- don't enum bug keys
1122 var enumBugKeys$3 = [
1123 'constructor',
1124 'hasOwnProperty',
1125 'isPrototypeOf',
1126 'propertyIsEnumerable',
1127 'toLocaleString',
1128 'toString',
1129 'valueOf'
1130 ];
1131
1132 var internalObjectKeys$1 = objectKeysInternal;
1133 var enumBugKeys$2 = enumBugKeys$3;
1134
1135 var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
1136
1137 // `Object.getOwnPropertyNames` method
1138 // https://tc39.es/ecma262/#sec-object.getownpropertynames
1139 // eslint-disable-next-line es/no-object-getownpropertynames -- safe
1140 objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1141 return internalObjectKeys$1(O, hiddenKeys$1);
1142 };
1143
1144 var objectGetOwnPropertySymbols = {};
1145
1146 // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
1147 objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1148
1149 var getBuiltIn$2 = getBuiltIn$4;
1150 var uncurryThis$c = functionUncurryThis;
1151 var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1152 var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1153 var anObject$5 = anObject$7;
1154
1155 var concat$1 = uncurryThis$c([].concat);
1156
1157 // all object keys, includes non-enumerable and symbols
1158 var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
1159 var keys = getOwnPropertyNamesModule.f(anObject$5(it));
1160 var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
1161 return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
1162 };
1163
1164 var hasOwn = hasOwnProperty_1;
1165 var ownKeys = ownKeys$1;
1166 var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1167 var definePropertyModule$2 = objectDefineProperty;
1168
1169 var copyConstructorProperties$1 = function (target, source, exceptions) {
1170 var keys = ownKeys(source);
1171 var defineProperty = definePropertyModule$2.f;
1172 var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1173 for (var i = 0; i < keys.length; i++) {
1174 var key = keys[i];
1175 if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
1176 defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1177 }
1178 }
1179 };
1180
1181 var fails$b = fails$j;
1182 var isCallable$3 = isCallable$d;
1183
1184 var replacement = /#|\.prototype\./;
1185
1186 var isForced$1 = function (feature, detection) {
1187 var value = data[normalize(feature)];
1188 return value == POLYFILL ? true
1189 : value == NATIVE ? false
1190 : isCallable$3(detection) ? fails$b(detection)
1191 : !!detection;
1192 };
1193
1194 var normalize = isForced$1.normalize = function (string) {
1195 return String(string).replace(replacement, '.').toLowerCase();
1196 };
1197
1198 var data = isForced$1.data = {};
1199 var NATIVE = isForced$1.NATIVE = 'N';
1200 var POLYFILL = isForced$1.POLYFILL = 'P';
1201
1202 var isForced_1 = isForced$1;
1203
1204 var global$4 = global$d;
1205 var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1206 var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
1207 var defineBuiltIn$2 = defineBuiltIn$3;
1208 var defineGlobalProperty = defineGlobalProperty$3;
1209 var copyConstructorProperties = copyConstructorProperties$1;
1210 var isForced = isForced_1;
1211
1212 /*
1213 options.target - name of the target object
1214 options.global - target is the global object
1215 options.stat - export as static methods of target
1216 options.proto - export as prototype methods of target
1217 options.real - real prototype method for the `pure` version
1218 options.forced - export even if the native feature is available
1219 options.bind - bind methods to the target, required for the `pure` version
1220 options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
1221 options.unsafe - use the simple assignment of property instead of delete + defineProperty
1222 options.sham - add a flag to not completely full polyfills
1223 options.enumerable - export as enumerable property
1224 options.dontCallGetSet - prevent calling a getter on target
1225 options.name - the .name of the function if it does not match the key
1226 */
1227 var _export = function (options, source) {
1228 var TARGET = options.target;
1229 var GLOBAL = options.global;
1230 var STATIC = options.stat;
1231 var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1232 if (GLOBAL) {
1233 target = global$4;
1234 } else if (STATIC) {
1235 target = global$4[TARGET] || defineGlobalProperty(TARGET, {});
1236 } else {
1237 target = (global$4[TARGET] || {}).prototype;
1238 }
1239 if (target) for (key in source) {
1240 sourceProperty = source[key];
1241 if (options.dontCallGetSet) {
1242 descriptor = getOwnPropertyDescriptor(target, key);
1243 targetProperty = descriptor && descriptor.value;
1244 } else targetProperty = target[key];
1245 FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1246 // contained in target
1247 if (!FORCED && targetProperty !== undefined) {
1248 if (typeof sourceProperty == typeof targetProperty) continue;
1249 copyConstructorProperties(sourceProperty, targetProperty);
1250 }
1251 // add a flag to not completely full polyfills
1252 if (options.sham || (targetProperty && targetProperty.sham)) {
1253 createNonEnumerableProperty$1(sourceProperty, 'sham', true);
1254 }
1255 defineBuiltIn$2(target, key, sourceProperty, options);
1256 }
1257 };
1258
1259 var internalObjectKeys = objectKeysInternal;
1260 var enumBugKeys$1 = enumBugKeys$3;
1261
1262 // `Object.keys` method
1263 // https://tc39.es/ecma262/#sec-object.keys
1264 // eslint-disable-next-line es/no-object-keys -- safe
1265 var objectKeys$3 = Object.keys || function keys(O) {
1266 return internalObjectKeys(O, enumBugKeys$1);
1267 };
1268
1269 var DESCRIPTORS$2 = descriptors;
1270 var uncurryThis$b = functionUncurryThis;
1271 var call$3 = functionCall;
1272 var fails$a = fails$j;
1273 var objectKeys$2 = objectKeys$3;
1274 var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1275 var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1276 var toObject$2 = toObject$4;
1277 var IndexedObject$2 = indexedObject;
1278
1279 // eslint-disable-next-line es/no-object-assign -- safe
1280 var $assign = Object.assign;
1281 // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1282 var defineProperty$1 = Object.defineProperty;
1283 var concat = uncurryThis$b([].concat);
1284
1285 // `Object.assign` method
1286 // https://tc39.es/ecma262/#sec-object.assign
1287 var objectAssign = !$assign || fails$a(function () {
1288 // should have correct order of operations (Edge bug)
1289 if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$1({}, 'a', {
1290 enumerable: true,
1291 get: function () {
1292 defineProperty$1(this, 'b', {
1293 value: 3,
1294 enumerable: false
1295 });
1296 }
1297 }), { b: 2 })).b !== 1) return true;
1298 // should work with symbols and should have deterministic property order (V8 bug)
1299 var A = {};
1300 var B = {};
1301 // eslint-disable-next-line es/no-symbol -- safe
1302 var symbol = Symbol();
1303 var alphabet = 'abcdefghijklmnopqrst';
1304 A[symbol] = 7;
1305 alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1306 return $assign({}, A)[symbol] != 7 || objectKeys$2($assign({}, B)).join('') != alphabet;
1307 }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1308 var T = toObject$2(target);
1309 var argumentsLength = arguments.length;
1310 var index = 1;
1311 var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1312 var propertyIsEnumerable = propertyIsEnumerableModule.f;
1313 while (argumentsLength > index) {
1314 var S = IndexedObject$2(arguments[index++]);
1315 var keys = getOwnPropertySymbols ? concat(objectKeys$2(S), getOwnPropertySymbols(S)) : objectKeys$2(S);
1316 var length = keys.length;
1317 var j = 0;
1318 var key;
1319 while (length > j) {
1320 key = keys[j++];
1321 if (!DESCRIPTORS$2 || call$3(propertyIsEnumerable, S, key)) T[key] = S[key];
1322 }
1323 } return T;
1324 } : $assign;
1325
1326 var $$a = _export;
1327 var assign = objectAssign;
1328
1329 // `Object.assign` method
1330 // https://tc39.es/ecma262/#sec-object.assign
1331 // eslint-disable-next-line es/no-object-assign -- required for testing
1332 $$a({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1333 assign: assign
1334 });
1335
1336 var wellKnownSymbol$8 = wellKnownSymbol$a;
1337
1338 var TO_STRING_TAG$1 = wellKnownSymbol$8('toStringTag');
1339 var test = {};
1340
1341 test[TO_STRING_TAG$1] = 'z';
1342
1343 var toStringTagSupport = String(test) === '[object z]';
1344
1345 var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
1346 var isCallable$2 = isCallable$d;
1347 var classofRaw$1 = classofRaw$2;
1348 var wellKnownSymbol$7 = wellKnownSymbol$a;
1349
1350 var TO_STRING_TAG = wellKnownSymbol$7('toStringTag');
1351 var $Object = Object;
1352
1353 // ES3 wrong here
1354 var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) == 'Arguments';
1355
1356 // fallback for IE11 Script Access Denied error
1357 var tryGet = function (it, key) {
1358 try {
1359 return it[key];
1360 } catch (error) { /* empty */ }
1361 };
1362
1363 // getting tag from ES6+ `Object.prototype.toString`
1364 var classof$6 = TO_STRING_TAG_SUPPORT$2 ? classofRaw$1 : function (it) {
1365 var O, tag, result;
1366 return it === undefined ? 'Undefined' : it === null ? 'Null'
1367 // @@toStringTag case
1368 : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1369 // builtinTag case
1370 : CORRECT_ARGUMENTS ? classofRaw$1(O)
1371 // ES3 arguments fallback
1372 : (result = classofRaw$1(O)) == 'Object' && isCallable$2(O.callee) ? 'Arguments' : result;
1373 };
1374
1375 var classof$5 = classof$6;
1376
1377 var $String = String;
1378
1379 var toString$5 = function (argument) {
1380 if (classof$5(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
1381 return $String(argument);
1382 };
1383
1384 var anObject$4 = anObject$7;
1385
1386 // `RegExp.prototype.flags` getter implementation
1387 // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
1388 var regexpFlags$1 = function () {
1389 var that = anObject$4(this);
1390 var result = '';
1391 if (that.hasIndices) result += 'd';
1392 if (that.global) result += 'g';
1393 if (that.ignoreCase) result += 'i';
1394 if (that.multiline) result += 'm';
1395 if (that.dotAll) result += 's';
1396 if (that.unicode) result += 'u';
1397 if (that.unicodeSets) result += 'v';
1398 if (that.sticky) result += 'y';
1399 return result;
1400 };
1401
1402 var fails$9 = fails$j;
1403 var global$3 = global$d;
1404
1405 // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
1406 var $RegExp$2 = global$3.RegExp;
1407
1408 var UNSUPPORTED_Y$1 = fails$9(function () {
1409 var re = $RegExp$2('a', 'y');
1410 re.lastIndex = 2;
1411 return re.exec('abcd') != null;
1412 });
1413
1414 // UC Browser bug
1415 // https://github.com/zloirock/core-js/issues/1008
1416 var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$9(function () {
1417 return !$RegExp$2('a', 'y').sticky;
1418 });
1419
1420 var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$9(function () {
1421 // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
1422 var re = $RegExp$2('^r', 'gy');
1423 re.lastIndex = 2;
1424 return re.exec('str') != null;
1425 });
1426
1427 var regexpStickyHelpers = {
1428 BROKEN_CARET: BROKEN_CARET,
1429 MISSED_STICKY: MISSED_STICKY,
1430 UNSUPPORTED_Y: UNSUPPORTED_Y$1
1431 };
1432
1433 var objectDefineProperties = {};
1434
1435 var DESCRIPTORS$1 = descriptors;
1436 var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1437 var definePropertyModule$1 = objectDefineProperty;
1438 var anObject$3 = anObject$7;
1439 var toIndexedObject$2 = toIndexedObject$6;
1440 var objectKeys$1 = objectKeys$3;
1441
1442 // `Object.defineProperties` method
1443 // https://tc39.es/ecma262/#sec-object.defineproperties
1444 // eslint-disable-next-line es/no-object-defineproperties -- safe
1445 objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1446 anObject$3(O);
1447 var props = toIndexedObject$2(Properties);
1448 var keys = objectKeys$1(Properties);
1449 var length = keys.length;
1450 var index = 0;
1451 var key;
1452 while (length > index) definePropertyModule$1.f(O, key = keys[index++], props[key]);
1453 return O;
1454 };
1455
1456 var getBuiltIn$1 = getBuiltIn$4;
1457
1458 var html$1 = getBuiltIn$1('document', 'documentElement');
1459
1460 /* global ActiveXObject -- old IE, WSH */
1461
1462 var anObject$2 = anObject$7;
1463 var definePropertiesModule = objectDefineProperties;
1464 var enumBugKeys = enumBugKeys$3;
1465 var hiddenKeys = hiddenKeys$4;
1466 var html = html$1;
1467 var documentCreateElement = documentCreateElement$1;
1468 var sharedKey = sharedKey$2;
1469
1470 var GT = '>';
1471 var LT = '<';
1472 var PROTOTYPE = 'prototype';
1473 var SCRIPT = 'script';
1474 var IE_PROTO = sharedKey('IE_PROTO');
1475
1476 var EmptyConstructor = function () { /* empty */ };
1477
1478 var scriptTag = function (content) {
1479 return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1480 };
1481
1482 // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1483 var NullProtoObjectViaActiveX = function (activeXDocument) {
1484 activeXDocument.write(scriptTag(''));
1485 activeXDocument.close();
1486 var temp = activeXDocument.parentWindow.Object;
1487 activeXDocument = null; // avoid memory leak
1488 return temp;
1489 };
1490
1491 // Create object with fake `null` prototype: use iframe Object with cleared prototype
1492 var NullProtoObjectViaIFrame = function () {
1493 // Thrash, waste and sodomy: IE GC bug
1494 var iframe = documentCreateElement('iframe');
1495 var JS = 'java' + SCRIPT + ':';
1496 var iframeDocument;
1497 iframe.style.display = 'none';
1498 html.appendChild(iframe);
1499 // https://github.com/zloirock/core-js/issues/475
1500 iframe.src = String(JS);
1501 iframeDocument = iframe.contentWindow.document;
1502 iframeDocument.open();
1503 iframeDocument.write(scriptTag('document.F=Object'));
1504 iframeDocument.close();
1505 return iframeDocument.F;
1506 };
1507
1508 // Check for document.domain and active x support
1509 // No need to use active x approach when document.domain is not set
1510 // see https://github.com/es-shims/es5-shim/issues/150
1511 // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1512 // avoid IE GC bug
1513 var activeXDocument;
1514 var NullProtoObject = function () {
1515 try {
1516 activeXDocument = new ActiveXObject('htmlfile');
1517 } catch (error) { /* ignore */ }
1518 NullProtoObject = typeof document != 'undefined'
1519 ? document.domain && activeXDocument
1520 ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1521 : NullProtoObjectViaIFrame()
1522 : NullProtoObjectViaActiveX(activeXDocument); // WSH
1523 var length = enumBugKeys.length;
1524 while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1525 return NullProtoObject();
1526 };
1527
1528 hiddenKeys[IE_PROTO] = true;
1529
1530 // `Object.create` method
1531 // https://tc39.es/ecma262/#sec-object.create
1532 // eslint-disable-next-line es/no-object-create -- safe
1533 var objectCreate = Object.create || function create(O, Properties) {
1534 var result;
1535 if (O !== null) {
1536 EmptyConstructor[PROTOTYPE] = anObject$2(O);
1537 result = new EmptyConstructor();
1538 EmptyConstructor[PROTOTYPE] = null;
1539 // add "__proto__" for Object.getPrototypeOf polyfill
1540 result[IE_PROTO] = O;
1541 } else result = NullProtoObject();
1542 return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1543 };
1544
1545 var fails$8 = fails$j;
1546 var global$2 = global$d;
1547
1548 // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
1549 var $RegExp$1 = global$2.RegExp;
1550
1551 var regexpUnsupportedDotAll = fails$8(function () {
1552 var re = $RegExp$1('.', 's');
1553 return !(re.dotAll && re.exec('\n') && re.flags === 's');
1554 });
1555
1556 var fails$7 = fails$j;
1557 var global$1 = global$d;
1558
1559 // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
1560 var $RegExp = global$1.RegExp;
1561
1562 var regexpUnsupportedNcg = fails$7(function () {
1563 var re = $RegExp('(?<a>b)', 'g');
1564 return re.exec('b').groups.a !== 'b' ||
1565 'b'.replace(re, '$<a>c') !== 'bc';
1566 });
1567
1568 /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
1569 /* eslint-disable regexp/no-useless-quantifier -- testing */
1570 var call$2 = functionCall;
1571 var uncurryThis$a = functionUncurryThis;
1572 var toString$4 = toString$5;
1573 var regexpFlags = regexpFlags$1;
1574 var stickyHelpers = regexpStickyHelpers;
1575 var shared = sharedExports;
1576 var create$1 = objectCreate;
1577 var getInternalState = internalState.get;
1578 var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
1579 var UNSUPPORTED_NCG = regexpUnsupportedNcg;
1580
1581 var nativeReplace = shared('native-string-replace', String.prototype.replace);
1582 var nativeExec = RegExp.prototype.exec;
1583 var patchedExec = nativeExec;
1584 var charAt = uncurryThis$a(''.charAt);
1585 var indexOf = uncurryThis$a(''.indexOf);
1586 var replace$1 = uncurryThis$a(''.replace);
1587 var stringSlice = uncurryThis$a(''.slice);
1588
1589 var UPDATES_LAST_INDEX_WRONG = (function () {
1590 var re1 = /a/;
1591 var re2 = /b*/g;
1592 call$2(nativeExec, re1, 'a');
1593 call$2(nativeExec, re2, 'a');
1594 return re1.lastIndex !== 0 || re2.lastIndex !== 0;
1595 })();
1596
1597 var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
1598
1599 // nonparticipating capturing group, copied from es5-shim's String#split patch.
1600 var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
1601
1602 var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
1603
1604 if (PATCH) {
1605 patchedExec = function exec(string) {
1606 var re = this;
1607 var state = getInternalState(re);
1608 var str = toString$4(string);
1609 var raw = state.raw;
1610 var result, reCopy, lastIndex, match, i, object, group;
1611
1612 if (raw) {
1613 raw.lastIndex = re.lastIndex;
1614 result = call$2(patchedExec, raw, str);
1615 re.lastIndex = raw.lastIndex;
1616 return result;
1617 }
1618
1619 var groups = state.groups;
1620 var sticky = UNSUPPORTED_Y && re.sticky;
1621 var flags = call$2(regexpFlags, re);
1622 var source = re.source;
1623 var charsAdded = 0;
1624 var strCopy = str;
1625
1626 if (sticky) {
1627 flags = replace$1(flags, 'y', '');
1628 if (indexOf(flags, 'g') === -1) {
1629 flags += 'g';
1630 }
1631
1632 strCopy = stringSlice(str, re.lastIndex);
1633 // Support anchored sticky behavior.
1634 if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt(str, re.lastIndex - 1) !== '\n')) {
1635 source = '(?: ' + source + ')';
1636 strCopy = ' ' + strCopy;
1637 charsAdded++;
1638 }
1639 // ^(? + rx + ) is needed, in combination with some str slicing, to
1640 // simulate the 'y' flag.
1641 reCopy = new RegExp('^(?:' + source + ')', flags);
1642 }
1643
1644 if (NPCG_INCLUDED) {
1645 reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
1646 }
1647 if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
1648
1649 match = call$2(nativeExec, sticky ? reCopy : re, strCopy);
1650
1651 if (sticky) {
1652 if (match) {
1653 match.input = stringSlice(match.input, charsAdded);
1654 match[0] = stringSlice(match[0], charsAdded);
1655 match.index = re.lastIndex;
1656 re.lastIndex += match[0].length;
1657 } else re.lastIndex = 0;
1658 } else if (UPDATES_LAST_INDEX_WRONG && match) {
1659 re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
1660 }
1661 if (NPCG_INCLUDED && match && match.length > 1) {
1662 // Fix browsers whose `exec` methods don't consistently return `undefined`
1663 // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
1664 call$2(nativeReplace, match[0], reCopy, function () {
1665 for (i = 1; i < arguments.length - 2; i++) {
1666 if (arguments[i] === undefined) match[i] = undefined;
1667 }
1668 });
1669 }
1670
1671 if (match && groups) {
1672 match.groups = object = create$1(null);
1673 for (i = 0; i < groups.length; i++) {
1674 group = groups[i];
1675 object[group[0]] = match[group[1]];
1676 }
1677 }
1678
1679 return match;
1680 };
1681 }
1682
1683 var regexpExec$2 = patchedExec;
1684
1685 var $$9 = _export;
1686 var exec$1 = regexpExec$2;
1687
1688 // `RegExp.prototype.exec` method
1689 // https://tc39.es/ecma262/#sec-regexp.prototype.exec
1690 $$9({ target: 'RegExp', proto: true, forced: /./.exec !== exec$1 }, {
1691 exec: exec$1
1692 });
1693
1694 var classofRaw = classofRaw$2;
1695 var uncurryThis$9 = functionUncurryThis;
1696
1697 var functionUncurryThisClause = function (fn) {
1698 // Nashorn bug:
1699 // https://github.com/zloirock/core-js/issues/1128
1700 // https://github.com/zloirock/core-js/issues/1130
1701 if (classofRaw(fn) === 'Function') return uncurryThis$9(fn);
1702 };
1703
1704 // TODO: Remove from `core-js@4` since it's moved to entry points
1705
1706 var uncurryThis$8 = functionUncurryThisClause;
1707 var defineBuiltIn$1 = defineBuiltIn$3;
1708 var regexpExec$1 = regexpExec$2;
1709 var fails$6 = fails$j;
1710 var wellKnownSymbol$6 = wellKnownSymbol$a;
1711 var createNonEnumerableProperty = createNonEnumerableProperty$3;
1712
1713 var SPECIES$2 = wellKnownSymbol$6('species');
1714 var RegExpPrototype = RegExp.prototype;
1715
1716 var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
1717 var SYMBOL = wellKnownSymbol$6(KEY);
1718
1719 var DELEGATES_TO_SYMBOL = !fails$6(function () {
1720 // String methods call symbol-named RegEp methods
1721 var O = {};
1722 O[SYMBOL] = function () { return 7; };
1723 return ''[KEY](O) != 7;
1724 });
1725
1726 var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$6(function () {
1727 // Symbol-named RegExp methods call .exec
1728 var execCalled = false;
1729 var re = /a/;
1730
1731 if (KEY === 'split') {
1732 // We can't use real regex here since it causes deoptimization
1733 // and serious performance degradation in V8
1734 // https://github.com/zloirock/core-js/issues/306
1735 re = {};
1736 // RegExp[@@split] doesn't call the regex's exec method, but first creates
1737 // a new one. We need to return the patched regex when creating the new one.
1738 re.constructor = {};
1739 re.constructor[SPECIES$2] = function () { return re; };
1740 re.flags = '';
1741 re[SYMBOL] = /./[SYMBOL];
1742 }
1743
1744 re.exec = function () { execCalled = true; return null; };
1745
1746 re[SYMBOL]('');
1747 return !execCalled;
1748 });
1749
1750 if (
1751 !DELEGATES_TO_SYMBOL ||
1752 !DELEGATES_TO_EXEC ||
1753 FORCED
1754 ) {
1755 var uncurriedNativeRegExpMethod = uncurryThis$8(/./[SYMBOL]);
1756 var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
1757 var uncurriedNativeMethod = uncurryThis$8(nativeMethod);
1758 var $exec = regexp.exec;
1759 if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
1760 if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
1761 // The native String method already delegates to @@method (this
1762 // polyfilled function), leasing to infinite recursion.
1763 // We avoid it by directly calling the native @@method method.
1764 return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
1765 }
1766 return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
1767 }
1768 return { done: false };
1769 });
1770
1771 defineBuiltIn$1(String.prototype, KEY, methods[0]);
1772 defineBuiltIn$1(RegExpPrototype, SYMBOL, methods[1]);
1773 }
1774
1775 if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
1776 };
1777
1778 // `SameValue` abstract operation
1779 // https://tc39.es/ecma262/#sec-samevalue
1780 // eslint-disable-next-line es/no-object-is -- safe
1781 var sameValue$1 = Object.is || function is(x, y) {
1782 // eslint-disable-next-line no-self-compare -- NaN check
1783 return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
1784 };
1785
1786 var call$1 = functionCall;
1787 var anObject$1 = anObject$7;
1788 var isCallable$1 = isCallable$d;
1789 var classof$4 = classofRaw$2;
1790 var regexpExec = regexpExec$2;
1791
1792 var $TypeError$2 = TypeError;
1793
1794 // `RegExpExec` abstract operation
1795 // https://tc39.es/ecma262/#sec-regexpexec
1796 var regexpExecAbstract = function (R, S) {
1797 var exec = R.exec;
1798 if (isCallable$1(exec)) {
1799 var result = call$1(exec, R, S);
1800 if (result !== null) anObject$1(result);
1801 return result;
1802 }
1803 if (classof$4(R) === 'RegExp') return call$1(regexpExec, R, S);
1804 throw $TypeError$2('RegExp#exec called on incompatible receiver');
1805 };
1806
1807 var call = functionCall;
1808 var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
1809 var anObject = anObject$7;
1810 var isNullOrUndefined = isNullOrUndefined$3;
1811 var requireObjectCoercible$2 = requireObjectCoercible$5;
1812 var sameValue = sameValue$1;
1813 var toString$3 = toString$5;
1814 var getMethod = getMethod$2;
1815 var regExpExec = regexpExecAbstract;
1816
1817 // @@search logic
1818 fixRegExpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCallNative) {
1819 return [
1820 // `String.prototype.search` method
1821 // https://tc39.es/ecma262/#sec-string.prototype.search
1822 function search(regexp) {
1823 var O = requireObjectCoercible$2(this);
1824 var searcher = isNullOrUndefined(regexp) ? undefined : getMethod(regexp, SEARCH);
1825 return searcher ? call(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString$3(O));
1826 },
1827 // `RegExp.prototype[@@search]` method
1828 // https://tc39.es/ecma262/#sec-regexp.prototype-@@search
1829 function (string) {
1830 var rx = anObject(this);
1831 var S = toString$3(string);
1832 var res = maybeCallNative(nativeSearch, rx, S);
1833
1834 if (res.done) return res.value;
1835
1836 var previousLastIndex = rx.lastIndex;
1837 if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;
1838 var result = regExpExec(rx, S);
1839 if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;
1840 return result === null ? -1 : result.index;
1841 }
1842 ];
1843 });
1844
1845 var fails$5 = fails$j;
1846
1847 var arrayMethodIsStrict$2 = function (METHOD_NAME, argument) {
1848 var method = [][METHOD_NAME];
1849 return !!method && fails$5(function () {
1850 // eslint-disable-next-line no-useless-call -- required for testing
1851 method.call(null, argument || function () { return 1; }, 1);
1852 });
1853 };
1854
1855 var $$8 = _export;
1856 var uncurryThis$7 = functionUncurryThis;
1857 var IndexedObject$1 = indexedObject;
1858 var toIndexedObject$1 = toIndexedObject$6;
1859 var arrayMethodIsStrict$1 = arrayMethodIsStrict$2;
1860
1861 var nativeJoin = uncurryThis$7([].join);
1862
1863 var ES3_STRINGS = IndexedObject$1 != Object;
1864 var FORCED$2 = ES3_STRINGS || !arrayMethodIsStrict$1('join', ',');
1865
1866 // `Array.prototype.join` method
1867 // https://tc39.es/ecma262/#sec-array.prototype.join
1868 $$8({ target: 'Array', proto: true, forced: FORCED$2 }, {
1869 join: function join(separator) {
1870 return nativeJoin(toIndexedObject$1(this), separator === undefined ? ',' : separator);
1871 }
1872 });
1873
1874 var uncurryThis$6 = functionUncurryThisClause;
1875 var aCallable = aCallable$2;
1876 var NATIVE_BIND = functionBindNative;
1877
1878 var bind$1 = uncurryThis$6(uncurryThis$6.bind);
1879
1880 // optional / simple context binding
1881 var functionBindContext = function (fn, that) {
1882 aCallable(fn);
1883 return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
1884 return fn.apply(that, arguments);
1885 };
1886 };
1887
1888 var classof$3 = classofRaw$2;
1889
1890 // `IsArray` abstract operation
1891 // https://tc39.es/ecma262/#sec-isarray
1892 // eslint-disable-next-line es/no-array-isarray -- safe
1893 var isArray$2 = Array.isArray || function isArray(argument) {
1894 return classof$3(argument) == 'Array';
1895 };
1896
1897 var uncurryThis$5 = functionUncurryThis;
1898 var fails$4 = fails$j;
1899 var isCallable = isCallable$d;
1900 var classof$2 = classof$6;
1901 var getBuiltIn = getBuiltIn$4;
1902 var inspectSource = inspectSource$2;
1903
1904 var noop = function () { /* empty */ };
1905 var empty = [];
1906 var construct = getBuiltIn('Reflect', 'construct');
1907 var constructorRegExp = /^\s*(?:class|function)\b/;
1908 var exec = uncurryThis$5(constructorRegExp.exec);
1909 var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
1910
1911 var isConstructorModern = function isConstructor(argument) {
1912 if (!isCallable(argument)) return false;
1913 try {
1914 construct(noop, empty, argument);
1915 return true;
1916 } catch (error) {
1917 return false;
1918 }
1919 };
1920
1921 var isConstructorLegacy = function isConstructor(argument) {
1922 if (!isCallable(argument)) return false;
1923 switch (classof$2(argument)) {
1924 case 'AsyncFunction':
1925 case 'GeneratorFunction':
1926 case 'AsyncGeneratorFunction': return false;
1927 }
1928 try {
1929 // we can't check .prototype since constructors produced by .bind haven't it
1930 // `Function#toString` throws on some built-it function in some legacy engines
1931 // (for example, `DOMQuad` and similar in FF41-)
1932 return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
1933 } catch (error) {
1934 return true;
1935 }
1936 };
1937
1938 isConstructorLegacy.sham = true;
1939
1940 // `IsConstructor` abstract operation
1941 // https://tc39.es/ecma262/#sec-isconstructor
1942 var isConstructor$1 = !construct || fails$4(function () {
1943 var called;
1944 return isConstructorModern(isConstructorModern.call)
1945 || !isConstructorModern(Object)
1946 || !isConstructorModern(function () { called = true; })
1947 || called;
1948 }) ? isConstructorLegacy : isConstructorModern;
1949
1950 var isArray$1 = isArray$2;
1951 var isConstructor = isConstructor$1;
1952 var isObject$2 = isObject$8;
1953 var wellKnownSymbol$5 = wellKnownSymbol$a;
1954
1955 var SPECIES$1 = wellKnownSymbol$5('species');
1956 var $Array = Array;
1957
1958 // a part of `ArraySpeciesCreate` abstract operation
1959 // https://tc39.es/ecma262/#sec-arrayspeciescreate
1960 var arraySpeciesConstructor$1 = function (originalArray) {
1961 var C;
1962 if (isArray$1(originalArray)) {
1963 C = originalArray.constructor;
1964 // cross-realm fallback
1965 if (isConstructor(C) && (C === $Array || isArray$1(C.prototype))) C = undefined;
1966 else if (isObject$2(C)) {
1967 C = C[SPECIES$1];
1968 if (C === null) C = undefined;
1969 }
1970 } return C === undefined ? $Array : C;
1971 };
1972
1973 var arraySpeciesConstructor = arraySpeciesConstructor$1;
1974
1975 // `ArraySpeciesCreate` abstract operation
1976 // https://tc39.es/ecma262/#sec-arrayspeciescreate
1977 var arraySpeciesCreate$2 = function (originalArray, length) {
1978 return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
1979 };
1980
1981 var bind = functionBindContext;
1982 var uncurryThis$4 = functionUncurryThis;
1983 var IndexedObject = indexedObject;
1984 var toObject$1 = toObject$4;
1985 var lengthOfArrayLike$1 = lengthOfArrayLike$3;
1986 var arraySpeciesCreate$1 = arraySpeciesCreate$2;
1987
1988 var push$1 = uncurryThis$4([].push);
1989
1990 // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
1991 var createMethod$2 = function (TYPE) {
1992 var IS_MAP = TYPE == 1;
1993 var IS_FILTER = TYPE == 2;
1994 var IS_SOME = TYPE == 3;
1995 var IS_EVERY = TYPE == 4;
1996 var IS_FIND_INDEX = TYPE == 6;
1997 var IS_FILTER_REJECT = TYPE == 7;
1998 var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
1999 return function ($this, callbackfn, that, specificCreate) {
2000 var O = toObject$1($this);
2001 var self = IndexedObject(O);
2002 var boundFunction = bind(callbackfn, that);
2003 var length = lengthOfArrayLike$1(self);
2004 var index = 0;
2005 var create = specificCreate || arraySpeciesCreate$1;
2006 var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
2007 var value, result;
2008 for (;length > index; index++) if (NO_HOLES || index in self) {
2009 value = self[index];
2010 result = boundFunction(value, index, O);
2011 if (TYPE) {
2012 if (IS_MAP) target[index] = result; // map
2013 else if (result) switch (TYPE) {
2014 case 3: return true; // some
2015 case 5: return value; // find
2016 case 6: return index; // findIndex
2017 case 2: push$1(target, value); // filter
2018 } else switch (TYPE) {
2019 case 4: return false; // every
2020 case 7: push$1(target, value); // filterReject
2021 }
2022 }
2023 }
2024 return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
2025 };
2026 };
2027
2028 var arrayIteration = {
2029 // `Array.prototype.forEach` method
2030 // https://tc39.es/ecma262/#sec-array.prototype.foreach
2031 forEach: createMethod$2(0),
2032 // `Array.prototype.map` method
2033 // https://tc39.es/ecma262/#sec-array.prototype.map
2034 map: createMethod$2(1),
2035 // `Array.prototype.filter` method
2036 // https://tc39.es/ecma262/#sec-array.prototype.filter
2037 filter: createMethod$2(2),
2038 // `Array.prototype.some` method
2039 // https://tc39.es/ecma262/#sec-array.prototype.some
2040 some: createMethod$2(3),
2041 // `Array.prototype.every` method
2042 // https://tc39.es/ecma262/#sec-array.prototype.every
2043 every: createMethod$2(4),
2044 // `Array.prototype.find` method
2045 // https://tc39.es/ecma262/#sec-array.prototype.find
2046 find: createMethod$2(5),
2047 // `Array.prototype.findIndex` method
2048 // https://tc39.es/ecma262/#sec-array.prototype.findIndex
2049 findIndex: createMethod$2(6),
2050 // `Array.prototype.filterReject` method
2051 // https://github.com/tc39/proposal-array-filtering
2052 filterReject: createMethod$2(7)
2053 };
2054
2055 var wellKnownSymbol$4 = wellKnownSymbol$a;
2056 var create = objectCreate;
2057 var defineProperty = objectDefineProperty.f;
2058
2059 var UNSCOPABLES = wellKnownSymbol$4('unscopables');
2060 var ArrayPrototype = Array.prototype;
2061
2062 // Array.prototype[@@unscopables]
2063 // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2064 if (ArrayPrototype[UNSCOPABLES] == undefined) {
2065 defineProperty(ArrayPrototype, UNSCOPABLES, {
2066 configurable: true,
2067 value: create(null)
2068 });
2069 }
2070
2071 // add a key to Array.prototype[@@unscopables]
2072 var addToUnscopables$2 = function (key) {
2073 ArrayPrototype[UNSCOPABLES][key] = true;
2074 };
2075
2076 var $$7 = _export;
2077 var $find = arrayIteration.find;
2078 var addToUnscopables$1 = addToUnscopables$2;
2079
2080 var FIND = 'find';
2081 var SKIPS_HOLES = true;
2082
2083 // Shouldn't skip holes
2084 if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
2085
2086 // `Array.prototype.find` method
2087 // https://tc39.es/ecma262/#sec-array.prototype.find
2088 $$7({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
2089 find: function find(callbackfn /* , that = undefined */) {
2090 return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
2091 }
2092 });
2093
2094 // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2095 addToUnscopables$1(FIND);
2096
2097 var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
2098 var classof$1 = classof$6;
2099
2100 // `Object.prototype.toString` method implementation
2101 // https://tc39.es/ecma262/#sec-object.prototype.tostring
2102 var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
2103 return '[object ' + classof$1(this) + ']';
2104 };
2105
2106 var TO_STRING_TAG_SUPPORT = toStringTagSupport;
2107 var defineBuiltIn = defineBuiltIn$3;
2108 var toString$2 = objectToString;
2109
2110 // `Object.prototype.toString` method
2111 // https://tc39.es/ecma262/#sec-object.prototype.tostring
2112 if (!TO_STRING_TAG_SUPPORT) {
2113 defineBuiltIn(Object.prototype, 'toString', toString$2, { unsafe: true });
2114 }
2115
2116 var $TypeError$1 = TypeError;
2117 var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
2118
2119 var doesNotExceedSafeInteger$1 = function (it) {
2120 if (it > MAX_SAFE_INTEGER) throw $TypeError$1('Maximum allowed index exceeded');
2121 return it;
2122 };
2123
2124 var toPropertyKey = toPropertyKey$3;
2125 var definePropertyModule = objectDefineProperty;
2126 var createPropertyDescriptor = createPropertyDescriptor$3;
2127
2128 var createProperty$1 = function (object, key, value) {
2129 var propertyKey = toPropertyKey(key);
2130 if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
2131 else object[propertyKey] = value;
2132 };
2133
2134 var fails$3 = fails$j;
2135 var wellKnownSymbol$3 = wellKnownSymbol$a;
2136 var V8_VERSION$1 = engineV8Version;
2137
2138 var SPECIES = wellKnownSymbol$3('species');
2139
2140 var arrayMethodHasSpeciesSupport$2 = function (METHOD_NAME) {
2141 // We can't use this feature detection in V8 since it causes
2142 // deoptimization and serious performance degradation
2143 // https://github.com/zloirock/core-js/issues/677
2144 return V8_VERSION$1 >= 51 || !fails$3(function () {
2145 var array = [];
2146 var constructor = array.constructor = {};
2147 constructor[SPECIES] = function () {
2148 return { foo: 1 };
2149 };
2150 return array[METHOD_NAME](Boolean).foo !== 1;
2151 });
2152 };
2153
2154 var $$6 = _export;
2155 var fails$2 = fails$j;
2156 var isArray = isArray$2;
2157 var isObject$1 = isObject$8;
2158 var toObject = toObject$4;
2159 var lengthOfArrayLike = lengthOfArrayLike$3;
2160 var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
2161 var createProperty = createProperty$1;
2162 var arraySpeciesCreate = arraySpeciesCreate$2;
2163 var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$2;
2164 var wellKnownSymbol$2 = wellKnownSymbol$a;
2165 var V8_VERSION = engineV8Version;
2166
2167 var IS_CONCAT_SPREADABLE = wellKnownSymbol$2('isConcatSpreadable');
2168
2169 // We can't use this feature detection in V8 since it causes
2170 // deoptimization and serious performance degradation
2171 // https://github.com/zloirock/core-js/issues/679
2172 var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$2(function () {
2173 var array = [];
2174 array[IS_CONCAT_SPREADABLE] = false;
2175 return array.concat()[0] !== array;
2176 });
2177
2178 var isConcatSpreadable = function (O) {
2179 if (!isObject$1(O)) return false;
2180 var spreadable = O[IS_CONCAT_SPREADABLE];
2181 return spreadable !== undefined ? !!spreadable : isArray(O);
2182 };
2183
2184 var FORCED$1 = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport$1('concat');
2185
2186 // `Array.prototype.concat` method
2187 // https://tc39.es/ecma262/#sec-array.prototype.concat
2188 // with adding support of @@isConcatSpreadable and @@species
2189 $$6({ target: 'Array', proto: true, arity: 1, forced: FORCED$1 }, {
2190 // eslint-disable-next-line no-unused-vars -- required for `.length`
2191 concat: function concat(arg) {
2192 var O = toObject(this);
2193 var A = arraySpeciesCreate(O, 0);
2194 var n = 0;
2195 var i, k, length, len, E;
2196 for (i = -1, length = arguments.length; i < length; i++) {
2197 E = i === -1 ? O : arguments[i];
2198 if (isConcatSpreadable(E)) {
2199 len = lengthOfArrayLike(E);
2200 doesNotExceedSafeInteger(n + len);
2201 for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
2202 } else {
2203 doesNotExceedSafeInteger(n + 1);
2204 createProperty(A, n++, E);
2205 }
2206 }
2207 A.length = n;
2208 return A;
2209 }
2210 });
2211
2212 var $$5 = _export;
2213 var $filter = arrayIteration.filter;
2214 var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$2;
2215
2216 var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
2217
2218 // `Array.prototype.filter` method
2219 // https://tc39.es/ecma262/#sec-array.prototype.filter
2220 // with adding support of @@species
2221 $$5({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
2222 filter: function filter(callbackfn /* , thisArg */) {
2223 return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
2224 }
2225 });
2226
2227 var DESCRIPTORS = descriptors;
2228 var uncurryThis$3 = functionUncurryThis;
2229 var objectKeys = objectKeys$3;
2230 var toIndexedObject = toIndexedObject$6;
2231 var $propertyIsEnumerable = objectPropertyIsEnumerable.f;
2232
2233 var propertyIsEnumerable = uncurryThis$3($propertyIsEnumerable);
2234 var push = uncurryThis$3([].push);
2235
2236 // `Object.{ entries, values }` methods implementation
2237 var createMethod$1 = function (TO_ENTRIES) {
2238 return function (it) {
2239 var O = toIndexedObject(it);
2240 var keys = objectKeys(O);
2241 var length = keys.length;
2242 var i = 0;
2243 var result = [];
2244 var key;
2245 while (length > i) {
2246 key = keys[i++];
2247 if (!DESCRIPTORS || propertyIsEnumerable(O, key)) {
2248 push(result, TO_ENTRIES ? [key, O[key]] : O[key]);
2249 }
2250 }
2251 return result;
2252 };
2253 };
2254
2255 var objectToArray = {
2256 // `Object.entries` method
2257 // https://tc39.es/ecma262/#sec-object.entries
2258 entries: createMethod$1(true),
2259 // `Object.values` method
2260 // https://tc39.es/ecma262/#sec-object.values
2261 values: createMethod$1(false)
2262 };
2263
2264 var $$4 = _export;
2265 var $entries = objectToArray.entries;
2266
2267 // `Object.entries` method
2268 // https://tc39.es/ecma262/#sec-object.entries
2269 $$4({ target: 'Object', stat: true }, {
2270 entries: function entries(O) {
2271 return $entries(O);
2272 }
2273 });
2274
2275 /* eslint-disable es/no-array-prototype-indexof -- required for testing */
2276 var $$3 = _export;
2277 var uncurryThis$2 = functionUncurryThisClause;
2278 var $indexOf = arrayIncludes.indexOf;
2279 var arrayMethodIsStrict = arrayMethodIsStrict$2;
2280
2281 var nativeIndexOf = uncurryThis$2([].indexOf);
2282
2283 var NEGATIVE_ZERO = !!nativeIndexOf && 1 / nativeIndexOf([1], 1, -0) < 0;
2284 var FORCED = NEGATIVE_ZERO || !arrayMethodIsStrict('indexOf');
2285
2286 // `Array.prototype.indexOf` method
2287 // https://tc39.es/ecma262/#sec-array.prototype.indexof
2288 $$3({ target: 'Array', proto: true, forced: FORCED }, {
2289 indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {
2290 var fromIndex = arguments.length > 1 ? arguments[1] : undefined;
2291 return NEGATIVE_ZERO
2292 // convert -0 to +0
2293 ? nativeIndexOf(this, searchElement, fromIndex) || 0
2294 : $indexOf(this, searchElement, fromIndex);
2295 }
2296 });
2297
2298 var $$2 = _export;
2299 var $includes = arrayIncludes.includes;
2300 var fails$1 = fails$j;
2301 var addToUnscopables = addToUnscopables$2;
2302
2303 // FF99+ bug
2304 var BROKEN_ON_SPARSE = fails$1(function () {
2305 // eslint-disable-next-line es/no-array-prototype-includes -- detection
2306 return !Array(1).includes();
2307 });
2308
2309 // `Array.prototype.includes` method
2310 // https://tc39.es/ecma262/#sec-array.prototype.includes
2311 $$2({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
2312 includes: function includes(el /* , fromIndex = 0 */) {
2313 return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
2314 }
2315 });
2316
2317 // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2318 addToUnscopables('includes');
2319
2320 var isObject = isObject$8;
2321 var classof = classofRaw$2;
2322 var wellKnownSymbol$1 = wellKnownSymbol$a;
2323
2324 var MATCH$1 = wellKnownSymbol$1('match');
2325
2326 // `IsRegExp` abstract operation
2327 // https://tc39.es/ecma262/#sec-isregexp
2328 var isRegexp = function (it) {
2329 var isRegExp;
2330 return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');
2331 };
2332
2333 var isRegExp = isRegexp;
2334
2335 var $TypeError = TypeError;
2336
2337 var notARegexp = function (it) {
2338 if (isRegExp(it)) {
2339 throw $TypeError("The method doesn't accept regular expressions");
2340 } return it;
2341 };
2342
2343 var wellKnownSymbol = wellKnownSymbol$a;
2344
2345 var MATCH = wellKnownSymbol('match');
2346
2347 var correctIsRegexpLogic = function (METHOD_NAME) {
2348 var regexp = /./;
2349 try {
2350 '/./'[METHOD_NAME](regexp);
2351 } catch (error1) {
2352 try {
2353 regexp[MATCH] = false;
2354 return '/./'[METHOD_NAME](regexp);
2355 } catch (error2) { /* empty */ }
2356 } return false;
2357 };
2358
2359 var $$1 = _export;
2360 var uncurryThis$1 = functionUncurryThis;
2361 var notARegExp = notARegexp;
2362 var requireObjectCoercible$1 = requireObjectCoercible$5;
2363 var toString$1 = toString$5;
2364 var correctIsRegExpLogic = correctIsRegexpLogic;
2365
2366 var stringIndexOf = uncurryThis$1(''.indexOf);
2367
2368 // `String.prototype.includes` method
2369 // https://tc39.es/ecma262/#sec-string.prototype.includes
2370 $$1({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
2371 includes: function includes(searchString /* , position = 0 */) {
2372 return !!~stringIndexOf(
2373 toString$1(requireObjectCoercible$1(this)),
2374 toString$1(notARegExp(searchString)),
2375 arguments.length > 1 ? arguments[1] : undefined
2376 );
2377 }
2378 });
2379
2380 // a string of all valid unicode whitespaces
2381 var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
2382 '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
2383
2384 var uncurryThis = functionUncurryThis;
2385 var requireObjectCoercible = requireObjectCoercible$5;
2386 var toString = toString$5;
2387 var whitespaces$1 = whitespaces$2;
2388
2389 var replace = uncurryThis(''.replace);
2390 var ltrim = RegExp('^[' + whitespaces$1 + ']+');
2391 var rtrim = RegExp('(^|[^' + whitespaces$1 + '])[' + whitespaces$1 + ']+$');
2392
2393 // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
2394 var createMethod = function (TYPE) {
2395 return function ($this) {
2396 var string = toString(requireObjectCoercible($this));
2397 if (TYPE & 1) string = replace(string, ltrim, '');
2398 if (TYPE & 2) string = replace(string, rtrim, '$1');
2399 return string;
2400 };
2401 };
2402
2403 var stringTrim = {
2404 // `String.prototype.{ trimLeft, trimStart }` methods
2405 // https://tc39.es/ecma262/#sec-string.prototype.trimstart
2406 start: createMethod(1),
2407 // `String.prototype.{ trimRight, trimEnd }` methods
2408 // https://tc39.es/ecma262/#sec-string.prototype.trimend
2409 end: createMethod(2),
2410 // `String.prototype.trim` method
2411 // https://tc39.es/ecma262/#sec-string.prototype.trim
2412 trim: createMethod(3)
2413 };
2414
2415 var PROPER_FUNCTION_NAME = functionName.PROPER;
2416 var fails = fails$j;
2417 var whitespaces = whitespaces$2;
2418
2419 var non = '\u200B\u0085\u180E';
2420
2421 // check that a method works with the correct list
2422 // of whitespaces and has a correct name
2423 var stringTrimForced = function (METHOD_NAME) {
2424 return fails(function () {
2425 return !!whitespaces[METHOD_NAME]()
2426 || non[METHOD_NAME]() !== non
2427 || (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);
2428 });
2429 };
2430
2431 var $ = _export;
2432 var $trim = stringTrim.trim;
2433 var forcedStringTrimMethod = stringTrimForced;
2434
2435 // `String.prototype.trim` method
2436 // https://tc39.es/ecma262/#sec-string.prototype.trim
2437 $({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
2438 trim: function trim() {
2439 return $trim(this);
2440 }
2441 });
2442
2443 /**
2444 * @author: aperez <aperez@datadec.es>
2445 * @version: v2.0.0
2446 *
2447 * @update Dennis Hernández
2448 * @update zhixin wen <wenzhixin2010@gmail.com>
2449 */
2450
2451 var Utils = $$b.fn.bootstrapTable.utils;
2452 var theme = {
2453 bootstrap3: {
2454 icons: {
2455 advancedSearchIcon: 'glyphicon-chevron-down'
2456 },
2457 classes: {},
2458 html: {
2459 modal: "\n <div id=\"avdSearchModal_%s\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"mySmallModalLabel\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-xs\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n <h4 class=\"modal-title\">%s</h4>\n </div>\n <div class=\"modal-body modal-body-custom\">\n <div class=\"container-fluid\" id=\"avdSearchModalContent_%s\"\n style=\"padding-right: 0px; padding-left: 0px;\" >\n </div>\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" id=\"btnCloseAvd_%s\" class=\"btn btn-%s\">%s</button>\n </div>\n </div>\n </div>\n </div>\n "
2460 }
2461 },
2462 bootstrap4: {
2463 icons: {
2464 advancedSearchIcon: 'fa-chevron-down'
2465 },
2466 classes: {},
2467 html: {
2468 modal: "\n <div id=\"avdSearchModal_%s\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"mySmallModalLabel\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-xs\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <h4 class=\"modal-title\">%s</h4>\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n </div>\n <div class=\"modal-body modal-body-custom\">\n <div class=\"container-fluid\" id=\"avdSearchModalContent_%s\"\n style=\"padding-right: 0; padding-left: 0;\" >\n </div>\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" id=\"btnCloseAvd_%s\" class=\"btn btn-%s\">%s</button>\n </div>\n </div>\n </div>\n </div>\n "
2469 }
2470 },
2471 bootstrap5: {
2472 icons: {
2473 advancedSearchIcon: 'bi-chevron-down'
2474 },
2475 classes: {
2476 formGroup: 'mb-3'
2477 },
2478 html: {
2479 modal: "\n <div id=\"avdSearchModal_%s\" class=\"modal fade\" tabindex=\"-1\" aria-labelledby=\"mySmallModalLabel\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-xs\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <h5 class=\"modal-title\">%s</h5>\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>\n </div>\n <div class=\"modal-body modal-body-custom\">\n <div class=\"container-fluid\" id=\"avdSearchModalContent_%s\"\n style=\"padding-right: 0; padding-left: 0;\" >\n </div>\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" id=\"btnCloseAvd_%s\" class=\"btn btn-%s\">%s</button>\n </div>\n </div>\n </div>\n </div>\n "
2480 }
2481 },
2482 bulma: {
2483 icons: {
2484 advancedSearchIcon: 'fa-chevron-down'
2485 },
2486 classes: {},
2487 html: {
2488 modal: "\n <div class=\"modal\" id=\"avdSearchModal_%s\">\n <div class=\"modal-background\"></div>\n <div class=\"modal-card\">\n <header class=\"modal-card-head\">\n <p class=\"modal-card-title\">%s</p>\n <button class=\"delete\" aria-label=\"close\"></button>\n </header>\n <section class=\"modal-card-body\" id=\"avdSearchModalContent_%s\"></section>\n <footer class=\"modal-card-foot\">\n <button class=\"button\" id=\"btnCloseAvd_%s\" data-close=\"btn btn-%s\">%s</button>\n </footer>\n </div>\n </div>\n "
2489 }
2490 },
2491 foundation: {
2492 icons: {
2493 advancedSearchIcon: 'fa-chevron-down'
2494 },
2495 classes: {},
2496 html: {
2497 modal: "\n <div class=\"reveal\" id=\"avdSearchModal_%s\" data-reveal>\n <h1>%s</h1>\n <div id=\"avdSearchModalContent_%s\">\n\n </div>\n <button class=\"close-button\" data-close aria-label=\"Close modal\" type=\"button\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n\n <button id=\"btnCloseAvd_%s\" class=\"%s\" type=\"button\">%s</button>\n </div>\n "
2498 }
2499 },
2500 materialize: {
2501 icons: {
2502 advancedSearchIcon: 'expand_more'
2503 },
2504 classes: {},
2505 html: {
2506 modal: "\n <div id=\"avdSearchModal_%s\" class=\"modal\">\n <div class=\"modal-content\">\n <h4>%s</h4>\n <div id=\"avdSearchModalContent_%s\">\n\n </div>\n </div>\n <div class=\"modal-footer\">\n <a href=\"javascript:void(0)\"\" id=\"btnCloseAvd_%s\" class=\"modal-close waves-effect waves-green btn-flat %s\">%s</a>\n </div>\n </div>\n "
2507 }
2508 },
2509 semantic: {
2510 icons: {
2511 advancedSearchIcon: 'fa-chevron-down'
2512 },
2513 classes: {},
2514 html: {
2515 modal: "\n <div class=\"ui modal\" id=\"avdSearchModal_%s\">\n <i class=\"close icon\"></i>\n <div class=\"header\">\n %s\n </div>\n <div class=\"image content ui form\" id=\"avdSearchModalContent_%s\"></div>\n <div class=\"actions\">\n <div id=\"btnCloseAvd_%s\" class=\"ui black deny button %s\">%s</div>\n </div>\n </div>\n "
2516 }
2517 }
2518 }[$$b.fn.bootstrapTable.theme];
2519 Object.assign($$b.fn.bootstrapTable.defaults, {
2520 advancedSearch: false,
2521 idForm: 'advancedSearch',
2522 actionForm: '',
2523 idTable: undefined,
2524 // eslint-disable-next-line no-unused-vars
2525 onColumnAdvancedSearch: function onColumnAdvancedSearch(field, text) {
2526 return false;
2527 }
2528 });
2529 Object.assign($$b.fn.bootstrapTable.defaults.icons, {
2530 advancedSearchIcon: theme.icons.advancedSearchIcon
2531 });
2532 Object.assign($$b.fn.bootstrapTable.events, {
2533 'column-advanced-search.bs.table': 'onColumnAdvancedSearch'
2534 });
2535 Object.assign($$b.fn.bootstrapTable.locales, {
2536 formatAdvancedSearch: function formatAdvancedSearch() {
2537 return 'Advanced search';
2538 },
2539 formatAdvancedCloseButton: function formatAdvancedCloseButton() {
2540 return 'Close';
2541 }
2542 });
2543 Object.assign($$b.fn.bootstrapTable.defaults, $$b.fn.bootstrapTable.locales);
2544 $$b.BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
2545 _inherits(_class, _$$BootstrapTable);
2546 var _super = _createSuper(_class);
2547 function _class() {
2548 _classCallCheck(this, _class);
2549 return _super.apply(this, arguments);
2550 }
2551 _createClass(_class, [{
2552 key: "initToolbar",
2553 value: function initToolbar() {
2554 var o = this.options;
2555 this.showToolbar = this.showToolbar || o.search && o.advancedSearch && o.idTable;
2556 if (o.search && o.advancedSearch && o.idTable) {
2557 this.buttons = Object.assign(this.buttons, {
2558 advancedSearch: {
2559 text: this.options.formatAdvancedSearch(),
2560 icon: this.options.icons.advancedSearchIcon,
2561 event: this.showAvdSearch,
2562 attributes: {
2563 'aria-label': this.options.formatAdvancedSearch(),
2564 title: this.options.formatAdvancedSearch()
2565 }
2566 }
2567 });
2568 }
2569 _get(_getPrototypeOf(_class.prototype), "initToolbar", this).call(this);
2570 }
2571 }, {
2572 key: "showAvdSearch",
2573 value: function showAvdSearch() {
2574 var _this = this;
2575 var o = this.options;
2576 var modalSelector = "#avdSearchModal_".concat(o.idTable);
2577 if ($$b(modalSelector).length <= 0) {
2578 $$b('body').append(Utils.sprintf(theme.html.modal, o.idTable, o.formatAdvancedSearch(), o.idTable, o.idTable, o.buttonsClass, o.formatAdvancedCloseButton()));
2579 var timeoutId = 0;
2580 $$b("#avdSearchModalContent_".concat(o.idTable)).append(this.createFormAvd().join(''));
2581 $$b("#".concat(o.idForm)).off('keyup blur', 'input').on('keyup blur', 'input', function (e) {
2582 if (o.sidePagination === 'server') {
2583 _this.onColumnAdvancedSearch(e);
2584 } else {
2585 clearTimeout(timeoutId);
2586 timeoutId = setTimeout(function () {
2587 _this.onColumnAdvancedSearch(e);
2588 }, o.searchTimeOut);
2589 }
2590 });
2591 $$b("#btnCloseAvd_".concat(o.idTable)).click(function () {
2592 return _this.hideModal();
2593 });
2594 if ($$b.fn.bootstrapTable.theme === 'bulma') {
2595 $$b(modalSelector).find('.delete').off('click').on('click', function () {
2596 return _this.hideModal();
2597 });
2598 }
2599 this.showModal();
2600 } else {
2601 this.showModal();
2602 }
2603 }
2604 }, {
2605 key: "showModal",
2606 value: function showModal() {
2607 var modalSelector = "#avdSearchModal_".concat(this.options.idTable);
2608 if ($$b.inArray($$b.fn.bootstrapTable.theme, ['bootstrap3', 'bootstrap4']) !== -1) {
2609 $$b(modalSelector).modal();
2610 } else if ($$b.fn.bootstrapTable.theme === 'bootstrap5') {
2611 if (!this.toolbarModal) {
2612 // eslint-disable-next-line no-undef
2613 this.toolbarModal = new bootstrap.Modal(document.getElementById("avdSearchModal_".concat(this.options.idTable)), {});
2614 }
2615 this.toolbarModal.show();
2616 } else if ($$b.fn.bootstrapTable.theme === 'bulma') {
2617 $$b(modalSelector).toggleClass('is-active');
2618 } else if ($$b.fn.bootstrapTable.theme === 'foundation') {
2619 if (!this.toolbarModal) {
2620 // eslint-disable-next-line no-undef
2621 this.toolbarModal = new Foundation.Reveal($$b(modalSelector));
2622 }
2623 this.toolbarModal.open();
2624 } else if ($$b.fn.bootstrapTable.theme === 'materialize') {
2625 $$b(modalSelector).modal();
2626 $$b(modalSelector).modal('open');
2627 } else if ($$b.fn.bootstrapTable.theme === 'semantic') {
2628 $$b(modalSelector).modal('show');
2629 }
2630 }
2631 }, {
2632 key: "hideModal",
2633 value: function hideModal() {
2634 var $closeModalButton = $$b("#avdSearchModal_".concat(this.options.idTable));
2635 var modalSelector = "#avdSearchModal_".concat(this.options.idTable);
2636 if ($$b.inArray($$b.fn.bootstrapTable.theme, ['bootstrap3', 'bootstrap4']) !== -1) {
2637 $closeModalButton.modal('hide');
2638 } else if ($$b.fn.bootstrapTable.theme === 'bootstrap5') {
2639 this.toolbarModal.hide();
2640 } else if ($$b.fn.bootstrapTable.theme === 'bulma') {
2641 $$b('html').toggleClass('is-clipped');
2642 $$b(modalSelector).toggleClass('is-active');
2643 } else if ($$b.fn.bootstrapTable.theme === 'foundation') {
2644 this.toolbarModal.close();
2645 } else if ($$b.fn.bootstrapTable.theme === 'materialize') {
2646 $$b(modalSelector).modal('open');
2647 } else if ($$b.fn.bootstrapTable.theme === 'semantic') {
2648 $$b(modalSelector).modal('close');
2649 }
2650 if (this.options.sidePagination === 'server') {
2651 this.options.pageNumber = 1;
2652 this.updatePagination();
2653 this.trigger('column-advanced-search', this.filterColumnsPartial);
2654 }
2655 }
2656 }, {
2657 key: "createFormAvd",
2658 value: function createFormAvd() {
2659 var o = this.options;
2660 var html = ["<form class=\"form-horizontal\" id=\"".concat(o.idForm, "\" action=\"").concat(o.actionForm, "\">")];
2661 var _iterator = _createForOfIteratorHelper(this.columns),
2662 _step;
2663 try {
2664 for (_iterator.s(); !(_step = _iterator.n()).done;) {
2665 var column = _step.value;
2666 if (!column.checkbox && column.visible && column.searchable) {
2667 html.push("\n <div class=\"form-group row ".concat(theme.classes.formGroup || '', "\">\n <label class=\"col-sm-4 control-label\">").concat(column.title, "</label>\n <div class=\"col-sm-6\">\n <input type=\"text\" class=\"form-control ").concat(this.constants.classes.input, "\" name=\"").concat(column.field, "\" placeholder=\"").concat(column.title, "\" id=\"").concat(column.field, "\">\n </div>\n </div>\n "));
2668 }
2669 }
2670 } catch (err) {
2671 _iterator.e(err);
2672 } finally {
2673 _iterator.f();
2674 }
2675 html.push('</form>');
2676 return html;
2677 }
2678 }, {
2679 key: "initSearch",
2680 value: function initSearch() {
2681 var _this2 = this;
2682 _get(_getPrototypeOf(_class.prototype), "initSearch", this).call(this);
2683 if (!this.options.advancedSearch || this.options.sidePagination === 'server') {
2684 return;
2685 }
2686 var fp = $$b.isEmptyObject(this.filterColumnsPartial) ? null : this.filterColumnsPartial;
2687 this.data = fp ? this.data.filter(function (item, i) {
2688 for (var _i = 0, _Object$entries = Object.entries(fp); _i < _Object$entries.length; _i++) {
2689 var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
2690 key = _Object$entries$_i[0],
2691 v = _Object$entries$_i[1];
2692 var fval = v.toLowerCase();
2693 var value = item[key];
2694 var index = _this2.header.fields.indexOf(key);
2695 value = Utils.calculateObjectValue(_this2.header, _this2.header.formatters[index], [value, item, i], value);
2696 if (!(index !== -1 && (typeof value === 'string' || typeof value === 'number') && "".concat(value).toLowerCase().includes(fval))) {
2697 return false;
2698 }
2699 }
2700 return true;
2701 }) : this.data;
2702 this.unsortedData = _toConsumableArray(this.data);
2703 }
2704 }, {
2705 key: "onColumnAdvancedSearch",
2706 value: function onColumnAdvancedSearch(e) {
2707 var text = $$b(e.currentTarget).val().trim();
2708 var $field = $$b(e.currentTarget)[0].id;
2709 if ($$b.isEmptyObject(this.filterColumnsPartial)) {
2710 this.filterColumnsPartial = {};
2711 }
2712 if (text) {
2713 this.filterColumnsPartial[$field] = text;
2714 } else {
2715 delete this.filterColumnsPartial[$field];
2716 }
2717 if (this.options.sidePagination !== 'server') {
2718 this.options.pageNumber = 1;
2719 this.initSearch();
2720 this.updatePagination();
2721 this.trigger('column-advanced-search', $field, text);
2722 }
2723 }
2724 }]);
2725 return _class;
2726 }($$b.BootstrapTable);
2727
2728}));