@bolttech/molecules-dropdown 0.1.7 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.cjs CHANGED
@@ -15,7 +15,7 @@ var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
15
15
 
16
16
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
17
17
 
18
- var fails$g = function (exec) {
18
+ var fails$h = function (exec) {
19
19
  try {
20
20
  return !!exec();
21
21
  } catch (error) {
@@ -23,45 +23,45 @@ var fails$g = function (exec) {
23
23
  }
24
24
  };
25
25
 
26
- var fails$f = fails$g;
26
+ var fails$g = fails$h;
27
27
 
28
- var functionBindNative = !fails$f(function () {
28
+ var functionBindNative = !fails$g(function () {
29
29
  // eslint-disable-next-line es/no-function-prototype-bind -- safe
30
30
  var test = (function () { /* empty */ }).bind();
31
31
  // eslint-disable-next-line no-prototype-builtins -- safe
32
32
  return typeof test != 'function' || test.hasOwnProperty('prototype');
33
33
  });
34
34
 
35
- var NATIVE_BIND$1 = functionBindNative;
35
+ var NATIVE_BIND$2 = functionBindNative;
36
36
 
37
- var FunctionPrototype$1 = Function.prototype;
38
- var call$9 = FunctionPrototype$1.call;
39
- var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$9, call$9);
37
+ var FunctionPrototype$2 = Function.prototype;
38
+ var call$b = FunctionPrototype$2.call;
39
+ var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$b, call$b);
40
40
 
41
- var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
41
+ var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
42
42
  return function () {
43
- return call$9.apply(fn, arguments);
43
+ return call$b.apply(fn, arguments);
44
44
  };
45
45
  };
46
46
 
47
- var uncurryThis$e = functionUncurryThis;
47
+ var uncurryThis$h = functionUncurryThis;
48
48
 
49
- var toString$5 = uncurryThis$e({}.toString);
50
- var stringSlice$2 = uncurryThis$e(''.slice);
49
+ var toString$7 = uncurryThis$h({}.toString);
50
+ var stringSlice$5 = uncurryThis$h(''.slice);
51
51
 
52
52
  var classofRaw$2 = function (it) {
53
- return stringSlice$2(toString$5(it), 8, -1);
53
+ return stringSlice$5(toString$7(it), 8, -1);
54
54
  };
55
55
 
56
- var uncurryThis$d = functionUncurryThis;
57
- var fails$e = fails$g;
56
+ var uncurryThis$g = functionUncurryThis;
57
+ var fails$f = fails$h;
58
58
  var classof$3 = classofRaw$2;
59
59
 
60
60
  var $Object$4 = Object;
61
- var split = uncurryThis$d(''.split);
61
+ var split = uncurryThis$g(''.split);
62
62
 
63
63
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
64
- var indexedObject = fails$e(function () {
64
+ var indexedObject = fails$f(function () {
65
65
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
66
66
  // eslint-disable-next-line no-prototype-builtins -- safe
67
67
  return !$Object$4('z').propertyIsEnumerable(0);
@@ -71,27 +71,27 @@ var indexedObject = fails$e(function () {
71
71
 
72
72
  // we can't use just `it == null` since of `document.all` special case
73
73
  // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
74
- var isNullOrUndefined$3 = function (it) {
74
+ var isNullOrUndefined$4 = function (it) {
75
75
  return it === null || it === undefined;
76
76
  };
77
77
 
78
- var isNullOrUndefined$2 = isNullOrUndefined$3;
78
+ var isNullOrUndefined$3 = isNullOrUndefined$4;
79
79
 
80
80
  var $TypeError$7 = TypeError;
81
81
 
82
82
  // `RequireObjectCoercible` abstract operation
83
83
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
84
- var requireObjectCoercible$4 = function (it) {
85
- if (isNullOrUndefined$2(it)) throw $TypeError$7("Can't call method on " + it);
84
+ var requireObjectCoercible$6 = function (it) {
85
+ if (isNullOrUndefined$3(it)) throw $TypeError$7("Can't call method on " + it);
86
86
  return it;
87
87
  };
88
88
 
89
89
  // toObject with fallback for non-array-like ES3 strings
90
90
  var IndexedObject$1 = indexedObject;
91
- var requireObjectCoercible$3 = requireObjectCoercible$4;
91
+ var requireObjectCoercible$5 = requireObjectCoercible$6;
92
92
 
93
93
  var toIndexedObject$5 = function (it) {
94
- return IndexedObject$1(requireObjectCoercible$3(it));
94
+ return IndexedObject$1(requireObjectCoercible$5(it));
95
95
  };
96
96
 
97
97
  var check = function (it) {
@@ -144,36 +144,36 @@ var store$2 = sharedStore;
144
144
  source: 'https://github.com/zloirock/core-js'
145
145
  });
146
146
 
147
- var requireObjectCoercible$2 = requireObjectCoercible$4;
147
+ var requireObjectCoercible$4 = requireObjectCoercible$6;
148
148
 
149
149
  var $Object$3 = Object;
150
150
 
151
151
  // `ToObject` abstract operation
152
152
  // https://tc39.es/ecma262/#sec-toobject
153
- var toObject$3 = function (argument) {
154
- return $Object$3(requireObjectCoercible$2(argument));
153
+ var toObject$4 = function (argument) {
154
+ return $Object$3(requireObjectCoercible$4(argument));
155
155
  };
156
156
 
157
- var uncurryThis$c = functionUncurryThis;
158
- var toObject$2 = toObject$3;
157
+ var uncurryThis$f = functionUncurryThis;
158
+ var toObject$3 = toObject$4;
159
159
 
160
- var hasOwnProperty = uncurryThis$c({}.hasOwnProperty);
160
+ var hasOwnProperty = uncurryThis$f({}.hasOwnProperty);
161
161
 
162
162
  // `HasOwnProperty` abstract operation
163
163
  // https://tc39.es/ecma262/#sec-hasownproperty
164
164
  // eslint-disable-next-line es/no-object-hasown -- safe
165
165
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
166
- return hasOwnProperty(toObject$2(it), key);
166
+ return hasOwnProperty(toObject$3(it), key);
167
167
  };
168
168
 
169
- var uncurryThis$b = functionUncurryThis;
169
+ var uncurryThis$e = functionUncurryThis;
170
170
 
171
171
  var id = 0;
172
172
  var postfix = Math.random();
173
- var toString$4 = uncurryThis$b(1.0.toString);
173
+ var toString$6 = uncurryThis$e(1.0.toString);
174
174
 
175
175
  var uid$2 = function (key) {
176
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$4(++id + postfix, 36);
176
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$6(++id + postfix, 36);
177
177
  };
178
178
 
179
179
  var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
@@ -209,10 +209,10 @@ var engineV8Version = version;
209
209
  /* eslint-disable es/no-symbol -- required for testing */
210
210
 
211
211
  var V8_VERSION = engineV8Version;
212
- var fails$d = fails$g;
212
+ var fails$e = fails$h;
213
213
 
214
214
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
215
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$d(function () {
215
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$e(function () {
216
216
  var symbol = Symbol();
217
217
  // Chrome 38 Symbol has incorrect toString conversion
218
218
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
@@ -240,7 +240,7 @@ var Symbol$1 = global$a.Symbol;
240
240
  var WellKnownSymbolsStore = shared$3('wks');
241
241
  var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
242
242
 
243
- var wellKnownSymbol$9 = function (name) {
243
+ var wellKnownSymbol$a = function (name) {
244
244
  if (!hasOwn$8(WellKnownSymbolsStore, name)) {
245
245
  WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)
246
246
  ? Symbol$1[name]
@@ -265,21 +265,21 @@ var documentAll$1 = $documentAll$1.all;
265
265
 
266
266
  // `IsCallable` abstract operation
267
267
  // https://tc39.es/ecma262/#sec-iscallable
268
- var isCallable$g = $documentAll$1.IS_HTMLDDA ? function (argument) {
268
+ var isCallable$h = $documentAll$1.IS_HTMLDDA ? function (argument) {
269
269
  return typeof argument == 'function' || argument === documentAll$1;
270
270
  } : function (argument) {
271
271
  return typeof argument == 'function';
272
272
  };
273
273
 
274
- var isCallable$f = isCallable$g;
274
+ var isCallable$g = isCallable$h;
275
275
  var $documentAll = documentAll_1;
276
276
 
277
277
  var documentAll = $documentAll.all;
278
278
 
279
279
  var isObject$6 = $documentAll.IS_HTMLDDA ? function (it) {
280
- return typeof it == 'object' ? it !== null : isCallable$f(it) || it === documentAll;
280
+ return typeof it == 'object' ? it !== null : isCallable$g(it) || it === documentAll;
281
281
  } : function (it) {
282
- return typeof it == 'object' ? it !== null : isCallable$f(it);
282
+ return typeof it == 'object' ? it !== null : isCallable$g(it);
283
283
  };
284
284
 
285
285
  var isObject$5 = isObject$6;
@@ -288,27 +288,27 @@ var $String$4 = String;
288
288
  var $TypeError$6 = TypeError;
289
289
 
290
290
  // `Assert: Type(argument) is Object`
291
- var anObject$8 = function (argument) {
291
+ var anObject$9 = function (argument) {
292
292
  if (isObject$5(argument)) return argument;
293
293
  throw $TypeError$6($String$4(argument) + ' is not an object');
294
294
  };
295
295
 
296
296
  var objectDefineProperties = {};
297
297
 
298
- var fails$c = fails$g;
298
+ var fails$d = fails$h;
299
299
 
300
300
  // Detect IE8's incomplete defineProperty implementation
301
- var descriptors = !fails$c(function () {
301
+ var descriptors = !fails$d(function () {
302
302
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
303
303
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
304
304
  });
305
305
 
306
306
  var DESCRIPTORS$9 = descriptors;
307
- var fails$b = fails$g;
307
+ var fails$c = fails$h;
308
308
 
309
309
  // V8 ~ Chrome 36-
310
310
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
311
- var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$b(function () {
311
+ var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$c(function () {
312
312
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
313
313
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
314
314
  value: 42,
@@ -330,42 +330,42 @@ var documentCreateElement$2 = function (it) {
330
330
  };
331
331
 
332
332
  var DESCRIPTORS$8 = descriptors;
333
- var fails$a = fails$g;
333
+ var fails$b = fails$h;
334
334
  var createElement = documentCreateElement$2;
335
335
 
336
336
  // Thanks to IE8 for its funny defineProperty
337
- var ie8DomDefine = !DESCRIPTORS$8 && !fails$a(function () {
337
+ var ie8DomDefine = !DESCRIPTORS$8 && !fails$b(function () {
338
338
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
339
339
  return Object.defineProperty(createElement('div'), 'a', {
340
340
  get: function () { return 7; }
341
341
  }).a != 7;
342
342
  });
343
343
 
344
- var NATIVE_BIND = functionBindNative;
344
+ var NATIVE_BIND$1 = functionBindNative;
345
345
 
346
- var call$8 = Function.prototype.call;
346
+ var call$a = Function.prototype.call;
347
347
 
348
- var functionCall = NATIVE_BIND ? call$8.bind(call$8) : function () {
349
- return call$8.apply(call$8, arguments);
348
+ var functionCall = NATIVE_BIND$1 ? call$a.bind(call$a) : function () {
349
+ return call$a.apply(call$a, arguments);
350
350
  };
351
351
 
352
352
  var global$8 = global$e;
353
- var isCallable$e = isCallable$g;
353
+ var isCallable$f = isCallable$h;
354
354
 
355
355
  var aFunction = function (argument) {
356
- return isCallable$e(argument) ? argument : undefined;
356
+ return isCallable$f(argument) ? argument : undefined;
357
357
  };
358
358
 
359
359
  var getBuiltIn$3 = function (namespace, method) {
360
360
  return arguments.length < 2 ? aFunction(global$8[namespace]) : global$8[namespace] && global$8[namespace][method];
361
361
  };
362
362
 
363
- var uncurryThis$a = functionUncurryThis;
363
+ var uncurryThis$d = functionUncurryThis;
364
364
 
365
- var objectIsPrototypeOf = uncurryThis$a({}.isPrototypeOf);
365
+ var objectIsPrototypeOf = uncurryThis$d({}.isPrototypeOf);
366
366
 
367
367
  var getBuiltIn$2 = getBuiltIn$3;
368
- var isCallable$d = isCallable$g;
368
+ var isCallable$e = isCallable$h;
369
369
  var isPrototypeOf = objectIsPrototypeOf;
370
370
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
371
371
 
@@ -375,7 +375,7 @@ var isSymbol$2 = USE_SYMBOL_AS_UID ? function (it) {
375
375
  return typeof it == 'symbol';
376
376
  } : function (it) {
377
377
  var $Symbol = getBuiltIn$2('Symbol');
378
- return isCallable$d($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
378
+ return isCallable$e($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
379
379
  };
380
380
 
381
381
  var $String$3 = String;
@@ -388,29 +388,29 @@ var tryToString$1 = function (argument) {
388
388
  }
389
389
  };
390
390
 
391
- var isCallable$c = isCallable$g;
391
+ var isCallable$d = isCallable$h;
392
392
  var tryToString = tryToString$1;
393
393
 
394
394
  var $TypeError$5 = TypeError;
395
395
 
396
396
  // `Assert: IsCallable(argument) is true`
397
397
  var aCallable$2 = function (argument) {
398
- if (isCallable$c(argument)) return argument;
398
+ if (isCallable$d(argument)) return argument;
399
399
  throw $TypeError$5(tryToString(argument) + ' is not a function');
400
400
  };
401
401
 
402
402
  var aCallable$1 = aCallable$2;
403
- var isNullOrUndefined$1 = isNullOrUndefined$3;
403
+ var isNullOrUndefined$2 = isNullOrUndefined$4;
404
404
 
405
405
  // `GetMethod` abstract operation
406
406
  // https://tc39.es/ecma262/#sec-getmethod
407
- var getMethod$2 = function (V, P) {
407
+ var getMethod$3 = function (V, P) {
408
408
  var func = V[P];
409
- return isNullOrUndefined$1(func) ? undefined : aCallable$1(func);
409
+ return isNullOrUndefined$2(func) ? undefined : aCallable$1(func);
410
410
  };
411
411
 
412
- var call$7 = functionCall;
413
- var isCallable$b = isCallable$g;
412
+ var call$9 = functionCall;
413
+ var isCallable$c = isCallable$h;
414
414
  var isObject$3 = isObject$6;
415
415
 
416
416
  var $TypeError$4 = TypeError;
@@ -419,31 +419,31 @@ var $TypeError$4 = TypeError;
419
419
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
420
420
  var ordinaryToPrimitive$1 = function (input, pref) {
421
421
  var fn, val;
422
- if (pref === 'string' && isCallable$b(fn = input.toString) && !isObject$3(val = call$7(fn, input))) return val;
423
- if (isCallable$b(fn = input.valueOf) && !isObject$3(val = call$7(fn, input))) return val;
424
- if (pref !== 'string' && isCallable$b(fn = input.toString) && !isObject$3(val = call$7(fn, input))) return val;
422
+ if (pref === 'string' && isCallable$c(fn = input.toString) && !isObject$3(val = call$9(fn, input))) return val;
423
+ if (isCallable$c(fn = input.valueOf) && !isObject$3(val = call$9(fn, input))) return val;
424
+ if (pref !== 'string' && isCallable$c(fn = input.toString) && !isObject$3(val = call$9(fn, input))) return val;
425
425
  throw $TypeError$4("Can't convert object to primitive value");
426
426
  };
427
427
 
428
- var call$6 = functionCall;
428
+ var call$8 = functionCall;
429
429
  var isObject$2 = isObject$6;
430
430
  var isSymbol$1 = isSymbol$2;
431
- var getMethod$1 = getMethod$2;
431
+ var getMethod$2 = getMethod$3;
432
432
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
433
- var wellKnownSymbol$8 = wellKnownSymbol$9;
433
+ var wellKnownSymbol$9 = wellKnownSymbol$a;
434
434
 
435
435
  var $TypeError$3 = TypeError;
436
- var TO_PRIMITIVE = wellKnownSymbol$8('toPrimitive');
436
+ var TO_PRIMITIVE = wellKnownSymbol$9('toPrimitive');
437
437
 
438
438
  // `ToPrimitive` abstract operation
439
439
  // https://tc39.es/ecma262/#sec-toprimitive
440
440
  var toPrimitive$1 = function (input, pref) {
441
441
  if (!isObject$2(input) || isSymbol$1(input)) return input;
442
- var exoticToPrim = getMethod$1(input, TO_PRIMITIVE);
442
+ var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
443
443
  var result;
444
444
  if (exoticToPrim) {
445
445
  if (pref === undefined) pref = 'default';
446
- result = call$6(exoticToPrim, input, pref);
446
+ result = call$8(exoticToPrim, input, pref);
447
447
  if (!isObject$2(result) || isSymbol$1(result)) return result;
448
448
  throw $TypeError$3("Can't convert object to primitive value");
449
449
  }
@@ -464,7 +464,7 @@ var toPropertyKey$2 = function (argument) {
464
464
  var DESCRIPTORS$7 = descriptors;
465
465
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
466
466
  var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
467
- var anObject$7 = anObject$8;
467
+ var anObject$8 = anObject$9;
468
468
  var toPropertyKey$1 = toPropertyKey$2;
469
469
 
470
470
  var $TypeError$2 = TypeError;
@@ -479,9 +479,9 @@ var WRITABLE = 'writable';
479
479
  // `Object.defineProperty` method
480
480
  // https://tc39.es/ecma262/#sec-object.defineproperty
481
481
  objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
482
- anObject$7(O);
482
+ anObject$8(O);
483
483
  P = toPropertyKey$1(P);
484
- anObject$7(Attributes);
484
+ anObject$8(Attributes);
485
485
  if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
486
486
  var current = $getOwnPropertyDescriptor$1(O, P);
487
487
  if (current && current[WRITABLE]) {
@@ -494,9 +494,9 @@ objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
494
494
  }
495
495
  } return $defineProperty(O, P, Attributes);
496
496
  } : $defineProperty : function defineProperty(O, P, Attributes) {
497
- anObject$7(O);
497
+ anObject$8(O);
498
498
  P = toPropertyKey$1(P);
499
- anObject$7(Attributes);
499
+ anObject$8(Attributes);
500
500
  if (IE8_DOM_DEFINE$1) try {
501
501
  return $defineProperty(O, P, Attributes);
502
502
  } catch (error) { /* empty */ }
@@ -506,55 +506,55 @@ objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
506
506
  };
507
507
 
508
508
  var ceil = Math.ceil;
509
- var floor = Math.floor;
509
+ var floor$1 = Math.floor;
510
510
 
511
511
  // `Math.trunc` method
512
512
  // https://tc39.es/ecma262/#sec-math.trunc
513
513
  // eslint-disable-next-line es/no-math-trunc -- safe
514
514
  var mathTrunc = Math.trunc || function trunc(x) {
515
515
  var n = +x;
516
- return (n > 0 ? floor : ceil)(n);
516
+ return (n > 0 ? floor$1 : ceil)(n);
517
517
  };
518
518
 
519
519
  var trunc = mathTrunc;
520
520
 
521
521
  // `ToIntegerOrInfinity` abstract operation
522
522
  // https://tc39.es/ecma262/#sec-tointegerorinfinity
523
- var toIntegerOrInfinity$2 = function (argument) {
523
+ var toIntegerOrInfinity$4 = function (argument) {
524
524
  var number = +argument;
525
525
  // eslint-disable-next-line no-self-compare -- NaN check
526
526
  return number !== number || number === 0 ? 0 : trunc(number);
527
527
  };
528
528
 
529
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
529
+ var toIntegerOrInfinity$3 = toIntegerOrInfinity$4;
530
530
 
531
- var max = Math.max;
532
- var min$1 = Math.min;
531
+ var max$1 = Math.max;
532
+ var min$2 = Math.min;
533
533
 
534
534
  // Helper for a popular repeating case of the spec:
535
535
  // Let integer be ? ToInteger(index).
536
536
  // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
537
537
  var toAbsoluteIndex$1 = function (index, length) {
538
- var integer = toIntegerOrInfinity$1(index);
539
- return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
538
+ var integer = toIntegerOrInfinity$3(index);
539
+ return integer < 0 ? max$1(integer + length, 0) : min$2(integer, length);
540
540
  };
541
541
 
542
- var toIntegerOrInfinity = toIntegerOrInfinity$2;
542
+ var toIntegerOrInfinity$2 = toIntegerOrInfinity$4;
543
543
 
544
- var min = Math.min;
544
+ var min$1 = Math.min;
545
545
 
546
546
  // `ToLength` abstract operation
547
547
  // https://tc39.es/ecma262/#sec-tolength
548
- var toLength$1 = function (argument) {
549
- return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
548
+ var toLength$2 = function (argument) {
549
+ return argument > 0 ? min$1(toIntegerOrInfinity$2(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
550
550
  };
551
551
 
552
- var toLength = toLength$1;
552
+ var toLength$1 = toLength$2;
553
553
 
554
554
  // `LengthOfArrayLike` abstract operation
555
555
  // https://tc39.es/ecma262/#sec-lengthofarraylike
556
556
  var lengthOfArrayLike$1 = function (obj) {
557
- return toLength(obj.length);
557
+ return toLength$1(obj.length);
558
558
  };
559
559
 
560
560
  var toIndexedObject$4 = toIndexedObject$5;
@@ -562,7 +562,7 @@ var toAbsoluteIndex = toAbsoluteIndex$1;
562
562
  var lengthOfArrayLike = lengthOfArrayLike$1;
563
563
 
564
564
  // `Array.prototype.{ indexOf, includes }` methods implementation
565
- var createMethod$1 = function (IS_INCLUDES) {
565
+ var createMethod$2 = function (IS_INCLUDES) {
566
566
  return function ($this, el, fromIndex) {
567
567
  var O = toIndexedObject$4($this);
568
568
  var length = lengthOfArrayLike(O);
@@ -584,31 +584,31 @@ var createMethod$1 = function (IS_INCLUDES) {
584
584
  var arrayIncludes = {
585
585
  // `Array.prototype.includes` method
586
586
  // https://tc39.es/ecma262/#sec-array.prototype.includes
587
- includes: createMethod$1(true),
587
+ includes: createMethod$2(true),
588
588
  // `Array.prototype.indexOf` method
589
589
  // https://tc39.es/ecma262/#sec-array.prototype.indexof
590
- indexOf: createMethod$1(false)
590
+ indexOf: createMethod$2(false)
591
591
  };
592
592
 
593
593
  var hiddenKeys$4 = {};
594
594
 
595
- var uncurryThis$9 = functionUncurryThis;
595
+ var uncurryThis$c = functionUncurryThis;
596
596
  var hasOwn$7 = hasOwnProperty_1;
597
597
  var toIndexedObject$3 = toIndexedObject$5;
598
598
  var indexOf$1 = arrayIncludes.indexOf;
599
599
  var hiddenKeys$3 = hiddenKeys$4;
600
600
 
601
- var push = uncurryThis$9([].push);
601
+ var push$1 = uncurryThis$c([].push);
602
602
 
603
603
  var objectKeysInternal = function (object, names) {
604
604
  var O = toIndexedObject$3(object);
605
605
  var i = 0;
606
606
  var result = [];
607
607
  var key;
608
- for (key in O) !hasOwn$7(hiddenKeys$3, key) && hasOwn$7(O, key) && push(result, key);
608
+ for (key in O) !hasOwn$7(hiddenKeys$3, key) && hasOwn$7(O, key) && push$1(result, key);
609
609
  // Don't enum bug & hidden keys
610
610
  while (names.length > i) if (hasOwn$7(O, key = names[i++])) {
611
- ~indexOf$1(result, key) || push(result, key);
611
+ ~indexOf$1(result, key) || push$1(result, key);
612
612
  }
613
613
  return result;
614
614
  };
@@ -637,7 +637,7 @@ var objectKeys$2 = Object.keys || function keys(O) {
637
637
  var DESCRIPTORS$6 = descriptors;
638
638
  var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
639
639
  var definePropertyModule$3 = objectDefineProperty;
640
- var anObject$6 = anObject$8;
640
+ var anObject$7 = anObject$9;
641
641
  var toIndexedObject$2 = toIndexedObject$5;
642
642
  var objectKeys$1 = objectKeys$2;
643
643
 
@@ -645,7 +645,7 @@ var objectKeys$1 = objectKeys$2;
645
645
  // https://tc39.es/ecma262/#sec-object.defineproperties
646
646
  // eslint-disable-next-line es/no-object-defineproperties -- safe
647
647
  objectDefineProperties.f = DESCRIPTORS$6 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
648
- anObject$6(O);
648
+ anObject$7(O);
649
649
  var props = toIndexedObject$2(Properties);
650
650
  var keys = objectKeys$1(Properties);
651
651
  var length = keys.length;
@@ -670,7 +670,7 @@ var sharedKey$3 = function (key) {
670
670
 
671
671
  /* global ActiveXObject -- old IE, WSH */
672
672
 
673
- var anObject$5 = anObject$8;
673
+ var anObject$6 = anObject$9;
674
674
  var definePropertiesModule = objectDefineProperties;
675
675
  var enumBugKeys$1 = enumBugKeys$3;
676
676
  var hiddenKeys$2 = hiddenKeys$4;
@@ -744,7 +744,7 @@ hiddenKeys$2[IE_PROTO$1] = true;
744
744
  var objectCreate = Object.create || function create(O, Properties) {
745
745
  var result;
746
746
  if (O !== null) {
747
- EmptyConstructor[PROTOTYPE] = anObject$5(O);
747
+ EmptyConstructor[PROTOTYPE] = anObject$6(O);
748
748
  result = new EmptyConstructor();
749
749
  EmptyConstructor[PROTOTYPE] = null;
750
750
  // add "__proto__" for Object.getPrototypeOf polyfill
@@ -753,11 +753,11 @@ var objectCreate = Object.create || function create(O, Properties) {
753
753
  return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
754
754
  };
755
755
 
756
- var wellKnownSymbol$7 = wellKnownSymbol$9;
756
+ var wellKnownSymbol$8 = wellKnownSymbol$a;
757
757
  var create$2 = objectCreate;
758
758
  var defineProperty$4 = objectDefineProperty.f;
759
759
 
760
- var UNSCOPABLES = wellKnownSymbol$7('unscopables');
760
+ var UNSCOPABLES = wellKnownSymbol$8('unscopables');
761
761
  var ArrayPrototype = Array.prototype;
762
762
 
763
763
  // Array.prototype[@@unscopables]
@@ -777,11 +777,11 @@ var addToUnscopables$1 = function (key) {
777
777
  var iterators = {};
778
778
 
779
779
  var global$7 = global$e;
780
- var isCallable$a = isCallable$g;
780
+ var isCallable$b = isCallable$h;
781
781
 
782
782
  var WeakMap$1 = global$7.WeakMap;
783
783
 
784
- var weakMapBasicDetection = isCallable$a(WeakMap$1) && /native code/.test(String(WeakMap$1));
784
+ var weakMapBasicDetection = isCallable$b(WeakMap$1) && /native code/.test(String(WeakMap$1));
785
785
 
786
786
  var createPropertyDescriptor$3 = function (bitmap, value) {
787
787
  return {
@@ -893,7 +893,7 @@ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
893
893
  } : $propertyIsEnumerable;
894
894
 
895
895
  var DESCRIPTORS$4 = descriptors;
896
- var call$5 = functionCall;
896
+ var call$7 = functionCall;
897
897
  var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
898
898
  var createPropertyDescriptor$1 = createPropertyDescriptor$3;
899
899
  var toIndexedObject$1 = toIndexedObject$5;
@@ -912,7 +912,7 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$4 ? $getOwnPropertyDescriptor : f
912
912
  if (IE8_DOM_DEFINE) try {
913
913
  return $getOwnPropertyDescriptor(O, P);
914
914
  } catch (error) { /* empty */ }
915
- if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$5(propertyIsEnumerableModule$1.f, O, P), O[P]);
915
+ if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$7(propertyIsEnumerableModule$1.f, O, P), O[P]);
916
916
  };
917
917
 
918
918
  var makeBuiltIn$2 = {exports: {}};
@@ -920,14 +920,14 @@ var makeBuiltIn$2 = {exports: {}};
920
920
  var DESCRIPTORS$3 = descriptors;
921
921
  var hasOwn$4 = hasOwnProperty_1;
922
922
 
923
- var FunctionPrototype = Function.prototype;
923
+ var FunctionPrototype$1 = Function.prototype;
924
924
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
925
925
  var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
926
926
 
927
- var EXISTS = hasOwn$4(FunctionPrototype, 'name');
927
+ var EXISTS = hasOwn$4(FunctionPrototype$1, 'name');
928
928
  // additional protection from minified / mangled / dropped function names
929
929
  var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
930
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype, 'name').configurable));
930
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype$1, 'name').configurable));
931
931
 
932
932
  var functionName = {
933
933
  EXISTS: EXISTS,
@@ -935,14 +935,14 @@ var functionName = {
935
935
  CONFIGURABLE: CONFIGURABLE
936
936
  };
937
937
 
938
- var uncurryThis$8 = functionUncurryThis;
939
- var isCallable$9 = isCallable$g;
938
+ var uncurryThis$b = functionUncurryThis;
939
+ var isCallable$a = isCallable$h;
940
940
  var store = sharedStore;
941
941
 
942
- var functionToString = uncurryThis$8(Function.toString);
942
+ var functionToString = uncurryThis$b(Function.toString);
943
943
 
944
944
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
945
- if (!isCallable$9(store.inspectSource)) {
945
+ if (!isCallable$a(store.inspectSource)) {
946
946
  store.inspectSource = function (it) {
947
947
  return functionToString(it);
948
948
  };
@@ -950,9 +950,9 @@ if (!isCallable$9(store.inspectSource)) {
950
950
 
951
951
  var inspectSource$1 = store.inspectSource;
952
952
 
953
- var uncurryThis$7 = functionUncurryThis;
954
- var fails$9 = fails$g;
955
- var isCallable$8 = isCallable$g;
953
+ var uncurryThis$a = functionUncurryThis;
954
+ var fails$a = fails$h;
955
+ var isCallable$9 = isCallable$h;
956
956
  var hasOwn$3 = hasOwnProperty_1;
957
957
  var DESCRIPTORS$2 = descriptors;
958
958
  var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
@@ -964,19 +964,19 @@ var getInternalState$2 = InternalStateModule$1.get;
964
964
  var $String$2 = String;
965
965
  // eslint-disable-next-line es/no-object-defineproperty -- safe
966
966
  var defineProperty$3 = Object.defineProperty;
967
- var stringSlice$1 = uncurryThis$7(''.slice);
968
- var replace$2 = uncurryThis$7(''.replace);
969
- var join = uncurryThis$7([].join);
967
+ var stringSlice$4 = uncurryThis$a(''.slice);
968
+ var replace$3 = uncurryThis$a(''.replace);
969
+ var join = uncurryThis$a([].join);
970
970
 
971
- var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$9(function () {
971
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$a(function () {
972
972
  return defineProperty$3(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
973
973
  });
974
974
 
975
975
  var TEMPLATE = String(String).split('String');
976
976
 
977
977
  var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
978
- if (stringSlice$1($String$2(name), 0, 7) === 'Symbol(') {
979
- name = '[' + replace$2($String$2(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
978
+ if (stringSlice$4($String$2(name), 0, 7) === 'Symbol(') {
979
+ name = '[' + replace$3($String$2(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
980
980
  }
981
981
  if (options && options.getter) name = 'get ' + name;
982
982
  if (options && options.setter) name = 'set ' + name;
@@ -1002,10 +1002,10 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
1002
1002
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
1003
1003
  // eslint-disable-next-line no-extend-native -- required
1004
1004
  Function.prototype.toString = makeBuiltIn$1(function toString() {
1005
- return isCallable$8(this) && getInternalState$2(this).source || inspectSource(this);
1005
+ return isCallable$9(this) && getInternalState$2(this).source || inspectSource(this);
1006
1006
  }, 'toString');
1007
1007
 
1008
- var isCallable$7 = isCallable$g;
1008
+ var isCallable$8 = isCallable$h;
1009
1009
  var definePropertyModule$1 = objectDefineProperty;
1010
1010
  var makeBuiltIn = makeBuiltIn$2.exports;
1011
1011
  var defineGlobalProperty$1 = defineGlobalProperty$3;
@@ -1014,7 +1014,7 @@ var defineBuiltIn$4 = function (O, key, value, options) {
1014
1014
  if (!options) options = {};
1015
1015
  var simple = options.enumerable;
1016
1016
  var name = options.name !== undefined ? options.name : key;
1017
- if (isCallable$7(value)) makeBuiltIn(value, name, options);
1017
+ if (isCallable$8(value)) makeBuiltIn(value, name, options);
1018
1018
  if (options.global) {
1019
1019
  if (simple) O[key] = value;
1020
1020
  else defineGlobalProperty$1(key, value);
@@ -1053,18 +1053,18 @@ var objectGetOwnPropertySymbols = {};
1053
1053
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1054
1054
 
1055
1055
  var getBuiltIn = getBuiltIn$3;
1056
- var uncurryThis$6 = functionUncurryThis;
1056
+ var uncurryThis$9 = functionUncurryThis;
1057
1057
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1058
1058
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1059
- var anObject$4 = anObject$8;
1059
+ var anObject$5 = anObject$9;
1060
1060
 
1061
- var concat$1 = uncurryThis$6([].concat);
1061
+ var concat$2 = uncurryThis$9([].concat);
1062
1062
 
1063
1063
  // all object keys, includes non-enumerable and symbols
1064
1064
  var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
1065
- var keys = getOwnPropertyNamesModule.f(anObject$4(it));
1065
+ var keys = getOwnPropertyNamesModule.f(anObject$5(it));
1066
1066
  var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
1067
- return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
1067
+ return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
1068
1068
  };
1069
1069
 
1070
1070
  var hasOwn$2 = hasOwnProperty_1;
@@ -1084,8 +1084,8 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
1084
1084
  }
1085
1085
  };
1086
1086
 
1087
- var fails$8 = fails$g;
1088
- var isCallable$6 = isCallable$g;
1087
+ var fails$9 = fails$h;
1088
+ var isCallable$7 = isCallable$h;
1089
1089
 
1090
1090
  var replacement = /#|\.prototype\./;
1091
1091
 
@@ -1093,7 +1093,7 @@ var isForced$1 = function (feature, detection) {
1093
1093
  var value = data[normalize(feature)];
1094
1094
  return value == POLYFILL ? true
1095
1095
  : value == NATIVE ? false
1096
- : isCallable$6(detection) ? fails$8(detection)
1096
+ : isCallable$7(detection) ? fails$9(detection)
1097
1097
  : !!detection;
1098
1098
  };
1099
1099
 
@@ -1162,9 +1162,9 @@ var _export = function (options, source) {
1162
1162
  }
1163
1163
  };
1164
1164
 
1165
- var fails$7 = fails$g;
1165
+ var fails$8 = fails$h;
1166
1166
 
1167
- var correctPrototypeGetter = !fails$7(function () {
1167
+ var correctPrototypeGetter = !fails$8(function () {
1168
1168
  function F() { /* empty */ }
1169
1169
  F.prototype.constructor = null;
1170
1170
  // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
@@ -1172,8 +1172,8 @@ var correctPrototypeGetter = !fails$7(function () {
1172
1172
  });
1173
1173
 
1174
1174
  var hasOwn$1 = hasOwnProperty_1;
1175
- var isCallable$5 = isCallable$g;
1176
- var toObject$1 = toObject$3;
1175
+ var isCallable$6 = isCallable$h;
1176
+ var toObject$2 = toObject$4;
1177
1177
  var sharedKey = sharedKey$3;
1178
1178
  var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1179
1179
 
@@ -1185,22 +1185,22 @@ var ObjectPrototype = $Object$1.prototype;
1185
1185
  // https://tc39.es/ecma262/#sec-object.getprototypeof
1186
1186
  // eslint-disable-next-line es/no-object-getprototypeof -- safe
1187
1187
  var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1188
- var object = toObject$1(O);
1188
+ var object = toObject$2(O);
1189
1189
  if (hasOwn$1(object, IE_PROTO)) return object[IE_PROTO];
1190
1190
  var constructor = object.constructor;
1191
- if (isCallable$5(constructor) && object instanceof constructor) {
1191
+ if (isCallable$6(constructor) && object instanceof constructor) {
1192
1192
  return constructor.prototype;
1193
1193
  } return object instanceof $Object$1 ? ObjectPrototype : null;
1194
1194
  };
1195
1195
 
1196
- var fails$6 = fails$g;
1197
- var isCallable$4 = isCallable$g;
1196
+ var fails$7 = fails$h;
1197
+ var isCallable$5 = isCallable$h;
1198
1198
  var isObject = isObject$6;
1199
1199
  var getPrototypeOf$1 = objectGetPrototypeOf;
1200
1200
  var defineBuiltIn$2 = defineBuiltIn$4;
1201
- var wellKnownSymbol$6 = wellKnownSymbol$9;
1201
+ var wellKnownSymbol$7 = wellKnownSymbol$a;
1202
1202
 
1203
- var ITERATOR$2 = wellKnownSymbol$6('iterator');
1203
+ var ITERATOR$2 = wellKnownSymbol$7('iterator');
1204
1204
  var BUGGY_SAFARI_ITERATORS$1 = false;
1205
1205
 
1206
1206
  // `%IteratorPrototype%` object
@@ -1218,7 +1218,7 @@ if ([].keys) {
1218
1218
  }
1219
1219
  }
1220
1220
 
1221
- var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails$6(function () {
1221
+ var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails$7(function () {
1222
1222
  var test = {};
1223
1223
  // FF44- legacy iterators case
1224
1224
  return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
@@ -1228,7 +1228,7 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1228
1228
 
1229
1229
  // `%IteratorPrototype%[@@iterator]()` method
1230
1230
  // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1231
- if (!isCallable$4(IteratorPrototype$2[ITERATOR$2])) {
1231
+ if (!isCallable$5(IteratorPrototype$2[ITERATOR$2])) {
1232
1232
  defineBuiltIn$2(IteratorPrototype$2, ITERATOR$2, function () {
1233
1233
  return this;
1234
1234
  });
@@ -1241,9 +1241,9 @@ var iteratorsCore = {
1241
1241
 
1242
1242
  var defineProperty$2 = objectDefineProperty.f;
1243
1243
  var hasOwn = hasOwnProperty_1;
1244
- var wellKnownSymbol$5 = wellKnownSymbol$9;
1244
+ var wellKnownSymbol$6 = wellKnownSymbol$a;
1245
1245
 
1246
- var TO_STRING_TAG$3 = wellKnownSymbol$5('toStringTag');
1246
+ var TO_STRING_TAG$3 = wellKnownSymbol$6('toStringTag');
1247
1247
 
1248
1248
  var setToStringTag$2 = function (target, TAG, STATIC) {
1249
1249
  if (target && !STATIC) target = target.prototype;
@@ -1268,30 +1268,30 @@ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUME
1268
1268
  return IteratorConstructor;
1269
1269
  };
1270
1270
 
1271
- var uncurryThis$5 = functionUncurryThis;
1271
+ var uncurryThis$8 = functionUncurryThis;
1272
1272
  var aCallable = aCallable$2;
1273
1273
 
1274
1274
  var functionUncurryThisAccessor = function (object, key, method) {
1275
1275
  try {
1276
1276
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1277
- return uncurryThis$5(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
1277
+ return uncurryThis$8(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
1278
1278
  } catch (error) { /* empty */ }
1279
1279
  };
1280
1280
 
1281
- var isCallable$3 = isCallable$g;
1281
+ var isCallable$4 = isCallable$h;
1282
1282
 
1283
1283
  var $String$1 = String;
1284
1284
  var $TypeError$1 = TypeError;
1285
1285
 
1286
1286
  var aPossiblePrototype$1 = function (argument) {
1287
- if (typeof argument == 'object' || isCallable$3(argument)) return argument;
1287
+ if (typeof argument == 'object' || isCallable$4(argument)) return argument;
1288
1288
  throw $TypeError$1("Can't set " + $String$1(argument) + ' as a prototype');
1289
1289
  };
1290
1290
 
1291
1291
  /* eslint-disable no-proto -- safe */
1292
1292
 
1293
1293
  var uncurryThisAccessor = functionUncurryThisAccessor;
1294
- var anObject$3 = anObject$8;
1294
+ var anObject$4 = anObject$9;
1295
1295
  var aPossiblePrototype = aPossiblePrototype$1;
1296
1296
 
1297
1297
  // `Object.setPrototypeOf` method
@@ -1308,7 +1308,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1308
1308
  CORRECT_SETTER = test instanceof Array;
1309
1309
  } catch (error) { /* empty */ }
1310
1310
  return function setPrototypeOf(O, proto) {
1311
- anObject$3(O);
1311
+ anObject$4(O);
1312
1312
  aPossiblePrototype(proto);
1313
1313
  if (CORRECT_SETTER) setter(O, proto);
1314
1314
  else O.__proto__ = proto;
@@ -1317,16 +1317,16 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1317
1317
  }() : undefined);
1318
1318
 
1319
1319
  var $$3 = _export;
1320
- var call$4 = functionCall;
1320
+ var call$6 = functionCall;
1321
1321
  var FunctionName = functionName;
1322
- var isCallable$2 = isCallable$g;
1322
+ var isCallable$3 = isCallable$h;
1323
1323
  var createIteratorConstructor = iteratorCreateConstructor;
1324
1324
  var getPrototypeOf = objectGetPrototypeOf;
1325
1325
  var setPrototypeOf = objectSetPrototypeOf;
1326
1326
  var setToStringTag = setToStringTag$2;
1327
1327
  var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
1328
1328
  var defineBuiltIn$1 = defineBuiltIn$4;
1329
- var wellKnownSymbol$4 = wellKnownSymbol$9;
1329
+ var wellKnownSymbol$5 = wellKnownSymbol$a;
1330
1330
  var Iterators$1 = iterators;
1331
1331
  var IteratorsCore = iteratorsCore;
1332
1332
 
@@ -1334,7 +1334,7 @@ var PROPER_FUNCTION_NAME$1 = FunctionName.PROPER;
1334
1334
  var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1335
1335
  var IteratorPrototype = IteratorsCore.IteratorPrototype;
1336
1336
  var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1337
- var ITERATOR$1 = wellKnownSymbol$4('iterator');
1337
+ var ITERATOR$1 = wellKnownSymbol$5('iterator');
1338
1338
  var KEYS = 'keys';
1339
1339
  var VALUES = 'values';
1340
1340
  var ENTRIES = 'entries';
@@ -1371,7 +1371,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1371
1371
  if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1372
1372
  if (setPrototypeOf) {
1373
1373
  setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
1374
- } else if (!isCallable$2(CurrentIteratorPrototype[ITERATOR$1])) {
1374
+ } else if (!isCallable$3(CurrentIteratorPrototype[ITERATOR$1])) {
1375
1375
  defineBuiltIn$1(CurrentIteratorPrototype, ITERATOR$1, returnThis);
1376
1376
  }
1377
1377
  }
@@ -1386,7 +1386,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1386
1386
  createNonEnumerableProperty$2(IterablePrototype, 'name', VALUES);
1387
1387
  } else {
1388
1388
  INCORRECT_VALUES_NAME = true;
1389
- defaultIterator = function values() { return call$4(nativeIterator, this); };
1389
+ defaultIterator = function values() { return call$6(nativeIterator, this); };
1390
1390
  }
1391
1391
  }
1392
1392
 
@@ -1529,10 +1529,10 @@ var DOMIterables = domIterables;
1529
1529
  var DOMTokenListPrototype = domTokenListPrototype;
1530
1530
  var ArrayIteratorMethods = es_array_iterator;
1531
1531
  var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
1532
- var wellKnownSymbol$3 = wellKnownSymbol$9;
1532
+ var wellKnownSymbol$4 = wellKnownSymbol$a;
1533
1533
 
1534
- var ITERATOR = wellKnownSymbol$3('iterator');
1535
- var TO_STRING_TAG$2 = wellKnownSymbol$3('toStringTag');
1534
+ var ITERATOR = wellKnownSymbol$4('iterator');
1535
+ var TO_STRING_TAG$2 = wellKnownSymbol$4('toStringTag');
1536
1536
  var ArrayValues = ArrayIteratorMethods.values;
1537
1537
 
1538
1538
  var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
@@ -1564,24 +1564,24 @@ for (var COLLECTION_NAME in DOMIterables) {
1564
1564
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1565
1565
 
1566
1566
  var DESCRIPTORS = descriptors;
1567
- var uncurryThis$4 = functionUncurryThis;
1568
- var call$3 = functionCall;
1569
- var fails$5 = fails$g;
1567
+ var uncurryThis$7 = functionUncurryThis;
1568
+ var call$5 = functionCall;
1569
+ var fails$6 = fails$h;
1570
1570
  var objectKeys = objectKeys$2;
1571
1571
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1572
1572
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1573
- var toObject = toObject$3;
1573
+ var toObject$1 = toObject$4;
1574
1574
  var IndexedObject = indexedObject;
1575
1575
 
1576
1576
  // eslint-disable-next-line es/no-object-assign -- safe
1577
1577
  var $assign = Object.assign;
1578
1578
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1579
1579
  var defineProperty = Object.defineProperty;
1580
- var concat = uncurryThis$4([].concat);
1580
+ var concat$1 = uncurryThis$7([].concat);
1581
1581
 
1582
1582
  // `Object.assign` method
1583
1583
  // https://tc39.es/ecma262/#sec-object.assign
1584
- var objectAssign = !$assign || fails$5(function () {
1584
+ var objectAssign = !$assign || fails$6(function () {
1585
1585
  // should have correct order of operations (Edge bug)
1586
1586
  if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
1587
1587
  enumerable: true,
@@ -1602,20 +1602,20 @@ var objectAssign = !$assign || fails$5(function () {
1602
1602
  alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1603
1603
  return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
1604
1604
  }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1605
- var T = toObject(target);
1605
+ var T = toObject$1(target);
1606
1606
  var argumentsLength = arguments.length;
1607
1607
  var index = 1;
1608
1608
  var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1609
1609
  var propertyIsEnumerable = propertyIsEnumerableModule.f;
1610
1610
  while (argumentsLength > index) {
1611
1611
  var S = IndexedObject(arguments[index++]);
1612
- var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
1612
+ var keys = getOwnPropertySymbols ? concat$1(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
1613
1613
  var length = keys.length;
1614
1614
  var j = 0;
1615
1615
  var key;
1616
1616
  while (length > j) {
1617
1617
  key = keys[j++];
1618
- if (!DESCRIPTORS || call$3(propertyIsEnumerable, S, key)) T[key] = S[key];
1618
+ if (!DESCRIPTORS || call$5(propertyIsEnumerable, S, key)) T[key] = S[key];
1619
1619
  }
1620
1620
  } return T;
1621
1621
  } : $assign;
@@ -1655,271 +1655,9 @@ function __awaiter(thisArg, _arguments, P, generator) {
1655
1655
  });
1656
1656
  }
1657
1657
 
1658
- const ClickableElement = /*#__PURE__*/styled__default["default"].div.withConfig({
1659
- displayName: "molecules-dropdownstyles__ClickableElement",
1660
- componentId: "sc-3wugi4-0"
1661
- })(["cursor:pointer;"]);
1662
- const ContainerDropdown = /*#__PURE__*/styled__default["default"].section.withConfig({
1663
- displayName: "molecules-dropdownstyles__ContainerDropdown",
1664
- componentId: "sc-3wugi4-1"
1665
- })(["padding-top:", ";padding-bottom:", ";padding-right:", ";padding-left:", ";gap:", ";background-color:", ";border:", ";border-radius:", ";box-shadow:", ";.fieldLabel{color:", ";font-family:", ";font-weight:", ";line-height:", ";font-size:", ";letter-spacing:", ";}.requiredLabel{color:", ";font-family:", ";font-weight:", ";line-height:", ";font-size:", ";letter-spacing:", ";}svg{width:", ";fill:", ";}input{color:", ";font-family:", ";font-weight:", ";line-height:", ";font-size:", ";letter-spacing:", ";}&:focus-within{background-color:", ";border:", ";", "}", " ", ""], ({
1666
- theme
1667
- }) => theme.components.dropdown.paddingHorizontal, ({
1668
- theme
1669
- }) => theme.components.dropdown.paddingHorizontal, ({
1670
- theme
1671
- }) => theme.components.dropdown.paddingVertical, ({
1672
- theme
1673
- }) => theme.components.dropdown.paddingVertical, ({
1674
- theme
1675
- }) => theme.components.dropdown.gap, ({
1676
- theme,
1677
- variant
1678
- }) => theme.components.dropdown[variant].container.color.default, ({
1679
- theme,
1680
- variant
1681
- }) => `1px solid ${theme.components.dropdown[variant].container.border.default}`, ({
1682
- theme
1683
- }) => theme.components.dropdown.borderRadius, ({
1684
- theme: {
1685
- effects: {
1686
- shadow
1687
- }
1688
- }
1689
- }) => `${shadow.lvl0.x} ${shadow.lvl0.y} ${shadow.lvl0.blur} ${shadow.lvl0.spread} ${shadow.lvl0.color}`, ({
1690
- theme,
1691
- variant,
1692
- hasValue
1693
- }) => theme.components.dropdown[variant].text.color.fieldLabel[hasValue ? 'filled' : 'default'], ({
1694
- theme
1695
- }) => theme.components.dropdown.fieldLabel.fontFamily, ({
1696
- theme
1697
- }) => theme.components.dropdown.fieldLabel.fontWeight, ({
1698
- theme
1699
- }) => theme.components.dropdown.fieldLabel.lineHeight, ({
1700
- theme
1701
- }) => theme.components.dropdown.fieldLabel.fontSize, ({
1702
- theme
1703
- }) => theme.components.dropdown.fieldLabel.letterSpacing, ({
1704
- theme,
1705
- variant,
1706
- hasValue
1707
- }) => theme.components.dropdown[variant].text.color.required[hasValue ? 'filled' : 'default'], ({
1708
- theme
1709
- }) => theme.components.dropdown.required.fontFamily, ({
1710
- theme
1711
- }) => theme.components.dropdown.required.fontWeight, ({
1712
- theme
1713
- }) => theme.components.dropdown.required.lineHeight, ({
1714
- theme
1715
- }) => theme.components.dropdown.required.fontSize, ({
1716
- theme
1717
- }) => theme.components.dropdown.required.letterSpacing, ({
1718
- theme
1719
- }) => theme.components.dropdown.icon.size, ({
1720
- theme,
1721
- variant,
1722
- hasValue
1723
- }) => theme.components.dropdown[variant].icon.color[hasValue ? 'filled' : 'default'], ({
1724
- theme,
1725
- variant
1726
- }) => theme.components.dropdown[variant].text.color.fieldLabel.default, ({
1727
- theme
1728
- }) => theme.components.dropdown.required.fontFamily, ({
1729
- theme
1730
- }) => theme.components.dropdown.required.fontWeight, ({
1731
- theme
1732
- }) => theme.components.dropdown.required.lineHeight, ({
1733
- theme
1734
- }) => theme.components.dropdown.required.fontSize, ({
1735
- theme
1736
- }) => theme.components.dropdown.required.letterSpacing, ({
1737
- theme,
1738
- variant,
1739
- hasError
1740
- }) => theme.components.dropdown[variant].container.color[hasError ? 'error' : 'focus'], ({
1741
- theme,
1742
- variant,
1743
- hasError
1744
- }) => `1px solid ${theme.components.dropdown[variant].container.border[hasError ? 'error' : 'focus']}`, ({
1745
- hasError
1746
- }) => !hasError && styled.css([".fieldLabel{color:", ";}.requiredLabel{color:", ";}svg{fill:", ";}"], ({
1747
- theme,
1748
- variant
1749
- }) => theme.components.dropdown[variant].text.color.fieldLabel.focus, ({
1750
- theme,
1751
- variant
1752
- }) => theme.components.dropdown[variant].text.color.required.focus, ({
1753
- theme,
1754
- variant
1755
- }) => theme.components.dropdown[variant].icon.color.focus), ({
1756
- hasError,
1757
- hasValue
1758
- }) => hasError && styled.css(["border:", ";background-color:", ";.fieldLabel{color:", ";}.requiredLabel{color:", ";}svg{fill:", ";}"], ({
1759
- theme,
1760
- variant
1761
- }) => `1px solid ${theme.components.dropdown[variant].container.border[hasValue ? 'errorFilled' : 'error']}`, ({
1762
- theme,
1763
- variant
1764
- }) => theme.components.dropdown[variant].container.color[hasValue ? 'errorFilled' : 'error'], ({
1765
- theme,
1766
- variant,
1767
- hasValue
1768
- }) => theme.components.dropdown[variant].text.color.fieldLabel[hasValue ? 'errorFilled' : 'error'], ({
1769
- theme,
1770
- variant,
1771
- hasValue
1772
- }) => theme.components.dropdown[variant].text.color.required[hasValue ? 'errorFilled' : 'error'], ({
1773
- theme,
1774
- variant
1775
- }) => theme.components.dropdown[variant].icon.color[hasValue ? 'errorFilled' : 'error']), ({
1776
- disabled
1777
- }) => disabled && styled.css(["cursor:not-allowed;border:", ";background-color:", ";*{cursor:not-allowed;}.fieldLabel{color:", ";}.requiredLabel{color:", ";}svg{fill:", ";}input{::placeholder{color:", ";}}"], ({
1778
- theme,
1779
- variant
1780
- }) => `1px solid ${theme.components.dropdown[variant].container.border.disable}`, ({
1781
- theme,
1782
- variant
1783
- }) => theme.components.dropdown[variant].container.color.disable, ({
1784
- theme,
1785
- variant
1786
- }) => theme.components.dropdown[variant].text.color.fieldLabel.disable, ({
1787
- theme,
1788
- variant
1789
- }) => theme.components.dropdown[variant].text.color.required.disable, ({
1790
- theme,
1791
- variant
1792
- }) => theme.components.dropdown[variant].icon.color.disable, ({
1793
- theme,
1794
- variant
1795
- }) => theme.components.dropdown[variant].text.color.required.disable));
1796
- const SectionContainer = /*#__PURE__*/styled__default["default"].section.withConfig({
1797
- displayName: "molecules-dropdownstyles__SectionContainer",
1798
- componentId: "sc-3wugi4-2"
1799
- })([".errorMessage{width:100%;padding-right:", ";padding-left:", ";label{color:", ";font-family:", ";font-weight:", ";line-height:", ";font-size:", ";letter-spacing:", ";}}"], ({
1800
- theme
1801
- }) => theme.components.dropdown.paddingVertical, ({
1802
- theme
1803
- }) => theme.components.dropdown.paddingVertical, ({
1804
- theme,
1805
- variant
1806
- }) => theme.components.dropdown[variant].text.color.errorMessage.error, ({
1807
- theme
1808
- }) => theme.components.dropdown.error.fontFamily, ({
1809
- theme
1810
- }) => theme.components.dropdown.error.fontWeight, ({
1811
- theme
1812
- }) => theme.components.dropdown.error.lineHeight, ({
1813
- theme
1814
- }) => theme.components.dropdown.error.fontSize, ({
1815
- theme
1816
- }) => theme.components.dropdown.error.letterSpacing);
1817
- const InputAndIconDropdown = /*#__PURE__*/styled__default["default"].div.withConfig({
1818
- displayName: "molecules-dropdownstyles__InputAndIconDropdown",
1819
- componentId: "sc-3wugi4-3"
1820
- })(["display:flex;"]);
1821
- const ContentDropdown = /*#__PURE__*/styled__default["default"].div.withConfig({
1822
- displayName: "molecules-dropdownstyles__ContentDropdown",
1823
- componentId: "sc-3wugi4-4"
1824
- })(["gap:", ";"], ({
1825
- theme
1826
- }) => theme.components.dropdown.gap);
1827
- const FieldLabelAndRequiredLabelDropdown = /*#__PURE__*/styled__default["default"](ClickableElement).withConfig({
1828
- displayName: "molecules-dropdownstyles__FieldLabelAndRequiredLabelDropdown",
1829
- componentId: "sc-3wugi4-5"
1830
- })(["gap:", ";display:flex;"], ({
1831
- theme
1832
- }) => theme.components.dropdown.requiredGap);
1658
+ var wellKnownSymbol$3 = wellKnownSymbol$a;
1833
1659
 
1834
- const ReusableDropdownComponent = ({
1835
- label,
1836
- variant: _variant = 'grey',
1837
- required,
1838
- inputValue,
1839
- hasError,
1840
- disabled,
1841
- errorMessage,
1842
- onChangeInputValue,
1843
- setShowSelectComponent,
1844
- showSelectComponent,
1845
- setSelectedOptionOnInputValue,
1846
- inputRef,
1847
- dataTestId,
1848
- placeholder
1849
- }) => {
1850
- return jsxRuntime.jsxs(jsxRuntime.Fragment, {
1851
- children: [jsxRuntime.jsx(ContainerDropdown, Object.assign({
1852
- variant: _variant,
1853
- hasValue: inputValue,
1854
- hasError: hasError,
1855
- disabled: disabled,
1856
- "data-testid": `${dataTestId}-dropdown-container`
1857
- }, {
1858
- children: jsxRuntime.jsxs(ContentDropdown, {
1859
- children: [jsxRuntime.jsxs(FieldLabelAndRequiredLabelDropdown, Object.assign({
1860
- onClick: () => {
1861
- setShowSelectComponent(disabled ? false : !showSelectComponent);
1862
- }
1863
- }, {
1864
- children: [jsxRuntime.jsx("label", Object.assign({
1865
- className: "fieldLabel",
1866
- "data-testid": `${dataTestId}-label`
1867
- }, {
1868
- children: label
1869
- })), required && jsxRuntime.jsx("label", Object.assign({
1870
- className: "requiredLabel",
1871
- "data-testid": `${dataTestId}-label-required`
1872
- }, {
1873
- children: "*"
1874
- }))]
1875
- })), jsxRuntime.jsxs(InputAndIconDropdown, {
1876
- children: [jsxRuntime.jsx(atomsInput.InputStyled, {
1877
- "data-testid": `${dataTestId}-input`,
1878
- ref: inputRef,
1879
- disabled: disabled,
1880
- value: inputValue,
1881
- variant: _variant,
1882
- placeholder: placeholder,
1883
- onChange: e => {
1884
- var _a;
1885
- onChangeInputValue(((_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.value) || '');
1886
- setShowSelectComponent(true);
1887
- },
1888
- onFocus: () => {
1889
- onChangeInputValue('');
1890
- setShowSelectComponent(true);
1891
- },
1892
- onBlur: () => {
1893
- setSelectedOptionOnInputValue();
1894
- setShowSelectComponent(false);
1895
- }
1896
- }), jsxRuntime.jsx(ClickableElement, Object.assign({
1897
- onClick: () => {
1898
- if (!disabled) setShowSelectComponent(!showSelectComponent);
1899
- }
1900
- }, {
1901
- children: jsxRuntime.jsx(atomsIcon.Icon, {
1902
- dataTestId: `${dataTestId}-icon`,
1903
- icon: !showSelectComponent ? 'keyboard_arrow_down' : 'keyboard_arrow_up'
1904
- })
1905
- }))]
1906
- })]
1907
- })
1908
- })), !showSelectComponent && hasError && errorMessage && jsxRuntime.jsx("div", Object.assign({
1909
- className: "errorMessage"
1910
- }, {
1911
- children: jsxRuntime.jsx("label", Object.assign({
1912
- "data-testid": `${dataTestId}-label-error-message`
1913
- }, {
1914
- children: errorMessage
1915
- }))
1916
- }))]
1917
- });
1918
- };
1919
-
1920
- var wellKnownSymbol$2 = wellKnownSymbol$9;
1921
-
1922
- var TO_STRING_TAG$1 = wellKnownSymbol$2('toStringTag');
1660
+ var TO_STRING_TAG$1 = wellKnownSymbol$3('toStringTag');
1923
1661
  var test = {};
1924
1662
 
1925
1663
  test[TO_STRING_TAG$1] = 'z';
@@ -1927,11 +1665,11 @@ test[TO_STRING_TAG$1] = 'z';
1927
1665
  var toStringTagSupport = String(test) === '[object z]';
1928
1666
 
1929
1667
  var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1930
- var isCallable$1 = isCallable$g;
1668
+ var isCallable$2 = isCallable$h;
1931
1669
  var classofRaw$1 = classofRaw$2;
1932
- var wellKnownSymbol$1 = wellKnownSymbol$9;
1670
+ var wellKnownSymbol$2 = wellKnownSymbol$a;
1933
1671
 
1934
- var TO_STRING_TAG = wellKnownSymbol$1('toStringTag');
1672
+ var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
1935
1673
  var $Object = Object;
1936
1674
 
1937
1675
  // ES3 wrong here
@@ -1953,24 +1691,24 @@ var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1953
1691
  // builtinTag case
1954
1692
  : CORRECT_ARGUMENTS ? classofRaw$1(O)
1955
1693
  // ES3 arguments fallback
1956
- : (result = classofRaw$1(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result;
1694
+ : (result = classofRaw$1(O)) == 'Object' && isCallable$2(O.callee) ? 'Arguments' : result;
1957
1695
  };
1958
1696
 
1959
1697
  var classof$1 = classof$2;
1960
1698
 
1961
1699
  var $String = String;
1962
1700
 
1963
- var toString$3 = function (argument) {
1701
+ var toString$5 = function (argument) {
1964
1702
  if (classof$1(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
1965
1703
  return $String(argument);
1966
1704
  };
1967
1705
 
1968
- var anObject$2 = anObject$8;
1706
+ var anObject$3 = anObject$9;
1969
1707
 
1970
1708
  // `RegExp.prototype.flags` getter implementation
1971
1709
  // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
1972
1710
  var regexpFlags$1 = function () {
1973
- var that = anObject$2(this);
1711
+ var that = anObject$3(this);
1974
1712
  var result = '';
1975
1713
  if (that.hasIndices) result += 'd';
1976
1714
  if (that.global) result += 'g';
@@ -1983,13 +1721,13 @@ var regexpFlags$1 = function () {
1983
1721
  return result;
1984
1722
  };
1985
1723
 
1986
- var fails$4 = fails$g;
1724
+ var fails$5 = fails$h;
1987
1725
  var global$3 = global$e;
1988
1726
 
1989
1727
  // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
1990
1728
  var $RegExp$2 = global$3.RegExp;
1991
1729
 
1992
- var UNSUPPORTED_Y$1 = fails$4(function () {
1730
+ var UNSUPPORTED_Y$1 = fails$5(function () {
1993
1731
  var re = $RegExp$2('a', 'y');
1994
1732
  re.lastIndex = 2;
1995
1733
  return re.exec('abcd') != null;
@@ -1997,11 +1735,11 @@ var UNSUPPORTED_Y$1 = fails$4(function () {
1997
1735
 
1998
1736
  // UC Browser bug
1999
1737
  // https://github.com/zloirock/core-js/issues/1008
2000
- var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$4(function () {
1738
+ var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$5(function () {
2001
1739
  return !$RegExp$2('a', 'y').sticky;
2002
1740
  });
2003
1741
 
2004
- var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$4(function () {
1742
+ var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$5(function () {
2005
1743
  // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
2006
1744
  var re = $RegExp$2('^r', 'gy');
2007
1745
  re.lastIndex = 2;
@@ -2014,24 +1752,24 @@ var regexpStickyHelpers = {
2014
1752
  UNSUPPORTED_Y: UNSUPPORTED_Y$1
2015
1753
  };
2016
1754
 
2017
- var fails$3 = fails$g;
1755
+ var fails$4 = fails$h;
2018
1756
  var global$2 = global$e;
2019
1757
 
2020
1758
  // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
2021
1759
  var $RegExp$1 = global$2.RegExp;
2022
1760
 
2023
- var regexpUnsupportedDotAll = fails$3(function () {
1761
+ var regexpUnsupportedDotAll = fails$4(function () {
2024
1762
  var re = $RegExp$1('.', 's');
2025
1763
  return !(re.dotAll && re.exec('\n') && re.flags === 's');
2026
1764
  });
2027
1765
 
2028
- var fails$2 = fails$g;
1766
+ var fails$3 = fails$h;
2029
1767
  var global$1 = global$e;
2030
1768
 
2031
1769
  // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
2032
1770
  var $RegExp = global$1.RegExp;
2033
1771
 
2034
- var regexpUnsupportedNcg = fails$2(function () {
1772
+ var regexpUnsupportedNcg = fails$3(function () {
2035
1773
  var re = $RegExp('(?<a>b)', 'g');
2036
1774
  return re.exec('b').groups.a !== 'b' ||
2037
1775
  'b'.replace(re, '$<a>c') !== 'bc';
@@ -2039,9 +1777,9 @@ var regexpUnsupportedNcg = fails$2(function () {
2039
1777
 
2040
1778
  /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
2041
1779
  /* eslint-disable regexp/no-useless-quantifier -- testing */
2042
- var call$2 = functionCall;
2043
- var uncurryThis$3 = functionUncurryThis;
2044
- var toString$2 = toString$3;
1780
+ var call$4 = functionCall;
1781
+ var uncurryThis$6 = functionUncurryThis;
1782
+ var toString$4 = toString$5;
2045
1783
  var regexpFlags = regexpFlags$1;
2046
1784
  var stickyHelpers = regexpStickyHelpers;
2047
1785
  var shared = shared$4.exports;
@@ -2053,16 +1791,16 @@ var UNSUPPORTED_NCG = regexpUnsupportedNcg;
2053
1791
  var nativeReplace = shared('native-string-replace', String.prototype.replace);
2054
1792
  var nativeExec = RegExp.prototype.exec;
2055
1793
  var patchedExec = nativeExec;
2056
- var charAt = uncurryThis$3(''.charAt);
2057
- var indexOf = uncurryThis$3(''.indexOf);
2058
- var replace$1 = uncurryThis$3(''.replace);
2059
- var stringSlice = uncurryThis$3(''.slice);
1794
+ var charAt$3 = uncurryThis$6(''.charAt);
1795
+ var indexOf = uncurryThis$6(''.indexOf);
1796
+ var replace$2 = uncurryThis$6(''.replace);
1797
+ var stringSlice$3 = uncurryThis$6(''.slice);
2060
1798
 
2061
1799
  var UPDATES_LAST_INDEX_WRONG = (function () {
2062
1800
  var re1 = /a/;
2063
1801
  var re2 = /b*/g;
2064
- call$2(nativeExec, re1, 'a');
2065
- call$2(nativeExec, re2, 'a');
1802
+ call$4(nativeExec, re1, 'a');
1803
+ call$4(nativeExec, re2, 'a');
2066
1804
  return re1.lastIndex !== 0 || re2.lastIndex !== 0;
2067
1805
  })();
2068
1806
 
@@ -2077,33 +1815,33 @@ if (PATCH) {
2077
1815
  patchedExec = function exec(string) {
2078
1816
  var re = this;
2079
1817
  var state = getInternalState(re);
2080
- var str = toString$2(string);
1818
+ var str = toString$4(string);
2081
1819
  var raw = state.raw;
2082
1820
  var result, reCopy, lastIndex, match, i, object, group;
2083
1821
 
2084
1822
  if (raw) {
2085
1823
  raw.lastIndex = re.lastIndex;
2086
- result = call$2(patchedExec, raw, str);
1824
+ result = call$4(patchedExec, raw, str);
2087
1825
  re.lastIndex = raw.lastIndex;
2088
1826
  return result;
2089
1827
  }
2090
1828
 
2091
1829
  var groups = state.groups;
2092
1830
  var sticky = UNSUPPORTED_Y && re.sticky;
2093
- var flags = call$2(regexpFlags, re);
1831
+ var flags = call$4(regexpFlags, re);
2094
1832
  var source = re.source;
2095
1833
  var charsAdded = 0;
2096
1834
  var strCopy = str;
2097
1835
 
2098
1836
  if (sticky) {
2099
- flags = replace$1(flags, 'y', '');
1837
+ flags = replace$2(flags, 'y', '');
2100
1838
  if (indexOf(flags, 'g') === -1) {
2101
1839
  flags += 'g';
2102
1840
  }
2103
1841
 
2104
- strCopy = stringSlice(str, re.lastIndex);
1842
+ strCopy = stringSlice$3(str, re.lastIndex);
2105
1843
  // Support anchored sticky behavior.
2106
- if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt(str, re.lastIndex - 1) !== '\n')) {
1844
+ if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
2107
1845
  source = '(?: ' + source + ')';
2108
1846
  strCopy = ' ' + strCopy;
2109
1847
  charsAdded++;
@@ -2118,12 +1856,12 @@ if (PATCH) {
2118
1856
  }
2119
1857
  if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
2120
1858
 
2121
- match = call$2(nativeExec, sticky ? reCopy : re, strCopy);
1859
+ match = call$4(nativeExec, sticky ? reCopy : re, strCopy);
2122
1860
 
2123
1861
  if (sticky) {
2124
1862
  if (match) {
2125
- match.input = stringSlice(match.input, charsAdded);
2126
- match[0] = stringSlice(match[0], charsAdded);
1863
+ match.input = stringSlice$3(match.input, charsAdded);
1864
+ match[0] = stringSlice$3(match[0], charsAdded);
2127
1865
  match.index = re.lastIndex;
2128
1866
  re.lastIndex += match[0].length;
2129
1867
  } else re.lastIndex = 0;
@@ -2133,7 +1871,7 @@ if (PATCH) {
2133
1871
  if (NPCG_INCLUDED && match && match.length > 1) {
2134
1872
  // Fix browsers whose `exec` methods don't consistently return `undefined`
2135
1873
  // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
2136
- call$2(nativeReplace, match[0], reCopy, function () {
1874
+ call$4(nativeReplace, match[0], reCopy, function () {
2137
1875
  for (i = 1; i < arguments.length - 2; i++) {
2138
1876
  if (arguments[i] === undefined) match[i] = undefined;
2139
1877
  }
@@ -2163,39 +1901,50 @@ $$1({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
2163
1901
  exec: exec
2164
1902
  });
2165
1903
 
1904
+ var NATIVE_BIND = functionBindNative;
1905
+
1906
+ var FunctionPrototype = Function.prototype;
1907
+ var apply$1 = FunctionPrototype.apply;
1908
+ var call$3 = FunctionPrototype.call;
1909
+
1910
+ // eslint-disable-next-line es/no-reflect -- safe
1911
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$3.bind(apply$1) : function () {
1912
+ return call$3.apply(apply$1, arguments);
1913
+ });
1914
+
2166
1915
  var classofRaw = classofRaw$2;
2167
- var uncurryThis$2 = functionUncurryThis;
1916
+ var uncurryThis$5 = functionUncurryThis;
2168
1917
 
2169
1918
  var functionUncurryThisClause = function (fn) {
2170
1919
  // Nashorn bug:
2171
1920
  // https://github.com/zloirock/core-js/issues/1128
2172
1921
  // https://github.com/zloirock/core-js/issues/1130
2173
- if (classofRaw(fn) === 'Function') return uncurryThis$2(fn);
1922
+ if (classofRaw(fn) === 'Function') return uncurryThis$5(fn);
2174
1923
  };
2175
1924
 
2176
1925
  // TODO: Remove from `core-js@4` since it's moved to entry points
2177
1926
 
2178
- var uncurryThis$1 = functionUncurryThisClause;
1927
+ var uncurryThis$4 = functionUncurryThisClause;
2179
1928
  var defineBuiltIn = defineBuiltIn$4;
2180
1929
  var regexpExec$1 = regexpExec$2;
2181
- var fails$1 = fails$g;
2182
- var wellKnownSymbol = wellKnownSymbol$9;
1930
+ var fails$2 = fails$h;
1931
+ var wellKnownSymbol$1 = wellKnownSymbol$a;
2183
1932
  var createNonEnumerableProperty = createNonEnumerableProperty$5;
2184
1933
 
2185
- var SPECIES = wellKnownSymbol('species');
1934
+ var SPECIES = wellKnownSymbol$1('species');
2186
1935
  var RegExpPrototype = RegExp.prototype;
2187
1936
 
2188
1937
  var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
2189
- var SYMBOL = wellKnownSymbol(KEY);
1938
+ var SYMBOL = wellKnownSymbol$1(KEY);
2190
1939
 
2191
- var DELEGATES_TO_SYMBOL = !fails$1(function () {
1940
+ var DELEGATES_TO_SYMBOL = !fails$2(function () {
2192
1941
  // String methods call symbol-named RegEp methods
2193
1942
  var O = {};
2194
1943
  O[SYMBOL] = function () { return 7; };
2195
1944
  return ''[KEY](O) != 7;
2196
1945
  });
2197
1946
 
2198
- var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$1(function () {
1947
+ var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$2(function () {
2199
1948
  // Symbol-named RegExp methods call .exec
2200
1949
  var execCalled = false;
2201
1950
  var re = /a/;
@@ -2224,9 +1973,9 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
2224
1973
  !DELEGATES_TO_EXEC ||
2225
1974
  FORCED
2226
1975
  ) {
2227
- var uncurriedNativeRegExpMethod = uncurryThis$1(/./[SYMBOL]);
1976
+ var uncurriedNativeRegExpMethod = uncurryThis$4(/./[SYMBOL]);
2228
1977
  var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
2229
- var uncurriedNativeMethod = uncurryThis$1(nativeMethod);
1978
+ var uncurriedNativeMethod = uncurryThis$4(nativeMethod);
2230
1979
  var $exec = regexp.exec;
2231
1980
  if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
2232
1981
  if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
@@ -2247,17 +1996,100 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
2247
1996
  if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
2248
1997
  };
2249
1998
 
2250
- // `SameValue` abstract operation
2251
- // https://tc39.es/ecma262/#sec-samevalue
2252
- // eslint-disable-next-line es/no-object-is -- safe
2253
- var sameValue$1 = Object.is || function is(x, y) {
2254
- // eslint-disable-next-line no-self-compare -- NaN check
2255
- return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
1999
+ var uncurryThis$3 = functionUncurryThis;
2000
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
2001
+ var toString$3 = toString$5;
2002
+ var requireObjectCoercible$3 = requireObjectCoercible$6;
2003
+
2004
+ var charAt$2 = uncurryThis$3(''.charAt);
2005
+ var charCodeAt = uncurryThis$3(''.charCodeAt);
2006
+ var stringSlice$2 = uncurryThis$3(''.slice);
2007
+
2008
+ var createMethod$1 = function (CONVERT_TO_STRING) {
2009
+ return function ($this, pos) {
2010
+ var S = toString$3(requireObjectCoercible$3($this));
2011
+ var position = toIntegerOrInfinity$1(pos);
2012
+ var size = S.length;
2013
+ var first, second;
2014
+ if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
2015
+ first = charCodeAt(S, position);
2016
+ return first < 0xD800 || first > 0xDBFF || position + 1 === size
2017
+ || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
2018
+ ? CONVERT_TO_STRING
2019
+ ? charAt$2(S, position)
2020
+ : first
2021
+ : CONVERT_TO_STRING
2022
+ ? stringSlice$2(S, position, position + 2)
2023
+ : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
2024
+ };
2256
2025
  };
2257
2026
 
2258
- var call$1 = functionCall;
2259
- var anObject$1 = anObject$8;
2260
- var isCallable = isCallable$g;
2027
+ var stringMultibyte = {
2028
+ // `String.prototype.codePointAt` method
2029
+ // https://tc39.es/ecma262/#sec-string.prototype.codepointat
2030
+ codeAt: createMethod$1(false),
2031
+ // `String.prototype.at` method
2032
+ // https://github.com/mathiasbynens/String.prototype.at
2033
+ charAt: createMethod$1(true)
2034
+ };
2035
+
2036
+ var charAt$1 = stringMultibyte.charAt;
2037
+
2038
+ // `AdvanceStringIndex` abstract operation
2039
+ // https://tc39.es/ecma262/#sec-advancestringindex
2040
+ var advanceStringIndex$1 = function (S, index, unicode) {
2041
+ return index + (unicode ? charAt$1(S, index).length : 1);
2042
+ };
2043
+
2044
+ var uncurryThis$2 = functionUncurryThis;
2045
+ var toObject = toObject$4;
2046
+
2047
+ var floor = Math.floor;
2048
+ var charAt = uncurryThis$2(''.charAt);
2049
+ var replace$1 = uncurryThis$2(''.replace);
2050
+ var stringSlice$1 = uncurryThis$2(''.slice);
2051
+ // eslint-disable-next-line redos/no-vulnerable -- safe
2052
+ var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
2053
+ var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
2054
+
2055
+ // `GetSubstitution` abstract operation
2056
+ // https://tc39.es/ecma262/#sec-getsubstitution
2057
+ var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) {
2058
+ var tailPos = position + matched.length;
2059
+ var m = captures.length;
2060
+ var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
2061
+ if (namedCaptures !== undefined) {
2062
+ namedCaptures = toObject(namedCaptures);
2063
+ symbols = SUBSTITUTION_SYMBOLS;
2064
+ }
2065
+ return replace$1(replacement, symbols, function (match, ch) {
2066
+ var capture;
2067
+ switch (charAt(ch, 0)) {
2068
+ case '$': return '$';
2069
+ case '&': return matched;
2070
+ case '`': return stringSlice$1(str, 0, position);
2071
+ case "'": return stringSlice$1(str, tailPos);
2072
+ case '<':
2073
+ capture = namedCaptures[stringSlice$1(ch, 1, -1)];
2074
+ break;
2075
+ default: // \d\d?
2076
+ var n = +ch;
2077
+ if (n === 0) return match;
2078
+ if (n > m) {
2079
+ var f = floor(n / 10);
2080
+ if (f === 0) return match;
2081
+ if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
2082
+ return match;
2083
+ }
2084
+ capture = captures[n - 1];
2085
+ }
2086
+ return capture === undefined ? '' : capture;
2087
+ });
2088
+ };
2089
+
2090
+ var call$2 = functionCall;
2091
+ var anObject$2 = anObject$9;
2092
+ var isCallable$1 = isCallable$h;
2261
2093
  var classof = classofRaw$2;
2262
2094
  var regexpExec = regexpExec$2;
2263
2095
 
@@ -2267,23 +2099,426 @@ var $TypeError = TypeError;
2267
2099
  // https://tc39.es/ecma262/#sec-regexpexec
2268
2100
  var regexpExecAbstract = function (R, S) {
2269
2101
  var exec = R.exec;
2270
- if (isCallable(exec)) {
2271
- var result = call$1(exec, R, S);
2272
- if (result !== null) anObject$1(result);
2102
+ if (isCallable$1(exec)) {
2103
+ var result = call$2(exec, R, S);
2104
+ if (result !== null) anObject$2(result);
2273
2105
  return result;
2274
2106
  }
2275
- if (classof(R) === 'RegExp') return call$1(regexpExec, R, S);
2107
+ if (classof(R) === 'RegExp') return call$2(regexpExec, R, S);
2276
2108
  throw $TypeError('RegExp#exec called on incompatible receiver');
2277
2109
  };
2278
2110
 
2111
+ var apply = functionApply;
2112
+ var call$1 = functionCall;
2113
+ var uncurryThis$1 = functionUncurryThis;
2114
+ var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
2115
+ var fails$1 = fails$h;
2116
+ var anObject$1 = anObject$9;
2117
+ var isCallable = isCallable$h;
2118
+ var isNullOrUndefined$1 = isNullOrUndefined$4;
2119
+ var toIntegerOrInfinity = toIntegerOrInfinity$4;
2120
+ var toLength = toLength$2;
2121
+ var toString$2 = toString$5;
2122
+ var requireObjectCoercible$2 = requireObjectCoercible$6;
2123
+ var advanceStringIndex = advanceStringIndex$1;
2124
+ var getMethod$1 = getMethod$3;
2125
+ var getSubstitution = getSubstitution$1;
2126
+ var regExpExec$1 = regexpExecAbstract;
2127
+ var wellKnownSymbol = wellKnownSymbol$a;
2128
+
2129
+ var REPLACE = wellKnownSymbol('replace');
2130
+ var max = Math.max;
2131
+ var min = Math.min;
2132
+ var concat = uncurryThis$1([].concat);
2133
+ var push = uncurryThis$1([].push);
2134
+ var stringIndexOf = uncurryThis$1(''.indexOf);
2135
+ var stringSlice = uncurryThis$1(''.slice);
2136
+
2137
+ var maybeToString = function (it) {
2138
+ return it === undefined ? it : String(it);
2139
+ };
2140
+
2141
+ // IE <= 11 replaces $0 with the whole match, as if it was $&
2142
+ // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
2143
+ var REPLACE_KEEPS_$0 = (function () {
2144
+ // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
2145
+ return 'a'.replace(/./, '$0') === '$0';
2146
+ })();
2147
+
2148
+ // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
2149
+ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
2150
+ if (/./[REPLACE]) {
2151
+ return /./[REPLACE]('a', '$0') === '';
2152
+ }
2153
+ return false;
2154
+ })();
2155
+
2156
+ var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$1(function () {
2157
+ var re = /./;
2158
+ re.exec = function () {
2159
+ var result = [];
2160
+ result.groups = { a: '7' };
2161
+ return result;
2162
+ };
2163
+ // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
2164
+ return ''.replace(re, '$<a>') !== '7';
2165
+ });
2166
+
2167
+ // @@replace logic
2168
+ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCallNative) {
2169
+ var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
2170
+
2171
+ return [
2172
+ // `String.prototype.replace` method
2173
+ // https://tc39.es/ecma262/#sec-string.prototype.replace
2174
+ function replace(searchValue, replaceValue) {
2175
+ var O = requireObjectCoercible$2(this);
2176
+ var replacer = isNullOrUndefined$1(searchValue) ? undefined : getMethod$1(searchValue, REPLACE);
2177
+ return replacer
2178
+ ? call$1(replacer, searchValue, O, replaceValue)
2179
+ : call$1(nativeReplace, toString$2(O), searchValue, replaceValue);
2180
+ },
2181
+ // `RegExp.prototype[@@replace]` method
2182
+ // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
2183
+ function (string, replaceValue) {
2184
+ var rx = anObject$1(this);
2185
+ var S = toString$2(string);
2186
+
2187
+ if (
2188
+ typeof replaceValue == 'string' &&
2189
+ stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
2190
+ stringIndexOf(replaceValue, '$<') === -1
2191
+ ) {
2192
+ var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
2193
+ if (res.done) return res.value;
2194
+ }
2195
+
2196
+ var functionalReplace = isCallable(replaceValue);
2197
+ if (!functionalReplace) replaceValue = toString$2(replaceValue);
2198
+
2199
+ var global = rx.global;
2200
+ if (global) {
2201
+ var fullUnicode = rx.unicode;
2202
+ rx.lastIndex = 0;
2203
+ }
2204
+ var results = [];
2205
+ while (true) {
2206
+ var result = regExpExec$1(rx, S);
2207
+ if (result === null) break;
2208
+
2209
+ push(results, result);
2210
+ if (!global) break;
2211
+
2212
+ var matchStr = toString$2(result[0]);
2213
+ if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
2214
+ }
2215
+
2216
+ var accumulatedResult = '';
2217
+ var nextSourcePosition = 0;
2218
+ for (var i = 0; i < results.length; i++) {
2219
+ result = results[i];
2220
+
2221
+ var matched = toString$2(result[0]);
2222
+ var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
2223
+ var captures = [];
2224
+ // NOTE: This is equivalent to
2225
+ // captures = result.slice(1).map(maybeToString)
2226
+ // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
2227
+ // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
2228
+ // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
2229
+ for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
2230
+ var namedCaptures = result.groups;
2231
+ if (functionalReplace) {
2232
+ var replacerArgs = concat([matched], captures, position, S);
2233
+ if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
2234
+ var replacement = toString$2(apply(replaceValue, undefined, replacerArgs));
2235
+ } else {
2236
+ replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
2237
+ }
2238
+ if (position >= nextSourcePosition) {
2239
+ accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
2240
+ nextSourcePosition = position + matched.length;
2241
+ }
2242
+ }
2243
+ return accumulatedResult + stringSlice(S, nextSourcePosition);
2244
+ }
2245
+ ];
2246
+ }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
2247
+
2248
+ const ClickableElement = /*#__PURE__*/styled__default["default"].div.withConfig({
2249
+ displayName: "molecules-dropdownstyles__ClickableElement",
2250
+ componentId: "sc-3wugi4-0"
2251
+ })(["display:flex;flex-direction:column;justify-content:center;cursor:pointer;"]);
2252
+ const ContainerDropdown = /*#__PURE__*/styled__default["default"].section.withConfig({
2253
+ displayName: "molecules-dropdownstyles__ContainerDropdown",
2254
+ componentId: "sc-3wugi4-1"
2255
+ })(["display:flex;padding-top:", ";padding-bottom:", ";padding-right:", ";padding-left:", ";gap:", ";background-color:", ";border:", ";border-radius:", ";box-shadow:", ";input{display:inline-block;text-overflow:ellipsis;white-space:nowrap;width:100%;overflow-x:hidden;}.fieldLabel{color:", ";font-family:", ";font-weight:", ";line-height:", ";font-size:", ";letter-spacing:", ";}.requiredLabel{color:", ";font-family:", ";font-weight:", ";line-height:", ";font-size:", ";letter-spacing:", ";}svg{fill:", ";}&:focus-within{background-color:", ";border:", ";", "}", " ", ""], ({
2256
+ theme
2257
+ }) => theme.components.dropdown.paddingVertical, ({
2258
+ theme
2259
+ }) => theme.components.dropdown.paddingVertical, ({
2260
+ theme
2261
+ }) => theme.components.dropdown.paddingHorizontal, ({
2262
+ theme
2263
+ }) => theme.components.dropdown.paddingHorizontal, ({
2264
+ theme
2265
+ }) => theme.components.dropdown.gap, ({
2266
+ theme,
2267
+ variant
2268
+ }) => theme.components.dropdown[variant].container.color.default, ({
2269
+ theme,
2270
+ variant
2271
+ }) => `1px solid ${theme.components.dropdown[variant].container.border.default}`, ({
2272
+ theme
2273
+ }) => theme.components.dropdown.borderRadius, ({
2274
+ theme: {
2275
+ effects: {
2276
+ shadow
2277
+ }
2278
+ }
2279
+ }) => `${shadow.lvl0.x} ${shadow.lvl0.y} ${shadow.lvl0.blur} ${shadow.lvl0.spread} ${shadow.lvl0.color}`, ({
2280
+ theme,
2281
+ variant,
2282
+ hasValue
2283
+ }) => theme.components.dropdown[variant].text.color.fieldLabel[hasValue ? 'filled' : 'default'], ({
2284
+ theme
2285
+ }) => theme.components.dropdown.fieldLabel.fontFamily, ({
2286
+ theme
2287
+ }) => theme.components.dropdown.fieldLabel.fontWeight, ({
2288
+ theme
2289
+ }) => theme.components.dropdown.fieldLabel.lineHeight, ({
2290
+ theme
2291
+ }) => theme.components.dropdown.fieldLabel.fontSize, ({
2292
+ theme
2293
+ }) => theme.components.dropdown.fieldLabel.letterSpacing, ({
2294
+ theme,
2295
+ variant,
2296
+ hasValue
2297
+ }) => theme.components.dropdown[variant].text.color.required[hasValue ? 'filled' : 'default'], ({
2298
+ theme
2299
+ }) => theme.components.dropdown.required.fontFamily, ({
2300
+ theme
2301
+ }) => theme.components.dropdown.required.fontWeight, ({
2302
+ theme
2303
+ }) => theme.components.dropdown.required.lineHeight, ({
2304
+ theme
2305
+ }) => theme.components.dropdown.required.fontSize, ({
2306
+ theme
2307
+ }) => theme.components.dropdown.required.letterSpacing, ({
2308
+ theme,
2309
+ variant,
2310
+ hasValue
2311
+ }) => theme.components.dropdown[variant].icon.color[hasValue ? 'filled' : 'default'], ({
2312
+ theme,
2313
+ variant,
2314
+ hasError
2315
+ }) => theme.components.dropdown[variant].container.color[hasError ? 'error' : 'focus'], ({
2316
+ theme,
2317
+ variant,
2318
+ hasError
2319
+ }) => `1px solid ${theme.components.dropdown[variant].container.border[hasError ? 'error' : 'focus']}`, ({
2320
+ hasError
2321
+ }) => !hasError && styled.css([".fieldLabel{color:", ";}.requiredLabel{color:", ";}svg{fill:", ";}"], ({
2322
+ theme,
2323
+ variant
2324
+ }) => theme.components.dropdown[variant].text.color.fieldLabel.focus, ({
2325
+ theme,
2326
+ variant
2327
+ }) => theme.components.dropdown[variant].text.color.required.focus, ({
2328
+ theme,
2329
+ variant
2330
+ }) => theme.components.dropdown[variant].icon.color.focus), ({
2331
+ hasError,
2332
+ hasValue
2333
+ }) => hasError && styled.css(["border:", ";background-color:", ";.fieldLabel{color:", ";}.requiredLabel{color:", ";}svg{fill:", ";}"], ({
2334
+ theme,
2335
+ variant
2336
+ }) => `1px solid ${theme.components.dropdown[variant].container.border[hasValue ? 'errorFilled' : 'error']}`, ({
2337
+ theme,
2338
+ variant
2339
+ }) => theme.components.dropdown[variant].container.color[hasValue ? 'errorFilled' : 'error'], ({
2340
+ theme,
2341
+ variant,
2342
+ hasValue
2343
+ }) => theme.components.dropdown[variant].text.color.fieldLabel[hasValue ? 'errorFilled' : 'error'], ({
2344
+ theme,
2345
+ variant,
2346
+ hasValue
2347
+ }) => theme.components.dropdown[variant].text.color.required[hasValue ? 'errorFilled' : 'error'], ({
2348
+ theme,
2349
+ variant
2350
+ }) => theme.components.dropdown[variant].icon.color[hasValue ? 'errorFilled' : 'error']), ({
2351
+ disabled
2352
+ }) => disabled && styled.css(["cursor:not-allowed;border:", ";background-color:", ";*{cursor:not-allowed;}.fieldLabel{color:", ";}.requiredLabel{color:", ";}svg{fill:", ";}input{color:", ";::placeholder{color:", ";}}"], ({
2353
+ theme,
2354
+ variant
2355
+ }) => `1px solid ${theme.components.dropdown[variant].container.border.disable}`, ({
2356
+ theme,
2357
+ variant
2358
+ }) => theme.components.dropdown[variant].container.color.disable, ({
2359
+ theme,
2360
+ variant
2361
+ }) => theme.components.dropdown[variant].text.color.fieldLabel.disable, ({
2362
+ theme,
2363
+ variant
2364
+ }) => theme.components.dropdown[variant].text.color.required.disable, ({
2365
+ theme,
2366
+ variant
2367
+ }) => theme.components.dropdown[variant].icon.color.disable, ({
2368
+ theme,
2369
+ variant
2370
+ }) => theme.components.dropdown[variant].text.color.fieldLabel.disable, ({
2371
+ theme,
2372
+ variant
2373
+ }) => theme.components.dropdown[variant].text.color.fieldLabel.disable));
2374
+ const SectionContainer = /*#__PURE__*/styled__default["default"].section.withConfig({
2375
+ displayName: "molecules-dropdownstyles__SectionContainer",
2376
+ componentId: "sc-3wugi4-2"
2377
+ })([".errorMessage{padding-right:", ";padding-left:", ";label{color:", ";font-family:", ";font-weight:", ";line-height:", ";font-size:", ";letter-spacing:", ";}}"], ({
2378
+ theme
2379
+ }) => theme.components.dropdown.paddingHorizontal, ({
2380
+ theme
2381
+ }) => theme.components.dropdown.paddingHorizontal, ({
2382
+ theme,
2383
+ variant
2384
+ }) => theme.components.dropdown[variant].text.color.errorMessage.error, ({
2385
+ theme
2386
+ }) => theme.components.dropdown.error.fontFamily, ({
2387
+ theme
2388
+ }) => theme.components.dropdown.error.fontWeight, ({
2389
+ theme
2390
+ }) => theme.components.dropdown.error.lineHeight, ({
2391
+ theme
2392
+ }) => theme.components.dropdown.error.fontSize, ({
2393
+ theme
2394
+ }) => theme.components.dropdown.error.letterSpacing);
2395
+ const InputAndIconDropdown = /*#__PURE__*/styled__default["default"].div.withConfig({
2396
+ displayName: "molecules-dropdownstyles__InputAndIconDropdown",
2397
+ componentId: "sc-3wugi4-3"
2398
+ })(["display:flex;"]);
2399
+ const ContentDropdown = /*#__PURE__*/styled__default["default"].div.withConfig({
2400
+ displayName: "molecules-dropdownstyles__ContentDropdown",
2401
+ componentId: "sc-3wugi4-4"
2402
+ })(["flex:1;display:flex;flex-direction:column;gap:", ";"], ({
2403
+ theme
2404
+ }) => theme.components.dropdown.contentGap);
2405
+ const FieldLabelAndRequiredLabelDropdown = /*#__PURE__*/styled__default["default"].div.withConfig({
2406
+ displayName: "molecules-dropdownstyles__FieldLabelAndRequiredLabelDropdown",
2407
+ componentId: "sc-3wugi4-5"
2408
+ })(["gap:", ";display:flex;"], ({
2409
+ theme
2410
+ }) => theme.components.dropdown.requiredGap);
2411
+
2412
+ const ReusableDropdownComponent = ({
2413
+ label,
2414
+ variant: _variant = 'grey',
2415
+ required,
2416
+ inputValue,
2417
+ inputLabel,
2418
+ hasError,
2419
+ disabled,
2420
+ errorMessage,
2421
+ onChangeInputValue,
2422
+ onChangeInputLabel,
2423
+ setShowSelectComponent,
2424
+ showSelectComponent,
2425
+ setSelectedOptionOnInputValue,
2426
+ inputRef,
2427
+ dataTestId,
2428
+ placeholder
2429
+ }) => {
2430
+ // we have to type cast because of jest. when testing it sets the type of useTheme to DefaultTheme
2431
+ const theme = styled.useTheme();
2432
+ const sizeIcon = Number(theme.components.dropdown.icon.size.replace(/[^\d.-]+/g, ''));
2433
+ return jsxRuntime.jsxs(jsxRuntime.Fragment, {
2434
+ children: [jsxRuntime.jsxs(ContainerDropdown, Object.assign({
2435
+ variant: _variant,
2436
+ hasValue: inputValue,
2437
+ hasError: hasError,
2438
+ disabled: disabled,
2439
+ "data-testid": `${dataTestId}-dropdown-container`
2440
+ }, {
2441
+ children: [jsxRuntime.jsxs(ContentDropdown, {
2442
+ children: [jsxRuntime.jsxs(FieldLabelAndRequiredLabelDropdown, Object.assign({
2443
+ onClick: () => {
2444
+ setShowSelectComponent(disabled ? false : !showSelectComponent);
2445
+ }
2446
+ }, {
2447
+ children: [jsxRuntime.jsx("label", Object.assign({
2448
+ className: "fieldLabel",
2449
+ "data-testid": `${dataTestId}-label`
2450
+ }, {
2451
+ children: label
2452
+ })), required && jsxRuntime.jsx("label", Object.assign({
2453
+ className: "requiredLabel",
2454
+ "data-testid": `${dataTestId}-label-required`
2455
+ }, {
2456
+ children: "*"
2457
+ }))]
2458
+ })), jsxRuntime.jsx(InputAndIconDropdown, {
2459
+ children: jsxRuntime.jsx(atomsInput.InputStyled, {
2460
+ "data-testid": `${dataTestId}-input`,
2461
+ ref: inputRef,
2462
+ disabled: disabled,
2463
+ value: inputLabel,
2464
+ variant: _variant,
2465
+ placeholder: placeholder,
2466
+ onChange: e => {
2467
+ var _a, _b;
2468
+ onChangeInputValue(((_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.value) || '');
2469
+ onChangeInputLabel(((_b = e === null || e === void 0 ? void 0 : e.target) === null || _b === void 0 ? void 0 : _b.value) || '');
2470
+ setShowSelectComponent(true);
2471
+ },
2472
+ onFocus: () => {
2473
+ onChangeInputValue('');
2474
+ onChangeInputLabel('');
2475
+ setShowSelectComponent(true);
2476
+ },
2477
+ onBlur: () => {
2478
+ setSelectedOptionOnInputValue();
2479
+ setShowSelectComponent(false);
2480
+ }
2481
+ })
2482
+ })]
2483
+ }), jsxRuntime.jsx(ClickableElement, Object.assign({
2484
+ onClick: () => {
2485
+ if (!disabled) setShowSelectComponent(!showSelectComponent);
2486
+ }
2487
+ }, {
2488
+ children: jsxRuntime.jsx(atomsIcon.Icon, {
2489
+ dataTestId: `${dataTestId}-icon`,
2490
+ size: sizeIcon,
2491
+ icon: !showSelectComponent ? 'keyboard_arrow_down' : 'keyboard_arrow_up'
2492
+ })
2493
+ }))]
2494
+ })), !showSelectComponent && hasError && errorMessage && jsxRuntime.jsx("div", Object.assign({
2495
+ className: "errorMessage"
2496
+ }, {
2497
+ children: jsxRuntime.jsx("label", Object.assign({
2498
+ "data-testid": `${dataTestId}-label-error-message`
2499
+ }, {
2500
+ children: errorMessage
2501
+ }))
2502
+ }))]
2503
+ });
2504
+ };
2505
+
2506
+ // `SameValue` abstract operation
2507
+ // https://tc39.es/ecma262/#sec-samevalue
2508
+ // eslint-disable-next-line es/no-object-is -- safe
2509
+ var sameValue$1 = Object.is || function is(x, y) {
2510
+ // eslint-disable-next-line no-self-compare -- NaN check
2511
+ return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
2512
+ };
2513
+
2279
2514
  var call = functionCall;
2280
2515
  var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
2281
- var anObject = anObject$8;
2282
- var isNullOrUndefined = isNullOrUndefined$3;
2283
- var requireObjectCoercible$1 = requireObjectCoercible$4;
2516
+ var anObject = anObject$9;
2517
+ var isNullOrUndefined = isNullOrUndefined$4;
2518
+ var requireObjectCoercible$1 = requireObjectCoercible$6;
2284
2519
  var sameValue = sameValue$1;
2285
- var toString$1 = toString$3;
2286
- var getMethod = getMethod$2;
2520
+ var toString$1 = toString$5;
2521
+ var getMethod = getMethod$3;
2287
2522
  var regExpExec = regexpExecAbstract;
2288
2523
 
2289
2524
  // @@search logic
@@ -2319,8 +2554,8 @@ var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u200
2319
2554
  '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
2320
2555
 
2321
2556
  var uncurryThis = functionUncurryThis;
2322
- var requireObjectCoercible = requireObjectCoercible$4;
2323
- var toString = toString$3;
2557
+ var requireObjectCoercible = requireObjectCoercible$6;
2558
+ var toString = toString$5;
2324
2559
  var whitespaces$1 = whitespaces$2;
2325
2560
 
2326
2561
  var replace = uncurryThis(''.replace);
@@ -2350,7 +2585,7 @@ var stringTrim = {
2350
2585
  };
2351
2586
 
2352
2587
  var PROPER_FUNCTION_NAME = functionName.PROPER;
2353
- var fails = fails$g;
2588
+ var fails = fails$h;
2354
2589
  var whitespaces = whitespaces$2;
2355
2590
 
2356
2591
  var non = '\u200B\u0085\u180E';
@@ -2407,9 +2642,11 @@ const Dropdown = ({
2407
2642
  setSelectedOption,
2408
2643
  placeholder
2409
2644
  }) => {
2645
+ var _a;
2410
2646
  const [showSelectComponent, setShowSelectComponent] = react.useState(false);
2411
2647
  const [currentOptionList, setCurrentOptionList] = react.useState([]);
2412
2648
  const [inputValue, setInputValue] = react.useState('');
2649
+ const [inputLabel, setInputLabel] = react.useState('');
2413
2650
  const inputRef = react.useRef(null);
2414
2651
  react.useEffect(() => {
2415
2652
  const normalizeOptionList = () => __awaiter(void 0, void 0, void 0, function* () {
@@ -2420,11 +2657,15 @@ const Dropdown = ({
2420
2657
  const setSelectedOptionOnInputValue = react.useCallback(() => {
2421
2658
  if (!inputValue && selectedOption) {
2422
2659
  setInputValue((selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value) || '');
2660
+ setInputLabel((selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.label) || '');
2423
2661
  return;
2424
2662
  }
2425
2663
  if (inputValue !== (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value)) {
2426
2664
  const isValidValue = currentOptionList.some(currentOption => currentOption.value === inputValue);
2427
- if (!isValidValue) setInputValue((selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value) || '');
2665
+ if (!isValidValue) {
2666
+ setInputValue((selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value) || '');
2667
+ setInputLabel((selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.label) || '');
2668
+ }
2428
2669
  }
2429
2670
  }, [currentOptionList, inputValue, selectedOption]);
2430
2671
  return jsxRuntime.jsxs(SectionContainer, Object.assign({
@@ -2433,13 +2674,17 @@ const Dropdown = ({
2433
2674
  return (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
2434
2675
  },
2435
2676
  variant: _variant,
2436
- "data-testid": `${dataTestId}-container`
2677
+ "data-testid": `${dataTestId}-container`,
2678
+ style: {
2679
+ maxWidth: (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.style.width
2680
+ }
2437
2681
  }, {
2438
2682
  children: [jsxRuntime.jsx(ReusableDropdownComponent, {
2439
2683
  label: label,
2440
2684
  variant: _variant,
2441
2685
  required: required,
2442
2686
  inputValue: inputValue,
2687
+ inputLabel: inputLabel,
2443
2688
  dataTestId: dataTestId,
2444
2689
  disabled: disabled,
2445
2690
  errorMessage: errorMessage,
@@ -2449,12 +2694,14 @@ const Dropdown = ({
2449
2694
  placeholder: placeholder,
2450
2695
  setShowSelectComponent: setShowSelectComponent,
2451
2696
  onChangeInputValue: setInputValue,
2452
- setSelectedOptionOnInputValue: setSelectedOptionOnInputValue
2697
+ setSelectedOptionOnInputValue: setSelectedOptionOnInputValue,
2698
+ onChangeInputLabel: setInputLabel
2453
2699
  }), showSelectComponent && !disabled && jsxRuntime.jsx("div", {
2454
2700
  children: jsxRuntime.jsx(atomsSelect.Select, {
2455
2701
  dataTestId: `${dataTestId}-select`,
2456
2702
  onChange: selectedValue => {
2457
2703
  setInputValue(selectedValue.value);
2704
+ setInputLabel(selectedValue.label);
2458
2705
  setSelectedOption(selectedValue);
2459
2706
  },
2460
2707
  active: selectedOption,
@@ -2482,6 +2729,7 @@ const DropdownOptionsWithHeaders = ({
2482
2729
  const [showSelectComponent, setShowSelectComponent] = react.useState(false);
2483
2730
  const [currentOptionList, setCurrentOptionList] = react.useState([]);
2484
2731
  const [inputValue, setInputValue] = react.useState('');
2732
+ const [inputLabel, setInputLabel] = react.useState('');
2485
2733
  const inputRef = react.useRef(null);
2486
2734
  react.useEffect(() => {
2487
2735
  const normalizeOptionList = () => __awaiter(void 0, void 0, void 0, function* () {
@@ -2492,6 +2740,7 @@ const DropdownOptionsWithHeaders = ({
2492
2740
  const setSelectedOptionOnInputValue = react.useCallback(() => {
2493
2741
  if (!inputValue && selectedOption) {
2494
2742
  setInputValue((selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value) || '');
2743
+ setInputLabel((selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.label) || '');
2495
2744
  return;
2496
2745
  }
2497
2746
  if (inputValue !== (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value)) {
@@ -2500,7 +2749,10 @@ const DropdownOptionsWithHeaders = ({
2500
2749
  isValidValue = currentOptionsGroup.options.some(currentOption => currentOption.value === inputValue);
2501
2750
  if (isValidValue) return;
2502
2751
  });
2503
- if (!isValidValue) setInputValue((selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value) || '');
2752
+ if (!isValidValue) {
2753
+ setInputLabel((selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.label) || '');
2754
+ setInputValue((selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value) || '');
2755
+ }
2504
2756
  }
2505
2757
  }, [currentOptionList, inputValue, selectedOption]);
2506
2758
  return jsxRuntime.jsxs(SectionContainer, Object.assign({
@@ -2516,6 +2768,7 @@ const DropdownOptionsWithHeaders = ({
2516
2768
  variant: _variant,
2517
2769
  required: required,
2518
2770
  inputValue: inputValue,
2771
+ inputLabel: inputLabel,
2519
2772
  dataTestId: dataTestId,
2520
2773
  disabled: disabled,
2521
2774
  errorMessage: errorMessage,
@@ -2525,11 +2778,13 @@ const DropdownOptionsWithHeaders = ({
2525
2778
  placeholder: placeholder,
2526
2779
  setShowSelectComponent: setShowSelectComponent,
2527
2780
  onChangeInputValue: setInputValue,
2781
+ onChangeInputLabel: setInputLabel,
2528
2782
  setSelectedOptionOnInputValue: setSelectedOptionOnInputValue
2529
2783
  }), showSelectComponent && !disabled && jsxRuntime.jsx("div", {
2530
2784
  children: jsxRuntime.jsx(atomsSelect.SelectWithHeaders, {
2531
2785
  dataTestId: `${dataTestId}-select`,
2532
2786
  onChange: selectedValue => {
2787
+ setInputLabel(selectedValue.label);
2533
2788
  setInputValue(selectedValue.value);
2534
2789
  setSelectedOption(selectedValue);
2535
2790
  },