@bolttech/atoms-segmented-control 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.cjs ADDED
@@ -0,0 +1,1988 @@
1
+ 'use client';
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ var jsxRuntime = require('react/jsx-runtime');
7
+ var react = require('react');
8
+ var frontendFoundations = require('@bolttech/frontend-foundations');
9
+ var styled = require('styled-components');
10
+ var uiUtils = require('@bolttech/ui-utils');
11
+
12
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
13
+
14
+ var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
15
+
16
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
17
+
18
+ var check = function (it) {
19
+ return it && it.Math === Math && it;
20
+ };
21
+
22
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
23
+ var global$e =
24
+ // eslint-disable-next-line es/no-global-this -- safe
25
+ check(typeof globalThis == 'object' && globalThis) ||
26
+ check(typeof window == 'object' && window) ||
27
+ // eslint-disable-next-line no-restricted-globals -- safe
28
+ check(typeof self == 'object' && self) ||
29
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
30
+ // eslint-disable-next-line no-new-func -- fallback
31
+ (function () { return this; })() || commonjsGlobal || Function('return this')();
32
+
33
+ var objectGetOwnPropertyDescriptor = {};
34
+
35
+ var fails$e = function (exec) {
36
+ try {
37
+ return !!exec();
38
+ } catch (error) {
39
+ return true;
40
+ }
41
+ };
42
+
43
+ var fails$d = fails$e;
44
+
45
+ // Detect IE8's incomplete defineProperty implementation
46
+ var descriptors = !fails$d(function () {
47
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
48
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
49
+ });
50
+
51
+ var fails$c = fails$e;
52
+
53
+ var functionBindNative = !fails$c(function () {
54
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
55
+ var test = (function () { /* empty */ }).bind();
56
+ // eslint-disable-next-line no-prototype-builtins -- safe
57
+ return typeof test != 'function' || test.hasOwnProperty('prototype');
58
+ });
59
+
60
+ var NATIVE_BIND$2 = functionBindNative;
61
+
62
+ var call$9 = Function.prototype.call;
63
+
64
+ var functionCall = NATIVE_BIND$2 ? call$9.bind(call$9) : function () {
65
+ return call$9.apply(call$9, arguments);
66
+ };
67
+
68
+ var objectPropertyIsEnumerable = {};
69
+
70
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
71
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
72
+ var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
73
+
74
+ // Nashorn ~ JDK8 bug
75
+ var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
76
+
77
+ // `Object.prototype.propertyIsEnumerable` method implementation
78
+ // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
79
+ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
80
+ var descriptor = getOwnPropertyDescriptor$1(this, V);
81
+ return !!descriptor && descriptor.enumerable;
82
+ } : $propertyIsEnumerable;
83
+
84
+ var createPropertyDescriptor$2 = function (bitmap, value) {
85
+ return {
86
+ enumerable: !(bitmap & 1),
87
+ configurable: !(bitmap & 2),
88
+ writable: !(bitmap & 4),
89
+ value: value
90
+ };
91
+ };
92
+
93
+ var NATIVE_BIND$1 = functionBindNative;
94
+
95
+ var FunctionPrototype$2 = Function.prototype;
96
+ var call$8 = FunctionPrototype$2.call;
97
+ var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$2.bind.bind(call$8, call$8);
98
+
99
+ var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
100
+ return function () {
101
+ return call$8.apply(fn, arguments);
102
+ };
103
+ };
104
+
105
+ var uncurryThis$f = functionUncurryThis;
106
+
107
+ var toString$5 = uncurryThis$f({}.toString);
108
+ var stringSlice$5 = uncurryThis$f(''.slice);
109
+
110
+ var classofRaw$2 = function (it) {
111
+ return stringSlice$5(toString$5(it), 8, -1);
112
+ };
113
+
114
+ var uncurryThis$e = functionUncurryThis;
115
+ var fails$b = fails$e;
116
+ var classof$3 = classofRaw$2;
117
+
118
+ var $Object$3 = Object;
119
+ var split = uncurryThis$e(''.split);
120
+
121
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
122
+ var indexedObject = fails$b(function () {
123
+ // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
124
+ // eslint-disable-next-line no-prototype-builtins -- safe
125
+ return !$Object$3('z').propertyIsEnumerable(0);
126
+ }) ? function (it) {
127
+ return classof$3(it) === 'String' ? split(it, '') : $Object$3(it);
128
+ } : $Object$3;
129
+
130
+ // we can't use just `it == null` since of `document.all` special case
131
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
132
+ var isNullOrUndefined$3 = function (it) {
133
+ return it === null || it === undefined;
134
+ };
135
+
136
+ var isNullOrUndefined$2 = isNullOrUndefined$3;
137
+
138
+ var $TypeError$6 = TypeError;
139
+
140
+ // `RequireObjectCoercible` abstract operation
141
+ // https://tc39.es/ecma262/#sec-requireobjectcoercible
142
+ var requireObjectCoercible$4 = function (it) {
143
+ if (isNullOrUndefined$2(it)) throw new $TypeError$6("Can't call method on " + it);
144
+ return it;
145
+ };
146
+
147
+ // toObject with fallback for non-array-like ES3 strings
148
+ var IndexedObject$1 = indexedObject;
149
+ var requireObjectCoercible$3 = requireObjectCoercible$4;
150
+
151
+ var toIndexedObject$4 = function (it) {
152
+ return IndexedObject$1(requireObjectCoercible$3(it));
153
+ };
154
+
155
+ var documentAll$2 = typeof document == 'object' && document.all;
156
+
157
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
158
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
159
+ var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
160
+
161
+ var documentAll_1 = {
162
+ all: documentAll$2,
163
+ IS_HTMLDDA: IS_HTMLDDA
164
+ };
165
+
166
+ var $documentAll$1 = documentAll_1;
167
+
168
+ var documentAll$1 = $documentAll$1.all;
169
+
170
+ // `IsCallable` abstract operation
171
+ // https://tc39.es/ecma262/#sec-iscallable
172
+ var isCallable$d = $documentAll$1.IS_HTMLDDA ? function (argument) {
173
+ return typeof argument == 'function' || argument === documentAll$1;
174
+ } : function (argument) {
175
+ return typeof argument == 'function';
176
+ };
177
+
178
+ var isCallable$c = isCallable$d;
179
+ var $documentAll = documentAll_1;
180
+
181
+ var documentAll = $documentAll.all;
182
+
183
+ var isObject$5 = $documentAll.IS_HTMLDDA ? function (it) {
184
+ return typeof it == 'object' ? it !== null : isCallable$c(it) || it === documentAll;
185
+ } : function (it) {
186
+ return typeof it == 'object' ? it !== null : isCallable$c(it);
187
+ };
188
+
189
+ var global$d = global$e;
190
+ var isCallable$b = isCallable$d;
191
+
192
+ var aFunction = function (argument) {
193
+ return isCallable$b(argument) ? argument : undefined;
194
+ };
195
+
196
+ var getBuiltIn$3 = function (namespace, method) {
197
+ return arguments.length < 2 ? aFunction(global$d[namespace]) : global$d[namespace] && global$d[namespace][method];
198
+ };
199
+
200
+ var uncurryThis$d = functionUncurryThis;
201
+
202
+ var objectIsPrototypeOf = uncurryThis$d({}.isPrototypeOf);
203
+
204
+ var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
205
+
206
+ var global$c = global$e;
207
+ var userAgent = engineUserAgent;
208
+
209
+ var process = global$c.process;
210
+ var Deno = global$c.Deno;
211
+ var versions = process && process.versions || Deno && Deno.version;
212
+ var v8 = versions && versions.v8;
213
+ var match, version;
214
+
215
+ if (v8) {
216
+ match = v8.split('.');
217
+ // in old Chrome, versions of V8 isn't V8 = Chrome / 10
218
+ // but their correct versions are not interesting for us
219
+ version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
220
+ }
221
+
222
+ // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
223
+ // so check `userAgent` even if `.v8` exists, but 0
224
+ if (!version && userAgent) {
225
+ match = userAgent.match(/Edge\/(\d+)/);
226
+ if (!match || match[1] >= 74) {
227
+ match = userAgent.match(/Chrome\/(\d+)/);
228
+ if (match) version = +match[1];
229
+ }
230
+ }
231
+
232
+ var engineV8Version = version;
233
+
234
+ /* eslint-disable es/no-symbol -- required for testing */
235
+ var V8_VERSION = engineV8Version;
236
+ var fails$a = fails$e;
237
+ var global$b = global$e;
238
+
239
+ var $String$4 = global$b.String;
240
+
241
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
242
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$a(function () {
243
+ var symbol = Symbol('symbol detection');
244
+ // Chrome 38 Symbol has incorrect toString conversion
245
+ // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
246
+ // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
247
+ // of course, fail.
248
+ return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) ||
249
+ // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
250
+ !Symbol.sham && V8_VERSION && V8_VERSION < 41;
251
+ });
252
+
253
+ /* eslint-disable es/no-symbol -- required for testing */
254
+ var NATIVE_SYMBOL$1 = symbolConstructorDetection;
255
+
256
+ var useSymbolAsUid = NATIVE_SYMBOL$1
257
+ && !Symbol.sham
258
+ && typeof Symbol.iterator == 'symbol';
259
+
260
+ var getBuiltIn$2 = getBuiltIn$3;
261
+ var isCallable$a = isCallable$d;
262
+ var isPrototypeOf = objectIsPrototypeOf;
263
+ var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
264
+
265
+ var $Object$2 = Object;
266
+
267
+ var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
268
+ return typeof it == 'symbol';
269
+ } : function (it) {
270
+ var $Symbol = getBuiltIn$2('Symbol');
271
+ return isCallable$a($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
272
+ };
273
+
274
+ var $String$3 = String;
275
+
276
+ var tryToString$1 = function (argument) {
277
+ try {
278
+ return $String$3(argument);
279
+ } catch (error) {
280
+ return 'Object';
281
+ }
282
+ };
283
+
284
+ var isCallable$9 = isCallable$d;
285
+ var tryToString = tryToString$1;
286
+
287
+ var $TypeError$5 = TypeError;
288
+
289
+ // `Assert: IsCallable(argument) is true`
290
+ var aCallable$1 = function (argument) {
291
+ if (isCallable$9(argument)) return argument;
292
+ throw new $TypeError$5(tryToString(argument) + ' is not a function');
293
+ };
294
+
295
+ var aCallable = aCallable$1;
296
+ var isNullOrUndefined$1 = isNullOrUndefined$3;
297
+
298
+ // `GetMethod` abstract operation
299
+ // https://tc39.es/ecma262/#sec-getmethod
300
+ var getMethod$2 = function (V, P) {
301
+ var func = V[P];
302
+ return isNullOrUndefined$1(func) ? undefined : aCallable(func);
303
+ };
304
+
305
+ var call$7 = functionCall;
306
+ var isCallable$8 = isCallable$d;
307
+ var isObject$4 = isObject$5;
308
+
309
+ var $TypeError$4 = TypeError;
310
+
311
+ // `OrdinaryToPrimitive` abstract operation
312
+ // https://tc39.es/ecma262/#sec-ordinarytoprimitive
313
+ var ordinaryToPrimitive$1 = function (input, pref) {
314
+ var fn, val;
315
+ if (pref === 'string' && isCallable$8(fn = input.toString) && !isObject$4(val = call$7(fn, input))) return val;
316
+ if (isCallable$8(fn = input.valueOf) && !isObject$4(val = call$7(fn, input))) return val;
317
+ if (pref !== 'string' && isCallable$8(fn = input.toString) && !isObject$4(val = call$7(fn, input))) return val;
318
+ throw new $TypeError$4("Can't convert object to primitive value");
319
+ };
320
+
321
+ var shared$4 = {exports: {}};
322
+
323
+ var global$a = global$e;
324
+
325
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
326
+ var defineProperty$2 = Object.defineProperty;
327
+
328
+ var defineGlobalProperty$3 = function (key, value) {
329
+ try {
330
+ defineProperty$2(global$a, key, { value: value, configurable: true, writable: true });
331
+ } catch (error) {
332
+ global$a[key] = value;
333
+ } return value;
334
+ };
335
+
336
+ var global$9 = global$e;
337
+ var defineGlobalProperty$2 = defineGlobalProperty$3;
338
+
339
+ var SHARED = '__core-js_shared__';
340
+ var store$3 = global$9[SHARED] || defineGlobalProperty$2(SHARED, {});
341
+
342
+ var sharedStore = store$3;
343
+
344
+ var store$2 = sharedStore;
345
+
346
+ (shared$4.exports = function (key, value) {
347
+ return store$2[key] || (store$2[key] = value !== undefined ? value : {});
348
+ })('versions', []).push({
349
+ version: '3.33.2',
350
+ mode: 'global',
351
+ copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
352
+ license: 'https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE',
353
+ source: 'https://github.com/zloirock/core-js'
354
+ });
355
+
356
+ var requireObjectCoercible$2 = requireObjectCoercible$4;
357
+
358
+ var $Object$1 = Object;
359
+
360
+ // `ToObject` abstract operation
361
+ // https://tc39.es/ecma262/#sec-toobject
362
+ var toObject$3 = function (argument) {
363
+ return $Object$1(requireObjectCoercible$2(argument));
364
+ };
365
+
366
+ var uncurryThis$c = functionUncurryThis;
367
+ var toObject$2 = toObject$3;
368
+
369
+ var hasOwnProperty = uncurryThis$c({}.hasOwnProperty);
370
+
371
+ // `HasOwnProperty` abstract operation
372
+ // https://tc39.es/ecma262/#sec-hasownproperty
373
+ // eslint-disable-next-line es/no-object-hasown -- safe
374
+ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
375
+ return hasOwnProperty(toObject$2(it), key);
376
+ };
377
+
378
+ var uncurryThis$b = functionUncurryThis;
379
+
380
+ var id = 0;
381
+ var postfix = Math.random();
382
+ var toString$4 = uncurryThis$b(1.0.toString);
383
+
384
+ var uid$2 = function (key) {
385
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$4(++id + postfix, 36);
386
+ };
387
+
388
+ var global$8 = global$e;
389
+ var shared$3 = shared$4.exports;
390
+ var hasOwn$6 = hasOwnProperty_1;
391
+ var uid$1 = uid$2;
392
+ var NATIVE_SYMBOL = symbolConstructorDetection;
393
+ var USE_SYMBOL_AS_UID = useSymbolAsUid;
394
+
395
+ var Symbol$1 = global$8.Symbol;
396
+ var WellKnownSymbolsStore = shared$3('wks');
397
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
398
+
399
+ var wellKnownSymbol$5 = function (name) {
400
+ if (!hasOwn$6(WellKnownSymbolsStore, name)) {
401
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)
402
+ ? Symbol$1[name]
403
+ : createWellKnownSymbol('Symbol.' + name);
404
+ } return WellKnownSymbolsStore[name];
405
+ };
406
+
407
+ var call$6 = functionCall;
408
+ var isObject$3 = isObject$5;
409
+ var isSymbol$1 = isSymbol$2;
410
+ var getMethod$1 = getMethod$2;
411
+ var ordinaryToPrimitive = ordinaryToPrimitive$1;
412
+ var wellKnownSymbol$4 = wellKnownSymbol$5;
413
+
414
+ var $TypeError$3 = TypeError;
415
+ var TO_PRIMITIVE = wellKnownSymbol$4('toPrimitive');
416
+
417
+ // `ToPrimitive` abstract operation
418
+ // https://tc39.es/ecma262/#sec-toprimitive
419
+ var toPrimitive$1 = function (input, pref) {
420
+ if (!isObject$3(input) || isSymbol$1(input)) return input;
421
+ var exoticToPrim = getMethod$1(input, TO_PRIMITIVE);
422
+ var result;
423
+ if (exoticToPrim) {
424
+ if (pref === undefined) pref = 'default';
425
+ result = call$6(exoticToPrim, input, pref);
426
+ if (!isObject$3(result) || isSymbol$1(result)) return result;
427
+ throw new $TypeError$3("Can't convert object to primitive value");
428
+ }
429
+ if (pref === undefined) pref = 'number';
430
+ return ordinaryToPrimitive(input, pref);
431
+ };
432
+
433
+ var toPrimitive = toPrimitive$1;
434
+ var isSymbol = isSymbol$2;
435
+
436
+ // `ToPropertyKey` abstract operation
437
+ // https://tc39.es/ecma262/#sec-topropertykey
438
+ var toPropertyKey$2 = function (argument) {
439
+ var key = toPrimitive(argument, 'string');
440
+ return isSymbol(key) ? key : key + '';
441
+ };
442
+
443
+ var global$7 = global$e;
444
+ var isObject$2 = isObject$5;
445
+
446
+ var document$1 = global$7.document;
447
+ // typeof document.createElement is 'object' in old IE
448
+ var EXISTS$1 = isObject$2(document$1) && isObject$2(document$1.createElement);
449
+
450
+ var documentCreateElement$1 = function (it) {
451
+ return EXISTS$1 ? document$1.createElement(it) : {};
452
+ };
453
+
454
+ var DESCRIPTORS$8 = descriptors;
455
+ var fails$9 = fails$e;
456
+ var createElement = documentCreateElement$1;
457
+
458
+ // Thanks to IE8 for its funny defineProperty
459
+ var ie8DomDefine = !DESCRIPTORS$8 && !fails$9(function () {
460
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
461
+ return Object.defineProperty(createElement('div'), 'a', {
462
+ get: function () { return 7; }
463
+ }).a !== 7;
464
+ });
465
+
466
+ var DESCRIPTORS$7 = descriptors;
467
+ var call$5 = functionCall;
468
+ var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
469
+ var createPropertyDescriptor$1 = createPropertyDescriptor$2;
470
+ var toIndexedObject$3 = toIndexedObject$4;
471
+ var toPropertyKey$1 = toPropertyKey$2;
472
+ var hasOwn$5 = hasOwnProperty_1;
473
+ var IE8_DOM_DEFINE$1 = ie8DomDefine;
474
+
475
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
476
+ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
477
+
478
+ // `Object.getOwnPropertyDescriptor` method
479
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
480
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
481
+ O = toIndexedObject$3(O);
482
+ P = toPropertyKey$1(P);
483
+ if (IE8_DOM_DEFINE$1) try {
484
+ return $getOwnPropertyDescriptor$1(O, P);
485
+ } catch (error) { /* empty */ }
486
+ if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$5(propertyIsEnumerableModule$1.f, O, P), O[P]);
487
+ };
488
+
489
+ var objectDefineProperty = {};
490
+
491
+ var DESCRIPTORS$6 = descriptors;
492
+ var fails$8 = fails$e;
493
+
494
+ // V8 ~ Chrome 36-
495
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
496
+ var v8PrototypeDefineBug = DESCRIPTORS$6 && fails$8(function () {
497
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
498
+ return Object.defineProperty(function () { /* empty */ }, 'prototype', {
499
+ value: 42,
500
+ writable: false
501
+ }).prototype !== 42;
502
+ });
503
+
504
+ var isObject$1 = isObject$5;
505
+
506
+ var $String$2 = String;
507
+ var $TypeError$2 = TypeError;
508
+
509
+ // `Assert: Type(argument) is Object`
510
+ var anObject$7 = function (argument) {
511
+ if (isObject$1(argument)) return argument;
512
+ throw new $TypeError$2($String$2(argument) + ' is not an object');
513
+ };
514
+
515
+ var DESCRIPTORS$5 = descriptors;
516
+ var IE8_DOM_DEFINE = ie8DomDefine;
517
+ var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
518
+ var anObject$6 = anObject$7;
519
+ var toPropertyKey = toPropertyKey$2;
520
+
521
+ var $TypeError$1 = TypeError;
522
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
523
+ var $defineProperty = Object.defineProperty;
524
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
525
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
526
+ var ENUMERABLE = 'enumerable';
527
+ var CONFIGURABLE$1 = 'configurable';
528
+ var WRITABLE = 'writable';
529
+
530
+ // `Object.defineProperty` method
531
+ // https://tc39.es/ecma262/#sec-object.defineproperty
532
+ objectDefineProperty.f = DESCRIPTORS$5 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
533
+ anObject$6(O);
534
+ P = toPropertyKey(P);
535
+ anObject$6(Attributes);
536
+ if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
537
+ var current = $getOwnPropertyDescriptor(O, P);
538
+ if (current && current[WRITABLE]) {
539
+ O[P] = Attributes.value;
540
+ Attributes = {
541
+ configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
542
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
543
+ writable: false
544
+ };
545
+ }
546
+ } return $defineProperty(O, P, Attributes);
547
+ } : $defineProperty : function defineProperty(O, P, Attributes) {
548
+ anObject$6(O);
549
+ P = toPropertyKey(P);
550
+ anObject$6(Attributes);
551
+ if (IE8_DOM_DEFINE) try {
552
+ return $defineProperty(O, P, Attributes);
553
+ } catch (error) { /* empty */ }
554
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$1('Accessors not supported');
555
+ if ('value' in Attributes) O[P] = Attributes.value;
556
+ return O;
557
+ };
558
+
559
+ var DESCRIPTORS$4 = descriptors;
560
+ var definePropertyModule$3 = objectDefineProperty;
561
+ var createPropertyDescriptor = createPropertyDescriptor$2;
562
+
563
+ var createNonEnumerableProperty$3 = DESCRIPTORS$4 ? function (object, key, value) {
564
+ return definePropertyModule$3.f(object, key, createPropertyDescriptor(1, value));
565
+ } : function (object, key, value) {
566
+ object[key] = value;
567
+ return object;
568
+ };
569
+
570
+ var makeBuiltIn$2 = {exports: {}};
571
+
572
+ var DESCRIPTORS$3 = descriptors;
573
+ var hasOwn$4 = hasOwnProperty_1;
574
+
575
+ var FunctionPrototype$1 = Function.prototype;
576
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
577
+ var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
578
+
579
+ var EXISTS = hasOwn$4(FunctionPrototype$1, 'name');
580
+ // additional protection from minified / mangled / dropped function names
581
+ var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
582
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype$1, 'name').configurable));
583
+
584
+ var functionName = {
585
+ EXISTS: EXISTS,
586
+ PROPER: PROPER,
587
+ CONFIGURABLE: CONFIGURABLE
588
+ };
589
+
590
+ var uncurryThis$a = functionUncurryThis;
591
+ var isCallable$7 = isCallable$d;
592
+ var store$1 = sharedStore;
593
+
594
+ var functionToString = uncurryThis$a(Function.toString);
595
+
596
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
597
+ if (!isCallable$7(store$1.inspectSource)) {
598
+ store$1.inspectSource = function (it) {
599
+ return functionToString(it);
600
+ };
601
+ }
602
+
603
+ var inspectSource$1 = store$1.inspectSource;
604
+
605
+ var global$6 = global$e;
606
+ var isCallable$6 = isCallable$d;
607
+
608
+ var WeakMap$1 = global$6.WeakMap;
609
+
610
+ var weakMapBasicDetection = isCallable$6(WeakMap$1) && /native code/.test(String(WeakMap$1));
611
+
612
+ var shared$2 = shared$4.exports;
613
+ var uid = uid$2;
614
+
615
+ var keys = shared$2('keys');
616
+
617
+ var sharedKey$2 = function (key) {
618
+ return keys[key] || (keys[key] = uid(key));
619
+ };
620
+
621
+ var hiddenKeys$4 = {};
622
+
623
+ var NATIVE_WEAK_MAP = weakMapBasicDetection;
624
+ var global$5 = global$e;
625
+ var isObject = isObject$5;
626
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
627
+ var hasOwn$3 = hasOwnProperty_1;
628
+ var shared$1 = sharedStore;
629
+ var sharedKey$1 = sharedKey$2;
630
+ var hiddenKeys$3 = hiddenKeys$4;
631
+
632
+ var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
633
+ var TypeError$1 = global$5.TypeError;
634
+ var WeakMap = global$5.WeakMap;
635
+ var set, get, has;
636
+
637
+ var enforce = function (it) {
638
+ return has(it) ? get(it) : set(it, {});
639
+ };
640
+
641
+ var getterFor = function (TYPE) {
642
+ return function (it) {
643
+ var state;
644
+ if (!isObject(it) || (state = get(it)).type !== TYPE) {
645
+ throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
646
+ } return state;
647
+ };
648
+ };
649
+
650
+ if (NATIVE_WEAK_MAP || shared$1.state) {
651
+ var store = shared$1.state || (shared$1.state = new WeakMap());
652
+ /* eslint-disable no-self-assign -- prototype methods protection */
653
+ store.get = store.get;
654
+ store.has = store.has;
655
+ store.set = store.set;
656
+ /* eslint-enable no-self-assign -- prototype methods protection */
657
+ set = function (it, metadata) {
658
+ if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
659
+ metadata.facade = it;
660
+ store.set(it, metadata);
661
+ return metadata;
662
+ };
663
+ get = function (it) {
664
+ return store.get(it) || {};
665
+ };
666
+ has = function (it) {
667
+ return store.has(it);
668
+ };
669
+ } else {
670
+ var STATE = sharedKey$1('state');
671
+ hiddenKeys$3[STATE] = true;
672
+ set = function (it, metadata) {
673
+ if (hasOwn$3(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
674
+ metadata.facade = it;
675
+ createNonEnumerableProperty$2(it, STATE, metadata);
676
+ return metadata;
677
+ };
678
+ get = function (it) {
679
+ return hasOwn$3(it, STATE) ? it[STATE] : {};
680
+ };
681
+ has = function (it) {
682
+ return hasOwn$3(it, STATE);
683
+ };
684
+ }
685
+
686
+ var internalState = {
687
+ set: set,
688
+ get: get,
689
+ has: has,
690
+ enforce: enforce,
691
+ getterFor: getterFor
692
+ };
693
+
694
+ var uncurryThis$9 = functionUncurryThis;
695
+ var fails$7 = fails$e;
696
+ var isCallable$5 = isCallable$d;
697
+ var hasOwn$2 = hasOwnProperty_1;
698
+ var DESCRIPTORS$2 = descriptors;
699
+ var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
700
+ var inspectSource = inspectSource$1;
701
+ var InternalStateModule = internalState;
702
+
703
+ var enforceInternalState = InternalStateModule.enforce;
704
+ var getInternalState$1 = InternalStateModule.get;
705
+ var $String$1 = String;
706
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
707
+ var defineProperty$1 = Object.defineProperty;
708
+ var stringSlice$4 = uncurryThis$9(''.slice);
709
+ var replace$2 = uncurryThis$9(''.replace);
710
+ var join = uncurryThis$9([].join);
711
+
712
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$7(function () {
713
+ return defineProperty$1(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
714
+ });
715
+
716
+ var TEMPLATE = String(String).split('String');
717
+
718
+ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
719
+ if (stringSlice$4($String$1(name), 0, 7) === 'Symbol(') {
720
+ name = '[' + replace$2($String$1(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
721
+ }
722
+ if (options && options.getter) name = 'get ' + name;
723
+ if (options && options.setter) name = 'set ' + name;
724
+ if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
725
+ if (DESCRIPTORS$2) defineProperty$1(value, 'name', { value: name, configurable: true });
726
+ else value.name = name;
727
+ }
728
+ if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
729
+ defineProperty$1(value, 'length', { value: options.arity });
730
+ }
731
+ try {
732
+ if (options && hasOwn$2(options, 'constructor') && options.constructor) {
733
+ if (DESCRIPTORS$2) defineProperty$1(value, 'prototype', { writable: false });
734
+ // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
735
+ } else if (value.prototype) value.prototype = undefined;
736
+ } catch (error) { /* empty */ }
737
+ var state = enforceInternalState(value);
738
+ if (!hasOwn$2(state, 'source')) {
739
+ state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
740
+ } return value;
741
+ };
742
+
743
+ // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
744
+ // eslint-disable-next-line no-extend-native -- required
745
+ Function.prototype.toString = makeBuiltIn$1(function toString() {
746
+ return isCallable$5(this) && getInternalState$1(this).source || inspectSource(this);
747
+ }, 'toString');
748
+
749
+ var isCallable$4 = isCallable$d;
750
+ var definePropertyModule$2 = objectDefineProperty;
751
+ var makeBuiltIn = makeBuiltIn$2.exports;
752
+ var defineGlobalProperty$1 = defineGlobalProperty$3;
753
+
754
+ var defineBuiltIn$2 = function (O, key, value, options) {
755
+ if (!options) options = {};
756
+ var simple = options.enumerable;
757
+ var name = options.name !== undefined ? options.name : key;
758
+ if (isCallable$4(value)) makeBuiltIn(value, name, options);
759
+ if (options.global) {
760
+ if (simple) O[key] = value;
761
+ else defineGlobalProperty$1(key, value);
762
+ } else {
763
+ try {
764
+ if (!options.unsafe) delete O[key];
765
+ else if (O[key]) simple = true;
766
+ } catch (error) { /* empty */ }
767
+ if (simple) O[key] = value;
768
+ else definePropertyModule$2.f(O, key, {
769
+ value: value,
770
+ enumerable: false,
771
+ configurable: !options.nonConfigurable,
772
+ writable: !options.nonWritable
773
+ });
774
+ } return O;
775
+ };
776
+
777
+ var objectGetOwnPropertyNames = {};
778
+
779
+ var ceil = Math.ceil;
780
+ var floor$1 = Math.floor;
781
+
782
+ // `Math.trunc` method
783
+ // https://tc39.es/ecma262/#sec-math.trunc
784
+ // eslint-disable-next-line es/no-math-trunc -- safe
785
+ var mathTrunc = Math.trunc || function trunc(x) {
786
+ var n = +x;
787
+ return (n > 0 ? floor$1 : ceil)(n);
788
+ };
789
+
790
+ var trunc = mathTrunc;
791
+
792
+ // `ToIntegerOrInfinity` abstract operation
793
+ // https://tc39.es/ecma262/#sec-tointegerorinfinity
794
+ var toIntegerOrInfinity$4 = function (argument) {
795
+ var number = +argument;
796
+ // eslint-disable-next-line no-self-compare -- NaN check
797
+ return number !== number || number === 0 ? 0 : trunc(number);
798
+ };
799
+
800
+ var toIntegerOrInfinity$3 = toIntegerOrInfinity$4;
801
+
802
+ var max$1 = Math.max;
803
+ var min$2 = Math.min;
804
+
805
+ // Helper for a popular repeating case of the spec:
806
+ // Let integer be ? ToInteger(index).
807
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
808
+ var toAbsoluteIndex$1 = function (index, length) {
809
+ var integer = toIntegerOrInfinity$3(index);
810
+ return integer < 0 ? max$1(integer + length, 0) : min$2(integer, length);
811
+ };
812
+
813
+ var toIntegerOrInfinity$2 = toIntegerOrInfinity$4;
814
+
815
+ var min$1 = Math.min;
816
+
817
+ // `ToLength` abstract operation
818
+ // https://tc39.es/ecma262/#sec-tolength
819
+ var toLength$2 = function (argument) {
820
+ return argument > 0 ? min$1(toIntegerOrInfinity$2(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
821
+ };
822
+
823
+ var toLength$1 = toLength$2;
824
+
825
+ // `LengthOfArrayLike` abstract operation
826
+ // https://tc39.es/ecma262/#sec-lengthofarraylike
827
+ var lengthOfArrayLike$1 = function (obj) {
828
+ return toLength$1(obj.length);
829
+ };
830
+
831
+ var toIndexedObject$2 = toIndexedObject$4;
832
+ var toAbsoluteIndex = toAbsoluteIndex$1;
833
+ var lengthOfArrayLike = lengthOfArrayLike$1;
834
+
835
+ // `Array.prototype.{ indexOf, includes }` methods implementation
836
+ var createMethod$1 = function (IS_INCLUDES) {
837
+ return function ($this, el, fromIndex) {
838
+ var O = toIndexedObject$2($this);
839
+ var length = lengthOfArrayLike(O);
840
+ var index = toAbsoluteIndex(fromIndex, length);
841
+ var value;
842
+ // Array#includes uses SameValueZero equality algorithm
843
+ // eslint-disable-next-line no-self-compare -- NaN check
844
+ if (IS_INCLUDES && el !== el) while (length > index) {
845
+ value = O[index++];
846
+ // eslint-disable-next-line no-self-compare -- NaN check
847
+ if (value !== value) return true;
848
+ // Array#indexOf ignores holes, Array#includes - not
849
+ } else for (;length > index; index++) {
850
+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
851
+ } return !IS_INCLUDES && -1;
852
+ };
853
+ };
854
+
855
+ var arrayIncludes = {
856
+ // `Array.prototype.includes` method
857
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
858
+ includes: createMethod$1(true),
859
+ // `Array.prototype.indexOf` method
860
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
861
+ indexOf: createMethod$1(false)
862
+ };
863
+
864
+ var uncurryThis$8 = functionUncurryThis;
865
+ var hasOwn$1 = hasOwnProperty_1;
866
+ var toIndexedObject$1 = toIndexedObject$4;
867
+ var indexOf$1 = arrayIncludes.indexOf;
868
+ var hiddenKeys$2 = hiddenKeys$4;
869
+
870
+ var push$1 = uncurryThis$8([].push);
871
+
872
+ var objectKeysInternal = function (object, names) {
873
+ var O = toIndexedObject$1(object);
874
+ var i = 0;
875
+ var result = [];
876
+ var key;
877
+ for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && push$1(result, key);
878
+ // Don't enum bug & hidden keys
879
+ while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
880
+ ~indexOf$1(result, key) || push$1(result, key);
881
+ }
882
+ return result;
883
+ };
884
+
885
+ // IE8- don't enum bug keys
886
+ var enumBugKeys$3 = [
887
+ 'constructor',
888
+ 'hasOwnProperty',
889
+ 'isPrototypeOf',
890
+ 'propertyIsEnumerable',
891
+ 'toLocaleString',
892
+ 'toString',
893
+ 'valueOf'
894
+ ];
895
+
896
+ var internalObjectKeys$1 = objectKeysInternal;
897
+ var enumBugKeys$2 = enumBugKeys$3;
898
+
899
+ var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
900
+
901
+ // `Object.getOwnPropertyNames` method
902
+ // https://tc39.es/ecma262/#sec-object.getownpropertynames
903
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
904
+ objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
905
+ return internalObjectKeys$1(O, hiddenKeys$1);
906
+ };
907
+
908
+ var objectGetOwnPropertySymbols = {};
909
+
910
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
911
+ objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
912
+
913
+ var getBuiltIn$1 = getBuiltIn$3;
914
+ var uncurryThis$7 = functionUncurryThis;
915
+ var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
916
+ var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
917
+ var anObject$5 = anObject$7;
918
+
919
+ var concat$2 = uncurryThis$7([].concat);
920
+
921
+ // all object keys, includes non-enumerable and symbols
922
+ var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
923
+ var keys = getOwnPropertyNamesModule.f(anObject$5(it));
924
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
925
+ return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
926
+ };
927
+
928
+ var hasOwn = hasOwnProperty_1;
929
+ var ownKeys = ownKeys$1;
930
+ var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
931
+ var definePropertyModule$1 = objectDefineProperty;
932
+
933
+ var copyConstructorProperties$1 = function (target, source, exceptions) {
934
+ var keys = ownKeys(source);
935
+ var defineProperty = definePropertyModule$1.f;
936
+ var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
937
+ for (var i = 0; i < keys.length; i++) {
938
+ var key = keys[i];
939
+ if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
940
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
941
+ }
942
+ }
943
+ };
944
+
945
+ var fails$6 = fails$e;
946
+ var isCallable$3 = isCallable$d;
947
+
948
+ var replacement = /#|\.prototype\./;
949
+
950
+ var isForced$1 = function (feature, detection) {
951
+ var value = data[normalize(feature)];
952
+ return value === POLYFILL ? true
953
+ : value === NATIVE ? false
954
+ : isCallable$3(detection) ? fails$6(detection)
955
+ : !!detection;
956
+ };
957
+
958
+ var normalize = isForced$1.normalize = function (string) {
959
+ return String(string).replace(replacement, '.').toLowerCase();
960
+ };
961
+
962
+ var data = isForced$1.data = {};
963
+ var NATIVE = isForced$1.NATIVE = 'N';
964
+ var POLYFILL = isForced$1.POLYFILL = 'P';
965
+
966
+ var isForced_1 = isForced$1;
967
+
968
+ var global$4 = global$e;
969
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
970
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
971
+ var defineBuiltIn$1 = defineBuiltIn$2;
972
+ var defineGlobalProperty = defineGlobalProperty$3;
973
+ var copyConstructorProperties = copyConstructorProperties$1;
974
+ var isForced = isForced_1;
975
+
976
+ /*
977
+ options.target - name of the target object
978
+ options.global - target is the global object
979
+ options.stat - export as static methods of target
980
+ options.proto - export as prototype methods of target
981
+ options.real - real prototype method for the `pure` version
982
+ options.forced - export even if the native feature is available
983
+ options.bind - bind methods to the target, required for the `pure` version
984
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
985
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
986
+ options.sham - add a flag to not completely full polyfills
987
+ options.enumerable - export as enumerable property
988
+ options.dontCallGetSet - prevent calling a getter on target
989
+ options.name - the .name of the function if it does not match the key
990
+ */
991
+ var _export = function (options, source) {
992
+ var TARGET = options.target;
993
+ var GLOBAL = options.global;
994
+ var STATIC = options.stat;
995
+ var FORCED, target, key, targetProperty, sourceProperty, descriptor;
996
+ if (GLOBAL) {
997
+ target = global$4;
998
+ } else if (STATIC) {
999
+ target = global$4[TARGET] || defineGlobalProperty(TARGET, {});
1000
+ } else {
1001
+ target = (global$4[TARGET] || {}).prototype;
1002
+ }
1003
+ if (target) for (key in source) {
1004
+ sourceProperty = source[key];
1005
+ if (options.dontCallGetSet) {
1006
+ descriptor = getOwnPropertyDescriptor(target, key);
1007
+ targetProperty = descriptor && descriptor.value;
1008
+ } else targetProperty = target[key];
1009
+ FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1010
+ // contained in target
1011
+ if (!FORCED && targetProperty !== undefined) {
1012
+ if (typeof sourceProperty == typeof targetProperty) continue;
1013
+ copyConstructorProperties(sourceProperty, targetProperty);
1014
+ }
1015
+ // add a flag to not completely full polyfills
1016
+ if (options.sham || (targetProperty && targetProperty.sham)) {
1017
+ createNonEnumerableProperty$1(sourceProperty, 'sham', true);
1018
+ }
1019
+ defineBuiltIn$1(target, key, sourceProperty, options);
1020
+ }
1021
+ };
1022
+
1023
+ var internalObjectKeys = objectKeysInternal;
1024
+ var enumBugKeys$1 = enumBugKeys$3;
1025
+
1026
+ // `Object.keys` method
1027
+ // https://tc39.es/ecma262/#sec-object.keys
1028
+ // eslint-disable-next-line es/no-object-keys -- safe
1029
+ var objectKeys$2 = Object.keys || function keys(O) {
1030
+ return internalObjectKeys(O, enumBugKeys$1);
1031
+ };
1032
+
1033
+ var DESCRIPTORS$1 = descriptors;
1034
+ var uncurryThis$6 = functionUncurryThis;
1035
+ var call$4 = functionCall;
1036
+ var fails$5 = fails$e;
1037
+ var objectKeys$1 = objectKeys$2;
1038
+ var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1039
+ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1040
+ var toObject$1 = toObject$3;
1041
+ var IndexedObject = indexedObject;
1042
+
1043
+ // eslint-disable-next-line es/no-object-assign -- safe
1044
+ var $assign = Object.assign;
1045
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1046
+ var defineProperty = Object.defineProperty;
1047
+ var concat$1 = uncurryThis$6([].concat);
1048
+
1049
+ // `Object.assign` method
1050
+ // https://tc39.es/ecma262/#sec-object.assign
1051
+ var objectAssign = !$assign || fails$5(function () {
1052
+ // should have correct order of operations (Edge bug)
1053
+ if (DESCRIPTORS$1 && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
1054
+ enumerable: true,
1055
+ get: function () {
1056
+ defineProperty(this, 'b', {
1057
+ value: 3,
1058
+ enumerable: false
1059
+ });
1060
+ }
1061
+ }), { b: 2 })).b !== 1) return true;
1062
+ // should work with symbols and should have deterministic property order (V8 bug)
1063
+ var A = {};
1064
+ var B = {};
1065
+ // eslint-disable-next-line es/no-symbol -- safe
1066
+ var symbol = Symbol('assign detection');
1067
+ var alphabet = 'abcdefghijklmnopqrst';
1068
+ A[symbol] = 7;
1069
+ alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1070
+ return $assign({}, A)[symbol] !== 7 || objectKeys$1($assign({}, B)).join('') !== alphabet;
1071
+ }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1072
+ var T = toObject$1(target);
1073
+ var argumentsLength = arguments.length;
1074
+ var index = 1;
1075
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1076
+ var propertyIsEnumerable = propertyIsEnumerableModule.f;
1077
+ while (argumentsLength > index) {
1078
+ var S = IndexedObject(arguments[index++]);
1079
+ var keys = getOwnPropertySymbols ? concat$1(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
1080
+ var length = keys.length;
1081
+ var j = 0;
1082
+ var key;
1083
+ while (length > j) {
1084
+ key = keys[j++];
1085
+ if (!DESCRIPTORS$1 || call$4(propertyIsEnumerable, S, key)) T[key] = S[key];
1086
+ }
1087
+ } return T;
1088
+ } : $assign;
1089
+
1090
+ var $$1 = _export;
1091
+ var assign = objectAssign;
1092
+
1093
+ // `Object.assign` method
1094
+ // https://tc39.es/ecma262/#sec-object.assign
1095
+ // eslint-disable-next-line es/no-object-assign -- required for testing
1096
+ $$1({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1097
+ assign: assign
1098
+ });
1099
+
1100
+ /******************************************************************************
1101
+ Copyright (c) Microsoft Corporation.
1102
+
1103
+ Permission to use, copy, modify, and/or distribute this software for any
1104
+ purpose with or without fee is hereby granted.
1105
+
1106
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1107
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1108
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1109
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1110
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1111
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1112
+ PERFORMANCE OF THIS SOFTWARE.
1113
+ ***************************************************************************** */
1114
+
1115
+ function __rest(s, e) {
1116
+ var t = {};
1117
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
1118
+ t[p] = s[p];
1119
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
1120
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
1121
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
1122
+ t[p[i]] = s[p[i]];
1123
+ }
1124
+ return t;
1125
+ }
1126
+
1127
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
1128
+ var e = new Error(message);
1129
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
1130
+ };
1131
+
1132
+ var wellKnownSymbol$3 = wellKnownSymbol$5;
1133
+
1134
+ var TO_STRING_TAG$1 = wellKnownSymbol$3('toStringTag');
1135
+ var test = {};
1136
+
1137
+ test[TO_STRING_TAG$1] = 'z';
1138
+
1139
+ var toStringTagSupport = String(test) === '[object z]';
1140
+
1141
+ var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1142
+ var isCallable$2 = isCallable$d;
1143
+ var classofRaw$1 = classofRaw$2;
1144
+ var wellKnownSymbol$2 = wellKnownSymbol$5;
1145
+
1146
+ var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
1147
+ var $Object = Object;
1148
+
1149
+ // ES3 wrong here
1150
+ var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
1151
+
1152
+ // fallback for IE11 Script Access Denied error
1153
+ var tryGet = function (it, key) {
1154
+ try {
1155
+ return it[key];
1156
+ } catch (error) { /* empty */ }
1157
+ };
1158
+
1159
+ // getting tag from ES6+ `Object.prototype.toString`
1160
+ var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1161
+ var O, tag, result;
1162
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
1163
+ // @@toStringTag case
1164
+ : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1165
+ // builtinTag case
1166
+ : CORRECT_ARGUMENTS ? classofRaw$1(O)
1167
+ // ES3 arguments fallback
1168
+ : (result = classofRaw$1(O)) === 'Object' && isCallable$2(O.callee) ? 'Arguments' : result;
1169
+ };
1170
+
1171
+ var classof$1 = classof$2;
1172
+
1173
+ var $String = String;
1174
+
1175
+ var toString$3 = function (argument) {
1176
+ if (classof$1(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
1177
+ return $String(argument);
1178
+ };
1179
+
1180
+ var anObject$4 = anObject$7;
1181
+
1182
+ // `RegExp.prototype.flags` getter implementation
1183
+ // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
1184
+ var regexpFlags$1 = function () {
1185
+ var that = anObject$4(this);
1186
+ var result = '';
1187
+ if (that.hasIndices) result += 'd';
1188
+ if (that.global) result += 'g';
1189
+ if (that.ignoreCase) result += 'i';
1190
+ if (that.multiline) result += 'm';
1191
+ if (that.dotAll) result += 's';
1192
+ if (that.unicode) result += 'u';
1193
+ if (that.unicodeSets) result += 'v';
1194
+ if (that.sticky) result += 'y';
1195
+ return result;
1196
+ };
1197
+
1198
+ var fails$4 = fails$e;
1199
+ var global$3 = global$e;
1200
+
1201
+ // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
1202
+ var $RegExp$2 = global$3.RegExp;
1203
+
1204
+ var UNSUPPORTED_Y$1 = fails$4(function () {
1205
+ var re = $RegExp$2('a', 'y');
1206
+ re.lastIndex = 2;
1207
+ return re.exec('abcd') !== null;
1208
+ });
1209
+
1210
+ // UC Browser bug
1211
+ // https://github.com/zloirock/core-js/issues/1008
1212
+ var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$4(function () {
1213
+ return !$RegExp$2('a', 'y').sticky;
1214
+ });
1215
+
1216
+ var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$4(function () {
1217
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
1218
+ var re = $RegExp$2('^r', 'gy');
1219
+ re.lastIndex = 2;
1220
+ return re.exec('str') !== null;
1221
+ });
1222
+
1223
+ var regexpStickyHelpers = {
1224
+ BROKEN_CARET: BROKEN_CARET,
1225
+ MISSED_STICKY: MISSED_STICKY,
1226
+ UNSUPPORTED_Y: UNSUPPORTED_Y$1
1227
+ };
1228
+
1229
+ var objectDefineProperties = {};
1230
+
1231
+ var DESCRIPTORS = descriptors;
1232
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1233
+ var definePropertyModule = objectDefineProperty;
1234
+ var anObject$3 = anObject$7;
1235
+ var toIndexedObject = toIndexedObject$4;
1236
+ var objectKeys = objectKeys$2;
1237
+
1238
+ // `Object.defineProperties` method
1239
+ // https://tc39.es/ecma262/#sec-object.defineproperties
1240
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
1241
+ objectDefineProperties.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1242
+ anObject$3(O);
1243
+ var props = toIndexedObject(Properties);
1244
+ var keys = objectKeys(Properties);
1245
+ var length = keys.length;
1246
+ var index = 0;
1247
+ var key;
1248
+ while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
1249
+ return O;
1250
+ };
1251
+
1252
+ var getBuiltIn = getBuiltIn$3;
1253
+
1254
+ var html$1 = getBuiltIn('document', 'documentElement');
1255
+
1256
+ /* global ActiveXObject -- old IE, WSH */
1257
+ var anObject$2 = anObject$7;
1258
+ var definePropertiesModule = objectDefineProperties;
1259
+ var enumBugKeys = enumBugKeys$3;
1260
+ var hiddenKeys = hiddenKeys$4;
1261
+ var html = html$1;
1262
+ var documentCreateElement = documentCreateElement$1;
1263
+ var sharedKey = sharedKey$2;
1264
+
1265
+ var GT = '>';
1266
+ var LT = '<';
1267
+ var PROTOTYPE = 'prototype';
1268
+ var SCRIPT = 'script';
1269
+ var IE_PROTO = sharedKey('IE_PROTO');
1270
+
1271
+ var EmptyConstructor = function () { /* empty */ };
1272
+
1273
+ var scriptTag = function (content) {
1274
+ return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1275
+ };
1276
+
1277
+ // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1278
+ var NullProtoObjectViaActiveX = function (activeXDocument) {
1279
+ activeXDocument.write(scriptTag(''));
1280
+ activeXDocument.close();
1281
+ var temp = activeXDocument.parentWindow.Object;
1282
+ activeXDocument = null; // avoid memory leak
1283
+ return temp;
1284
+ };
1285
+
1286
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
1287
+ var NullProtoObjectViaIFrame = function () {
1288
+ // Thrash, waste and sodomy: IE GC bug
1289
+ var iframe = documentCreateElement('iframe');
1290
+ var JS = 'java' + SCRIPT + ':';
1291
+ var iframeDocument;
1292
+ iframe.style.display = 'none';
1293
+ html.appendChild(iframe);
1294
+ // https://github.com/zloirock/core-js/issues/475
1295
+ iframe.src = String(JS);
1296
+ iframeDocument = iframe.contentWindow.document;
1297
+ iframeDocument.open();
1298
+ iframeDocument.write(scriptTag('document.F=Object'));
1299
+ iframeDocument.close();
1300
+ return iframeDocument.F;
1301
+ };
1302
+
1303
+ // Check for document.domain and active x support
1304
+ // No need to use active x approach when document.domain is not set
1305
+ // see https://github.com/es-shims/es5-shim/issues/150
1306
+ // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1307
+ // avoid IE GC bug
1308
+ var activeXDocument;
1309
+ var NullProtoObject = function () {
1310
+ try {
1311
+ activeXDocument = new ActiveXObject('htmlfile');
1312
+ } catch (error) { /* ignore */ }
1313
+ NullProtoObject = typeof document != 'undefined'
1314
+ ? document.domain && activeXDocument
1315
+ ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1316
+ : NullProtoObjectViaIFrame()
1317
+ : NullProtoObjectViaActiveX(activeXDocument); // WSH
1318
+ var length = enumBugKeys.length;
1319
+ while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1320
+ return NullProtoObject();
1321
+ };
1322
+
1323
+ hiddenKeys[IE_PROTO] = true;
1324
+
1325
+ // `Object.create` method
1326
+ // https://tc39.es/ecma262/#sec-object.create
1327
+ // eslint-disable-next-line es/no-object-create -- safe
1328
+ var objectCreate = Object.create || function create(O, Properties) {
1329
+ var result;
1330
+ if (O !== null) {
1331
+ EmptyConstructor[PROTOTYPE] = anObject$2(O);
1332
+ result = new EmptyConstructor();
1333
+ EmptyConstructor[PROTOTYPE] = null;
1334
+ // add "__proto__" for Object.getPrototypeOf polyfill
1335
+ result[IE_PROTO] = O;
1336
+ } else result = NullProtoObject();
1337
+ return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1338
+ };
1339
+
1340
+ var fails$3 = fails$e;
1341
+ var global$2 = global$e;
1342
+
1343
+ // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
1344
+ var $RegExp$1 = global$2.RegExp;
1345
+
1346
+ var regexpUnsupportedDotAll = fails$3(function () {
1347
+ var re = $RegExp$1('.', 's');
1348
+ return !(re.dotAll && re.test('\n') && re.flags === 's');
1349
+ });
1350
+
1351
+ var fails$2 = fails$e;
1352
+ var global$1 = global$e;
1353
+
1354
+ // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
1355
+ var $RegExp = global$1.RegExp;
1356
+
1357
+ var regexpUnsupportedNcg = fails$2(function () {
1358
+ var re = $RegExp('(?<a>b)', 'g');
1359
+ return re.exec('b').groups.a !== 'b' ||
1360
+ 'b'.replace(re, '$<a>c') !== 'bc';
1361
+ });
1362
+
1363
+ /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
1364
+ /* eslint-disable regexp/no-useless-quantifier -- testing */
1365
+ var call$3 = functionCall;
1366
+ var uncurryThis$5 = functionUncurryThis;
1367
+ var toString$2 = toString$3;
1368
+ var regexpFlags = regexpFlags$1;
1369
+ var stickyHelpers = regexpStickyHelpers;
1370
+ var shared = shared$4.exports;
1371
+ var create = objectCreate;
1372
+ var getInternalState = internalState.get;
1373
+ var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
1374
+ var UNSUPPORTED_NCG = regexpUnsupportedNcg;
1375
+
1376
+ var nativeReplace = shared('native-string-replace', String.prototype.replace);
1377
+ var nativeExec = RegExp.prototype.exec;
1378
+ var patchedExec = nativeExec;
1379
+ var charAt$3 = uncurryThis$5(''.charAt);
1380
+ var indexOf = uncurryThis$5(''.indexOf);
1381
+ var replace$1 = uncurryThis$5(''.replace);
1382
+ var stringSlice$3 = uncurryThis$5(''.slice);
1383
+
1384
+ var UPDATES_LAST_INDEX_WRONG = (function () {
1385
+ var re1 = /a/;
1386
+ var re2 = /b*/g;
1387
+ call$3(nativeExec, re1, 'a');
1388
+ call$3(nativeExec, re2, 'a');
1389
+ return re1.lastIndex !== 0 || re2.lastIndex !== 0;
1390
+ })();
1391
+
1392
+ var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
1393
+
1394
+ // nonparticipating capturing group, copied from es5-shim's String#split patch.
1395
+ var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
1396
+
1397
+ var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
1398
+
1399
+ if (PATCH) {
1400
+ patchedExec = function exec(string) {
1401
+ var re = this;
1402
+ var state = getInternalState(re);
1403
+ var str = toString$2(string);
1404
+ var raw = state.raw;
1405
+ var result, reCopy, lastIndex, match, i, object, group;
1406
+
1407
+ if (raw) {
1408
+ raw.lastIndex = re.lastIndex;
1409
+ result = call$3(patchedExec, raw, str);
1410
+ re.lastIndex = raw.lastIndex;
1411
+ return result;
1412
+ }
1413
+
1414
+ var groups = state.groups;
1415
+ var sticky = UNSUPPORTED_Y && re.sticky;
1416
+ var flags = call$3(regexpFlags, re);
1417
+ var source = re.source;
1418
+ var charsAdded = 0;
1419
+ var strCopy = str;
1420
+
1421
+ if (sticky) {
1422
+ flags = replace$1(flags, 'y', '');
1423
+ if (indexOf(flags, 'g') === -1) {
1424
+ flags += 'g';
1425
+ }
1426
+
1427
+ strCopy = stringSlice$3(str, re.lastIndex);
1428
+ // Support anchored sticky behavior.
1429
+ if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
1430
+ source = '(?: ' + source + ')';
1431
+ strCopy = ' ' + strCopy;
1432
+ charsAdded++;
1433
+ }
1434
+ // ^(? + rx + ) is needed, in combination with some str slicing, to
1435
+ // simulate the 'y' flag.
1436
+ reCopy = new RegExp('^(?:' + source + ')', flags);
1437
+ }
1438
+
1439
+ if (NPCG_INCLUDED) {
1440
+ reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
1441
+ }
1442
+ if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
1443
+
1444
+ match = call$3(nativeExec, sticky ? reCopy : re, strCopy);
1445
+
1446
+ if (sticky) {
1447
+ if (match) {
1448
+ match.input = stringSlice$3(match.input, charsAdded);
1449
+ match[0] = stringSlice$3(match[0], charsAdded);
1450
+ match.index = re.lastIndex;
1451
+ re.lastIndex += match[0].length;
1452
+ } else re.lastIndex = 0;
1453
+ } else if (UPDATES_LAST_INDEX_WRONG && match) {
1454
+ re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
1455
+ }
1456
+ if (NPCG_INCLUDED && match && match.length > 1) {
1457
+ // Fix browsers whose `exec` methods don't consistently return `undefined`
1458
+ // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
1459
+ call$3(nativeReplace, match[0], reCopy, function () {
1460
+ for (i = 1; i < arguments.length - 2; i++) {
1461
+ if (arguments[i] === undefined) match[i] = undefined;
1462
+ }
1463
+ });
1464
+ }
1465
+
1466
+ if (match && groups) {
1467
+ match.groups = object = create(null);
1468
+ for (i = 0; i < groups.length; i++) {
1469
+ group = groups[i];
1470
+ object[group[0]] = match[group[1]];
1471
+ }
1472
+ }
1473
+
1474
+ return match;
1475
+ };
1476
+ }
1477
+
1478
+ var regexpExec$2 = patchedExec;
1479
+
1480
+ var $ = _export;
1481
+ var exec = regexpExec$2;
1482
+
1483
+ // `RegExp.prototype.exec` method
1484
+ // https://tc39.es/ecma262/#sec-regexp.prototype.exec
1485
+ $({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
1486
+ exec: exec
1487
+ });
1488
+
1489
+ var NATIVE_BIND = functionBindNative;
1490
+
1491
+ var FunctionPrototype = Function.prototype;
1492
+ var apply$1 = FunctionPrototype.apply;
1493
+ var call$2 = FunctionPrototype.call;
1494
+
1495
+ // eslint-disable-next-line es/no-reflect -- safe
1496
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$2.bind(apply$1) : function () {
1497
+ return call$2.apply(apply$1, arguments);
1498
+ });
1499
+
1500
+ var classofRaw = classofRaw$2;
1501
+ var uncurryThis$4 = functionUncurryThis;
1502
+
1503
+ var functionUncurryThisClause = function (fn) {
1504
+ // Nashorn bug:
1505
+ // https://github.com/zloirock/core-js/issues/1128
1506
+ // https://github.com/zloirock/core-js/issues/1130
1507
+ if (classofRaw(fn) === 'Function') return uncurryThis$4(fn);
1508
+ };
1509
+
1510
+ // TODO: Remove from `core-js@4` since it's moved to entry points
1511
+
1512
+ var uncurryThis$3 = functionUncurryThisClause;
1513
+ var defineBuiltIn = defineBuiltIn$2;
1514
+ var regexpExec$1 = regexpExec$2;
1515
+ var fails$1 = fails$e;
1516
+ var wellKnownSymbol$1 = wellKnownSymbol$5;
1517
+ var createNonEnumerableProperty = createNonEnumerableProperty$3;
1518
+
1519
+ var SPECIES = wellKnownSymbol$1('species');
1520
+ var RegExpPrototype = RegExp.prototype;
1521
+
1522
+ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
1523
+ var SYMBOL = wellKnownSymbol$1(KEY);
1524
+
1525
+ var DELEGATES_TO_SYMBOL = !fails$1(function () {
1526
+ // String methods call symbol-named RegEp methods
1527
+ var O = {};
1528
+ O[SYMBOL] = function () { return 7; };
1529
+ return ''[KEY](O) !== 7;
1530
+ });
1531
+
1532
+ var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$1(function () {
1533
+ // Symbol-named RegExp methods call .exec
1534
+ var execCalled = false;
1535
+ var re = /a/;
1536
+
1537
+ if (KEY === 'split') {
1538
+ // We can't use real regex here since it causes deoptimization
1539
+ // and serious performance degradation in V8
1540
+ // https://github.com/zloirock/core-js/issues/306
1541
+ re = {};
1542
+ // RegExp[@@split] doesn't call the regex's exec method, but first creates
1543
+ // a new one. We need to return the patched regex when creating the new one.
1544
+ re.constructor = {};
1545
+ re.constructor[SPECIES] = function () { return re; };
1546
+ re.flags = '';
1547
+ re[SYMBOL] = /./[SYMBOL];
1548
+ }
1549
+
1550
+ re.exec = function () {
1551
+ execCalled = true;
1552
+ return null;
1553
+ };
1554
+
1555
+ re[SYMBOL]('');
1556
+ return !execCalled;
1557
+ });
1558
+
1559
+ if (
1560
+ !DELEGATES_TO_SYMBOL ||
1561
+ !DELEGATES_TO_EXEC ||
1562
+ FORCED
1563
+ ) {
1564
+ var uncurriedNativeRegExpMethod = uncurryThis$3(/./[SYMBOL]);
1565
+ var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
1566
+ var uncurriedNativeMethod = uncurryThis$3(nativeMethod);
1567
+ var $exec = regexp.exec;
1568
+ if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
1569
+ if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
1570
+ // The native String method already delegates to @@method (this
1571
+ // polyfilled function), leasing to infinite recursion.
1572
+ // We avoid it by directly calling the native @@method method.
1573
+ return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
1574
+ }
1575
+ return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
1576
+ }
1577
+ return { done: false };
1578
+ });
1579
+
1580
+ defineBuiltIn(String.prototype, KEY, methods[0]);
1581
+ defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
1582
+ }
1583
+
1584
+ if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
1585
+ };
1586
+
1587
+ var uncurryThis$2 = functionUncurryThis;
1588
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
1589
+ var toString$1 = toString$3;
1590
+ var requireObjectCoercible$1 = requireObjectCoercible$4;
1591
+
1592
+ var charAt$2 = uncurryThis$2(''.charAt);
1593
+ var charCodeAt = uncurryThis$2(''.charCodeAt);
1594
+ var stringSlice$2 = uncurryThis$2(''.slice);
1595
+
1596
+ var createMethod = function (CONVERT_TO_STRING) {
1597
+ return function ($this, pos) {
1598
+ var S = toString$1(requireObjectCoercible$1($this));
1599
+ var position = toIntegerOrInfinity$1(pos);
1600
+ var size = S.length;
1601
+ var first, second;
1602
+ if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
1603
+ first = charCodeAt(S, position);
1604
+ return first < 0xD800 || first > 0xDBFF || position + 1 === size
1605
+ || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
1606
+ ? CONVERT_TO_STRING
1607
+ ? charAt$2(S, position)
1608
+ : first
1609
+ : CONVERT_TO_STRING
1610
+ ? stringSlice$2(S, position, position + 2)
1611
+ : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
1612
+ };
1613
+ };
1614
+
1615
+ var stringMultibyte = {
1616
+ // `String.prototype.codePointAt` method
1617
+ // https://tc39.es/ecma262/#sec-string.prototype.codepointat
1618
+ codeAt: createMethod(false),
1619
+ // `String.prototype.at` method
1620
+ // https://github.com/mathiasbynens/String.prototype.at
1621
+ charAt: createMethod(true)
1622
+ };
1623
+
1624
+ var charAt$1 = stringMultibyte.charAt;
1625
+
1626
+ // `AdvanceStringIndex` abstract operation
1627
+ // https://tc39.es/ecma262/#sec-advancestringindex
1628
+ var advanceStringIndex$1 = function (S, index, unicode) {
1629
+ return index + (unicode ? charAt$1(S, index).length : 1);
1630
+ };
1631
+
1632
+ var uncurryThis$1 = functionUncurryThis;
1633
+ var toObject = toObject$3;
1634
+
1635
+ var floor = Math.floor;
1636
+ var charAt = uncurryThis$1(''.charAt);
1637
+ var replace = uncurryThis$1(''.replace);
1638
+ var stringSlice$1 = uncurryThis$1(''.slice);
1639
+ // eslint-disable-next-line redos/no-vulnerable -- safe
1640
+ var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
1641
+ var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
1642
+
1643
+ // `GetSubstitution` abstract operation
1644
+ // https://tc39.es/ecma262/#sec-getsubstitution
1645
+ var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) {
1646
+ var tailPos = position + matched.length;
1647
+ var m = captures.length;
1648
+ var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
1649
+ if (namedCaptures !== undefined) {
1650
+ namedCaptures = toObject(namedCaptures);
1651
+ symbols = SUBSTITUTION_SYMBOLS;
1652
+ }
1653
+ return replace(replacement, symbols, function (match, ch) {
1654
+ var capture;
1655
+ switch (charAt(ch, 0)) {
1656
+ case '$': return '$';
1657
+ case '&': return matched;
1658
+ case '`': return stringSlice$1(str, 0, position);
1659
+ case "'": return stringSlice$1(str, tailPos);
1660
+ case '<':
1661
+ capture = namedCaptures[stringSlice$1(ch, 1, -1)];
1662
+ break;
1663
+ default: // \d\d?
1664
+ var n = +ch;
1665
+ if (n === 0) return match;
1666
+ if (n > m) {
1667
+ var f = floor(n / 10);
1668
+ if (f === 0) return match;
1669
+ if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
1670
+ return match;
1671
+ }
1672
+ capture = captures[n - 1];
1673
+ }
1674
+ return capture === undefined ? '' : capture;
1675
+ });
1676
+ };
1677
+
1678
+ var call$1 = functionCall;
1679
+ var anObject$1 = anObject$7;
1680
+ var isCallable$1 = isCallable$d;
1681
+ var classof = classofRaw$2;
1682
+ var regexpExec = regexpExec$2;
1683
+
1684
+ var $TypeError = TypeError;
1685
+
1686
+ // `RegExpExec` abstract operation
1687
+ // https://tc39.es/ecma262/#sec-regexpexec
1688
+ var regexpExecAbstract = function (R, S) {
1689
+ var exec = R.exec;
1690
+ if (isCallable$1(exec)) {
1691
+ var result = call$1(exec, R, S);
1692
+ if (result !== null) anObject$1(result);
1693
+ return result;
1694
+ }
1695
+ if (classof(R) === 'RegExp') return call$1(regexpExec, R, S);
1696
+ throw new $TypeError('RegExp#exec called on incompatible receiver');
1697
+ };
1698
+
1699
+ var apply = functionApply;
1700
+ var call = functionCall;
1701
+ var uncurryThis = functionUncurryThis;
1702
+ var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
1703
+ var fails = fails$e;
1704
+ var anObject = anObject$7;
1705
+ var isCallable = isCallable$d;
1706
+ var isNullOrUndefined = isNullOrUndefined$3;
1707
+ var toIntegerOrInfinity = toIntegerOrInfinity$4;
1708
+ var toLength = toLength$2;
1709
+ var toString = toString$3;
1710
+ var requireObjectCoercible = requireObjectCoercible$4;
1711
+ var advanceStringIndex = advanceStringIndex$1;
1712
+ var getMethod = getMethod$2;
1713
+ var getSubstitution = getSubstitution$1;
1714
+ var regExpExec = regexpExecAbstract;
1715
+ var wellKnownSymbol = wellKnownSymbol$5;
1716
+
1717
+ var REPLACE = wellKnownSymbol('replace');
1718
+ var max = Math.max;
1719
+ var min = Math.min;
1720
+ var concat = uncurryThis([].concat);
1721
+ var push = uncurryThis([].push);
1722
+ var stringIndexOf = uncurryThis(''.indexOf);
1723
+ var stringSlice = uncurryThis(''.slice);
1724
+
1725
+ var maybeToString = function (it) {
1726
+ return it === undefined ? it : String(it);
1727
+ };
1728
+
1729
+ // IE <= 11 replaces $0 with the whole match, as if it was $&
1730
+ // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
1731
+ var REPLACE_KEEPS_$0 = (function () {
1732
+ // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
1733
+ return 'a'.replace(/./, '$0') === '$0';
1734
+ })();
1735
+
1736
+ // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
1737
+ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
1738
+ if (/./[REPLACE]) {
1739
+ return /./[REPLACE]('a', '$0') === '';
1740
+ }
1741
+ return false;
1742
+ })();
1743
+
1744
+ var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
1745
+ var re = /./;
1746
+ re.exec = function () {
1747
+ var result = [];
1748
+ result.groups = { a: '7' };
1749
+ return result;
1750
+ };
1751
+ // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
1752
+ return ''.replace(re, '$<a>') !== '7';
1753
+ });
1754
+
1755
+ // @@replace logic
1756
+ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
1757
+ var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
1758
+
1759
+ return [
1760
+ // `String.prototype.replace` method
1761
+ // https://tc39.es/ecma262/#sec-string.prototype.replace
1762
+ function replace(searchValue, replaceValue) {
1763
+ var O = requireObjectCoercible(this);
1764
+ var replacer = isNullOrUndefined(searchValue) ? undefined : getMethod(searchValue, REPLACE);
1765
+ return replacer
1766
+ ? call(replacer, searchValue, O, replaceValue)
1767
+ : call(nativeReplace, toString(O), searchValue, replaceValue);
1768
+ },
1769
+ // `RegExp.prototype[@@replace]` method
1770
+ // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
1771
+ function (string, replaceValue) {
1772
+ var rx = anObject(this);
1773
+ var S = toString(string);
1774
+
1775
+ if (
1776
+ typeof replaceValue == 'string' &&
1777
+ stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
1778
+ stringIndexOf(replaceValue, '$<') === -1
1779
+ ) {
1780
+ var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
1781
+ if (res.done) return res.value;
1782
+ }
1783
+
1784
+ var functionalReplace = isCallable(replaceValue);
1785
+ if (!functionalReplace) replaceValue = toString(replaceValue);
1786
+
1787
+ var global = rx.global;
1788
+ var fullUnicode;
1789
+ if (global) {
1790
+ fullUnicode = rx.unicode;
1791
+ rx.lastIndex = 0;
1792
+ }
1793
+
1794
+ var results = [];
1795
+ var result;
1796
+ while (true) {
1797
+ result = regExpExec(rx, S);
1798
+ if (result === null) break;
1799
+
1800
+ push(results, result);
1801
+ if (!global) break;
1802
+
1803
+ var matchStr = toString(result[0]);
1804
+ if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
1805
+ }
1806
+
1807
+ var accumulatedResult = '';
1808
+ var nextSourcePosition = 0;
1809
+ for (var i = 0; i < results.length; i++) {
1810
+ result = results[i];
1811
+
1812
+ var matched = toString(result[0]);
1813
+ var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
1814
+ var captures = [];
1815
+ var replacement;
1816
+ // NOTE: This is equivalent to
1817
+ // captures = result.slice(1).map(maybeToString)
1818
+ // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
1819
+ // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
1820
+ // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
1821
+ for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
1822
+ var namedCaptures = result.groups;
1823
+ if (functionalReplace) {
1824
+ var replacerArgs = concat([matched], captures, position, S);
1825
+ if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
1826
+ replacement = toString(apply(replaceValue, undefined, replacerArgs));
1827
+ } else {
1828
+ replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
1829
+ }
1830
+ if (position >= nextSourcePosition) {
1831
+ accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
1832
+ nextSourcePosition = position + matched.length;
1833
+ }
1834
+ }
1835
+
1836
+ return accumulatedResult + stringSlice(S, nextSourcePosition);
1837
+ }
1838
+ ];
1839
+ }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
1840
+
1841
+ const tokenToInteger = token => Number(token.replace('px', ''));
1842
+ const Option = /*#__PURE__*/styled__default["default"].button.withConfig({
1843
+ displayName: "atoms-segmented-controlstyles__Option",
1844
+ componentId: "sc-1lpqq2u-0"
1845
+ })(["background-color:", ";border:1px solid ", ";padding:", ";cursor:pointer;", " *{cursor:pointer;}", ";"], ({
1846
+ theme,
1847
+ $pressed,
1848
+ $hasError
1849
+ }) => $pressed ? $hasError ? theme.tokens.red['200'] : theme.components.segmentControl.container.color.pressed : theme.components.segmentControl.container.color.default, ({
1850
+ theme,
1851
+ $pressed,
1852
+ $hasError
1853
+ }) => $hasError ? theme.tokens.red['600'] : $pressed ? theme.components.segmentControl.border.color.pressed : theme.components.segmentControl.border.color.default, ({
1854
+ theme
1855
+ }) => `${theme.components.segmentControl.paddingVertical} ${theme.components.segmentControl.paddingVertical}`, ({
1856
+ theme
1857
+ }) => tokenToInteger(theme.components.segmentControl.gap) === 0 && styled.css(["&:last-of-type{border-left:0;}&:first-of-type:nth-last-child(3){border-right:0;}&:not(:first-of-type) + &:not(:last-of-type){border-right:0;border-left:0;}"]), ({
1858
+ disabled,
1859
+ $pressed
1860
+ }) => disabled && !$pressed && styled.css(["border:1px solid ", ";background-color:", ";cursor:default;*{cursor:default;}"], ({
1861
+ theme
1862
+ }) => theme.components.segmentControl.border.color.disabled, ({
1863
+ theme
1864
+ }) => theme.components.segmentControl.container.color.disabled));
1865
+ const SegmentedControlContainer = /*#__PURE__*/styled__default["default"].div.withConfig({
1866
+ displayName: "atoms-segmented-controlstyles__SegmentedControlContainer",
1867
+ componentId: "sc-1lpqq2u-1"
1868
+ })(["display:flex;flex-direction:column;gap:", ";", ";@media only screen and (max-width:", "px){button{flex:1;}}"], ({
1869
+ theme
1870
+ }) => theme.tokens.padding.XS, ({
1871
+ $fullWidth
1872
+ }) => $fullWidth && styled.css(["button{flex:1;}"]), frontendFoundations.ScreenSizes.SM.max);
1873
+ const SegmentedControlWrapper = /*#__PURE__*/styled__default["default"].div.withConfig({
1874
+ displayName: "atoms-segmented-controlstyles__SegmentedControlWrapper",
1875
+ componentId: "sc-1lpqq2u-2"
1876
+ })(["border-radius:", ";box-shadow:", ";display:flex;flex-direction:row;gap:", ";"], ({
1877
+ theme
1878
+ }) => theme.spacing.borderRadius.none, ({
1879
+ theme: {
1880
+ effects: {
1881
+ shadow
1882
+ }
1883
+ }
1884
+ }) => shadow.lvl0, ({
1885
+ theme
1886
+ }) => theme.components.segmentControl.gap);
1887
+ const OptionLabel = /*#__PURE__*/styled__default["default"].label.withConfig({
1888
+ displayName: "atoms-segmented-controlstyles__OptionLabel",
1889
+ componentId: "sc-1lpqq2u-3"
1890
+ })(["color:", ";font-size:", ";font-weight:", ";letter-spacing:", ";line-height:", ";text-decoration:", ";text-indent:", ";text-transform:", ";", ";"], ({
1891
+ theme,
1892
+ $pressed
1893
+ }) => $pressed ? theme.components.segmentControl.text.color.pressed : theme.components.segmentControl.text.color.default, ({
1894
+ theme
1895
+ }) => theme.components.segmentControl.fieldLabel.fontSize, ({
1896
+ theme
1897
+ }) => theme.components.segmentControl.fieldLabel.fontWeight, ({
1898
+ theme
1899
+ }) => theme.components.segmentControl.fieldLabel.letterSpacing, ({
1900
+ theme
1901
+ }) => theme.components.segmentControl.fieldLabel.lineHeight, ({
1902
+ theme
1903
+ }) => theme.components.segmentControl.fieldLabel.textDecoration, ({
1904
+ theme
1905
+ }) => theme.components.segmentControl.fieldLabel.paragraphSpacing, ({
1906
+ theme
1907
+ }) => theme.components.segmentControl.fieldLabel.textCase, ({
1908
+ $disabled
1909
+ }) => $disabled && styled.css(["color:", ";"], ({
1910
+ theme
1911
+ }) => theme.components.segmentControl.text.color.disabled));
1912
+ const LabelError = /*#__PURE__*/styled__default["default"].label.withConfig({
1913
+ displayName: "atoms-segmented-controlstyles__LabelError",
1914
+ componentId: "sc-1lpqq2u-4"
1915
+ })(["color:", ";font-size:", ";font-weight:700;letter-spacing:", ";line-height:", ";text-decoration:", ";text-indent:", ";text-transform:", ";"], ({
1916
+ theme
1917
+ }) => theme.tokens.red['600'], ({
1918
+ theme
1919
+ }) => theme.typography.desktop.input.secondary.fontSize, ({
1920
+ theme
1921
+ }) => theme.typography.desktop.input.secondary.letterSpacing, ({
1922
+ theme
1923
+ }) => theme.typography.desktop.input.secondary.lineHeight, ({
1924
+ theme
1925
+ }) => theme.typography.desktop.input.secondary.textDecoration, ({
1926
+ theme
1927
+ }) => theme.typography.desktop.input.secondary.paragraphSpacing, ({
1928
+ theme
1929
+ }) => theme.typography.desktop.input.secondary.textCase);
1930
+
1931
+ const SegmentedControl = /*#__PURE__*/react.forwardRef((_a, ref) => {
1932
+ var {
1933
+ id = 'segmented-control-id',
1934
+ dataTestId = 'segmented-control-date-testid',
1935
+ value,
1936
+ options,
1937
+ errorMessage,
1938
+ fullWidth = false,
1939
+ onChange,
1940
+ onBlur,
1941
+ onFocus
1942
+ } = _a,
1943
+ props = __rest(_a, ["id", "dataTestId", "value", "options", "errorMessage", "fullWidth", "onChange", "onBlur", "onFocus"]);
1944
+ const onClick = valueSelected => {
1945
+ onChange && onChange(valueSelected);
1946
+ };
1947
+ const renderOptions = () => {
1948
+ if (options.length < 1) return jsxRuntime.jsx("p", {
1949
+ children: "Two options at minimum are required."
1950
+ });
1951
+ return options.map(option => jsxRuntime.jsx(Option, Object.assign({
1952
+ "data-testid": `segmentedcontrol-option-${option.value}`,
1953
+ onClick: () => {
1954
+ if (!option.disabled) {
1955
+ onClick(option.value);
1956
+ }
1957
+ },
1958
+ "$pressed": option.value === value,
1959
+ type: "button",
1960
+ disabled: option.disabled,
1961
+ "$hasError": !!errorMessage
1962
+ }, uiUtils.applyDataAttributes(props, `option-${option.value}`), {
1963
+ children: jsxRuntime.jsx(OptionLabel, Object.assign({
1964
+ "$disabled": option.disabled,
1965
+ "$pressed": option.value === value
1966
+ }, uiUtils.applyDataAttributes(props, `option-label-${option.label}`), {
1967
+ children: option.label
1968
+ }))
1969
+ }), `segmentedcontrol-option-${option.value}`));
1970
+ };
1971
+ return jsxRuntime.jsxs(SegmentedControlContainer, Object.assign({
1972
+ id: id,
1973
+ "data-testid": dataTestId,
1974
+ "$fullWidth": fullWidth,
1975
+ ref: ref
1976
+ }, uiUtils.applyDataAttributes(props), {
1977
+ children: [jsxRuntime.jsx(SegmentedControlWrapper, {
1978
+ onBlur: onBlur,
1979
+ onFocus: onFocus,
1980
+ children: renderOptions()
1981
+ }), errorMessage && jsxRuntime.jsx(LabelError, {
1982
+ "data-testid": `${dataTestId}-error`,
1983
+ children: errorMessage
1984
+ })]
1985
+ }));
1986
+ });
1987
+
1988
+ exports.SegmentedControl = SegmentedControl;