@bolttech/molecules-dropdown 0.37.3 → 0.37.5

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.js CHANGED
@@ -16,7 +16,7 @@ var styled__default = /*#__PURE__*/_interopDefault(styled);
16
16
 
17
17
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
18
18
 
19
- var fails$j = function (exec) {
19
+ var fails$i = function (exec) {
20
20
  try {
21
21
  return !!exec();
22
22
  } catch (error) {
@@ -24,9 +24,9 @@ var fails$j = function (exec) {
24
24
  }
25
25
  };
26
26
 
27
- var fails$i = fails$j;
27
+ var fails$h = fails$i;
28
28
 
29
- var functionBindNative = !fails$i(function () {
29
+ var functionBindNative = !fails$h(function () {
30
30
  // eslint-disable-next-line es/no-function-prototype-bind -- safe
31
31
  var test = function () { /* empty */ }.bind();
32
32
  // eslint-disable-next-line no-prototype-builtins -- safe
@@ -46,24 +46,24 @@ var functionUncurryThis = NATIVE_BIND$3 ? uncurryThisWithBind : function (fn) {
46
46
  };
47
47
  };
48
48
 
49
- var uncurryThis$h = functionUncurryThis;
49
+ var uncurryThis$g = functionUncurryThis;
50
50
 
51
- var toString$7 = uncurryThis$h({}.toString);
52
- var stringSlice$5 = uncurryThis$h(''.slice);
51
+ var toString$6 = uncurryThis$g({}.toString);
52
+ var stringSlice$5 = uncurryThis$g(''.slice);
53
53
 
54
54
  var classofRaw$2 = function (it) {
55
- return stringSlice$5(toString$7(it), 8, -1);
55
+ return stringSlice$5(toString$6(it), 8, -1);
56
56
  };
57
57
 
58
- var uncurryThis$g = functionUncurryThis;
59
- var fails$h = fails$j;
58
+ var uncurryThis$f = functionUncurryThis;
59
+ var fails$g = fails$i;
60
60
  var classof$4 = classofRaw$2;
61
61
 
62
62
  var $Object$4 = Object;
63
- var split = uncurryThis$g(''.split);
63
+ var split = uncurryThis$f(''.split);
64
64
 
65
65
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
66
- var indexedObject = fails$h(function () {
66
+ var indexedObject = fails$g(function () {
67
67
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
68
68
  // eslint-disable-next-line no-prototype-builtins -- safe
69
69
  return !$Object$4('z').propertyIsEnumerable(0);
@@ -83,17 +83,17 @@ var $TypeError$b = TypeError;
83
83
 
84
84
  // `RequireObjectCoercible` abstract operation
85
85
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
86
- var requireObjectCoercible$7 = function (it) {
86
+ var requireObjectCoercible$6 = function (it) {
87
87
  if (isNullOrUndefined$2(it)) throw new $TypeError$b("Can't call method on " + it);
88
88
  return it;
89
89
  };
90
90
 
91
91
  // toObject with fallback for non-array-like ES3 strings
92
92
  var IndexedObject$1 = indexedObject;
93
- var requireObjectCoercible$6 = requireObjectCoercible$7;
93
+ var requireObjectCoercible$5 = requireObjectCoercible$6;
94
94
 
95
95
  var toIndexedObject$5 = function (it) {
96
- return IndexedObject$1(requireObjectCoercible$6(it));
96
+ return IndexedObject$1(requireObjectCoercible$5(it));
97
97
  };
98
98
 
99
99
  var check = function (it) {
@@ -149,20 +149,20 @@ var shared$4 = function (key, value) {
149
149
  return store$2[key] || (store$2[key] = value || {});
150
150
  };
151
151
 
152
- var requireObjectCoercible$5 = requireObjectCoercible$7;
152
+ var requireObjectCoercible$4 = requireObjectCoercible$6;
153
153
 
154
154
  var $Object$3 = Object;
155
155
 
156
156
  // `ToObject` abstract operation
157
157
  // https://tc39.es/ecma262/#sec-toobject
158
158
  var toObject$4 = function (argument) {
159
- return $Object$3(requireObjectCoercible$5(argument));
159
+ return $Object$3(requireObjectCoercible$4(argument));
160
160
  };
161
161
 
162
- var uncurryThis$f = functionUncurryThis;
162
+ var uncurryThis$e = functionUncurryThis;
163
163
  var toObject$3 = toObject$4;
164
164
 
165
- var hasOwnProperty = uncurryThis$f({}.hasOwnProperty);
165
+ var hasOwnProperty = uncurryThis$e({}.hasOwnProperty);
166
166
 
167
167
  // `HasOwnProperty` abstract operation
168
168
  // https://tc39.es/ecma262/#sec-hasownproperty
@@ -171,14 +171,14 @@ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
171
171
  return hasOwnProperty(toObject$3(it), key);
172
172
  };
173
173
 
174
- var uncurryThis$e = functionUncurryThis;
174
+ var uncurryThis$d = functionUncurryThis;
175
175
 
176
176
  var id = 0;
177
177
  var postfix = Math.random();
178
- var toString$6 = uncurryThis$e(1.1.toString);
178
+ var toString$5 = uncurryThis$d(1.1.toString);
179
179
 
180
180
  var uid$2 = function (key) {
181
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$6(++id + postfix, 36);
181
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$5(++id + postfix, 36);
182
182
  };
183
183
 
184
184
  var globalThis$g = globalThis_1;
@@ -218,13 +218,13 @@ var environmentV8Version = version;
218
218
 
219
219
  /* eslint-disable es/no-symbol -- required for testing */
220
220
  var V8_VERSION = environmentV8Version;
221
- var fails$g = fails$j;
221
+ var fails$f = fails$i;
222
222
  var globalThis$e = globalThis_1;
223
223
 
224
224
  var $String$5 = globalThis$e.String;
225
225
 
226
226
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
227
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$g(function () {
227
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$f(function () {
228
228
  var symbol = Symbol('symbol detection');
229
229
  // Chrome 38 Symbol has incorrect toString conversion
230
230
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
@@ -292,20 +292,20 @@ var anObject$i = function (argument) {
292
292
 
293
293
  var objectDefineProperties = {};
294
294
 
295
- var fails$f = fails$j;
295
+ var fails$e = fails$i;
296
296
 
297
297
  // Detect IE8's incomplete defineProperty implementation
298
- var descriptors = !fails$f(function () {
298
+ var descriptors = !fails$e(function () {
299
299
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
300
300
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
301
301
  });
302
302
 
303
303
  var DESCRIPTORS$b = descriptors;
304
- var fails$e = fails$j;
304
+ var fails$d = fails$i;
305
305
 
306
306
  // V8 ~ Chrome 36-
307
307
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
308
- var v8PrototypeDefineBug = DESCRIPTORS$b && fails$e(function () {
308
+ var v8PrototypeDefineBug = DESCRIPTORS$b && fails$d(function () {
309
309
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
310
310
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
311
311
  value: 42,
@@ -327,11 +327,11 @@ var documentCreateElement$2 = function (it) {
327
327
  };
328
328
 
329
329
  var DESCRIPTORS$a = descriptors;
330
- var fails$d = fails$j;
330
+ var fails$c = fails$i;
331
331
  var createElement = documentCreateElement$2;
332
332
 
333
333
  // Thanks to IE8 for its funny defineProperty
334
- var ie8DomDefine = !DESCRIPTORS$a && !fails$d(function () {
334
+ var ie8DomDefine = !DESCRIPTORS$a && !fails$c(function () {
335
335
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
336
336
  return Object.defineProperty(createElement('div'), 'a', {
337
337
  get: function () { return 7; }
@@ -357,9 +357,9 @@ var getBuiltIn$3 = function (namespace, method) {
357
357
  return arguments.length < 2 ? aFunction(globalThis$b[namespace]) : globalThis$b[namespace] && globalThis$b[namespace][method];
358
358
  };
359
359
 
360
- var uncurryThis$d = functionUncurryThis;
360
+ var uncurryThis$c = functionUncurryThis;
361
361
 
362
- var objectIsPrototypeOf = uncurryThis$d({}.isPrototypeOf);
362
+ var objectIsPrototypeOf = uncurryThis$c({}.isPrototypeOf);
363
363
 
364
364
  var getBuiltIn$2 = getBuiltIn$3;
365
365
  var isCallable$e = isCallable$h;
@@ -560,7 +560,7 @@ var toAbsoluteIndex = toAbsoluteIndex$1;
560
560
  var lengthOfArrayLike$1 = lengthOfArrayLike$2;
561
561
 
562
562
  // `Array.prototype.{ indexOf, includes }` methods implementation
563
- var createMethod$2 = function (IS_INCLUDES) {
563
+ var createMethod$1 = function (IS_INCLUDES) {
564
564
  return function ($this, el, fromIndex) {
565
565
  var O = toIndexedObject$4($this);
566
566
  var length = lengthOfArrayLike$1(O);
@@ -583,18 +583,18 @@ var createMethod$2 = function (IS_INCLUDES) {
583
583
  var arrayIncludes = {
584
584
  // `Array.prototype.indexOf` method
585
585
  // https://tc39.es/ecma262/#sec-array.prototype.indexof
586
- indexOf: createMethod$2(false)
586
+ indexOf: createMethod$1(false)
587
587
  };
588
588
 
589
589
  var hiddenKeys$4 = {};
590
590
 
591
- var uncurryThis$c = functionUncurryThis;
591
+ var uncurryThis$b = functionUncurryThis;
592
592
  var hasOwn$9 = hasOwnProperty_1;
593
593
  var toIndexedObject$3 = toIndexedObject$5;
594
594
  var indexOf$1 = arrayIncludes.indexOf;
595
595
  var hiddenKeys$3 = hiddenKeys$4;
596
596
 
597
- var push$1 = uncurryThis$c([].push);
597
+ var push$1 = uncurryThis$b([].push);
598
598
 
599
599
  var objectKeysInternal = function (object, names) {
600
600
  var O = toIndexedObject$3(object);
@@ -930,11 +930,11 @@ var functionName = {
930
930
  CONFIGURABLE: CONFIGURABLE
931
931
  };
932
932
 
933
- var uncurryThis$b = functionUncurryThis;
933
+ var uncurryThis$a = functionUncurryThis;
934
934
  var isCallable$a = isCallable$h;
935
935
  var store = sharedStoreExports;
936
936
 
937
- var functionToString = uncurryThis$b(Function.toString);
937
+ var functionToString = uncurryThis$a(Function.toString);
938
938
 
939
939
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
940
940
  if (!isCallable$a(store.inspectSource)) {
@@ -945,8 +945,8 @@ if (!isCallable$a(store.inspectSource)) {
945
945
 
946
946
  var inspectSource$1 = store.inspectSource;
947
947
 
948
- var uncurryThis$a = functionUncurryThis;
949
- var fails$c = fails$j;
948
+ var uncurryThis$9 = functionUncurryThis;
949
+ var fails$b = fails$i;
950
950
  var isCallable$9 = isCallable$h;
951
951
  var hasOwn$5 = hasOwnProperty_1;
952
952
  var DESCRIPTORS$4 = descriptors;
@@ -959,11 +959,11 @@ var getInternalState$2 = InternalStateModule$2.get;
959
959
  var $String$2 = String;
960
960
  // eslint-disable-next-line es/no-object-defineproperty -- safe
961
961
  var defineProperty$4 = Object.defineProperty;
962
- var stringSlice$4 = uncurryThis$a(''.slice);
963
- var replace$3 = uncurryThis$a(''.replace);
964
- var join = uncurryThis$a([].join);
962
+ var stringSlice$4 = uncurryThis$9(''.slice);
963
+ var replace$2 = uncurryThis$9(''.replace);
964
+ var join = uncurryThis$9([].join);
965
965
 
966
- var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$c(function () {
966
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$b(function () {
967
967
  return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
968
968
  });
969
969
 
@@ -971,7 +971,7 @@ var TEMPLATE = String(String).split('String');
971
971
 
972
972
  var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
973
973
  if (stringSlice$4($String$2(name), 0, 7) === 'Symbol(') {
974
- name = '[' + replace$3($String$2(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
974
+ name = '[' + replace$2($String$2(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
975
975
  }
976
976
  if (options && options.getter) name = 'get ' + name;
977
977
  if (options && options.setter) name = 'set ' + name;
@@ -1050,12 +1050,12 @@ var objectGetOwnPropertySymbols = {};
1050
1050
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1051
1051
 
1052
1052
  var getBuiltIn = getBuiltIn$3;
1053
- var uncurryThis$9 = functionUncurryThis;
1053
+ var uncurryThis$8 = functionUncurryThis;
1054
1054
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1055
1055
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1056
1056
  var anObject$e = anObject$i;
1057
1057
 
1058
- var concat$2 = uncurryThis$9([].concat);
1058
+ var concat$2 = uncurryThis$8([].concat);
1059
1059
 
1060
1060
  // all object keys, includes non-enumerable and symbols
1061
1061
  var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
@@ -1081,7 +1081,7 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
1081
1081
  }
1082
1082
  };
1083
1083
 
1084
- var fails$b = fails$j;
1084
+ var fails$a = fails$i;
1085
1085
  var isCallable$7 = isCallable$h;
1086
1086
 
1087
1087
  var replacement = /#|\.prototype\./;
@@ -1090,7 +1090,7 @@ var isForced$1 = function (feature, detection) {
1090
1090
  var value = data[normalize(feature)];
1091
1091
  return value === POLYFILL ? true
1092
1092
  : value === NATIVE ? false
1093
- : isCallable$7(detection) ? fails$b(detection)
1093
+ : isCallable$7(detection) ? fails$a(detection)
1094
1094
  : !!detection;
1095
1095
  };
1096
1096
 
@@ -1159,9 +1159,9 @@ var _export = function (options, source) {
1159
1159
  }
1160
1160
  };
1161
1161
 
1162
- var fails$a = fails$j;
1162
+ var fails$9 = fails$i;
1163
1163
 
1164
- var correctPrototypeGetter = !fails$a(function () {
1164
+ var correctPrototypeGetter = !fails$9(function () {
1165
1165
  function F() { /* empty */ }
1166
1166
  F.prototype.constructor = null;
1167
1167
  // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
@@ -1190,7 +1190,7 @@ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf :
1190
1190
  } return object instanceof $Object$1 ? ObjectPrototype : null;
1191
1191
  };
1192
1192
 
1193
- var fails$9 = fails$j;
1193
+ var fails$8 = fails$i;
1194
1194
  var isCallable$5 = isCallable$h;
1195
1195
  var isObject$4 = isObject$a;
1196
1196
  var getPrototypeOf$2 = objectGetPrototypeOf;
@@ -1215,7 +1215,7 @@ if ([].keys) {
1215
1215
  }
1216
1216
  }
1217
1217
 
1218
- var NEW_ITERATOR_PROTOTYPE = !isObject$4(IteratorPrototype$4) || fails$9(function () {
1218
+ var NEW_ITERATOR_PROTOTYPE = !isObject$4(IteratorPrototype$4) || fails$8(function () {
1219
1219
  var test = {};
1220
1220
  // FF44- legacy iterators case
1221
1221
  return IteratorPrototype$4[ITERATOR$5].call(test) !== test;
@@ -1265,13 +1265,13 @@ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUME
1265
1265
  return IteratorConstructor;
1266
1266
  };
1267
1267
 
1268
- var uncurryThis$8 = functionUncurryThis;
1268
+ var uncurryThis$7 = functionUncurryThis;
1269
1269
  var aCallable$7 = aCallable$9;
1270
1270
 
1271
1271
  var functionUncurryThisAccessor = function (object, key, method) {
1272
1272
  try {
1273
1273
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1274
- return uncurryThis$8(aCallable$7(Object.getOwnPropertyDescriptor(object, key)[method]));
1274
+ return uncurryThis$7(aCallable$7(Object.getOwnPropertyDescriptor(object, key)[method]));
1275
1275
  } catch (error) { /* empty */ }
1276
1276
  };
1277
1277
 
@@ -1294,7 +1294,7 @@ var aPossiblePrototype$1 = function (argument) {
1294
1294
  /* eslint-disable no-proto -- safe */
1295
1295
  var uncurryThisAccessor = functionUncurryThisAccessor;
1296
1296
  var isObject$2 = isObject$a;
1297
- var requireObjectCoercible$4 = requireObjectCoercible$7;
1297
+ var requireObjectCoercible$3 = requireObjectCoercible$6;
1298
1298
  var aPossiblePrototype = aPossiblePrototype$1;
1299
1299
 
1300
1300
  // `Object.setPrototypeOf` method
@@ -1311,7 +1311,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1311
1311
  CORRECT_SETTER = test instanceof Array;
1312
1312
  } catch (error) { /* empty */ }
1313
1313
  return function setPrototypeOf(O, proto) {
1314
- requireObjectCoercible$4(O);
1314
+ requireObjectCoercible$3(O);
1315
1315
  aPossiblePrototype(proto);
1316
1316
  if (!isObject$2(O)) return O;
1317
1317
  if (CORRECT_SETTER) setter(O, proto);
@@ -1320,7 +1320,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1320
1320
  };
1321
1321
  }() : undefined);
1322
1322
 
1323
- var $$9 = _export;
1323
+ var $$8 = _export;
1324
1324
  var call$h = functionCall;
1325
1325
  var FunctionName = functionName;
1326
1326
  var isCallable$4 = isCallable$h;
@@ -1334,7 +1334,7 @@ var wellKnownSymbol$9 = wellKnownSymbol$e;
1334
1334
  var Iterators$3 = iterators;
1335
1335
  var IteratorsCore = iteratorsCore;
1336
1336
 
1337
- var PROPER_FUNCTION_NAME$1 = FunctionName.PROPER;
1337
+ var PROPER_FUNCTION_NAME = FunctionName.PROPER;
1338
1338
  var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1339
1339
  var IteratorPrototype$2 = IteratorsCore.IteratorPrototype;
1340
1340
  var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
@@ -1388,7 +1388,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1388
1388
  }
1389
1389
 
1390
1390
  // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1391
- if (PROPER_FUNCTION_NAME$1 && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1391
+ if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1392
1392
  if (CONFIGURABLE_FUNCTION_NAME) {
1393
1393
  createNonEnumerableProperty$3(IterablePrototype, 'name', VALUES);
1394
1394
  } else {
@@ -1408,7 +1408,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1408
1408
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1409
1409
  defineBuiltIn$2(IterablePrototype, KEY, methods[KEY]);
1410
1410
  }
1411
- } else $$9({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1411
+ } else $$8({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1412
1412
  }
1413
1413
 
1414
1414
  // define iterator
@@ -1514,7 +1514,7 @@ var createProperty$1 = function (object, key, value) {
1514
1514
  else object[key] = value;
1515
1515
  };
1516
1516
 
1517
- var $$8 = _export;
1517
+ var $$7 = _export;
1518
1518
  var globalThis$7 = globalThis_1;
1519
1519
  var anInstance = anInstance$1;
1520
1520
  var anObject$d = anObject$i;
@@ -1522,7 +1522,7 @@ var isCallable$3 = isCallable$h;
1522
1522
  var getPrototypeOf = objectGetPrototypeOf;
1523
1523
  var defineBuiltInAccessor = defineBuiltInAccessor$1;
1524
1524
  var createProperty = createProperty$1;
1525
- var fails$8 = fails$j;
1525
+ var fails$7 = fails$i;
1526
1526
  var hasOwn$1 = hasOwnProperty_1;
1527
1527
  var wellKnownSymbol$8 = wellKnownSymbol$e;
1528
1528
  var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
@@ -1539,7 +1539,7 @@ var NativeIterator = globalThis$7[ITERATOR$3];
1539
1539
  var FORCED$2 = !isCallable$3(NativeIterator)
1540
1540
  || NativeIterator.prototype !== IteratorPrototype$1
1541
1541
  // FF44- non-standard `Iterator` passes previous tests
1542
- || !fails$8(function () { NativeIterator({}); });
1542
+ || !fails$7(function () { NativeIterator({}); });
1543
1543
 
1544
1544
  var IteratorConstructor = function Iterator() {
1545
1545
  anInstance(this, IteratorPrototype$1);
@@ -1573,25 +1573,25 @@ IteratorConstructor.prototype = IteratorPrototype$1;
1573
1573
 
1574
1574
  // `Iterator` constructor
1575
1575
  // https://tc39.es/ecma262/#sec-iterator
1576
- $$8({ global: true, constructor: true, forced: FORCED$2 }, {
1576
+ $$7({ global: true, constructor: true, forced: FORCED$2 }, {
1577
1577
  Iterator: IteratorConstructor
1578
1578
  });
1579
1579
 
1580
1580
  var classofRaw$1 = classofRaw$2;
1581
- var uncurryThis$7 = functionUncurryThis;
1581
+ var uncurryThis$6 = functionUncurryThis;
1582
1582
 
1583
1583
  var functionUncurryThisClause = function (fn) {
1584
1584
  // Nashorn bug:
1585
1585
  // https://github.com/zloirock/core-js/issues/1128
1586
1586
  // https://github.com/zloirock/core-js/issues/1130
1587
- if (classofRaw$1(fn) === 'Function') return uncurryThis$7(fn);
1587
+ if (classofRaw$1(fn) === 'Function') return uncurryThis$6(fn);
1588
1588
  };
1589
1589
 
1590
- var uncurryThis$6 = functionUncurryThisClause;
1590
+ var uncurryThis$5 = functionUncurryThisClause;
1591
1591
  var aCallable$6 = aCallable$9;
1592
1592
  var NATIVE_BIND$1 = functionBindNative;
1593
1593
 
1594
- var bind$1 = uncurryThis$6(uncurryThis$6.bind);
1594
+ var bind$1 = uncurryThis$5(uncurryThis$5.bind);
1595
1595
 
1596
1596
  // optional / simple context binding
1597
1597
  var functionBindContext = function (fn, that) {
@@ -1810,7 +1810,7 @@ var iteratorHelperWithoutClosingOnEarlyError$5 = function (METHOD_NAME, Expected
1810
1810
  if (!CLOSED) return method;
1811
1811
  };
1812
1812
 
1813
- var $$7 = _export;
1813
+ var $$6 = _export;
1814
1814
  var call$d = functionCall;
1815
1815
  var iterate$2 = iterate$3;
1816
1816
  var aCallable$4 = aCallable$9;
@@ -1823,7 +1823,7 @@ var findWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError$4(
1823
1823
 
1824
1824
  // `Iterator.prototype.find` method
1825
1825
  // https://tc39.es/ecma262/#sec-iterator.prototype.find
1826
- $$7({ target: 'Iterator', proto: true, real: true, forced: findWithoutClosingOnEarlyError }, {
1826
+ $$6({ target: 'Iterator', proto: true, real: true, forced: findWithoutClosingOnEarlyError }, {
1827
1827
  find: function find(predicate) {
1828
1828
  anObject$9(this);
1829
1829
  try {
@@ -1842,7 +1842,7 @@ $$7({ target: 'Iterator', proto: true, real: true, forced: findWithoutClosingOnE
1842
1842
  }
1843
1843
  });
1844
1844
 
1845
- var $$6 = _export;
1845
+ var $$5 = _export;
1846
1846
  var call$c = functionCall;
1847
1847
  var iterate$1 = iterate$3;
1848
1848
  var aCallable$3 = aCallable$9;
@@ -1855,7 +1855,7 @@ var someWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError$3(
1855
1855
 
1856
1856
  // `Iterator.prototype.some` method
1857
1857
  // https://tc39.es/ecma262/#sec-iterator.prototype.some
1858
- $$6({ target: 'Iterator', proto: true, real: true, forced: someWithoutClosingOnEarlyError }, {
1858
+ $$5({ target: 'Iterator', proto: true, real: true, forced: someWithoutClosingOnEarlyError }, {
1859
1859
  some: function some(predicate) {
1860
1860
  anObject$8(this);
1861
1861
  try {
@@ -1875,9 +1875,9 @@ $$6({ target: 'Iterator', proto: true, real: true, forced: someWithoutClosingOnE
1875
1875
  });
1876
1876
 
1877
1877
  var DESCRIPTORS = descriptors;
1878
- var uncurryThis$5 = functionUncurryThis;
1878
+ var uncurryThis$4 = functionUncurryThis;
1879
1879
  var call$b = functionCall;
1880
- var fails$7 = fails$j;
1880
+ var fails$6 = fails$i;
1881
1881
  var objectKeys = objectKeys$2;
1882
1882
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1883
1883
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
@@ -1888,11 +1888,11 @@ var IndexedObject = indexedObject;
1888
1888
  var $assign = Object.assign;
1889
1889
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1890
1890
  var defineProperty = Object.defineProperty;
1891
- var concat$1 = uncurryThis$5([].concat);
1891
+ var concat$1 = uncurryThis$4([].concat);
1892
1892
 
1893
1893
  // `Object.assign` method
1894
1894
  // https://tc39.es/ecma262/#sec-object.assign
1895
- var objectAssign = !$assign || fails$7(function () {
1895
+ var objectAssign = !$assign || fails$6(function () {
1896
1896
  // should have correct order of operations (Edge bug)
1897
1897
  if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
1898
1898
  enumerable: true,
@@ -1932,13 +1932,13 @@ var objectAssign = !$assign || fails$7(function () {
1932
1932
  } return T;
1933
1933
  } : $assign;
1934
1934
 
1935
- var $$5 = _export;
1935
+ var $$4 = _export;
1936
1936
  var assign = objectAssign;
1937
1937
 
1938
1938
  // `Object.assign` method
1939
1939
  // https://tc39.es/ecma262/#sec-object.assign
1940
1940
  // eslint-disable-next-line es/no-object-assign -- required for testing
1941
- $$5({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1941
+ $$4({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1942
1942
  assign: assign
1943
1943
  });
1944
1944
 
@@ -2071,7 +2071,7 @@ var classof$1 = classof$3;
2071
2071
 
2072
2072
  var $String = String;
2073
2073
 
2074
- var toString$5 = function (argument) {
2074
+ var toString$4 = function (argument) {
2075
2075
  if (classof$1(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
2076
2076
  return $String(argument);
2077
2077
  };
@@ -2094,13 +2094,13 @@ var regexpFlags$1 = function () {
2094
2094
  return result;
2095
2095
  };
2096
2096
 
2097
- var fails$6 = fails$j;
2097
+ var fails$5 = fails$i;
2098
2098
  var globalThis$4 = globalThis_1;
2099
2099
 
2100
2100
  // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
2101
2101
  var $RegExp$2 = globalThis$4.RegExp;
2102
2102
 
2103
- var UNSUPPORTED_Y$1 = fails$6(function () {
2103
+ var UNSUPPORTED_Y$1 = fails$5(function () {
2104
2104
  var re = $RegExp$2('a', 'y');
2105
2105
  re.lastIndex = 2;
2106
2106
  return re.exec('abcd') !== null;
@@ -2108,11 +2108,11 @@ var UNSUPPORTED_Y$1 = fails$6(function () {
2108
2108
 
2109
2109
  // UC Browser bug
2110
2110
  // https://github.com/zloirock/core-js/issues/1008
2111
- UNSUPPORTED_Y$1 || fails$6(function () {
2111
+ UNSUPPORTED_Y$1 || fails$5(function () {
2112
2112
  return !$RegExp$2('a', 'y').sticky;
2113
2113
  });
2114
2114
 
2115
- var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$6(function () {
2115
+ var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$5(function () {
2116
2116
  // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
2117
2117
  var re = $RegExp$2('^r', 'gy');
2118
2118
  re.lastIndex = 2;
@@ -2122,24 +2122,24 @@ var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$6(function () {
2122
2122
  var regexpStickyHelpers = {
2123
2123
  BROKEN_CARET: BROKEN_CARET};
2124
2124
 
2125
- var fails$5 = fails$j;
2125
+ var fails$4 = fails$i;
2126
2126
  var globalThis$3 = globalThis_1;
2127
2127
 
2128
2128
  // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
2129
2129
  var $RegExp$1 = globalThis$3.RegExp;
2130
2130
 
2131
- var regexpUnsupportedDotAll = fails$5(function () {
2131
+ var regexpUnsupportedDotAll = fails$4(function () {
2132
2132
  var re = $RegExp$1('.', 's');
2133
2133
  return !(re.dotAll && re.test('\n') && re.flags === 's');
2134
2134
  });
2135
2135
 
2136
- var fails$4 = fails$j;
2136
+ var fails$3 = fails$i;
2137
2137
  var globalThis$2 = globalThis_1;
2138
2138
 
2139
2139
  // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
2140
2140
  var $RegExp = globalThis$2.RegExp;
2141
2141
 
2142
- var regexpUnsupportedNcg = fails$4(function () {
2142
+ var regexpUnsupportedNcg = fails$3(function () {
2143
2143
  var re = $RegExp('(?<a>b)', 'g');
2144
2144
  return re.exec('b').groups.a !== 'b' ||
2145
2145
  'b'.replace(re, '$<a>c') !== 'bc';
@@ -2148,8 +2148,8 @@ var regexpUnsupportedNcg = fails$4(function () {
2148
2148
  /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
2149
2149
  /* eslint-disable regexp/no-useless-quantifier -- testing */
2150
2150
  var call$a = functionCall;
2151
- var uncurryThis$4 = functionUncurryThis;
2152
- var toString$4 = toString$5;
2151
+ var uncurryThis$3 = functionUncurryThis;
2152
+ var toString$3 = toString$4;
2153
2153
  var regexpFlags = regexpFlags$1;
2154
2154
  var stickyHelpers = regexpStickyHelpers;
2155
2155
  var shared = shared$4;
@@ -2161,10 +2161,10 @@ var UNSUPPORTED_NCG = regexpUnsupportedNcg;
2161
2161
  var nativeReplace = shared('native-string-replace', String.prototype.replace);
2162
2162
  var nativeExec = RegExp.prototype.exec;
2163
2163
  var patchedExec = nativeExec;
2164
- var charAt$3 = uncurryThis$4(''.charAt);
2165
- var indexOf = uncurryThis$4(''.indexOf);
2166
- var replace$2 = uncurryThis$4(''.replace);
2167
- var stringSlice$3 = uncurryThis$4(''.slice);
2164
+ var charAt$3 = uncurryThis$3(''.charAt);
2165
+ var indexOf = uncurryThis$3(''.indexOf);
2166
+ var replace$1 = uncurryThis$3(''.replace);
2167
+ var stringSlice$3 = uncurryThis$3(''.slice);
2168
2168
 
2169
2169
  var UPDATES_LAST_INDEX_WRONG = (function () {
2170
2170
  var re1 = /a/;
@@ -2193,7 +2193,7 @@ if (PATCH) {
2193
2193
  patchedExec = function exec(string) {
2194
2194
  var re = this;
2195
2195
  var state = getInternalState(re);
2196
- var str = toString$4(string);
2196
+ var str = toString$3(string);
2197
2197
  var raw = state.raw;
2198
2198
  var result, reCopy, lastIndex;
2199
2199
 
@@ -2215,7 +2215,7 @@ if (PATCH) {
2215
2215
  var strCopy = str;
2216
2216
 
2217
2217
  if (sticky) {
2218
- flags = replace$2(flags, 'y', '');
2218
+ flags = replace$1(flags, 'y', '');
2219
2219
  if (indexOf(flags, 'g') === -1) {
2220
2220
  flags += 'g';
2221
2221
  }
@@ -2269,12 +2269,12 @@ if (PATCH) {
2269
2269
 
2270
2270
  var regexpExec$2 = patchedExec;
2271
2271
 
2272
- var $$4 = _export;
2272
+ var $$3 = _export;
2273
2273
  var exec = regexpExec$2;
2274
2274
 
2275
2275
  // `RegExp.prototype.exec` method
2276
2276
  // https://tc39.es/ecma262/#sec-regexp.prototype.exec
2277
- $$4({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
2277
+ $$3({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
2278
2278
  exec: exec
2279
2279
  });
2280
2280
 
@@ -2294,7 +2294,7 @@ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND
2294
2294
  var call$8 = functionCall;
2295
2295
  var defineBuiltIn$1 = defineBuiltIn$5;
2296
2296
  var regexpExec$1 = regexpExec$2;
2297
- var fails$3 = fails$j;
2297
+ var fails$2 = fails$i;
2298
2298
  var wellKnownSymbol$2 = wellKnownSymbol$e;
2299
2299
  var createNonEnumerableProperty$1 = createNonEnumerableProperty$6;
2300
2300
 
@@ -2304,7 +2304,7 @@ var RegExpPrototype$1 = RegExp.prototype;
2304
2304
  var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
2305
2305
  var SYMBOL = wellKnownSymbol$2(KEY);
2306
2306
 
2307
- var DELEGATES_TO_SYMBOL = !fails$3(function () {
2307
+ var DELEGATES_TO_SYMBOL = !fails$2(function () {
2308
2308
  // String methods call symbol-named RegExp methods
2309
2309
  var O = {};
2310
2310
  // eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
@@ -2312,7 +2312,7 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
2312
2312
  return ''[KEY](O) !== 7;
2313
2313
  });
2314
2314
 
2315
- var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$3(function () {
2315
+ var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$2(function () {
2316
2316
  // Symbol-named RegExp methods call .exec
2317
2317
  var execCalled = false;
2318
2318
  var re = /a/;
@@ -2367,18 +2367,18 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
2367
2367
  if (SHAM) createNonEnumerableProperty$1(RegExpPrototype$1[SYMBOL], 'sham', true);
2368
2368
  };
2369
2369
 
2370
- var uncurryThis$3 = functionUncurryThis;
2370
+ var uncurryThis$2 = functionUncurryThis;
2371
2371
  var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
2372
- var toString$3 = toString$5;
2373
- var requireObjectCoercible$3 = requireObjectCoercible$7;
2372
+ var toString$2 = toString$4;
2373
+ var requireObjectCoercible$2 = requireObjectCoercible$6;
2374
2374
 
2375
- var charAt$2 = uncurryThis$3(''.charAt);
2376
- var charCodeAt = uncurryThis$3(''.charCodeAt);
2377
- var stringSlice$2 = uncurryThis$3(''.slice);
2375
+ var charAt$2 = uncurryThis$2(''.charAt);
2376
+ var charCodeAt = uncurryThis$2(''.charCodeAt);
2377
+ var stringSlice$2 = uncurryThis$2(''.slice);
2378
2378
 
2379
- var createMethod$1 = function (CONVERT_TO_STRING) {
2379
+ var createMethod = function (CONVERT_TO_STRING) {
2380
2380
  return function ($this, pos) {
2381
- var S = toString$3(requireObjectCoercible$3($this));
2381
+ var S = toString$2(requireObjectCoercible$2($this));
2382
2382
  var position = toIntegerOrInfinity$1(pos);
2383
2383
  var size = S.length;
2384
2384
  var first, second;
@@ -2398,7 +2398,7 @@ var createMethod$1 = function (CONVERT_TO_STRING) {
2398
2398
  var stringMultibyte = {
2399
2399
  // `String.prototype.at` method
2400
2400
  // https://github.com/mathiasbynens/String.prototype.at
2401
- charAt: createMethod$1(true)
2401
+ charAt: createMethod(true)
2402
2402
  };
2403
2403
 
2404
2404
  var charAt$1 = stringMultibyte.charAt;
@@ -2409,13 +2409,13 @@ var advanceStringIndex$1 = function (S, index, unicode) {
2409
2409
  return index + (unicode ? charAt$1(S, index).length || 1 : 1);
2410
2410
  };
2411
2411
 
2412
- var uncurryThis$2 = functionUncurryThis;
2412
+ var uncurryThis$1 = functionUncurryThis;
2413
2413
  var toObject = toObject$4;
2414
2414
 
2415
2415
  var floor = Math.floor;
2416
- var charAt = uncurryThis$2(''.charAt);
2417
- var replace$1 = uncurryThis$2(''.replace);
2418
- var stringSlice$1 = uncurryThis$2(''.slice);
2416
+ var charAt = uncurryThis$1(''.charAt);
2417
+ var replace = uncurryThis$1(''.replace);
2418
+ var stringSlice$1 = uncurryThis$1(''.slice);
2419
2419
  // eslint-disable-next-line redos/no-vulnerable -- safe
2420
2420
  var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
2421
2421
  var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
@@ -2430,7 +2430,7 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
2430
2430
  namedCaptures = toObject(namedCaptures);
2431
2431
  symbols = SUBSTITUTION_SYMBOLS;
2432
2432
  }
2433
- return replace$1(replacement, symbols, function (match, ch) {
2433
+ return replace(replacement, symbols, function (match, ch) {
2434
2434
  var capture;
2435
2435
  switch (charAt(ch, 0)) {
2436
2436
  case '$': return '$';
@@ -2456,12 +2456,12 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
2456
2456
  };
2457
2457
 
2458
2458
  var globalThis$1 = globalThis_1;
2459
- var fails$2 = fails$j;
2459
+ var fails$1 = fails$i;
2460
2460
 
2461
2461
  // babel-minify and Closure Compiler transpiles RegExp('.', 'd') -> /./d and it causes SyntaxError
2462
2462
  var RegExp$1 = globalThis$1.RegExp;
2463
2463
 
2464
- var FLAGS_GETTER_IS_CORRECT = !fails$2(function () {
2464
+ var FLAGS_GETTER_IS_CORRECT = !fails$1(function () {
2465
2465
  var INDICES_SUPPORT = true;
2466
2466
  try {
2467
2467
  RegExp$1('.', 'd');
@@ -2541,16 +2541,16 @@ var regexpExecAbstract = function (R, S) {
2541
2541
 
2542
2542
  var apply = functionApply;
2543
2543
  var call$5 = functionCall;
2544
- var uncurryThis$1 = functionUncurryThis;
2544
+ var uncurryThis = functionUncurryThis;
2545
2545
  var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
2546
- var fails$1 = fails$j;
2546
+ var fails = fails$i;
2547
2547
  var anObject$5 = anObject$i;
2548
2548
  var isCallable = isCallable$h;
2549
2549
  var isObject$1 = isObject$a;
2550
2550
  var toIntegerOrInfinity = toIntegerOrInfinity$4;
2551
2551
  var toLength = toLength$2;
2552
- var toString$2 = toString$5;
2553
- var requireObjectCoercible$2 = requireObjectCoercible$7;
2552
+ var toString$1 = toString$4;
2553
+ var requireObjectCoercible$1 = requireObjectCoercible$6;
2554
2554
  var advanceStringIndex = advanceStringIndex$1;
2555
2555
  var getMethod$2 = getMethod$6;
2556
2556
  var getSubstitution = getSubstitution$1;
@@ -2561,10 +2561,10 @@ var wellKnownSymbol$1 = wellKnownSymbol$e;
2561
2561
  var REPLACE = wellKnownSymbol$1('replace');
2562
2562
  var max = Math.max;
2563
2563
  var min = Math.min;
2564
- var concat = uncurryThis$1([].concat);
2565
- var push = uncurryThis$1([].push);
2566
- var stringIndexOf = uncurryThis$1(''.indexOf);
2567
- var stringSlice = uncurryThis$1(''.slice);
2564
+ var concat = uncurryThis([].concat);
2565
+ var push = uncurryThis([].push);
2566
+ var stringIndexOf = uncurryThis(''.indexOf);
2567
+ var stringSlice = uncurryThis(''.slice);
2568
2568
 
2569
2569
  var maybeToString = function (it) {
2570
2570
  return it === undefined ? it : String(it);
@@ -2585,7 +2585,7 @@ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
2585
2585
  return false;
2586
2586
  })();
2587
2587
 
2588
- var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$1(function () {
2588
+ var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
2589
2589
  var re = /./;
2590
2590
  re.exec = function () {
2591
2591
  var result = [];
@@ -2604,21 +2604,21 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
2604
2604
  // `String.prototype.replace` method
2605
2605
  // https://tc39.es/ecma262/#sec-string.prototype.replace
2606
2606
  function replace(searchValue, replaceValue) {
2607
- var O = requireObjectCoercible$2(this);
2607
+ var O = requireObjectCoercible$1(this);
2608
2608
  var replacer = isObject$1(searchValue) ? getMethod$2(searchValue, REPLACE) : undefined;
2609
2609
  return replacer
2610
2610
  ? call$5(replacer, searchValue, O, replaceValue)
2611
- : call$5(nativeReplace, toString$2(O), searchValue, replaceValue);
2611
+ : call$5(nativeReplace, toString$1(O), searchValue, replaceValue);
2612
2612
  },
2613
2613
  // `RegExp.prototype[@@replace]` method
2614
2614
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
2615
2615
  function (string, replaceValue) {
2616
2616
  var rx = anObject$5(this);
2617
- var S = toString$2(string);
2617
+ var S = toString$1(string);
2618
2618
 
2619
2619
  var functionalReplace = isCallable(replaceValue);
2620
- if (!functionalReplace) replaceValue = toString$2(replaceValue);
2621
- var flags = toString$2(getRegExpFlags(rx));
2620
+ if (!functionalReplace) replaceValue = toString$1(replaceValue);
2621
+ var flags = toString$1(getRegExpFlags(rx));
2622
2622
 
2623
2623
  if (
2624
2624
  typeof replaceValue == 'string' &&
@@ -2646,7 +2646,7 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
2646
2646
  push(results, result);
2647
2647
  if (!global) break;
2648
2648
 
2649
- var matchStr = toString$2(result[0]);
2649
+ var matchStr = toString$1(result[0]);
2650
2650
  if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
2651
2651
  }
2652
2652
 
@@ -2655,7 +2655,7 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
2655
2655
  for (var i = 0; i < results.length; i++) {
2656
2656
  result = results[i];
2657
2657
 
2658
- var matched = toString$2(result[0]);
2658
+ var matched = toString$1(result[0]);
2659
2659
  var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
2660
2660
  var captures = [];
2661
2661
  var replacement;
@@ -2669,7 +2669,7 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
2669
2669
  if (functionalReplace) {
2670
2670
  var replacerArgs = concat([matched], captures, position, S);
2671
2671
  if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
2672
- replacement = toString$2(apply(replaceValue, undefined, replacerArgs));
2672
+ replacement = toString$1(apply(replaceValue, undefined, replacerArgs));
2673
2673
  } else {
2674
2674
  replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
2675
2675
  }
@@ -2688,7 +2688,7 @@ const ClickableElement = /*#__PURE__*/styled__default.default.div.withConfig({
2688
2688
  displayName: "molecules-dropdownstyles__ClickableElement",
2689
2689
  componentId: "sc-3wugi4-0"
2690
2690
  })(["display:flex;flex-direction:column;justify-content:center;cursor:pointer;"]);
2691
- const ContainerDropdown = /*#__PURE__*/styled__default.default.section.withConfig({
2691
+ const ContainerDropdown = /*#__PURE__*/styled__default.default.div.withConfig({
2692
2692
  displayName: "molecules-dropdownstyles__ContainerDropdown",
2693
2693
  componentId: "sc-3wugi4-1"
2694
2694
  })(["display:flex;padding-top:", ";padding-bottom:", ";padding-right:", ";padding-left:", ";gap:", ";background-color:", ";outline:", ";outline-offset:calc( ", "* -1 );border-radius:", ";box-shadow:", ";margin-bottom:", ";input{display:inline-block;text-overflow:ellipsis;white-space:nowrap;width:100%;overflow-x:hidden;}.fieldLabel{color:", ";font-weight:", ";line-height:", ";font-size:", ";letter-spacing:", ";margin:0;}.requiredLabel{color:", ";font-weight:", ";line-height:", ";font-size:", ";letter-spacing:", ";}label.material-symbols-sharp{color:", ";}&:focus-within{background-color:", ";outline:", ";", "}", " ", ""], ({
@@ -2812,7 +2812,7 @@ const ContainerDropdown = /*#__PURE__*/styled__default.default.section.withConfi
2812
2812
  theme,
2813
2813
  $variant
2814
2814
  }) => theme.components.dropdown[$variant].text.color.fieldLabel.disable));
2815
- const SectionContainer = /*#__PURE__*/styled__default.default.section.withConfig({
2815
+ const SectionContainer = /*#__PURE__*/styled__default.default.div.withConfig({
2816
2816
  displayName: "molecules-dropdownstyles__SectionContainer",
2817
2817
  componentId: "sc-3wugi4-2"
2818
2818
  })(["position:relative;.top{top:-", ";transform:translateY(-100%);}.bottom{top:", ";}.errorMessage{padding-right:", ";padding-left:", ";p{color:", ";font-weight:", ";line-height:", ";font-size:", ";letter-spacing:", ";}}.helperMessage{padding-right:", ";padding-left:", ";margin-top:", ";p{color:", ";font-weight:", ";line-height:", ";font-size:", ";letter-spacing:", ";}}"], ({
@@ -2903,9 +2903,10 @@ const ReusableDropdownComponent = _a => {
2903
2903
  onBlur,
2904
2904
  onFocus,
2905
2905
  onKeyUp,
2906
- onKeyDown
2906
+ onKeyDown,
2907
+ activeDescendantId
2907
2908
  } = _a,
2908
- props = __rest(_a, ["id", "dataTestId", "label", "variant", "required", "inputValue", "inputLabel", "disabled", "errorMessage", "helperMessage", "onChangeInputValue", "onChangeInputLabel", "setShowSelectComponent", "showSelectComponent", "setSelectedOptionOnInputValue", "disableSearch", "inputRef", "placeholder", "onBlur", "onFocus", "onKeyUp", "onKeyDown"]);
2909
+ props = __rest(_a, ["id", "dataTestId", "label", "variant", "required", "inputValue", "inputLabel", "disabled", "errorMessage", "helperMessage", "onChangeInputValue", "onChangeInputLabel", "setShowSelectComponent", "showSelectComponent", "setSelectedOptionOnInputValue", "disableSearch", "inputRef", "placeholder", "onBlur", "onFocus", "onKeyUp", "onKeyDown", "activeDescendantId"]);
2909
2910
  const hasError = !!errorMessage;
2910
2911
  // we have to type cast because of jest. when testing it sets the type of useTheme to DefaultTheme
2911
2912
  const theme = /*#__PURE__*/styled.useTheme();
@@ -2923,6 +2924,9 @@ const ReusableDropdownComponent = _a => {
2923
2924
  e.preventDefault();
2924
2925
  if (showSelectComponent === false) {
2925
2926
  (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
2927
+ onChangeInputValue('');
2928
+ onChangeInputLabel('');
2929
+ setShowSelectComponent(true);
2926
2930
  } else {
2927
2931
  (_b = inputRef.current) === null || _b === void 0 ? void 0 : _b.blur();
2928
2932
  }
@@ -2937,18 +2941,23 @@ const ReusableDropdownComponent = _a => {
2937
2941
  }), required && jsxRuntime.jsx("span", {
2938
2942
  className: "requiredLabel",
2939
2943
  "data-testid": `${dataTestId}-label-required`,
2944
+ "aria-hidden": "true",
2940
2945
  children: "*"
2941
2946
  })]
2942
2947
  }), jsxRuntime.jsx(InputAndIconDropdown, {
2943
2948
  children: jsxRuntime.jsx(atomsInput.InputStyled, Object.assign({
2944
2949
  role: "combobox",
2945
2950
  "aria-haspopup": "listbox",
2946
- "aria-owns": `${id}-listbox`,
2951
+ "aria-owns": `${id}-select-container`,
2952
+ "aria-labelledby": label ? `${id}-label` : undefined,
2947
2953
  "aria-disabled": disabled,
2948
2954
  "aria-invalid": hasError,
2949
2955
  "aria-required": required,
2956
+ required: required,
2950
2957
  "aria-describedby": hasError ? `${id}-error` : helperMessage ? `${id}-helper` : undefined,
2951
2958
  "aria-expanded": showSelectComponent,
2959
+ "aria-autocomplete": disableSearch ? 'none' : 'list',
2960
+ "aria-activedescendant": showSelectComponent ? activeDescendantId : undefined,
2952
2961
  id: `${id}-input`,
2953
2962
  "data-testid": `${dataTestId}-input`,
2954
2963
  ref: inputRef,
@@ -2961,13 +2970,13 @@ const ReusableDropdownComponent = _a => {
2961
2970
  readOnly: disableSearch,
2962
2971
  onChange: e => {
2963
2972
  var _a, _b;
2973
+ if (!showSelectComponent) {
2974
+ setShowSelectComponent(true);
2975
+ }
2964
2976
  onChangeInputValue(((_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.value) || '');
2965
2977
  onChangeInputLabel(((_b = e === null || e === void 0 ? void 0 : e.target) === null || _b === void 0 ? void 0 : _b.value) || '');
2966
2978
  },
2967
2979
  onFocus: event => {
2968
- setShowSelectComponent(true);
2969
- onChangeInputValue('');
2970
- onChangeInputLabel('');
2971
2980
  onFocus && onFocus(event);
2972
2981
  },
2973
2982
  onBlur: event => {
@@ -2985,6 +2994,7 @@ const ReusableDropdownComponent = _a => {
2985
2994
  }, uiUtils.applyDataAttributes(props, 'input')))
2986
2995
  })]
2987
2996
  }), jsxRuntime.jsx(ClickableElement, {
2997
+ "aria-hidden": "true",
2988
2998
  children: jsxRuntime.jsx(atomsIcon.Icon, {
2989
2999
  ariaHidden: true,
2990
3000
  dataTestId: `${dataTestId}-icon`,
@@ -2994,7 +3004,8 @@ const ReusableDropdownComponent = _a => {
2994
3004
  })]
2995
3005
  }), !showSelectComponent && hasError && errorMessage && jsxRuntime.jsx("div", {
2996
3006
  id: `${id}-error`,
2997
- role: "alert",
3007
+ "aria-live": "assertive",
3008
+ "aria-atomic": "true",
2998
3009
  className: "errorMessage",
2999
3010
  children: jsxRuntime.jsx("p", {
3000
3011
  "data-testid": `${dataTestId}-label-error-message`,
@@ -3002,7 +3013,7 @@ const ReusableDropdownComponent = _a => {
3002
3013
  })
3003
3014
  }), !showSelectComponent && !errorMessage && helperMessage && jsxRuntime.jsx("div", {
3004
3015
  id: `${id}-helper`,
3005
- role: "status",
3016
+ "aria-live": "polite",
3006
3017
  className: "helperMessage",
3007
3018
  children: jsxRuntime.jsx("p", {
3008
3019
  "data-testid": `${dataTestId}-label-helper-message`,
@@ -3148,7 +3159,7 @@ var iteratorHelperThrowsOnInvalidIterator$2 = function (methodName, argument) {
3148
3159
  }
3149
3160
  };
3150
3161
 
3151
- var $$3 = _export;
3162
+ var $$2 = _export;
3152
3163
  var call$3 = functionCall;
3153
3164
  var aCallable$2 = aCallable$9;
3154
3165
  var anObject$3 = anObject$i;
@@ -3181,7 +3192,7 @@ var IteratorProxy$1 = createIteratorProxy$1(function () {
3181
3192
 
3182
3193
  // `Iterator.prototype.filter` method
3183
3194
  // https://tc39.es/ecma262/#sec-iterator.prototype.filter
3184
- $$3({ target: 'Iterator', proto: true, real: true, forced: FORCED$1 }, {
3195
+ $$2({ target: 'Iterator', proto: true, real: true, forced: FORCED$1 }, {
3185
3196
  filter: function filter(predicate) {
3186
3197
  anObject$3(this);
3187
3198
  try {
@@ -3198,7 +3209,7 @@ $$3({ target: 'Iterator', proto: true, real: true, forced: FORCED$1 }, {
3198
3209
  }
3199
3210
  });
3200
3211
 
3201
- var $$2 = _export;
3212
+ var $$1 = _export;
3202
3213
  var call$2 = functionCall;
3203
3214
  var aCallable$1 = aCallable$9;
3204
3215
  var anObject$2 = anObject$i;
@@ -3224,7 +3235,7 @@ var IteratorProxy = createIteratorProxy(function () {
3224
3235
 
3225
3236
  // `Iterator.prototype.map` method
3226
3237
  // https://tc39.es/ecma262/#sec-iterator.prototype.map
3227
- $$2({ target: 'Iterator', proto: true, real: true, forced: FORCED }, {
3238
+ $$1({ target: 'Iterator', proto: true, real: true, forced: FORCED }, {
3228
3239
  map: function map(mapper) {
3229
3240
  anObject$2(this);
3230
3241
  try {
@@ -3253,9 +3264,9 @@ var call$1 = functionCall;
3253
3264
  var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
3254
3265
  var anObject$1 = anObject$i;
3255
3266
  var isObject = isObject$a;
3256
- var requireObjectCoercible$1 = requireObjectCoercible$7;
3267
+ var requireObjectCoercible = requireObjectCoercible$6;
3257
3268
  var sameValue = sameValue$1;
3258
- var toString$1 = toString$5;
3269
+ var toString = toString$4;
3259
3270
  var getMethod = getMethod$6;
3260
3271
  var regExpExec = regexpExecAbstract;
3261
3272
 
@@ -3265,15 +3276,15 @@ fixRegExpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCal
3265
3276
  // `String.prototype.search` method
3266
3277
  // https://tc39.es/ecma262/#sec-string.prototype.search
3267
3278
  function search(regexp) {
3268
- var O = requireObjectCoercible$1(this);
3279
+ var O = requireObjectCoercible(this);
3269
3280
  var searcher = isObject(regexp) ? getMethod(regexp, SEARCH) : undefined;
3270
- return searcher ? call$1(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString$1(O));
3281
+ return searcher ? call$1(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString(O));
3271
3282
  },
3272
3283
  // `RegExp.prototype[@@search]` method
3273
3284
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@search
3274
3285
  function (string) {
3275
3286
  var rx = anObject$1(this);
3276
- var S = toString$1(string);
3287
+ var S = toString(string);
3277
3288
  var res = maybeCallNative(nativeSearch, rx, S);
3278
3289
 
3279
3290
  if (res.done) return res.value;
@@ -3287,74 +3298,17 @@ fixRegExpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCal
3287
3298
  ];
3288
3299
  });
3289
3300
 
3290
- // a string of all valid unicode whitespaces
3291
- var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
3292
- '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
3293
-
3294
- var uncurryThis = functionUncurryThis;
3295
- var requireObjectCoercible = requireObjectCoercible$7;
3296
- var toString = toString$5;
3297
- var whitespaces$1 = whitespaces$2;
3298
-
3299
- var replace = uncurryThis(''.replace);
3300
- var ltrim = RegExp('^[' + whitespaces$1 + ']+');
3301
- var rtrim = RegExp('(^|[^' + whitespaces$1 + '])[' + whitespaces$1 + ']+$');
3302
-
3303
- // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
3304
- var createMethod = function (TYPE) {
3305
- return function ($this) {
3306
- var string = toString(requireObjectCoercible($this));
3307
- if (TYPE & 1) string = replace(string, ltrim, '');
3308
- if (TYPE & 2) string = replace(string, rtrim, '$1');
3309
- return string;
3310
- };
3311
- };
3312
-
3313
- var stringTrim = {
3314
- // `String.prototype.trim` method
3315
- // https://tc39.es/ecma262/#sec-string.prototype.trim
3316
- trim: createMethod(3)
3317
- };
3318
-
3319
- var PROPER_FUNCTION_NAME = functionName.PROPER;
3320
- var fails = fails$j;
3321
- var whitespaces = whitespaces$2;
3322
-
3323
- var non = '\u200B\u0085\u180E';
3324
-
3325
- // check that a method works with the correct list
3326
- // of whitespaces and has a correct name
3327
- var stringTrimForced = function (METHOD_NAME) {
3328
- return fails(function () {
3329
- return !!whitespaces[METHOD_NAME]()
3330
- || non[METHOD_NAME]() !== non
3331
- || (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);
3332
- });
3333
- };
3334
-
3335
- var $$1 = _export;
3336
- var $trim = stringTrim.trim;
3337
- var forcedStringTrimMethod = stringTrimForced;
3338
-
3339
- // `String.prototype.trim` method
3340
- // https://tc39.es/ecma262/#sec-string.prototype.trim
3341
- $$1({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
3342
- trim: function trim() {
3343
- return $trim(this);
3344
- }
3345
- });
3346
-
3347
3301
  function filterOptions(inputValue, optionList) {
3348
3302
  if (!optionList) return [];
3349
3303
  if (!inputValue) return optionList;
3350
- return optionList.filter(opt => opt.label.toLowerCase().search(inputValue.trim().toLowerCase()) !== -1);
3304
+ return optionList.filter(opt => opt.label.toLowerCase().search(inputValue.toLowerCase()) !== -1);
3351
3305
  }
3352
3306
  function filterOptionsWithHeaders(inputValue, optionList) {
3353
3307
  if (!optionList) return [];
3354
3308
  if (!inputValue) return optionList;
3355
3309
  return optionList.map(element => {
3356
3310
  return Object.assign(Object.assign({}, element), {
3357
- options: element.options.filter(subElement => subElement.label.toLowerCase().search(inputValue.trim().toLowerCase()) !== -1)
3311
+ options: element.options.filter(subElement => subElement.label.toLowerCase().search(inputValue.toLowerCase()) !== -1)
3358
3312
  });
3359
3313
  });
3360
3314
  }
@@ -3453,19 +3407,46 @@ const Dropdown = /*#__PURE__*/react.forwardRef((_a, ref) => {
3453
3407
  }, [currentOptionList, setSelectedOptionOnInputValue, value, internalSelectedOption, optionList, isFirstRender, onKeyUp, onKeyDown, asyncOptionList]);
3454
3408
  const [focusedIndex, setFocusedIndex] = react.useState(0);
3455
3409
  const flatOptions = currentOptionList;
3410
+ const activeFocusedOption = flatOptions[focusedIndex];
3411
+ const activeDescendantId = showSelectComponent && activeFocusedOption ? `${id}-select-${activeFocusedOption.id}-select` : undefined;
3456
3412
  const handleKeyDown = event => {
3457
- var _a;
3413
+ var _a, _b;
3458
3414
  const total = flatOptions.length;
3415
+ if (event.key === 'Escape') {
3416
+ event.preventDefault();
3417
+ setShowSelectComponent(false);
3418
+ setSelectedOptionOnInputValue();
3419
+ (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.blur();
3420
+ return;
3421
+ }
3459
3422
  if (event.key === 'ArrowDown') {
3460
3423
  event.preventDefault();
3461
- setFocusedIndex(prev => (prev + 1) % total);
3424
+ if (!showSelectComponent) {
3425
+ setInputValue('');
3426
+ setInputLabel('');
3427
+ setShowSelectComponent(true);
3428
+ } else {
3429
+ setFocusedIndex(prev => (prev + 1) % total);
3430
+ }
3462
3431
  }
3463
3432
  if (event.key === 'ArrowUp') {
3464
3433
  event.preventDefault();
3465
- setFocusedIndex(prev => (prev - 1 + total) % total);
3434
+ if (!showSelectComponent) {
3435
+ setInputValue('');
3436
+ setInputLabel('');
3437
+ setShowSelectComponent(true);
3438
+ } else {
3439
+ setFocusedIndex(prev => (prev - 1 + total) % total);
3440
+ }
3466
3441
  }
3467
- if (event.key === 'Enter' || event.key === ' ') {
3442
+ if (event.key === 'Enter' || event.key === ' ' && disableSearch) {
3468
3443
  event.preventDefault();
3444
+ if (!showSelectComponent) {
3445
+ setInputValue('');
3446
+ setInputLabel('');
3447
+ setShowSelectComponent(true);
3448
+ return;
3449
+ }
3469
3450
  const selected = flatOptions[focusedIndex];
3470
3451
  if (selected && !selected.disabled) {
3471
3452
  setInputValue(selected.value);
@@ -3475,7 +3456,7 @@ const Dropdown = /*#__PURE__*/react.forwardRef((_a, ref) => {
3475
3456
  onChange(selected);
3476
3457
  });
3477
3458
  setShowSelectComponent(false);
3478
- (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.blur();
3459
+ (_b = inputRef.current) === null || _b === void 0 ? void 0 : _b.blur();
3479
3460
  }
3480
3461
  }
3481
3462
  onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(event);
@@ -3522,7 +3503,8 @@ const Dropdown = /*#__PURE__*/react.forwardRef((_a, ref) => {
3522
3503
  onFocus: onFocus,
3523
3504
  onKeyUp: onKeyUp,
3524
3505
  onKeyDown: onKeyDown ? onKeyDown : handleKeyDown,
3525
- disableSearch: disableSearch
3506
+ disableSearch: disableSearch,
3507
+ activeDescendantId: activeDescendantId
3526
3508
  }, props)), showSelectComponent && !disabled && (() => {
3527
3509
  const selectElement = jsxRuntime.jsx(atomsSelect.Select, Object.assign({
3528
3510
  id: `${id}-select`,
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@bolttech/molecules-dropdown",
3
- "version": "0.37.3",
3
+ "version": "0.37.5",
4
4
  "dependencies": {
5
5
  "react": "19.1.2",
6
- "@bolttech/atoms-select": "0.27.3",
6
+ "@bolttech/atoms-select": "0.27.4",
7
7
  "react-dom": "19.1.2",
8
8
  "@bolttech/ui-utils": "0.6.7",
9
9
  "styled-components": "6.1.1",
10
10
  "@bolttech/atoms-icon": "0.24.9",
11
- "@bolttech/atoms-input": "0.30.4",
11
+ "@bolttech/atoms-input": "0.30.5",
12
12
  "@bolttech/default-theme": "0.18.2"
13
13
  },
14
14
  "main": "./index.cjs.js",
@@ -291,8 +291,8 @@ export declare const ClickableElement: import("styled-components").IStyledCompon
291
291
  onTransitionStart?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
292
292
  onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
293
293
  }>;
294
- export declare const ContainerDropdown: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, DropdownStyledProps>>;
295
- export declare const SectionContainer: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, Omit<DropdownStyledProps, "$hasValue">>>;
294
+ export declare const ContainerDropdown: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, DropdownStyledProps>>;
295
+ export declare const SectionContainer: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<DropdownStyledProps, "$hasValue">>>;
296
296
  export declare const InputAndIconDropdown: import("styled-components").IStyledComponent<"web", {
297
297
  ref?: import("react").Ref<HTMLDivElement> | undefined;
298
298
  key?: import("react").Key | null | undefined;
@@ -192,5 +192,6 @@ export type ReusableDropdownComponentProps = DefaultProps & Pick<DOMAttributes<E
192
192
  inputLabel: string;
193
193
  setSelectedOptionOnInputValue: () => void;
194
194
  inputRef: React.RefObject<HTMLInputElement | null>;
195
+ activeDescendantId?: string;
195
196
  };
196
197
  export {};
@@ -1,2 +1,2 @@
1
1
  import { ReusableDropdownComponentProps } from './molecules-dropdown.type';
2
- export declare const ReusableDropdownComponent: ({ id, dataTestId, label, variant, required, inputValue, inputLabel, disabled, errorMessage, helperMessage, onChangeInputValue, onChangeInputLabel, setShowSelectComponent, showSelectComponent, setSelectedOptionOnInputValue, disableSearch, inputRef, placeholder, onBlur, onFocus, onKeyUp, onKeyDown, ...props }: ReusableDropdownComponentProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const ReusableDropdownComponent: ({ id, dataTestId, label, variant, required, inputValue, inputLabel, disabled, errorMessage, helperMessage, onChangeInputValue, onChangeInputLabel, setShowSelectComponent, showSelectComponent, setSelectedOptionOnInputValue, disableSearch, inputRef, placeholder, onBlur, onFocus, onKeyUp, onKeyDown, activeDescendantId, ...props }: ReusableDropdownComponentProps) => import("react/jsx-runtime").JSX.Element;