@bolttech/atoms-date-input 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.js ADDED
@@ -0,0 +1,2949 @@
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import r, { useRef, useDebugValue, createElement as createElement$1, useContext, forwardRef, useReducer, useEffect } from 'react';
3
+
4
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
5
+
6
+ var fails$b = function (exec) {
7
+ try {
8
+ return !!exec();
9
+ } catch (error) {
10
+ return true;
11
+ }
12
+ };
13
+
14
+ var fails$a = fails$b;
15
+
16
+ var functionBindNative = !fails$a(function () {
17
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
18
+ var test = (function () { /* empty */ }).bind();
19
+ // eslint-disable-next-line no-prototype-builtins -- safe
20
+ return typeof test != 'function' || test.hasOwnProperty('prototype');
21
+ });
22
+
23
+ var NATIVE_BIND$1 = functionBindNative;
24
+
25
+ var FunctionPrototype$1 = Function.prototype;
26
+ var call$6 = FunctionPrototype$1.call;
27
+ var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$6, call$6);
28
+
29
+ var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
30
+ return function () {
31
+ return call$6.apply(fn, arguments);
32
+ };
33
+ };
34
+
35
+ var uncurryThis$a = functionUncurryThis;
36
+
37
+ var toString$1 = uncurryThis$a({}.toString);
38
+ var stringSlice$1 = uncurryThis$a(''.slice);
39
+
40
+ var classofRaw = function (it) {
41
+ return stringSlice$1(toString$1(it), 8, -1);
42
+ };
43
+
44
+ var uncurryThis$9 = functionUncurryThis;
45
+ var fails$9 = fails$b;
46
+ var classof = classofRaw;
47
+
48
+ var $Object$3 = Object;
49
+ var split = uncurryThis$9(''.split);
50
+
51
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
52
+ var indexedObject = fails$9(function () {
53
+ // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
54
+ // eslint-disable-next-line no-prototype-builtins -- safe
55
+ return !$Object$3('z').propertyIsEnumerable(0);
56
+ }) ? function (it) {
57
+ return classof(it) === 'String' ? split(it, '') : $Object$3(it);
58
+ } : $Object$3;
59
+
60
+ // we can't use just `it == null` since of `document.all` special case
61
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
62
+ var isNullOrUndefined$2 = function (it) {
63
+ return it === null || it === undefined;
64
+ };
65
+
66
+ var isNullOrUndefined$1 = isNullOrUndefined$2;
67
+
68
+ var $TypeError$6 = TypeError;
69
+
70
+ // `RequireObjectCoercible` abstract operation
71
+ // https://tc39.es/ecma262/#sec-requireobjectcoercible
72
+ var requireObjectCoercible$3 = function (it) {
73
+ if (isNullOrUndefined$1(it)) throw new $TypeError$6("Can't call method on " + it);
74
+ return it;
75
+ };
76
+
77
+ // toObject with fallback for non-array-like ES3 strings
78
+ var IndexedObject$1 = indexedObject;
79
+ var requireObjectCoercible$2 = requireObjectCoercible$3;
80
+
81
+ var toIndexedObject$5 = function (it) {
82
+ return IndexedObject$1(requireObjectCoercible$2(it));
83
+ };
84
+
85
+ var check = function (it) {
86
+ return it && it.Math === Math && it;
87
+ };
88
+
89
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
90
+ var global$b =
91
+ // eslint-disable-next-line es/no-global-this -- safe
92
+ check(typeof globalThis == 'object' && globalThis) ||
93
+ check(typeof window == 'object' && window) ||
94
+ // eslint-disable-next-line no-restricted-globals -- safe
95
+ check(typeof self == 'object' && self) ||
96
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
97
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
98
+ // eslint-disable-next-line no-new-func -- fallback
99
+ (function () { return this; })() || Function('return this')();
100
+
101
+ var sharedStore = {exports: {}};
102
+
103
+ var global$a = global$b;
104
+
105
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
106
+ var defineProperty$5 = Object.defineProperty;
107
+
108
+ var defineGlobalProperty$3 = function (key, value) {
109
+ try {
110
+ defineProperty$5(global$a, key, { value: value, configurable: true, writable: true });
111
+ } catch (error) {
112
+ global$a[key] = value;
113
+ } return value;
114
+ };
115
+
116
+ var globalThis$1 = global$b;
117
+ var defineGlobalProperty$2 = defineGlobalProperty$3;
118
+
119
+ var SHARED = '__core-js_shared__';
120
+ var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
121
+
122
+ (store$3.versions || (store$3.versions = [])).push({
123
+ version: '3.37.1',
124
+ mode: 'global',
125
+ copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
126
+ license: 'https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE',
127
+ source: 'https://github.com/zloirock/core-js'
128
+ });
129
+
130
+ var store$2 = sharedStore.exports;
131
+
132
+ var shared$3 = function (key, value) {
133
+ return store$2[key] || (store$2[key] = value || {});
134
+ };
135
+
136
+ var requireObjectCoercible$1 = requireObjectCoercible$3;
137
+
138
+ var $Object$2 = Object;
139
+
140
+ // `ToObject` abstract operation
141
+ // https://tc39.es/ecma262/#sec-toobject
142
+ var toObject$3 = function (argument) {
143
+ return $Object$2(requireObjectCoercible$1(argument));
144
+ };
145
+
146
+ var uncurryThis$8 = functionUncurryThis;
147
+ var toObject$2 = toObject$3;
148
+
149
+ var hasOwnProperty = uncurryThis$8({}.hasOwnProperty);
150
+
151
+ // `HasOwnProperty` abstract operation
152
+ // https://tc39.es/ecma262/#sec-hasownproperty
153
+ // eslint-disable-next-line es/no-object-hasown -- safe
154
+ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
155
+ return hasOwnProperty(toObject$2(it), key);
156
+ };
157
+
158
+ var uncurryThis$7 = functionUncurryThis;
159
+
160
+ var id = 0;
161
+ var postfix = Math.random();
162
+ var toString = uncurryThis$7(1.0.toString);
163
+
164
+ var uid$2 = function (key) {
165
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
166
+ };
167
+
168
+ var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
169
+
170
+ var global$9 = global$b;
171
+ var userAgent = engineUserAgent;
172
+
173
+ var process$1 = global$9.process;
174
+ var Deno = global$9.Deno;
175
+ var versions = process$1 && process$1.versions || Deno && Deno.version;
176
+ var v8 = versions && versions.v8;
177
+ var match$1, version;
178
+
179
+ if (v8) {
180
+ match$1 = v8.split('.');
181
+ // in old Chrome, versions of V8 isn't V8 = Chrome / 10
182
+ // but their correct versions are not interesting for us
183
+ version = match$1[0] > 0 && match$1[0] < 4 ? 1 : +(match$1[0] + match$1[1]);
184
+ }
185
+
186
+ // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
187
+ // so check `userAgent` even if `.v8` exists, but 0
188
+ if (!version && userAgent) {
189
+ match$1 = userAgent.match(/Edge\/(\d+)/);
190
+ if (!match$1 || match$1[1] >= 74) {
191
+ match$1 = userAgent.match(/Chrome\/(\d+)/);
192
+ if (match$1) version = +match$1[1];
193
+ }
194
+ }
195
+
196
+ var engineV8Version = version;
197
+
198
+ /* eslint-disable es/no-symbol -- required for testing */
199
+ var V8_VERSION = engineV8Version;
200
+ var fails$8 = fails$b;
201
+ var global$8 = global$b;
202
+
203
+ var $String$4 = global$8.String;
204
+
205
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
206
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$8(function () {
207
+ var symbol = Symbol('symbol detection');
208
+ // Chrome 38 Symbol has incorrect toString conversion
209
+ // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
210
+ // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
211
+ // of course, fail.
212
+ return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) ||
213
+ // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
214
+ !Symbol.sham && V8_VERSION && V8_VERSION < 41;
215
+ });
216
+
217
+ /* eslint-disable es/no-symbol -- required for testing */
218
+ var NATIVE_SYMBOL$1 = symbolConstructorDetection;
219
+
220
+ var useSymbolAsUid = NATIVE_SYMBOL$1
221
+ && !Symbol.sham
222
+ && typeof Symbol.iterator == 'symbol';
223
+
224
+ var global$7 = global$b;
225
+ var shared$2 = shared$3;
226
+ var hasOwn$8 = hasOwnProperty_1;
227
+ var uid$1 = uid$2;
228
+ var NATIVE_SYMBOL = symbolConstructorDetection;
229
+ var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
230
+
231
+ var Symbol$1 = global$7.Symbol;
232
+ var WellKnownSymbolsStore = shared$2('wks');
233
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
234
+
235
+ var wellKnownSymbol$6 = function (name) {
236
+ if (!hasOwn$8(WellKnownSymbolsStore, name)) {
237
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)
238
+ ? Symbol$1[name]
239
+ : createWellKnownSymbol('Symbol.' + name);
240
+ } return WellKnownSymbolsStore[name];
241
+ };
242
+
243
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
244
+ var documentAll = typeof document == 'object' && document.all;
245
+
246
+ // `IsCallable` abstract operation
247
+ // https://tc39.es/ecma262/#sec-iscallable
248
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
249
+ var isCallable$d = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
250
+ return typeof argument == 'function' || argument === documentAll;
251
+ } : function (argument) {
252
+ return typeof argument == 'function';
253
+ };
254
+
255
+ var isCallable$c = isCallable$d;
256
+
257
+ var isObject$8 = function (it) {
258
+ return typeof it == 'object' ? it !== null : isCallable$c(it);
259
+ };
260
+
261
+ var isObject$7 = isObject$8;
262
+
263
+ var $String$3 = String;
264
+ var $TypeError$5 = TypeError;
265
+
266
+ // `Assert: Type(argument) is Object`
267
+ var anObject$4 = function (argument) {
268
+ if (isObject$7(argument)) return argument;
269
+ throw new $TypeError$5($String$3(argument) + ' is not an object');
270
+ };
271
+
272
+ var objectDefineProperties = {};
273
+
274
+ var fails$7 = fails$b;
275
+
276
+ // Detect IE8's incomplete defineProperty implementation
277
+ var descriptors = !fails$7(function () {
278
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
279
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
280
+ });
281
+
282
+ var DESCRIPTORS$9 = descriptors;
283
+ var fails$6 = fails$b;
284
+
285
+ // V8 ~ Chrome 36-
286
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
287
+ var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$6(function () {
288
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
289
+ return Object.defineProperty(function () { /* empty */ }, 'prototype', {
290
+ value: 42,
291
+ writable: false
292
+ }).prototype !== 42;
293
+ });
294
+
295
+ var objectDefineProperty = {};
296
+
297
+ var global$6 = global$b;
298
+ var isObject$6 = isObject$8;
299
+
300
+ var document$1 = global$6.document;
301
+ // typeof document.createElement is 'object' in old IE
302
+ var EXISTS$1 = isObject$6(document$1) && isObject$6(document$1.createElement);
303
+
304
+ var documentCreateElement$2 = function (it) {
305
+ return EXISTS$1 ? document$1.createElement(it) : {};
306
+ };
307
+
308
+ var DESCRIPTORS$8 = descriptors;
309
+ var fails$5 = fails$b;
310
+ var createElement = documentCreateElement$2;
311
+
312
+ // Thanks to IE8 for its funny defineProperty
313
+ var ie8DomDefine = !DESCRIPTORS$8 && !fails$5(function () {
314
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
315
+ return Object.defineProperty(createElement('div'), 'a', {
316
+ get: function () { return 7; }
317
+ }).a !== 7;
318
+ });
319
+
320
+ var NATIVE_BIND = functionBindNative;
321
+
322
+ var call$5 = Function.prototype.call;
323
+
324
+ var functionCall = NATIVE_BIND ? call$5.bind(call$5) : function () {
325
+ return call$5.apply(call$5, arguments);
326
+ };
327
+
328
+ var global$5 = global$b;
329
+ var isCallable$b = isCallable$d;
330
+
331
+ var aFunction = function (argument) {
332
+ return isCallable$b(argument) ? argument : undefined;
333
+ };
334
+
335
+ var getBuiltIn$3 = function (namespace, method) {
336
+ return arguments.length < 2 ? aFunction(global$5[namespace]) : global$5[namespace] && global$5[namespace][method];
337
+ };
338
+
339
+ var uncurryThis$6 = functionUncurryThis;
340
+
341
+ var objectIsPrototypeOf = uncurryThis$6({}.isPrototypeOf);
342
+
343
+ var getBuiltIn$2 = getBuiltIn$3;
344
+ var isCallable$a = isCallable$d;
345
+ var isPrototypeOf = objectIsPrototypeOf;
346
+ var USE_SYMBOL_AS_UID = useSymbolAsUid;
347
+
348
+ var $Object$1 = Object;
349
+
350
+ var isSymbol$2 = USE_SYMBOL_AS_UID ? function (it) {
351
+ return typeof it == 'symbol';
352
+ } : function (it) {
353
+ var $Symbol = getBuiltIn$2('Symbol');
354
+ return isCallable$a($Symbol) && isPrototypeOf($Symbol.prototype, $Object$1(it));
355
+ };
356
+
357
+ var $String$2 = String;
358
+
359
+ var tryToString$1 = function (argument) {
360
+ try {
361
+ return $String$2(argument);
362
+ } catch (error) {
363
+ return 'Object';
364
+ }
365
+ };
366
+
367
+ var isCallable$9 = isCallable$d;
368
+ var tryToString = tryToString$1;
369
+
370
+ var $TypeError$4 = TypeError;
371
+
372
+ // `Assert: IsCallable(argument) is true`
373
+ var aCallable$2 = function (argument) {
374
+ if (isCallable$9(argument)) return argument;
375
+ throw new $TypeError$4(tryToString(argument) + ' is not a function');
376
+ };
377
+
378
+ var aCallable$1 = aCallable$2;
379
+ var isNullOrUndefined = isNullOrUndefined$2;
380
+
381
+ // `GetMethod` abstract operation
382
+ // https://tc39.es/ecma262/#sec-getmethod
383
+ var getMethod$1 = function (V, P) {
384
+ var func = V[P];
385
+ return isNullOrUndefined(func) ? undefined : aCallable$1(func);
386
+ };
387
+
388
+ var call$4 = functionCall;
389
+ var isCallable$8 = isCallable$d;
390
+ var isObject$5 = isObject$8;
391
+
392
+ var $TypeError$3 = TypeError;
393
+
394
+ // `OrdinaryToPrimitive` abstract operation
395
+ // https://tc39.es/ecma262/#sec-ordinarytoprimitive
396
+ var ordinaryToPrimitive$1 = function (input, pref) {
397
+ var fn, val;
398
+ if (pref === 'string' && isCallable$8(fn = input.toString) && !isObject$5(val = call$4(fn, input))) return val;
399
+ if (isCallable$8(fn = input.valueOf) && !isObject$5(val = call$4(fn, input))) return val;
400
+ if (pref !== 'string' && isCallable$8(fn = input.toString) && !isObject$5(val = call$4(fn, input))) return val;
401
+ throw new $TypeError$3("Can't convert object to primitive value");
402
+ };
403
+
404
+ var call$3 = functionCall;
405
+ var isObject$4 = isObject$8;
406
+ var isSymbol$1 = isSymbol$2;
407
+ var getMethod = getMethod$1;
408
+ var ordinaryToPrimitive = ordinaryToPrimitive$1;
409
+ var wellKnownSymbol$5 = wellKnownSymbol$6;
410
+
411
+ var $TypeError$2 = TypeError;
412
+ var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive');
413
+
414
+ // `ToPrimitive` abstract operation
415
+ // https://tc39.es/ecma262/#sec-toprimitive
416
+ var toPrimitive$1 = function (input, pref) {
417
+ if (!isObject$4(input) || isSymbol$1(input)) return input;
418
+ var exoticToPrim = getMethod(input, TO_PRIMITIVE);
419
+ var result;
420
+ if (exoticToPrim) {
421
+ if (pref === undefined) pref = 'default';
422
+ result = call$3(exoticToPrim, input, pref);
423
+ if (!isObject$4(result) || isSymbol$1(result)) return result;
424
+ throw new $TypeError$2("Can't convert object to primitive value");
425
+ }
426
+ if (pref === undefined) pref = 'number';
427
+ return ordinaryToPrimitive(input, pref);
428
+ };
429
+
430
+ var toPrimitive = toPrimitive$1;
431
+ var isSymbol = isSymbol$2;
432
+
433
+ // `ToPropertyKey` abstract operation
434
+ // https://tc39.es/ecma262/#sec-topropertykey
435
+ var toPropertyKey$2 = function (argument) {
436
+ var key = toPrimitive(argument, 'string');
437
+ return isSymbol(key) ? key : key + '';
438
+ };
439
+
440
+ var DESCRIPTORS$7 = descriptors;
441
+ var IE8_DOM_DEFINE$1 = ie8DomDefine;
442
+ var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
443
+ var anObject$3 = anObject$4;
444
+ var toPropertyKey$1 = toPropertyKey$2;
445
+
446
+ var $TypeError$1 = TypeError;
447
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
448
+ var $defineProperty = Object.defineProperty;
449
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
450
+ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
451
+ var ENUMERABLE = 'enumerable';
452
+ var CONFIGURABLE$1 = 'configurable';
453
+ var WRITABLE = 'writable';
454
+
455
+ // `Object.defineProperty` method
456
+ // https://tc39.es/ecma262/#sec-object.defineproperty
457
+ objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
458
+ anObject$3(O);
459
+ P = toPropertyKey$1(P);
460
+ anObject$3(Attributes);
461
+ if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
462
+ var current = $getOwnPropertyDescriptor$1(O, P);
463
+ if (current && current[WRITABLE]) {
464
+ O[P] = Attributes.value;
465
+ Attributes = {
466
+ configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
467
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
468
+ writable: false
469
+ };
470
+ }
471
+ } return $defineProperty(O, P, Attributes);
472
+ } : $defineProperty : function defineProperty(O, P, Attributes) {
473
+ anObject$3(O);
474
+ P = toPropertyKey$1(P);
475
+ anObject$3(Attributes);
476
+ if (IE8_DOM_DEFINE$1) try {
477
+ return $defineProperty(O, P, Attributes);
478
+ } catch (error) { /* empty */ }
479
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$1('Accessors not supported');
480
+ if ('value' in Attributes) O[P] = Attributes.value;
481
+ return O;
482
+ };
483
+
484
+ var ceil = Math.ceil;
485
+ var floor = Math.floor;
486
+
487
+ // `Math.trunc` method
488
+ // https://tc39.es/ecma262/#sec-math.trunc
489
+ // eslint-disable-next-line es/no-math-trunc -- safe
490
+ var mathTrunc = Math.trunc || function trunc(x) {
491
+ var n = +x;
492
+ return (n > 0 ? floor : ceil)(n);
493
+ };
494
+
495
+ var trunc = mathTrunc;
496
+
497
+ // `ToIntegerOrInfinity` abstract operation
498
+ // https://tc39.es/ecma262/#sec-tointegerorinfinity
499
+ var toIntegerOrInfinity$2 = function (argument) {
500
+ var number = +argument;
501
+ // eslint-disable-next-line no-self-compare -- NaN check
502
+ return number !== number || number === 0 ? 0 : trunc(number);
503
+ };
504
+
505
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
506
+
507
+ var max = Math.max;
508
+ var min$1 = Math.min;
509
+
510
+ // Helper for a popular repeating case of the spec:
511
+ // Let integer be ? ToInteger(index).
512
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
513
+ var toAbsoluteIndex$1 = function (index, length) {
514
+ var integer = toIntegerOrInfinity$1(index);
515
+ return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
516
+ };
517
+
518
+ var toIntegerOrInfinity = toIntegerOrInfinity$2;
519
+
520
+ var min = Math.min;
521
+
522
+ // `ToLength` abstract operation
523
+ // https://tc39.es/ecma262/#sec-tolength
524
+ var toLength$1 = function (argument) {
525
+ var len = toIntegerOrInfinity(argument);
526
+ return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
527
+ };
528
+
529
+ var toLength = toLength$1;
530
+
531
+ // `LengthOfArrayLike` abstract operation
532
+ // https://tc39.es/ecma262/#sec-lengthofarraylike
533
+ var lengthOfArrayLike$1 = function (obj) {
534
+ return toLength(obj.length);
535
+ };
536
+
537
+ var toIndexedObject$4 = toIndexedObject$5;
538
+ var toAbsoluteIndex = toAbsoluteIndex$1;
539
+ var lengthOfArrayLike = lengthOfArrayLike$1;
540
+
541
+ // `Array.prototype.{ indexOf, includes }` methods implementation
542
+ var createMethod = function (IS_INCLUDES) {
543
+ return function ($this, el, fromIndex) {
544
+ var O = toIndexedObject$4($this);
545
+ var length = lengthOfArrayLike(O);
546
+ if (length === 0) return !IS_INCLUDES && -1;
547
+ var index = toAbsoluteIndex(fromIndex, length);
548
+ var value;
549
+ // Array#includes uses SameValueZero equality algorithm
550
+ // eslint-disable-next-line no-self-compare -- NaN check
551
+ if (IS_INCLUDES && el !== el) while (length > index) {
552
+ value = O[index++];
553
+ // eslint-disable-next-line no-self-compare -- NaN check
554
+ if (value !== value) return true;
555
+ // Array#indexOf ignores holes, Array#includes - not
556
+ } else for (;length > index; index++) {
557
+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
558
+ } return !IS_INCLUDES && -1;
559
+ };
560
+ };
561
+
562
+ var arrayIncludes = {
563
+ // `Array.prototype.includes` method
564
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
565
+ includes: createMethod(true),
566
+ // `Array.prototype.indexOf` method
567
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
568
+ indexOf: createMethod(false)
569
+ };
570
+
571
+ var hiddenKeys$4 = {};
572
+
573
+ var uncurryThis$5 = functionUncurryThis;
574
+ var hasOwn$7 = hasOwnProperty_1;
575
+ var toIndexedObject$3 = toIndexedObject$5;
576
+ var indexOf = arrayIncludes.indexOf;
577
+ var hiddenKeys$3 = hiddenKeys$4;
578
+
579
+ var push = uncurryThis$5([].push);
580
+
581
+ var objectKeysInternal = function (object, names) {
582
+ var O = toIndexedObject$3(object);
583
+ var i = 0;
584
+ var result = [];
585
+ var key;
586
+ for (key in O) !hasOwn$7(hiddenKeys$3, key) && hasOwn$7(O, key) && push(result, key);
587
+ // Don't enum bug & hidden keys
588
+ while (names.length > i) if (hasOwn$7(O, key = names[i++])) {
589
+ ~indexOf(result, key) || push(result, key);
590
+ }
591
+ return result;
592
+ };
593
+
594
+ // IE8- don't enum bug keys
595
+ var enumBugKeys$3 = [
596
+ 'constructor',
597
+ 'hasOwnProperty',
598
+ 'isPrototypeOf',
599
+ 'propertyIsEnumerable',
600
+ 'toLocaleString',
601
+ 'toString',
602
+ 'valueOf'
603
+ ];
604
+
605
+ var internalObjectKeys$1 = objectKeysInternal;
606
+ var enumBugKeys$2 = enumBugKeys$3;
607
+
608
+ // `Object.keys` method
609
+ // https://tc39.es/ecma262/#sec-object.keys
610
+ // eslint-disable-next-line es/no-object-keys -- safe
611
+ var objectKeys$2 = Object.keys || function keys(O) {
612
+ return internalObjectKeys$1(O, enumBugKeys$2);
613
+ };
614
+
615
+ var DESCRIPTORS$6 = descriptors;
616
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
617
+ var definePropertyModule$3 = objectDefineProperty;
618
+ var anObject$2 = anObject$4;
619
+ var toIndexedObject$2 = toIndexedObject$5;
620
+ var objectKeys$1 = objectKeys$2;
621
+
622
+ // `Object.defineProperties` method
623
+ // https://tc39.es/ecma262/#sec-object.defineproperties
624
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
625
+ objectDefineProperties.f = DESCRIPTORS$6 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
626
+ anObject$2(O);
627
+ var props = toIndexedObject$2(Properties);
628
+ var keys = objectKeys$1(Properties);
629
+ var length = keys.length;
630
+ var index = 0;
631
+ var key;
632
+ while (length > index) definePropertyModule$3.f(O, key = keys[index++], props[key]);
633
+ return O;
634
+ };
635
+
636
+ var getBuiltIn$1 = getBuiltIn$3;
637
+
638
+ var html$1 = getBuiltIn$1('document', 'documentElement');
639
+
640
+ var shared$1 = shared$3;
641
+ var uid = uid$2;
642
+
643
+ var keys = shared$1('keys');
644
+
645
+ var sharedKey$3 = function (key) {
646
+ return keys[key] || (keys[key] = uid(key));
647
+ };
648
+
649
+ /* global ActiveXObject -- old IE, WSH */
650
+ var anObject$1 = anObject$4;
651
+ var definePropertiesModule = objectDefineProperties;
652
+ var enumBugKeys$1 = enumBugKeys$3;
653
+ var hiddenKeys$2 = hiddenKeys$4;
654
+ var html = html$1;
655
+ var documentCreateElement$1 = documentCreateElement$2;
656
+ var sharedKey$2 = sharedKey$3;
657
+
658
+ var GT = '>';
659
+ var LT = '<';
660
+ var PROTOTYPE = 'prototype';
661
+ var SCRIPT = 'script';
662
+ var IE_PROTO$1 = sharedKey$2('IE_PROTO');
663
+
664
+ var EmptyConstructor = function () { /* empty */ };
665
+
666
+ var scriptTag = function (content) {
667
+ return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
668
+ };
669
+
670
+ // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
671
+ var NullProtoObjectViaActiveX = function (activeXDocument) {
672
+ activeXDocument.write(scriptTag(''));
673
+ activeXDocument.close();
674
+ var temp = activeXDocument.parentWindow.Object;
675
+ activeXDocument = null; // avoid memory leak
676
+ return temp;
677
+ };
678
+
679
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
680
+ var NullProtoObjectViaIFrame = function () {
681
+ // Thrash, waste and sodomy: IE GC bug
682
+ var iframe = documentCreateElement$1('iframe');
683
+ var JS = 'java' + SCRIPT + ':';
684
+ var iframeDocument;
685
+ iframe.style.display = 'none';
686
+ html.appendChild(iframe);
687
+ // https://github.com/zloirock/core-js/issues/475
688
+ iframe.src = String(JS);
689
+ iframeDocument = iframe.contentWindow.document;
690
+ iframeDocument.open();
691
+ iframeDocument.write(scriptTag('document.F=Object'));
692
+ iframeDocument.close();
693
+ return iframeDocument.F;
694
+ };
695
+
696
+ // Check for document.domain and active x support
697
+ // No need to use active x approach when document.domain is not set
698
+ // see https://github.com/es-shims/es5-shim/issues/150
699
+ // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
700
+ // avoid IE GC bug
701
+ var activeXDocument;
702
+ var NullProtoObject = function () {
703
+ try {
704
+ activeXDocument = new ActiveXObject('htmlfile');
705
+ } catch (error) { /* ignore */ }
706
+ NullProtoObject = typeof document != 'undefined'
707
+ ? document.domain && activeXDocument
708
+ ? NullProtoObjectViaActiveX(activeXDocument) // old IE
709
+ : NullProtoObjectViaIFrame()
710
+ : NullProtoObjectViaActiveX(activeXDocument); // WSH
711
+ var length = enumBugKeys$1.length;
712
+ while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys$1[length]];
713
+ return NullProtoObject();
714
+ };
715
+
716
+ hiddenKeys$2[IE_PROTO$1] = true;
717
+
718
+ // `Object.create` method
719
+ // https://tc39.es/ecma262/#sec-object.create
720
+ // eslint-disable-next-line es/no-object-create -- safe
721
+ var objectCreate = Object.create || function create(O, Properties) {
722
+ var result;
723
+ if (O !== null) {
724
+ EmptyConstructor[PROTOTYPE] = anObject$1(O);
725
+ result = new EmptyConstructor();
726
+ EmptyConstructor[PROTOTYPE] = null;
727
+ // add "__proto__" for Object.getPrototypeOf polyfill
728
+ result[IE_PROTO$1] = O;
729
+ } else result = NullProtoObject();
730
+ return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
731
+ };
732
+
733
+ var wellKnownSymbol$4 = wellKnownSymbol$6;
734
+ var create$1 = objectCreate;
735
+ var defineProperty$4 = objectDefineProperty.f;
736
+
737
+ var UNSCOPABLES = wellKnownSymbol$4('unscopables');
738
+ var ArrayPrototype = Array.prototype;
739
+
740
+ // Array.prototype[@@unscopables]
741
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
742
+ if (ArrayPrototype[UNSCOPABLES] === undefined) {
743
+ defineProperty$4(ArrayPrototype, UNSCOPABLES, {
744
+ configurable: true,
745
+ value: create$1(null)
746
+ });
747
+ }
748
+
749
+ // add a key to Array.prototype[@@unscopables]
750
+ var addToUnscopables$1 = function (key) {
751
+ ArrayPrototype[UNSCOPABLES][key] = true;
752
+ };
753
+
754
+ var iterators = {};
755
+
756
+ var global$4 = global$b;
757
+ var isCallable$7 = isCallable$d;
758
+
759
+ var WeakMap$1 = global$4.WeakMap;
760
+
761
+ var weakMapBasicDetection = isCallable$7(WeakMap$1) && /native code/.test(String(WeakMap$1));
762
+
763
+ var createPropertyDescriptor$3 = function (bitmap, value) {
764
+ return {
765
+ enumerable: !(bitmap & 1),
766
+ configurable: !(bitmap & 2),
767
+ writable: !(bitmap & 4),
768
+ value: value
769
+ };
770
+ };
771
+
772
+ var DESCRIPTORS$5 = descriptors;
773
+ var definePropertyModule$2 = objectDefineProperty;
774
+ var createPropertyDescriptor$2 = createPropertyDescriptor$3;
775
+
776
+ var createNonEnumerableProperty$4 = DESCRIPTORS$5 ? function (object, key, value) {
777
+ return definePropertyModule$2.f(object, key, createPropertyDescriptor$2(1, value));
778
+ } : function (object, key, value) {
779
+ object[key] = value;
780
+ return object;
781
+ };
782
+
783
+ var NATIVE_WEAK_MAP = weakMapBasicDetection;
784
+ var global$3 = global$b;
785
+ var isObject$3 = isObject$8;
786
+ var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
787
+ var hasOwn$6 = hasOwnProperty_1;
788
+ var shared = sharedStore.exports;
789
+ var sharedKey$1 = sharedKey$3;
790
+ var hiddenKeys$1 = hiddenKeys$4;
791
+
792
+ var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
793
+ var TypeError$1 = global$3.TypeError;
794
+ var WeakMap = global$3.WeakMap;
795
+ var set, get, has;
796
+
797
+ var enforce = function (it) {
798
+ return has(it) ? get(it) : set(it, {});
799
+ };
800
+
801
+ var getterFor = function (TYPE) {
802
+ return function (it) {
803
+ var state;
804
+ if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
805
+ throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
806
+ } return state;
807
+ };
808
+ };
809
+
810
+ if (NATIVE_WEAK_MAP || shared.state) {
811
+ var store$1 = shared.state || (shared.state = new WeakMap());
812
+ /* eslint-disable no-self-assign -- prototype methods protection */
813
+ store$1.get = store$1.get;
814
+ store$1.has = store$1.has;
815
+ store$1.set = store$1.set;
816
+ /* eslint-enable no-self-assign -- prototype methods protection */
817
+ set = function (it, metadata) {
818
+ if (store$1.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
819
+ metadata.facade = it;
820
+ store$1.set(it, metadata);
821
+ return metadata;
822
+ };
823
+ get = function (it) {
824
+ return store$1.get(it) || {};
825
+ };
826
+ has = function (it) {
827
+ return store$1.has(it);
828
+ };
829
+ } else {
830
+ var STATE = sharedKey$1('state');
831
+ hiddenKeys$1[STATE] = true;
832
+ set = function (it, metadata) {
833
+ if (hasOwn$6(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
834
+ metadata.facade = it;
835
+ createNonEnumerableProperty$3(it, STATE, metadata);
836
+ return metadata;
837
+ };
838
+ get = function (it) {
839
+ return hasOwn$6(it, STATE) ? it[STATE] : {};
840
+ };
841
+ has = function (it) {
842
+ return hasOwn$6(it, STATE);
843
+ };
844
+ }
845
+
846
+ var internalState = {
847
+ set: set,
848
+ get: get,
849
+ has: has,
850
+ enforce: enforce,
851
+ getterFor: getterFor
852
+ };
853
+
854
+ var objectGetOwnPropertyDescriptor = {};
855
+
856
+ var objectPropertyIsEnumerable = {};
857
+
858
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
859
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
860
+ var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
861
+
862
+ // Nashorn ~ JDK8 bug
863
+ var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
864
+
865
+ // `Object.prototype.propertyIsEnumerable` method implementation
866
+ // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
867
+ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
868
+ var descriptor = getOwnPropertyDescriptor$1(this, V);
869
+ return !!descriptor && descriptor.enumerable;
870
+ } : $propertyIsEnumerable;
871
+
872
+ var DESCRIPTORS$4 = descriptors;
873
+ var call$2 = functionCall;
874
+ var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
875
+ var createPropertyDescriptor$1 = createPropertyDescriptor$3;
876
+ var toIndexedObject$1 = toIndexedObject$5;
877
+ var toPropertyKey = toPropertyKey$2;
878
+ var hasOwn$5 = hasOwnProperty_1;
879
+ var IE8_DOM_DEFINE = ie8DomDefine;
880
+
881
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
882
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
883
+
884
+ // `Object.getOwnPropertyDescriptor` method
885
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
886
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$4 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
887
+ O = toIndexedObject$1(O);
888
+ P = toPropertyKey(P);
889
+ if (IE8_DOM_DEFINE) try {
890
+ return $getOwnPropertyDescriptor(O, P);
891
+ } catch (error) { /* empty */ }
892
+ if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$2(propertyIsEnumerableModule$1.f, O, P), O[P]);
893
+ };
894
+
895
+ var makeBuiltIn$2 = {exports: {}};
896
+
897
+ var DESCRIPTORS$3 = descriptors;
898
+ var hasOwn$4 = hasOwnProperty_1;
899
+
900
+ var FunctionPrototype = Function.prototype;
901
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
902
+ var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
903
+
904
+ var EXISTS = hasOwn$4(FunctionPrototype, 'name');
905
+ // additional protection from minified / mangled / dropped function names
906
+ var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
907
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype, 'name').configurable));
908
+
909
+ var functionName = {
910
+ EXISTS: EXISTS,
911
+ PROPER: PROPER,
912
+ CONFIGURABLE: CONFIGURABLE
913
+ };
914
+
915
+ var uncurryThis$4 = functionUncurryThis;
916
+ var isCallable$6 = isCallable$d;
917
+ var store = sharedStore.exports;
918
+
919
+ var functionToString = uncurryThis$4(Function.toString);
920
+
921
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
922
+ if (!isCallable$6(store.inspectSource)) {
923
+ store.inspectSource = function (it) {
924
+ return functionToString(it);
925
+ };
926
+ }
927
+
928
+ var inspectSource$1 = store.inspectSource;
929
+
930
+ var uncurryThis$3 = functionUncurryThis;
931
+ var fails$4 = fails$b;
932
+ var isCallable$5 = isCallable$d;
933
+ var hasOwn$3 = hasOwnProperty_1;
934
+ var DESCRIPTORS$2 = descriptors;
935
+ var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
936
+ var inspectSource = inspectSource$1;
937
+ var InternalStateModule$1 = internalState;
938
+
939
+ var enforceInternalState = InternalStateModule$1.enforce;
940
+ var getInternalState$1 = InternalStateModule$1.get;
941
+ var $String$1 = String;
942
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
943
+ var defineProperty$3 = Object.defineProperty;
944
+ var stringSlice = uncurryThis$3(''.slice);
945
+ var replace$1 = uncurryThis$3(''.replace);
946
+ var join = uncurryThis$3([].join);
947
+
948
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$4(function () {
949
+ return defineProperty$3(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
950
+ });
951
+
952
+ var TEMPLATE = String(String).split('String');
953
+
954
+ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
955
+ if (stringSlice($String$1(name), 0, 7) === 'Symbol(') {
956
+ name = '[' + replace$1($String$1(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
957
+ }
958
+ if (options && options.getter) name = 'get ' + name;
959
+ if (options && options.setter) name = 'set ' + name;
960
+ if (!hasOwn$3(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
961
+ if (DESCRIPTORS$2) defineProperty$3(value, 'name', { value: name, configurable: true });
962
+ else value.name = name;
963
+ }
964
+ if (CONFIGURABLE_LENGTH && options && hasOwn$3(options, 'arity') && value.length !== options.arity) {
965
+ defineProperty$3(value, 'length', { value: options.arity });
966
+ }
967
+ try {
968
+ if (options && hasOwn$3(options, 'constructor') && options.constructor) {
969
+ if (DESCRIPTORS$2) defineProperty$3(value, 'prototype', { writable: false });
970
+ // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
971
+ } else if (value.prototype) value.prototype = undefined;
972
+ } catch (error) { /* empty */ }
973
+ var state = enforceInternalState(value);
974
+ if (!hasOwn$3(state, 'source')) {
975
+ state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
976
+ } return value;
977
+ };
978
+
979
+ // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
980
+ // eslint-disable-next-line no-extend-native -- required
981
+ Function.prototype.toString = makeBuiltIn$1(function toString() {
982
+ return isCallable$5(this) && getInternalState$1(this).source || inspectSource(this);
983
+ }, 'toString');
984
+
985
+ var isCallable$4 = isCallable$d;
986
+ var definePropertyModule$1 = objectDefineProperty;
987
+ var makeBuiltIn = makeBuiltIn$2.exports;
988
+ var defineGlobalProperty$1 = defineGlobalProperty$3;
989
+
990
+ var defineBuiltIn$3 = function (O, key, value, options) {
991
+ if (!options) options = {};
992
+ var simple = options.enumerable;
993
+ var name = options.name !== undefined ? options.name : key;
994
+ if (isCallable$4(value)) makeBuiltIn(value, name, options);
995
+ if (options.global) {
996
+ if (simple) O[key] = value;
997
+ else defineGlobalProperty$1(key, value);
998
+ } else {
999
+ try {
1000
+ if (!options.unsafe) delete O[key];
1001
+ else if (O[key]) simple = true;
1002
+ } catch (error) { /* empty */ }
1003
+ if (simple) O[key] = value;
1004
+ else definePropertyModule$1.f(O, key, {
1005
+ value: value,
1006
+ enumerable: false,
1007
+ configurable: !options.nonConfigurable,
1008
+ writable: !options.nonWritable
1009
+ });
1010
+ } return O;
1011
+ };
1012
+
1013
+ var objectGetOwnPropertyNames = {};
1014
+
1015
+ var internalObjectKeys = objectKeysInternal;
1016
+ var enumBugKeys = enumBugKeys$3;
1017
+
1018
+ var hiddenKeys = enumBugKeys.concat('length', 'prototype');
1019
+
1020
+ // `Object.getOwnPropertyNames` method
1021
+ // https://tc39.es/ecma262/#sec-object.getownpropertynames
1022
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
1023
+ objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1024
+ return internalObjectKeys(O, hiddenKeys);
1025
+ };
1026
+
1027
+ var objectGetOwnPropertySymbols = {};
1028
+
1029
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
1030
+ objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1031
+
1032
+ var getBuiltIn = getBuiltIn$3;
1033
+ var uncurryThis$2 = functionUncurryThis;
1034
+ var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1035
+ var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1036
+ var anObject = anObject$4;
1037
+
1038
+ var concat$1 = uncurryThis$2([].concat);
1039
+
1040
+ // all object keys, includes non-enumerable and symbols
1041
+ var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
1042
+ var keys = getOwnPropertyNamesModule.f(anObject(it));
1043
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
1044
+ return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
1045
+ };
1046
+
1047
+ var hasOwn$2 = hasOwnProperty_1;
1048
+ var ownKeys = ownKeys$1;
1049
+ var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1050
+ var definePropertyModule = objectDefineProperty;
1051
+
1052
+ var copyConstructorProperties$1 = function (target, source, exceptions) {
1053
+ var keys = ownKeys(source);
1054
+ var defineProperty = definePropertyModule.f;
1055
+ var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1056
+ for (var i = 0; i < keys.length; i++) {
1057
+ var key = keys[i];
1058
+ if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
1059
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1060
+ }
1061
+ }
1062
+ };
1063
+
1064
+ var fails$3 = fails$b;
1065
+ var isCallable$3 = isCallable$d;
1066
+
1067
+ var replacement = /#|\.prototype\./;
1068
+
1069
+ var isForced$1 = function (feature, detection) {
1070
+ var value = data[normalize(feature)];
1071
+ return value === POLYFILL ? true
1072
+ : value === NATIVE ? false
1073
+ : isCallable$3(detection) ? fails$3(detection)
1074
+ : !!detection;
1075
+ };
1076
+
1077
+ var normalize = isForced$1.normalize = function (string) {
1078
+ return String(string).replace(replacement, '.').toLowerCase();
1079
+ };
1080
+
1081
+ var data = isForced$1.data = {};
1082
+ var NATIVE = isForced$1.NATIVE = 'N';
1083
+ var POLYFILL = isForced$1.POLYFILL = 'P';
1084
+
1085
+ var isForced_1 = isForced$1;
1086
+
1087
+ var global$2 = global$b;
1088
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1089
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
1090
+ var defineBuiltIn$2 = defineBuiltIn$3;
1091
+ var defineGlobalProperty = defineGlobalProperty$3;
1092
+ var copyConstructorProperties = copyConstructorProperties$1;
1093
+ var isForced = isForced_1;
1094
+
1095
+ /*
1096
+ options.target - name of the target object
1097
+ options.global - target is the global object
1098
+ options.stat - export as static methods of target
1099
+ options.proto - export as prototype methods of target
1100
+ options.real - real prototype method for the `pure` version
1101
+ options.forced - export even if the native feature is available
1102
+ options.bind - bind methods to the target, required for the `pure` version
1103
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
1104
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
1105
+ options.sham - add a flag to not completely full polyfills
1106
+ options.enumerable - export as enumerable property
1107
+ options.dontCallGetSet - prevent calling a getter on target
1108
+ options.name - the .name of the function if it does not match the key
1109
+ */
1110
+ var _export = function (options, source) {
1111
+ var TARGET = options.target;
1112
+ var GLOBAL = options.global;
1113
+ var STATIC = options.stat;
1114
+ var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1115
+ if (GLOBAL) {
1116
+ target = global$2;
1117
+ } else if (STATIC) {
1118
+ target = global$2[TARGET] || defineGlobalProperty(TARGET, {});
1119
+ } else {
1120
+ target = global$2[TARGET] && global$2[TARGET].prototype;
1121
+ }
1122
+ if (target) for (key in source) {
1123
+ sourceProperty = source[key];
1124
+ if (options.dontCallGetSet) {
1125
+ descriptor = getOwnPropertyDescriptor(target, key);
1126
+ targetProperty = descriptor && descriptor.value;
1127
+ } else targetProperty = target[key];
1128
+ FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1129
+ // contained in target
1130
+ if (!FORCED && targetProperty !== undefined) {
1131
+ if (typeof sourceProperty == typeof targetProperty) continue;
1132
+ copyConstructorProperties(sourceProperty, targetProperty);
1133
+ }
1134
+ // add a flag to not completely full polyfills
1135
+ if (options.sham || (targetProperty && targetProperty.sham)) {
1136
+ createNonEnumerableProperty$2(sourceProperty, 'sham', true);
1137
+ }
1138
+ defineBuiltIn$2(target, key, sourceProperty, options);
1139
+ }
1140
+ };
1141
+
1142
+ var fails$2 = fails$b;
1143
+
1144
+ var correctPrototypeGetter = !fails$2(function () {
1145
+ function F() { /* empty */ }
1146
+ F.prototype.constructor = null;
1147
+ // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1148
+ return Object.getPrototypeOf(new F()) !== F.prototype;
1149
+ });
1150
+
1151
+ var hasOwn$1 = hasOwnProperty_1;
1152
+ var isCallable$2 = isCallable$d;
1153
+ var toObject$1 = toObject$3;
1154
+ var sharedKey = sharedKey$3;
1155
+ var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1156
+
1157
+ var IE_PROTO = sharedKey('IE_PROTO');
1158
+ var $Object = Object;
1159
+ var ObjectPrototype = $Object.prototype;
1160
+
1161
+ // `Object.getPrototypeOf` method
1162
+ // https://tc39.es/ecma262/#sec-object.getprototypeof
1163
+ // eslint-disable-next-line es/no-object-getprototypeof -- safe
1164
+ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
1165
+ var object = toObject$1(O);
1166
+ if (hasOwn$1(object, IE_PROTO)) return object[IE_PROTO];
1167
+ var constructor = object.constructor;
1168
+ if (isCallable$2(constructor) && object instanceof constructor) {
1169
+ return constructor.prototype;
1170
+ } return object instanceof $Object ? ObjectPrototype : null;
1171
+ };
1172
+
1173
+ var fails$1 = fails$b;
1174
+ var isCallable$1 = isCallable$d;
1175
+ var isObject$2 = isObject$8;
1176
+ var getPrototypeOf$1 = objectGetPrototypeOf;
1177
+ var defineBuiltIn$1 = defineBuiltIn$3;
1178
+ var wellKnownSymbol$3 = wellKnownSymbol$6;
1179
+
1180
+ var ITERATOR$2 = wellKnownSymbol$3('iterator');
1181
+ var BUGGY_SAFARI_ITERATORS$1 = false;
1182
+
1183
+ // `%IteratorPrototype%` object
1184
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
1185
+ var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
1186
+
1187
+ /* eslint-disable es/no-array-prototype-keys -- safe */
1188
+ if ([].keys) {
1189
+ arrayIterator = [].keys();
1190
+ // Safari 8 has buggy iterators w/o `next`
1191
+ if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
1192
+ else {
1193
+ PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
1194
+ if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
1195
+ }
1196
+ }
1197
+
1198
+ var NEW_ITERATOR_PROTOTYPE = !isObject$2(IteratorPrototype$2) || fails$1(function () {
1199
+ var test = {};
1200
+ // FF44- legacy iterators case
1201
+ return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
1202
+ });
1203
+
1204
+ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1205
+
1206
+ // `%IteratorPrototype%[@@iterator]()` method
1207
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1208
+ if (!isCallable$1(IteratorPrototype$2[ITERATOR$2])) {
1209
+ defineBuiltIn$1(IteratorPrototype$2, ITERATOR$2, function () {
1210
+ return this;
1211
+ });
1212
+ }
1213
+
1214
+ var iteratorsCore = {
1215
+ IteratorPrototype: IteratorPrototype$2,
1216
+ BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
1217
+ };
1218
+
1219
+ var defineProperty$2 = objectDefineProperty.f;
1220
+ var hasOwn = hasOwnProperty_1;
1221
+ var wellKnownSymbol$2 = wellKnownSymbol$6;
1222
+
1223
+ var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
1224
+
1225
+ var setToStringTag$3 = function (target, TAG, STATIC) {
1226
+ if (target && !STATIC) target = target.prototype;
1227
+ if (target && !hasOwn(target, TO_STRING_TAG)) {
1228
+ defineProperty$2(target, TO_STRING_TAG, { configurable: true, value: TAG });
1229
+ }
1230
+ };
1231
+
1232
+ var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1233
+ var create = objectCreate;
1234
+ var createPropertyDescriptor = createPropertyDescriptor$3;
1235
+ var setToStringTag$2 = setToStringTag$3;
1236
+ var Iterators$2 = iterators;
1237
+
1238
+ var returnThis$1 = function () { return this; };
1239
+
1240
+ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1241
+ var TO_STRING_TAG = NAME + ' Iterator';
1242
+ IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
1243
+ setToStringTag$2(IteratorConstructor, TO_STRING_TAG, false);
1244
+ Iterators$2[TO_STRING_TAG] = returnThis$1;
1245
+ return IteratorConstructor;
1246
+ };
1247
+
1248
+ var uncurryThis$1 = functionUncurryThis;
1249
+ var aCallable = aCallable$2;
1250
+
1251
+ var functionUncurryThisAccessor = function (object, key, method) {
1252
+ try {
1253
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1254
+ return uncurryThis$1(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
1255
+ } catch (error) { /* empty */ }
1256
+ };
1257
+
1258
+ var isObject$1 = isObject$8;
1259
+
1260
+ var isPossiblePrototype$1 = function (argument) {
1261
+ return isObject$1(argument) || argument === null;
1262
+ };
1263
+
1264
+ var isPossiblePrototype = isPossiblePrototype$1;
1265
+
1266
+ var $String = String;
1267
+ var $TypeError = TypeError;
1268
+
1269
+ var aPossiblePrototype$1 = function (argument) {
1270
+ if (isPossiblePrototype(argument)) return argument;
1271
+ throw new $TypeError("Can't set " + $String(argument) + ' as a prototype');
1272
+ };
1273
+
1274
+ /* eslint-disable no-proto -- safe */
1275
+ var uncurryThisAccessor = functionUncurryThisAccessor;
1276
+ var isObject = isObject$8;
1277
+ var requireObjectCoercible = requireObjectCoercible$3;
1278
+ var aPossiblePrototype = aPossiblePrototype$1;
1279
+
1280
+ // `Object.setPrototypeOf` method
1281
+ // https://tc39.es/ecma262/#sec-object.setprototypeof
1282
+ // Works with __proto__ only. Old v8 can't work with null proto objects.
1283
+ // eslint-disable-next-line es/no-object-setprototypeof -- safe
1284
+ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1285
+ var CORRECT_SETTER = false;
1286
+ var test = {};
1287
+ var setter;
1288
+ try {
1289
+ setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
1290
+ setter(test, []);
1291
+ CORRECT_SETTER = test instanceof Array;
1292
+ } catch (error) { /* empty */ }
1293
+ return function setPrototypeOf(O, proto) {
1294
+ requireObjectCoercible(O);
1295
+ aPossiblePrototype(proto);
1296
+ if (!isObject(O)) return O;
1297
+ if (CORRECT_SETTER) setter(O, proto);
1298
+ else O.__proto__ = proto;
1299
+ return O;
1300
+ };
1301
+ }() : undefined);
1302
+
1303
+ var $$2 = _export;
1304
+ var call$1 = functionCall;
1305
+ var FunctionName = functionName;
1306
+ var isCallable = isCallable$d;
1307
+ var createIteratorConstructor = iteratorCreateConstructor;
1308
+ var getPrototypeOf = objectGetPrototypeOf;
1309
+ var setPrototypeOf = objectSetPrototypeOf;
1310
+ var setToStringTag$1 = setToStringTag$3;
1311
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
1312
+ var defineBuiltIn = defineBuiltIn$3;
1313
+ var wellKnownSymbol$1 = wellKnownSymbol$6;
1314
+ var Iterators$1 = iterators;
1315
+ var IteratorsCore = iteratorsCore;
1316
+
1317
+ var PROPER_FUNCTION_NAME = FunctionName.PROPER;
1318
+ var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1319
+ var IteratorPrototype = IteratorsCore.IteratorPrototype;
1320
+ var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1321
+ var ITERATOR$1 = wellKnownSymbol$1('iterator');
1322
+ var KEYS = 'keys';
1323
+ var VALUES = 'values';
1324
+ var ENTRIES = 'entries';
1325
+
1326
+ var returnThis = function () { return this; };
1327
+
1328
+ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1329
+ createIteratorConstructor(IteratorConstructor, NAME, next);
1330
+
1331
+ var getIterationMethod = function (KIND) {
1332
+ if (KIND === DEFAULT && defaultIterator) return defaultIterator;
1333
+ if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
1334
+
1335
+ switch (KIND) {
1336
+ case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
1337
+ case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
1338
+ case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
1339
+ }
1340
+
1341
+ return function () { return new IteratorConstructor(this); };
1342
+ };
1343
+
1344
+ var TO_STRING_TAG = NAME + ' Iterator';
1345
+ var INCORRECT_VALUES_NAME = false;
1346
+ var IterablePrototype = Iterable.prototype;
1347
+ var nativeIterator = IterablePrototype[ITERATOR$1]
1348
+ || IterablePrototype['@@iterator']
1349
+ || DEFAULT && IterablePrototype[DEFAULT];
1350
+ var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
1351
+ var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1352
+ var CurrentIteratorPrototype, methods, KEY;
1353
+
1354
+ // fix native
1355
+ if (anyNativeIterator) {
1356
+ CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
1357
+ if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
1358
+ if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1359
+ if (setPrototypeOf) {
1360
+ setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
1361
+ } else if (!isCallable(CurrentIteratorPrototype[ITERATOR$1])) {
1362
+ defineBuiltIn(CurrentIteratorPrototype, ITERATOR$1, returnThis);
1363
+ }
1364
+ }
1365
+ // Set @@toStringTag to native iterators
1366
+ setToStringTag$1(CurrentIteratorPrototype, TO_STRING_TAG, true);
1367
+ }
1368
+ }
1369
+
1370
+ // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1371
+ if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1372
+ if (CONFIGURABLE_FUNCTION_NAME) {
1373
+ createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
1374
+ } else {
1375
+ INCORRECT_VALUES_NAME = true;
1376
+ defaultIterator = function values() { return call$1(nativeIterator, this); };
1377
+ }
1378
+ }
1379
+
1380
+ // export additional methods
1381
+ if (DEFAULT) {
1382
+ methods = {
1383
+ values: getIterationMethod(VALUES),
1384
+ keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
1385
+ entries: getIterationMethod(ENTRIES)
1386
+ };
1387
+ if (FORCED) for (KEY in methods) {
1388
+ if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1389
+ defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
1390
+ }
1391
+ } else $$2({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1392
+ }
1393
+
1394
+ // define iterator
1395
+ if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
1396
+ defineBuiltIn(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
1397
+ }
1398
+ Iterators$1[NAME] = defaultIterator;
1399
+
1400
+ return methods;
1401
+ };
1402
+
1403
+ // `CreateIterResultObject` abstract operation
1404
+ // https://tc39.es/ecma262/#sec-createiterresultobject
1405
+ var createIterResultObject$1 = function (value, done) {
1406
+ return { value: value, done: done };
1407
+ };
1408
+
1409
+ var toIndexedObject = toIndexedObject$5;
1410
+ var addToUnscopables = addToUnscopables$1;
1411
+ var Iterators = iterators;
1412
+ var InternalStateModule = internalState;
1413
+ var defineProperty$1 = objectDefineProperty.f;
1414
+ var defineIterator = iteratorDefine;
1415
+ var createIterResultObject = createIterResultObject$1;
1416
+ var DESCRIPTORS$1 = descriptors;
1417
+
1418
+ var ARRAY_ITERATOR = 'Array Iterator';
1419
+ var setInternalState = InternalStateModule.set;
1420
+ var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
1421
+
1422
+ // `Array.prototype.entries` method
1423
+ // https://tc39.es/ecma262/#sec-array.prototype.entries
1424
+ // `Array.prototype.keys` method
1425
+ // https://tc39.es/ecma262/#sec-array.prototype.keys
1426
+ // `Array.prototype.values` method
1427
+ // https://tc39.es/ecma262/#sec-array.prototype.values
1428
+ // `Array.prototype[@@iterator]` method
1429
+ // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
1430
+ // `CreateArrayIterator` internal method
1431
+ // https://tc39.es/ecma262/#sec-createarrayiterator
1432
+ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
1433
+ setInternalState(this, {
1434
+ type: ARRAY_ITERATOR,
1435
+ target: toIndexedObject(iterated), // target
1436
+ index: 0, // next index
1437
+ kind: kind // kind
1438
+ });
1439
+ // `%ArrayIteratorPrototype%.next` method
1440
+ // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
1441
+ }, function () {
1442
+ var state = getInternalState(this);
1443
+ var target = state.target;
1444
+ var index = state.index++;
1445
+ if (!target || index >= target.length) {
1446
+ state.target = undefined;
1447
+ return createIterResultObject(undefined, true);
1448
+ }
1449
+ switch (state.kind) {
1450
+ case 'keys': return createIterResultObject(index, false);
1451
+ case 'values': return createIterResultObject(target[index], false);
1452
+ } return createIterResultObject([index, target[index]], false);
1453
+ }, 'values');
1454
+
1455
+ // argumentsList[@@iterator] is %ArrayProto_values%
1456
+ // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
1457
+ // https://tc39.es/ecma262/#sec-createmappedargumentsobject
1458
+ var values = Iterators.Arguments = Iterators.Array;
1459
+
1460
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1461
+ addToUnscopables('keys');
1462
+ addToUnscopables('values');
1463
+ addToUnscopables('entries');
1464
+
1465
+ // V8 ~ Chrome 45- bug
1466
+ if (DESCRIPTORS$1 && values.name !== 'values') try {
1467
+ defineProperty$1(values, 'name', { value: 'values' });
1468
+ } catch (error) { /* empty */ }
1469
+
1470
+ var DESCRIPTORS = descriptors;
1471
+ var uncurryThis = functionUncurryThis;
1472
+ var call = functionCall;
1473
+ var fails = fails$b;
1474
+ var objectKeys = objectKeys$2;
1475
+ var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1476
+ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1477
+ var toObject = toObject$3;
1478
+ var IndexedObject = indexedObject;
1479
+
1480
+ // eslint-disable-next-line es/no-object-assign -- safe
1481
+ var $assign = Object.assign;
1482
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1483
+ var defineProperty = Object.defineProperty;
1484
+ var concat = uncurryThis([].concat);
1485
+
1486
+ // `Object.assign` method
1487
+ // https://tc39.es/ecma262/#sec-object.assign
1488
+ var objectAssign = !$assign || fails(function () {
1489
+ // should have correct order of operations (Edge bug)
1490
+ if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
1491
+ enumerable: true,
1492
+ get: function () {
1493
+ defineProperty(this, 'b', {
1494
+ value: 3,
1495
+ enumerable: false
1496
+ });
1497
+ }
1498
+ }), { b: 2 })).b !== 1) return true;
1499
+ // should work with symbols and should have deterministic property order (V8 bug)
1500
+ var A = {};
1501
+ var B = {};
1502
+ // eslint-disable-next-line es/no-symbol -- safe
1503
+ var symbol = Symbol('assign detection');
1504
+ var alphabet = 'abcdefghijklmnopqrst';
1505
+ A[symbol] = 7;
1506
+ alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1507
+ return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
1508
+ }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1509
+ var T = toObject(target);
1510
+ var argumentsLength = arguments.length;
1511
+ var index = 1;
1512
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1513
+ var propertyIsEnumerable = propertyIsEnumerableModule.f;
1514
+ while (argumentsLength > index) {
1515
+ var S = IndexedObject(arguments[index++]);
1516
+ var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
1517
+ var length = keys.length;
1518
+ var j = 0;
1519
+ var key;
1520
+ while (length > j) {
1521
+ key = keys[j++];
1522
+ if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
1523
+ }
1524
+ } return T;
1525
+ } : $assign;
1526
+
1527
+ var $$1 = _export;
1528
+ var assign$1 = objectAssign;
1529
+
1530
+ // `Object.assign` method
1531
+ // https://tc39.es/ecma262/#sec-object.assign
1532
+ // eslint-disable-next-line es/no-object-assign -- required for testing
1533
+ $$1({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign$1 }, {
1534
+ assign: assign$1
1535
+ });
1536
+
1537
+ // iterable DOM collections
1538
+ // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
1539
+ var domIterables = {
1540
+ CSSRuleList: 0,
1541
+ CSSStyleDeclaration: 0,
1542
+ CSSValueList: 0,
1543
+ ClientRectList: 0,
1544
+ DOMRectList: 0,
1545
+ DOMStringList: 0,
1546
+ DOMTokenList: 1,
1547
+ DataTransferItemList: 0,
1548
+ FileList: 0,
1549
+ HTMLAllCollection: 0,
1550
+ HTMLCollection: 0,
1551
+ HTMLFormElement: 0,
1552
+ HTMLSelectElement: 0,
1553
+ MediaList: 0,
1554
+ MimeTypeArray: 0,
1555
+ NamedNodeMap: 0,
1556
+ NodeList: 1,
1557
+ PaintRequestList: 0,
1558
+ Plugin: 0,
1559
+ PluginArray: 0,
1560
+ SVGLengthList: 0,
1561
+ SVGNumberList: 0,
1562
+ SVGPathSegList: 0,
1563
+ SVGPointList: 0,
1564
+ SVGStringList: 0,
1565
+ SVGTransformList: 0,
1566
+ SourceBufferList: 0,
1567
+ StyleSheetList: 0,
1568
+ TextTrackCueList: 0,
1569
+ TextTrackList: 0,
1570
+ TouchList: 0
1571
+ };
1572
+
1573
+ // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
1574
+ var documentCreateElement = documentCreateElement$2;
1575
+
1576
+ var classList = documentCreateElement('span').classList;
1577
+ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
1578
+
1579
+ var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1580
+
1581
+ var global$1 = global$b;
1582
+ var DOMIterables = domIterables;
1583
+ var DOMTokenListPrototype = domTokenListPrototype;
1584
+ var ArrayIteratorMethods = es_array_iterator;
1585
+ var createNonEnumerableProperty = createNonEnumerableProperty$4;
1586
+ var setToStringTag = setToStringTag$3;
1587
+ var wellKnownSymbol = wellKnownSymbol$6;
1588
+
1589
+ var ITERATOR = wellKnownSymbol('iterator');
1590
+ var ArrayValues = ArrayIteratorMethods.values;
1591
+
1592
+ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1593
+ if (CollectionPrototype) {
1594
+ // some Chrome versions have non-configurable methods on DOMTokenList
1595
+ if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
1596
+ createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
1597
+ } catch (error) {
1598
+ CollectionPrototype[ITERATOR] = ArrayValues;
1599
+ }
1600
+ setToStringTag(CollectionPrototype, COLLECTION_NAME, true);
1601
+ if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
1602
+ // some Chrome versions have non-configurable methods on DOMTokenList
1603
+ if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
1604
+ createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
1605
+ } catch (error) {
1606
+ CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
1607
+ }
1608
+ }
1609
+ }
1610
+ };
1611
+
1612
+ for (var COLLECTION_NAME in DOMIterables) {
1613
+ handlePrototype(global$1[COLLECTION_NAME] && global$1[COLLECTION_NAME].prototype, COLLECTION_NAME);
1614
+ }
1615
+
1616
+ handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1617
+
1618
+ /******************************************************************************
1619
+ Copyright (c) Microsoft Corporation.
1620
+
1621
+ Permission to use, copy, modify, and/or distribute this software for any
1622
+ purpose with or without fee is hereby granted.
1623
+
1624
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1625
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1626
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1627
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1628
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1629
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1630
+ PERFORMANCE OF THIS SOFTWARE.
1631
+ ***************************************************************************** */
1632
+
1633
+ var __assign = function() {
1634
+ __assign = Object.assign || function __assign(t) {
1635
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
1636
+ s = arguments[i];
1637
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
1638
+ }
1639
+ return t;
1640
+ };
1641
+ return __assign.apply(this, arguments);
1642
+ };
1643
+
1644
+ function __spreadArray(to, from, pack) {
1645
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
1646
+ if (ar || !(i in from)) {
1647
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
1648
+ ar[i] = from[i];
1649
+ }
1650
+ }
1651
+ return to.concat(ar || Array.prototype.slice.call(from));
1652
+ }
1653
+
1654
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
1655
+ var e = new Error(message);
1656
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
1657
+ };
1658
+
1659
+ function memoize(fn) {
1660
+ var cache = Object.create(null);
1661
+ return function (arg) {
1662
+ if (cache[arg] === undefined) cache[arg] = fn(arg);
1663
+ return cache[arg];
1664
+ };
1665
+ }
1666
+
1667
+ var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
1668
+
1669
+ var isPropValid = /* #__PURE__ */memoize(function (prop) {
1670
+ return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
1671
+ /* o */
1672
+ && prop.charCodeAt(1) === 110
1673
+ /* n */
1674
+ && prop.charCodeAt(2) < 91;
1675
+ }
1676
+ /* Z+1 */
1677
+ );
1678
+
1679
+ var MS = '-ms-';
1680
+ var MOZ = '-moz-';
1681
+ var WEBKIT = '-webkit-';
1682
+
1683
+ var COMMENT = 'comm';
1684
+ var RULESET = 'rule';
1685
+ var DECLARATION = 'decl';
1686
+ var IMPORT = '@import';
1687
+ var KEYFRAMES = '@keyframes';
1688
+ var LAYER = '@layer';
1689
+
1690
+ /**
1691
+ * @param {number}
1692
+ * @return {number}
1693
+ */
1694
+ var abs = Math.abs;
1695
+
1696
+ /**
1697
+ * @param {number}
1698
+ * @return {string}
1699
+ */
1700
+ var from = String.fromCharCode;
1701
+
1702
+ /**
1703
+ * @param {object}
1704
+ * @return {object}
1705
+ */
1706
+ var assign = Object.assign;
1707
+
1708
+ /**
1709
+ * @param {string} value
1710
+ * @param {number} length
1711
+ * @return {number}
1712
+ */
1713
+ function hash (value, length) {
1714
+ return charat(value, 0) ^ 45 ? (((((((length << 2) ^ charat(value, 0)) << 2) ^ charat(value, 1)) << 2) ^ charat(value, 2)) << 2) ^ charat(value, 3) : 0
1715
+ }
1716
+
1717
+ /**
1718
+ * @param {string} value
1719
+ * @return {string}
1720
+ */
1721
+ function trim (value) {
1722
+ return value.trim()
1723
+ }
1724
+
1725
+ /**
1726
+ * @param {string} value
1727
+ * @param {RegExp} pattern
1728
+ * @return {string?}
1729
+ */
1730
+ function match (value, pattern) {
1731
+ return (value = pattern.exec(value)) ? value[0] : value
1732
+ }
1733
+
1734
+ /**
1735
+ * @param {string} value
1736
+ * @param {(string|RegExp)} pattern
1737
+ * @param {string} replacement
1738
+ * @return {string}
1739
+ */
1740
+ function replace (value, pattern, replacement) {
1741
+ return value.replace(pattern, replacement)
1742
+ }
1743
+
1744
+ /**
1745
+ * @param {string} value
1746
+ * @param {string} search
1747
+ * @param {number} position
1748
+ * @return {number}
1749
+ */
1750
+ function indexof (value, search, position) {
1751
+ return value.indexOf(search, position)
1752
+ }
1753
+
1754
+ /**
1755
+ * @param {string} value
1756
+ * @param {number} index
1757
+ * @return {number}
1758
+ */
1759
+ function charat (value, index) {
1760
+ return value.charCodeAt(index) | 0
1761
+ }
1762
+
1763
+ /**
1764
+ * @param {string} value
1765
+ * @param {number} begin
1766
+ * @param {number} end
1767
+ * @return {string}
1768
+ */
1769
+ function substr (value, begin, end) {
1770
+ return value.slice(begin, end)
1771
+ }
1772
+
1773
+ /**
1774
+ * @param {string} value
1775
+ * @return {number}
1776
+ */
1777
+ function strlen (value) {
1778
+ return value.length
1779
+ }
1780
+
1781
+ /**
1782
+ * @param {any[]} value
1783
+ * @return {number}
1784
+ */
1785
+ function sizeof (value) {
1786
+ return value.length
1787
+ }
1788
+
1789
+ /**
1790
+ * @param {any} value
1791
+ * @param {any[]} array
1792
+ * @return {any}
1793
+ */
1794
+ function append (value, array) {
1795
+ return array.push(value), value
1796
+ }
1797
+
1798
+ /**
1799
+ * @param {string[]} array
1800
+ * @param {function} callback
1801
+ * @return {string}
1802
+ */
1803
+ function combine (array, callback) {
1804
+ return array.map(callback).join('')
1805
+ }
1806
+
1807
+ /**
1808
+ * @param {string[]} array
1809
+ * @param {RegExp} pattern
1810
+ * @return {string[]}
1811
+ */
1812
+ function filter (array, pattern) {
1813
+ return array.filter(function (value) { return !match(value, pattern) })
1814
+ }
1815
+
1816
+ var line = 1;
1817
+ var column = 1;
1818
+ var length = 0;
1819
+ var position = 0;
1820
+ var character = 0;
1821
+ var characters = '';
1822
+
1823
+ /**
1824
+ * @param {string} value
1825
+ * @param {object | null} root
1826
+ * @param {object | null} parent
1827
+ * @param {string} type
1828
+ * @param {string[] | string} props
1829
+ * @param {object[] | string} children
1830
+ * @param {object[]} siblings
1831
+ * @param {number} length
1832
+ */
1833
+ function node (value, root, parent, type, props, children, length, siblings) {
1834
+ return {value: value, root: root, parent: parent, type: type, props: props, children: children, line: line, column: column, length: length, return: '', siblings: siblings}
1835
+ }
1836
+
1837
+ /**
1838
+ * @param {object} root
1839
+ * @param {object} props
1840
+ * @return {object}
1841
+ */
1842
+ function copy (root, props) {
1843
+ return assign(node('', null, null, '', null, null, 0, root.siblings), root, {length: -root.length}, props)
1844
+ }
1845
+
1846
+ /**
1847
+ * @param {object} root
1848
+ */
1849
+ function lift (root) {
1850
+ while (root.root)
1851
+ root = copy(root.root, {children: [root]});
1852
+
1853
+ append(root, root.siblings);
1854
+ }
1855
+
1856
+ /**
1857
+ * @return {number}
1858
+ */
1859
+ function char () {
1860
+ return character
1861
+ }
1862
+
1863
+ /**
1864
+ * @return {number}
1865
+ */
1866
+ function prev () {
1867
+ character = position > 0 ? charat(characters, --position) : 0;
1868
+
1869
+ if (column--, character === 10)
1870
+ column = 1, line--;
1871
+
1872
+ return character
1873
+ }
1874
+
1875
+ /**
1876
+ * @return {number}
1877
+ */
1878
+ function next () {
1879
+ character = position < length ? charat(characters, position++) : 0;
1880
+
1881
+ if (column++, character === 10)
1882
+ column = 1, line++;
1883
+
1884
+ return character
1885
+ }
1886
+
1887
+ /**
1888
+ * @return {number}
1889
+ */
1890
+ function peek () {
1891
+ return charat(characters, position)
1892
+ }
1893
+
1894
+ /**
1895
+ * @return {number}
1896
+ */
1897
+ function caret () {
1898
+ return position
1899
+ }
1900
+
1901
+ /**
1902
+ * @param {number} begin
1903
+ * @param {number} end
1904
+ * @return {string}
1905
+ */
1906
+ function slice (begin, end) {
1907
+ return substr(characters, begin, end)
1908
+ }
1909
+
1910
+ /**
1911
+ * @param {number} type
1912
+ * @return {number}
1913
+ */
1914
+ function token (type) {
1915
+ switch (type) {
1916
+ // \0 \t \n \r \s whitespace token
1917
+ case 0: case 9: case 10: case 13: case 32:
1918
+ return 5
1919
+ // ! + , / > @ ~ isolate token
1920
+ case 33: case 43: case 44: case 47: case 62: case 64: case 126:
1921
+ // ; { } breakpoint token
1922
+ case 59: case 123: case 125:
1923
+ return 4
1924
+ // : accompanied token
1925
+ case 58:
1926
+ return 3
1927
+ // " ' ( [ opening delimit token
1928
+ case 34: case 39: case 40: case 91:
1929
+ return 2
1930
+ // ) ] closing delimit token
1931
+ case 41: case 93:
1932
+ return 1
1933
+ }
1934
+
1935
+ return 0
1936
+ }
1937
+
1938
+ /**
1939
+ * @param {string} value
1940
+ * @return {any[]}
1941
+ */
1942
+ function alloc (value) {
1943
+ return line = column = 1, length = strlen(characters = value), position = 0, []
1944
+ }
1945
+
1946
+ /**
1947
+ * @param {any} value
1948
+ * @return {any}
1949
+ */
1950
+ function dealloc (value) {
1951
+ return characters = '', value
1952
+ }
1953
+
1954
+ /**
1955
+ * @param {number} type
1956
+ * @return {string}
1957
+ */
1958
+ function delimit (type) {
1959
+ return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)))
1960
+ }
1961
+
1962
+ /**
1963
+ * @param {number} type
1964
+ * @return {string}
1965
+ */
1966
+ function whitespace (type) {
1967
+ while (character = peek())
1968
+ if (character < 33)
1969
+ next();
1970
+ else
1971
+ break
1972
+
1973
+ return token(type) > 2 || token(character) > 3 ? '' : ' '
1974
+ }
1975
+
1976
+ /**
1977
+ * @param {number} index
1978
+ * @param {number} count
1979
+ * @return {string}
1980
+ */
1981
+ function escaping (index, count) {
1982
+ while (--count && next())
1983
+ // not 0-9 A-F a-f
1984
+ if (character < 48 || character > 102 || (character > 57 && character < 65) || (character > 70 && character < 97))
1985
+ break
1986
+
1987
+ return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32))
1988
+ }
1989
+
1990
+ /**
1991
+ * @param {number} type
1992
+ * @return {number}
1993
+ */
1994
+ function delimiter (type) {
1995
+ while (next())
1996
+ switch (character) {
1997
+ // ] ) " '
1998
+ case type:
1999
+ return position
2000
+ // " '
2001
+ case 34: case 39:
2002
+ if (type !== 34 && type !== 39)
2003
+ delimiter(character);
2004
+ break
2005
+ // (
2006
+ case 40:
2007
+ if (type === 41)
2008
+ delimiter(type);
2009
+ break
2010
+ // \
2011
+ case 92:
2012
+ next();
2013
+ break
2014
+ }
2015
+
2016
+ return position
2017
+ }
2018
+
2019
+ /**
2020
+ * @param {number} type
2021
+ * @param {number} index
2022
+ * @return {number}
2023
+ */
2024
+ function commenter (type, index) {
2025
+ while (next())
2026
+ // //
2027
+ if (type + character === 47 + 10)
2028
+ break
2029
+ // /*
2030
+ else if (type + character === 42 + 42 && peek() === 47)
2031
+ break
2032
+
2033
+ return '/*' + slice(index, position - 1) + '*' + from(type === 47 ? type : next())
2034
+ }
2035
+
2036
+ /**
2037
+ * @param {number} index
2038
+ * @return {string}
2039
+ */
2040
+ function identifier (index) {
2041
+ while (!token(peek()))
2042
+ next();
2043
+
2044
+ return slice(index, position)
2045
+ }
2046
+
2047
+ /**
2048
+ * @param {string} value
2049
+ * @return {object[]}
2050
+ */
2051
+ function compile (value) {
2052
+ return dealloc(parse('', null, null, null, [''], value = alloc(value), 0, [0], value))
2053
+ }
2054
+
2055
+ /**
2056
+ * @param {string} value
2057
+ * @param {object} root
2058
+ * @param {object?} parent
2059
+ * @param {string[]} rule
2060
+ * @param {string[]} rules
2061
+ * @param {string[]} rulesets
2062
+ * @param {number[]} pseudo
2063
+ * @param {number[]} points
2064
+ * @param {string[]} declarations
2065
+ * @return {object}
2066
+ */
2067
+ function parse (value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
2068
+ var index = 0;
2069
+ var offset = 0;
2070
+ var length = pseudo;
2071
+ var atrule = 0;
2072
+ var property = 0;
2073
+ var previous = 0;
2074
+ var variable = 1;
2075
+ var scanning = 1;
2076
+ var ampersand = 1;
2077
+ var character = 0;
2078
+ var type = '';
2079
+ var props = rules;
2080
+ var children = rulesets;
2081
+ var reference = rule;
2082
+ var characters = type;
2083
+
2084
+ while (scanning)
2085
+ switch (previous = character, character = next()) {
2086
+ // (
2087
+ case 40:
2088
+ if (previous != 108 && charat(characters, length - 1) == 58) {
2089
+ if (indexof(characters += replace(delimit(character), '&', '&\f'), '&\f', abs(index ? points[index - 1] : 0)) != -1)
2090
+ ampersand = -1;
2091
+ break
2092
+ }
2093
+ // " ' [
2094
+ case 34: case 39: case 91:
2095
+ characters += delimit(character);
2096
+ break
2097
+ // \t \n \r \s
2098
+ case 9: case 10: case 13: case 32:
2099
+ characters += whitespace(previous);
2100
+ break
2101
+ // \
2102
+ case 92:
2103
+ characters += escaping(caret() - 1, 7);
2104
+ continue
2105
+ // /
2106
+ case 47:
2107
+ switch (peek()) {
2108
+ case 42: case 47:
2109
+ append(comment(commenter(next(), caret()), root, parent, declarations), declarations);
2110
+ break
2111
+ default:
2112
+ characters += '/';
2113
+ }
2114
+ break
2115
+ // {
2116
+ case 123 * variable:
2117
+ points[index++] = strlen(characters) * ampersand;
2118
+ // } ; \0
2119
+ case 125 * variable: case 59: case 0:
2120
+ switch (character) {
2121
+ // \0 }
2122
+ case 0: case 125: scanning = 0;
2123
+ // ;
2124
+ case 59 + offset: if (ampersand == -1) characters = replace(characters, /\f/g, '');
2125
+ if (property > 0 && (strlen(characters) - length))
2126
+ append(property > 32 ? declaration(characters + ';', rule, parent, length - 1, declarations) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2, declarations), declarations);
2127
+ break
2128
+ // @ ;
2129
+ case 59: characters += ';';
2130
+ // { rule/at-rule
2131
+ default:
2132
+ append(reference = ruleset(characters, root, parent, index, offset, rules, points, type, props = [], children = [], length, rulesets), rulesets);
2133
+
2134
+ if (character === 123)
2135
+ if (offset === 0)
2136
+ parse(characters, root, reference, reference, props, rulesets, length, points, children);
2137
+ else
2138
+ switch (atrule === 99 && charat(characters, 3) === 110 ? 100 : atrule) {
2139
+ // d l m s
2140
+ case 100: case 108: case 109: case 115:
2141
+ parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length, children), children), rules, children, length, points, rule ? props : children);
2142
+ break
2143
+ default:
2144
+ parse(characters, reference, reference, reference, [''], children, 0, points, children);
2145
+ }
2146
+ }
2147
+
2148
+ index = offset = property = 0, variable = ampersand = 1, type = characters = '', length = pseudo;
2149
+ break
2150
+ // :
2151
+ case 58:
2152
+ length = 1 + strlen(characters), property = previous;
2153
+ default:
2154
+ if (variable < 1)
2155
+ if (character == 123)
2156
+ --variable;
2157
+ else if (character == 125 && variable++ == 0 && prev() == 125)
2158
+ continue
2159
+
2160
+ switch (characters += from(character), character * variable) {
2161
+ // &
2162
+ case 38:
2163
+ ampersand = offset > 0 ? 1 : (characters += '\f', -1);
2164
+ break
2165
+ // ,
2166
+ case 44:
2167
+ points[index++] = (strlen(characters) - 1) * ampersand, ampersand = 1;
2168
+ break
2169
+ // @
2170
+ case 64:
2171
+ // -
2172
+ if (peek() === 45)
2173
+ characters += delimit(next());
2174
+
2175
+ atrule = peek(), offset = length = strlen(type = characters += identifier(caret())), character++;
2176
+ break
2177
+ // -
2178
+ case 45:
2179
+ if (previous === 45 && strlen(characters) == 2)
2180
+ variable = 0;
2181
+ }
2182
+ }
2183
+
2184
+ return rulesets
2185
+ }
2186
+
2187
+ /**
2188
+ * @param {string} value
2189
+ * @param {object} root
2190
+ * @param {object?} parent
2191
+ * @param {number} index
2192
+ * @param {number} offset
2193
+ * @param {string[]} rules
2194
+ * @param {number[]} points
2195
+ * @param {string} type
2196
+ * @param {string[]} props
2197
+ * @param {string[]} children
2198
+ * @param {number} length
2199
+ * @param {object[]} siblings
2200
+ * @return {object}
2201
+ */
2202
+ function ruleset (value, root, parent, index, offset, rules, points, type, props, children, length, siblings) {
2203
+ var post = offset - 1;
2204
+ var rule = offset === 0 ? rules : [''];
2205
+ var size = sizeof(rule);
2206
+
2207
+ for (var i = 0, j = 0, k = 0; i < index; ++i)
2208
+ for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
2209
+ if (z = trim(j > 0 ? rule[x] + ' ' + y : replace(y, /&\f/g, rule[x])))
2210
+ props[k++] = z;
2211
+
2212
+ return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length, siblings)
2213
+ }
2214
+
2215
+ /**
2216
+ * @param {number} value
2217
+ * @param {object} root
2218
+ * @param {object?} parent
2219
+ * @param {object[]} siblings
2220
+ * @return {object}
2221
+ */
2222
+ function comment (value, root, parent, siblings) {
2223
+ return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0, siblings)
2224
+ }
2225
+
2226
+ /**
2227
+ * @param {string} value
2228
+ * @param {object} root
2229
+ * @param {object?} parent
2230
+ * @param {number} length
2231
+ * @param {object[]} siblings
2232
+ * @return {object}
2233
+ */
2234
+ function declaration (value, root, parent, length, siblings) {
2235
+ return node(value, root, parent, DECLARATION, substr(value, 0, length), substr(value, length + 1, -1), length, siblings)
2236
+ }
2237
+
2238
+ /**
2239
+ * @param {string} value
2240
+ * @param {number} length
2241
+ * @param {object[]} children
2242
+ * @return {string}
2243
+ */
2244
+ function prefix (value, length, children) {
2245
+ switch (hash(value, length)) {
2246
+ // color-adjust
2247
+ case 5103:
2248
+ return WEBKIT + 'print-' + value + value
2249
+ // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
2250
+ case 5737: case 4201: case 3177: case 3433: case 1641: case 4457: case 2921:
2251
+ // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
2252
+ case 5572: case 6356: case 5844: case 3191: case 6645: case 3005:
2253
+ // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
2254
+ case 6391: case 5879: case 5623: case 6135: case 4599: case 4855:
2255
+ // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
2256
+ case 4215: case 6389: case 5109: case 5365: case 5621: case 3829:
2257
+ return WEBKIT + value + value
2258
+ // tab-size
2259
+ case 4789:
2260
+ return MOZ + value + value
2261
+ // appearance, user-select, transform, hyphens, text-size-adjust
2262
+ case 5349: case 4246: case 4810: case 6968: case 2756:
2263
+ return WEBKIT + value + MOZ + value + MS + value + value
2264
+ // writing-mode
2265
+ case 5936:
2266
+ switch (charat(value, length + 11)) {
2267
+ // vertical-l(r)
2268
+ case 114:
2269
+ return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value
2270
+ // vertical-r(l)
2271
+ case 108:
2272
+ return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value
2273
+ // horizontal(-)tb
2274
+ case 45:
2275
+ return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value
2276
+ // default: fallthrough to below
2277
+ }
2278
+ // flex, flex-direction, scroll-snap-type, writing-mode
2279
+ case 6828: case 4268: case 2903:
2280
+ return WEBKIT + value + MS + value + value
2281
+ // order
2282
+ case 6165:
2283
+ return WEBKIT + value + MS + 'flex-' + value + value
2284
+ // align-items
2285
+ case 5187:
2286
+ return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value
2287
+ // align-self
2288
+ case 5443:
2289
+ return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/g, '') + (!match(value, /flex-|baseline/) ? MS + 'grid-row-' + replace(value, /flex-|-self/g, '') : '') + value
2290
+ // align-content
2291
+ case 4675:
2292
+ return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/g, '') + value
2293
+ // flex-shrink
2294
+ case 5548:
2295
+ return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value
2296
+ // flex-basis
2297
+ case 5292:
2298
+ return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value
2299
+ // flex-grow
2300
+ case 6060:
2301
+ return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value
2302
+ // transition
2303
+ case 4554:
2304
+ return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value
2305
+ // cursor
2306
+ case 6187:
2307
+ return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value
2308
+ // background, background-image
2309
+ case 5495: case 3959:
2310
+ return replace(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1')
2311
+ // justify-content
2312
+ case 4968:
2313
+ return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value
2314
+ // justify-self
2315
+ case 4200:
2316
+ if (!match(value, /flex-|baseline/)) return MS + 'grid-column-align' + substr(value, length) + value
2317
+ break
2318
+ // grid-template-(columns|rows)
2319
+ case 2592: case 3360:
2320
+ return MS + replace(value, 'template-', '') + value
2321
+ // grid-(row|column)-start
2322
+ case 4384: case 3616:
2323
+ if (children && children.some(function (element, index) { return length = index, match(element.props, /grid-\w+-end/) })) {
2324
+ return ~indexof(value + (children = children[length].value), 'span', 0) ? value : (MS + replace(value, '-start', '') + value + MS + 'grid-row-span:' + (~indexof(children, 'span', 0) ? match(children, /\d+/) : +match(children, /\d+/) - +match(value, /\d+/)) + ';')
2325
+ }
2326
+ return MS + replace(value, '-start', '') + value
2327
+ // grid-(row|column)-end
2328
+ case 4896: case 4128:
2329
+ return (children && children.some(function (element) { return match(element.props, /grid-\w+-start/) })) ? value : MS + replace(replace(value, '-end', '-span'), 'span ', '') + value
2330
+ // (margin|padding)-inline-(start|end)
2331
+ case 4095: case 3583: case 4068: case 2532:
2332
+ return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value
2333
+ // (min|max)?(width|height|inline-size|block-size)
2334
+ case 8116: case 7059: case 5753: case 5535:
2335
+ case 5445: case 5701: case 4933: case 4677:
2336
+ case 5533: case 5789: case 5021: case 4765:
2337
+ // stretch, max-content, min-content, fill-available
2338
+ if (strlen(value) - 1 - length > 6)
2339
+ switch (charat(value, length + 1)) {
2340
+ // (m)ax-content, (m)in-content
2341
+ case 109:
2342
+ // -
2343
+ if (charat(value, length + 4) !== 45)
2344
+ break
2345
+ // (f)ill-available, (f)it-content
2346
+ case 102:
2347
+ return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value
2348
+ // (s)tretch
2349
+ case 115:
2350
+ return ~indexof(value, 'stretch', 0) ? prefix(replace(value, 'stretch', 'fill-available'), length, children) + value : value
2351
+ }
2352
+ break
2353
+ // grid-(column|row)
2354
+ case 5152: case 5920:
2355
+ return replace(value, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function (_, a, b, c, d, e, f) { return (MS + a + ':' + b + f) + (c ? (MS + a + '-span:' + (d ? e : +e - +b)) + f : '') + value })
2356
+ // position: sticky
2357
+ case 4949:
2358
+ // stick(y)?
2359
+ if (charat(value, length + 6) === 121)
2360
+ return replace(value, ':', ':' + WEBKIT) + value
2361
+ break
2362
+ // display: (flex|inline-flex|grid|inline-grid)
2363
+ case 6444:
2364
+ switch (charat(value, charat(value, 14) === 45 ? 18 : 11)) {
2365
+ // (inline-)?fle(x)
2366
+ case 120:
2367
+ return replace(value, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value
2368
+ // (inline-)?gri(d)
2369
+ case 100:
2370
+ return replace(value, ':', ':' + MS) + value
2371
+ }
2372
+ break
2373
+ // scroll-margin, scroll-margin-(top|right|bottom|left)
2374
+ case 5719: case 2647: case 2135: case 3927: case 2391:
2375
+ return replace(value, 'scroll-', 'scroll-snap-') + value
2376
+ }
2377
+
2378
+ return value
2379
+ }
2380
+
2381
+ /**
2382
+ * @param {object[]} children
2383
+ * @param {function} callback
2384
+ * @return {string}
2385
+ */
2386
+ function serialize (children, callback) {
2387
+ var output = '';
2388
+
2389
+ for (var i = 0; i < children.length; i++)
2390
+ output += callback(children[i], i, children, callback) || '';
2391
+
2392
+ return output
2393
+ }
2394
+
2395
+ /**
2396
+ * @param {object} element
2397
+ * @param {number} index
2398
+ * @param {object[]} children
2399
+ * @param {function} callback
2400
+ * @return {string}
2401
+ */
2402
+ function stringify (element, index, children, callback) {
2403
+ switch (element.type) {
2404
+ case LAYER: if (element.children.length) break
2405
+ case IMPORT: case DECLARATION: return element.return = element.return || element.value
2406
+ case COMMENT: return ''
2407
+ case KEYFRAMES: return element.return = element.value + '{' + serialize(element.children, callback) + '}'
2408
+ case RULESET: if (!strlen(element.value = element.props.join(','))) return ''
2409
+ }
2410
+
2411
+ return strlen(children = serialize(element.children, callback)) ? element.return = element.value + '{' + children + '}' : ''
2412
+ }
2413
+
2414
+ /**
2415
+ * @param {function[]} collection
2416
+ * @return {function}
2417
+ */
2418
+ function middleware (collection) {
2419
+ var length = sizeof(collection);
2420
+
2421
+ return function (element, index, children, callback) {
2422
+ var output = '';
2423
+
2424
+ for (var i = 0; i < length; i++)
2425
+ output += collection[i](element, index, children, callback) || '';
2426
+
2427
+ return output
2428
+ }
2429
+ }
2430
+
2431
+ /**
2432
+ * @param {function} callback
2433
+ * @return {function}
2434
+ */
2435
+ function rulesheet (callback) {
2436
+ return function (element) {
2437
+ if (!element.root)
2438
+ if (element = element.return)
2439
+ callback(element);
2440
+ }
2441
+ }
2442
+
2443
+ /**
2444
+ * @param {object} element
2445
+ * @param {number} index
2446
+ * @param {object[]} children
2447
+ * @param {function} callback
2448
+ */
2449
+ function prefixer (element, index, children, callback) {
2450
+ if (element.length > -1)
2451
+ if (!element.return)
2452
+ switch (element.type) {
2453
+ case DECLARATION: element.return = prefix(element.value, element.length, children);
2454
+ return
2455
+ case KEYFRAMES:
2456
+ return serialize([copy(element, {value: replace(element.value, '@', '@' + WEBKIT)})], callback)
2457
+ case RULESET:
2458
+ if (element.length)
2459
+ return combine(children = element.props, function (value) {
2460
+ switch (match(value, callback = /(::plac\w+|:read-\w+)/)) {
2461
+ // :read-(only|write)
2462
+ case ':read-only': case ':read-write':
2463
+ lift(copy(element, {props: [replace(value, /:(read-\w+)/, ':' + MOZ + '$1')]}));
2464
+ lift(copy(element, {props: [value]}));
2465
+ assign(element, {props: filter(children, callback)});
2466
+ break
2467
+ // :placeholder
2468
+ case '::placeholder':
2469
+ lift(copy(element, {props: [replace(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]}));
2470
+ lift(copy(element, {props: [replace(value, /:(plac\w+)/, ':' + MOZ + '$1')]}));
2471
+ lift(copy(element, {props: [replace(value, /:(plac\w+)/, MS + 'input-$1')]}));
2472
+ lift(copy(element, {props: [value]}));
2473
+ assign(element, {props: filter(children, callback)});
2474
+ break
2475
+ }
2476
+
2477
+ return ''
2478
+ })
2479
+ }
2480
+ }
2481
+
2482
+ var unitlessKeys = {
2483
+ animationIterationCount: 1,
2484
+ aspectRatio: 1,
2485
+ borderImageOutset: 1,
2486
+ borderImageSlice: 1,
2487
+ borderImageWidth: 1,
2488
+ boxFlex: 1,
2489
+ boxFlexGroup: 1,
2490
+ boxOrdinalGroup: 1,
2491
+ columnCount: 1,
2492
+ columns: 1,
2493
+ flex: 1,
2494
+ flexGrow: 1,
2495
+ flexPositive: 1,
2496
+ flexShrink: 1,
2497
+ flexNegative: 1,
2498
+ flexOrder: 1,
2499
+ gridRow: 1,
2500
+ gridRowEnd: 1,
2501
+ gridRowSpan: 1,
2502
+ gridRowStart: 1,
2503
+ gridColumn: 1,
2504
+ gridColumnEnd: 1,
2505
+ gridColumnSpan: 1,
2506
+ gridColumnStart: 1,
2507
+ msGridRow: 1,
2508
+ msGridRowSpan: 1,
2509
+ msGridColumn: 1,
2510
+ msGridColumnSpan: 1,
2511
+ fontWeight: 1,
2512
+ lineHeight: 1,
2513
+ opacity: 1,
2514
+ order: 1,
2515
+ orphans: 1,
2516
+ tabSize: 1,
2517
+ widows: 1,
2518
+ zIndex: 1,
2519
+ zoom: 1,
2520
+ WebkitLineClamp: 1,
2521
+ // SVG-related properties
2522
+ fillOpacity: 1,
2523
+ floodOpacity: 1,
2524
+ stopOpacity: 1,
2525
+ strokeDasharray: 1,
2526
+ strokeDashoffset: 1,
2527
+ strokeMiterlimit: 1,
2528
+ strokeOpacity: 1,
2529
+ strokeWidth: 1
2530
+ };
2531
+
2532
+ var f="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",m="active",y="data-styled-version",v="6.1.13",g="/*!sc*/\n",S="undefined"!=typeof window&&"HTMLElement"in window,w=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),E=/invalid hook call/i,N=new Set,P=function(t,n){if("production"!==process.env.NODE_ENV){var r=n?' with the id of "'.concat(n,'"'):"",s="The component ".concat(t).concat(r," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",i=console.error;try{var a=!0;console.error=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];E.test(t)?(a=!1,N.delete(s)):i.apply(void 0,__spreadArray([t],n,!1));},useRef(),a&&!N.has(s)&&(console.warn(s),N.add(s));}catch(e){E.test(e.message)&&N.delete(s);}finally{console.error=i;}}},_$1=Object.freeze([]),C=Object.freeze({});function I(e,t,n){return void 0===n&&(n=C),e.theme!==n.theme&&e.theme||t||n.theme}var A=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),O=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,D=/(^-|-$)/g;function R(e){return e.replace(O,"-").replace(D,"")}var T=/(a)(d)/gi,k=52,j=function(e){return String.fromCharCode(e+(e>25?39:97))};function x(e){var t,n="";for(t=Math.abs(e);t>k;t=t/k|0)n=j(t%k)+n;return (j(t%k)+n).replace(T,"$1-$2")}var V,F=5381,M=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},z=function(e){return M(F,e)};function $(e){return x(z(e)>>>0)}function B(e){return "production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function L(e){return "string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var G="function"==typeof Symbol&&Symbol.for,Y=G?Symbol.for("react.memo"):60115,q=G?Symbol.for("react.forward_ref"):60112,W={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},H={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},U={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},J=((V={})[q]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},V[Y]=U,V);function X(e){return ("type"in(t=e)&&t.type.$$typeof)===Y?U:"$$typeof"in e?J[e.$$typeof]:W;var t;}var Z=Object.defineProperty,K=Object.getOwnPropertyNames,Q=Object.getOwnPropertySymbols,ee=Object.getOwnPropertyDescriptor,te=Object.getPrototypeOf,ne=Object.prototype;function re(e,t,n){if("string"!=typeof t){if(ne){var r=te(t);r&&r!==ne&&re(e,r,n);}var o=K(t);Q&&(o=o.concat(Q(t)));for(var s=X(e),i=X(t),a=0;a<o.length;++a){var c=o[a];if(!(c in H||n&&n[c]||i&&c in i||s&&c in s)){var l=ee(t,c);try{Z(e,c,l);}catch(e){}}}}return e}function oe(e){return "function"==typeof e}function se(e){return "object"==typeof e&&"styledComponentId"in e}function ie(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ae(e,t){if(0===e.length)return "";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function ce(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function le(e,t,n){if(void 0===n&&(n=!1),!n&&!ce(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=le(e[r],t[r]);else if(ce(t))for(var r in t)e[r]=le(e[r],t[r]);return e}function ue(e,t){Object.defineProperty(e,"toString",{value:t});}var pe="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function de(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,s=e.length;o<s;o+=1)r.push(e[o]);return r.forEach(function(e){n=n.replace(/%[a-z]/,e);}),n}function he(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return "production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(de.apply(void 0,__spreadArray([pe[t]],n,!1)).trim())}var fe=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e;}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw he(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var s=r;s<o;s++)this.groupSizes[s]=0;}for(var i=this.indexOfGroup(e+1),a=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++);},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n);}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,s=r;s<o;s++)t+="".concat(this.tag.getRule(s)).concat(g);return t},e}(),me=1<<30,ye=new Map,ve=new Map,ge=1,Se=function(e){if(ye.has(e))return ye.get(e);for(;ve.has(ge);)ge++;var t=ge++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>me))throw he(16,"".concat(t));return ye.set(e,t),ve.set(t,e),t},we=function(e,t){ge=t+1,ye.set(e,t),ve.set(t,e);},be="style[".concat(f,"][").concat(y,'="').concat(v,'"]'),Ee=new RegExp("^".concat(f,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ne=function(e,t,n){for(var r,o=n.split(","),s=0,i=o.length;s<i;s++)(r=o[s])&&e.registerName(t,r);},Pe=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(g),o=[],s=0,i=r.length;s<i;s++){var a=r[s].trim();if(a){var c=a.match(Ee);if(c){var l=0|parseInt(c[1],10),u=c[2];0!==l&&(we(u,l),Ne(e,u,c[3]),e.getTag().insertRules(l,o)),o.length=0;}else o.push(a);}}},_e=function(e){for(var t=document.querySelectorAll(be),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(f)!==m&&(Pe(e,o),o.parentNode&&o.parentNode.removeChild(o));}};function Ce(){return "undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var Ie=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(f,"]")));return t[t.length-1]}(n),s=void 0!==o?o.nextSibling:null;r.setAttribute(f,m),r.setAttribute(y,v);var i=Ce();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},Ae=function(){function e(e){this.element=Ie(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw he(17)}(this.element),this.length=0;}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return !1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--;},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Oe=function(){function e(e){this.element=Ie(e),this.nodes=this.element.childNodes,this.length=0;}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return !1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),De=function(){function e(e){this.rules=[],this.length=0;}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Re=S,Te={isServer:!S,useCSSOMInjection:!w},ke=function(){function e(e,n,r){void 0===e&&(e=C),void 0===n&&(n={});var o=this;this.options=__assign(__assign({},Te),e),this.gs=n,this.names=new Map(r),this.server=!!e.isServer,!this.server&&S&&Re&&(Re=!1,_e(this)),ue(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return ve.get(e)}(n);if(void 0===o)return "continue";var s=e.names.get(o),i=t.getGroup(n);if(void 0===s||!s.size||0===i.length)return "continue";var a="".concat(f,".g").concat(n,'[id="').concat(o,'"]'),c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+="".concat(e,","));}),r+="".concat(i).concat(a,'{content:"').concat(c,'"}').concat(g);},s=0;s<n;s++)o(s);return r}(o)});}return e.registerId=function(e){return Se(e)},e.prototype.rehydrate=function(){!this.server&&S&&_e(this);},e.prototype.reconstructWithOptions=function(n,r){return void 0===r&&(r=!0),new e(__assign(__assign({},this.options),n),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new De(n):t?new Ae(n):new Oe(n)}(this.options),new fe(e)));var e;},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Se(e),this.names.has(e))this.names.get(e).add(t);else {var n=new Set;n.add(t),this.names.set(e,n);}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Se(e),n);},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear();},e.prototype.clearRules=function(e){this.getTag().clearGroup(Se(e)),this.clearNames(e);},e.prototype.clearTag=function(){this.tag=void 0;},e}(),je=/&/g,xe=/^\s*\/\/.*$/gm;function Ve(e,t){return e.map(function(e){return "rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return "".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Ve(e.children,t)),e})}function Fe(e){var t,n,r,o=void 0===e?C:e,s=o.options,i=void 0===s?C:s,a=o.plugins,c=void 0===a?_$1:a,l=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},u=c.slice();u.push(function(e){e.type===RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(je,n).replace(r,l));}),i.prefix&&u.push(prefixer),u.push(stringify);var p=function(e,o,s,a){void 0===o&&(o=""),void 0===s&&(s=""),void 0===a&&(a="&"),t=a,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var c=e.replace(xe,""),l=compile(s||o?"".concat(s," ").concat(o," { ").concat(c," }"):c);i.namespace&&(l=Ve(l,i.namespace));var p=[];return serialize(l,middleware(u.concat(rulesheet(function(e){return p.push(e)})))),p};return p.hash=c.length?c.reduce(function(e,t){return t.name||he(15),M(e,t.name)},F).toString():"",p}var Me=new ke,ze=Fe(),$e=r.createContext({shouldForwardProp:void 0,styleSheet:Me,stylis:ze});$e.Consumer;r.createContext(void 0);function Ge(){return useContext($e)}var qe=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ze);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"));},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ue(this,function(){throw he(12,String(n.name))});}return e.prototype.getName=function(e){return void 0===e&&(e=ze),this.name+e.hash},e}(),We=function(e){return e>="A"&&e<="Z"};function He(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;We(r)?t+="-"+r.toLowerCase():t+=r;}return t.startsWith("ms-")?"-"+t:t}var Ue=function(e){return null==e||!1===e||""===e},Je=function(t){var n,r,o=[];for(var s in t){var i=t[s];t.hasOwnProperty(s)&&!Ue(i)&&(Array.isArray(i)&&i.isCss||oe(i)?o.push("".concat(He(s),":"),i,";"):ce(i)?o.push.apply(o,__spreadArray(__spreadArray(["".concat(s," {")],Je(i),!1),["}"],!1)):o.push("".concat(He(s),": ").concat((n=s,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||n in unitlessKeys||n.startsWith("--")?String(r).trim():"".concat(r,"px")),";")));}return o};function Xe(e,t,n,r){if(Ue(e))return [];if(se(e))return [".".concat(e.styledComponentId)];if(oe(e)){if(!oe(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return [e];var o=e(t);return "production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||o instanceof qe||ce(o)||null===o||console.error("".concat(B(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Xe(o,t,n,r)}var s;return e instanceof qe?n?(e.inject(n,r),[e.getName(r)]):[e]:ce(e)?Je(e):Array.isArray(e)?Array.prototype.concat.apply(_$1,e.map(function(e){return Xe(e,t,n,r)})):[e.toString()]}function Ze(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(oe(n)&&!se(n))return !1}return !0}var Ke=z(v),Qe=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Ze(e),this.componentId=t,this.baseHash=M(Ke,t),this.baseStyle=n,ke.registerId(t);}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=ie(r,this.staticRulesId);else {var o=ae(Xe(this.rules,e,t,n)),s=x(M(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(o,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i);}r=ie(r,s),this.staticRulesId=s;}else {for(var a=M(this.baseHash,n.hash),c="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)c+=u,"production"!==process.env.NODE_ENV&&(a=M(a,u));else if(u){var p=ae(Xe(u,e,t,n));a=M(a,p+l),c+=p;}}if(c){var d=x(a>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(c,".".concat(d),void 0,this.componentId)),r=ie(r,d);}}return r},e}(),et=r.createContext(void 0);et.Consumer;var ot={},st=new Set;function it(e,o,s){var i=se(e),a=e,c=!L(e),p=o.attrs,d=void 0===p?_$1:p,h=o.componentId,f=void 0===h?function(e,t){var n="string"!=typeof e?"sc":R(e);ot[n]=(ot[n]||0)+1;var r="".concat(n,"-").concat($(v+n+ot[n]));return t?"".concat(t,"-").concat(r):r}(o.displayName,o.parentComponentId):h,m=o.displayName,y=void 0===m?function(e){return L(e)?"styled.".concat(e):"Styled(".concat(B(e),")")}(e):m,g=o.displayName&&o.componentId?"".concat(R(o.displayName),"-").concat(o.componentId):o.componentId||f,S=i&&a.attrs?a.attrs.concat(d).filter(Boolean):d,w=o.shouldForwardProp;if(i&&a.shouldForwardProp){var b=a.shouldForwardProp;if(o.shouldForwardProp){var E=o.shouldForwardProp;w=function(e,t){return b(e,t)&&E(e,t)};}else w=b;}var N=new Qe(s,g,i?a.componentStyle:void 0);function O(e,o){return function(e,o,s){var i=e.attrs,a=e.componentStyle,c=e.defaultProps,p=e.foldedComponentIds,d=e.styledComponentId,h=e.target,f=r.useContext(et),m=Ge(),y=e.shouldForwardProp||m.shouldForwardProp;"production"!==process.env.NODE_ENV&&useDebugValue(d);var v=I(o,f,c)||C,g=function(e,n,r){for(var o,s=__assign(__assign({},n),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=oe(o=e[i])?o(s):o;for(var c in a)s[c]="className"===c?ie(s[c],a[c]):"style"===c?__assign(__assign({},s[c]),a[c]):a[c];}return n.className&&(s.className=ie(s.className,n.className)),s}(i,o,v),S=g.as||h,w={};for(var b in g)void 0===g[b]||"$"===b[0]||"as"===b||"theme"===b&&g.theme===v||("forwardedAs"===b?w.as=g.forwardedAs:y&&!y(b,S)||(w[b]=g[b],y||"development"!==process.env.NODE_ENV||isPropValid(b)||st.has(b)||!A.has(S)||(st.add(b),console.warn('styled-components: it looks like an unknown prop "'.concat(b,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var E=function(e,t){var n=Ge(),r=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return "production"!==process.env.NODE_ENV&&useDebugValue(r),r}(a,g);"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(E);var N=ie(p,d);return E&&(N+=" "+E),g.className&&(N+=" "+g.className),w[L(S)&&!A.has(S)?"class":"className"]=N,w.ref=s,createElement$1(S,w)}(D,e,o)}O.displayName=y;var D=r.forwardRef(O);return D.attrs=S,D.componentStyle=N,D.displayName=y,D.shouldForwardProp=w,D.foldedComponentIds=i?ie(a.foldedComponentIds,a.styledComponentId):"",D.styledComponentId=g,D.target=i?a.target:e,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)le(e,o[r],!0);return e}({},a.defaultProps,e):e;}}),"production"!==process.env.NODE_ENV&&(P(y,g),D.warnTooManyClasses=function(e,t){var n={},r=!1;return function(o){if(!r&&(n[o]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,n={};}}}(y,g)),ue(D,function(){return ".".concat(D.styledComponentId)}),c&&re(D,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),D}function at(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var ct=function(e){return Object.assign(e,{isCss:!0})};function lt(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(oe(t)||ce(t))return ct(Xe(at(_$1,__spreadArray([t],n,!0))));var o=t;return 0===n.length&&1===o.length&&"string"==typeof o[0]?Xe(o):ct(Xe(at(o,n)))}function ut(n,r,o){if(void 0===o&&(o=C),!r)throw he(1,r);var s=function(t){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return n(r,o,lt.apply(void 0,__spreadArray([t],s,!1)))};return s.attrs=function(e){return ut(n,r,__assign(__assign({},o),{attrs:Array.prototype.concat(o.attrs,e).filter(Boolean)}))},s.withConfig=function(e){return ut(n,r,__assign(__assign({},o),e))},s}var pt=function(e){return ut(it,e)},dt=pt;A.forEach(function(e){dt[e]=pt(e);});"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var wt="__sc-".concat(f,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[wt]||(window[wt]=0),1===window[wt]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window[wt]+=1);
2533
+
2534
+ let _ = t => t,
2535
+ _t,
2536
+ _t2,
2537
+ _t3,
2538
+ _t4,
2539
+ _t5,
2540
+ _t6,
2541
+ _t7,
2542
+ _t8,
2543
+ _t9,
2544
+ _t10,
2545
+ _t11,
2546
+ _t12,
2547
+ _t13;
2548
+ const Label = dt.label(_t || (_t = _`
2549
+ ${0}
2550
+ `), ({
2551
+ $required,
2552
+ $variant
2553
+ }) => $required && lt(_t2 || (_t2 = _`
2554
+ &::after {
2555
+ content: '*';
2556
+ margin-left: ${0};
2557
+ color: ${0};
2558
+ }
2559
+ `), ({
2560
+ theme
2561
+ }) => theme.components.input.requiredGap, ({
2562
+ theme
2563
+ }) => theme.components.input[$variant].text.color.required.default));
2564
+ const InputWrapper = dt.div(_t3 || (_t3 = _`
2565
+ display: flex;
2566
+ flex-direction: column;
2567
+ font-weight: ${0};
2568
+ line-height: ${0};
2569
+ font-size: ${0};
2570
+ letter-spacing: ${0};
2571
+ color: ${0};
2572
+
2573
+ ${0}
2574
+ `), ({
2575
+ theme
2576
+ }) => theme.components.input.fieldLabel.fontWeight, ({
2577
+ theme
2578
+ }) => theme.components.input.fieldLabel.lineHeight, ({
2579
+ theme
2580
+ }) => theme.components.input.fieldLabel.fontSize, ({
2581
+ theme
2582
+ }) => theme.components.input.fieldLabel.letterSpacing, ({
2583
+ theme,
2584
+ $variant
2585
+ }) => theme.components.input[$variant].text.color.fieldLabel.default, ({
2586
+ disabled,
2587
+ $variant
2588
+ }) => disabled && lt(_t4 || (_t4 = _`
2589
+ pointer-events: none;
2590
+ ${0}, ${0}::after, ${0}, ${0}::placeholder {
2591
+ color: ${0};
2592
+ }
2593
+
2594
+ ${0} {
2595
+ & label {
2596
+ color: ${0};
2597
+ }
2598
+ }
2599
+ `), Label, Label, Input, Input, ({
2600
+ theme
2601
+ }) => theme.components.input[$variant].text.color.fieldLabel.disable, Icon, ({
2602
+ theme
2603
+ }) => theme.components.input[$variant].icon.color.disable));
2604
+ const Container = dt.div(_t5 || (_t5 = _`
2605
+ display: flex;
2606
+ flex: 1;
2607
+ padding: ${0};
2608
+ background-color: ${0};
2609
+ margin-bottom: ${0};
2610
+ border-radius: ${0};
2611
+
2612
+ &:focus-within {
2613
+ outline: ${0};
2614
+
2615
+ ${0} {
2616
+ color: ${0};
2617
+ }
2618
+ }
2619
+
2620
+ ${0}
2621
+
2622
+ ${0}
2623
+
2624
+
2625
+ ${0}
2626
+
2627
+ ${0}
2628
+ `), ({
2629
+ theme
2630
+ }) => `${theme.components.input.paddingVertical} ${theme.components.input.paddingHorizontal}`, ({
2631
+ theme,
2632
+ $variant
2633
+ }) => theme.components.input[$variant].container.color.default, ({
2634
+ theme,
2635
+ $hasError
2636
+ }) => $hasError ? theme.components.input.contentGap : 0, ({
2637
+ theme
2638
+ }) => theme.components.input.borderRadius, ({
2639
+ theme,
2640
+ $hasError,
2641
+ $variant
2642
+ }) => $hasError ? `1px solid ${theme.components.input[$variant].container.border.error}` : `1px solid ${theme.components.input[$variant].container.border.focus}`, Label, ({
2643
+ theme,
2644
+ $variant
2645
+ }) => theme.components.input[$variant].text.color.fieldLabel.focus, ({
2646
+ $variant
2647
+ }) => $variant === 'border' && lt(_t6 || (_t6 = _`
2648
+ background-color: ${0};
2649
+ outline: ${0};
2650
+ `), ({
2651
+ theme
2652
+ }) => theme.components.input[$variant].container.color.default, ({
2653
+ theme
2654
+ }) => `1px solid ${theme.components.input[$variant].container.border.default}`), ({
2655
+ $hasValue,
2656
+ $variant
2657
+ }) => $hasValue && lt(_t7 || (_t7 = _`
2658
+ ${0} {
2659
+ color: ${0};
2660
+ }
2661
+ `), Label, ({
2662
+ theme
2663
+ }) => theme.components.input[$variant].text.color.fieldLabel.filled), ({
2664
+ $hasError,
2665
+ $variant
2666
+ }) => $hasError && lt(_t8 || (_t8 = _`
2667
+ outline: ${0};
2668
+ `), ({
2669
+ theme
2670
+ }) => `1px solid ${theme.components.input[$variant].container.border.error}`), ({
2671
+ $hasError,
2672
+ $hasValue,
2673
+ $variant
2674
+ }) => $hasError && $hasValue && lt(_t9 || (_t9 = _`
2675
+ ${0} {
2676
+ color: ${0};
2677
+ }
2678
+ `), Label, ({
2679
+ theme
2680
+ }) => theme.components.input[$variant].text.color.fieldLabel.errorFilled));
2681
+ const LeftContainer = dt.div(_t10 || (_t10 = _`
2682
+ display: flex;
2683
+ flex-direction: ${0};
2684
+ flex: 1;
2685
+ ${0}
2686
+ gap: ${0};
2687
+
2688
+ ${0}
2689
+ `), ({
2690
+ $direction
2691
+ }) => $direction || 'column', ({
2692
+ $before
2693
+ }) => $before && 'position: relative;', ({
2694
+ theme
2695
+ }) => theme.components.input.contentGap, ({
2696
+ theme,
2697
+ $before,
2698
+ $variant
2699
+ }) => $before && $variant && `
2700
+ &::before {
2701
+ content: '/';
2702
+ color: ${theme.components.input[$variant].text.color.inputPlaceholder.default};
2703
+ line-height: ${theme.components.input.inputPlaceholder.lineHeight};
2704
+ font-size: ${theme.components.input.inputPlaceholder.fontSize};
2705
+ font-weight: ${theme.components.input.inputPlaceholder.fontWeight};
2706
+ display: flex;
2707
+ align-items: center;
2708
+ position: absolute;
2709
+ opacity: 0.8;
2710
+ left: 32px;
2711
+ }
2712
+ &::after {
2713
+ content: '/';
2714
+ color: ${theme.components.input[$variant].text.color.inputPlaceholder.default};
2715
+ line-height: ${theme.components.input.inputPlaceholder.lineHeight};
2716
+ font-size: ${theme.components.input.inputPlaceholder.fontSize};
2717
+ font-weight: ${theme.components.input.inputPlaceholder.fontWeight};
2718
+ display: flex;
2719
+ align-items: center;
2720
+ position: absolute;
2721
+ opacity: 0.8;
2722
+ left: 79px;
2723
+ }
2724
+ `);
2725
+ const Input = dt.input(_t11 || (_t11 = _`
2726
+ border: none;
2727
+ background-color: inherit;
2728
+ opacity: 1;
2729
+ width: ${0};
2730
+ outline: unset;
2731
+ padding: 0;
2732
+ font-weight: ${0};
2733
+ line-height: ${0};
2734
+ font-size: ${0};
2735
+ letter-spacing: ${0};
2736
+
2737
+ &::placeholder {
2738
+ color: ${0};
2739
+ }
2740
+
2741
+ &:-webkit-autofill,
2742
+ &:-webkit-autofill:focus {
2743
+ transition: background-color 600000s 0s, color 600000s 0s;
2744
+ }
2745
+
2746
+ /* Chrome, Safari, Edge, Opera */
2747
+ &::-webkit-outer-spin-button,
2748
+ &::-webkit-inner-spin-button {
2749
+ -webkit-appearance: none;
2750
+ margin: 0;
2751
+ }
2752
+
2753
+ /* Firefox */
2754
+ &[type='number'] {
2755
+ -moz-appearance: textfield;
2756
+ }
2757
+ `), ({
2758
+ $width
2759
+ }) => $width || '100%', ({
2760
+ theme
2761
+ }) => theme.components.input.inputPlaceholder.fontWeight, ({
2762
+ theme
2763
+ }) => theme.components.input.inputPlaceholder.lineHeight, ({
2764
+ theme
2765
+ }) => theme.components.input.inputPlaceholder.fontSize, ({
2766
+ theme
2767
+ }) => theme.components.input.inputPlaceholder.letterSpacing, ({
2768
+ theme,
2769
+ $variant
2770
+ }) => theme.components.input[$variant].text.color.inputPlaceholder.default);
2771
+ const Icon = dt.div(_t12 || (_t12 = _`
2772
+ display: flex;
2773
+ margin: auto 0;
2774
+ cursor: pointer;
2775
+
2776
+ & label {
2777
+ color: ${0};
2778
+ }
2779
+ `), ({
2780
+ theme,
2781
+ $hasError,
2782
+ $variant
2783
+ }) => $hasError ? theme.components.input[$variant].icon.color.error : theme.components.input[$variant].icon.color.default);
2784
+ const Error$1 = dt.span(_t13 || (_t13 = _`
2785
+ color: ${0};
2786
+ font-weight: ${0};
2787
+ line-height: ${0};
2788
+ font-size: ${0};
2789
+ letter-spacing: ${0};
2790
+ padding: 0 ${0};
2791
+ `), ({
2792
+ theme,
2793
+ $variant
2794
+ }) => theme.components.input[$variant].text.color.errorMessage.error, ({
2795
+ theme
2796
+ }) => theme.components.input.error.fontWeight, ({
2797
+ theme
2798
+ }) => theme.components.input.error.lineHeight, ({
2799
+ theme
2800
+ }) => theme.components.input.error.fontSize, ({
2801
+ theme
2802
+ }) => theme.components.input.error.letterSpacing, ({
2803
+ theme
2804
+ }) => theme.components.input.paddingHorizontal);
2805
+
2806
+ const DateInput = /*#__PURE__*/forwardRef(({
2807
+ id: _id = 'date-of-birth-input-id',
2808
+ dataTestId: _dataTestId = 'date-of-birth-input-test-id',
2809
+ variant: _variant = 'grey',
2810
+ errorMessage,
2811
+ label,
2812
+ required,
2813
+ disabled,
2814
+ value,
2815
+ onChange,
2816
+ onBlur
2817
+ }, ref) => {
2818
+ const [, forceUpdate] = useReducer(x => x + 1, 0);
2819
+ const day = useRef(value ? String(value).substring(0, 2) : '');
2820
+ const month = useRef(value ? String(value).substring(3, 5) : '');
2821
+ const year = useRef(value ? String(value).substring(6, 10) : '');
2822
+ const updateDate = e => {
2823
+ onChange && onChange(Object.assign(Object.assign({}, e), {
2824
+ target: Object.assign(Object.assign({}, e.target), {
2825
+ value: `${year.current}-${month.current}-${day.current}`
2826
+ })
2827
+ }));
2828
+ };
2829
+ const handleDayChange = e => {
2830
+ const value = e.target.value;
2831
+ if (value.length > 2) return;
2832
+ day.current = value;
2833
+ if (day.current.length == 2) {
2834
+ handleNextInput('month');
2835
+ }
2836
+ updateDate(e);
2837
+ };
2838
+ const handleMonthChange = e => {
2839
+ const value = e.target.value;
2840
+ if (value.length > 2) return;
2841
+ month.current = value;
2842
+ if (month.current.length == 2) {
2843
+ handleNextInput('year');
2844
+ }
2845
+ updateDate(e);
2846
+ };
2847
+ const handleYearChange = e => {
2848
+ const value = e.target.value;
2849
+ if (value.length > 4) return;
2850
+ year.current = value;
2851
+ updateDate(e);
2852
+ };
2853
+ const handleBlur = _ => {
2854
+ if (!onBlur) return;
2855
+ // @ts-ignore
2856
+ onBlur(`${year.current}-${month.current}-${day.current}`);
2857
+ };
2858
+ const handleNextInput = next => {
2859
+ const input = document.getElementById(`${_id}-input-${next}`);
2860
+ input === null || input === void 0 ? void 0 : input.focus();
2861
+ };
2862
+ useEffect(() => {
2863
+ if (!value || typeof value !== 'string') return;
2864
+ const [yearValue, monthValue, dayValue] = value.split('-');
2865
+ day.current = dayValue;
2866
+ month.current = monthValue;
2867
+ year.current = yearValue;
2868
+ forceUpdate();
2869
+ }, [value]);
2870
+ return jsxs(InputWrapper, {
2871
+ disabled: !!disabled,
2872
+ "data-testid": _dataTestId,
2873
+ "$variant": _variant,
2874
+ ref: ref,
2875
+ children: [jsx(Container, {
2876
+ id: `${_id}-container`,
2877
+ "data-testid": `${_dataTestId}-container`,
2878
+ "$hasError": !!errorMessage,
2879
+ "$hasValue": !!value && value !== '',
2880
+ "$variant": _variant,
2881
+ children: jsxs(LeftContainer, {
2882
+ "$before": false,
2883
+ children: [label && jsx(Label, {
2884
+ id: `${_id}-label`,
2885
+ "data-testid": `${_dataTestId}-label`,
2886
+ htmlFor: `${_id}-input`,
2887
+ "$required": !!required,
2888
+ "$variant": _variant,
2889
+ children: label
2890
+ }), jsxs(LeftContainer, {
2891
+ "$direction": 'row',
2892
+ "$variant": _variant,
2893
+ "$before": true,
2894
+ children: [jsx(Input, {
2895
+ id: `${_id}-input-day`,
2896
+ "data-testid": `${_dataTestId}-input-day`,
2897
+ type: 'number',
2898
+ pattern: "[0-9]*",
2899
+ disabled: disabled,
2900
+ value: day.current,
2901
+ required: required,
2902
+ "$variant": _variant,
2903
+ "$width": '40px',
2904
+ placeholder: 'DD',
2905
+ onChange: handleDayChange,
2906
+ onBlur: handleBlur,
2907
+ maxLength: 2
2908
+ }), jsx(Input, {
2909
+ id: `${_id}-input-month`,
2910
+ "data-testid": `${_dataTestId}-input-month`,
2911
+ type: 'number',
2912
+ pattern: "[0-9]*",
2913
+ disabled: disabled,
2914
+ value: month.current,
2915
+ required: required,
2916
+ "$variant": _variant,
2917
+ "$width": '43px',
2918
+ placeholder: 'MM',
2919
+ onChange: handleMonthChange,
2920
+ onBlur: handleBlur,
2921
+ maxLength: 2
2922
+ }), jsx(Input, {
2923
+ id: `${_id}-input-year`,
2924
+ "data-testid": `${_dataTestId}-input-year`,
2925
+ type: 'number',
2926
+ pattern: "[0-9]*",
2927
+ disabled: disabled,
2928
+ value: year.current,
2929
+ required: required,
2930
+ "$variant": _variant,
2931
+ "$width": '60px',
2932
+ placeholder: 'YYYY',
2933
+ onChange: handleYearChange,
2934
+ onBlur: handleBlur,
2935
+ maxLength: 4
2936
+ })]
2937
+ })]
2938
+ })
2939
+ }), !!errorMessage && jsx(Error$1, {
2940
+ id: `${_id}-error`,
2941
+ "datatest-id": `${_dataTestId}-error`,
2942
+ "$variant": _variant,
2943
+ children: errorMessage
2944
+ })]
2945
+ });
2946
+ });
2947
+ DateInput.displayName = 'DateInput';
2948
+
2949
+ export { DateInput };