@bolttech/ob-atoms-button 1.0.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.cjs.js ADDED
@@ -0,0 +1,1143 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('react/jsx-runtime');
4
+ var react = require('react');
5
+ var uiUtils = require('@bolttech/ui-utils');
6
+ var obAtomsIcon = require('@bolttech/ob-atoms-icon');
7
+
8
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
9
+
10
+ var check = function (it) {
11
+ return it && it.Math === Math && it;
12
+ };
13
+
14
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
15
+ var globalThis_1 =
16
+ // eslint-disable-next-line es/no-global-this -- safe
17
+ check(typeof globalThis == 'object' && globalThis) ||
18
+ check(typeof window == 'object' && window) ||
19
+ // eslint-disable-next-line no-restricted-globals -- safe
20
+ check(typeof self == 'object' && self) ||
21
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
22
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
23
+ // eslint-disable-next-line no-new-func -- fallback
24
+ (function () { return this; })() || Function('return this')();
25
+
26
+ var objectGetOwnPropertyDescriptor = {};
27
+
28
+ var fails$9 = function (exec) {
29
+ try {
30
+ return !!exec();
31
+ } catch (error) {
32
+ return true;
33
+ }
34
+ };
35
+
36
+ var fails$8 = fails$9;
37
+
38
+ // Detect IE8's incomplete defineProperty implementation
39
+ var descriptors = !fails$8(function () {
40
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
41
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
42
+ });
43
+
44
+ var fails$7 = fails$9;
45
+
46
+ var functionBindNative = !fails$7(function () {
47
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
48
+ var test = (function () { /* empty */ }).bind();
49
+ // eslint-disable-next-line no-prototype-builtins -- safe
50
+ return typeof test != 'function' || test.hasOwnProperty('prototype');
51
+ });
52
+
53
+ var NATIVE_BIND$1 = functionBindNative;
54
+
55
+ var call$5 = Function.prototype.call;
56
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
57
+ var functionCall = NATIVE_BIND$1 ? call$5.bind(call$5) : function () {
58
+ return call$5.apply(call$5, arguments);
59
+ };
60
+
61
+ var objectPropertyIsEnumerable = {};
62
+
63
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
64
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
65
+ var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
66
+
67
+ // Nashorn ~ JDK8 bug
68
+ var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
69
+
70
+ // `Object.prototype.propertyIsEnumerable` method implementation
71
+ // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
72
+ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
73
+ var descriptor = getOwnPropertyDescriptor$1(this, V);
74
+ return !!descriptor && descriptor.enumerable;
75
+ } : $propertyIsEnumerable;
76
+
77
+ var createPropertyDescriptor$2 = function (bitmap, value) {
78
+ return {
79
+ enumerable: !(bitmap & 1),
80
+ configurable: !(bitmap & 2),
81
+ writable: !(bitmap & 4),
82
+ value: value
83
+ };
84
+ };
85
+
86
+ var NATIVE_BIND = functionBindNative;
87
+
88
+ var FunctionPrototype$1 = Function.prototype;
89
+ var call$4 = FunctionPrototype$1.call;
90
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
91
+ var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$4, call$4);
92
+
93
+ var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
94
+ return function () {
95
+ return call$4.apply(fn, arguments);
96
+ };
97
+ };
98
+
99
+ var uncurryThis$9 = functionUncurryThis;
100
+
101
+ var toString$1 = uncurryThis$9({}.toString);
102
+ var stringSlice$1 = uncurryThis$9(''.slice);
103
+
104
+ var classofRaw = function (it) {
105
+ return stringSlice$1(toString$1(it), 8, -1);
106
+ };
107
+
108
+ var uncurryThis$8 = functionUncurryThis;
109
+ var fails$6 = fails$9;
110
+ var classof = classofRaw;
111
+
112
+ var $Object$2 = Object;
113
+ var split = uncurryThis$8(''.split);
114
+
115
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
116
+ var indexedObject = fails$6(function () {
117
+ // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
118
+ // eslint-disable-next-line no-prototype-builtins -- safe
119
+ return !$Object$2('z').propertyIsEnumerable(0);
120
+ }) ? function (it) {
121
+ return classof(it) === 'String' ? split(it, '') : $Object$2(it);
122
+ } : $Object$2;
123
+
124
+ // we can't use just `it == null` since of `document.all` special case
125
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
126
+ var isNullOrUndefined$2 = function (it) {
127
+ return it === null || it === undefined;
128
+ };
129
+
130
+ var isNullOrUndefined$1 = isNullOrUndefined$2;
131
+
132
+ var $TypeError$5 = TypeError;
133
+
134
+ // `RequireObjectCoercible` abstract operation
135
+ // https://tc39.es/ecma262/#sec-requireobjectcoercible
136
+ var requireObjectCoercible$2 = function (it) {
137
+ if (isNullOrUndefined$1(it)) throw new $TypeError$5("Can't call method on " + it);
138
+ return it;
139
+ };
140
+
141
+ // toObject with fallback for non-array-like ES3 strings
142
+ var IndexedObject$1 = indexedObject;
143
+ var requireObjectCoercible$1 = requireObjectCoercible$2;
144
+
145
+ var toIndexedObject$3 = function (it) {
146
+ return IndexedObject$1(requireObjectCoercible$1(it));
147
+ };
148
+
149
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
150
+ var documentAll = typeof document == 'object' && document.all;
151
+
152
+ // `IsCallable` abstract operation
153
+ // https://tc39.es/ecma262/#sec-iscallable
154
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
155
+ var isCallable$a = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
156
+ return typeof argument == 'function' || argument === documentAll;
157
+ } : function (argument) {
158
+ return typeof argument == 'function';
159
+ };
160
+
161
+ var isCallable$9 = isCallable$a;
162
+
163
+ var isObject$4 = function (it) {
164
+ return typeof it == 'object' ? it !== null : isCallable$9(it);
165
+ };
166
+
167
+ var globalThis$b = globalThis_1;
168
+ var isCallable$8 = isCallable$a;
169
+
170
+ var aFunction = function (argument) {
171
+ return isCallable$8(argument) ? argument : undefined;
172
+ };
173
+
174
+ var getBuiltIn$2 = function (namespace, method) {
175
+ return arguments.length < 2 ? aFunction(globalThis$b[namespace]) : globalThis$b[namespace] && globalThis$b[namespace][method];
176
+ };
177
+
178
+ var uncurryThis$7 = functionUncurryThis;
179
+
180
+ var objectIsPrototypeOf = uncurryThis$7({}.isPrototypeOf);
181
+
182
+ var globalThis$a = globalThis_1;
183
+
184
+ var navigator = globalThis$a.navigator;
185
+ var userAgent$1 = navigator && navigator.userAgent;
186
+
187
+ var environmentUserAgent = userAgent$1 ? String(userAgent$1) : '';
188
+
189
+ var globalThis$9 = globalThis_1;
190
+ var userAgent = environmentUserAgent;
191
+
192
+ var process = globalThis$9.process;
193
+ var Deno = globalThis$9.Deno;
194
+ var versions = process && process.versions || Deno && Deno.version;
195
+ var v8 = versions && versions.v8;
196
+ var match, version;
197
+
198
+ if (v8) {
199
+ match = v8.split('.');
200
+ // in old Chrome, versions of V8 isn't V8 = Chrome / 10
201
+ // but their correct versions are not interesting for us
202
+ version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
203
+ }
204
+
205
+ // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
206
+ // so check `userAgent` even if `.v8` exists, but 0
207
+ if (!version && userAgent) {
208
+ match = userAgent.match(/Edge\/(\d+)/);
209
+ if (!match || match[1] >= 74) {
210
+ match = userAgent.match(/Chrome\/(\d+)/);
211
+ if (match) version = +match[1];
212
+ }
213
+ }
214
+
215
+ var environmentV8Version = version;
216
+
217
+ /* eslint-disable es/no-symbol -- required for testing */
218
+ var V8_VERSION = environmentV8Version;
219
+ var fails$5 = fails$9;
220
+ var globalThis$8 = globalThis_1;
221
+
222
+ var $String$3 = globalThis$8.String;
223
+
224
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
225
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$5(function () {
226
+ var symbol = Symbol('symbol detection');
227
+ // Chrome 38 Symbol has incorrect toString conversion
228
+ // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
229
+ // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
230
+ // of course, fail.
231
+ return !$String$3(symbol) || !(Object(symbol) instanceof Symbol) ||
232
+ // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
233
+ !Symbol.sham && V8_VERSION && V8_VERSION < 41;
234
+ });
235
+
236
+ /* eslint-disable es/no-symbol -- required for testing */
237
+ var NATIVE_SYMBOL$1 = symbolConstructorDetection;
238
+
239
+ var useSymbolAsUid = NATIVE_SYMBOL$1 &&
240
+ !Symbol.sham &&
241
+ typeof Symbol.iterator == 'symbol';
242
+
243
+ var getBuiltIn$1 = getBuiltIn$2;
244
+ var isCallable$7 = isCallable$a;
245
+ var isPrototypeOf = objectIsPrototypeOf;
246
+ var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
247
+
248
+ var $Object$1 = Object;
249
+
250
+ var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
251
+ return typeof it == 'symbol';
252
+ } : function (it) {
253
+ var $Symbol = getBuiltIn$1('Symbol');
254
+ return isCallable$7($Symbol) && isPrototypeOf($Symbol.prototype, $Object$1(it));
255
+ };
256
+
257
+ var $String$2 = String;
258
+
259
+ var tryToString$1 = function (argument) {
260
+ try {
261
+ return $String$2(argument);
262
+ } catch (error) {
263
+ return 'Object';
264
+ }
265
+ };
266
+
267
+ var isCallable$6 = isCallable$a;
268
+ var tryToString = tryToString$1;
269
+
270
+ var $TypeError$4 = TypeError;
271
+
272
+ // `Assert: IsCallable(argument) is true`
273
+ var aCallable$1 = function (argument) {
274
+ if (isCallable$6(argument)) return argument;
275
+ throw new $TypeError$4(tryToString(argument) + ' is not a function');
276
+ };
277
+
278
+ var aCallable = aCallable$1;
279
+ var isNullOrUndefined = isNullOrUndefined$2;
280
+
281
+ // `GetMethod` abstract operation
282
+ // https://tc39.es/ecma262/#sec-getmethod
283
+ var getMethod$1 = function (V, P) {
284
+ var func = V[P];
285
+ return isNullOrUndefined(func) ? undefined : aCallable(func);
286
+ };
287
+
288
+ var call$3 = functionCall;
289
+ var isCallable$5 = isCallable$a;
290
+ var isObject$3 = isObject$4;
291
+
292
+ var $TypeError$3 = TypeError;
293
+
294
+ // `OrdinaryToPrimitive` abstract operation
295
+ // https://tc39.es/ecma262/#sec-ordinarytoprimitive
296
+ var ordinaryToPrimitive$1 = function (input, pref) {
297
+ var fn, val;
298
+ if (pref === 'string' && isCallable$5(fn = input.toString) && !isObject$3(val = call$3(fn, input))) return val;
299
+ if (isCallable$5(fn = input.valueOf) && !isObject$3(val = call$3(fn, input))) return val;
300
+ if (pref !== 'string' && isCallable$5(fn = input.toString) && !isObject$3(val = call$3(fn, input))) return val;
301
+ throw new $TypeError$3("Can't convert object to primitive value");
302
+ };
303
+
304
+ var sharedStore = {exports: {}};
305
+
306
+ var globalThis$7 = globalThis_1;
307
+
308
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
309
+ var defineProperty$2 = Object.defineProperty;
310
+
311
+ var defineGlobalProperty$3 = function (key, value) {
312
+ try {
313
+ defineProperty$2(globalThis$7, key, { value: value, configurable: true, writable: true });
314
+ } catch (error) {
315
+ globalThis$7[key] = value;
316
+ } return value;
317
+ };
318
+
319
+ var globalThis$6 = globalThis_1;
320
+ var defineGlobalProperty$2 = defineGlobalProperty$3;
321
+
322
+ var SHARED = '__core-js_shared__';
323
+ var store$3 = sharedStore.exports = globalThis$6[SHARED] || defineGlobalProperty$2(SHARED, {});
324
+
325
+ (store$3.versions || (store$3.versions = [])).push({
326
+ version: '3.48.0',
327
+ mode: 'global',
328
+ copyright: '© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.',
329
+ license: 'https://github.com/zloirock/core-js/blob/v3.48.0/LICENSE',
330
+ source: 'https://github.com/zloirock/core-js'
331
+ });
332
+
333
+ var sharedStoreExports = sharedStore.exports;
334
+
335
+ var store$2 = sharedStoreExports;
336
+
337
+ var shared$3 = function (key, value) {
338
+ return store$2[key] || (store$2[key] = value || {});
339
+ };
340
+
341
+ var requireObjectCoercible = requireObjectCoercible$2;
342
+
343
+ var $Object = Object;
344
+
345
+ // `ToObject` abstract operation
346
+ // https://tc39.es/ecma262/#sec-toobject
347
+ var toObject$2 = function (argument) {
348
+ return $Object(requireObjectCoercible(argument));
349
+ };
350
+
351
+ var uncurryThis$6 = functionUncurryThis;
352
+ var toObject$1 = toObject$2;
353
+
354
+ var hasOwnProperty = uncurryThis$6({}.hasOwnProperty);
355
+
356
+ // `HasOwnProperty` abstract operation
357
+ // https://tc39.es/ecma262/#sec-hasownproperty
358
+ // eslint-disable-next-line es/no-object-hasown -- safe
359
+ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
360
+ return hasOwnProperty(toObject$1(it), key);
361
+ };
362
+
363
+ var uncurryThis$5 = functionUncurryThis;
364
+
365
+ var id = 0;
366
+ var postfix = Math.random();
367
+ var toString = uncurryThis$5(1.1.toString);
368
+
369
+ var uid$2 = function (key) {
370
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
371
+ };
372
+
373
+ var globalThis$5 = globalThis_1;
374
+ var shared$2 = shared$3;
375
+ var hasOwn$6 = hasOwnProperty_1;
376
+ var uid$1 = uid$2;
377
+ var NATIVE_SYMBOL = symbolConstructorDetection;
378
+ var USE_SYMBOL_AS_UID = useSymbolAsUid;
379
+
380
+ var Symbol$1 = globalThis$5.Symbol;
381
+ var WellKnownSymbolsStore = shared$2('wks');
382
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
383
+
384
+ var wellKnownSymbol$1 = function (name) {
385
+ if (!hasOwn$6(WellKnownSymbolsStore, name)) {
386
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)
387
+ ? Symbol$1[name]
388
+ : createWellKnownSymbol('Symbol.' + name);
389
+ } return WellKnownSymbolsStore[name];
390
+ };
391
+
392
+ var call$2 = functionCall;
393
+ var isObject$2 = isObject$4;
394
+ var isSymbol$1 = isSymbol$2;
395
+ var getMethod = getMethod$1;
396
+ var ordinaryToPrimitive = ordinaryToPrimitive$1;
397
+ var wellKnownSymbol = wellKnownSymbol$1;
398
+
399
+ var $TypeError$2 = TypeError;
400
+ var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
401
+
402
+ // `ToPrimitive` abstract operation
403
+ // https://tc39.es/ecma262/#sec-toprimitive
404
+ var toPrimitive$1 = function (input, pref) {
405
+ if (!isObject$2(input) || isSymbol$1(input)) return input;
406
+ var exoticToPrim = getMethod(input, TO_PRIMITIVE);
407
+ var result;
408
+ if (exoticToPrim) {
409
+ if (pref === undefined) pref = 'default';
410
+ result = call$2(exoticToPrim, input, pref);
411
+ if (!isObject$2(result) || isSymbol$1(result)) return result;
412
+ throw new $TypeError$2("Can't convert object to primitive value");
413
+ }
414
+ if (pref === undefined) pref = 'number';
415
+ return ordinaryToPrimitive(input, pref);
416
+ };
417
+
418
+ var toPrimitive = toPrimitive$1;
419
+ var isSymbol = isSymbol$2;
420
+
421
+ // `ToPropertyKey` abstract operation
422
+ // https://tc39.es/ecma262/#sec-topropertykey
423
+ var toPropertyKey$2 = function (argument) {
424
+ var key = toPrimitive(argument, 'string');
425
+ return isSymbol(key) ? key : key + '';
426
+ };
427
+
428
+ var globalThis$4 = globalThis_1;
429
+ var isObject$1 = isObject$4;
430
+
431
+ var document$1 = globalThis$4.document;
432
+ // typeof document.createElement is 'object' in old IE
433
+ var EXISTS$1 = isObject$1(document$1) && isObject$1(document$1.createElement);
434
+
435
+ var documentCreateElement = function (it) {
436
+ return EXISTS$1 ? document$1.createElement(it) : {};
437
+ };
438
+
439
+ var DESCRIPTORS$7 = descriptors;
440
+ var fails$4 = fails$9;
441
+ var createElement = documentCreateElement;
442
+
443
+ // Thanks to IE8 for its funny defineProperty
444
+ var ie8DomDefine = !DESCRIPTORS$7 && !fails$4(function () {
445
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
446
+ return Object.defineProperty(createElement('div'), 'a', {
447
+ get: function () { return 7; }
448
+ }).a !== 7;
449
+ });
450
+
451
+ var DESCRIPTORS$6 = descriptors;
452
+ var call$1 = functionCall;
453
+ var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
454
+ var createPropertyDescriptor$1 = createPropertyDescriptor$2;
455
+ var toIndexedObject$2 = toIndexedObject$3;
456
+ var toPropertyKey$1 = toPropertyKey$2;
457
+ var hasOwn$5 = hasOwnProperty_1;
458
+ var IE8_DOM_DEFINE$1 = ie8DomDefine;
459
+
460
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
461
+ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
462
+
463
+ // `Object.getOwnPropertyDescriptor` method
464
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
465
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$6 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
466
+ O = toIndexedObject$2(O);
467
+ P = toPropertyKey$1(P);
468
+ if (IE8_DOM_DEFINE$1) try {
469
+ return $getOwnPropertyDescriptor$1(O, P);
470
+ } catch (error) { /* empty */ }
471
+ if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$1(propertyIsEnumerableModule$1.f, O, P), O[P]);
472
+ };
473
+
474
+ var objectDefineProperty = {};
475
+
476
+ var DESCRIPTORS$5 = descriptors;
477
+ var fails$3 = fails$9;
478
+
479
+ // V8 ~ Chrome 36-
480
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
481
+ var v8PrototypeDefineBug = DESCRIPTORS$5 && fails$3(function () {
482
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
483
+ return Object.defineProperty(function () { /* empty */ }, 'prototype', {
484
+ value: 42,
485
+ writable: false
486
+ }).prototype !== 42;
487
+ });
488
+
489
+ var isObject = isObject$4;
490
+
491
+ var $String$1 = String;
492
+ var $TypeError$1 = TypeError;
493
+
494
+ // `Assert: Type(argument) is Object`
495
+ var anObject$2 = function (argument) {
496
+ if (isObject(argument)) return argument;
497
+ throw new $TypeError$1($String$1(argument) + ' is not an object');
498
+ };
499
+
500
+ var DESCRIPTORS$4 = descriptors;
501
+ var IE8_DOM_DEFINE = ie8DomDefine;
502
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
503
+ var anObject$1 = anObject$2;
504
+ var toPropertyKey = toPropertyKey$2;
505
+
506
+ var $TypeError = TypeError;
507
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
508
+ var $defineProperty = Object.defineProperty;
509
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
510
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
511
+ var ENUMERABLE = 'enumerable';
512
+ var CONFIGURABLE$1 = 'configurable';
513
+ var WRITABLE = 'writable';
514
+
515
+ // `Object.defineProperty` method
516
+ // https://tc39.es/ecma262/#sec-object.defineproperty
517
+ objectDefineProperty.f = DESCRIPTORS$4 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
518
+ anObject$1(O);
519
+ P = toPropertyKey(P);
520
+ anObject$1(Attributes);
521
+ if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
522
+ var current = $getOwnPropertyDescriptor(O, P);
523
+ if (current && current[WRITABLE]) {
524
+ O[P] = Attributes.value;
525
+ Attributes = {
526
+ configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
527
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
528
+ writable: false
529
+ };
530
+ }
531
+ } return $defineProperty(O, P, Attributes);
532
+ } : $defineProperty : function defineProperty(O, P, Attributes) {
533
+ anObject$1(O);
534
+ P = toPropertyKey(P);
535
+ anObject$1(Attributes);
536
+ if (IE8_DOM_DEFINE) try {
537
+ return $defineProperty(O, P, Attributes);
538
+ } catch (error) { /* empty */ }
539
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');
540
+ if ('value' in Attributes) O[P] = Attributes.value;
541
+ return O;
542
+ };
543
+
544
+ var DESCRIPTORS$3 = descriptors;
545
+ var definePropertyModule$2 = objectDefineProperty;
546
+ var createPropertyDescriptor = createPropertyDescriptor$2;
547
+
548
+ var createNonEnumerableProperty$2 = DESCRIPTORS$3 ? function (object, key, value) {
549
+ return definePropertyModule$2.f(object, key, createPropertyDescriptor(1, value));
550
+ } : function (object, key, value) {
551
+ object[key] = value;
552
+ return object;
553
+ };
554
+
555
+ var makeBuiltIn$2 = {exports: {}};
556
+
557
+ var DESCRIPTORS$2 = descriptors;
558
+ var hasOwn$4 = hasOwnProperty_1;
559
+
560
+ var FunctionPrototype = Function.prototype;
561
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
562
+ var getDescriptor = DESCRIPTORS$2 && Object.getOwnPropertyDescriptor;
563
+
564
+ var EXISTS = hasOwn$4(FunctionPrototype, 'name');
565
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$2 || (DESCRIPTORS$2 && getDescriptor(FunctionPrototype, 'name').configurable));
566
+
567
+ var functionName = {
568
+ CONFIGURABLE: CONFIGURABLE
569
+ };
570
+
571
+ var uncurryThis$4 = functionUncurryThis;
572
+ var isCallable$4 = isCallable$a;
573
+ var store$1 = sharedStoreExports;
574
+
575
+ var functionToString = uncurryThis$4(Function.toString);
576
+
577
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
578
+ if (!isCallable$4(store$1.inspectSource)) {
579
+ store$1.inspectSource = function (it) {
580
+ return functionToString(it);
581
+ };
582
+ }
583
+
584
+ var inspectSource$1 = store$1.inspectSource;
585
+
586
+ var globalThis$3 = globalThis_1;
587
+ var isCallable$3 = isCallable$a;
588
+
589
+ var WeakMap$1 = globalThis$3.WeakMap;
590
+
591
+ var weakMapBasicDetection = isCallable$3(WeakMap$1) && /native code/.test(String(WeakMap$1));
592
+
593
+ var shared$1 = shared$3;
594
+ var uid = uid$2;
595
+
596
+ var keys = shared$1('keys');
597
+
598
+ var sharedKey$1 = function (key) {
599
+ return keys[key] || (keys[key] = uid(key));
600
+ };
601
+
602
+ var hiddenKeys$3 = {};
603
+
604
+ var NATIVE_WEAK_MAP = weakMapBasicDetection;
605
+ var globalThis$2 = globalThis_1;
606
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
607
+ var hasOwn$3 = hasOwnProperty_1;
608
+ var shared = sharedStoreExports;
609
+ var sharedKey = sharedKey$1;
610
+ var hiddenKeys$2 = hiddenKeys$3;
611
+
612
+ var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
613
+ var TypeError$1 = globalThis$2.TypeError;
614
+ var WeakMap = globalThis$2.WeakMap;
615
+ var set, get, has;
616
+
617
+ var enforce = function (it) {
618
+ return has(it) ? get(it) : set(it, {});
619
+ };
620
+
621
+ if (NATIVE_WEAK_MAP || shared.state) {
622
+ var store = shared.state || (shared.state = new WeakMap());
623
+ /* eslint-disable no-self-assign -- prototype methods protection */
624
+ store.get = store.get;
625
+ store.has = store.has;
626
+ store.set = store.set;
627
+ /* eslint-enable no-self-assign -- prototype methods protection */
628
+ set = function (it, metadata) {
629
+ if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
630
+ metadata.facade = it;
631
+ store.set(it, metadata);
632
+ return metadata;
633
+ };
634
+ get = function (it) {
635
+ return store.get(it) || {};
636
+ };
637
+ has = function (it) {
638
+ return store.has(it);
639
+ };
640
+ } else {
641
+ var STATE = sharedKey('state');
642
+ hiddenKeys$2[STATE] = true;
643
+ set = function (it, metadata) {
644
+ if (hasOwn$3(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
645
+ metadata.facade = it;
646
+ createNonEnumerableProperty$1(it, STATE, metadata);
647
+ return metadata;
648
+ };
649
+ get = function (it) {
650
+ return hasOwn$3(it, STATE) ? it[STATE] : {};
651
+ };
652
+ has = function (it) {
653
+ return hasOwn$3(it, STATE);
654
+ };
655
+ }
656
+
657
+ var internalState = {
658
+ get: get,
659
+ enforce: enforce};
660
+
661
+ var uncurryThis$3 = functionUncurryThis;
662
+ var fails$2 = fails$9;
663
+ var isCallable$2 = isCallable$a;
664
+ var hasOwn$2 = hasOwnProperty_1;
665
+ var DESCRIPTORS$1 = descriptors;
666
+ var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
667
+ var inspectSource = inspectSource$1;
668
+ var InternalStateModule = internalState;
669
+
670
+ var enforceInternalState = InternalStateModule.enforce;
671
+ var getInternalState = InternalStateModule.get;
672
+ var $String = String;
673
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
674
+ var defineProperty$1 = Object.defineProperty;
675
+ var stringSlice = uncurryThis$3(''.slice);
676
+ var replace = uncurryThis$3(''.replace);
677
+ var join = uncurryThis$3([].join);
678
+
679
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$1 && !fails$2(function () {
680
+ return defineProperty$1(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
681
+ });
682
+
683
+ var TEMPLATE = String(String).split('String');
684
+
685
+ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
686
+ if (stringSlice($String(name), 0, 7) === 'Symbol(') {
687
+ name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
688
+ }
689
+ if (options && options.getter) name = 'get ' + name;
690
+ if (options && options.setter) name = 'set ' + name;
691
+ if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
692
+ if (DESCRIPTORS$1) defineProperty$1(value, 'name', { value: name, configurable: true });
693
+ else value.name = name;
694
+ }
695
+ if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
696
+ defineProperty$1(value, 'length', { value: options.arity });
697
+ }
698
+ try {
699
+ if (options && hasOwn$2(options, 'constructor') && options.constructor) {
700
+ if (DESCRIPTORS$1) defineProperty$1(value, 'prototype', { writable: false });
701
+ // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
702
+ } else if (value.prototype) value.prototype = undefined;
703
+ } catch (error) { /* empty */ }
704
+ var state = enforceInternalState(value);
705
+ if (!hasOwn$2(state, 'source')) {
706
+ state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
707
+ } return value;
708
+ };
709
+
710
+ // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
711
+ // eslint-disable-next-line no-extend-native -- required
712
+ Function.prototype.toString = makeBuiltIn$1(function toString() {
713
+ return isCallable$2(this) && getInternalState(this).source || inspectSource(this);
714
+ }, 'toString');
715
+
716
+ var makeBuiltInExports = makeBuiltIn$2.exports;
717
+
718
+ var isCallable$1 = isCallable$a;
719
+ var definePropertyModule$1 = objectDefineProperty;
720
+ var makeBuiltIn = makeBuiltInExports;
721
+ var defineGlobalProperty$1 = defineGlobalProperty$3;
722
+
723
+ var defineBuiltIn$1 = function (O, key, value, options) {
724
+ if (!options) options = {};
725
+ var simple = options.enumerable;
726
+ var name = options.name !== undefined ? options.name : key;
727
+ if (isCallable$1(value)) makeBuiltIn(value, name, options);
728
+ if (options.global) {
729
+ if (simple) O[key] = value;
730
+ else defineGlobalProperty$1(key, value);
731
+ } else {
732
+ try {
733
+ if (!options.unsafe) delete O[key];
734
+ else if (O[key]) simple = true;
735
+ } catch (error) { /* empty */ }
736
+ if (simple) O[key] = value;
737
+ else definePropertyModule$1.f(O, key, {
738
+ value: value,
739
+ enumerable: false,
740
+ configurable: !options.nonConfigurable,
741
+ writable: !options.nonWritable
742
+ });
743
+ } return O;
744
+ };
745
+
746
+ var objectGetOwnPropertyNames = {};
747
+
748
+ var ceil = Math.ceil;
749
+ var floor = Math.floor;
750
+
751
+ // `Math.trunc` method
752
+ // https://tc39.es/ecma262/#sec-math.trunc
753
+ // eslint-disable-next-line es/no-math-trunc -- safe
754
+ var mathTrunc = Math.trunc || function trunc(x) {
755
+ var n = +x;
756
+ return (n > 0 ? floor : ceil)(n);
757
+ };
758
+
759
+ var trunc = mathTrunc;
760
+
761
+ // `ToIntegerOrInfinity` abstract operation
762
+ // https://tc39.es/ecma262/#sec-tointegerorinfinity
763
+ var toIntegerOrInfinity$2 = function (argument) {
764
+ var number = +argument;
765
+ // eslint-disable-next-line no-self-compare -- NaN check
766
+ return number !== number || number === 0 ? 0 : trunc(number);
767
+ };
768
+
769
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
770
+
771
+ var max = Math.max;
772
+ var min$1 = Math.min;
773
+
774
+ // Helper for a popular repeating case of the spec:
775
+ // Let integer be ? ToInteger(index).
776
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
777
+ var toAbsoluteIndex$1 = function (index, length) {
778
+ var integer = toIntegerOrInfinity$1(index);
779
+ return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
780
+ };
781
+
782
+ var toIntegerOrInfinity = toIntegerOrInfinity$2;
783
+
784
+ var min = Math.min;
785
+
786
+ // `ToLength` abstract operation
787
+ // https://tc39.es/ecma262/#sec-tolength
788
+ var toLength$1 = function (argument) {
789
+ var len = toIntegerOrInfinity(argument);
790
+ return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
791
+ };
792
+
793
+ var toLength = toLength$1;
794
+
795
+ // `LengthOfArrayLike` abstract operation
796
+ // https://tc39.es/ecma262/#sec-lengthofarraylike
797
+ var lengthOfArrayLike$1 = function (obj) {
798
+ return toLength(obj.length);
799
+ };
800
+
801
+ var toIndexedObject$1 = toIndexedObject$3;
802
+ var toAbsoluteIndex = toAbsoluteIndex$1;
803
+ var lengthOfArrayLike = lengthOfArrayLike$1;
804
+
805
+ // `Array.prototype.{ indexOf, includes }` methods implementation
806
+ var createMethod = function (IS_INCLUDES) {
807
+ return function ($this, el, fromIndex) {
808
+ var O = toIndexedObject$1($this);
809
+ var length = lengthOfArrayLike(O);
810
+ if (length === 0) return !IS_INCLUDES && -1;
811
+ var index = toAbsoluteIndex(fromIndex, length);
812
+ var value;
813
+ // Array#includes uses SameValueZero equality algorithm
814
+ // eslint-disable-next-line no-self-compare -- NaN check
815
+ if (IS_INCLUDES && el !== el) while (length > index) {
816
+ value = O[index++];
817
+ // eslint-disable-next-line no-self-compare -- NaN check
818
+ if (value !== value) return true;
819
+ // Array#indexOf ignores holes, Array#includes - not
820
+ } else for (;length > index; index++) {
821
+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
822
+ } return !IS_INCLUDES && -1;
823
+ };
824
+ };
825
+
826
+ var arrayIncludes = {
827
+ // `Array.prototype.indexOf` method
828
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
829
+ indexOf: createMethod(false)
830
+ };
831
+
832
+ var uncurryThis$2 = functionUncurryThis;
833
+ var hasOwn$1 = hasOwnProperty_1;
834
+ var toIndexedObject = toIndexedObject$3;
835
+ var indexOf = arrayIncludes.indexOf;
836
+ var hiddenKeys$1 = hiddenKeys$3;
837
+
838
+ var push = uncurryThis$2([].push);
839
+
840
+ var objectKeysInternal = function (object, names) {
841
+ var O = toIndexedObject(object);
842
+ var i = 0;
843
+ var result = [];
844
+ var key;
845
+ for (key in O) !hasOwn$1(hiddenKeys$1, key) && hasOwn$1(O, key) && push(result, key);
846
+ // Don't enum bug & hidden keys
847
+ while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
848
+ ~indexOf(result, key) || push(result, key);
849
+ }
850
+ return result;
851
+ };
852
+
853
+ // IE8- don't enum bug keys
854
+ var enumBugKeys$2 = [
855
+ 'constructor',
856
+ 'hasOwnProperty',
857
+ 'isPrototypeOf',
858
+ 'propertyIsEnumerable',
859
+ 'toLocaleString',
860
+ 'toString',
861
+ 'valueOf'
862
+ ];
863
+
864
+ var internalObjectKeys$1 = objectKeysInternal;
865
+ var enumBugKeys$1 = enumBugKeys$2;
866
+
867
+ var hiddenKeys = enumBugKeys$1.concat('length', 'prototype');
868
+
869
+ // `Object.getOwnPropertyNames` method
870
+ // https://tc39.es/ecma262/#sec-object.getownpropertynames
871
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
872
+ objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
873
+ return internalObjectKeys$1(O, hiddenKeys);
874
+ };
875
+
876
+ var objectGetOwnPropertySymbols = {};
877
+
878
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
879
+ objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
880
+
881
+ var getBuiltIn = getBuiltIn$2;
882
+ var uncurryThis$1 = functionUncurryThis;
883
+ var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
884
+ var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
885
+ var anObject = anObject$2;
886
+
887
+ var concat$1 = uncurryThis$1([].concat);
888
+
889
+ // all object keys, includes non-enumerable and symbols
890
+ var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
891
+ var keys = getOwnPropertyNamesModule.f(anObject(it));
892
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
893
+ return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
894
+ };
895
+
896
+ var hasOwn = hasOwnProperty_1;
897
+ var ownKeys = ownKeys$1;
898
+ var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
899
+ var definePropertyModule = objectDefineProperty;
900
+
901
+ var copyConstructorProperties$1 = function (target, source, exceptions) {
902
+ var keys = ownKeys(source);
903
+ var defineProperty = definePropertyModule.f;
904
+ var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
905
+ for (var i = 0; i < keys.length; i++) {
906
+ var key = keys[i];
907
+ if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
908
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
909
+ }
910
+ }
911
+ };
912
+
913
+ var fails$1 = fails$9;
914
+ var isCallable = isCallable$a;
915
+
916
+ var replacement = /#|\.prototype\./;
917
+
918
+ var isForced$1 = function (feature, detection) {
919
+ var value = data[normalize(feature)];
920
+ return value === POLYFILL ? true
921
+ : value === NATIVE ? false
922
+ : isCallable(detection) ? fails$1(detection)
923
+ : !!detection;
924
+ };
925
+
926
+ var normalize = isForced$1.normalize = function (string) {
927
+ return String(string).replace(replacement, '.').toLowerCase();
928
+ };
929
+
930
+ var data = isForced$1.data = {};
931
+ var NATIVE = isForced$1.NATIVE = 'N';
932
+ var POLYFILL = isForced$1.POLYFILL = 'P';
933
+
934
+ var isForced_1 = isForced$1;
935
+
936
+ var globalThis$1 = globalThis_1;
937
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
938
+ var createNonEnumerableProperty = createNonEnumerableProperty$2;
939
+ var defineBuiltIn = defineBuiltIn$1;
940
+ var defineGlobalProperty = defineGlobalProperty$3;
941
+ var copyConstructorProperties = copyConstructorProperties$1;
942
+ var isForced = isForced_1;
943
+
944
+ /*
945
+ options.target - name of the target object
946
+ options.global - target is the global object
947
+ options.stat - export as static methods of target
948
+ options.proto - export as prototype methods of target
949
+ options.real - real prototype method for the `pure` version
950
+ options.forced - export even if the native feature is available
951
+ options.bind - bind methods to the target, required for the `pure` version
952
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
953
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
954
+ options.sham - add a flag to not completely full polyfills
955
+ options.enumerable - export as enumerable property
956
+ options.dontCallGetSet - prevent calling a getter on target
957
+ options.name - the .name of the function if it does not match the key
958
+ */
959
+ var _export = function (options, source) {
960
+ var TARGET = options.target;
961
+ var GLOBAL = options.global;
962
+ var STATIC = options.stat;
963
+ var FORCED, target, key, targetProperty, sourceProperty, descriptor;
964
+ if (GLOBAL) {
965
+ target = globalThis$1;
966
+ } else if (STATIC) {
967
+ target = globalThis$1[TARGET] || defineGlobalProperty(TARGET, {});
968
+ } else {
969
+ target = globalThis$1[TARGET] && globalThis$1[TARGET].prototype;
970
+ }
971
+ if (target) for (key in source) {
972
+ sourceProperty = source[key];
973
+ if (options.dontCallGetSet) {
974
+ descriptor = getOwnPropertyDescriptor(target, key);
975
+ targetProperty = descriptor && descriptor.value;
976
+ } else targetProperty = target[key];
977
+ FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
978
+ // contained in target
979
+ if (!FORCED && targetProperty !== undefined) {
980
+ if (typeof sourceProperty == typeof targetProperty) continue;
981
+ copyConstructorProperties(sourceProperty, targetProperty);
982
+ }
983
+ // add a flag to not completely full polyfills
984
+ if (options.sham || (targetProperty && targetProperty.sham)) {
985
+ createNonEnumerableProperty(sourceProperty, 'sham', true);
986
+ }
987
+ defineBuiltIn(target, key, sourceProperty, options);
988
+ }
989
+ };
990
+
991
+ var internalObjectKeys = objectKeysInternal;
992
+ var enumBugKeys = enumBugKeys$2;
993
+
994
+ // `Object.keys` method
995
+ // https://tc39.es/ecma262/#sec-object.keys
996
+ // eslint-disable-next-line es/no-object-keys -- safe
997
+ var objectKeys$1 = Object.keys || function keys(O) {
998
+ return internalObjectKeys(O, enumBugKeys);
999
+ };
1000
+
1001
+ var DESCRIPTORS = descriptors;
1002
+ var uncurryThis = functionUncurryThis;
1003
+ var call = functionCall;
1004
+ var fails = fails$9;
1005
+ var objectKeys = objectKeys$1;
1006
+ var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1007
+ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1008
+ var toObject = toObject$2;
1009
+ var IndexedObject = indexedObject;
1010
+
1011
+ // eslint-disable-next-line es/no-object-assign -- safe
1012
+ var $assign = Object.assign;
1013
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1014
+ var defineProperty = Object.defineProperty;
1015
+ var concat = uncurryThis([].concat);
1016
+
1017
+ // `Object.assign` method
1018
+ // https://tc39.es/ecma262/#sec-object.assign
1019
+ var objectAssign = !$assign || fails(function () {
1020
+ // should have correct order of operations (Edge bug)
1021
+ if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
1022
+ enumerable: true,
1023
+ get: function () {
1024
+ defineProperty(this, 'b', {
1025
+ value: 3,
1026
+ enumerable: false
1027
+ });
1028
+ }
1029
+ }), { b: 2 })).b !== 1) return true;
1030
+ // should work with symbols and should have deterministic property order (V8 bug)
1031
+ var A = {};
1032
+ var B = {};
1033
+ // eslint-disable-next-line es/no-symbol -- safe
1034
+ var symbol = Symbol('assign detection');
1035
+ var alphabet = 'abcdefghijklmnopqrst';
1036
+ A[symbol] = 7;
1037
+ // eslint-disable-next-line es/no-array-prototype-foreach -- safe
1038
+ alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1039
+ return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
1040
+ }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1041
+ var T = toObject(target);
1042
+ var argumentsLength = arguments.length;
1043
+ var index = 1;
1044
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1045
+ var propertyIsEnumerable = propertyIsEnumerableModule.f;
1046
+ while (argumentsLength > index) {
1047
+ var S = IndexedObject(arguments[index++]);
1048
+ var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
1049
+ var length = keys.length;
1050
+ var j = 0;
1051
+ var key;
1052
+ while (length > j) {
1053
+ key = keys[j++];
1054
+ if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
1055
+ }
1056
+ } return T;
1057
+ } : $assign;
1058
+
1059
+ var $ = _export;
1060
+ var assign = objectAssign;
1061
+
1062
+ // `Object.assign` method
1063
+ // https://tc39.es/ecma262/#sec-object.assign
1064
+ // eslint-disable-next-line es/no-object-assign -- required for testing
1065
+ $({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1066
+ assign: assign
1067
+ });
1068
+
1069
+ /******************************************************************************
1070
+ Copyright (c) Microsoft Corporation.
1071
+
1072
+ Permission to use, copy, modify, and/or distribute this software for any
1073
+ purpose with or without fee is hereby granted.
1074
+
1075
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1076
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1077
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1078
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1079
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1080
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1081
+ PERFORMANCE OF THIS SOFTWARE.
1082
+ ***************************************************************************** */
1083
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
1084
+
1085
+
1086
+ function __rest(s, e) {
1087
+ var t = {};
1088
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
1089
+ t[p] = s[p];
1090
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
1091
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
1092
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
1093
+ t[p[i]] = s[p[i]];
1094
+ }
1095
+ return t;
1096
+ }
1097
+
1098
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
1099
+ var e = new Error(message);
1100
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
1101
+ };
1102
+
1103
+ const Button = /*#__PURE__*/react.forwardRef((_a, ref) => {
1104
+ var {
1105
+ id,
1106
+ title,
1107
+ variant,
1108
+ size,
1109
+ disabled,
1110
+ fullWidth,
1111
+ onClick,
1112
+ type,
1113
+ iconLeft,
1114
+ iconRight,
1115
+ dataTestId
1116
+ } = _a,
1117
+ props = __rest(_a, ["id", "title", "variant", "size", "disabled", "fullWidth", "onClick", "type", "iconLeft", "iconRight", "dataTestId"]);
1118
+ return jsxRuntime.jsxs("button", Object.assign({}, props, {
1119
+ ref: ref,
1120
+ "data-testid": dataTestId,
1121
+ id: id,
1122
+ className: `flex align-center button-container ${variant} ${size}${fullWidth ? ' full-width' : ''}`,
1123
+ disabled: disabled,
1124
+ onClick: onClick,
1125
+ type: type
1126
+ }, disabled ? {
1127
+ 'aria-disabled': disabled
1128
+ } : {}, uiUtils.applyDataAttributes(props), {
1129
+ children: [iconLeft && jsxRuntime.jsx(obAtomsIcon.Icon, Object.assign({
1130
+ icon: iconLeft,
1131
+ dataTestId: `buttonIcon-${iconLeft}`,
1132
+ "aria-hidden": true
1133
+ }, uiUtils.applyDataAttributes(props, 'icon-left'))), title && jsxRuntime.jsx("span", Object.assign({}, uiUtils.applyDataAttributes(props, 'label'), {
1134
+ children: title
1135
+ })), iconRight && jsxRuntime.jsx(obAtomsIcon.Icon, Object.assign({
1136
+ dataTestId: `buttonIcon-${iconRight}`,
1137
+ icon: iconRight,
1138
+ "aria-hidden": true
1139
+ }, uiUtils.applyDataAttributes(props, 'icon-right')))]
1140
+ }));
1141
+ });
1142
+
1143
+ exports.Button = Button;