@sebgroup/green-react 1.2.0 → 1.2.1

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.
Files changed (3) hide show
  1. package/index.esm.js +563 -561
  2. package/index.umd.js +563 -561
  3. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -10,8 +10,8 @@ var check = function (it) {
10
10
  };
11
11
 
12
12
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
13
- var global$r =
14
- // eslint-disable-next-line es-x/no-global-this -- safe
13
+ var global$c =
14
+ // eslint-disable-next-line es/no-global-this -- safe
15
15
  check(typeof globalThis == 'object' && globalThis) ||
16
16
  check(typeof window == 'object' && window) ||
17
17
  // eslint-disable-next-line no-restricted-globals -- safe
@@ -22,7 +22,7 @@ var global$r =
22
22
 
23
23
  var objectGetOwnPropertyDescriptor = {};
24
24
 
25
- var fails$a = function (exec) {
25
+ var fails$b = function (exec) {
26
26
  try {
27
27
  return !!exec();
28
28
  } catch (error) {
@@ -30,18 +30,18 @@ var fails$a = function (exec) {
30
30
  }
31
31
  };
32
32
 
33
- var fails$9 = fails$a;
33
+ var fails$a = fails$b;
34
34
 
35
35
  // Detect IE8's incomplete defineProperty implementation
36
- var descriptors = !fails$9(function () {
37
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
36
+ var descriptors = !fails$a(function () {
37
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
38
38
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
39
39
  });
40
40
 
41
- var fails$8 = fails$a;
41
+ var fails$9 = fails$b;
42
42
 
43
- var functionBindNative = !fails$8(function () {
44
- // eslint-disable-next-line es-x/no-function-prototype-bind -- safe
43
+ var functionBindNative = !fails$9(function () {
44
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
45
45
  var test = (function () { /* empty */ }).bind();
46
46
  // eslint-disable-next-line no-prototype-builtins -- safe
47
47
  return typeof test != 'function' || test.hasOwnProperty('prototype');
@@ -58,7 +58,7 @@ var functionCall = NATIVE_BIND$1 ? call$6.bind(call$6) : function () {
58
58
  var objectPropertyIsEnumerable = {};
59
59
 
60
60
  var $propertyIsEnumerable = {}.propertyIsEnumerable;
61
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
61
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
62
62
  var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
63
63
 
64
64
  // Nashorn ~ JDK8 bug
@@ -83,14 +83,11 @@ var createPropertyDescriptor$3 = function (bitmap, value) {
83
83
  var NATIVE_BIND = functionBindNative;
84
84
 
85
85
  var FunctionPrototype$1 = Function.prototype;
86
- var bind = FunctionPrototype$1.bind;
87
86
  var call$5 = FunctionPrototype$1.call;
88
- var uncurryThis$c = NATIVE_BIND && bind.bind(call$5, call$5);
87
+ var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$5, call$5);
89
88
 
90
- var functionUncurryThis = NATIVE_BIND ? function (fn) {
91
- return fn && uncurryThis$c(fn);
92
- } : function (fn) {
93
- return fn && function () {
89
+ var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
90
+ return function () {
94
91
  return call$5.apply(fn, arguments);
95
92
  };
96
93
  };
@@ -98,37 +95,42 @@ var functionUncurryThis = NATIVE_BIND ? function (fn) {
98
95
  var uncurryThis$b = functionUncurryThis;
99
96
 
100
97
  var toString$3 = uncurryThis$b({}.toString);
101
- var stringSlice$1 = uncurryThis$b(''.slice);
98
+ var stringSlice$2 = uncurryThis$b(''.slice);
102
99
 
103
100
  var classofRaw$1 = function (it) {
104
- return stringSlice$1(toString$3(it), 8, -1);
101
+ return stringSlice$2(toString$3(it), 8, -1);
105
102
  };
106
103
 
107
- var global$q = global$r;
108
104
  var uncurryThis$a = functionUncurryThis;
109
- var fails$7 = fails$a;
105
+ var fails$8 = fails$b;
110
106
  var classof$2 = classofRaw$1;
111
107
 
112
- var Object$5 = global$q.Object;
108
+ var $Object$4 = Object;
113
109
  var split = uncurryThis$a(''.split);
114
110
 
115
111
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
116
- var indexedObject = fails$7(function () {
112
+ var indexedObject = fails$8(function () {
117
113
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
118
114
  // eslint-disable-next-line no-prototype-builtins -- safe
119
- return !Object$5('z').propertyIsEnumerable(0);
115
+ return !$Object$4('z').propertyIsEnumerable(0);
120
116
  }) ? function (it) {
121
- return classof$2(it) == 'String' ? split(it, '') : Object$5(it);
122
- } : Object$5;
117
+ return classof$2(it) == 'String' ? split(it, '') : $Object$4(it);
118
+ } : $Object$4;
123
119
 
124
- var global$p = global$r;
120
+ // we can't use just `it == null` since of `document.all` special case
121
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
122
+ var isNullOrUndefined$2 = function (it) {
123
+ return it === null || it === undefined;
124
+ };
125
+
126
+ var isNullOrUndefined$1 = isNullOrUndefined$2;
125
127
 
126
- var TypeError$8 = global$p.TypeError;
128
+ var $TypeError$6 = TypeError;
127
129
 
128
130
  // `RequireObjectCoercible` abstract operation
129
131
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
130
132
  var requireObjectCoercible$2 = function (it) {
131
- if (it == undefined) throw TypeError$8("Can't call method on " + it);
133
+ if (isNullOrUndefined$1(it)) throw $TypeError$6("Can't call method on " + it);
132
134
  return it;
133
135
  };
134
136
 
@@ -140,42 +142,62 @@ var toIndexedObject$5 = function (it) {
140
142
  return IndexedObject$1(requireObjectCoercible$1(it));
141
143
  };
142
144
 
145
+ var documentAll$2 = typeof document == 'object' && document.all;
146
+
147
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
148
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
149
+ var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
150
+
151
+ var documentAll_1 = {
152
+ all: documentAll$2,
153
+ IS_HTMLDDA: IS_HTMLDDA
154
+ };
155
+
156
+ var $documentAll$1 = documentAll_1;
157
+
158
+ var documentAll$1 = $documentAll$1.all;
159
+
143
160
  // `IsCallable` abstract operation
144
161
  // https://tc39.es/ecma262/#sec-iscallable
145
- var isCallable$f = function (argument) {
162
+ var isCallable$g = $documentAll$1.IS_HTMLDDA ? function (argument) {
163
+ return typeof argument == 'function' || argument === documentAll$1;
164
+ } : function (argument) {
146
165
  return typeof argument == 'function';
147
166
  };
148
167
 
149
- var isCallable$e = isCallable$f;
168
+ var isCallable$f = isCallable$g;
169
+ var $documentAll = documentAll_1;
150
170
 
151
- var isObject$5 = function (it) {
152
- return typeof it == 'object' ? it !== null : isCallable$e(it);
171
+ var documentAll = $documentAll.all;
172
+
173
+ var isObject$6 = $documentAll.IS_HTMLDDA ? function (it) {
174
+ return typeof it == 'object' ? it !== null : isCallable$f(it) || it === documentAll;
175
+ } : function (it) {
176
+ return typeof it == 'object' ? it !== null : isCallable$f(it);
153
177
  };
154
178
 
155
- var global$o = global$r;
156
- var isCallable$d = isCallable$f;
179
+ var global$b = global$c;
180
+ var isCallable$e = isCallable$g;
157
181
 
158
182
  var aFunction = function (argument) {
159
- return isCallable$d(argument) ? argument : undefined;
183
+ return isCallable$e(argument) ? argument : undefined;
160
184
  };
161
185
 
162
- var getBuiltIn$4 = function (namespace, method) {
163
- return arguments.length < 2 ? aFunction(global$o[namespace]) : global$o[namespace] && global$o[namespace][method];
186
+ var getBuiltIn$3 = function (namespace, method) {
187
+ return arguments.length < 2 ? aFunction(global$b[namespace]) : global$b[namespace] && global$b[namespace][method];
164
188
  };
165
189
 
166
190
  var uncurryThis$9 = functionUncurryThis;
167
191
 
168
192
  var objectIsPrototypeOf = uncurryThis$9({}.isPrototypeOf);
169
193
 
170
- var getBuiltIn$3 = getBuiltIn$4;
194
+ var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
171
195
 
172
- var engineUserAgent = getBuiltIn$3('navigator', 'userAgent') || '';
173
-
174
- var global$n = global$r;
196
+ var global$a = global$c;
175
197
  var userAgent = engineUserAgent;
176
198
 
177
- var process = global$n.process;
178
- var Deno = global$n.Deno;
199
+ var process = global$a.process;
200
+ var Deno = global$a.Deno;
179
201
  var versions = process && process.versions || Deno && Deno.version;
180
202
  var v8 = versions && versions.v8;
181
203
  var match, version;
@@ -199,13 +221,13 @@ if (!version && userAgent) {
199
221
 
200
222
  var engineV8Version = version;
201
223
 
202
- /* eslint-disable es-x/no-symbol -- required for testing */
224
+ /* eslint-disable es/no-symbol -- required for testing */
203
225
 
204
226
  var V8_VERSION = engineV8Version;
205
- var fails$6 = fails$a;
227
+ var fails$7 = fails$b;
206
228
 
207
- // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
208
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$6(function () {
229
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
230
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$7(function () {
209
231
  var symbol = Symbol();
210
232
  // Chrome 38 Symbol has incorrect toString conversion
211
233
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
@@ -214,99 +236,95 @@ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$6(function () {
214
236
  !Symbol.sham && V8_VERSION && V8_VERSION < 41;
215
237
  });
216
238
 
217
- /* eslint-disable es-x/no-symbol -- required for testing */
239
+ /* eslint-disable es/no-symbol -- required for testing */
218
240
 
219
- var NATIVE_SYMBOL$2 = nativeSymbol;
241
+ var NATIVE_SYMBOL$2 = symbolConstructorDetection;
220
242
 
221
243
  var useSymbolAsUid = NATIVE_SYMBOL$2
222
244
  && !Symbol.sham
223
245
  && typeof Symbol.iterator == 'symbol';
224
246
 
225
- var global$m = global$r;
226
- var getBuiltIn$2 = getBuiltIn$4;
227
- var isCallable$c = isCallable$f;
247
+ var getBuiltIn$2 = getBuiltIn$3;
248
+ var isCallable$d = isCallable$g;
228
249
  var isPrototypeOf$1 = objectIsPrototypeOf;
229
250
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
230
251
 
231
- var Object$4 = global$m.Object;
252
+ var $Object$3 = Object;
232
253
 
233
254
  var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
234
255
  return typeof it == 'symbol';
235
256
  } : function (it) {
236
257
  var $Symbol = getBuiltIn$2('Symbol');
237
- return isCallable$c($Symbol) && isPrototypeOf$1($Symbol.prototype, Object$4(it));
258
+ return isCallable$d($Symbol) && isPrototypeOf$1($Symbol.prototype, $Object$3(it));
238
259
  };
239
260
 
240
- var global$l = global$r;
241
-
242
- var String$4 = global$l.String;
261
+ var $String$4 = String;
243
262
 
244
263
  var tryToString$1 = function (argument) {
245
264
  try {
246
- return String$4(argument);
265
+ return $String$4(argument);
247
266
  } catch (error) {
248
267
  return 'Object';
249
268
  }
250
269
  };
251
270
 
252
- var global$k = global$r;
253
- var isCallable$b = isCallable$f;
271
+ var isCallable$c = isCallable$g;
254
272
  var tryToString = tryToString$1;
255
273
 
256
- var TypeError$7 = global$k.TypeError;
274
+ var $TypeError$5 = TypeError;
257
275
 
258
276
  // `Assert: IsCallable(argument) is true`
259
- var aCallable$1 = function (argument) {
260
- if (isCallable$b(argument)) return argument;
261
- throw TypeError$7(tryToString(argument) + ' is not a function');
277
+ var aCallable$2 = function (argument) {
278
+ if (isCallable$c(argument)) return argument;
279
+ throw $TypeError$5(tryToString(argument) + ' is not a function');
262
280
  };
263
281
 
264
- var aCallable = aCallable$1;
282
+ var aCallable$1 = aCallable$2;
283
+ var isNullOrUndefined = isNullOrUndefined$2;
265
284
 
266
285
  // `GetMethod` abstract operation
267
286
  // https://tc39.es/ecma262/#sec-getmethod
268
287
  var getMethod$1 = function (V, P) {
269
288
  var func = V[P];
270
- return func == null ? undefined : aCallable(func);
289
+ return isNullOrUndefined(func) ? undefined : aCallable$1(func);
271
290
  };
272
291
 
273
- var global$j = global$r;
274
292
  var call$4 = functionCall;
275
- var isCallable$a = isCallable$f;
276
- var isObject$4 = isObject$5;
293
+ var isCallable$b = isCallable$g;
294
+ var isObject$5 = isObject$6;
277
295
 
278
- var TypeError$6 = global$j.TypeError;
296
+ var $TypeError$4 = TypeError;
279
297
 
280
298
  // `OrdinaryToPrimitive` abstract operation
281
299
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
282
300
  var ordinaryToPrimitive$1 = function (input, pref) {
283
301
  var fn, val;
284
- if (pref === 'string' && isCallable$a(fn = input.toString) && !isObject$4(val = call$4(fn, input))) return val;
285
- if (isCallable$a(fn = input.valueOf) && !isObject$4(val = call$4(fn, input))) return val;
286
- if (pref !== 'string' && isCallable$a(fn = input.toString) && !isObject$4(val = call$4(fn, input))) return val;
287
- throw TypeError$6("Can't convert object to primitive value");
302
+ if (pref === 'string' && isCallable$b(fn = input.toString) && !isObject$5(val = call$4(fn, input))) return val;
303
+ if (isCallable$b(fn = input.valueOf) && !isObject$5(val = call$4(fn, input))) return val;
304
+ if (pref !== 'string' && isCallable$b(fn = input.toString) && !isObject$5(val = call$4(fn, input))) return val;
305
+ throw $TypeError$4("Can't convert object to primitive value");
288
306
  };
289
307
 
290
308
  var shared$3 = {exports: {}};
291
309
 
292
- var global$i = global$r;
310
+ var global$9 = global$c;
293
311
 
294
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
295
- var defineProperty$4 = Object.defineProperty;
312
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
313
+ var defineProperty$6 = Object.defineProperty;
296
314
 
297
- var setGlobal$3 = function (key, value) {
315
+ var defineGlobalProperty$3 = function (key, value) {
298
316
  try {
299
- defineProperty$4(global$i, key, { value: value, configurable: true, writable: true });
317
+ defineProperty$6(global$9, key, { value: value, configurable: true, writable: true });
300
318
  } catch (error) {
301
- global$i[key] = value;
319
+ global$9[key] = value;
302
320
  } return value;
303
321
  };
304
322
 
305
- var global$h = global$r;
306
- var setGlobal$2 = setGlobal$3;
323
+ var global$8 = global$c;
324
+ var defineGlobalProperty$2 = defineGlobalProperty$3;
307
325
 
308
326
  var SHARED = '__core-js_shared__';
309
- var store$3 = global$h[SHARED] || setGlobal$2(SHARED, {});
327
+ var store$3 = global$8[SHARED] || defineGlobalProperty$2(SHARED, {});
310
328
 
311
329
  var sharedStore = store$3;
312
330
 
@@ -315,22 +333,21 @@ var store$2 = sharedStore;
315
333
  (shared$3.exports = function (key, value) {
316
334
  return store$2[key] || (store$2[key] = value !== undefined ? value : {});
317
335
  })('versions', []).push({
318
- version: '3.22.2',
336
+ version: '3.29.0',
319
337
  mode: 'global',
320
- copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
321
- license: 'https://github.com/zloirock/core-js/blob/v3.22.2/LICENSE',
338
+ copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
339
+ license: 'https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE',
322
340
  source: 'https://github.com/zloirock/core-js'
323
341
  });
324
342
 
325
- var global$g = global$r;
326
343
  var requireObjectCoercible = requireObjectCoercible$2;
327
344
 
328
- var Object$3 = global$g.Object;
345
+ var $Object$2 = Object;
329
346
 
330
347
  // `ToObject` abstract operation
331
348
  // https://tc39.es/ecma262/#sec-toobject
332
349
  var toObject$3 = function (argument) {
333
- return Object$3(requireObjectCoercible(argument));
350
+ return $Object$2(requireObjectCoercible(argument));
334
351
  };
335
352
 
336
353
  var uncurryThis$8 = functionUncurryThis;
@@ -340,7 +357,7 @@ var hasOwnProperty = uncurryThis$8({}.hasOwnProperty);
340
357
 
341
358
  // `HasOwnProperty` abstract operation
342
359
  // https://tc39.es/ecma262/#sec-hasownproperty
343
- // eslint-disable-next-line es-x/no-object-hasown -- safe
360
+ // eslint-disable-next-line es/no-object-hasown -- safe
344
361
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
345
362
  return hasOwnProperty(toObject$2(it), key);
346
363
  };
@@ -355,53 +372,46 @@ var uid$2 = function (key) {
355
372
  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$2(++id + postfix, 36);
356
373
  };
357
374
 
358
- var global$f = global$r;
375
+ var global$7 = global$c;
359
376
  var shared$2 = shared$3.exports;
360
377
  var hasOwn$9 = hasOwnProperty_1;
361
378
  var uid$1 = uid$2;
362
- var NATIVE_SYMBOL$1 = nativeSymbol;
379
+ var NATIVE_SYMBOL$1 = symbolConstructorDetection;
363
380
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
364
381
 
382
+ var Symbol$1 = global$7.Symbol;
365
383
  var WellKnownSymbolsStore = shared$2('wks');
366
- var Symbol$1 = global$f.Symbol;
367
- var symbolFor = Symbol$1 && Symbol$1['for'];
368
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
384
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
369
385
 
370
386
  var wellKnownSymbol$8 = function (name) {
371
- if (!hasOwn$9(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL$1 || typeof WellKnownSymbolsStore[name] == 'string')) {
372
- var description = 'Symbol.' + name;
373
- if (NATIVE_SYMBOL$1 && hasOwn$9(Symbol$1, name)) {
374
- WellKnownSymbolsStore[name] = Symbol$1[name];
375
- } else if (USE_SYMBOL_AS_UID && symbolFor) {
376
- WellKnownSymbolsStore[name] = symbolFor(description);
377
- } else {
378
- WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
379
- }
387
+ if (!hasOwn$9(WellKnownSymbolsStore, name)) {
388
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL$1 && hasOwn$9(Symbol$1, name)
389
+ ? Symbol$1[name]
390
+ : createWellKnownSymbol('Symbol.' + name);
380
391
  } return WellKnownSymbolsStore[name];
381
392
  };
382
393
 
383
- var global$e = global$r;
384
394
  var call$3 = functionCall;
385
- var isObject$3 = isObject$5;
395
+ var isObject$4 = isObject$6;
386
396
  var isSymbol$1 = isSymbol$2;
387
397
  var getMethod = getMethod$1;
388
398
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
389
399
  var wellKnownSymbol$7 = wellKnownSymbol$8;
390
400
 
391
- var TypeError$5 = global$e.TypeError;
401
+ var $TypeError$3 = TypeError;
392
402
  var TO_PRIMITIVE = wellKnownSymbol$7('toPrimitive');
393
403
 
394
404
  // `ToPrimitive` abstract operation
395
405
  // https://tc39.es/ecma262/#sec-toprimitive
396
406
  var toPrimitive$1 = function (input, pref) {
397
- if (!isObject$3(input) || isSymbol$1(input)) return input;
407
+ if (!isObject$4(input) || isSymbol$1(input)) return input;
398
408
  var exoticToPrim = getMethod(input, TO_PRIMITIVE);
399
409
  var result;
400
410
  if (exoticToPrim) {
401
411
  if (pref === undefined) pref = 'default';
402
412
  result = call$3(exoticToPrim, input, pref);
403
- if (!isObject$3(result) || isSymbol$1(result)) return result;
404
- throw TypeError$5("Can't convert object to primitive value");
413
+ if (!isObject$4(result) || isSymbol$1(result)) return result;
414
+ throw $TypeError$3("Can't convert object to primitive value");
405
415
  }
406
416
  if (pref === undefined) pref = 'number';
407
417
  return ordinaryToPrimitive(input, pref);
@@ -417,30 +427,30 @@ var toPropertyKey$2 = function (argument) {
417
427
  return isSymbol(key) ? key : key + '';
418
428
  };
419
429
 
420
- var global$d = global$r;
421
- var isObject$2 = isObject$5;
430
+ var global$6 = global$c;
431
+ var isObject$3 = isObject$6;
422
432
 
423
- var document$1 = global$d.document;
433
+ var document$1 = global$6.document;
424
434
  // typeof document.createElement is 'object' in old IE
425
- var EXISTS$1 = isObject$2(document$1) && isObject$2(document$1.createElement);
435
+ var EXISTS$1 = isObject$3(document$1) && isObject$3(document$1.createElement);
426
436
 
427
437
  var documentCreateElement$2 = function (it) {
428
438
  return EXISTS$1 ? document$1.createElement(it) : {};
429
439
  };
430
440
 
431
- var DESCRIPTORS$9 = descriptors;
432
- var fails$5 = fails$a;
441
+ var DESCRIPTORS$a = descriptors;
442
+ var fails$6 = fails$b;
433
443
  var createElement = documentCreateElement$2;
434
444
 
435
445
  // Thanks to IE8 for its funny defineProperty
436
- var ie8DomDefine = !DESCRIPTORS$9 && !fails$5(function () {
437
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
446
+ var ie8DomDefine = !DESCRIPTORS$a && !fails$6(function () {
447
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
438
448
  return Object.defineProperty(createElement('div'), 'a', {
439
449
  get: function () { return 7; }
440
450
  }).a != 7;
441
451
  });
442
452
 
443
- var DESCRIPTORS$8 = descriptors;
453
+ var DESCRIPTORS$9 = descriptors;
444
454
  var call$2 = functionCall;
445
455
  var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
446
456
  var createPropertyDescriptor$2 = createPropertyDescriptor$3;
@@ -449,12 +459,12 @@ var toPropertyKey$1 = toPropertyKey$2;
449
459
  var hasOwn$8 = hasOwnProperty_1;
450
460
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
451
461
 
452
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
462
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
453
463
  var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
454
464
 
455
465
  // `Object.getOwnPropertyDescriptor` method
456
466
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
457
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
467
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$9 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
458
468
  O = toIndexedObject$4(O);
459
469
  P = toPropertyKey$1(P);
460
470
  if (IE8_DOM_DEFINE$1) try {
@@ -465,42 +475,40 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 :
465
475
 
466
476
  var objectDefineProperty = {};
467
477
 
468
- var DESCRIPTORS$7 = descriptors;
469
- var fails$4 = fails$a;
478
+ var DESCRIPTORS$8 = descriptors;
479
+ var fails$5 = fails$b;
470
480
 
471
481
  // V8 ~ Chrome 36-
472
482
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
473
- var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$4(function () {
474
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
483
+ var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$5(function () {
484
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
475
485
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
476
486
  value: 42,
477
487
  writable: false
478
488
  }).prototype != 42;
479
489
  });
480
490
 
481
- var global$c = global$r;
482
- var isObject$1 = isObject$5;
491
+ var isObject$2 = isObject$6;
483
492
 
484
- var String$3 = global$c.String;
485
- var TypeError$4 = global$c.TypeError;
493
+ var $String$3 = String;
494
+ var $TypeError$2 = TypeError;
486
495
 
487
496
  // `Assert: Type(argument) is Object`
488
497
  var anObject$5 = function (argument) {
489
- if (isObject$1(argument)) return argument;
490
- throw TypeError$4(String$3(argument) + ' is not an object');
498
+ if (isObject$2(argument)) return argument;
499
+ throw $TypeError$2($String$3(argument) + ' is not an object');
491
500
  };
492
501
 
493
- var global$b = global$r;
494
- var DESCRIPTORS$6 = descriptors;
502
+ var DESCRIPTORS$7 = descriptors;
495
503
  var IE8_DOM_DEFINE = ie8DomDefine;
496
504
  var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
497
505
  var anObject$4 = anObject$5;
498
506
  var toPropertyKey = toPropertyKey$2;
499
507
 
500
- var TypeError$3 = global$b.TypeError;
501
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
508
+ var $TypeError$1 = TypeError;
509
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
502
510
  var $defineProperty = Object.defineProperty;
503
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
511
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
504
512
  var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
505
513
  var ENUMERABLE = 'enumerable';
506
514
  var CONFIGURABLE$1 = 'configurable';
@@ -508,7 +516,7 @@ var WRITABLE = 'writable';
508
516
 
509
517
  // `Object.defineProperty` method
510
518
  // https://tc39.es/ecma262/#sec-object.defineproperty
511
- objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
519
+ objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
512
520
  anObject$4(O);
513
521
  P = toPropertyKey(P);
514
522
  anObject$4(Attributes);
@@ -530,46 +538,63 @@ objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
530
538
  if (IE8_DOM_DEFINE) try {
531
539
  return $defineProperty(O, P, Attributes);
532
540
  } catch (error) { /* empty */ }
533
- if ('get' in Attributes || 'set' in Attributes) throw TypeError$3('Accessors not supported');
541
+ if ('get' in Attributes || 'set' in Attributes) throw $TypeError$1('Accessors not supported');
534
542
  if ('value' in Attributes) O[P] = Attributes.value;
535
543
  return O;
536
544
  };
537
545
 
538
- var DESCRIPTORS$5 = descriptors;
546
+ var DESCRIPTORS$6 = descriptors;
539
547
  var definePropertyModule$3 = objectDefineProperty;
540
548
  var createPropertyDescriptor$1 = createPropertyDescriptor$3;
541
549
 
542
- var createNonEnumerableProperty$5 = DESCRIPTORS$5 ? function (object, key, value) {
550
+ var createNonEnumerableProperty$4 = DESCRIPTORS$6 ? function (object, key, value) {
543
551
  return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
544
552
  } : function (object, key, value) {
545
553
  object[key] = value;
546
554
  return object;
547
555
  };
548
556
 
549
- var redefine$3 = {exports: {}};
557
+ var makeBuiltIn$3 = {exports: {}};
558
+
559
+ var DESCRIPTORS$5 = descriptors;
560
+ var hasOwn$7 = hasOwnProperty_1;
561
+
562
+ var FunctionPrototype = Function.prototype;
563
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
564
+ var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor;
565
+
566
+ var EXISTS = hasOwn$7(FunctionPrototype, 'name');
567
+ // additional protection from minified / mangled / dropped function names
568
+ var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
569
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype, 'name').configurable));
570
+
571
+ var functionName = {
572
+ EXISTS: EXISTS,
573
+ PROPER: PROPER,
574
+ CONFIGURABLE: CONFIGURABLE
575
+ };
550
576
 
551
577
  var uncurryThis$6 = functionUncurryThis;
552
- var isCallable$9 = isCallable$f;
578
+ var isCallable$a = isCallable$g;
553
579
  var store$1 = sharedStore;
554
580
 
555
581
  var functionToString = uncurryThis$6(Function.toString);
556
582
 
557
583
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
558
- if (!isCallable$9(store$1.inspectSource)) {
584
+ if (!isCallable$a(store$1.inspectSource)) {
559
585
  store$1.inspectSource = function (it) {
560
586
  return functionToString(it);
561
587
  };
562
588
  }
563
589
 
564
- var inspectSource$2 = store$1.inspectSource;
590
+ var inspectSource$1 = store$1.inspectSource;
565
591
 
566
- var global$a = global$r;
567
- var isCallable$8 = isCallable$f;
568
- var inspectSource$1 = inspectSource$2;
592
+ var global$5 = global$c;
593
+ var isCallable$9 = isCallable$g;
569
594
 
570
- var WeakMap$1 = global$a.WeakMap;
595
+ var WeakMap$1 = global$5.WeakMap;
571
596
 
572
- var nativeWeakMap = isCallable$8(WeakMap$1) && /native code/.test(inspectSource$1(WeakMap$1));
597
+ var weakMapBasicDetection = isCallable$9(WeakMap$1) && /native code/.test(String(WeakMap$1));
573
598
 
574
599
  var shared$1 = shared$3.exports;
575
600
  var uid = uid$2;
@@ -582,19 +607,18 @@ var sharedKey$3 = function (key) {
582
607
 
583
608
  var hiddenKeys$4 = {};
584
609
 
585
- var NATIVE_WEAK_MAP = nativeWeakMap;
586
- var global$9 = global$r;
587
- var uncurryThis$5 = functionUncurryThis;
588
- var isObject = isObject$5;
589
- var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
590
- var hasOwn$7 = hasOwnProperty_1;
610
+ var NATIVE_WEAK_MAP = weakMapBasicDetection;
611
+ var global$4 = global$c;
612
+ var isObject$1 = isObject$6;
613
+ var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
614
+ var hasOwn$6 = hasOwnProperty_1;
591
615
  var shared = sharedStore;
592
616
  var sharedKey$2 = sharedKey$3;
593
617
  var hiddenKeys$3 = hiddenKeys$4;
594
618
 
595
619
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
596
- var TypeError$2 = global$9.TypeError;
597
- var WeakMap = global$9.WeakMap;
620
+ var TypeError$1 = global$4.TypeError;
621
+ var WeakMap = global$4.WeakMap;
598
622
  var set, get, has;
599
623
 
600
624
  var enforce = function (it) {
@@ -604,43 +628,45 @@ var enforce = function (it) {
604
628
  var getterFor = function (TYPE) {
605
629
  return function (it) {
606
630
  var state;
607
- if (!isObject(it) || (state = get(it)).type !== TYPE) {
608
- throw TypeError$2('Incompatible receiver, ' + TYPE + ' required');
631
+ if (!isObject$1(it) || (state = get(it)).type !== TYPE) {
632
+ throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
609
633
  } return state;
610
634
  };
611
635
  };
612
636
 
613
637
  if (NATIVE_WEAK_MAP || shared.state) {
614
638
  var store = shared.state || (shared.state = new WeakMap());
615
- var wmget = uncurryThis$5(store.get);
616
- var wmhas = uncurryThis$5(store.has);
617
- var wmset = uncurryThis$5(store.set);
639
+ /* eslint-disable no-self-assign -- prototype methods protection */
640
+ store.get = store.get;
641
+ store.has = store.has;
642
+ store.set = store.set;
643
+ /* eslint-enable no-self-assign -- prototype methods protection */
618
644
  set = function (it, metadata) {
619
- if (wmhas(store, it)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
645
+ if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
620
646
  metadata.facade = it;
621
- wmset(store, it, metadata);
647
+ store.set(it, metadata);
622
648
  return metadata;
623
649
  };
624
650
  get = function (it) {
625
- return wmget(store, it) || {};
651
+ return store.get(it) || {};
626
652
  };
627
653
  has = function (it) {
628
- return wmhas(store, it);
654
+ return store.has(it);
629
655
  };
630
656
  } else {
631
657
  var STATE = sharedKey$2('state');
632
658
  hiddenKeys$3[STATE] = true;
633
659
  set = function (it, metadata) {
634
- if (hasOwn$7(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
660
+ if (hasOwn$6(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
635
661
  metadata.facade = it;
636
- createNonEnumerableProperty$4(it, STATE, metadata);
662
+ createNonEnumerableProperty$3(it, STATE, metadata);
637
663
  return metadata;
638
664
  };
639
665
  get = function (it) {
640
- return hasOwn$7(it, STATE) ? it[STATE] : {};
666
+ return hasOwn$6(it, STATE) ? it[STATE] : {};
641
667
  };
642
668
  has = function (it) {
643
- return hasOwn$7(it, STATE);
669
+ return hasOwn$6(it, STATE);
644
670
  };
645
671
  }
646
672
 
@@ -652,82 +678,110 @@ var internalState = {
652
678
  getterFor: getterFor
653
679
  };
654
680
 
655
- var DESCRIPTORS$4 = descriptors;
656
- var hasOwn$6 = hasOwnProperty_1;
657
-
658
- var FunctionPrototype = Function.prototype;
659
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
660
- var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
661
-
662
- var EXISTS = hasOwn$6(FunctionPrototype, 'name');
663
- // additional protection from minified / mangled / dropped function names
664
- var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
665
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype, 'name').configurable));
666
-
667
- var functionName = {
668
- EXISTS: EXISTS,
669
- PROPER: PROPER,
670
- CONFIGURABLE: CONFIGURABLE
671
- };
672
-
673
- var global$8 = global$r;
674
- var isCallable$7 = isCallable$f;
681
+ var uncurryThis$5 = functionUncurryThis;
682
+ var fails$4 = fails$b;
683
+ var isCallable$8 = isCallable$g;
675
684
  var hasOwn$5 = hasOwnProperty_1;
676
- var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
677
- var setGlobal$1 = setGlobal$3;
678
- var inspectSource = inspectSource$2;
679
- var InternalStateModule$1 = internalState;
685
+ var DESCRIPTORS$4 = descriptors;
680
686
  var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
687
+ var inspectSource = inspectSource$1;
688
+ var InternalStateModule$1 = internalState;
681
689
 
682
- var getInternalState$1 = InternalStateModule$1.get;
683
690
  var enforceInternalState = InternalStateModule$1.enforce;
691
+ var getInternalState$1 = InternalStateModule$1.get;
692
+ var $String$2 = String;
693
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
694
+ var defineProperty$5 = Object.defineProperty;
695
+ var stringSlice$1 = uncurryThis$5(''.slice);
696
+ var replace$1 = uncurryThis$5(''.replace);
697
+ var join = uncurryThis$5([].join);
698
+
699
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$4(function () {
700
+ return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
701
+ });
702
+
684
703
  var TEMPLATE = String(String).split('String');
685
704
 
686
- (redefine$3.exports = function (O, key, value, options) {
687
- var unsafe = options ? !!options.unsafe : false;
688
- var simple = options ? !!options.enumerable : false;
689
- var noTargetGet = options ? !!options.noTargetGet : false;
690
- var name = options && options.name !== undefined ? options.name : key;
691
- var state;
692
- if (isCallable$7(value)) {
693
- if (String(name).slice(0, 7) === 'Symbol(') {
694
- name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
695
- }
696
- if (!hasOwn$5(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
697
- createNonEnumerableProperty$3(value, 'name', name);
698
- }
699
- state = enforceInternalState(value);
700
- if (!state.source) {
701
- state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
702
- }
705
+ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
706
+ if (stringSlice$1($String$2(name), 0, 7) === 'Symbol(') {
707
+ name = '[' + replace$1($String$2(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
703
708
  }
704
- if (O === global$8) {
705
- if (simple) O[key] = value;
706
- else setGlobal$1(key, value);
707
- return;
708
- } else if (!unsafe) {
709
- delete O[key];
710
- } else if (!noTargetGet && O[key]) {
711
- simple = true;
709
+ if (options && options.getter) name = 'get ' + name;
710
+ if (options && options.setter) name = 'set ' + name;
711
+ if (!hasOwn$5(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
712
+ if (DESCRIPTORS$4) defineProperty$5(value, 'name', { value: name, configurable: true });
713
+ else value.name = name;
714
+ }
715
+ if (CONFIGURABLE_LENGTH && options && hasOwn$5(options, 'arity') && value.length !== options.arity) {
716
+ defineProperty$5(value, 'length', { value: options.arity });
712
717
  }
713
- if (simple) O[key] = value;
714
- else createNonEnumerableProperty$3(O, key, value);
718
+ try {
719
+ if (options && hasOwn$5(options, 'constructor') && options.constructor) {
720
+ if (DESCRIPTORS$4) defineProperty$5(value, 'prototype', { writable: false });
721
+ // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
722
+ } else if (value.prototype) value.prototype = undefined;
723
+ } catch (error) { /* empty */ }
724
+ var state = enforceInternalState(value);
725
+ if (!hasOwn$5(state, 'source')) {
726
+ state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
727
+ } return value;
728
+ };
729
+
715
730
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
716
- })(Function.prototype, 'toString', function toString() {
717
- return isCallable$7(this) && getInternalState$1(this).source || inspectSource(this);
718
- });
731
+ // eslint-disable-next-line no-extend-native -- required
732
+ Function.prototype.toString = makeBuiltIn$2(function toString() {
733
+ return isCallable$8(this) && getInternalState$1(this).source || inspectSource(this);
734
+ }, 'toString');
735
+
736
+ var isCallable$7 = isCallable$g;
737
+ var definePropertyModule$2 = objectDefineProperty;
738
+ var makeBuiltIn$1 = makeBuiltIn$3.exports;
739
+ var defineGlobalProperty$1 = defineGlobalProperty$3;
740
+
741
+ var defineBuiltIn$3 = function (O, key, value, options) {
742
+ if (!options) options = {};
743
+ var simple = options.enumerable;
744
+ var name = options.name !== undefined ? options.name : key;
745
+ if (isCallable$7(value)) makeBuiltIn$1(value, name, options);
746
+ if (options.global) {
747
+ if (simple) O[key] = value;
748
+ else defineGlobalProperty$1(key, value);
749
+ } else {
750
+ try {
751
+ if (!options.unsafe) delete O[key];
752
+ else if (O[key]) simple = true;
753
+ } catch (error) { /* empty */ }
754
+ if (simple) O[key] = value;
755
+ else definePropertyModule$2.f(O, key, {
756
+ value: value,
757
+ enumerable: false,
758
+ configurable: !options.nonConfigurable,
759
+ writable: !options.nonWritable
760
+ });
761
+ } return O;
762
+ };
719
763
 
720
764
  var objectGetOwnPropertyNames = {};
721
765
 
722
766
  var ceil = Math.ceil;
723
767
  var floor = Math.floor;
724
768
 
769
+ // `Math.trunc` method
770
+ // https://tc39.es/ecma262/#sec-math.trunc
771
+ // eslint-disable-next-line es/no-math-trunc -- safe
772
+ var mathTrunc = Math.trunc || function trunc(x) {
773
+ var n = +x;
774
+ return (n > 0 ? floor : ceil)(n);
775
+ };
776
+
777
+ var trunc = mathTrunc;
778
+
725
779
  // `ToIntegerOrInfinity` abstract operation
726
780
  // https://tc39.es/ecma262/#sec-tointegerorinfinity
727
781
  var toIntegerOrInfinity$2 = function (argument) {
728
782
  var number = +argument;
729
- // eslint-disable-next-line no-self-compare -- safe
730
- return number !== number || number === 0 ? 0 : (number > 0 ? floor : ceil)(number);
783
+ // eslint-disable-next-line no-self-compare -- NaN check
784
+ return number !== number || number === 0 ? 0 : trunc(number);
731
785
  };
732
786
 
733
787
  var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
@@ -833,17 +887,17 @@ var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
833
887
 
834
888
  // `Object.getOwnPropertyNames` method
835
889
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
836
- // eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
890
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
837
891
  objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
838
892
  return internalObjectKeys$1(O, hiddenKeys$1);
839
893
  };
840
894
 
841
895
  var objectGetOwnPropertySymbols = {};
842
896
 
843
- // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
897
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
844
898
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
845
899
 
846
- var getBuiltIn$1 = getBuiltIn$4;
900
+ var getBuiltIn$1 = getBuiltIn$3;
847
901
  var uncurryThis$3 = functionUncurryThis;
848
902
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
849
903
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
@@ -861,11 +915,11 @@ var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
861
915
  var hasOwn$3 = hasOwnProperty_1;
862
916
  var ownKeys = ownKeys$1;
863
917
  var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
864
- var definePropertyModule$2 = objectDefineProperty;
918
+ var definePropertyModule$1 = objectDefineProperty;
865
919
 
866
920
  var copyConstructorProperties$2 = function (target, source, exceptions) {
867
921
  var keys = ownKeys(source);
868
- var defineProperty = definePropertyModule$2.f;
922
+ var defineProperty = definePropertyModule$1.f;
869
923
  var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
870
924
  for (var i = 0; i < keys.length; i++) {
871
925
  var key = keys[i];
@@ -875,8 +929,8 @@ var copyConstructorProperties$2 = function (target, source, exceptions) {
875
929
  }
876
930
  };
877
931
 
878
- var fails$3 = fails$a;
879
- var isCallable$6 = isCallable$f;
932
+ var fails$3 = fails$b;
933
+ var isCallable$6 = isCallable$g;
880
934
 
881
935
  var replacement = /#|\.prototype\./;
882
936
 
@@ -898,28 +952,28 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
898
952
 
899
953
  var isForced_1 = isForced$1;
900
954
 
901
- var global$7 = global$r;
955
+ var global$3 = global$c;
902
956
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
903
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
904
- var redefine$2 = redefine$3.exports;
905
- var setGlobal = setGlobal$3;
957
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
958
+ var defineBuiltIn$2 = defineBuiltIn$3;
959
+ var defineGlobalProperty = defineGlobalProperty$3;
906
960
  var copyConstructorProperties$1 = copyConstructorProperties$2;
907
961
  var isForced = isForced_1;
908
962
 
909
963
  /*
910
- options.target - name of the target object
911
- options.global - target is the global object
912
- options.stat - export as static methods of target
913
- options.proto - export as prototype methods of target
914
- options.real - real prototype method for the `pure` version
915
- options.forced - export even if the native feature is available
916
- options.bind - bind methods to the target, required for the `pure` version
917
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
918
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
919
- options.sham - add a flag to not completely full polyfills
920
- options.enumerable - export as enumerable property
921
- options.noTargetGet - prevent calling a getter on target
922
- options.name - the .name of the function if it does not match the key
964
+ options.target - name of the target object
965
+ options.global - target is the global object
966
+ options.stat - export as static methods of target
967
+ options.proto - export as prototype methods of target
968
+ options.real - real prototype method for the `pure` version
969
+ options.forced - export even if the native feature is available
970
+ options.bind - bind methods to the target, required for the `pure` version
971
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
972
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
973
+ options.sham - add a flag to not completely full polyfills
974
+ options.enumerable - export as enumerable property
975
+ options.dontCallGetSet - prevent calling a getter on target
976
+ options.name - the .name of the function if it does not match the key
923
977
  */
924
978
  var _export = function (options, source) {
925
979
  var TARGET = options.target;
@@ -927,15 +981,15 @@ var _export = function (options, source) {
927
981
  var STATIC = options.stat;
928
982
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
929
983
  if (GLOBAL) {
930
- target = global$7;
984
+ target = global$3;
931
985
  } else if (STATIC) {
932
- target = global$7[TARGET] || setGlobal(TARGET, {});
986
+ target = global$3[TARGET] || defineGlobalProperty(TARGET, {});
933
987
  } else {
934
- target = (global$7[TARGET] || {}).prototype;
988
+ target = (global$3[TARGET] || {}).prototype;
935
989
  }
936
990
  if (target) for (key in source) {
937
991
  sourceProperty = source[key];
938
- if (options.noTargetGet) {
992
+ if (options.dontCallGetSet) {
939
993
  descriptor = getOwnPropertyDescriptor(target, key);
940
994
  targetProperty = descriptor && descriptor.value;
941
995
  } else targetProperty = target[key];
@@ -949,8 +1003,7 @@ var _export = function (options, source) {
949
1003
  if (options.sham || (targetProperty && targetProperty.sham)) {
950
1004
  createNonEnumerableProperty$2(sourceProperty, 'sham', true);
951
1005
  }
952
- // extend global
953
- redefine$2(target, key, sourceProperty, options);
1006
+ defineBuiltIn$2(target, key, sourceProperty, options);
954
1007
  }
955
1008
  };
956
1009
 
@@ -959,7 +1012,7 @@ var enumBugKeys$1 = enumBugKeys$3;
959
1012
 
960
1013
  // `Object.keys` method
961
1014
  // https://tc39.es/ecma262/#sec-object.keys
962
- // eslint-disable-next-line es-x/no-object-keys -- safe
1015
+ // eslint-disable-next-line es/no-object-keys -- safe
963
1016
  var objectKeys$2 = Object.keys || function keys(O) {
964
1017
  return internalObjectKeys(O, enumBugKeys$1);
965
1018
  };
@@ -967,27 +1020,27 @@ var objectKeys$2 = Object.keys || function keys(O) {
967
1020
  var DESCRIPTORS$3 = descriptors;
968
1021
  var uncurryThis$2 = functionUncurryThis;
969
1022
  var call$1 = functionCall;
970
- var fails$2 = fails$a;
1023
+ var fails$2 = fails$b;
971
1024
  var objectKeys$1 = objectKeys$2;
972
1025
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
973
1026
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
974
1027
  var toObject$1 = toObject$3;
975
1028
  var IndexedObject = indexedObject;
976
1029
 
977
- // eslint-disable-next-line es-x/no-object-assign -- safe
1030
+ // eslint-disable-next-line es/no-object-assign -- safe
978
1031
  var $assign = Object.assign;
979
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
980
- var defineProperty$3 = Object.defineProperty;
1032
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1033
+ var defineProperty$4 = Object.defineProperty;
981
1034
  var concat = uncurryThis$2([].concat);
982
1035
 
983
1036
  // `Object.assign` method
984
1037
  // https://tc39.es/ecma262/#sec-object.assign
985
1038
  var objectAssign = !$assign || fails$2(function () {
986
1039
  // should have correct order of operations (Edge bug)
987
- if (DESCRIPTORS$3 && $assign({ b: 1 }, $assign(defineProperty$3({}, 'a', {
1040
+ if (DESCRIPTORS$3 && $assign({ b: 1 }, $assign(defineProperty$4({}, 'a', {
988
1041
  enumerable: true,
989
1042
  get: function () {
990
- defineProperty$3(this, 'b', {
1043
+ defineProperty$4(this, 'b', {
991
1044
  value: 3,
992
1045
  enumerable: false
993
1046
  });
@@ -996,7 +1049,7 @@ var objectAssign = !$assign || fails$2(function () {
996
1049
  // should work with symbols and should have deterministic property order (V8 bug)
997
1050
  var A = {};
998
1051
  var B = {};
999
- // eslint-disable-next-line es-x/no-symbol -- safe
1052
+ // eslint-disable-next-line es/no-symbol -- safe
1000
1053
  var symbol = Symbol();
1001
1054
  var alphabet = 'abcdefghijklmnopqrst';
1002
1055
  A[symbol] = 7;
@@ -1026,8 +1079,8 @@ var assign = objectAssign;
1026
1079
 
1027
1080
  // `Object.assign` method
1028
1081
  // https://tc39.es/ecma262/#sec-object.assign
1029
- // eslint-disable-next-line es-x/no-object-assign -- required for testing
1030
- $$2({ target: 'Object', stat: true, forced: Object.assign !== assign }, {
1082
+ // eslint-disable-next-line es/no-object-assign -- required for testing
1083
+ $$2({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1031
1084
  assign: assign
1032
1085
  });
1033
1086
 
@@ -1099,7 +1152,6 @@ const ModalHeader = ({
1099
1152
  const handleClose = event => {
1100
1153
  if (onClose) onClose(event);
1101
1154
  };
1102
-
1103
1155
  return jsxs("div", Object.assign({
1104
1156
  className: "header"
1105
1157
  }, {
@@ -1117,7 +1169,6 @@ const ModalHeader = ({
1117
1169
  }))]
1118
1170
  }));
1119
1171
  };
1120
-
1121
1172
  const ModalBody = ({
1122
1173
  children
1123
1174
  }) => {
@@ -1127,7 +1178,6 @@ const ModalBody = ({
1127
1178
  children: children
1128
1179
  }));
1129
1180
  };
1130
-
1131
1181
  const ModalFooter = ({
1132
1182
  confirm,
1133
1183
  dismiss,
@@ -1139,12 +1189,10 @@ const ModalFooter = ({
1139
1189
  if (onConfirm) onConfirm(event);
1140
1190
  if (onClose) onClose(event);
1141
1191
  };
1142
-
1143
1192
  const handleDismiss = event => {
1144
1193
  if (onDismiss) onDismiss(event);
1145
1194
  if (onClose) onClose(event);
1146
1195
  };
1147
-
1148
1196
  return jsxs("div", Object.assign({
1149
1197
  className: "footer"
1150
1198
  }, {
@@ -1161,14 +1209,12 @@ const ModalFooter = ({
1161
1209
  }))]
1162
1210
  }));
1163
1211
  };
1164
-
1165
1212
  const Modal = _a => {
1166
1213
  var {
1167
- type = 'default',
1168
- isOpen
1169
- } = _a,
1170
- props = __rest(_a, ["type", "isOpen"]);
1171
-
1214
+ type = 'default',
1215
+ isOpen
1216
+ } = _a,
1217
+ props = __rest(_a, ["type", "isOpen"]);
1172
1218
  const modalContent = () => {
1173
1219
  switch (type) {
1174
1220
  case 'slideout':
@@ -1179,7 +1225,6 @@ const Modal = _a => {
1179
1225
  children: [jsx(ModalHeader, Object.assign({}, props)), jsx(ModalBody, Object.assign({}, props)), jsx(ModalFooter, Object.assign({}, props))]
1180
1226
  }));
1181
1227
  }
1182
-
1183
1228
  case 'takeover':
1184
1229
  {
1185
1230
  return jsxs("main", Object.assign({
@@ -1188,7 +1233,6 @@ const Modal = _a => {
1188
1233
  children: [jsx(ModalHeader, Object.assign({}, props)), jsx(ModalBody, Object.assign({}, props)), jsx(ModalFooter, Object.assign({}, props))]
1189
1234
  }));
1190
1235
  }
1191
-
1192
1236
  default:
1193
1237
  {
1194
1238
  return jsxs("section", Object.assign({
@@ -1199,7 +1243,6 @@ const Modal = _a => {
1199
1243
  }
1200
1244
  }
1201
1245
  };
1202
-
1203
1246
  return isOpen ? modalContent() : null;
1204
1247
  };
1205
1248
 
@@ -1207,14 +1250,14 @@ var objectDefineProperties = {};
1207
1250
 
1208
1251
  var DESCRIPTORS$2 = descriptors;
1209
1252
  var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1210
- var definePropertyModule$1 = objectDefineProperty;
1253
+ var definePropertyModule = objectDefineProperty;
1211
1254
  var anObject$2 = anObject$5;
1212
1255
  var toIndexedObject$1 = toIndexedObject$5;
1213
1256
  var objectKeys = objectKeys$2;
1214
1257
 
1215
1258
  // `Object.defineProperties` method
1216
1259
  // https://tc39.es/ecma262/#sec-object.defineproperties
1217
- // eslint-disable-next-line es-x/no-object-defineproperties -- safe
1260
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
1218
1261
  objectDefineProperties.f = DESCRIPTORS$2 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1219
1262
  anObject$2(O);
1220
1263
  var props = toIndexedObject$1(Properties);
@@ -1222,11 +1265,11 @@ objectDefineProperties.f = DESCRIPTORS$2 && !V8_PROTOTYPE_DEFINE_BUG ? Object.de
1222
1265
  var length = keys.length;
1223
1266
  var index = 0;
1224
1267
  var key;
1225
- while (length > index) definePropertyModule$1.f(O, key = keys[index++], props[key]);
1268
+ while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
1226
1269
  return O;
1227
1270
  };
1228
1271
 
1229
- var getBuiltIn = getBuiltIn$4;
1272
+ var getBuiltIn = getBuiltIn$3;
1230
1273
 
1231
1274
  var html$1 = getBuiltIn('document', 'documentElement');
1232
1275
 
@@ -1302,7 +1345,7 @@ hiddenKeys[IE_PROTO$1] = true;
1302
1345
 
1303
1346
  // `Object.create` method
1304
1347
  // https://tc39.es/ecma262/#sec-object.create
1305
- // eslint-disable-next-line es-x/no-object-create -- safe
1348
+ // eslint-disable-next-line es/no-object-create -- safe
1306
1349
  var objectCreate = Object.create || function create(O, Properties) {
1307
1350
  var result;
1308
1351
  if (O !== null) {
@@ -1317,7 +1360,7 @@ var objectCreate = Object.create || function create(O, Properties) {
1317
1360
 
1318
1361
  var wellKnownSymbol$6 = wellKnownSymbol$8;
1319
1362
  var create$1 = objectCreate;
1320
- var definePropertyModule = objectDefineProperty;
1363
+ var defineProperty$3 = objectDefineProperty.f;
1321
1364
 
1322
1365
  var UNSCOPABLES = wellKnownSymbol$6('unscopables');
1323
1366
  var ArrayPrototype = Array.prototype;
@@ -1325,7 +1368,7 @@ var ArrayPrototype = Array.prototype;
1325
1368
  // Array.prototype[@@unscopables]
1326
1369
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1327
1370
  if (ArrayPrototype[UNSCOPABLES] == undefined) {
1328
- definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {
1371
+ defineProperty$3(ArrayPrototype, UNSCOPABLES, {
1329
1372
  configurable: true,
1330
1373
  value: create$1(null)
1331
1374
  });
@@ -1338,41 +1381,42 @@ var addToUnscopables$1 = function (key) {
1338
1381
 
1339
1382
  var iterators = {};
1340
1383
 
1341
- var fails$1 = fails$a;
1384
+ var fails$1 = fails$b;
1342
1385
 
1343
1386
  var correctPrototypeGetter = !fails$1(function () {
1344
1387
  function F() { /* empty */ }
1345
1388
  F.prototype.constructor = null;
1346
- // eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing
1389
+ // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1347
1390
  return Object.getPrototypeOf(new F()) !== F.prototype;
1348
1391
  });
1349
1392
 
1350
- var global$6 = global$r;
1351
1393
  var hasOwn$2 = hasOwnProperty_1;
1352
- var isCallable$5 = isCallable$f;
1394
+ var isCallable$5 = isCallable$g;
1353
1395
  var toObject = toObject$3;
1354
1396
  var sharedKey = sharedKey$3;
1355
1397
  var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1356
1398
 
1357
1399
  var IE_PROTO = sharedKey('IE_PROTO');
1358
- var Object$2 = global$6.Object;
1359
- var ObjectPrototype = Object$2.prototype;
1400
+ var $Object$1 = Object;
1401
+ var ObjectPrototype = $Object$1.prototype;
1360
1402
 
1361
1403
  // `Object.getPrototypeOf` method
1362
1404
  // https://tc39.es/ecma262/#sec-object.getprototypeof
1363
- var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? Object$2.getPrototypeOf : function (O) {
1405
+ // eslint-disable-next-line es/no-object-getprototypeof -- safe
1406
+ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1364
1407
  var object = toObject(O);
1365
1408
  if (hasOwn$2(object, IE_PROTO)) return object[IE_PROTO];
1366
1409
  var constructor = object.constructor;
1367
1410
  if (isCallable$5(constructor) && object instanceof constructor) {
1368
1411
  return constructor.prototype;
1369
- } return object instanceof Object$2 ? ObjectPrototype : null;
1412
+ } return object instanceof $Object$1 ? ObjectPrototype : null;
1370
1413
  };
1371
1414
 
1372
- var fails = fails$a;
1373
- var isCallable$4 = isCallable$f;
1415
+ var fails = fails$b;
1416
+ var isCallable$4 = isCallable$g;
1417
+ var isObject = isObject$6;
1374
1418
  var getPrototypeOf$1 = objectGetPrototypeOf;
1375
- var redefine$1 = redefine$3.exports;
1419
+ var defineBuiltIn$1 = defineBuiltIn$3;
1376
1420
  var wellKnownSymbol$5 = wellKnownSymbol$8;
1377
1421
 
1378
1422
  var ITERATOR$2 = wellKnownSymbol$5('iterator');
@@ -1382,7 +1426,7 @@ var BUGGY_SAFARI_ITERATORS$1 = false;
1382
1426
  // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
1383
1427
  var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
1384
1428
 
1385
- /* eslint-disable es-x/no-array-prototype-keys -- safe */
1429
+ /* eslint-disable es/no-array-prototype-keys -- safe */
1386
1430
  if ([].keys) {
1387
1431
  arrayIterator = [].keys();
1388
1432
  // Safari 8 has buggy iterators w/o `next`
@@ -1393,7 +1437,7 @@ if ([].keys) {
1393
1437
  }
1394
1438
  }
1395
1439
 
1396
- var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails(function () {
1440
+ var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails(function () {
1397
1441
  var test = {};
1398
1442
  // FF44- legacy iterators case
1399
1443
  return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
@@ -1404,7 +1448,7 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1404
1448
  // `%IteratorPrototype%[@@iterator]()` method
1405
1449
  // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1406
1450
  if (!isCallable$4(IteratorPrototype$2[ITERATOR$2])) {
1407
- redefine$1(IteratorPrototype$2, ITERATOR$2, function () {
1451
+ defineBuiltIn$1(IteratorPrototype$2, ITERATOR$2, function () {
1408
1452
  return this;
1409
1453
  });
1410
1454
  }
@@ -1435,7 +1479,7 @@ var Iterators$2 = iterators;
1435
1479
 
1436
1480
  var returnThis$1 = function () { return this; };
1437
1481
 
1438
- var createIteratorConstructor$1 = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1482
+ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1439
1483
  var TO_STRING_TAG = NAME + ' Iterator';
1440
1484
  IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
1441
1485
  setToStringTag$1(IteratorConstructor, TO_STRING_TAG, false);
@@ -1443,34 +1487,42 @@ var createIteratorConstructor$1 = function (IteratorConstructor, NAME, next, ENU
1443
1487
  return IteratorConstructor;
1444
1488
  };
1445
1489
 
1446
- var global$5 = global$r;
1447
- var isCallable$3 = isCallable$f;
1490
+ var uncurryThis$1 = functionUncurryThis;
1491
+ var aCallable = aCallable$2;
1492
+
1493
+ var functionUncurryThisAccessor = function (object, key, method) {
1494
+ try {
1495
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1496
+ return uncurryThis$1(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
1497
+ } catch (error) { /* empty */ }
1498
+ };
1499
+
1500
+ var isCallable$3 = isCallable$g;
1448
1501
 
1449
- var String$2 = global$5.String;
1450
- var TypeError$1 = global$5.TypeError;
1502
+ var $String$1 = String;
1503
+ var $TypeError = TypeError;
1451
1504
 
1452
1505
  var aPossiblePrototype$1 = function (argument) {
1453
1506
  if (typeof argument == 'object' || isCallable$3(argument)) return argument;
1454
- throw TypeError$1("Can't set " + String$2(argument) + ' as a prototype');
1507
+ throw $TypeError("Can't set " + $String$1(argument) + ' as a prototype');
1455
1508
  };
1456
1509
 
1457
1510
  /* eslint-disable no-proto -- safe */
1458
1511
 
1459
- var uncurryThis$1 = functionUncurryThis;
1512
+ var uncurryThisAccessor = functionUncurryThisAccessor;
1460
1513
  var anObject = anObject$5;
1461
1514
  var aPossiblePrototype = aPossiblePrototype$1;
1462
1515
 
1463
1516
  // `Object.setPrototypeOf` method
1464
1517
  // https://tc39.es/ecma262/#sec-object.setprototypeof
1465
1518
  // Works with __proto__ only. Old v8 can't work with null proto objects.
1466
- // eslint-disable-next-line es-x/no-object-setprototypeof -- safe
1519
+ // eslint-disable-next-line es/no-object-setprototypeof -- safe
1467
1520
  var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1468
1521
  var CORRECT_SETTER = false;
1469
1522
  var test = {};
1470
1523
  var setter;
1471
1524
  try {
1472
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
1473
- setter = uncurryThis$1(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
1525
+ setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
1474
1526
  setter(test, []);
1475
1527
  CORRECT_SETTER = test instanceof Array;
1476
1528
  } catch (error) { /* empty */ }
@@ -1486,13 +1538,13 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1486
1538
  var $$1 = _export;
1487
1539
  var call = functionCall;
1488
1540
  var FunctionName = functionName;
1489
- var isCallable$2 = isCallable$f;
1490
- var createIteratorConstructor = createIteratorConstructor$1;
1541
+ var isCallable$2 = isCallable$g;
1542
+ var createIteratorConstructor = iteratorCreateConstructor;
1491
1543
  var getPrototypeOf = objectGetPrototypeOf;
1492
1544
  var setPrototypeOf = objectSetPrototypeOf;
1493
1545
  var setToStringTag = setToStringTag$2;
1494
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
1495
- var redefine = redefine$3.exports;
1546
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
1547
+ var defineBuiltIn = defineBuiltIn$3;
1496
1548
  var wellKnownSymbol$3 = wellKnownSymbol$8;
1497
1549
  var Iterators$1 = iterators;
1498
1550
  var IteratorsCore = iteratorsCore;
@@ -1508,7 +1560,7 @@ var ENTRIES = 'entries';
1508
1560
 
1509
1561
  var returnThis = function () { return this; };
1510
1562
 
1511
- var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1563
+ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1512
1564
  createIteratorConstructor(IteratorConstructor, NAME, next);
1513
1565
 
1514
1566
  var getIterationMethod = function (KIND) {
@@ -1539,7 +1591,7 @@ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFA
1539
1591
  if (setPrototypeOf) {
1540
1592
  setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
1541
1593
  } else if (!isCallable$2(CurrentIteratorPrototype[ITERATOR$1])) {
1542
- redefine(CurrentIteratorPrototype, ITERATOR$1, returnThis);
1594
+ defineBuiltIn(CurrentIteratorPrototype, ITERATOR$1, returnThis);
1543
1595
  }
1544
1596
  }
1545
1597
  // Set @@toStringTag to native iterators
@@ -1566,26 +1618,33 @@ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFA
1566
1618
  };
1567
1619
  if (FORCED) for (KEY in methods) {
1568
1620
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1569
- redefine(IterablePrototype, KEY, methods[KEY]);
1621
+ defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
1570
1622
  }
1571
1623
  } else $$1({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1572
1624
  }
1573
1625
 
1574
1626
  // define iterator
1575
1627
  if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
1576
- redefine(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
1628
+ defineBuiltIn(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
1577
1629
  }
1578
1630
  Iterators$1[NAME] = defaultIterator;
1579
1631
 
1580
1632
  return methods;
1581
1633
  };
1582
1634
 
1635
+ // `CreateIterResultObject` abstract operation
1636
+ // https://tc39.es/ecma262/#sec-createiterresultobject
1637
+ var createIterResultObject$1 = function (value, done) {
1638
+ return { value: value, done: done };
1639
+ };
1640
+
1583
1641
  var toIndexedObject = toIndexedObject$5;
1584
1642
  var addToUnscopables = addToUnscopables$1;
1585
1643
  var Iterators = iterators;
1586
1644
  var InternalStateModule = internalState;
1587
1645
  var defineProperty$1 = objectDefineProperty.f;
1588
- var defineIterator = defineIterator$1;
1646
+ var defineIterator = iteratorDefine;
1647
+ var createIterResultObject = createIterResultObject$1;
1589
1648
  var DESCRIPTORS$1 = descriptors;
1590
1649
 
1591
1650
  var ARRAY_ITERATOR = 'Array Iterator';
@@ -1618,11 +1677,11 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
1618
1677
  var index = state.index++;
1619
1678
  if (!target || index >= target.length) {
1620
1679
  state.target = undefined;
1621
- return { value: undefined, done: true };
1680
+ return createIterResultObject(undefined, true);
1622
1681
  }
1623
- if (kind == 'keys') return { value: index, done: false };
1624
- if (kind == 'values') return { value: target[index], done: false };
1625
- return { value: [index, target[index]], done: false };
1682
+ if (kind == 'keys') return createIterResultObject(index, false);
1683
+ if (kind == 'values') return createIterResultObject(target[index], false);
1684
+ return createIterResultObject([index, target[index]], false);
1626
1685
  }, 'values');
1627
1686
 
1628
1687
  // argumentsList[@@iterator] is %ArrayProto_values%
@@ -1684,11 +1743,11 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
1684
1743
 
1685
1744
  var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1686
1745
 
1687
- var global$4 = global$r;
1746
+ var global$2 = global$c;
1688
1747
  var DOMIterables = domIterables;
1689
1748
  var DOMTokenListPrototype = domTokenListPrototype;
1690
1749
  var ArrayIteratorMethods = es_array_iterator;
1691
- var createNonEnumerableProperty = createNonEnumerableProperty$5;
1750
+ var createNonEnumerableProperty = createNonEnumerableProperty$4;
1692
1751
  var wellKnownSymbol$2 = wellKnownSymbol$8;
1693
1752
 
1694
1753
  var ITERATOR = wellKnownSymbol$2('iterator');
@@ -1718,32 +1777,31 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1718
1777
  };
1719
1778
 
1720
1779
  for (var COLLECTION_NAME in DOMIterables) {
1721
- handlePrototype(global$4[COLLECTION_NAME] && global$4[COLLECTION_NAME].prototype, COLLECTION_NAME);
1780
+ handlePrototype(global$2[COLLECTION_NAME] && global$2[COLLECTION_NAME].prototype, COLLECTION_NAME);
1722
1781
  }
1723
1782
 
1724
1783
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1725
1784
 
1726
1785
  const Flexbox = _a => {
1727
1786
  var {
1728
- alignContent,
1729
- alignItems,
1730
- alignSelf,
1731
- children,
1732
- justifyContent,
1733
- flexDirection,
1734
- flexWrap,
1735
- className
1736
- } = _a,
1737
- props = __rest(_a, ["alignContent", "alignItems", "alignSelf", "children", "justifyContent", "flexDirection", "flexWrap", "className"]);
1738
-
1787
+ alignContent,
1788
+ alignItems,
1789
+ alignSelf,
1790
+ children,
1791
+ justifyContent,
1792
+ flexDirection,
1793
+ flexWrap,
1794
+ className
1795
+ } = _a,
1796
+ props = __rest(_a, ["alignContent", "alignItems", "alignSelf", "children", "justifyContent", "flexDirection", "flexWrap", "className"]);
1739
1797
  const [classes, setClasses] = useState(['d-flex']);
1740
- const [flexClassName, setFlexClassName] = useState('d-flex'); // // update className when classes change
1741
-
1798
+ const [flexClassName, setFlexClassName] = useState('d-flex');
1799
+ // // update className when classes change
1742
1800
  useLayoutEffect(() => {
1743
1801
  const newClassName = classes.join(' ');
1744
1802
  if (newClassName !== flexClassName) setFlexClassName(newClassName);
1745
- }, [classes, flexClassName]); // // update classes when props change
1746
-
1803
+ }, [classes, flexClassName]);
1804
+ // // update classes when props change
1747
1805
  useLayoutEffect(() => {
1748
1806
  const newClasses = ['d-flex'];
1749
1807
  alignItems && newClasses.push(`align-items-${alignItems}`);
@@ -1829,11 +1887,10 @@ const ChevronDown = ({
1829
1887
 
1830
1888
  const SquareExclamation = _a => {
1831
1889
  var {
1832
- focusable = false,
1833
- title
1834
- } = _a,
1835
- props = __rest(_a, ["focusable", "title"]);
1836
-
1890
+ focusable = false,
1891
+ title
1892
+ } = _a,
1893
+ props = __rest(_a, ["focusable", "title"]);
1837
1894
  let id;
1838
1895
  if (title) id = randomId();
1839
1896
  return jsxs("svg", Object.assign({
@@ -1859,11 +1916,10 @@ const SquareExclamation = _a => {
1859
1916
 
1860
1917
  const SquareInfo = _a => {
1861
1918
  var {
1862
- focusable = false,
1863
- title
1864
- } = _a,
1865
- props = __rest(_a, ["focusable", "title"]);
1866
-
1919
+ focusable = false,
1920
+ title
1921
+ } = _a,
1922
+ props = __rest(_a, ["focusable", "title"]);
1867
1923
  let id;
1868
1924
  if (title) id = randomId();
1869
1925
  return jsx("svg", Object.assign({
@@ -1905,11 +1961,10 @@ const Times = ({
1905
1961
 
1906
1962
  const InfoCircle = _a => {
1907
1963
  var {
1908
- focusable = false,
1909
- title
1910
- } = _a,
1911
- props = __rest(_a, ["focusable", "title"]);
1912
-
1964
+ focusable = false,
1965
+ title
1966
+ } = _a,
1967
+ props = __rest(_a, ["focusable", "title"]);
1913
1968
  let id;
1914
1969
  if (title) id = randomId();
1915
1970
  return jsxs("svg", Object.assign({
@@ -1965,7 +2020,6 @@ function AlertRibbon({
1965
2020
  })));
1966
2021
  }
1967
2022
  }, [isCloseable, closeText]);
1968
-
1969
2023
  const renderIcon = () => {
1970
2024
  switch (type) {
1971
2025
  case 'danger':
@@ -1973,19 +2027,16 @@ function AlertRibbon({
1973
2027
  return jsx(SquareExclamation, {
1974
2028
  "aria-hidden": true
1975
2029
  });
1976
-
1977
2030
  case 'success':
1978
2031
  return jsx(Check, {
1979
2032
  "aria-hidden": true
1980
2033
  });
1981
-
1982
2034
  default:
1983
2035
  return jsx(SquareInfo, {
1984
2036
  "aria-hidden": true
1985
2037
  });
1986
2038
  }
1987
2039
  };
1988
-
1989
2040
  return jsxs("div", Object.assign({
1990
2041
  className: `alert-ribbon ${type}`,
1991
2042
  role: role,
@@ -2024,11 +2075,10 @@ function AlertRibbon({
2024
2075
 
2025
2076
  const IconButton = _a => {
2026
2077
  var {
2027
- children,
2028
- onClick
2029
- } = _a,
2030
- props = __rest(_a, ["children", "onClick"]);
2031
-
2078
+ children,
2079
+ onClick
2080
+ } = _a,
2081
+ props = __rest(_a, ["children", "onClick"]);
2032
2082
  return jsx("button", Object.assign({
2033
2083
  className: "icon",
2034
2084
  onClick: onClick,
@@ -2073,21 +2123,16 @@ const validateInputValue = (target, rules, setError) => {
2073
2123
  errorMessage ? setErrorInsert(setError, target.name) : setErrorRemove(setError, target.name);
2074
2124
  return errorMessage;
2075
2125
  };
2076
-
2077
2126
  const validateInputValueErrors = (rules, target) => {
2078
2127
  const {
2079
2128
  value
2080
2129
  } = target;
2081
-
2082
2130
  if ((rules === null || rules === void 0 ? void 0 : rules.custom) instanceof Function) {
2083
2131
  return rules === null || rules === void 0 ? void 0 : rules.custom();
2084
2132
  }
2085
-
2086
2133
  return validateTextInputValues(value, rules);
2087
2134
  };
2088
2135
  /* eslint-disable-next-line */
2089
-
2090
-
2091
2136
  const setErrorInsert = (setError, name) => {
2092
2137
  /* eslint-disable-next-line */
2093
2138
  setError(errors => {
@@ -2097,8 +2142,6 @@ const setErrorInsert = (setError, name) => {
2097
2142
  });
2098
2143
  };
2099
2144
  /* eslint-disable-next-line */
2100
-
2101
-
2102
2145
  const setErrorRemove = (setError, name) => {
2103
2146
  /* eslint-disable-next-line */
2104
2147
  setError(errors => {
@@ -2108,14 +2151,12 @@ const setErrorRemove = (setError, name) => {
2108
2151
  return newError;
2109
2152
  });
2110
2153
  };
2111
-
2112
2154
  const validateTextInputValues = (value, rules) => {
2113
2155
  switch (rules === null || rules === void 0 ? void 0 : rules.type) {
2114
2156
  case 'Required':
2115
2157
  {
2116
2158
  return value === '' || value === undefined || value === null ? 'error' : null;
2117
2159
  }
2118
-
2119
2160
  default:
2120
2161
  {
2121
2162
  return;
@@ -2129,24 +2170,19 @@ const useFormContext = () => {
2129
2170
  };
2130
2171
  const FormProvider = _a => {
2131
2172
  var {
2132
- children,
2133
- direction = 'vertical',
2134
- formSize = 'md',
2135
- onSubmit,
2136
- onFormSubmit
2137
- } = _a,
2138
- props = __rest(_a, ["children", "direction", "formSize", "onSubmit", "onFormSubmit"]);
2173
+ children,
2174
+ direction = 'vertical',
2175
+ formSize = 'md',
2176
+ onSubmit,
2177
+ onFormSubmit
2178
+ } = _a,
2179
+ props = __rest(_a, ["children", "direction", "formSize", "onSubmit", "onFormSubmit"]);
2139
2180
  /* eslint-disable-next-line */
2140
-
2141
-
2142
2181
  const [values, setValues] = React.useState();
2143
2182
  /* eslint-disable-next-line */
2144
-
2145
2183
  const [errors, setErrors] = React.useState();
2146
2184
  /* eslint-disable-next-line */
2147
-
2148
2185
  const [fields, setFields] = React.useState({});
2149
-
2150
2186
  const formSubmit = event => {
2151
2187
  let hasError = false;
2152
2188
  event.preventDefault();
@@ -2157,17 +2193,14 @@ const FormProvider = _a => {
2157
2193
  }, fields[key], setErrors);
2158
2194
  hasError = hasError || !!errorMessage;
2159
2195
  });
2160
-
2161
2196
  if (!hasError) {
2162
2197
  onFormSubmit && onFormSubmit(values);
2163
2198
  }
2164
2199
  };
2165
-
2166
2200
  const resetForm = () => {
2167
2201
  setValues({});
2168
2202
  setErrors({});
2169
2203
  };
2170
-
2171
2204
  return jsx(FormContext.Provider, Object.assign({
2172
2205
  value: {
2173
2206
  setValues,
@@ -2209,26 +2242,22 @@ const FormItems = ({
2209
2242
  [name]: validate === null || validate === void 0 ? void 0 : validate.rules
2210
2243
  }));
2211
2244
  /* eslint-disable-next-line */
2212
-
2213
2245
  const removeValues = values => {
2214
2246
  /* eslint-disable-next-line */
2215
2247
  const newValues = Object.assign({}, values);
2216
2248
  delete newValues[name];
2217
2249
  return newValues;
2218
2250
  };
2219
-
2220
2251
  return () => {
2221
2252
  /* eslint-disable-next-line */
2222
2253
  setFields(fields => removeValues(fields));
2223
2254
  /* eslint-disable-next-line */
2224
-
2225
2255
  setValues(values => removeValues(values));
2226
2256
  /* eslint-disable-next-line */
2227
-
2228
2257
  setErrors(errors => removeValues(errors));
2229
- }; // eslint-disable-next-line react-hooks/exhaustive-deps
2258
+ };
2259
+ // eslint-disable-next-line react-hooks/exhaustive-deps
2230
2260
  }, []);
2231
-
2232
2261
  const onChange = event => {
2233
2262
  if (!event.target) return;
2234
2263
  const {
@@ -2238,11 +2267,9 @@ const FormItems = ({
2238
2267
  checked
2239
2268
  } = event.target;
2240
2269
  let inputValue;
2241
-
2242
2270
  if (type === 'checkbox') {
2243
2271
  inputValue = checked ? value : null;
2244
2272
  /* eslint-disable-next-line */
2245
-
2246
2273
  checked ? setValues(values => Object.assign(Object.assign({}, values), {
2247
2274
  [name]: value
2248
2275
  })) : setValues(values => Object.assign(Object.assign({}, values), {
@@ -2251,12 +2278,10 @@ const FormItems = ({
2251
2278
  } else {
2252
2279
  inputValue = value;
2253
2280
  /* eslint-disable-next-line */
2254
-
2255
2281
  setValues(values => Object.assign(Object.assign({}, values), {
2256
2282
  [name]: value
2257
2283
  }));
2258
2284
  }
2259
-
2260
2285
  validateInputValue({
2261
2286
  value: inputValue,
2262
2287
  name,
@@ -2265,8 +2290,6 @@ const FormItems = ({
2265
2290
  }, validate === null || validate === void 0 ? void 0 : validate.rules, setErrors);
2266
2291
  };
2267
2292
  /* eslint-disable-next-line */
2268
-
2269
-
2270
2293
  return /*#__PURE__*/React.cloneElement(children, {
2271
2294
  validator: (errors === null || errors === void 0 ? void 0 : errors[name]) && validate,
2272
2295
  name,
@@ -2319,11 +2342,9 @@ const FormItem = ({
2319
2342
  const handleResize = debounce(function setExpandableHeightAfterResize() {
2320
2343
  isExpanded && expandableInnerRef.current && setExpandableHeight(expandableInnerRef.current['clientHeight']);
2321
2344
  }, 300);
2322
-
2323
2345
  if (expandableRef.current) {
2324
2346
  window.addEventListener('resize', handleResize);
2325
2347
  }
2326
-
2327
2348
  return () => {
2328
2349
  window.removeEventListener('resize', handleResize);
2329
2350
  };
@@ -2413,7 +2434,6 @@ const useInput = (props, onChanges, onChangeInput) => {
2413
2434
  setValue(props.value ? props.value : '');
2414
2435
  setChecked(props.checked ? props.checked : false);
2415
2436
  };
2416
-
2417
2437
  const form = ref.current.form;
2418
2438
  form.addEventListener('reset', resetListener);
2419
2439
  return () => form.removeEventListener('reset', resetListener);
@@ -2422,14 +2442,12 @@ const useInput = (props, onChanges, onChangeInput) => {
2422
2442
  return () => {};
2423
2443
  }
2424
2444
  }, [props]);
2425
-
2426
2445
  const onChange = event => {
2427
2446
  setValue(event.target.value);
2428
2447
  setChecked(event.currentTarget.checked);
2429
2448
  onChanges && onChanges(event);
2430
2449
  onChangeInput && onChangeInput(event.target.value);
2431
2450
  };
2432
-
2433
2451
  return Object.assign(Object.assign({}, props), {
2434
2452
  id,
2435
2453
  ref,
@@ -2441,15 +2459,14 @@ const useInput = (props, onChanges, onChangeInput) => {
2441
2459
 
2442
2460
  const RenderInput = (type, props, onChange, onChangeInput, label, info, validator, expandableInfo, expandableInfoButtonLabel) => {
2443
2461
  const _a = useInput(props, onChange, onChangeInput),
2444
- {
2445
- value
2446
- } = _a,
2447
- inputProps = __rest(_a, ["value"]);
2448
-
2462
+ {
2463
+ value
2464
+ } = _a,
2465
+ inputProps = __rest(_a, ["value"]);
2449
2466
  const propsWithDescription = info ? Object.assign(Object.assign({}, inputProps), {
2450
2467
  'aria-describedby': `${inputProps.id}_info`
2451
- }) : inputProps; // Render naked
2452
-
2468
+ }) : inputProps;
2469
+ // Render naked
2453
2470
  if (!label && !info && !expandableInfo) return jsx("input", Object.assign({
2454
2471
  type: type,
2455
2472
  value: value
@@ -2476,52 +2493,48 @@ const RenderInput = (type, props, onChange, onChangeInput, label, info, validato
2476
2493
  };
2477
2494
  const TextInput = _a => {
2478
2495
  var {
2479
- label,
2480
- info,
2481
- onChange,
2482
- onChangeInput,
2483
- validator,
2484
- expandableInfo,
2485
- expandableInfoButtonLabel
2486
- } = _a,
2487
- props = __rest(_a, ["label", "info", "onChange", "onChangeInput", "validator", "expandableInfo", "expandableInfoButtonLabel"]);
2488
-
2496
+ label,
2497
+ info,
2498
+ onChange,
2499
+ onChangeInput,
2500
+ validator,
2501
+ expandableInfo,
2502
+ expandableInfoButtonLabel
2503
+ } = _a,
2504
+ props = __rest(_a, ["label", "info", "onChange", "onChangeInput", "validator", "expandableInfo", "expandableInfoButtonLabel"]);
2489
2505
  return RenderInput('text', props, onChange, onChangeInput, label, info, validator, expandableInfo, expandableInfoButtonLabel);
2490
2506
  };
2491
2507
  const EmailInput = _a => {
2492
2508
  var {
2493
- label,
2494
- info,
2495
- onChange,
2496
- onChangeInput,
2497
- validator
2498
- } = _a,
2499
- props = __rest(_a, ["label", "info", "onChange", "onChangeInput", "validator"]);
2500
-
2509
+ label,
2510
+ info,
2511
+ onChange,
2512
+ onChangeInput,
2513
+ validator
2514
+ } = _a,
2515
+ props = __rest(_a, ["label", "info", "onChange", "onChangeInput", "validator"]);
2501
2516
  return RenderInput('email', props, onChange, onChangeInput, label, info, validator);
2502
2517
  };
2503
2518
  const NumberInput = _a => {
2504
2519
  var {
2505
- label,
2506
- info,
2507
- onChange,
2508
- onChangeInput,
2509
- validator,
2510
- expandableInfo,
2511
- expandableInfoButtonLabel
2512
- } = _a,
2513
- props = __rest(_a, ["label", "info", "onChange", "onChangeInput", "validator", "expandableInfo", "expandableInfoButtonLabel"]);
2514
-
2520
+ label,
2521
+ info,
2522
+ onChange,
2523
+ onChangeInput,
2524
+ validator,
2525
+ expandableInfo,
2526
+ expandableInfoButtonLabel
2527
+ } = _a,
2528
+ props = __rest(_a, ["label", "info", "onChange", "onChangeInput", "validator", "expandableInfo", "expandableInfoButtonLabel"]);
2515
2529
  return RenderInput('number', props, onChange, onChangeInput, label, info, validator, expandableInfo, expandableInfoButtonLabel);
2516
2530
  };
2517
2531
  const Checkbox = _a => {
2518
2532
  var {
2519
- label,
2520
- onChange,
2521
- validator
2522
- } = _a,
2523
- props = __rest(_a, ["label", "onChange", "validator"]);
2524
-
2533
+ label,
2534
+ onChange,
2535
+ validator
2536
+ } = _a,
2537
+ props = __rest(_a, ["label", "onChange", "validator"]);
2525
2538
  const inputProps = useInput(props, onChange);
2526
2539
  const labelClassNames = classNames('form-control', validator && validateClassName(validator === null || validator === void 0 ? void 0 : validator.indicator));
2527
2540
  const inputClassNames = classNames(validator && validateClassName(validator === null || validator === void 0 ? void 0 : validator.indicator));
@@ -2546,11 +2559,10 @@ const Checkbox = _a => {
2546
2559
  };
2547
2560
  const RadioButton = /*#__PURE__*/React.forwardRef((_a, ref) => {
2548
2561
  var {
2549
- label,
2550
- validator
2551
- } = _a,
2552
- props = __rest(_a, ["label", "validator"]);
2553
-
2562
+ label,
2563
+ validator
2564
+ } = _a,
2565
+ props = __rest(_a, ["label", "validator"]);
2554
2566
  const {
2555
2567
  id
2556
2568
  } = useInput(props);
@@ -2588,14 +2600,13 @@ test[TO_STRING_TAG$1] = 'z';
2588
2600
 
2589
2601
  var toStringTagSupport = String(test) === '[object z]';
2590
2602
 
2591
- var global$3 = global$r;
2592
2603
  var TO_STRING_TAG_SUPPORT = toStringTagSupport;
2593
- var isCallable$1 = isCallable$f;
2604
+ var isCallable$1 = isCallable$g;
2594
2605
  var classofRaw = classofRaw$1;
2595
2606
  var wellKnownSymbol = wellKnownSymbol$8;
2596
2607
 
2597
2608
  var TO_STRING_TAG = wellKnownSymbol('toStringTag');
2598
- var Object$1 = global$3.Object;
2609
+ var $Object = Object;
2599
2610
 
2600
2611
  // ES3 wrong here
2601
2612
  var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
@@ -2612,32 +2623,40 @@ var classof$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
2612
2623
  var O, tag, result;
2613
2624
  return it === undefined ? 'Undefined' : it === null ? 'Null'
2614
2625
  // @@toStringTag case
2615
- : typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
2626
+ : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
2616
2627
  // builtinTag case
2617
2628
  : CORRECT_ARGUMENTS ? classofRaw(O)
2618
2629
  // ES3 arguments fallback
2619
2630
  : (result = classofRaw(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result;
2620
2631
  };
2621
2632
 
2622
- var global$2 = global$r;
2623
2633
  var classof = classof$1;
2624
2634
 
2625
- var String$1 = global$2.String;
2635
+ var $String = String;
2626
2636
 
2627
2637
  var toString$1 = function (argument) {
2628
2638
  if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
2629
- return String$1(argument);
2639
+ return $String(argument);
2640
+ };
2641
+
2642
+ var makeBuiltIn = makeBuiltIn$3.exports;
2643
+ var defineProperty = objectDefineProperty;
2644
+
2645
+ var defineBuiltInAccessor$1 = function (target, name, descriptor) {
2646
+ if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
2647
+ if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
2648
+ return defineProperty.f(target, name, descriptor);
2630
2649
  };
2631
2650
 
2632
2651
  var $ = _export;
2633
2652
  var DESCRIPTORS = descriptors;
2634
- var global$1 = global$r;
2653
+ var global$1 = global$c;
2635
2654
  var uncurryThis = functionUncurryThis;
2636
2655
  var hasOwn = hasOwnProperty_1;
2637
- var isCallable = isCallable$f;
2656
+ var isCallable = isCallable$g;
2638
2657
  var isPrototypeOf = objectIsPrototypeOf;
2639
2658
  var toString = toString$1;
2640
- var defineProperty = objectDefineProperty.f;
2659
+ var defineBuiltInAccessor = defineBuiltInAccessor$1;
2641
2660
  var copyConstructorProperties = copyConstructorProperties$2;
2642
2661
 
2643
2662
  var NativeSymbol = global$1.Symbol;
@@ -2664,24 +2683,24 @@ if (DESCRIPTORS && isCallable(NativeSymbol) && (!('description' in SymbolPrototy
2664
2683
  SymbolPrototype.constructor = SymbolWrapper;
2665
2684
 
2666
2685
  var NATIVE_SYMBOL = String(NativeSymbol('test')) == 'Symbol(test)';
2667
- var symbolToString = uncurryThis(SymbolPrototype.toString);
2668
- var symbolValueOf = uncurryThis(SymbolPrototype.valueOf);
2686
+ var thisSymbolValue = uncurryThis(SymbolPrototype.valueOf);
2687
+ var symbolDescriptiveString = uncurryThis(SymbolPrototype.toString);
2669
2688
  var regexp = /^Symbol\((.*)\)[^)]+$/;
2670
2689
  var replace = uncurryThis(''.replace);
2671
2690
  var stringSlice = uncurryThis(''.slice);
2672
2691
 
2673
- defineProperty(SymbolPrototype, 'description', {
2692
+ defineBuiltInAccessor(SymbolPrototype, 'description', {
2674
2693
  configurable: true,
2675
2694
  get: function description() {
2676
- var symbol = symbolValueOf(this);
2677
- var string = symbolToString(symbol);
2695
+ var symbol = thisSymbolValue(this);
2678
2696
  if (hasOwn(EmptyStringDescriptionStore, symbol)) return '';
2697
+ var string = symbolDescriptiveString(symbol);
2679
2698
  var desc = NATIVE_SYMBOL ? stringSlice(string, 7, -1) : replace(string, regexp, '$1');
2680
2699
  return desc === '' ? undefined : desc;
2681
2700
  }
2682
2701
  });
2683
2702
 
2684
- $({ global: true, forced: true }, {
2703
+ $({ global: true, constructor: true, forced: true }, {
2685
2704
  Symbol: SymbolWrapper
2686
2705
  });
2687
2706
  }
@@ -2706,14 +2725,11 @@ const RadioGroup = ({
2706
2725
  if (description) console.warn('"description" prop is deprecated. Please use "labelInformation" instead.');
2707
2726
  const [selected, setSelected] = useState(valueSelected !== null && valueSelected !== void 0 ? valueSelected : defaultSelected);
2708
2727
  const [prevValueSelected, setPrevValueSelected] = useState(valueSelected);
2709
-
2710
2728
  if (valueSelected !== prevValueSelected) {
2711
2729
  setSelected(valueSelected);
2712
2730
  setPrevValueSelected(valueSelected);
2713
2731
  }
2714
-
2715
2732
  validateClassName(validator === null || validator === void 0 ? void 0 : validator.indicator);
2716
-
2717
2733
  const handleOnChange = event => {
2718
2734
  if (event.target.value !== selected) {
2719
2735
  setSelected(event.target.value);
@@ -2721,25 +2737,21 @@ const RadioGroup = ({
2721
2737
  onChange && onChange(event);
2722
2738
  }
2723
2739
  };
2724
-
2725
2740
  const radioBtnRef = useRef(null);
2726
2741
  React.useEffect(() => {
2727
2742
  var _a;
2728
-
2729
2743
  if (radioBtnRef && radioBtnRef.current) {
2730
2744
  const form = (_a = radioBtnRef === null || radioBtnRef === void 0 ? void 0 : radioBtnRef.current) === null || _a === void 0 ? void 0 : _a.form;
2731
-
2732
2745
  const resetListner = () => {
2733
2746
  setSelected(undefined);
2734
2747
  };
2735
-
2736
2748
  form === null || form === void 0 ? void 0 : form.addEventListener('reset', resetListner);
2737
2749
  return () => form === null || form === void 0 ? void 0 : form.removeEventListener('reset', resetListner);
2738
2750
  } else {
2739
2751
  // eslint-disable-next-line @typescript-eslint/no-empty-function
2740
2752
  return () => {};
2741
- } // eslint-disable-next-line react-hooks/exhaustive-deps
2742
-
2753
+ }
2754
+ // eslint-disable-next-line react-hooks/exhaustive-deps
2743
2755
  }, []);
2744
2756
  const labelFromTitle = label || title;
2745
2757
  const labelInformationFromDescription = labelInformation || description;
@@ -2774,12 +2786,11 @@ const RadioGroup = ({
2774
2786
 
2775
2787
  const ListItem = _a => {
2776
2788
  var {
2777
- listType,
2778
- tableRowData,
2779
- children
2780
- } = _a,
2781
- props = __rest(_a, ["listType", "tableRowData", "children"]);
2782
-
2789
+ listType,
2790
+ tableRowData,
2791
+ children
2792
+ } = _a,
2793
+ props = __rest(_a, ["listType", "tableRowData", "children"]);
2783
2794
  if (listType === 'table') {
2784
2795
  return jsx("dl", {
2785
2796
  children: jsxs("div", {
@@ -2799,13 +2810,12 @@ const ListItem = _a => {
2799
2810
 
2800
2811
  const List$1 = _a => {
2801
2812
  var {
2802
- listType,
2803
- tableCaption,
2804
- tableData,
2805
- children
2806
- } = _a,
2807
- props = __rest(_a, ["listType", "tableCaption", "tableData", "children"]);
2808
-
2813
+ listType,
2814
+ tableCaption,
2815
+ tableData,
2816
+ children
2817
+ } = _a,
2818
+ props = __rest(_a, ["listType", "tableCaption", "tableData", "children"]);
2809
2819
  if (listType === 'ordered') {
2810
2820
  return jsx("ol", Object.assign({}, props, {
2811
2821
  children: children === null || children === void 0 ? void 0 : children.map((child, index) => jsx(ListItem, {
@@ -2878,11 +2888,10 @@ var valueList$1 = /*#__PURE__*/Object.freeze({
2878
2888
 
2879
2889
  const Link = _a => {
2880
2890
  var {
2881
- button,
2882
- children
2883
- } = _a,
2884
- props = __rest(_a, ["button", "children"]);
2885
-
2891
+ button,
2892
+ children
2893
+ } = _a,
2894
+ props = __rest(_a, ["button", "children"]);
2886
2895
  const [anchorProps, setAnchorProps] = useState({});
2887
2896
  useEffect(() => {
2888
2897
  const className = button ? typeof button === 'string' ? `button ${button}` : 'button' : undefined;
@@ -2890,13 +2899,15 @@ const Link = _a => {
2890
2899
  role: button ? 'button' : undefined,
2891
2900
  className: className
2892
2901
  }, props);
2893
- setAnchorProps(newProps); // eslint-disable-next-line react-hooks/exhaustive-deps
2902
+ setAnchorProps(newProps);
2903
+ // eslint-disable-next-line react-hooks/exhaustive-deps
2894
2904
  }, [button]);
2895
2905
  return jsx("a", Object.assign({}, anchorProps, {
2896
2906
  children: children
2897
2907
  }));
2898
2908
  };
2899
2909
 
2910
+ //TODO: Add variants
2900
2911
  const Navbar = ({
2901
2912
  children,
2902
2913
  variant,
@@ -2911,7 +2922,8 @@ const Navbar = ({
2911
2922
  if (variant) classNames.push(variant);
2912
2923
  setProps(Object.assign(Object.assign({}, props), {
2913
2924
  className: classNames.join(' ')
2914
- })); // eslint-disable-next-line react-hooks/exhaustive-deps
2925
+ }));
2926
+ // eslint-disable-next-line react-hooks/exhaustive-deps
2915
2927
  }, [variant]);
2916
2928
  return jsxs("nav", Object.assign({
2917
2929
  role: "navigation"
@@ -2956,22 +2968,20 @@ const Navbar = ({
2956
2968
 
2957
2969
  function Badge(_a) {
2958
2970
  var {
2959
- children,
2960
- badgeType,
2961
- isCloseable,
2962
- closeText,
2963
- customColor,
2964
- customBackgroundColor
2965
- } = _a,
2966
- props = __rest(_a, ["children", "badgeType", "isCloseable", "closeText", "customColor", "customBackgroundColor"]);
2967
-
2971
+ children,
2972
+ badgeType,
2973
+ isCloseable,
2974
+ closeText,
2975
+ customColor,
2976
+ customBackgroundColor
2977
+ } = _a,
2978
+ props = __rest(_a, ["children", "badgeType", "isCloseable", "closeText", "customColor", "customBackgroundColor"]);
2968
2979
  const [isClosed, setIsClosed] = React.useState(false);
2969
2980
  const [type, setType] = React.useState('');
2970
2981
  React.useEffect(() => {
2971
2982
  if (badgeType) {
2972
2983
  setType(badgeType);
2973
2984
  }
2974
-
2975
2985
  if (!!customColor || !!customBackgroundColor) {
2976
2986
  setType('');
2977
2987
  }
@@ -2995,8 +3005,8 @@ function Badge(_a) {
2995
3005
  })) : null;
2996
3006
  }
2997
3007
 
3008
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
2998
3009
  const noop = () => {};
2999
-
3000
3010
  const useStepper = ({
3001
3011
  min,
3002
3012
  max,
@@ -3020,20 +3030,20 @@ const useStepper = ({
3020
3030
  min,
3021
3031
  max,
3022
3032
  step: _step
3023
- }); // eslint-disable-next-line react-hooks/exhaustive-deps
3024
-
3033
+ });
3034
+ // eslint-disable-next-line react-hooks/exhaustive-deps
3025
3035
  useEffect(() => {
3026
3036
  if (max !== data.max) stepper.setMax(max);
3027
- }, [stepper, max]); // eslint-disable-next-line react-hooks/exhaustive-deps
3028
-
3037
+ }, [stepper, max]);
3038
+ // eslint-disable-next-line react-hooks/exhaustive-deps
3029
3039
  useEffect(() => {
3030
3040
  if (min !== data.min) stepper.setMin(min);
3031
- }, [stepper, min]); // eslint-disable-next-line react-hooks/exhaustive-deps
3032
-
3041
+ }, [stepper, min]);
3042
+ // eslint-disable-next-line react-hooks/exhaustive-deps
3033
3043
  useEffect(() => {
3034
3044
  if (_step !== data.step) stepper.setStep(_step || 1);
3035
- }, [stepper, _step]); // eslint-disable-next-line react-hooks/exhaustive-deps
3036
-
3045
+ }, [stepper, _step]);
3046
+ // eslint-disable-next-line react-hooks/exhaustive-deps
3037
3047
  useEffect(() => {
3038
3048
  if (_value !== data.value) stepper.setValue(_value || 0, false);
3039
3049
  }, [stepper, _value]);
@@ -3045,26 +3055,25 @@ const useStepper = ({
3045
3055
  max,
3046
3056
  step: _step,
3047
3057
  onChange
3048
- }, setData)); // eslint-disable-next-line react-hooks/exhaustive-deps
3058
+ }, setData));
3059
+ // eslint-disable-next-line react-hooks/exhaustive-deps
3049
3060
  }, []);
3050
3061
  return [stepper, data];
3051
3062
  };
3052
3063
 
3064
+ // TODO: Should be named "Numeric input" instead of stepper?
3053
3065
  function Stepper(_a) {
3054
3066
  var {
3055
- label,
3056
- description,
3057
- statusMessage,
3058
- validator
3059
- } = _a,
3060
- stepperArgs = __rest(_a, ["label", "description", "statusMessage", "validator"]);
3061
-
3067
+ label,
3068
+ description,
3069
+ statusMessage,
3070
+ validator
3071
+ } = _a,
3072
+ stepperArgs = __rest(_a, ["label", "description", "statusMessage", "validator"]);
3062
3073
  const [stepper, data] = useStepper(stepperArgs);
3063
-
3064
3074
  const onChangeEvent = e => {
3065
3075
  stepper.setValue(e.target.valueAsNumber);
3066
3076
  };
3067
-
3068
3077
  const PrimitiveStepper = jsxs("div", Object.assign({
3069
3078
  className: `group group-border group-stepper ${validator && validateClassName(validator === null || validator === void 0 ? void 0 : validator.indicator)}`
3070
3079
  }, {
@@ -3087,7 +3096,6 @@ function Stepper(_a) {
3087
3096
  children: "+"
3088
3097
  }))]
3089
3098
  }));
3090
-
3091
3099
  if (!label && !description && !statusMessage && !validator) return PrimitiveStepper;
3092
3100
  return jsxs("div", Object.assign({
3093
3101
  className: "form-group"
@@ -3158,11 +3166,10 @@ const Select = /*#__PURE__*/React.forwardRef(({
3158
3166
  });
3159
3167
  const Option = _a => {
3160
3168
  var {
3161
- value,
3162
- children
3163
- } = _a,
3164
- rest = __rest(_a, ["value", "children"]);
3165
-
3169
+ value,
3170
+ children
3171
+ } = _a,
3172
+ rest = __rest(_a, ["value", "children"]);
3166
3173
  return jsx("option", Object.assign({
3167
3174
  value: value
3168
3175
  }, rest, {
@@ -3204,11 +3211,10 @@ const useDropdown = ({
3204
3211
  const [togglerProps, setTogglerProps] = useState({});
3205
3212
  const [listboxProps, setListboxProps] = useState({});
3206
3213
  const [listItems, setListItems] = useState([]);
3207
- const [multiSelectProps, setMultiSelectProps] = useState({}); // When dropdown data changes
3208
-
3214
+ const [multiSelectProps, setMultiSelectProps] = useState({});
3215
+ // When dropdown data changes
3209
3216
  useEffect(() => {
3210
3217
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
3211
-
3212
3218
  if (!dropdown) return;
3213
3219
  const {
3214
3220
  elements: {
@@ -3226,11 +3232,9 @@ const useDropdown = ({
3226
3232
  className: (_c = listbox === null || listbox === void 0 ? void 0 : listbox.classes) === null || _c === void 0 ? void 0 : _c.join(' ')
3227
3233
  });
3228
3234
  setListboxProps(newListboxProps);
3229
-
3230
3235
  if (!dropdown.isMultiSelect) {
3231
3236
  const newListItems = dropdown.options.map(o => {
3232
3237
  var _a;
3233
-
3234
3238
  return Object.assign(Object.assign({}, o.attributes), {
3235
3239
  className: (_a = o.classes) === null || _a === void 0 ? void 0 : _a.join(' '),
3236
3240
  children: o[dropdown.display],
@@ -3268,10 +3272,10 @@ const useDropdown = ({
3268
3272
  checkboxes
3269
3273
  };
3270
3274
  setMultiSelectProps(newMultiselect);
3271
- } // eslint-disable-next-line react-hooks/exhaustive-deps
3272
-
3273
- }, [dropdown]); // When dropdown properties change
3274
-
3275
+ }
3276
+ // eslint-disable-next-line react-hooks/exhaustive-deps
3277
+ }, [dropdown]);
3278
+ // When dropdown properties change
3275
3279
  useEffect(() => {
3276
3280
  if (!dropdown) return;
3277
3281
  handler === null || handler === void 0 ? void 0 : handler.update({
@@ -3287,19 +3291,22 @@ const useDropdown = ({
3287
3291
  useValue,
3288
3292
  display,
3289
3293
  validator
3290
- }); // eslint-disable-next-line react-hooks/exhaustive-deps
3294
+ });
3295
+ // eslint-disable-next-line react-hooks/exhaustive-deps
3291
3296
  }, [id, texts, options, loop, multiSelect, searchable, searchFilter, compareWith, useValue, display]);
3292
3297
  useEffect(() => {
3293
3298
  if (!dropdown) return;
3294
3299
  handler === null || handler === void 0 ? void 0 : handler.selectByValue(value);
3295
- console.log('new value'); // eslint-disable-next-line react-hooks/exhaustive-deps
3296
- }, [value]); // When validator changes
3297
-
3300
+ console.log('new value');
3301
+ // eslint-disable-next-line react-hooks/exhaustive-deps
3302
+ }, [value]);
3303
+ // When validator changes
3298
3304
  useEffect(() => {
3299
3305
  if (!dropdown) return;
3300
- if (validator) handler === null || handler === void 0 ? void 0 : handler.validate(validator); // eslint-disable-next-line react-hooks/exhaustive-deps
3301
- }, [validator]); // Create dropdown handler
3302
-
3306
+ if (validator) handler === null || handler === void 0 ? void 0 : handler.validate(validator);
3307
+ // eslint-disable-next-line react-hooks/exhaustive-deps
3308
+ }, [validator]);
3309
+ // Create dropdown handler
3303
3310
  useEffect(() => {
3304
3311
  if (!handler && togglerRef.current && listboxRef.current) {
3305
3312
  setHandler(createDropdown({
@@ -3317,8 +3324,8 @@ const useDropdown = ({
3317
3324
  validator
3318
3325
  }, togglerRef.current, listboxRef.current, listboxRef.current, dd => setDropdown(dd), value => onChange === null || onChange === void 0 ? void 0 : onChange(value)));
3319
3326
  }
3320
-
3321
- return () => handler === null || handler === void 0 ? void 0 : handler.destroy(); // eslint-disable-next-line react-hooks/exhaustive-deps
3327
+ return () => handler === null || handler === void 0 ? void 0 : handler.destroy();
3328
+ // eslint-disable-next-line react-hooks/exhaustive-deps
3322
3329
  }, [togglerRef, listboxRef]);
3323
3330
  return {
3324
3331
  dropdown: handler,
@@ -3347,7 +3354,6 @@ const Dropdown = ({
3347
3354
  value
3348
3355
  }) => {
3349
3356
  var _a;
3350
-
3351
3357
  const togglerRef = useRef(null);
3352
3358
  const listboxRef = useRef(null);
3353
3359
  const {
@@ -3373,10 +3379,8 @@ const Dropdown = ({
3373
3379
  onChange,
3374
3380
  validator
3375
3381
  });
3376
-
3377
3382
  const getListBoxProps = props => {
3378
3383
  var _a, _b, _c;
3379
-
3380
3384
  if (Object.keys(props).length === 0) return {
3381
3385
  role: 'listbox',
3382
3386
  tabIndex: -1,
@@ -3384,7 +3388,6 @@ const Dropdown = ({
3384
3388
  };
3385
3389
  return props;
3386
3390
  };
3387
-
3388
3391
  return jsxs("div", Object.assign({
3389
3392
  className: "form-group"
3390
3393
  }, {
@@ -3481,17 +3484,14 @@ const Datepicker = (options = {}) => {
3481
3484
  } = useDatepicker(datepickerRef, datepickerDialogRef, dateInputRef, datepickerTriggerRef, options);
3482
3485
  useEffect(() => {
3483
3486
  var _a;
3484
-
3485
3487
  const selDateSub = (_a = datepicker.selectedDate$) === null || _a === void 0 ? void 0 : _a.subscribe(newDate => options.onChange && options.onChange(newDate));
3486
3488
  return () => selDateSub === null || selDateSub === void 0 ? void 0 : selDateSub.unsubscribe();
3487
3489
  }, [datepicker, options]);
3488
-
3489
3490
  const classNames = day => Object.entries({
3490
3491
  disabled: !day.currentMonth,
3491
- 'sg-date-today': day.today // 'sg-date-holiday': day.holiday,
3492
-
3492
+ 'sg-date-today': day.today
3493
+ // 'sg-date-holiday': day.holiday,
3493
3494
  }).map(([className, add]) => add ? className : '').join(' ');
3494
-
3495
3495
  return jsxs(Fragment, {
3496
3496
  children: [jsxs("div", Object.assign({
3497
3497
  className: "form-group"
@@ -3550,11 +3550,13 @@ const Datepicker = (options = {}) => {
3550
3550
  }))
3551
3551
  })), jsx(Dropdown, {
3552
3552
  options: months({}),
3553
+ display: "key",
3553
3554
  texts: {
3554
3555
  placeholder: data.monthName
3555
3556
  }
3556
3557
  }), jsx(Dropdown, {
3557
3558
  options: years({}),
3559
+ display: "key",
3558
3560
  texts: {
3559
3561
  placeholder: data.year + ''
3560
3562
  }