@rabbitio/ui-kit 1.0.0-alpha.9 → 1.0.0-beta.10

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.
@@ -0,0 +1,1891 @@
1
+ import React, { useState, useRef, useEffect } from 'react';
2
+ import { BigNumber } from 'bignumber.js';
3
+
4
+ function createCommonjsModule(fn) {
5
+ var module = { exports: {} };
6
+ return fn(module, module.exports), module.exports;
7
+ }
8
+
9
+ /** @license React v16.13.1
10
+ * react-is.production.min.js
11
+ *
12
+ * Copyright (c) Facebook, Inc. and its affiliates.
13
+ *
14
+ * This source code is licensed under the MIT license found in the
15
+ * LICENSE file in the root directory of this source tree.
16
+ */
17
+ var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
18
+ Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
19
+ function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}var AsyncMode=l;var ConcurrentMode=m;var ContextConsumer=k;var ContextProvider=h;var Element=c;var ForwardRef=n;var Fragment=e;var Lazy=t;var Memo=r;var Portal=d;
20
+ var Profiler=g;var StrictMode=f;var Suspense=p;var isAsyncMode=function(a){return A(a)||z(a)===l};var isConcurrentMode=A;var isContextConsumer=function(a){return z(a)===k};var isContextProvider=function(a){return z(a)===h};var isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};var isForwardRef=function(a){return z(a)===n};var isFragment=function(a){return z(a)===e};var isLazy=function(a){return z(a)===t};
21
+ var isMemo=function(a){return z(a)===r};var isPortal=function(a){return z(a)===d};var isProfiler=function(a){return z(a)===g};var isStrictMode=function(a){return z(a)===f};var isSuspense=function(a){return z(a)===p};
22
+ var isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};var typeOf=z;
23
+
24
+ var reactIs_production_min = {
25
+ AsyncMode: AsyncMode,
26
+ ConcurrentMode: ConcurrentMode,
27
+ ContextConsumer: ContextConsumer,
28
+ ContextProvider: ContextProvider,
29
+ Element: Element,
30
+ ForwardRef: ForwardRef,
31
+ Fragment: Fragment,
32
+ Lazy: Lazy,
33
+ Memo: Memo,
34
+ Portal: Portal,
35
+ Profiler: Profiler,
36
+ StrictMode: StrictMode,
37
+ Suspense: Suspense,
38
+ isAsyncMode: isAsyncMode,
39
+ isConcurrentMode: isConcurrentMode,
40
+ isContextConsumer: isContextConsumer,
41
+ isContextProvider: isContextProvider,
42
+ isElement: isElement,
43
+ isForwardRef: isForwardRef,
44
+ isFragment: isFragment,
45
+ isLazy: isLazy,
46
+ isMemo: isMemo,
47
+ isPortal: isPortal,
48
+ isProfiler: isProfiler,
49
+ isStrictMode: isStrictMode,
50
+ isSuspense: isSuspense,
51
+ isValidElementType: isValidElementType,
52
+ typeOf: typeOf
53
+ };
54
+
55
+ /** @license React v16.13.1
56
+ * react-is.development.js
57
+ *
58
+ * Copyright (c) Facebook, Inc. and its affiliates.
59
+ *
60
+ * This source code is licensed under the MIT license found in the
61
+ * LICENSE file in the root directory of this source tree.
62
+ */
63
+
64
+ var reactIs_development = createCommonjsModule(function (module, exports) {
65
+
66
+
67
+
68
+ if (process.env.NODE_ENV !== "production") {
69
+ (function() {
70
+
71
+ // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
72
+ // nor polyfill, then a plain number is used for performance.
73
+ var hasSymbol = typeof Symbol === 'function' && Symbol.for;
74
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
75
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
76
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
77
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
78
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
79
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
80
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
81
+ // (unstable) APIs that have been removed. Can we remove the symbols?
82
+
83
+ var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
84
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
85
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
86
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
87
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
88
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
89
+ var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
90
+ var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
91
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
92
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
93
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
94
+
95
+ function isValidElementType(type) {
96
+ return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
97
+ type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
98
+ }
99
+
100
+ function typeOf(object) {
101
+ if (typeof object === 'object' && object !== null) {
102
+ var $$typeof = object.$$typeof;
103
+
104
+ switch ($$typeof) {
105
+ case REACT_ELEMENT_TYPE:
106
+ var type = object.type;
107
+
108
+ switch (type) {
109
+ case REACT_ASYNC_MODE_TYPE:
110
+ case REACT_CONCURRENT_MODE_TYPE:
111
+ case REACT_FRAGMENT_TYPE:
112
+ case REACT_PROFILER_TYPE:
113
+ case REACT_STRICT_MODE_TYPE:
114
+ case REACT_SUSPENSE_TYPE:
115
+ return type;
116
+
117
+ default:
118
+ var $$typeofType = type && type.$$typeof;
119
+
120
+ switch ($$typeofType) {
121
+ case REACT_CONTEXT_TYPE:
122
+ case REACT_FORWARD_REF_TYPE:
123
+ case REACT_LAZY_TYPE:
124
+ case REACT_MEMO_TYPE:
125
+ case REACT_PROVIDER_TYPE:
126
+ return $$typeofType;
127
+
128
+ default:
129
+ return $$typeof;
130
+ }
131
+
132
+ }
133
+
134
+ case REACT_PORTAL_TYPE:
135
+ return $$typeof;
136
+ }
137
+ }
138
+
139
+ return undefined;
140
+ } // AsyncMode is deprecated along with isAsyncMode
141
+
142
+ var AsyncMode = REACT_ASYNC_MODE_TYPE;
143
+ var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
144
+ var ContextConsumer = REACT_CONTEXT_TYPE;
145
+ var ContextProvider = REACT_PROVIDER_TYPE;
146
+ var Element = REACT_ELEMENT_TYPE;
147
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
148
+ var Fragment = REACT_FRAGMENT_TYPE;
149
+ var Lazy = REACT_LAZY_TYPE;
150
+ var Memo = REACT_MEMO_TYPE;
151
+ var Portal = REACT_PORTAL_TYPE;
152
+ var Profiler = REACT_PROFILER_TYPE;
153
+ var StrictMode = REACT_STRICT_MODE_TYPE;
154
+ var Suspense = REACT_SUSPENSE_TYPE;
155
+ var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
156
+
157
+ function isAsyncMode(object) {
158
+ {
159
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
160
+ hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
161
+
162
+ console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
163
+ }
164
+ }
165
+
166
+ return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
167
+ }
168
+ function isConcurrentMode(object) {
169
+ return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
170
+ }
171
+ function isContextConsumer(object) {
172
+ return typeOf(object) === REACT_CONTEXT_TYPE;
173
+ }
174
+ function isContextProvider(object) {
175
+ return typeOf(object) === REACT_PROVIDER_TYPE;
176
+ }
177
+ function isElement(object) {
178
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
179
+ }
180
+ function isForwardRef(object) {
181
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
182
+ }
183
+ function isFragment(object) {
184
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
185
+ }
186
+ function isLazy(object) {
187
+ return typeOf(object) === REACT_LAZY_TYPE;
188
+ }
189
+ function isMemo(object) {
190
+ return typeOf(object) === REACT_MEMO_TYPE;
191
+ }
192
+ function isPortal(object) {
193
+ return typeOf(object) === REACT_PORTAL_TYPE;
194
+ }
195
+ function isProfiler(object) {
196
+ return typeOf(object) === REACT_PROFILER_TYPE;
197
+ }
198
+ function isStrictMode(object) {
199
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
200
+ }
201
+ function isSuspense(object) {
202
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
203
+ }
204
+
205
+ exports.AsyncMode = AsyncMode;
206
+ exports.ConcurrentMode = ConcurrentMode;
207
+ exports.ContextConsumer = ContextConsumer;
208
+ exports.ContextProvider = ContextProvider;
209
+ exports.Element = Element;
210
+ exports.ForwardRef = ForwardRef;
211
+ exports.Fragment = Fragment;
212
+ exports.Lazy = Lazy;
213
+ exports.Memo = Memo;
214
+ exports.Portal = Portal;
215
+ exports.Profiler = Profiler;
216
+ exports.StrictMode = StrictMode;
217
+ exports.Suspense = Suspense;
218
+ exports.isAsyncMode = isAsyncMode;
219
+ exports.isConcurrentMode = isConcurrentMode;
220
+ exports.isContextConsumer = isContextConsumer;
221
+ exports.isContextProvider = isContextProvider;
222
+ exports.isElement = isElement;
223
+ exports.isForwardRef = isForwardRef;
224
+ exports.isFragment = isFragment;
225
+ exports.isLazy = isLazy;
226
+ exports.isMemo = isMemo;
227
+ exports.isPortal = isPortal;
228
+ exports.isProfiler = isProfiler;
229
+ exports.isStrictMode = isStrictMode;
230
+ exports.isSuspense = isSuspense;
231
+ exports.isValidElementType = isValidElementType;
232
+ exports.typeOf = typeOf;
233
+ })();
234
+ }
235
+ });
236
+
237
+ var reactIs = createCommonjsModule(function (module) {
238
+
239
+ if (process.env.NODE_ENV === 'production') {
240
+ module.exports = reactIs_production_min;
241
+ } else {
242
+ module.exports = reactIs_development;
243
+ }
244
+ });
245
+
246
+ /*
247
+ object-assign
248
+ (c) Sindre Sorhus
249
+ @license MIT
250
+ */
251
+ /* eslint-disable no-unused-vars */
252
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
253
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
254
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable;
255
+
256
+ function toObject(val) {
257
+ if (val === null || val === undefined) {
258
+ throw new TypeError('Object.assign cannot be called with null or undefined');
259
+ }
260
+
261
+ return Object(val);
262
+ }
263
+
264
+ function shouldUseNative() {
265
+ try {
266
+ if (!Object.assign) {
267
+ return false;
268
+ }
269
+
270
+ // Detect buggy property enumeration order in older V8 versions.
271
+
272
+ // https://bugs.chromium.org/p/v8/issues/detail?id=4118
273
+ var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
274
+ test1[5] = 'de';
275
+ if (Object.getOwnPropertyNames(test1)[0] === '5') {
276
+ return false;
277
+ }
278
+
279
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
280
+ var test2 = {};
281
+ for (var i = 0; i < 10; i++) {
282
+ test2['_' + String.fromCharCode(i)] = i;
283
+ }
284
+ var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
285
+ return test2[n];
286
+ });
287
+ if (order2.join('') !== '0123456789') {
288
+ return false;
289
+ }
290
+
291
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
292
+ var test3 = {};
293
+ 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
294
+ test3[letter] = letter;
295
+ });
296
+ if (Object.keys(Object.assign({}, test3)).join('') !==
297
+ 'abcdefghijklmnopqrst') {
298
+ return false;
299
+ }
300
+
301
+ return true;
302
+ } catch (err) {
303
+ // We don't expect any of the above to throw, but better to be safe.
304
+ return false;
305
+ }
306
+ }
307
+
308
+ var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
309
+ var from;
310
+ var to = toObject(target);
311
+ var symbols;
312
+
313
+ for (var s = 1; s < arguments.length; s++) {
314
+ from = Object(arguments[s]);
315
+
316
+ for (var key in from) {
317
+ if (hasOwnProperty.call(from, key)) {
318
+ to[key] = from[key];
319
+ }
320
+ }
321
+
322
+ if (getOwnPropertySymbols) {
323
+ symbols = getOwnPropertySymbols(from);
324
+ for (var i = 0; i < symbols.length; i++) {
325
+ if (propIsEnumerable.call(from, symbols[i])) {
326
+ to[symbols[i]] = from[symbols[i]];
327
+ }
328
+ }
329
+ }
330
+ }
331
+
332
+ return to;
333
+ };
334
+
335
+ /**
336
+ * Copyright (c) 2013-present, Facebook, Inc.
337
+ *
338
+ * This source code is licensed under the MIT license found in the
339
+ * LICENSE file in the root directory of this source tree.
340
+ */
341
+
342
+ var ReactPropTypesSecret$2 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
343
+
344
+ var ReactPropTypesSecret_1 = ReactPropTypesSecret$2;
345
+
346
+ var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
347
+
348
+ var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
349
+
350
+ var has$1 = has$2;
351
+
352
+ /**
353
+ * Copyright (c) 2013-present, Facebook, Inc.
354
+ *
355
+ * This source code is licensed under the MIT license found in the
356
+ * LICENSE file in the root directory of this source tree.
357
+ */
358
+
359
+ var printWarning$1 = function() {};
360
+
361
+ if (process.env.NODE_ENV !== 'production') {
362
+ var ReactPropTypesSecret = ReactPropTypesSecret$1;
363
+ var loggedTypeFailures = {};
364
+ var has = has$1;
365
+
366
+ printWarning$1 = function(text) {
367
+ var message = 'Warning: ' + text;
368
+ if (typeof console !== 'undefined') {
369
+ console.error(message);
370
+ }
371
+ try {
372
+ // --- Welcome to debugging React ---
373
+ // This error was thrown as a convenience so that you can use this stack
374
+ // to find the callsite that caused this warning to fire.
375
+ throw new Error(message);
376
+ } catch (x) { /**/ }
377
+ };
378
+ }
379
+
380
+ /**
381
+ * Assert that the values match with the type specs.
382
+ * Error messages are memorized and will only be shown once.
383
+ *
384
+ * @param {object} typeSpecs Map of name to a ReactPropType
385
+ * @param {object} values Runtime values that need to be type-checked
386
+ * @param {string} location e.g. "prop", "context", "child context"
387
+ * @param {string} componentName Name of the component for error messages.
388
+ * @param {?Function} getStack Returns the component stack.
389
+ * @private
390
+ */
391
+ function checkPropTypes$1(typeSpecs, values, location, componentName, getStack) {
392
+ if (process.env.NODE_ENV !== 'production') {
393
+ for (var typeSpecName in typeSpecs) {
394
+ if (has(typeSpecs, typeSpecName)) {
395
+ var error;
396
+ // Prop type validation may throw. In case they do, we don't want to
397
+ // fail the render phase where it didn't fail before. So we log it.
398
+ // After these have been cleaned up, we'll let them throw.
399
+ try {
400
+ // This is intentionally an invariant that gets caught. It's the same
401
+ // behavior as without this statement except with a better message.
402
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
403
+ var err = Error(
404
+ (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
405
+ 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
406
+ 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
407
+ );
408
+ err.name = 'Invariant Violation';
409
+ throw err;
410
+ }
411
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
412
+ } catch (ex) {
413
+ error = ex;
414
+ }
415
+ if (error && !(error instanceof Error)) {
416
+ printWarning$1(
417
+ (componentName || 'React class') + ': type specification of ' +
418
+ location + ' `' + typeSpecName + '` is invalid; the type checker ' +
419
+ 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
420
+ 'You may have forgotten to pass an argument to the type checker ' +
421
+ 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
422
+ 'shape all require an argument).'
423
+ );
424
+ }
425
+ if (error instanceof Error && !(error.message in loggedTypeFailures)) {
426
+ // Only monitor this failure once because there tends to be a lot of the
427
+ // same error.
428
+ loggedTypeFailures[error.message] = true;
429
+
430
+ var stack = getStack ? getStack() : '';
431
+
432
+ printWarning$1(
433
+ 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
434
+ );
435
+ }
436
+ }
437
+ }
438
+ }
439
+ }
440
+
441
+ /**
442
+ * Resets warning cache when testing.
443
+ *
444
+ * @private
445
+ */
446
+ checkPropTypes$1.resetWarningCache = function() {
447
+ if (process.env.NODE_ENV !== 'production') {
448
+ loggedTypeFailures = {};
449
+ }
450
+ };
451
+
452
+ var checkPropTypes_1 = checkPropTypes$1;
453
+
454
+ var checkPropTypes = checkPropTypes_1;
455
+
456
+ /**
457
+ * Copyright (c) 2013-present, Facebook, Inc.
458
+ *
459
+ * This source code is licensed under the MIT license found in the
460
+ * LICENSE file in the root directory of this source tree.
461
+ */
462
+
463
+
464
+
465
+
466
+
467
+
468
+
469
+
470
+ var printWarning = function() {};
471
+
472
+ if (process.env.NODE_ENV !== 'production') {
473
+ printWarning = function(text) {
474
+ var message = 'Warning: ' + text;
475
+ if (typeof console !== 'undefined') {
476
+ console.error(message);
477
+ }
478
+ try {
479
+ // --- Welcome to debugging React ---
480
+ // This error was thrown as a convenience so that you can use this stack
481
+ // to find the callsite that caused this warning to fire.
482
+ throw new Error(message);
483
+ } catch (x) {}
484
+ };
485
+ }
486
+
487
+ function emptyFunctionThatReturnsNull() {
488
+ return null;
489
+ }
490
+
491
+ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
492
+ /* global Symbol */
493
+ var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
494
+ var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
495
+
496
+ /**
497
+ * Returns the iterator method function contained on the iterable object.
498
+ *
499
+ * Be sure to invoke the function with the iterable as context:
500
+ *
501
+ * var iteratorFn = getIteratorFn(myIterable);
502
+ * if (iteratorFn) {
503
+ * var iterator = iteratorFn.call(myIterable);
504
+ * ...
505
+ * }
506
+ *
507
+ * @param {?object} maybeIterable
508
+ * @return {?function}
509
+ */
510
+ function getIteratorFn(maybeIterable) {
511
+ var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
512
+ if (typeof iteratorFn === 'function') {
513
+ return iteratorFn;
514
+ }
515
+ }
516
+
517
+ /**
518
+ * Collection of methods that allow declaration and validation of props that are
519
+ * supplied to React components. Example usage:
520
+ *
521
+ * var Props = require('ReactPropTypes');
522
+ * var MyArticle = React.createClass({
523
+ * propTypes: {
524
+ * // An optional string prop named "description".
525
+ * description: Props.string,
526
+ *
527
+ * // A required enum prop named "category".
528
+ * category: Props.oneOf(['News','Photos']).isRequired,
529
+ *
530
+ * // A prop named "dialog" that requires an instance of Dialog.
531
+ * dialog: Props.instanceOf(Dialog).isRequired
532
+ * },
533
+ * render: function() { ... }
534
+ * });
535
+ *
536
+ * A more formal specification of how these methods are used:
537
+ *
538
+ * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
539
+ * decl := ReactPropTypes.{type}(.isRequired)?
540
+ *
541
+ * Each and every declaration produces a function with the same signature. This
542
+ * allows the creation of custom validation functions. For example:
543
+ *
544
+ * var MyLink = React.createClass({
545
+ * propTypes: {
546
+ * // An optional string or URI prop named "href".
547
+ * href: function(props, propName, componentName) {
548
+ * var propValue = props[propName];
549
+ * if (propValue != null && typeof propValue !== 'string' &&
550
+ * !(propValue instanceof URI)) {
551
+ * return new Error(
552
+ * 'Expected a string or an URI for ' + propName + ' in ' +
553
+ * componentName
554
+ * );
555
+ * }
556
+ * }
557
+ * },
558
+ * render: function() {...}
559
+ * });
560
+ *
561
+ * @internal
562
+ */
563
+
564
+ var ANONYMOUS = '<<anonymous>>';
565
+
566
+ // Important!
567
+ // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
568
+ var ReactPropTypes = {
569
+ array: createPrimitiveTypeChecker('array'),
570
+ bigint: createPrimitiveTypeChecker('bigint'),
571
+ bool: createPrimitiveTypeChecker('boolean'),
572
+ func: createPrimitiveTypeChecker('function'),
573
+ number: createPrimitiveTypeChecker('number'),
574
+ object: createPrimitiveTypeChecker('object'),
575
+ string: createPrimitiveTypeChecker('string'),
576
+ symbol: createPrimitiveTypeChecker('symbol'),
577
+
578
+ any: createAnyTypeChecker(),
579
+ arrayOf: createArrayOfTypeChecker,
580
+ element: createElementTypeChecker(),
581
+ elementType: createElementTypeTypeChecker(),
582
+ instanceOf: createInstanceTypeChecker,
583
+ node: createNodeChecker(),
584
+ objectOf: createObjectOfTypeChecker,
585
+ oneOf: createEnumTypeChecker,
586
+ oneOfType: createUnionTypeChecker,
587
+ shape: createShapeTypeChecker,
588
+ exact: createStrictShapeTypeChecker,
589
+ };
590
+
591
+ /**
592
+ * inlined Object.is polyfill to avoid requiring consumers ship their own
593
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
594
+ */
595
+ /*eslint-disable no-self-compare*/
596
+ function is(x, y) {
597
+ // SameValue algorithm
598
+ if (x === y) {
599
+ // Steps 1-5, 7-10
600
+ // Steps 6.b-6.e: +0 != -0
601
+ return x !== 0 || 1 / x === 1 / y;
602
+ } else {
603
+ // Step 6.a: NaN == NaN
604
+ return x !== x && y !== y;
605
+ }
606
+ }
607
+ /*eslint-enable no-self-compare*/
608
+
609
+ /**
610
+ * We use an Error-like object for backward compatibility as people may call
611
+ * PropTypes directly and inspect their output. However, we don't use real
612
+ * Errors anymore. We don't inspect their stack anyway, and creating them
613
+ * is prohibitively expensive if they are created too often, such as what
614
+ * happens in oneOfType() for any type before the one that matched.
615
+ */
616
+ function PropTypeError(message, data) {
617
+ this.message = message;
618
+ this.data = data && typeof data === 'object' ? data: {};
619
+ this.stack = '';
620
+ }
621
+ // Make `instanceof Error` still work for returned errors.
622
+ PropTypeError.prototype = Error.prototype;
623
+
624
+ function createChainableTypeChecker(validate) {
625
+ if (process.env.NODE_ENV !== 'production') {
626
+ var manualPropTypeCallCache = {};
627
+ var manualPropTypeWarningCount = 0;
628
+ }
629
+ function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
630
+ componentName = componentName || ANONYMOUS;
631
+ propFullName = propFullName || propName;
632
+
633
+ if (secret !== ReactPropTypesSecret$1) {
634
+ if (throwOnDirectAccess) {
635
+ // New behavior only for users of `prop-types` package
636
+ var err = new Error(
637
+ 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
638
+ 'Use `PropTypes.checkPropTypes()` to call them. ' +
639
+ 'Read more at http://fb.me/use-check-prop-types'
640
+ );
641
+ err.name = 'Invariant Violation';
642
+ throw err;
643
+ } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
644
+ // Old behavior for people using React.PropTypes
645
+ var cacheKey = componentName + ':' + propName;
646
+ if (
647
+ !manualPropTypeCallCache[cacheKey] &&
648
+ // Avoid spamming the console because they are often not actionable except for lib authors
649
+ manualPropTypeWarningCount < 3
650
+ ) {
651
+ printWarning(
652
+ 'You are manually calling a React.PropTypes validation ' +
653
+ 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
654
+ 'and will throw in the standalone `prop-types` package. ' +
655
+ 'You may be seeing this warning due to a third-party PropTypes ' +
656
+ 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
657
+ );
658
+ manualPropTypeCallCache[cacheKey] = true;
659
+ manualPropTypeWarningCount++;
660
+ }
661
+ }
662
+ }
663
+ if (props[propName] == null) {
664
+ if (isRequired) {
665
+ if (props[propName] === null) {
666
+ return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
667
+ }
668
+ return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
669
+ }
670
+ return null;
671
+ } else {
672
+ return validate(props, propName, componentName, location, propFullName);
673
+ }
674
+ }
675
+
676
+ var chainedCheckType = checkType.bind(null, false);
677
+ chainedCheckType.isRequired = checkType.bind(null, true);
678
+
679
+ return chainedCheckType;
680
+ }
681
+
682
+ function createPrimitiveTypeChecker(expectedType) {
683
+ function validate(props, propName, componentName, location, propFullName, secret) {
684
+ var propValue = props[propName];
685
+ var propType = getPropType(propValue);
686
+ if (propType !== expectedType) {
687
+ // `propValue` being instance of, say, date/regexp, pass the 'object'
688
+ // check, but we can offer a more precise error message here rather than
689
+ // 'of type `object`'.
690
+ var preciseType = getPreciseType(propValue);
691
+
692
+ return new PropTypeError(
693
+ 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
694
+ {expectedType: expectedType}
695
+ );
696
+ }
697
+ return null;
698
+ }
699
+ return createChainableTypeChecker(validate);
700
+ }
701
+
702
+ function createAnyTypeChecker() {
703
+ return createChainableTypeChecker(emptyFunctionThatReturnsNull);
704
+ }
705
+
706
+ function createArrayOfTypeChecker(typeChecker) {
707
+ function validate(props, propName, componentName, location, propFullName) {
708
+ if (typeof typeChecker !== 'function') {
709
+ return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
710
+ }
711
+ var propValue = props[propName];
712
+ if (!Array.isArray(propValue)) {
713
+ var propType = getPropType(propValue);
714
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
715
+ }
716
+ for (var i = 0; i < propValue.length; i++) {
717
+ var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret$1);
718
+ if (error instanceof Error) {
719
+ return error;
720
+ }
721
+ }
722
+ return null;
723
+ }
724
+ return createChainableTypeChecker(validate);
725
+ }
726
+
727
+ function createElementTypeChecker() {
728
+ function validate(props, propName, componentName, location, propFullName) {
729
+ var propValue = props[propName];
730
+ if (!isValidElement(propValue)) {
731
+ var propType = getPropType(propValue);
732
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
733
+ }
734
+ return null;
735
+ }
736
+ return createChainableTypeChecker(validate);
737
+ }
738
+
739
+ function createElementTypeTypeChecker() {
740
+ function validate(props, propName, componentName, location, propFullName) {
741
+ var propValue = props[propName];
742
+ if (!reactIs.isValidElementType(propValue)) {
743
+ var propType = getPropType(propValue);
744
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
745
+ }
746
+ return null;
747
+ }
748
+ return createChainableTypeChecker(validate);
749
+ }
750
+
751
+ function createInstanceTypeChecker(expectedClass) {
752
+ function validate(props, propName, componentName, location, propFullName) {
753
+ if (!(props[propName] instanceof expectedClass)) {
754
+ var expectedClassName = expectedClass.name || ANONYMOUS;
755
+ var actualClassName = getClassName(props[propName]);
756
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
757
+ }
758
+ return null;
759
+ }
760
+ return createChainableTypeChecker(validate);
761
+ }
762
+
763
+ function createEnumTypeChecker(expectedValues) {
764
+ if (!Array.isArray(expectedValues)) {
765
+ if (process.env.NODE_ENV !== 'production') {
766
+ if (arguments.length > 1) {
767
+ printWarning(
768
+ 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
769
+ 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
770
+ );
771
+ } else {
772
+ printWarning('Invalid argument supplied to oneOf, expected an array.');
773
+ }
774
+ }
775
+ return emptyFunctionThatReturnsNull;
776
+ }
777
+
778
+ function validate(props, propName, componentName, location, propFullName) {
779
+ var propValue = props[propName];
780
+ for (var i = 0; i < expectedValues.length; i++) {
781
+ if (is(propValue, expectedValues[i])) {
782
+ return null;
783
+ }
784
+ }
785
+
786
+ var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
787
+ var type = getPreciseType(value);
788
+ if (type === 'symbol') {
789
+ return String(value);
790
+ }
791
+ return value;
792
+ });
793
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
794
+ }
795
+ return createChainableTypeChecker(validate);
796
+ }
797
+
798
+ function createObjectOfTypeChecker(typeChecker) {
799
+ function validate(props, propName, componentName, location, propFullName) {
800
+ if (typeof typeChecker !== 'function') {
801
+ return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
802
+ }
803
+ var propValue = props[propName];
804
+ var propType = getPropType(propValue);
805
+ if (propType !== 'object') {
806
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
807
+ }
808
+ for (var key in propValue) {
809
+ if (has$1(propValue, key)) {
810
+ var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
811
+ if (error instanceof Error) {
812
+ return error;
813
+ }
814
+ }
815
+ }
816
+ return null;
817
+ }
818
+ return createChainableTypeChecker(validate);
819
+ }
820
+
821
+ function createUnionTypeChecker(arrayOfTypeCheckers) {
822
+ if (!Array.isArray(arrayOfTypeCheckers)) {
823
+ process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
824
+ return emptyFunctionThatReturnsNull;
825
+ }
826
+
827
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
828
+ var checker = arrayOfTypeCheckers[i];
829
+ if (typeof checker !== 'function') {
830
+ printWarning(
831
+ 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
832
+ 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
833
+ );
834
+ return emptyFunctionThatReturnsNull;
835
+ }
836
+ }
837
+
838
+ function validate(props, propName, componentName, location, propFullName) {
839
+ var expectedTypes = [];
840
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
841
+ var checker = arrayOfTypeCheckers[i];
842
+ var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret$1);
843
+ if (checkerResult == null) {
844
+ return null;
845
+ }
846
+ if (checkerResult.data && has$1(checkerResult.data, 'expectedType')) {
847
+ expectedTypes.push(checkerResult.data.expectedType);
848
+ }
849
+ }
850
+ var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
851
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
852
+ }
853
+ return createChainableTypeChecker(validate);
854
+ }
855
+
856
+ function createNodeChecker() {
857
+ function validate(props, propName, componentName, location, propFullName) {
858
+ if (!isNode(props[propName])) {
859
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
860
+ }
861
+ return null;
862
+ }
863
+ return createChainableTypeChecker(validate);
864
+ }
865
+
866
+ function invalidValidatorError(componentName, location, propFullName, key, type) {
867
+ return new PropTypeError(
868
+ (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
869
+ 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
870
+ );
871
+ }
872
+
873
+ function createShapeTypeChecker(shapeTypes) {
874
+ function validate(props, propName, componentName, location, propFullName) {
875
+ var propValue = props[propName];
876
+ var propType = getPropType(propValue);
877
+ if (propType !== 'object') {
878
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
879
+ }
880
+ for (var key in shapeTypes) {
881
+ var checker = shapeTypes[key];
882
+ if (typeof checker !== 'function') {
883
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
884
+ }
885
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
886
+ if (error) {
887
+ return error;
888
+ }
889
+ }
890
+ return null;
891
+ }
892
+ return createChainableTypeChecker(validate);
893
+ }
894
+
895
+ function createStrictShapeTypeChecker(shapeTypes) {
896
+ function validate(props, propName, componentName, location, propFullName) {
897
+ var propValue = props[propName];
898
+ var propType = getPropType(propValue);
899
+ if (propType !== 'object') {
900
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
901
+ }
902
+ // We need to check all keys in case some are required but missing from props.
903
+ var allKeys = objectAssign({}, props[propName], shapeTypes);
904
+ for (var key in allKeys) {
905
+ var checker = shapeTypes[key];
906
+ if (has$1(shapeTypes, key) && typeof checker !== 'function') {
907
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
908
+ }
909
+ if (!checker) {
910
+ return new PropTypeError(
911
+ 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
912
+ '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
913
+ '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
914
+ );
915
+ }
916
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
917
+ if (error) {
918
+ return error;
919
+ }
920
+ }
921
+ return null;
922
+ }
923
+
924
+ return createChainableTypeChecker(validate);
925
+ }
926
+
927
+ function isNode(propValue) {
928
+ switch (typeof propValue) {
929
+ case 'number':
930
+ case 'string':
931
+ case 'undefined':
932
+ return true;
933
+ case 'boolean':
934
+ return !propValue;
935
+ case 'object':
936
+ if (Array.isArray(propValue)) {
937
+ return propValue.every(isNode);
938
+ }
939
+ if (propValue === null || isValidElement(propValue)) {
940
+ return true;
941
+ }
942
+
943
+ var iteratorFn = getIteratorFn(propValue);
944
+ if (iteratorFn) {
945
+ var iterator = iteratorFn.call(propValue);
946
+ var step;
947
+ if (iteratorFn !== propValue.entries) {
948
+ while (!(step = iterator.next()).done) {
949
+ if (!isNode(step.value)) {
950
+ return false;
951
+ }
952
+ }
953
+ } else {
954
+ // Iterator will provide entry [k,v] tuples rather than values.
955
+ while (!(step = iterator.next()).done) {
956
+ var entry = step.value;
957
+ if (entry) {
958
+ if (!isNode(entry[1])) {
959
+ return false;
960
+ }
961
+ }
962
+ }
963
+ }
964
+ } else {
965
+ return false;
966
+ }
967
+
968
+ return true;
969
+ default:
970
+ return false;
971
+ }
972
+ }
973
+
974
+ function isSymbol(propType, propValue) {
975
+ // Native Symbol.
976
+ if (propType === 'symbol') {
977
+ return true;
978
+ }
979
+
980
+ // falsy value can't be a Symbol
981
+ if (!propValue) {
982
+ return false;
983
+ }
984
+
985
+ // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
986
+ if (propValue['@@toStringTag'] === 'Symbol') {
987
+ return true;
988
+ }
989
+
990
+ // Fallback for non-spec compliant Symbols which are polyfilled.
991
+ if (typeof Symbol === 'function' && propValue instanceof Symbol) {
992
+ return true;
993
+ }
994
+
995
+ return false;
996
+ }
997
+
998
+ // Equivalent of `typeof` but with special handling for array and regexp.
999
+ function getPropType(propValue) {
1000
+ var propType = typeof propValue;
1001
+ if (Array.isArray(propValue)) {
1002
+ return 'array';
1003
+ }
1004
+ if (propValue instanceof RegExp) {
1005
+ // Old webkits (at least until Android 4.0) return 'function' rather than
1006
+ // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
1007
+ // passes PropTypes.object.
1008
+ return 'object';
1009
+ }
1010
+ if (isSymbol(propType, propValue)) {
1011
+ return 'symbol';
1012
+ }
1013
+ return propType;
1014
+ }
1015
+
1016
+ // This handles more types than `getPropType`. Only used for error messages.
1017
+ // See `createPrimitiveTypeChecker`.
1018
+ function getPreciseType(propValue) {
1019
+ if (typeof propValue === 'undefined' || propValue === null) {
1020
+ return '' + propValue;
1021
+ }
1022
+ var propType = getPropType(propValue);
1023
+ if (propType === 'object') {
1024
+ if (propValue instanceof Date) {
1025
+ return 'date';
1026
+ } else if (propValue instanceof RegExp) {
1027
+ return 'regexp';
1028
+ }
1029
+ }
1030
+ return propType;
1031
+ }
1032
+
1033
+ // Returns a string that is postfixed to a warning about an invalid type.
1034
+ // For example, "undefined" or "of type array"
1035
+ function getPostfixForTypeWarning(value) {
1036
+ var type = getPreciseType(value);
1037
+ switch (type) {
1038
+ case 'array':
1039
+ case 'object':
1040
+ return 'an ' + type;
1041
+ case 'boolean':
1042
+ case 'date':
1043
+ case 'regexp':
1044
+ return 'a ' + type;
1045
+ default:
1046
+ return type;
1047
+ }
1048
+ }
1049
+
1050
+ // Returns class name of the object, if any.
1051
+ function getClassName(propValue) {
1052
+ if (!propValue.constructor || !propValue.constructor.name) {
1053
+ return ANONYMOUS;
1054
+ }
1055
+ return propValue.constructor.name;
1056
+ }
1057
+
1058
+ ReactPropTypes.checkPropTypes = checkPropTypes;
1059
+ ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
1060
+ ReactPropTypes.PropTypes = ReactPropTypes;
1061
+
1062
+ return ReactPropTypes;
1063
+ };
1064
+
1065
+ /**
1066
+ * Copyright (c) 2013-present, Facebook, Inc.
1067
+ *
1068
+ * This source code is licensed under the MIT license found in the
1069
+ * LICENSE file in the root directory of this source tree.
1070
+ */
1071
+
1072
+
1073
+
1074
+ function emptyFunction() {}
1075
+ function emptyFunctionWithReset() {}
1076
+ emptyFunctionWithReset.resetWarningCache = emptyFunction;
1077
+
1078
+ var factoryWithThrowingShims = function() {
1079
+ function shim(props, propName, componentName, location, propFullName, secret) {
1080
+ if (secret === ReactPropTypesSecret$1) {
1081
+ // It is still safe when called from React.
1082
+ return;
1083
+ }
1084
+ var err = new Error(
1085
+ 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
1086
+ 'Use PropTypes.checkPropTypes() to call them. ' +
1087
+ 'Read more at http://fb.me/use-check-prop-types'
1088
+ );
1089
+ err.name = 'Invariant Violation';
1090
+ throw err;
1091
+ } shim.isRequired = shim;
1092
+ function getShim() {
1093
+ return shim;
1094
+ } // Important!
1095
+ // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
1096
+ var ReactPropTypes = {
1097
+ array: shim,
1098
+ bigint: shim,
1099
+ bool: shim,
1100
+ func: shim,
1101
+ number: shim,
1102
+ object: shim,
1103
+ string: shim,
1104
+ symbol: shim,
1105
+
1106
+ any: shim,
1107
+ arrayOf: getShim,
1108
+ element: shim,
1109
+ elementType: shim,
1110
+ instanceOf: getShim,
1111
+ node: shim,
1112
+ objectOf: getShim,
1113
+ oneOf: getShim,
1114
+ oneOfType: getShim,
1115
+ shape: getShim,
1116
+ exact: getShim,
1117
+
1118
+ checkPropTypes: emptyFunctionWithReset,
1119
+ resetWarningCache: emptyFunction
1120
+ };
1121
+
1122
+ ReactPropTypes.PropTypes = ReactPropTypes;
1123
+
1124
+ return ReactPropTypes;
1125
+ };
1126
+
1127
+ var require$$1 = factoryWithTypeCheckers;
1128
+
1129
+ var require$$2 = factoryWithThrowingShims;
1130
+
1131
+ /**
1132
+ * Copyright (c) 2013-present, Facebook, Inc.
1133
+ *
1134
+ * This source code is licensed under the MIT license found in the
1135
+ * LICENSE file in the root directory of this source tree.
1136
+ */
1137
+
1138
+ var propTypes = createCommonjsModule(function (module) {
1139
+ if (process.env.NODE_ENV !== 'production') {
1140
+ var ReactIs = reactIs;
1141
+
1142
+ // By explicitly using `prop-types` you are opting into new development behavior.
1143
+ // http://fb.me/prop-types-in-prod
1144
+ var throwOnDirectAccess = true;
1145
+ module.exports = require$$1(ReactIs.isElement, throwOnDirectAccess);
1146
+ } else {
1147
+ // By explicitly using `prop-types` you are opting into new production behavior.
1148
+ // http://fb.me/prop-types-in-prod
1149
+ module.exports = require$$2();
1150
+ }
1151
+ });
1152
+
1153
+ var PropTypes = propTypes;
1154
+
1155
+ var styles$1 = {"container":"_lIpAT","button":"_sS-Yj","m-0":"_hBGrg","p-0":"_fOezx","m-1":"_R79vC","p-1":"_BGhZS","m-2":"_4WQa1","p-2":"_-hkj1","m-3":"_ePtXr","p-3":"_ihe2B","m-4":"_KplPo","p-4":"_2vDkp","m-5":"_4AqfI","p-5":"_FfAMs","m-6":"_53MvX","p-6":"_e-x4J","m-7":"_EtdrG","p-7":"_FLCe5","m-8":"_1IHYX","p-8":"_fZzmM","m-9":"_QsD9D","p-9":"_6Sr2Q","m-10":"_LvJdU","p-10":"_ah-tz","ml-0":"_De6uE","pl-0":"_aQ1ph","ml-1":"_5Bwy4","pl-1":"_j4wAR","ml-2":"_qeK50","pl-2":"_VC868","ml-3":"_LuNZb","pl-3":"_3fxbv","ml-4":"_XiU0I","pl-4":"_hPWPx","ml-5":"_xkmy7","pl-5":"_vZWUx","ml-6":"_HJ-Oe","pl-6":"_nx5bN","ml-7":"_L-cTm","pl-7":"_XyNJZ","ml-8":"_GUJTt","pl-8":"_O-OPx","ml-9":"_4DBUs","pl-9":"_W5E4J","ml-10":"_TsFNa","pl-10":"_a07G-","mr-0":"_KuY5-","pr-0":"_Zv2gF","mr-1":"_IylJL","pr-1":"_DIaMC","mr-2":"_wodzN","pr-2":"_x7vGR","mr-3":"_cg-WA","pr-3":"_-GR0e","mr-4":"_zip09","pr-4":"_mrzBz","mr-5":"_Z3SdR","pr-5":"_FOt7u","mr-6":"_DX3gj","pr-6":"_caE8K","mr-7":"_SRVDr","pr-7":"_7h7Xw","mr-8":"_bvjcP","pr-8":"_WxJl8","mr-9":"_CDXo1","pr-9":"_uftSg","mr-10":"_WqvBW","pr-10":"_75aX1","mt-0":"_lfLEb","pt-0":"_FszNW","mt-1":"_xtok6","pt-1":"_cDFtN","mt-2":"_j96uZ","pt-2":"_BX40s","mt-3":"_3--yt","pt-3":"_qkmXr","mt-4":"_DhLUo","pt-4":"_AG7V9","mt-5":"_Gn5bX","pt-5":"_5-rlk","mt-6":"_c6g6t","pt-6":"_iWQbs","mt-7":"_6X-oB","pt-7":"_i82Td","mt-8":"_uK93t","pt-8":"_ESUrY","mt-9":"_LmSrq","pt-9":"_BgZxc","mt-10":"_mPy8r","pt-10":"_ddKoS","mb-0":"_gs1hc","pb-0":"_k94Xn","mb-1":"_8XN6g","pb-1":"_lJSHs","mb-2":"_y04oG","pb-2":"_cNkcX","mb-3":"_3-Ex4","pb-3":"_UlTDL","mb-4":"_ZchCM","pb-4":"_PrDJ0","mb-5":"_Al-qI","pb-5":"_9ExxH","mb-6":"_38fJH","pb-6":"_YPJnw","mb-7":"_ViLUm","pb-7":"_YtQHK","mb-8":"_Jm2m3","pb-8":"_hQSln","mb-9":"_73cuP","pb-9":"_Hm-oe","mb-10":"_90atw","pb-10":"_GxdOW","mx-0":"_786dB","px-0":"_b-KUL","mx-1":"_1sw2D","px-1":"_pfikG","mx-2":"_ZCsfc","px-2":"_-E-rP","mx-3":"_Vzqfk","px-3":"_Evygh","mx-4":"_g6XKX","px-4":"_hzPZK","mx-5":"_6Yusw","px-5":"_43D2o","mx-6":"_l7jig","px-6":"_X4DAB","mx-7":"_xCEJ4","px-7":"_kFsKL","mx-8":"_bcZ3x","px-8":"_qKJ-o","mx-9":"_pmzk-","px-9":"_5kFZh","mx-10":"_ZtyHL","px-10":"_RzSP4","my-0":"_iGkHt","py-0":"_tFXK8","my-1":"_9p151","py-1":"_1ExYH","my-2":"_hDX-y","py-2":"_j2Iqz","my-3":"_ZoP-i","py-3":"_JiyfX","my-4":"_6dHeQ","py-4":"_Val1l","my-5":"_yF8w9","py-5":"_3Do00","my-6":"_5ATW7","py-6":"_EqQi0","my-7":"_6Kng-","py-7":"_kFB05","my-8":"_fqkrf","py-8":"_wkYlc","my-9":"_yC6ha","py-9":"_nR4hK","my-10":"_46v2E","py-10":"_yjbuZ","m-sm-0":"_mXg7O","p-sm-0":"_sRkzF","m-sm-1":"_uh76t","p-sm-1":"_mnvOq","m-sm-2":"_-Lxwk","p-sm-2":"_9AoV6","m-sm-3":"_k6uGI","p-sm-3":"_FPlck","m-sm-4":"_XWNGm","p-sm-4":"_UhY4z","m-sm-5":"_nqmEm","p-sm-5":"_O3yzT","m-sm-6":"_1C7QT","p-sm-6":"_yR3CC","m-sm-7":"_vlqMl","p-sm-7":"_otIfI","m-sm-8":"_f-GUL","p-sm-8":"_oMnLQ","m-sm-9":"_Klhy3","p-sm-9":"_xYdqe","m-sm-10":"_jg7tY","p-sm-10":"_-28KU","ml-sm-0":"_6hhVb","pl-sm-0":"_WV4uZ","ml-sm-1":"_u--dD","pl-sm-1":"_k2dSZ","ml-sm-2":"_ng1Wx","pl-sm-2":"_A6pLt","ml-sm-3":"_OKwcI","pl-sm-3":"_uxcE6","ml-sm-4":"_dHy5x","pl-sm-4":"_loKKN","ml-sm-5":"_pWXnn","pl-sm-5":"_6KcZ0","ml-sm-6":"_8DdT4","pl-sm-6":"_atdfH","ml-sm-7":"_-BksR","pl-sm-7":"_B6uGl","ml-sm-8":"_rL6Yi","pl-sm-8":"_L0Gt6","ml-sm-9":"_sDCuc","pl-sm-9":"_5ndTT","ml-sm-10":"_d0sOv","pl-sm-10":"_MzCci","mr-sm-0":"_TxpxL","pr-sm-0":"_ReTjB","mr-sm-1":"_ZDd-C","pr-sm-1":"_6ux6P","mr-sm-2":"_SbIys","pr-sm-2":"_0dAjY","mr-sm-3":"_WT-FE","pr-sm-3":"_hgzpB","mr-sm-4":"_ovLOk","pr-sm-4":"_YVXRD","mr-sm-5":"_3gKfj","pr-sm-5":"_GKqKE","mr-sm-6":"_EJ3Ig","pr-sm-6":"_pKU7W","mr-sm-7":"_MfWyc","pr-sm-7":"_439vk","mr-sm-8":"_HsLqa","pr-sm-8":"_Afu8-","mr-sm-9":"_k-uXQ","pr-sm-9":"_GSZg6","mr-sm-10":"_buR-E","pr-sm-10":"_GoGHq","mt-sm-0":"_3eC5V","pt-sm-0":"_w0Row","mt-sm-1":"_lFsar","pt-sm-1":"_rhMZX","mt-sm-2":"_HchNc","pt-sm-2":"_Xyn5a","mt-sm-3":"_INU0e","pt-sm-3":"_i9zkC","mt-sm-4":"_d1xqQ","pt-sm-4":"_eMU-M","mt-sm-5":"_gYMLN","pt-sm-5":"_sG2g-","mt-sm-6":"_U4BDm","pt-sm-6":"_nagya","mt-sm-7":"_f4nLP","pt-sm-7":"_3jMHw","mt-sm-8":"_hZW3J","pt-sm-8":"_woC7I","mt-sm-9":"_SFf2s","pt-sm-9":"_nuLoR","mt-sm-10":"_k1lF9","pt-sm-10":"_WG3-N","mb-sm-0":"_fQPR-","pb-sm-0":"_eL6LV","mb-sm-1":"_Z7gTR","pb-sm-1":"_OdGhD","mb-sm-2":"_dkjwo","pb-sm-2":"_kKhvE","mb-sm-3":"_meX0E","pb-sm-3":"_kh7Ku","mb-sm-4":"_rrb92","pb-sm-4":"_aytJc","mb-sm-5":"_wPkH4","pb-sm-5":"_1nZ-9","mb-sm-6":"_MkdDA","pb-sm-6":"_BxNLc","mb-sm-7":"_Nfm1A","pb-sm-7":"_-r452","mb-sm-8":"_K1omF","pb-sm-8":"_4-6gt","mb-sm-9":"_OUWsR","pb-sm-9":"_7DXr5","mb-sm-10":"_wZv7f","pb-sm-10":"_21WIP","mx-sm-0":"_hCRDg","px-sm-0":"_Bdj31","mx-sm-1":"_sx6bH","px-sm-1":"_jQXbZ","mx-sm-2":"_aCjIb","px-sm-2":"_-DBsZ","mx-sm-3":"_p2bFN","px-sm-3":"_d6ice","mx-sm-4":"_GZmNE","px-sm-4":"_7D10W","mx-sm-5":"_tKkEN","px-sm-5":"_J2iH5","mx-sm-6":"_iJju-","px-sm-6":"_m2ygK","mx-sm-7":"_chPCu","px-sm-7":"_C0aVt","mx-sm-8":"_twRB-","px-sm-8":"_6DezI","mx-sm-9":"_z1iZL","px-sm-9":"_HLE-F","mx-sm-10":"_F58U0","px-sm-10":"_Mat2S","my-sm-0":"_nADuT","py-sm-0":"_yu79u","my-sm-1":"_TEHyf","py-sm-1":"_MkRV5","my-sm-2":"_wfxJN","py-sm-2":"_qjIa5","my-sm-3":"_ch7TX","py-sm-3":"_0ZM5Q","my-sm-4":"_KQyj3","py-sm-4":"_npV56","my-sm-5":"_antvz","py-sm-5":"_qK29t","my-sm-6":"_PIZw6","py-sm-6":"_kwzra","my-sm-7":"_IPjVc","py-sm-7":"_NPJ-2","my-sm-8":"_Sxu2p","py-sm-8":"_VUG-4","my-sm-9":"_mLy-T","py-sm-9":"_U-1Tz","my-sm-10":"_6LGF-","py-sm-10":"_1I7Qo","m-lg-0":"_7JHxT","p-lg-0":"_dZxSG","m-lg-1":"_ap69K","p-lg-1":"_yAiEU","m-lg-2":"_cu0Gq","p-lg-2":"_p2Nvp","m-lg-3":"_ipTnO","p-lg-3":"_uekmi","m-lg-4":"_Ocj1U","p-lg-4":"_T5xZ0","m-lg-5":"_9QwAr","p-lg-5":"_S73RR","m-lg-6":"_TQDUS","p-lg-6":"_SVpzt","m-lg-7":"_u7-7x","p-lg-7":"_tVwwR","m-lg-8":"_VMheR","p-lg-8":"_dnoel","m-lg-9":"_bs68b","p-lg-9":"_-fPka","m-lg-10":"_JaRq8","p-lg-10":"_222SK","ml-lg-0":"_snW5C","pl-lg-0":"_cbC4p","ml-lg-1":"_ZcZqo","pl-lg-1":"_Ox1R-","ml-lg-2":"_GYhhL","pl-lg-2":"_RQnGa","ml-lg-3":"_PUix3","pl-lg-3":"_TXjNe","ml-lg-4":"_ctO4e","pl-lg-4":"_HGdnK","ml-lg-5":"_0kAql","pl-lg-5":"_j374-","ml-lg-6":"_DTSzU","pl-lg-6":"_f8fRt","ml-lg-7":"_SOGpN","pl-lg-7":"_ftCov","ml-lg-8":"_yyg3O","pl-lg-8":"_es-pp","ml-lg-9":"_ujiYm","pl-lg-9":"_hEH2f","ml-lg-10":"_sOymp","pl-lg-10":"_zABMD","mr-lg-0":"_bZvOK","pr-lg-0":"_1MjdX","mr-lg-1":"_lVGe-","pr-lg-1":"_hJzV5","mr-lg-2":"_9az71","pr-lg-2":"_vBVKt","mr-lg-3":"_SK-xp","pr-lg-3":"_BymTx","mr-lg-4":"_C-P-K","pr-lg-4":"_oDktY","mr-lg-5":"_e8X2c","pr-lg-5":"_XugCG","mr-lg-6":"_CycFS","pr-lg-6":"_aXn7x","mr-lg-7":"_woi9n","pr-lg-7":"_Xz9XT","mr-lg-8":"_p4H3g","pr-lg-8":"_2GHoq","mr-lg-9":"_OZukC","pr-lg-9":"_ckY7k","mr-lg-10":"_tu3W5","pr-lg-10":"_9v3FG","mt-lg-0":"_I-1g6","pt-lg-0":"_cUyFD","mt-lg-1":"_c94QP","pt-lg-1":"_g75ry","mt-lg-2":"_XiT9Y","pt-lg-2":"_OzwIr","mt-lg-3":"_TZnYh","pt-lg-3":"_qC-3V","mt-lg-4":"_ClD8h","pt-lg-4":"_n1T93","mt-lg-5":"_yfqL8","pt-lg-5":"_oRkf6","mt-lg-6":"_6sndc","pt-lg-6":"_zKuFI","mt-lg-7":"_61kz3","pt-lg-7":"_5Q2hr","mt-lg-8":"_s2ReT","pt-lg-8":"_Ap8SS","mt-lg-9":"_bV6Hp","pt-lg-9":"_G5Dl9","mt-lg-10":"_hSJ91","pt-lg-10":"_amgjj","mb-lg-0":"_p-7me","pb-lg-0":"_ys8Fm","mb-lg-1":"_ZFPzR","pb-lg-1":"_Low3Q","mb-lg-2":"_UKfD5","pb-lg-2":"_Z4xYz","mb-lg-3":"_WYCZq","pb-lg-3":"_lOmpq","mb-lg-4":"_3f13Q","pb-lg-4":"_tfvEW","mb-lg-5":"_DxAtv","pb-lg-5":"_lN1KV","mb-lg-6":"_pEAAo","pb-lg-6":"_9pLfP","mb-lg-7":"_lZzWZ","pb-lg-7":"_E76Lg","mb-lg-8":"_Biywb","pb-lg-8":"_PKNGt","mb-lg-9":"_af7LP","pb-lg-9":"_769vF","mb-lg-10":"_p6W2n","pb-lg-10":"_44r6t","mx-lg-0":"_noonL","px-lg-0":"_g6n-m","mx-lg-1":"_V3fJC","px-lg-1":"_h-048","mx-lg-2":"_VBXFM","px-lg-2":"_yXjeI","mx-lg-3":"_anxPB","px-lg-3":"_umXxh","mx-lg-4":"_arYWt","px-lg-4":"_v21qY","mx-lg-5":"_VJrBv","px-lg-5":"_Wg7-s","mx-lg-6":"_qiDC7","px-lg-6":"_1VXpg","mx-lg-7":"_d0c15","px-lg-7":"_sfSeF","mx-lg-8":"_2gYLA","px-lg-8":"_DEL7d","mx-lg-9":"_KmU1j","px-lg-9":"_Qs2ud","mx-lg-10":"_cEBsK","px-lg-10":"_mQH7b","my-lg-0":"_ag2WO","py-lg-0":"_lnVBo","my-lg-1":"_xEHQX","py-lg-1":"_9Tj2M","my-lg-2":"_Iqbzp","py-lg-2":"_8tcVx","my-lg-3":"_caNHW","py-lg-3":"_XJ-2h","my-lg-4":"_6q91a","py-lg-4":"_EwkV-","my-lg-5":"_vAyw8","py-lg-5":"_5fbq2","my-lg-6":"_15LIk","py-lg-6":"_HIyvD","my-lg-7":"_kBk-L","py-lg-7":"_t5Eqq","my-lg-8":"_7QdOv","py-lg-8":"_mWXQT","my-lg-9":"_AgF1j","py-lg-9":"_Hw03a","my-lg-10":"_lgtEt","py-lg-10":"_VLUO-","m-md-0":"_bZzK1","p-md-0":"_hf1u1","m-md-1":"_D90hf","p-md-1":"_T8Wci","m-md-2":"_OV2C9","p-md-2":"_GFg-F","m-md-3":"_tOGww","p-md-3":"_p0NdJ","m-md-4":"_gUtm-","p-md-4":"_92JAP","m-md-5":"_V4DwP","p-md-5":"_KzYIR","m-md-6":"_RYzMI","p-md-6":"_bV-UI","m-md-7":"_bZ8rT","p-md-7":"_sz5lw","m-md-8":"_Tt85A","p-md-8":"_o9XsL","m-md-9":"_5Z2zG","p-md-9":"_QFUvw","m-md-10":"_o-CSv","p-md-10":"_I0UW7","ml-md-0":"_Ec-jt","pl-md-0":"_AsNUW","ml-md-1":"_FkvyK","pl-md-1":"_eWpHd","ml-md-2":"_C-N9j","pl-md-2":"_f4IXC","ml-md-3":"_i4rpE","pl-md-3":"_u1wxV","ml-md-4":"_bfpFB","pl-md-4":"_LFkDV","ml-md-5":"_ChenT","pl-md-5":"_Tseed","ml-md-6":"_5OVzE","pl-md-6":"_kKZuw","ml-md-7":"_HkEvd","pl-md-7":"_-UCQ1","ml-md-8":"_Mil4J","pl-md-8":"_ibj8N","ml-md-9":"_hZgvD","pl-md-9":"_x58o7","ml-md-10":"_aNTRb","pl-md-10":"_B9Ytk","mr-md-0":"_5fzNR","pr-md-0":"_UcmnK","mr-md-1":"_7GSVQ","pr-md-1":"_lKZ6y","mr-md-2":"_Vuc2l","pr-md-2":"_OWoeF","mr-md-3":"_GfGNW","pr-md-3":"_039xq","mr-md-4":"_XUUw7","pr-md-4":"_hNdK8","mr-md-5":"_PchvO","pr-md-5":"_YBTBv","mr-md-6":"_irZPz","pr-md-6":"_xez9v","mr-md-7":"_IWCJD","pr-md-7":"_Nymwz","mr-md-8":"_1ypEg","pr-md-8":"_hJvwk","mr-md-9":"_AisV-","pr-md-9":"_6jqua","mr-md-10":"_LdBUv","pr-md-10":"_Rhahl","mt-md-0":"_iI75A","pt-md-0":"_GCK2h","mt-md-1":"_QoRcE","pt-md-1":"_Q3gZh","mt-md-2":"_rzNrf","pt-md-2":"_mrtOR","mt-md-3":"_-Xx-x","pt-md-3":"_vhZY4","mt-md-4":"_Ie5M9","pt-md-4":"_Bv-Vz","mt-md-5":"_sC4OE","pt-md-5":"_sZzfz","mt-md-6":"_b8qW3","pt-md-6":"_sca5l","mt-md-7":"_Pn6m9","pt-md-7":"_9klOR","mt-md-8":"_oY4i-","pt-md-8":"_QpcKU","mt-md-9":"_-PssV","pt-md-9":"_IBITO","mt-md-10":"_hmDGa","pt-md-10":"_rPOnf","mb-md-0":"_KsSuI","pb-md-0":"_E01ZW","mb-md-1":"_mu8n4","pb-md-1":"_obt8N","mb-md-2":"_4uUmS","pb-md-2":"_eCQut","mb-md-3":"_gckFx","pb-md-3":"_v76WA","mb-md-4":"_HNG1G","pb-md-4":"_WF2cS","mb-md-5":"_y0d7f","pb-md-5":"_Ulg5o","mb-md-6":"_gGNca","pb-md-6":"_L6tTJ","mb-md-7":"_JFKoe","pb-md-7":"_cotbI","mb-md-8":"_zWuLC","pb-md-8":"_PZ98d","mb-md-9":"_0OLPw","pb-md-9":"_diSZ0","mb-md-10":"_tZv9r","pb-md-10":"_8DINx","mx-md-0":"_TlILw","px-md-0":"_nYb1A","mx-md-1":"_8F9Eu","px-md-1":"_zdtgY","mx-md-2":"_Hf2VU","px-md-2":"_R7ntT","mx-md-3":"_7koGZ","px-md-3":"_SjYZ0","mx-md-4":"_mfX1U","px-md-4":"_wpmO4","mx-md-5":"_yWbVN","px-md-5":"_c-PDJ","mx-md-6":"_F98A-","px-md-6":"_k2aB-","mx-md-7":"_PyjZi","px-md-7":"_1p7LO","mx-md-8":"_at5B-","px-md-8":"_Wlop7","mx-md-9":"_MP-IT","px-md-9":"_ZEJLn","mx-md-10":"_t-qxH","px-md-10":"_m2jcH","my-md-0":"_mamXD","py-md-0":"_XfnLL","my-md-1":"_wltQA","py-md-1":"_kMSov","my-md-2":"_PB9Lu","py-md-2":"_ZHQxJ","my-md-3":"_ROfrO","py-md-3":"_5pjW-","my-md-4":"_asOWk","py-md-4":"_521lJ","my-md-5":"_sfKXT","py-md-5":"_0hhLg","my-md-6":"_vBIkT","py-md-6":"_mh-mU","my-md-7":"_SbaIW","py-md-7":"_4U--m","my-md-8":"_8Ml4g","py-md-8":"_8CAbC","my-md-9":"_2W5Vi","py-md-9":"_ifVgs","my-md-10":"_jOwwL","py-md-10":"_xGEHg","m-xl-0":"_Cmi8h","p-xl-0":"_YOJnv","m-xl-1":"_IlYRc","p-xl-1":"_qg39r","m-xl-2":"_NZu1F","p-xl-2":"_ChCeZ","m-xl-3":"_wCJFO","p-xl-3":"_s5DXB","m-xl-4":"_-ooyS","p-xl-4":"_1rcFF","m-xl-5":"_2--cB","p-xl-5":"_0s8cD","m-xl-6":"_zMbs-","p-xl-6":"_qAR79","m-xl-7":"_sRWyz","p-xl-7":"_ykFCJ","m-xl-8":"_dj226","p-xl-8":"_XLB7-","m-xl-9":"_eM-R4","p-xl-9":"_QuQVl","m-xl-10":"_UUuwy","p-xl-10":"_nDqX9","ml-xl-0":"_LL8WU","pl-xl-0":"_AIPph","ml-xl-1":"_pKFo-","pl-xl-1":"_tQEXN","ml-xl-2":"_F-wn7","pl-xl-2":"_wcxv3","ml-xl-3":"_M94zg","pl-xl-3":"_I3KoK","ml-xl-4":"_0PzeG","pl-xl-4":"_lzci3","ml-xl-5":"_XRI4C","pl-xl-5":"_XlhyA","ml-xl-6":"_GjzL0","pl-xl-6":"_ASrOm","ml-xl-7":"_-0WjA","pl-xl-7":"_hx5P8","ml-xl-8":"_XlbUH","pl-xl-8":"_Vonli","ml-xl-9":"_LwuSL","pl-xl-9":"_MxuFJ","ml-xl-10":"_v7xZI","pl-xl-10":"_Tvo-Z","mr-xl-0":"_SzVWx","pr-xl-0":"_K1dhq","mr-xl-1":"_JOZtq","pr-xl-1":"_c1i37","mr-xl-2":"_R3B8Q","pr-xl-2":"_63cME","mr-xl-3":"_91LCJ","pr-xl-3":"_WxNaS","mr-xl-4":"_BauAg","pr-xl-4":"_V6rST","mr-xl-5":"_H0Uy4","pr-xl-5":"_idyBA","mr-xl-6":"_lIBS-","pr-xl-6":"_hm7f2","mr-xl-7":"_DcV1a","pr-xl-7":"_L9DAM","mr-xl-8":"_M62Cx","pr-xl-8":"_nso5O","mr-xl-9":"_M-vkg","pr-xl-9":"_Jm-de","mr-xl-10":"_V5v9Y","pr-xl-10":"_jt-a5","mt-xl-0":"_YPHmA","pt-xl-0":"_XVXEh","mt-xl-1":"_pJbYc","pt-xl-1":"_i-ZXc","mt-xl-2":"_SHsME","pt-xl-2":"_ak-Hh","mt-xl-3":"_wzbs7","pt-xl-3":"_py3lR","mt-xl-4":"_HBXKA","pt-xl-4":"_GQBlv","mt-xl-5":"_5d6Ee","pt-xl-5":"_KFPkO","mt-xl-6":"_Yf-yF","pt-xl-6":"_1e6oC","mt-xl-7":"_kg9lU","pt-xl-7":"_SHs7f","mt-xl-8":"_KXugL","pt-xl-8":"_VyRfA","mt-xl-9":"_EOyB7","pt-xl-9":"_5KMcS","mt-xl-10":"_8W-Zj","pt-xl-10":"_cz8iz","mb-xl-0":"_rWALs","pb-xl-0":"_LpkfT","mb-xl-1":"_RzmHQ","pb-xl-1":"_6ad54","mb-xl-2":"_Ajc4e","pb-xl-2":"_SbX8t","mb-xl-3":"_vSzzB","pb-xl-3":"_yidEJ","mb-xl-4":"_mrCP3","pb-xl-4":"_3TrW-","mb-xl-5":"_6j8-6","pb-xl-5":"_D1WrN","mb-xl-6":"_XDRU9","pb-xl-6":"_dcA8T","mb-xl-7":"_-i7kC","pb-xl-7":"_81QE4","mb-xl-8":"_X9-zp","pb-xl-8":"_HTClM","mb-xl-9":"_klb-D","pb-xl-9":"_RReN9","mb-xl-10":"_vPsb7","pb-xl-10":"_OVfeI","mx-xl-0":"_YNCB1","px-xl-0":"_hiVA4","mx-xl-1":"_k6kz-","px-xl-1":"_rONSC","mx-xl-2":"_pBneY","px-xl-2":"_po-3F","mx-xl-3":"_Bpbr7","px-xl-3":"_KdGyy","mx-xl-4":"_brh6E","px-xl-4":"_qqxT0","mx-xl-5":"_BfzzU","px-xl-5":"_R-Rw5","mx-xl-6":"_sSR5n","px-xl-6":"_thByS","mx-xl-7":"_r5nPW","px-xl-7":"_Qn6um","mx-xl-8":"_J9EDO","px-xl-8":"_9rkVI","mx-xl-9":"_Mltks","px-xl-9":"_g-Ham","mx-xl-10":"_sbya6","px-xl-10":"_8-jLj","my-xl-0":"_5yWBG","py-xl-0":"_xbHHG","my-xl-1":"_PlYBL","py-xl-1":"_F3Fon","my-xl-2":"_tsmUe","py-xl-2":"_a-0sQ","my-xl-3":"_sY3wJ","py-xl-3":"_iMcG-","my-xl-4":"_oHAzn","py-xl-4":"_SVfuw","my-xl-5":"_PvaIf","py-xl-5":"_J1xNt","my-xl-6":"_opQCd","py-xl-6":"_BykWn","my-xl-7":"_wYtgV","py-xl-7":"_rWN6g","my-xl-8":"_QHTpr","py-xl-8":"_6lwHD","my-xl-9":"_sKUSa","py-xl-9":"_HEg44","my-xl-10":"_mR1Ig","py-xl-10":"_-KK9e","background-shine":"_GS93D","path":"_Yio2J","line":"_hUBrW","skeleton":"_jhzCK","skeleton-animate":"_E3Vdv","skeleton-dark":"_wQ36Y","skeleton-dark-animate":"_j-rmG","skeleton-transparent":"_trTiX","skeleton-transparent-animate":"_4QQUW","semi-transparent":"_jW9cZ","disable":"_07-2N","full-width-on-tablets":"_at3Is","full-width-on-mobiles":"_7mVhH","xl":"_YBEjy","lg":"_4T1JY","md":"_y81Q7","sm":"_HlFvs","small-padding-on-small-mobiles":"_pC5i6","primary":"_rf33o","primary-bordered":"_bpdoC","primary-transparent":"_FNwOe","transparent":"_9LspZ","transparent-bordered":"_HgM7r","transparent-without-shadow":"_tkp-m","white":"_bv597","white-flat":"_IhewT","button-primary-dots-wrapper":"_OEKG8","show":"_MQYPo","button-success-icon":"_Y24W2","button-text":"_o-rLq","hide":"_4GC9-","button-with-icon":"_m1W6m","button-with-icon-text":"_75-fw","big-icon":"_gHcQi"};
1156
+
1157
+ var styles = {"container":"_a5RSj","m-0":"_wcoyj","p-0":"_Rd5sE","m-1":"_vAsxv","p-1":"_KZ14Z","m-2":"_Bvk20","p-2":"_Z7fhL","m-3":"_ZqDCi","p-3":"_CiGc9","m-4":"_8JK-L","p-4":"_FadoA","m-5":"_baCle","p-5":"_cvJqX","m-6":"_P3lUT","p-6":"_ZmGGH","m-7":"_5Tnff","p-7":"_-t7z9","m-8":"_1JxUQ","p-8":"_EATOh","m-9":"_pJGV0","p-9":"_B762d","m-10":"_Z3rGU","p-10":"_0ULM0","ml-0":"_ZSfG7","pl-0":"_hjKq0","ml-1":"_srwbU","pl-1":"_oz-sG","ml-2":"_RnILi","pl-2":"_-nAjZ","ml-3":"_lges5","pl-3":"_AwVsn","ml-4":"_p4arL","pl-4":"_upAfC","ml-5":"_-iEnG","pl-5":"_bqApa","ml-6":"_uF0xd","pl-6":"_WUUFo","ml-7":"_eXFZs","pl-7":"_ZforM","ml-8":"_2AA5o","pl-8":"_u6bF0","ml-9":"_19IxL","pl-9":"_vmLg6","ml-10":"_eyqFK","pl-10":"_mr36J","mr-0":"_6RpFz","pr-0":"_fgnzi","mr-1":"_fBjrA","pr-1":"_QrC2Y","mr-2":"_0Y6RC","pr-2":"_5kZkr","mr-3":"_iaZj-","pr-3":"_A-IQ7","mr-4":"_zBHHn","pr-4":"_pHQ4t","mr-5":"_1JTCi","pr-5":"_ODvHf","mr-6":"_n6Enr","pr-6":"_XNdBl","mr-7":"_YfaVy","pr-7":"_ZfZDh","mr-8":"_le3sp","pr-8":"_K1rvN","mr-9":"_mL6UV","pr-9":"_76mZn","mr-10":"_fo-sf","pr-10":"_xvsK1","mt-0":"_1uBdK","pt-0":"_30qg7","mt-1":"_NKlWd","pt-1":"_3yj99","mt-2":"_lLyiG","pt-2":"_GsXqc","mt-3":"_zC55o","pt-3":"_3OZTc","mt-4":"_v1VXO","pt-4":"_sFrdR","mt-5":"_qbBFx","pt-5":"_DQrF8","mt-6":"_dJG8P","pt-6":"_Zxte7","mt-7":"_sUtkp","pt-7":"_9B1r5","mt-8":"_Qrnld","pt-8":"_7xBV7","mt-9":"_OPKw2","pt-9":"_cXhnD","mt-10":"_m5k36","pt-10":"_b9nMR","mb-0":"_7AyaR","pb-0":"_u0vFs","mb-1":"_ivpnr","pb-1":"_1dkPf","mb-2":"_D8KfL","pb-2":"_wzuIB","mb-3":"_zwh5E","pb-3":"_rT8wS","mb-4":"_wpLh9","pb-4":"_AGvn8","mb-5":"_-phDB","pb-5":"_r4HWg","mb-6":"_RZI7I","pb-6":"_-t4Gs","mb-7":"_Vw-z1","pb-7":"_qwD1B","mb-8":"_f3nKh","pb-8":"_Sk1Fn","mb-9":"_2MDAw","pb-9":"_jZbwv","mb-10":"_gRDI3","pb-10":"_W7OVZ","mx-0":"_I6mmv","px-0":"_BVRG5","mx-1":"_b7fTJ","px-1":"_bZf6u","mx-2":"_FoGd8","px-2":"_-vX3t","mx-3":"_0H3Cj","loading-dots":"_pnWN9","big":"_k0j0g","dot":"_9LXS6","px-3":"_ggifM","mx-4":"_leP-v","px-4":"_7Kcun","mx-5":"_sBxud","px-5":"_oJO7X","mx-6":"_F-Una","px-6":"_Bl-A8","mx-7":"_NVWrT","px-7":"_Bn6vR","mx-8":"_OK9GD","px-8":"_iv1v2","mx-9":"_WVtLI","px-9":"_ntW3v","mx-10":"_21M1-","px-10":"_BjXo-","my-0":"_3v8p4","py-0":"_EBmV-","my-1":"_DcOh5","py-1":"_udCfN","my-2":"_Lk0RK","py-2":"_wIENK","my-3":"_nsOf5","py-3":"_No-oK","my-4":"_L1ycy","py-4":"_42DgQ","my-5":"_3bZSh","py-5":"_XjTMT","my-6":"_Ty-GG","py-6":"_7Dr5E","my-7":"_PILBF","py-7":"_vyvsk","my-8":"_AkmkO","py-8":"_X0xg-","my-9":"_VSxcf","py-9":"_Hq-yp","my-10":"_FxwFR","py-10":"_BnN2G","m-sm-0":"_EZHgz","p-sm-0":"_oKPqX","m-sm-1":"_gdysh","p-sm-1":"_-7KK8","m-sm-2":"_BLBqZ","p-sm-2":"_IgrmD","m-sm-3":"_zbrA7","p-sm-3":"_eimPJ","m-sm-4":"_7RaaP","p-sm-4":"_0-Cvi","m-sm-5":"_PhCOs","p-sm-5":"_CIKFA","m-sm-6":"_8WC3P","p-sm-6":"_2FqT5","m-sm-7":"_D7sDK","p-sm-7":"_L3EpN","m-sm-8":"_mG6-A","p-sm-8":"_D2Gx9","m-sm-9":"_2tGFi","p-sm-9":"_8n6VA","m-sm-10":"_G-MMA","p-sm-10":"_pgJzb","ml-sm-0":"_BF125","pl-sm-0":"_81k6q","ml-sm-1":"_JSywC","pl-sm-1":"_1eoeN","ml-sm-2":"_q5cSf","pl-sm-2":"_A6Li5","ml-sm-3":"_-7C1-","pl-sm-3":"_lBIcx","ml-sm-4":"_bvj1N","pl-sm-4":"_SQmLb","ml-sm-5":"_pwy33","pl-sm-5":"_iuqDu","ml-sm-6":"_CNiYb","pl-sm-6":"_tQ2J-","ml-sm-7":"_Zuec-","pl-sm-7":"_iJF5q","ml-sm-8":"_lP-ls","pl-sm-8":"_1xIwn","ml-sm-9":"_Jld-6","pl-sm-9":"_pfOVT","ml-sm-10":"_TGfAU","pl-sm-10":"_MYgNP","mr-sm-0":"_CEiPO","pr-sm-0":"_rZ5kD","mr-sm-1":"_-bdjz","pr-sm-1":"_nRBRL","mr-sm-2":"_17O3E","pr-sm-2":"_uBaUj","mr-sm-3":"_5oO1d","pr-sm-3":"_jQWXm","mr-sm-4":"_peO4Y","pr-sm-4":"_P2f3n","mr-sm-5":"_AUc3q","pr-sm-5":"_7TR99","mr-sm-6":"_e3d5h","pr-sm-6":"_QqPl1","mr-sm-7":"_Yc1cR","pr-sm-7":"_5fd5H","mr-sm-8":"_z4g3-","pr-sm-8":"_gY3T9","mr-sm-9":"_P9chP","pr-sm-9":"_G4k6A","mr-sm-10":"_QWMD2","pr-sm-10":"_2POWv","mt-sm-0":"_xYS0m","pt-sm-0":"_gYD3b","mt-sm-1":"_08rCY","pt-sm-1":"_UsP-z","mt-sm-2":"_HWQec","pt-sm-2":"_cjIgZ","mt-sm-3":"_gZV20","pt-sm-3":"_zJZJm","mt-sm-4":"_4FE5W","pt-sm-4":"_VpJhv","mt-sm-5":"_eu88H","pt-sm-5":"_V7qwC","mt-sm-6":"_09LyL","pt-sm-6":"_n8bba","mt-sm-7":"_q-ASs","pt-sm-7":"_3b9S8","mt-sm-8":"_iTxDv","pt-sm-8":"_--Hdk","mt-sm-9":"_OaVE-","pt-sm-9":"_cd-UP","mt-sm-10":"_ZIr-H","pt-sm-10":"_6jYkb","mb-sm-0":"_YgN23","pb-sm-0":"_F8F6A","mb-sm-1":"_4QH8u","pb-sm-1":"_A2I8v","mb-sm-2":"_jrZxh","pb-sm-2":"_2VL1m","mb-sm-3":"_IB8uX","pb-sm-3":"_meger","mb-sm-4":"_-gCVy","pb-sm-4":"_R-qMm","mb-sm-5":"_YwvXh","pb-sm-5":"_pyu5v","mb-sm-6":"_qwhTX","pb-sm-6":"_l61nc","mb-sm-7":"_0KfeR","pb-sm-7":"_YXuNM","mb-sm-8":"_75fJr","pb-sm-8":"_jp-Qe","mb-sm-9":"_V0wM-","pb-sm-9":"_vMKpc","mb-sm-10":"_sxEY8","pb-sm-10":"_k2mOD","mx-sm-0":"_qPF9i","px-sm-0":"_cl18e","mx-sm-1":"_LvMUO","px-sm-1":"_RcIbD","mx-sm-2":"_xLMK5","px-sm-2":"_GCL1S","mx-sm-3":"_t0q4o","px-sm-3":"_cuiW8","mx-sm-4":"_pHjdd","px-sm-4":"_LDu1N","mx-sm-5":"_cYpLd","px-sm-5":"_24Yji","mx-sm-6":"_pXCM6","px-sm-6":"_uoSDI","mx-sm-7":"_qbXoQ","px-sm-7":"_0RlFx","mx-sm-8":"_3f-s3","px-sm-8":"_xAS-y","mx-sm-9":"_vx3dZ","px-sm-9":"_ndXm6","mx-sm-10":"_6lFsZ","px-sm-10":"_EZ6Qr","my-sm-0":"_0t-Cg","py-sm-0":"_N3sbI","my-sm-1":"_jdmVi","py-sm-1":"_GlMKb","my-sm-2":"_yFRs8","py-sm-2":"_LNRZQ","my-sm-3":"_qSuwF","py-sm-3":"_ON3vd","my-sm-4":"_1h6pX","py-sm-4":"_TZg0h","my-sm-5":"_vT295","py-sm-5":"_J1zu8","my-sm-6":"_7LuwF","py-sm-6":"_qbbdP","my-sm-7":"_9vKuY","py-sm-7":"_C9gzg","my-sm-8":"_Nx1-S","py-sm-8":"_8lmEZ","my-sm-9":"_LxGxx","py-sm-9":"_3y4jy","my-sm-10":"_61y0C","py-sm-10":"_fxmBa","m-lg-0":"_PJydR","p-lg-0":"_3o1cd","m-lg-1":"_MAdi8","p-lg-1":"_JDc1V","m-lg-2":"_pEH2Q","p-lg-2":"_Ic9tL","m-lg-3":"_P6cGt","p-lg-3":"_nzx-g","m-lg-4":"_9bH-j","p-lg-4":"_KdZTF","m-lg-5":"_hxjaE","p-lg-5":"_LDamm","m-lg-6":"_xXtVI","p-lg-6":"_ZWhTL","m-lg-7":"_mPnVe","p-lg-7":"_lJnBT","m-lg-8":"_J-MQA","p-lg-8":"_MGs60","m-lg-9":"_ixlkP","p-lg-9":"_Lru1O","m-lg-10":"_eH6ht","p-lg-10":"_ugZzQ","ml-lg-0":"_6z3OE","pl-lg-0":"_PDwaH","ml-lg-1":"_GMcN9","pl-lg-1":"_NoDTB","ml-lg-2":"_PQ5AQ","pl-lg-2":"_8-Pu6","ml-lg-3":"_PktVo","pl-lg-3":"_JTpEZ","ml-lg-4":"_zIcyb","pl-lg-4":"_e4YYS","ml-lg-5":"_HrlcA","pl-lg-5":"_cwG3s","ml-lg-6":"_Xf7Wv","pl-lg-6":"_XYe-E","ml-lg-7":"_vnGAT","pl-lg-7":"_NnScU","ml-lg-8":"_9z7Tj","pl-lg-8":"_DDEn1","ml-lg-9":"_sxSQp","pl-lg-9":"_-r39c","ml-lg-10":"_kppNg","pl-lg-10":"_1mgTz","mr-lg-0":"_WtS6h","pr-lg-0":"_NKNU9","mr-lg-1":"_kxaOQ","pr-lg-1":"_8OvSK","mr-lg-2":"_bTQt8","pr-lg-2":"_yQerd","mr-lg-3":"_f7H9P","pr-lg-3":"_Kwfoa","mr-lg-4":"_lkF5d","pr-lg-4":"_b7tIe","mr-lg-5":"_H4e5a","pr-lg-5":"_pxwBt","mr-lg-6":"_I81Hq","pr-lg-6":"_1Xwlf","mr-lg-7":"_gtO-Y","pr-lg-7":"_vjm3Z","mr-lg-8":"_ZfEr1","pr-lg-8":"_je0MD","mr-lg-9":"_h43Co","pr-lg-9":"_Lnbh5","mr-lg-10":"_HoaFo","pr-lg-10":"_3puFA","mt-lg-0":"_a7pDC","pt-lg-0":"_-URo7","mt-lg-1":"_Ot-U1","pt-lg-1":"_rMvMf","mt-lg-2":"_95ooz","pt-lg-2":"_vkEgW","mt-lg-3":"_9XqX5","pt-lg-3":"_b-oGK","mt-lg-4":"_eYL6E","pt-lg-4":"_zgUGu","mt-lg-5":"_BqCaM","pt-lg-5":"_Y9PL4","mt-lg-6":"_0aOPb","pt-lg-6":"_nvMum","mt-lg-7":"_-pNQS","pt-lg-7":"_funa7","mt-lg-8":"_sDweY","pt-lg-8":"_S1hmu","mt-lg-9":"_Y4BpR","pt-lg-9":"_J3203","mt-lg-10":"_Jm-dV","pt-lg-10":"_0WSnk","mb-lg-0":"_4uWrE","pb-lg-0":"_qy0mb","mb-lg-1":"_jUNMm","pb-lg-1":"_pUTOt","mb-lg-2":"_aGqhb","pb-lg-2":"_xAKUw","mb-lg-3":"_kado5","pb-lg-3":"_htLgL","mb-lg-4":"_mWWU1","pb-lg-4":"_gqGWe","mb-lg-5":"_ceycQ","pb-lg-5":"_RzNIh","mb-lg-6":"_VLMG4","pb-lg-6":"_-8-Aj","mb-lg-7":"_HBnRW","pb-lg-7":"_ZsIEk","mb-lg-8":"_bj2r5","pb-lg-8":"_cBnkL","mb-lg-9":"_w3001","pb-lg-9":"_Kua-7","mb-lg-10":"_wZKsF","pb-lg-10":"_GX-Wb","mx-lg-0":"_-G50w","px-lg-0":"_OTPQl","mx-lg-1":"_JJ9DD","px-lg-1":"_jedSl","mx-lg-2":"_n9zl3","px-lg-2":"_Cg-Eq","mx-lg-3":"_6ZhL3","px-lg-3":"_0oPYT","mx-lg-4":"_H9sE1","px-lg-4":"_aV3U2","mx-lg-5":"_Y2BNn","px-lg-5":"_EzRHI","mx-lg-6":"_fp9jU","px-lg-6":"_wghWL","mx-lg-7":"_zB5Qv","px-lg-7":"_gclTH","mx-lg-8":"_Qxq2x","px-lg-8":"_M7akr","mx-lg-9":"_Vfhs-","px-lg-9":"_Rv7m-","mx-lg-10":"_lni3U","px-lg-10":"_gdVVu","my-lg-0":"_rMuza","py-lg-0":"_MZopi","my-lg-1":"_Thq10","py-lg-1":"_BXQnr","my-lg-2":"_lHRe-","py-lg-2":"_6MiWj","my-lg-3":"_-vobr","py-lg-3":"_xtsGY","my-lg-4":"_m2hen","py-lg-4":"_-069Y","my-lg-5":"_nTHzp","py-lg-5":"_r4pes","my-lg-6":"_LTkTV","py-lg-6":"_13TOF","my-lg-7":"_Em859","py-lg-7":"_mJzVF","my-lg-8":"_T8EVh","py-lg-8":"_h2ol5","my-lg-9":"_T-LZJ","py-lg-9":"_QIrnZ","my-lg-10":"_EY0q7","py-lg-10":"_hvU2E","m-md-0":"_u8Not","p-md-0":"_PVgyV","m-md-1":"_y-q4l","p-md-1":"_7X2x6","m-md-2":"_r3IGF","p-md-2":"_abaFH","m-md-3":"_rH0Ca","p-md-3":"_m-V0R","m-md-4":"_NQj-k","p-md-4":"_xjGzA","m-md-5":"_41oza","p-md-5":"_cgf0Z","m-md-6":"_lelHI","p-md-6":"_2C8Oa","m-md-7":"_w1Eil","p-md-7":"_EtEzw","m-md-8":"_Q8a3D","p-md-8":"_5nsxA","m-md-9":"_LzOqJ","p-md-9":"_7LEzr","m-md-10":"_CRNVR","p-md-10":"_ClNNV","ml-md-0":"_3abXz","pl-md-0":"_7BRiC","ml-md-1":"_Jbe0V","pl-md-1":"_Ok-KV","ml-md-2":"_5SO4-","pl-md-2":"_IvJ88","ml-md-3":"_NWLcP","pl-md-3":"_XASwl","ml-md-4":"_La-jA","pl-md-4":"_M8vz7","ml-md-5":"_4UZJ3","pl-md-5":"_ikRMN","ml-md-6":"_GpxKA","pl-md-6":"_-vp4I","ml-md-7":"_qZisY","pl-md-7":"_UspU5","ml-md-8":"_xTqIg","pl-md-8":"_8LLNG","ml-md-9":"_u3Wi6","pl-md-9":"_yukVA","ml-md-10":"_BJ3Kb","pl-md-10":"_Ncx33","mr-md-0":"_-dCKD","pr-md-0":"_p4Xdb","mr-md-1":"_DZXj3","pr-md-1":"_YZLPN","mr-md-2":"_IEATr","pr-md-2":"_OGWz-","mr-md-3":"_UxMFq","pr-md-3":"_qMmI8","mr-md-4":"_KEt4t","pr-md-4":"_nLevO","mr-md-5":"_AMVPM","pr-md-5":"_3m10o","mr-md-6":"_fzrrj","pr-md-6":"_Wbjjj","mr-md-7":"_mZWrU","pr-md-7":"_mqIEB","mr-md-8":"_5p3E5","pr-md-8":"_NyrXd","mr-md-9":"_gez8y","pr-md-9":"_qLaJ8","mr-md-10":"_TR-zd","pr-md-10":"_SqjX-","mt-md-0":"_Okpug","pt-md-0":"_xIGF1","mt-md-1":"_kkttT","pt-md-1":"_6Fntk","mt-md-2":"_jjt3V","pt-md-2":"_MBCLj","mt-md-3":"_AcRpn","pt-md-3":"_9e4N3","mt-md-4":"_TEYLB","pt-md-4":"_G-b2b","mt-md-5":"_ADYmJ","pt-md-5":"_-PW2W","mt-md-6":"_IiBSh","pt-md-6":"_oOMKv","mt-md-7":"_LzMKR","pt-md-7":"_P93Fk","mt-md-8":"_ZPChR","pt-md-8":"_IjZLd","mt-md-9":"_OYWyj","pt-md-9":"_6VDq-","mt-md-10":"_NFUMl","pt-md-10":"_9N5Rs","mb-md-0":"_KNEZM","pb-md-0":"_dlRtG","mb-md-1":"_2TJCJ","pb-md-1":"_FYJz-","mb-md-2":"_p5q4o","pb-md-2":"_W20R5","mb-md-3":"_QMtNI","pb-md-3":"_X4ghG","mb-md-4":"_ROsHu","pb-md-4":"_LLz3c","mb-md-5":"_FKlov","pb-md-5":"_qQje5","mb-md-6":"_zHdHt","pb-md-6":"_7vH68","mb-md-7":"_5-25V","pb-md-7":"_a5Jzs","mb-md-8":"_9NPzr","pb-md-8":"_NpZZI","mb-md-9":"_F5182","pb-md-9":"_2SM3y","mb-md-10":"_R3bvz","pb-md-10":"_Sop9H","mx-md-0":"_OUA4d","px-md-0":"_s-0Qy","mx-md-1":"_cBeVb","px-md-1":"_34ZBT","mx-md-2":"_-dnuU","px-md-2":"_0-UrT","mx-md-3":"_CewFh","px-md-3":"_ZrFGb","mx-md-4":"_5Cvub","px-md-4":"_9CpfN","mx-md-5":"_O1iRv","px-md-5":"_dnUx0","mx-md-6":"_QmgAB","px-md-6":"_vP8Uq","mx-md-7":"_PcZ9w","px-md-7":"_5l4s3","mx-md-8":"_isOXv","px-md-8":"_cvHBA","mx-md-9":"_LIRJ0","px-md-9":"_09Gju","mx-md-10":"_b-TCB","px-md-10":"_5UoX8","my-md-0":"_wrYvU","py-md-0":"_Fwd2A","my-md-1":"_vBwvs","py-md-1":"_vl1f-","my-md-2":"_7g5va","py-md-2":"_D0JS-","my-md-3":"_8DN0N","py-md-3":"_qvNWl","my-md-4":"_o5Mnp","py-md-4":"_rFfbU","my-md-5":"_7XZDH","py-md-5":"_1B0Rr","my-md-6":"_s09ut","py-md-6":"_jnQRw","my-md-7":"_PgL1b","py-md-7":"_T4779","my-md-8":"_R0d0D","py-md-8":"_Fkri-","my-md-9":"_FM-XK","py-md-9":"_H-snR","my-md-10":"_Z49JP","py-md-10":"_01G-F","m-xl-0":"_H4Jyh","p-xl-0":"_WMtq9","m-xl-1":"_FeJPz","p-xl-1":"_00t3r","m-xl-2":"_svLno","p-xl-2":"_2C22I","m-xl-3":"_T5qYA","p-xl-3":"_dcbn0","m-xl-4":"_Xl89-","p-xl-4":"_Ctf-y","m-xl-5":"_ZWihS","p-xl-5":"_Lzig2","m-xl-6":"_jljvY","p-xl-6":"_X1owU","m-xl-7":"_l1myf","p-xl-7":"_T1fTP","m-xl-8":"_FWU16","p-xl-8":"_R2T50","m-xl-9":"_2TtzQ","p-xl-9":"_-142y","m-xl-10":"_975wG","p-xl-10":"_DPori","ml-xl-0":"_9Zc9q","pl-xl-0":"_On2x0","ml-xl-1":"_IryvS","pl-xl-1":"_J2DXA","ml-xl-2":"_S7cyp","pl-xl-2":"_YxNk9","ml-xl-3":"_6eyqg","pl-xl-3":"_cwyGU","ml-xl-4":"_TbIDB","pl-xl-4":"_JKpl8","ml-xl-5":"_P17BD","pl-xl-5":"_w8ccI","ml-xl-6":"_fUJPM","pl-xl-6":"_mgqKZ","ml-xl-7":"_p-Fn9","pl-xl-7":"_eMF8n","ml-xl-8":"_VO2-y","pl-xl-8":"_O9n-E","ml-xl-9":"_wqX4W","pl-xl-9":"_wDG35","ml-xl-10":"_-TNE-","pl-xl-10":"_jyfgf","mr-xl-0":"_9aQeC","pr-xl-0":"_zWCV0","mr-xl-1":"_vL8LJ","pr-xl-1":"_yA6nk","mr-xl-2":"_ZkYxH","pr-xl-2":"_-LN7c","mr-xl-3":"_WtPxc","pr-xl-3":"_Yn0F0","mr-xl-4":"_M1pzN","pr-xl-4":"_zX1qM","mr-xl-5":"_HWX7s","pr-xl-5":"_0jJWY","mr-xl-6":"_cG-JL","pr-xl-6":"_o2-cg","mr-xl-7":"_g0V5o","pr-xl-7":"_seBWS","mr-xl-8":"_1Rg0L","pr-xl-8":"_uZxYI","mr-xl-9":"_DJD2r","pr-xl-9":"_WXY42","mr-xl-10":"_-EWpt","pr-xl-10":"_W-0Oq","mt-xl-0":"_A3mxM","pt-xl-0":"_mG8-q","mt-xl-1":"_eSV7Q","pt-xl-1":"_9SJkd","mt-xl-2":"_mdspA","pt-xl-2":"_GloWk","mt-xl-3":"_Fn9WR","pt-xl-3":"_l5z5Q","mt-xl-4":"_J5EuO","pt-xl-4":"_z4jGH","mt-xl-5":"_SjIc3","pt-xl-5":"_inlrN","mt-xl-6":"_9iy8O","pt-xl-6":"_FGdNq","mt-xl-7":"_DNLb-","pt-xl-7":"_FDvwW","mt-xl-8":"_cB8Ua","pt-xl-8":"_sFRzN","mt-xl-9":"_iFCES","pt-xl-9":"_M8U3T","mt-xl-10":"_zrBn9","pt-xl-10":"_kYhdD","mb-xl-0":"_AVjLW","pb-xl-0":"_S2OiP","mb-xl-1":"_vnN5p","pb-xl-1":"_ukgJ7","mb-xl-2":"_wZjwy","pb-xl-2":"_rINJ4","mb-xl-3":"_MFAs1","pb-xl-3":"_BjtEQ","mb-xl-4":"_72dvy","pb-xl-4":"_bCnbX","mb-xl-5":"_Uyt6r","pb-xl-5":"_F3Ibd","mb-xl-6":"_iBLUD","pb-xl-6":"_yjY5Y","mb-xl-7":"_6TfYx","pb-xl-7":"_QdVWm","mb-xl-8":"_p-cIL","pb-xl-8":"_saIeH","mb-xl-9":"_Z3PUh","pb-xl-9":"_f8cy7","mb-xl-10":"_ndw2F","pb-xl-10":"_Yxkus","mx-xl-0":"_Bb6PX","px-xl-0":"_M5EOJ","mx-xl-1":"_iWwKY","px-xl-1":"_nWXZF","mx-xl-2":"_OCB5d","px-xl-2":"_GIqDO","mx-xl-3":"_mskG2","px-xl-3":"_-TVSP","mx-xl-4":"_rp-dc","px-xl-4":"_rfQsy","mx-xl-5":"_FgYNJ","px-xl-5":"_yA-K0","mx-xl-6":"_KJ12G","px-xl-6":"_gmhRk","mx-xl-7":"_XF8NS","px-xl-7":"_C0zhm","mx-xl-8":"_rOBd5","px-xl-8":"_FZf4w","mx-xl-9":"_GosX1","px-xl-9":"_zvpad","mx-xl-10":"_uU6kY","px-xl-10":"_XfRJ5","my-xl-0":"_zhez-","py-xl-0":"_-Dum7","my-xl-1":"_QvfIQ","py-xl-1":"_66V5-","my-xl-2":"_e84Sk","py-xl-2":"_pOej1","my-xl-3":"_uv8an","py-xl-3":"_6iY-g","my-xl-4":"_Ur6W4","py-xl-4":"_JPq7T","my-xl-5":"_3GKlh","py-xl-5":"_Gcnsl","my-xl-6":"_JrBH1","py-xl-6":"_IP0ND","my-xl-7":"_7BzpU","py-xl-7":"_BIUqI","my-xl-8":"_mZ-p0","py-xl-8":"_Sdn5j","my-xl-9":"_P3V1N","py-xl-9":"_Z9lbF","my-xl-10":"_VAfcF","py-xl-10":"_X4Bq6","background-shine":"_361tW","path":"_qtb88","line":"_XQ9Yw","skeleton":"_BQ0X7","skeleton-animate":"_vEv3B","skeleton-dark":"_l5qsf","skeleton-dark-animate":"_yk159","skeleton-transparent":"_857E4","skeleton-transparent-animate":"_RzhIE","semi-transparent":"_LacS6","no-margins":"_bmB3S","dots":"_5kMd-","colored":"_-lTGD","small":"_GTU1q","extra-small":"_BEmi7","align-left":"_HuG6N","align-right":"_U3h5U"};
1158
+
1159
+ /**
1160
+ * LoadingDots Component - Displays a loading animation with dots.
1161
+ * This component allows customization of size, color, margins, and alignment.
1162
+ *
1163
+ * @component
1164
+ * @param {Object} props - The props of the component.
1165
+ * @param {('big'|'small'|'extra-small')} [props.size='small'] - Sets the size of the loading dots.
1166
+ * @param {boolean} [props.isColored=false] - If true, the dots will be colored, otherwise they will be monochrome.
1167
+ * @param {boolean} [props.noMargins=false] - If true, removes the margins around the loading dots.
1168
+ * @param {(boolean|'left'|'right')} [props.align=false] - Aligns the loading dots to the left or right if specified, otherwise centered.
1169
+ * @returns {React.ReactElement} A React component that renders the loading dots animation.
1170
+ */
1171
+ var LoadingDots = function LoadingDots(_ref) {
1172
+ var _ref$size = _ref.size,
1173
+ size = _ref$size === void 0 ? "small" : _ref$size,
1174
+ _ref$isColored = _ref.isColored,
1175
+ isColored = _ref$isColored === void 0 ? false : _ref$isColored,
1176
+ _ref$noMargins = _ref.noMargins,
1177
+ noMargins = _ref$noMargins === void 0 ? false : _ref$noMargins,
1178
+ _ref$align = _ref.align,
1179
+ align = _ref$align === void 0 ? false : _ref$align;
1180
+ return /*#__PURE__*/React.createElement("div", {
1181
+ className: styles["loading-dots"] + " " + styles[size] + " " + (noMargins ? " " + styles["no-margins"] : "") + " " + (align ? styles["align-" + align] : "")
1182
+ }, /*#__PURE__*/React.createElement("div", {
1183
+ className: styles.dot + " " + (isColored ? " " + styles.colored : "")
1184
+ }), /*#__PURE__*/React.createElement("div", {
1185
+ className: styles.dot + " " + (isColored ? " " + styles.colored : "")
1186
+ }), /*#__PURE__*/React.createElement("div", {
1187
+ className: styles.dot + " " + (isColored ? " " + styles.colored : "")
1188
+ }));
1189
+ };
1190
+ LoadingDots.propTypes = {
1191
+ size: PropTypes.oneOf(["big", "small", "extra-small"]),
1192
+ isColored: PropTypes.bool,
1193
+ noMargins: PropTypes.bool,
1194
+ align: PropTypes.oneOfType([PropTypes.oneOf(["left", "right"]), PropTypes.bool])
1195
+ };
1196
+
1197
+ /**
1198
+ * Button component - A versatile and customizable button for React applications.
1199
+ * It supports various sizes, styles, and functionalities, including loaders, icons, and handling of click events.
1200
+ * This component can also be used as a link if "to" is provided.
1201
+ *
1202
+ * @component
1203
+ * @param {Object} props
1204
+ * @param {('xl'|'lg'|'md'|'sm')} [props.size='xl'] - Sets the size of the button.
1205
+ * @param {string} [props.className=''] - An optional custom CSS class name for additional styling.
1206
+ * @param {string} [props.mode='transparent'] - Determines the button's visual style.
1207
+ * @param {Function} [props.onClick=(resetButtonLoader, event) => {}] - Callback function that triggers on button click.
1208
+ * @param {boolean} [props.loader=true] - If true, displays a loader animation on the button when clicked.
1209
+ * @param {boolean} [props.loading=false] - Controls the actual display of the loader if `loader` is true.
1210
+ * @param {string} [props.to=''] - The path for the button to act as a link.
1211
+ * @param {boolean} [props.fullWidthOnMobiles=false] - Expands the button to full width on mobiles.
1212
+ * @param {boolean} [props.fullWidthOnTablets=false] - Expands the button to full width on tablets.
1213
+ * @param {string} [props.icon=''] - The path to the button's icon.
1214
+ * @param {React.ReactNode} [props.content=''] - The text or content displayed inside the button.
1215
+ * @param {boolean} [props.isDisabled=false] - Disables the button if true.
1216
+ * @param {Function} [props.setClickTrigger=(p) => {}] - Function to programmatically trigger a button click.
1217
+ * @param {boolean} [props.isFormSubmittingButton=false] - If true, adds a hidden `<input type="submit">`.
1218
+ * @param {boolean} [props.bigIcon=false] - If true, displays a larger icon on the button.
1219
+ * @param {boolean} [props.checkmarkOnClick=false] - Shows a checkmark instead of content for a few seconds after click.
1220
+ * @param {boolean} [props.propagatePrimaryButtonClick=true] - Propagates the primary button click event if true.
1221
+ * @param {boolean} [props.smallPaddingOnSmallMobiles=false] - Enables smaller paddings for extra-small screen sizes.
1222
+ * @param {Function} [props.handleError=(func) => func()] - Function to handle errors during button click events.
1223
+ * @returns {React.ReactElement}
1224
+ */
1225
+ var Button = function Button(_ref) {
1226
+ var _ref$size = _ref.size,
1227
+ size = _ref$size === void 0 ? "xl" : _ref$size,
1228
+ _ref$className = _ref.className,
1229
+ className = _ref$className === void 0 ? "" : _ref$className,
1230
+ _ref$mode = _ref.mode,
1231
+ mode = _ref$mode === void 0 ? "transparent" : _ref$mode,
1232
+ _ref$onClick = _ref.onClick,
1233
+ onClick = _ref$onClick === void 0 ? function (resetButtonLoader, event) {} : _ref$onClick,
1234
+ _ref$loader = _ref.loader,
1235
+ loader = _ref$loader === void 0 ? true : _ref$loader,
1236
+ _ref$loading = _ref.loading,
1237
+ loading = _ref$loading === void 0 ? false : _ref$loading,
1238
+ _ref$to = _ref.to,
1239
+ to = _ref$to === void 0 ? "" : _ref$to,
1240
+ _ref$fullWidthOnMobil = _ref.fullWidthOnMobiles,
1241
+ fullWidthOnMobiles = _ref$fullWidthOnMobil === void 0 ? false : _ref$fullWidthOnMobil,
1242
+ _ref$fullWidthOnTable = _ref.fullWidthOnTablets,
1243
+ fullWidthOnTablets = _ref$fullWidthOnTable === void 0 ? false : _ref$fullWidthOnTable,
1244
+ _ref$icon = _ref.icon,
1245
+ icon = _ref$icon === void 0 ? "" : _ref$icon,
1246
+ _ref$content = _ref.content,
1247
+ content = _ref$content === void 0 ? "" : _ref$content,
1248
+ _ref$isDisabled = _ref.isDisabled,
1249
+ isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
1250
+ _ref$setClickTrigger = _ref.setClickTrigger,
1251
+ setClickTrigger = _ref$setClickTrigger === void 0 ? function (p) {} : _ref$setClickTrigger,
1252
+ _ref$isFormSubmitting = _ref.isFormSubmittingButton,
1253
+ isFormSubmittingButton = _ref$isFormSubmitting === void 0 ? false : _ref$isFormSubmitting,
1254
+ _ref$bigIcon = _ref.bigIcon,
1255
+ bigIcon = _ref$bigIcon === void 0 ? false : _ref$bigIcon,
1256
+ _ref$checkmarkOnClick = _ref.checkmarkOnClick,
1257
+ checkmarkOnClick = _ref$checkmarkOnClick === void 0 ? false : _ref$checkmarkOnClick,
1258
+ _ref$propagatePrimary = _ref.propagatePrimaryButtonClick,
1259
+ propagatePrimaryButtonClick = _ref$propagatePrimary === void 0 ? true : _ref$propagatePrimary,
1260
+ _ref$smallPaddingOnSm = _ref.smallPaddingOnSmallMobiles,
1261
+ smallPaddingOnSmallMobiles = _ref$smallPaddingOnSm === void 0 ? false : _ref$smallPaddingOnSm,
1262
+ _ref$handleError = _ref.handleError,
1263
+ handleError = _ref$handleError === void 0 ? function (func, event) {
1264
+ return func(event);
1265
+ } : _ref$handleError;
1266
+ var _useState = useState(loading),
1267
+ isLoading = _useState[0],
1268
+ setIsLoading = _useState[1];
1269
+ var _useState2 = useState(false),
1270
+ isCheckShown = _useState2[0],
1271
+ setIsCheckShown = _useState2[1];
1272
+ var _useState3 = useState(null),
1273
+ event = _useState3[0],
1274
+ setEvent = _useState3[1];
1275
+ var buttonRef = useRef();
1276
+ useEffect(function () {
1277
+ setClickTrigger(function () {
1278
+ return buttonRef.current.click();
1279
+ });
1280
+ // eslint-disable-next-line react-hooks/exhaustive-deps
1281
+ }, [buttonRef]);
1282
+ useEffect(function () {
1283
+ if (isLoading) {
1284
+ onClick(function () {
1285
+ return setIsLoading(false);
1286
+ }, event);
1287
+ }
1288
+ // eslint-disable-next-line react-hooks/exhaustive-deps
1289
+ }, [isLoading]);
1290
+ var buttonClick = function buttonClick(e) {
1291
+ if (isLoading || isDisabled) {
1292
+ return false;
1293
+ }
1294
+ if (checkmarkOnClick && !isCheckShown && !loader && !loading) {
1295
+ setIsCheckShown(true);
1296
+ setTimeout(function () {
1297
+ setIsCheckShown(false);
1298
+ }, 2000);
1299
+ }
1300
+ e.persist(); // Persisting React's SyntheticEvent to be able to use it in any async context
1301
+ !propagatePrimaryButtonClick && e.stopPropagation();
1302
+ if (loader) {
1303
+ setIsLoading(true);
1304
+ setEvent(e);
1305
+ } else {
1306
+ onClick(function () {
1307
+ return setIsLoading(false);
1308
+ }, e);
1309
+ }
1310
+ };
1311
+ var classNames = styles$1.button + " " + styles$1[size] + " " + styles$1[className] + " " + styles$1[mode] + (fullWidthOnMobiles ? " " + styles$1["full-width-on-mobiles"] : "") + (fullWidthOnTablets ? " " + styles$1["full-width-on-tablets"] : "") + (isDisabled ? " " + styles$1.disable : "") + (smallPaddingOnSmallMobiles ? " " + styles$1["small-padding-on-small-mobiles"] : "");
1312
+ return /*#__PURE__*/React.createElement(React.Fragment, null, isFormSubmittingButton ? /*#__PURE__*/React.createElement("input", {
1313
+ type: "submit",
1314
+ hidden: true
1315
+ }) : null, to ? /*#__PURE__*/React.createElement("a", {
1316
+ className: classNames,
1317
+ onClick: function onClick(e) {
1318
+ return handleError(buttonClick, e);
1319
+ },
1320
+ href: to,
1321
+ ref: buttonRef
1322
+ }, icon ? /*#__PURE__*/React.createElement("div", {
1323
+ className: styles$1["button-with-icon"] + (bigIcon ? " " + styles$1["big-icon"] : "")
1324
+ }, /*#__PURE__*/React.createElement("img", {
1325
+ src: icon,
1326
+ alt: "button icon"
1327
+ }), /*#__PURE__*/React.createElement("span", {
1328
+ className: styles$1["button-with-icon-text"]
1329
+ }, content)) : content) : /*#__PURE__*/React.createElement("div", {
1330
+ className: classNames,
1331
+ onClick: function onClick(e) {
1332
+ return handleError(buttonClick, e);
1333
+ },
1334
+ ref: buttonRef
1335
+ }, /*#__PURE__*/React.createElement("div", {
1336
+ className: styles$1["button-primary-dots-wrapper"] + " " + (isLoading && loader ? styles$1.show : "")
1337
+ }, loader && isLoading ? /*#__PURE__*/React.createElement(LoadingDots, {
1338
+ isColored: mode === "white"
1339
+ }) : null), /*#__PURE__*/React.createElement("div", {
1340
+ className: styles$1["button-success-icon"] + " " + styles$1[mode] + " " + (isCheckShown ? styles$1["show"] : "")
1341
+ }), icon ? /*#__PURE__*/React.createElement("div", {
1342
+ className: styles$1["button-with-icon"] + " " + (isLoading && loader || checkmarkOnClick && isCheckShown ? styles$1["hide"] : "") + " " + (bigIcon ? styles$1["big-icon"] : "")
1343
+ }, /*#__PURE__*/React.createElement("img", {
1344
+ src: icon,
1345
+ alt: "button icon"
1346
+ }), /*#__PURE__*/React.createElement("span", {
1347
+ className: styles$1["button-with-icon-text"]
1348
+ }, content)) : /*#__PURE__*/React.createElement("span", {
1349
+ className: styles$1["button-text"] + " " + (isLoading && loader || checkmarkOnClick && isCheckShown ? styles$1["hide"] : "")
1350
+ }, content)));
1351
+ };
1352
+ Button.propTypes = {
1353
+ size: PropTypes.oneOf(["xl", "lg", "md", "sm"]),
1354
+ className: PropTypes.string,
1355
+ mode: PropTypes.oneOf(["transparent", "white", "white-flat", "primary", "primary-bordered", "primary-transparent", "transparent-bordered", "transparent-without-shadow"]),
1356
+ onClick: PropTypes.func,
1357
+ loader: PropTypes.bool,
1358
+ loading: PropTypes.bool,
1359
+ to: PropTypes.string,
1360
+ fullWidthOnMobiles: PropTypes.bool,
1361
+ fullWidthOnTablets: PropTypes.bool,
1362
+ icon: PropTypes.string,
1363
+ content: PropTypes.node,
1364
+ isDisabled: PropTypes.bool,
1365
+ setClickTrigger: PropTypes.func,
1366
+ isFormSubmittingButton: PropTypes.bool,
1367
+ bigIcon: PropTypes.bool,
1368
+ checkmarkOnClick: PropTypes.bool,
1369
+ propagatePrimaryButtonClick: PropTypes.bool,
1370
+ smallPaddingOnSmallMobiles: PropTypes.bool,
1371
+ handleError: PropTypes.func
1372
+ };
1373
+ Button.defaultProps = {
1374
+ size: "xl",
1375
+ className: "",
1376
+ mode: "transparent",
1377
+ onClick: function onClick(resetButtonLoader, event) {},
1378
+ loader: true,
1379
+ loading: false,
1380
+ to: "",
1381
+ fullWidthOnMobiles: false,
1382
+ fullWidthOnTablets: false,
1383
+ icon: "",
1384
+ content: "",
1385
+ isDisabled: false,
1386
+ setClickTrigger: function setClickTrigger(p) {},
1387
+ isFormSubmittingButton: false,
1388
+ bigIcon: false,
1389
+ checkmarkOnClick: false,
1390
+ propagatePrimaryButtonClick: true,
1391
+ smallPaddingOnSmallMobiles: false,
1392
+ handleError: function handleError(func) {
1393
+ return func();
1394
+ }
1395
+ };
1396
+
1397
+ var SupportChat = function SupportChat(_ref) {
1398
+ var url = _ref.url,
1399
+ websiteToken = _ref.websiteToken,
1400
+ _ref$welcomeMessage = _ref.welcomeMessage,
1401
+ welcomeMessage = _ref$welcomeMessage === void 0 ? "" : _ref$welcomeMessage;
1402
+ useEffect(function () {
1403
+ window.chatwootSettings = {
1404
+ position: "right",
1405
+ type: "standard",
1406
+ launcherTitle: welcomeMessage
1407
+ };
1408
+ (function (d, t) {
1409
+ var BASE_URL = url;
1410
+ var g = d.createElement(t),
1411
+ s = d.getElementsByTagName(t)[0];
1412
+ g.src = BASE_URL + "/packs/js/sdk.js";
1413
+ g.defer = true;
1414
+ g.async = true;
1415
+ s.parentNode.insertBefore(g, s);
1416
+ g.onload = function () {
1417
+ window.chatwootSDK.run({
1418
+ websiteToken: websiteToken,
1419
+ baseUrl: BASE_URL
1420
+ });
1421
+ };
1422
+ })(document, "script");
1423
+ // eslint-disable-next-line react-hooks/exhaustive-deps
1424
+ }, []);
1425
+ return null;
1426
+ };
1427
+ SupportChat.propTypes = {
1428
+ url: PropTypes.string.isRequired,
1429
+ websiteToken: PropTypes.string.isRequired,
1430
+ welcomeMessage: PropTypes.string
1431
+ };
1432
+ SupportChat.defaultProps = {
1433
+ welcomeMessage: ""
1434
+ };
1435
+
1436
+ var s = {"container":"_DYS-g","m-0":"_85R9d","p-0":"_wi0-U","m-1":"_YoewO","p-1":"_vuJBW","m-2":"_ruaYI","p-2":"_dO-cg","m-3":"_3Oh59","p-3":"_x4uSr","m-4":"_zN8us","p-4":"_rjv4I","m-5":"_5T1F-","p-5":"_-nWHT","m-6":"_Skgdf","p-6":"_Oux4z","m-7":"_yKPSq","p-7":"_sOsqF","m-8":"_8EoDT","p-8":"_G4M7b","m-9":"_ZZJBC","p-9":"_2PU3N","m-10":"_XRmXO","p-10":"_lhLN8","ml-0":"_SIynD","pl-0":"_VCLgc","ml-1":"_9vhMT","pl-1":"_4O5ig","ml-2":"_f1saV","pl-2":"_sHxk9","ml-3":"_kiltH","pl-3":"_jUw5Z","ml-4":"_CF1wj","pl-4":"_eXCZ1","ml-5":"_HZlH9","pl-5":"_6xbwv","ml-6":"_jNpyz","pl-6":"_k5lHk","ml-7":"_LgB9F","pl-7":"_ol9Tb","ml-8":"_I25tR","pl-8":"_TN4dc","ml-9":"_ywWxC","pl-9":"_4UsSQ","ml-10":"_9rfct","pl-10":"_LoViP","mr-0":"_-1PzO","pr-0":"_Ekco3","mr-1":"_EfRd0","pr-1":"_GspC-","mr-2":"_91QSK","pr-2":"_dU7Vb","mr-3":"_tW92i","pr-3":"_qNnnG","mr-4":"_XC1FW","pr-4":"_09RVw","mr-5":"_I4KRh","pr-5":"_eag2b","mr-6":"_E-KDc","pr-6":"_0d7JN","mr-7":"_9GUd-","pr-7":"_5Jseh","mr-8":"_Z-z3u","pr-8":"_rjPRa","mr-9":"_R2d68","pr-9":"_YI-lc","mr-10":"_ORX-B","pr-10":"_F5ib8","mt-0":"_OAl4b","pt-0":"_iJ5QU","mt-1":"_x72-c","pt-1":"_DGuKS","mt-2":"_ZYCC4","pt-2":"_6oj3E","mt-3":"_ADXHX","pt-3":"_asJoO","mt-4":"_Bz8Hu","pt-4":"_N7CCb","mt-5":"_OyQQ8","pt-5":"_C46Cf","mt-6":"_Bfrcj","pt-6":"_NN4sF","mt-7":"_RWFV0","pt-7":"_zUauA","mt-8":"_v7txm","pt-8":"_qgvMl","mt-9":"_9s32w","pt-9":"_aJZt7","mt-10":"_feBhr","pt-10":"_EfI4E","mb-0":"_RUzt9","pb-0":"_0Zjn8","mb-1":"_EmcPj","pb-1":"_zuqTv","mb-2":"_jYcdG","pb-2":"_fjMa6","mb-3":"_Lcgzu","pb-3":"_MHHa3","mb-4":"_Aoo0-","pb-4":"_B1ap3","mb-5":"_xdjCc","pb-5":"_lnrC3","mb-6":"_TFmkS","pb-6":"_YNj2R","mb-7":"_i0-JZ","pb-7":"_qSvSL","mb-8":"_7ziqB","pb-8":"_W-Cdi","mb-9":"_lUUVq","pb-9":"_LrgoL","mb-10":"_xX8mu","pb-10":"_DU6C6","mx-0":"_71D1Q","px-0":"_U8dyv","mx-1":"_2VhDN","px-1":"_d8Tlo","mx-2":"_uDkn4","px-2":"_a6Z6h","mx-3":"_W9yqm","px-3":"_MCbca","mx-4":"_sIDVk","px-4":"_wZ8Qz","mx-5":"_-6tEi","px-5":"_8vfpL","mx-6":"_mbXa9","px-6":"_LcSh5","mx-7":"_mF9-c","px-7":"_TfjhQ","mx-8":"_RG7wu","px-8":"_19Sdb","mx-9":"_JkKgx","px-9":"_Ir3LH","mx-10":"_70tWA","px-10":"_d1BrW","my-0":"_0PauS","py-0":"_FP0FE","my-1":"_znn6s","py-1":"_-FHoU","my-2":"_EqZco","py-2":"_fuTfe","my-3":"_D2LQ5","py-3":"_YWhnK","my-4":"_kCXTL","py-4":"_j1vj6","my-5":"_naEoR","py-5":"_QK3Z-","my-6":"_L1TOy","py-6":"_dQH-e","my-7":"_sVZ3Y","py-7":"_Fi779","my-8":"_1mAkX","py-8":"_yTTVv","my-9":"_jCeMV","py-9":"_qfn2C","my-10":"_eqneu","py-10":"_Atu-j","m-sm-0":"_hsKWE","p-sm-0":"_j3m-2","m-sm-1":"_NQOee","p-sm-1":"_sB5mJ","m-sm-2":"_KivoH","p-sm-2":"_YjE2j","m-sm-3":"_kObhZ","p-sm-3":"_TDlKW","m-sm-4":"_aJWH3","p-sm-4":"_Vntgp","m-sm-5":"_k-Hjs","p-sm-5":"_mJt7k","m-sm-6":"_Yxxob","p-sm-6":"_E5a-A","m-sm-7":"_M1OJO","p-sm-7":"_-5OJr","m-sm-8":"_UYrWD","p-sm-8":"_FJeV6","m-sm-9":"_DosWW","p-sm-9":"_T9yES","m-sm-10":"_tLYqH","p-sm-10":"_5dbE7","ml-sm-0":"_PM9wP","pl-sm-0":"_0Eoi7","ml-sm-1":"_Mb-hF","pl-sm-1":"_n4rCF","ml-sm-2":"_JJgiX","pl-sm-2":"_WOdAR","ml-sm-3":"_umhPB","pl-sm-3":"_tETqx","ml-sm-4":"_PQ088","pl-sm-4":"_ON2pV","ml-sm-5":"_IrMTT","pl-sm-5":"_12IZU","ml-sm-6":"_s8vHJ","pl-sm-6":"_9Od-S","ml-sm-7":"_4uuhE","pl-sm-7":"_TTrnJ","ml-sm-8":"_6TEO5","pl-sm-8":"_ZEPSH","ml-sm-9":"_I05iS","pl-sm-9":"_F5rHi","ml-sm-10":"_AJZ2R","pl-sm-10":"_zgudu","mr-sm-0":"_AD7v0","pr-sm-0":"_katlS","mr-sm-1":"_RMNwS","pr-sm-1":"_SC0VS","mr-sm-2":"_YFbee","pr-sm-2":"_I2cqm","mr-sm-3":"_KJzfk","pr-sm-3":"_aDNge","mr-sm-4":"_ERg9u","pr-sm-4":"_wlgHy","mr-sm-5":"_spxY0","pr-sm-5":"_pAEEu","mr-sm-6":"_HM7Z6","pr-sm-6":"_rf9My","mr-sm-7":"_b-V6W","pr-sm-7":"_YFXWV","mr-sm-8":"_96NiE","pr-sm-8":"_0ynKz","mr-sm-9":"_9NqL0","pr-sm-9":"_ZEN2v","mr-sm-10":"_oxmC7","pr-sm-10":"_AsAlz","mt-sm-0":"_Yl8e7","pt-sm-0":"_fkSmd","mt-sm-1":"_l4X69","pt-sm-1":"_i7WdP","mt-sm-2":"_ggYWK","pt-sm-2":"_3-z2g","mt-sm-3":"_IzZ-y","pt-sm-3":"_c3PEq","mt-sm-4":"_BbTvo","pt-sm-4":"_iAXVy","mt-sm-5":"_RNscW","pt-sm-5":"_7dHkj","mt-sm-6":"_iKCRS","pt-sm-6":"_an673","mt-sm-7":"_1Atcr","pt-sm-7":"_KA-HC","mt-sm-8":"_45ifh","pt-sm-8":"_26wBi","mt-sm-9":"_VaqUk","pt-sm-9":"_cx10Q","mt-sm-10":"_83RI-","pt-sm-10":"_vTZq7","mb-sm-0":"_IDhal","pb-sm-0":"_3IjzN","mb-sm-1":"_sjxoK","pb-sm-1":"_fmWwG","mb-sm-2":"_GNlxw","pb-sm-2":"_r3zJV","mb-sm-3":"_FFWRt","pb-sm-3":"_arvvr","mb-sm-4":"_qaIKp","pb-sm-4":"_wSca9","mb-sm-5":"_-cXAZ","pb-sm-5":"_grIUD","mb-sm-6":"_PUPyR","pb-sm-6":"_nA8VL","mb-sm-7":"_t7JYD","pb-sm-7":"_OpbJn","mb-sm-8":"_x1wdN","pb-sm-8":"_3Z-mA","mb-sm-9":"_BPrSY","pb-sm-9":"_b-NQ7","mb-sm-10":"_lSN9Q","pb-sm-10":"_E7xwy","mx-sm-0":"_-cSXk","px-sm-0":"_VlISI","mx-sm-1":"_6derN","px-sm-1":"_in01f","mx-sm-2":"_nskhZ","px-sm-2":"_Thnqg","mx-sm-3":"_xR8rV","px-sm-3":"_zUOaf","mx-sm-4":"_0c-bw","px-sm-4":"_X-g0R","mx-sm-5":"_p3iVv","px-sm-5":"_RdgSR","mx-sm-6":"_vK8xL","px-sm-6":"_xGpLP","mx-sm-7":"_uvb2q","px-sm-7":"_YvDjG","mx-sm-8":"_8nvEy","px-sm-8":"_L3gRg","mx-sm-9":"_pRh4Y","px-sm-9":"_5yig0","mx-sm-10":"_syXdz","px-sm-10":"_TfV9e","my-sm-0":"_WXfoP","py-sm-0":"_SBx-N","my-sm-1":"_dPEq6","py-sm-1":"_UrxQl","my-sm-2":"_ULvTZ","py-sm-2":"_I4Sll","my-sm-3":"_YVvfW","py-sm-3":"_9qflx","my-sm-4":"_j4ltv","py-sm-4":"_u-NN2","my-sm-5":"_mC1LQ","py-sm-5":"_6Wcc2","my-sm-6":"_eE8rw","py-sm-6":"_AeFpW","my-sm-7":"_CAnzA","py-sm-7":"_7h-Vs","my-sm-8":"_Z9Aft","py-sm-8":"_Ww8LU","my-sm-9":"_3sbBd","py-sm-9":"_ZcdCh","my-sm-10":"_PGBDh","py-sm-10":"_i6Fc2","m-lg-0":"_PkOb8","p-lg-0":"_3UpkE","m-lg-1":"_nCbz9","p-lg-1":"_1lThO","m-lg-2":"_ARtYq","p-lg-2":"_vHeBX","m-lg-3":"_cpKBp","p-lg-3":"_n-7p1","m-lg-4":"_1bWgj","p-lg-4":"_niPSW","m-lg-5":"_T9s09","p-lg-5":"_OS1Yy","m-lg-6":"_GvZeA","p-lg-6":"_8cgsA","m-lg-7":"_d0oC7","p-lg-7":"_TuBYJ","m-lg-8":"_slAc2","p-lg-8":"_ay3FH","m-lg-9":"_r3-kR","p-lg-9":"_IuC-U","m-lg-10":"_9P6I9","p-lg-10":"_RUR7-","ml-lg-0":"_xf3wx","pl-lg-0":"_Q-8ZY","ml-lg-1":"_4tg9Q","pl-lg-1":"_2rsuI","ml-lg-2":"_-YU8G","pl-lg-2":"_Eds1N","ml-lg-3":"_tD4RQ","pl-lg-3":"_R0Rk2","ml-lg-4":"_pZcNJ","pl-lg-4":"_5jvIR","ml-lg-5":"_sjk-4","pl-lg-5":"_RwLHv","ml-lg-6":"_dyXyT","pl-lg-6":"_nVLAC","ml-lg-7":"_FPuf8","pl-lg-7":"_M5bYC","ml-lg-8":"_Uet9k","pl-lg-8":"_UrAQv","ml-lg-9":"_VPraG","pl-lg-9":"_8HJkV","ml-lg-10":"_ILHbQ","pl-lg-10":"_QaxaT","mr-lg-0":"_2QrJI","pr-lg-0":"_0XJPD","mr-lg-1":"_qSATY","pr-lg-1":"_fzyzB","mr-lg-2":"_pY4IE","pr-lg-2":"_lc7Gu","mr-lg-3":"_KeRuW","pr-lg-3":"_zc2cu","mr-lg-4":"_RvxVY","pr-lg-4":"_v5XDn","mr-lg-5":"_Kipoo","pr-lg-5":"_K-vHR","mr-lg-6":"_1nl-K","pr-lg-6":"_nVUH-","mr-lg-7":"_M1Ue1","pr-lg-7":"_B75ua","mr-lg-8":"_CmlKz","pr-lg-8":"_FnY12","mr-lg-9":"_8-uRA","pr-lg-9":"_1DG22","mr-lg-10":"_vzMQh","pr-lg-10":"_2iqul","mt-lg-0":"_1eCp-","pt-lg-0":"_ucRUw","mt-lg-1":"_9YQ4e","pt-lg-1":"_pzmV0","mt-lg-2":"_1Z7OF","pt-lg-2":"_FUFhX","mt-lg-3":"_HPI-W","pt-lg-3":"_NwVgV","mt-lg-4":"_duZYq","pt-lg-4":"_h0NfP","mt-lg-5":"_sszGU","pt-lg-5":"_nNi-i","mt-lg-6":"_YYWl4","pt-lg-6":"_rqDrl","mt-lg-7":"_MmkeY","pt-lg-7":"_TZx0T","mt-lg-8":"_mdoth","pt-lg-8":"_2pGPR","mt-lg-9":"_csumg","pt-lg-9":"_BIWSR","mt-lg-10":"_TN07y","pt-lg-10":"_ojQGh","mb-lg-0":"_eXETo","pb-lg-0":"_FeL5F","mb-lg-1":"_Zc1bw","pb-lg-1":"_34sNS","mb-lg-2":"_2XgD-","pb-lg-2":"_OTB4o","mb-lg-3":"_xJ4EC","pb-lg-3":"_-Uc7P","mb-lg-4":"_thqbO","pb-lg-4":"_lqHuw","mb-lg-5":"_gDmAe","pb-lg-5":"_zAiLu","mb-lg-6":"_96HP2","pb-lg-6":"_TCehU","mb-lg-7":"_1Guas","pb-lg-7":"_vn7-Z","mb-lg-8":"_Cc-m8","pb-lg-8":"_dbCuX","mb-lg-9":"_U5Qon","pb-lg-9":"_b54cM","mb-lg-10":"_cGYyA","pb-lg-10":"_U5qus","mx-lg-0":"_TDPp0","px-lg-0":"_hUlWn","mx-lg-1":"_uh5DO","px-lg-1":"_N8r0e","mx-lg-2":"_vsfWJ","px-lg-2":"_LaBP6","mx-lg-3":"_JxquV","px-lg-3":"_Tb8mk","mx-lg-4":"_wDKd1","px-lg-4":"_lIguL","mx-lg-5":"_RSd-x","px-lg-5":"_Mdf1f","mx-lg-6":"_uvK2D","px-lg-6":"_4k20p","mx-lg-7":"_iXTh7","px-lg-7":"_W2faz","mx-lg-8":"_HHM9t","px-lg-8":"_n54Rq","mx-lg-9":"_douwI","px-lg-9":"_KWSHJ","mx-lg-10":"_L-r4v","px-lg-10":"_qeSLU","my-lg-0":"_U9qcF","py-lg-0":"_sSD4U","my-lg-1":"_vNl2c","py-lg-1":"_Cfkag","my-lg-2":"_gVDuB","py-lg-2":"_FwQsB","my-lg-3":"_oiJaa","py-lg-3":"_FASGS","my-lg-4":"_va2Tm","py-lg-4":"_EPTkJ","my-lg-5":"_jvYOP","py-lg-5":"_NTxiG","my-lg-6":"_8Y7Xj","py-lg-6":"_Nrsd7","my-lg-7":"_-e9e5","py-lg-7":"_NOh2l","my-lg-8":"_nyCDl","py-lg-8":"_fpL5p","my-lg-9":"_BbcqH","py-lg-9":"_VlI3L","my-lg-10":"_OGNmd","py-lg-10":"_Q-3bw","m-md-0":"_P6WIc","p-md-0":"_3YuAI","m-md-1":"_VwK3z","p-md-1":"_ArFsR","m-md-2":"_5Hp7o","p-md-2":"_-R4rJ","m-md-3":"_J55VC","p-md-3":"_TxlAj","m-md-4":"_FHPQG","p-md-4":"_iZW10","m-md-5":"_Kiuiv","p-md-5":"_0Qiry","m-md-6":"_Ja9dp","p-md-6":"_GBAS-","m-md-7":"_uuE4u","p-md-7":"_kAuu-","m-md-8":"_CaU4W","p-md-8":"_GbyMJ","m-md-9":"_brWmN","p-md-9":"_-1z0O","m-md-10":"_dIML4","p-md-10":"_eJliD","ml-md-0":"_nuVMQ","pl-md-0":"_PCyiw","ml-md-1":"_NX2qp","pl-md-1":"_yJ39l","ml-md-2":"_BV1WB","pl-md-2":"_x24YX","ml-md-3":"_kvTBw","pl-md-3":"_7G7wo","ml-md-4":"_s1oaO","pl-md-4":"_nTHBq","ml-md-5":"_2AyzN","pl-md-5":"_VmocP","ml-md-6":"_QEhdf","pl-md-6":"_Ywy9t","ml-md-7":"_Mybnc","pl-md-7":"_zHudI","ml-md-8":"_AT4F-","pl-md-8":"_1-CLq","ml-md-9":"_cZ0UL","pl-md-9":"_AKT8q","ml-md-10":"_uo54H","pl-md-10":"_2Edrz","mr-md-0":"_8NtcB","pr-md-0":"_BN5kR","mr-md-1":"_hIIXR","pr-md-1":"_KWi0C","mr-md-2":"_kP9GD","pr-md-2":"_fo1s0","mr-md-3":"_ptgO9","pr-md-3":"_AIGLm","mr-md-4":"_GJNi6","pr-md-4":"_-ZfQA","mr-md-5":"_hW-OG","pr-md-5":"_ePqmc","mr-md-6":"_ghuDl","pr-md-6":"_C9rlZ","mr-md-7":"_bIHB6","pr-md-7":"_xPHzJ","mr-md-8":"_6ZssD","pr-md-8":"_-N-QR","mr-md-9":"_T-XzG","pr-md-9":"_k8hdA","mr-md-10":"_26xvU","pr-md-10":"_U6Fpn","mt-md-0":"_ZIFgT","pt-md-0":"_6JBhp","mt-md-1":"_lIu84","pt-md-1":"_yPyiK","mt-md-2":"_sWcbm","pt-md-2":"_-7S2K","mt-md-3":"_-Zt6X","pt-md-3":"_pmFds","mt-md-4":"_dlz9t","pt-md-4":"_HQv-M","mt-md-5":"_9tUBj","pt-md-5":"_Jdc38","mt-md-6":"_BEZDD","pt-md-6":"_c3r6r","mt-md-7":"_KSCEr","pt-md-7":"_-Tpjo","mt-md-8":"_O-cOs","pt-md-8":"_DPwEz","mt-md-9":"_eBVAf","pt-md-9":"_Fnftl","mt-md-10":"_tlAu5","pt-md-10":"_ufMho","mb-md-0":"_NKFtN","pb-md-0":"_QEyOV","mb-md-1":"_t8EVs","pb-md-1":"_hVqy6","mb-md-2":"_Dwa5p","pb-md-2":"_A6iqX","mb-md-3":"_DAzrF","pb-md-3":"_o9L2-","mb-md-4":"_zMG5y","pb-md-4":"_wC2az","mb-md-5":"_LYF0o","pb-md-5":"_rrbij","mb-md-6":"_tUQcN","pb-md-6":"_MgAD-","mb-md-7":"_9lVsl","pb-md-7":"_Z7z8R","mb-md-8":"_CMrj4","pb-md-8":"_X4Qb0","mb-md-9":"_dQuWg","pb-md-9":"_98aa5","mb-md-10":"_tjfzH","pb-md-10":"_n5Id2","mx-md-0":"_kbQ3E","px-md-0":"_LWqO4","mx-md-1":"_8dqNC","px-md-1":"_QBFBY","mx-md-2":"_QXy6I","px-md-2":"_vBqGQ","mx-md-3":"_asgRe","px-md-3":"_i67O7","mx-md-4":"_-9eXp","px-md-4":"_ZQIEY","mx-md-5":"_l4FN1","px-md-5":"_vYBmq","mx-md-6":"_j4Fiy","px-md-6":"_BLvHs","mx-md-7":"_hg5ZA","px-md-7":"_OclOz","mx-md-8":"_NNMXz","px-md-8":"_KUBjL","mx-md-9":"_x5vxD","px-md-9":"_x1Hj-","mx-md-10":"_RnJFW","px-md-10":"_laoTv","my-md-0":"_gAG5i","py-md-0":"_KQkB8","my-md-1":"_90Emt","py-md-1":"_a93vq","my-md-2":"_wzerE","py-md-2":"_vpawj","my-md-3":"_ijUtT","py-md-3":"_9G-7C","my-md-4":"_GfQTx","py-md-4":"_vGRDM","my-md-5":"_MVaN3","py-md-5":"_5Ju4e","my-md-6":"_StvD2","py-md-6":"_03iO9","my-md-7":"_nlUi8","py-md-7":"_e58lN","my-md-8":"_VKoKR","py-md-8":"_Xa5lD","my-md-9":"_nLjef","py-md-9":"_88ryZ","my-md-10":"_-f4Oc","py-md-10":"_60CJ8","m-xl-0":"_YdUVc","p-xl-0":"_ceNl-","m-xl-1":"_cn-PK","p-xl-1":"_8pBVr","m-xl-2":"_UNu8h","p-xl-2":"_6mIBX","m-xl-3":"_LXA70","p-xl-3":"_nkNjg","m-xl-4":"_DH3uC","p-xl-4":"_b631X","m-xl-5":"_PU5TK","p-xl-5":"_Y9Pj5","m-xl-6":"_DQUfX","p-xl-6":"_cmXs1","m-xl-7":"_Hr4dN","p-xl-7":"_pwyLG","m-xl-8":"_XkBIo","p-xl-8":"_oSfQ1","m-xl-9":"_TXGD8","p-xl-9":"_r8XiA","m-xl-10":"_cbucW","p-xl-10":"_FnUT2","ml-xl-0":"_Lc2b0","pl-xl-0":"_8ofmI","ml-xl-1":"_yOkOl","pl-xl-1":"_5cZix","ml-xl-2":"_F0JQw","pl-xl-2":"_pWIp6","ml-xl-3":"_9CDHy","pl-xl-3":"_M9MOq","ml-xl-4":"_L6LLW","pl-xl-4":"_NZlEo","ml-xl-5":"_Milvj","pl-xl-5":"_N-hPa","ml-xl-6":"_HEU-c","pl-xl-6":"_x-uz3","ml-xl-7":"_xVYoD","pl-xl-7":"_TV3yu","ml-xl-8":"_WVmm8","pl-xl-8":"_Wsfh3","ml-xl-9":"_Rse0C","pl-xl-9":"_p-0My","ml-xl-10":"_LN1Pv","pl-xl-10":"_WtXyv","mr-xl-0":"_aQ8fC","pr-xl-0":"_x7HY1","mr-xl-1":"_rzUKT","pr-xl-1":"_ggRzA","mr-xl-2":"_j88Jb","pr-xl-2":"_6Ztzi","mr-xl-3":"_RNldP","pr-xl-3":"_uC4PP","mr-xl-4":"_14KPU","pr-xl-4":"_RoGxi","mr-xl-5":"_MYSFB","pr-xl-5":"_0fjNm","mr-xl-6":"_aK553","pr-xl-6":"_B-5Vf","mr-xl-7":"_nLta-","pr-xl-7":"_AhsZ-","mr-xl-8":"_emyPo","pr-xl-8":"_Dc6lK","mr-xl-9":"_MqsWc","pr-xl-9":"_j4A-H","mr-xl-10":"_v7rIi","pr-xl-10":"_aIhOc","mt-xl-0":"_1KMHA","pt-xl-0":"_SmBQC","mt-xl-1":"_FpHTe","pt-xl-1":"_tRIkV","mt-xl-2":"_ISAHh","pt-xl-2":"_KcOk8","mt-xl-3":"_cklRo","pt-xl-3":"_MqQSr","mt-xl-4":"_iaWfp","pt-xl-4":"_mcXBl","mt-xl-5":"_qNaL5","pt-xl-5":"_3tRQZ","mt-xl-6":"_MjyPP","pt-xl-6":"_wGTYM","mt-xl-7":"_WkpWd","pt-xl-7":"_-fXMT","mt-xl-8":"_xgRm6","pt-xl-8":"_mNE0F","mt-xl-9":"_tHRgU","pt-xl-9":"_pUanr","mt-xl-10":"_75l23","pt-xl-10":"_VjjB-","mb-xl-0":"_wNZHn","pb-xl-0":"_6weX6","mb-xl-1":"_xbDsG","pb-xl-1":"_WLHB6","mb-xl-2":"_JCck5","pb-xl-2":"_Ef822","mb-xl-3":"_-Izvj","pb-xl-3":"_kizTx","mb-xl-4":"_wDLLt","pb-xl-4":"_6vfXW","mb-xl-5":"_qa8hX","pb-xl-5":"_2cdIL","mb-xl-6":"_PPuX7","pb-xl-6":"_SYsiu","mb-xl-7":"_au29R","pb-xl-7":"_Wo-v3","mb-xl-8":"_7DCh1","pb-xl-8":"_8Qtxz","mb-xl-9":"_U5ePL","pb-xl-9":"_QdSRg","mb-xl-10":"_xwDK-","pb-xl-10":"_5HXQF","mx-xl-0":"_U-5An","px-xl-0":"_t0GQI","mx-xl-1":"_l2Q9y","px-xl-1":"_-6SLy","mx-xl-2":"_OO5ra","px-xl-2":"_DpWnU","mx-xl-3":"_umWwt","px-xl-3":"_gLeFm","mx-xl-4":"_O6nxp","px-xl-4":"_RXch7","mx-xl-5":"_GLCbl","px-xl-5":"_wOP1U","mx-xl-6":"_n1gJF","px-xl-6":"_jHA8-","mx-xl-7":"_ZG5zQ","px-xl-7":"_33-Bi","mx-xl-8":"_wGBwu","px-xl-8":"_jnqCE","mx-xl-9":"_-q541","px-xl-9":"_hQqb-","mx-xl-10":"_oOjVu","px-xl-10":"_8iBI4","my-xl-0":"_5V5-G","py-xl-0":"_ZIETe","my-xl-1":"_VhBbg","py-xl-1":"_qkd1g","my-xl-2":"_MONRd","py-xl-2":"_wBVYq","my-xl-3":"_oUD7x","py-xl-3":"_9C1YA","my-xl-4":"_akz7W","py-xl-4":"_sczsh","my-xl-5":"_CEcRg","py-xl-5":"_xFnw3","my-xl-6":"_RReJQ","py-xl-6":"_gx-E-","my-xl-7":"_NTw09","py-xl-7":"_VniPR","my-xl-8":"_zhVnN","py-xl-8":"_e-lj8","my-xl-9":"_p5Z-c","py-xl-9":"_L1zCc","my-xl-10":"_NqJ-Z","py-xl-10":"_LGmu1","background-shine":"_HkIXJ","path":"_VW1Ys","line":"_x1Ry-","skeleton":"_rh5J1","skeleton-animate":"_ukRhW","skeleton-dark":"_SuY0j","skeleton-dark-animate":"_wHz7j","skeleton-transparent":"_DehL2","skeleton-transparent-animate":"_nwZzB","semi-transparent":"_KJuSy","asset-icon":"_V0pcT","small":"_AXy-6","asset-icon-primary":"_wDjNx","asset-icon-secondary":"_uTjfo"};
1437
+
1438
+ var AssetIcon = function AssetIcon(_ref) {
1439
+ var assetIconSrc = _ref.assetIconSrc,
1440
+ _ref$assetIconProtoco = _ref.assetIconProtocolScr,
1441
+ assetIconProtocolScr = _ref$assetIconProtoco === void 0 ? null : _ref$assetIconProtoco,
1442
+ _ref$fallbackSrc = _ref.fallbackSrc,
1443
+ fallbackSrc = _ref$fallbackSrc === void 0 ? null : _ref$fallbackSrc,
1444
+ _ref$small = _ref.small,
1445
+ small = _ref$small === void 0 ? false : _ref$small;
1446
+ var handleFailedLoad = function handleFailedLoad(e) {
1447
+ e.target.onerror = null;
1448
+ e.target.src = fallbackSrc;
1449
+ };
1450
+ return /*#__PURE__*/React.createElement("div", {
1451
+ className: s["asset-icon"] + (small ? " " + s["small"] : "")
1452
+ }, /*#__PURE__*/React.createElement("img", {
1453
+ src: assetIconSrc,
1454
+ className: s["asset-icon-primary"] + (small ? " " + s["small"] : ""),
1455
+ alt: " ",
1456
+ onError: handleFailedLoad
1457
+ }), assetIconProtocolScr ? /*#__PURE__*/React.createElement("img", {
1458
+ src: assetIconProtocolScr,
1459
+ className: s["asset-icon-secondary"] + (small ? " " + s["small"] : ""),
1460
+ alt: " ",
1461
+ onError: handleFailedLoad
1462
+ }) : "");
1463
+ };
1464
+ AssetIcon.propTypes = {
1465
+ assetIconSrc: PropTypes.string.isRequired,
1466
+ assetIconProtocolScr: PropTypes.string,
1467
+ fallbackSrc: PropTypes.string,
1468
+ small: PropTypes.bool
1469
+ };
1470
+ AssetIcon.defaultProps = {
1471
+ assetIconProtocolScr: null,
1472
+ fallbackSrc: null,
1473
+ small: false
1474
+ };
1475
+
1476
+ /**
1477
+ * This function improves the passed error object (its message) by adding the passed function name
1478
+ * and additional message to it.
1479
+ * This is useful as Javascript doesn't guarantee the stack-traces, so we should manually add these details to errors
1480
+ * to be able to troubleshoot.
1481
+ *
1482
+ * @param e {Error}
1483
+ * @param settingFunction {string}
1484
+ * @param [additionalMessage=""] {string|undefined}
1485
+ * @throws {Error} always rethrows the original passed error but with an improved message
1486
+ */
1487
+ function improveAndRethrow(e, settingFunction, additionalMessage) {
1488
+ if (additionalMessage === void 0) {
1489
+ additionalMessage = "";
1490
+ }
1491
+ var message = improvedErrorMessage(e, settingFunction, additionalMessage);
1492
+ if (e) {
1493
+ e.message = message;
1494
+ throw e; // to preserve existing stacktrace if present
1495
+ }
1496
+ throw new Error(message);
1497
+ }
1498
+ function improvedErrorMessage(e, settingFunction, additionalMessage) {
1499
+ var message = "\nFunction call " + (settingFunction != null ? settingFunction : "") + " failed. ";
1500
+ e && e.message && (message += "Error message: " + e.message + ". ");
1501
+ additionalMessage && (message += additionalMessage + " ");
1502
+ return message;
1503
+ }
1504
+
1505
+ var FiatCurrenciesService = /*#__PURE__*/function () {
1506
+ function FiatCurrenciesService() {}
1507
+ FiatCurrenciesService.getFullCurrencyNameByCode = function getFullCurrencyNameByCode(code) {
1508
+ if (code === void 0) {
1509
+ code = "";
1510
+ }
1511
+ var data = fiatCurrenciesList.find(function (currencyData) {
1512
+ return currencyData[0] === code.toUpperCase();
1513
+ });
1514
+ return data && data[2] || null;
1515
+ };
1516
+ FiatCurrenciesService.isCodeValid = function isCodeValid(code) {
1517
+ return !!fiatCurrenciesList.find(function (currenciesData) {
1518
+ return currenciesData[0] === code;
1519
+ });
1520
+ }
1521
+
1522
+ /**
1523
+ * Returns currency symbol by code if present
1524
+ *
1525
+ * @param code {string} currency code
1526
+ * @return {string|null} code or null if there is no symbol for the currency
1527
+ */;
1528
+ FiatCurrenciesService.getCurrencySymbolByCode = function getCurrencySymbolByCode(code) {
1529
+ var _data$;
1530
+ if (code === void 0) {
1531
+ code = "";
1532
+ }
1533
+ var data = fiatCurrenciesList.find(function (currencyData) {
1534
+ return currencyData[0] === code.toUpperCase();
1535
+ });
1536
+ return (_data$ = data == null ? void 0 : data[1]) != null ? _data$ : null;
1537
+ }
1538
+
1539
+ /**
1540
+ * @param code {string}
1541
+ * @return {number|null}
1542
+ */;
1543
+ FiatCurrenciesService.getCurrencyDecimalCountByCode = function getCurrencyDecimalCountByCode(code) {
1544
+ var _data$2;
1545
+ if (code === void 0) {
1546
+ code = "";
1547
+ }
1548
+ var data = fiatCurrenciesList.find(function (currencyData) {
1549
+ return currencyData[0] === code.toUpperCase();
1550
+ });
1551
+ return (_data$2 = data == null ? void 0 : data[3]) != null ? _data$2 : null;
1552
+ };
1553
+ return FiatCurrenciesService;
1554
+ }();
1555
+ var fiatCurrenciesList = [["USD", "$", "US Dollar", 2], ["CAD", "CA$", "Canadian Dollar", 2], ["EUR", "€", "Euro", 2], ["AED", "AED", "UAE Dirham", 2], ["AFN", "؋", "Afghan Afghani", 0], ["ALL", "ALL", "Albanian Lek", 0], ["AMD", "֏", "Armenian Dram", 0], ["ARS", "AR$", "Argentine Peso", 2], ["AUD", "AU$", "Australian Dollar", 2], ["AZN", "₼", "Azerbaijani Manat", 2], ["BAM", "KM", "Bosnia-Herzegovina Convertible Mark", 2], ["BDT", "Tk", "Bangladeshi Taka", 2], ["BGN", "BGN", "Bulgarian Lev", 2], ["BHD", "BD", "Bahraini Dinar", 3], ["BIF", "FBu", "Burundian Franc", 0], ["BND", "BN$", "Brunei Dollar", 2], ["BOB", "Bs", "Bolivian Boliviano", 2], ["BRL", "R$", "Brazilian Real", 2], ["BWP", "BWP", "Botswanan Pula", 2], ["BYN", "Br", "Belarusian Ruble", 2], ["BZD", "BZ$", "Belize Dollar", 2], ["CDF", "CDF", "Congolese Franc", 2], ["CHF", "CHF", "Swiss Franc", 2], ["CLP", "CL$", "Chilean Peso", 0], ["CNY", "CN¥", "Chinese Yuan", 2], ["COP", "CO$", "Colombian Peso", 0], ["CRC", "₡", "Costa Rican Colón", 0], ["CVE", "CV$", "Cape Verdean Escudo", 2], ["CZK", "Kč", "Czech Republic Koruna", 2], ["DJF", "Fdj", "Djiboutian Franc", 0], ["DKK", "Dkr", "Danish Krone", 2], ["DOP", "RD$", "Dominican Peso", 2], ["DZD", "DA", "Algerian Dinar", 2], ["EEK", "Ekr", "Estonian Kroon", 2], ["EGP", "EGP", "Egyptian Pound", 2], ["ERN", "Nfk", "Eritrean Nakfa", 2], ["ETB", "Br", "Ethiopian Birr", 2], ["GBP", "£", "British Pound Sterling", 2], ["GEL", "₾", "Georgian Lari", 2], ["GHS", "₵", "Ghanaian Cedi", 2], ["GNF", "FG", "Guinean Franc", 0], ["GTQ", "GTQ", "Guatemalan Quetzal", 2], ["HKD", "HK$", "Hong Kong Dollar", 2], ["HNL", "HNL", "Honduran Lempira", 2], ["HRK", "kn", "Croatian Kuna", 2], ["HUF", "Ft", "Hungarian Forint", 0], ["IDR", "Rp", "Indonesian Rupiah", 0], ["ILS", "₪", "Israeli New Sheqel", 2], ["INR", "₹", "Indian Rupee", 2], ["IQD", "IQD", "Iraqi Dinar", 0], ["IRR", "﷼", "Iranian Rial", 0], ["ISK", "Ikr", "Icelandic Króna", 0], ["JMD", "J$", "Jamaican Dollar", 2], ["JOD", "JD", "Jordanian Dinar", 3], ["JPY", "¥", "Japanese Yen", 0], ["KES", "Ksh", "Kenyan Shilling", 2], ["KHR", "KHR", "Cambodian Riel", 2], ["KMF", "CF", "Comorian Franc", 0], ["KRW", "₩", "South Korean Won", 0], ["KWD", "KD", "Kuwaiti Dinar", 3], ["KZT", "₸", "Kazakhstani Tenge", 2], ["LBP", "LB£", "Lebanese Pound", 0], ["LKR", "SLRs", "Sri Lankan Rupee", 2], ["LTL", "Lt", "Lithuanian Litas", 2], ["LVL", "Ls", "Latvian Lats", 2], ["LYD", "LD", "Libyan Dinar", 3], ["MAD", "MAD", "Moroccan Dirham", 2], ["MDL", "MDL", "Moldovan Leu", 2], ["MGA", "MGA", "Malagasy Ariary", 0], ["MKD", "MKD", "Macedonian Denar", 2], ["MMK", "MMK", "Myanma Kyat", 0], ["MNT", "₮", "Mongolian Tugrik", 0], ["MOP", "MOP$", "Macanese Pataca", 2], ["MUR", "MURs", "Mauritian Rupee", 0], ["MXN", "MX$", "Mexican Peso", 2], ["MYR", "RM", "Malaysian Ringgit", 2], ["MZN", "MTn", "Mozambican Metical", 2], ["NAD", "N$", "Namibian Dollar", 2], ["NGN", "₦", "Nigerian Naira", 2], ["NIO", "C$", "Nicaraguan Córdoba", 2], ["NOK", "Nkr", "Norwegian Krone", 2], ["NPR", "NPRs", "Nepalese Rupee", 2], ["NZD", "NZ$", "New Zealand Dollar", 2], ["OMR", "OMR", "Omani Rial", 3], ["PAB", "B/.", "Panamanian Balboa", 2], ["PEN", "S/.", "Peruvian Nuevo Sol", 2], ["PHP", "₱", "Philippine Peso", 2], ["PKR", "PKRs", "Pakistani Rupee", 0], ["PLN", "zł", "Polish Zloty", 2], ["PYG", "₲", "Paraguayan Guarani", 0], ["QAR", "QR", "Qatari Rial", 2], ["RON", "RON", "Romanian Leu", 2], ["RSD", "din.", "Serbian Dinar", 0], ["RUB", "₽", "Russian Ruble", 2], ["RWF", "RWF", "Rwandan Franc", 0], ["SAR", "SR", "Saudi Riyal", 2], ["SDG", "SDG", "Sudanese Pound", 2], ["SEK", "Skr", "Swedish Krona", 2], ["SGD", "S$", "Singapore Dollar", 2], ["SOS", "Ssh", "Somali Shilling", 0], ["SYP", "SY£", "Syrian Pound", 0], ["THB", "฿", "Thai Baht", 2], ["TND", "DT", "Tunisian Dinar", 3], ["TOP", "T$", "Tongan Paʻanga", 2], ["TRY", "₺", "Turkish Lira", 2], ["TTD", "TT$", "Trinidad and Tobago Dollar", 2], ["TWD", "NT$", "New Taiwan Dollar", 2], ["TZS", "TSh", "Tanzanian Shilling", 0], ["UAH", "₴", "Ukrainian Hryvnia", 2], ["UGX", "USh", "Ugandan Shilling", 0], ["UYU", "$U", "Uruguayan Peso", 2], ["UZS", "UZS", "Uzbekistan Som", 0], ["VEF", "Bs.F.", "Venezuelan Bolívar", 2], ["VND", "₫", "Vietnamese Dong", 0], ["XAF", "FCFA", "CFA Franc BEAC", 0], ["XOF", "CFA", "CFA Franc BCEAO", 0], ["YER", "﷼", "Yemeni Rial", 0], ["ZAR", "R", "South African Rand", 2], ["ZMK", "ZK", "Zambian Kwacha", 0], ["ZWL", "ZWL$", "Zimbabwean Dollar", 0]];
1556
+
1557
+ function _extends() {
1558
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
1559
+ for (var i = 1; i < arguments.length; i++) {
1560
+ var source = arguments[i];
1561
+ for (var key in source) {
1562
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
1563
+ target[key] = source[key];
1564
+ }
1565
+ }
1566
+ }
1567
+ return target;
1568
+ };
1569
+ return _extends.apply(this, arguments);
1570
+ }
1571
+
1572
+ // TODO: [dev] return addCommasToAmountString internal method to encapsulate commas adding
1573
+
1574
+ var AmountUtils = /*#__PURE__*/function () {
1575
+ function AmountUtils() {}
1576
+ AmountUtils.fiatXs = function fiatXs(amount, code) {
1577
+ return this.fiat(amount, code, {
1578
+ extraSmallLength: true
1579
+ });
1580
+ }
1581
+
1582
+ /**
1583
+ * Universal method for rendering of fiat amounts, taking into account the rules of
1584
+ * the passed fiat currency code.
1585
+ *
1586
+ * TODO: [feature, high] remove 'number' from accepted types list task_id=1e692bcfabbe487a9d1638fc8ff17448
1587
+ * @param amount {BigNumber|number|string|null|undefined} The number value to be trimmed
1588
+ * @param currencyCode {string|null} The currency code. Can be omitted if { ticker: false } in the config
1589
+ * @param [passedParams={}] {object} Formatting parameters
1590
+ * @return {string} Formatted fiat amount string
1591
+ */;
1592
+ AmountUtils.fiat = function fiat(amount, currencyCode, passedParams) {
1593
+ if (passedParams === void 0) {
1594
+ passedParams = {};
1595
+ }
1596
+ try {
1597
+ var params = _extends({}, this.defaultFiatParams, passedParams);
1598
+ if (this._checkIfAmountInvalid(amount, true) || typeof currencyCode !== "string") return "NULL";
1599
+ var currencySymbol = FiatCurrenciesService.getCurrencySymbolByCode(currencyCode);
1600
+ var currencyDecimalCount = FiatCurrenciesService.getCurrencyDecimalCountByCode(currencyCode);
1601
+ var trimmedByMaxDigits = BigNumber(amount).toFixed(currencyDecimalCount, BigNumber.ROUND_FLOOR);
1602
+ var processedAmount = BigNumber(trimmedByMaxDigits);
1603
+ if (params.collapsible && processedAmount.gte(BigNumber("1000000"))) {
1604
+ processedAmount = this._collapseToMillionsAndFormat(processedAmount, this.collapsedDecimalCount, params);
1605
+ } else {
1606
+ var limitResult = this._limitTotalAmountLengthIfNeeded(trimmedByMaxDigits, params);
1607
+ processedAmount = BigNumber(limitResult.processedAmount).toFormat(); // Adds commas to integer part
1608
+ }
1609
+
1610
+ // Add the currency code or currency symbol, if symbol is enabled and available
1611
+ if (params.ticker) {
1612
+ if (typeof currencySymbol === "string" && params.enableCurrencySymbols) {
1613
+ processedAmount = currencySymbol + (currencySymbol.length > 1 ? " " : "") + processedAmount;
1614
+ } else {
1615
+ processedAmount = processedAmount + " " + currencyCode;
1616
+ }
1617
+ }
1618
+ return processedAmount;
1619
+ } catch (e) {
1620
+ improveAndRethrow(e, "fiat", "Passed: " + amount);
1621
+ }
1622
+ };
1623
+ AmountUtils.cryptoWoTicker = function cryptoWoTicker(amount, digits) {
1624
+ return this.crypto(amount, null, digits, {
1625
+ ticker: false
1626
+ });
1627
+ };
1628
+ AmountUtils.cryptoWoTickerXs = function cryptoWoTickerXs(amount, digits) {
1629
+ return this.crypto(amount, null, digits, {
1630
+ ticker: false,
1631
+ extraSmallLength: true
1632
+ });
1633
+ };
1634
+ AmountUtils.cryptoXs = function cryptoXs(amount, ticker, digits) {
1635
+ return this.crypto(amount, ticker, digits, {
1636
+ extraSmallLength: true,
1637
+ periods: false
1638
+ });
1639
+ };
1640
+ AmountUtils.cryptoFull = function cryptoFull(amount, ticker, digits) {
1641
+ return this.crypto(amount, ticker, digits, {
1642
+ collapsible: false,
1643
+ trim: false,
1644
+ limitTotalLength: false
1645
+ });
1646
+ }
1647
+
1648
+ /**
1649
+ * Universal method for rendering of crypto amounts, taking into account the rules of
1650
+ * the passed ticker. Requires the number of digits after period to be less of equal to
1651
+ * the number of digits, supported by the passed ticker.
1652
+ *
1653
+ * @param amount {BigNumber|string|null|undefined} The number value to be formatted
1654
+ * @param ticker {string|null} Coin ticker
1655
+ * @param [digits=8] {number} max digits after the dot
1656
+ * @param passedParams {object} Formatting parameters
1657
+ * @return {string} Formatted crypto amount string
1658
+ */;
1659
+ AmountUtils.crypto = function crypto(amount, ticker, digits, passedParams) {
1660
+ if (digits === void 0) {
1661
+ digits = this.significantDecimalCount;
1662
+ }
1663
+ try {
1664
+ var params = _extends({}, this.defaultCryptoParams, passedParams);
1665
+ if (this._checkIfAmountInvalid(amount) || typeof ticker !== "string" && params.ticker) return "NULL";
1666
+ var addPeriods = false;
1667
+ var amountBigNumber = BigNumber(amount);
1668
+ var processedAmount = amountBigNumber.toFixed(digits, BigNumber.ROUND_FLOOR);
1669
+ processedAmount = this.removeRedundantRightZerosFromNumberString(processedAmount);
1670
+ var originalAmountDecimalPlaces = BigNumber(processedAmount).decimalPlaces();
1671
+ // Check decimal count and throw an error, if the amount has more decimal digits than supported by the asset
1672
+ if (originalAmountDecimalPlaces > digits) {
1673
+ var errorMessage = "An attempt to render a crypto value with too many digits after period was made: " + amount + ", allowed digits: " + digits + ". This is a no-op, since the logical and visually rendered values would differ, which is not acceptable for crypto amounts. Please trim the amount before rendering, using the trimCryptoAmountByCoin(amount, coin) method.";
1674
+ // throw new Error(errorMessage);
1675
+ // eslint-disable-next-line no-console
1676
+ console.log(errorMessage, "crypto");
1677
+ }
1678
+
1679
+ // Shortening the value to general significant number of digits after period
1680
+ if (params.trim) {
1681
+ processedAmount = this.removeRedundantRightZerosFromNumberString(amountBigNumber.toFixed(this.significantDecimalCount, BigNumber.ROUND_FLOOR));
1682
+ addPeriods = originalAmountDecimalPlaces > this.significantDecimalCount;
1683
+ }
1684
+ var limitResult = this._limitTotalAmountLengthIfNeeded(processedAmount, params);
1685
+ processedAmount = limitResult.processedAmount;
1686
+ addPeriods || (addPeriods = limitResult.addPeriods);
1687
+ var wereMillionsCollapsed = false;
1688
+ if (params.collapsible && amountBigNumber.gte("1000000")) {
1689
+ // Collapse the 1M+ amounts if applicable
1690
+ processedAmount = this._collapseToMillionsAndFormat(BigNumber(processedAmount), this.collapsedDecimalCount, params);
1691
+ wereMillionsCollapsed = true;
1692
+ } else {
1693
+ // Add separators to integer part of the amount
1694
+ processedAmount = BigNumber(processedAmount).toFormat();
1695
+ }
1696
+
1697
+ // Adding periods, if the amount was shortened
1698
+ if (params.periods && addPeriods && !wereMillionsCollapsed) {
1699
+ processedAmount = processedAmount + this.periods;
1700
+ }
1701
+
1702
+ // Adding an adaptive (printable/full) ticker
1703
+ if (params.ticker && ticker) {
1704
+ processedAmount = processedAmount + " " + ticker;
1705
+ }
1706
+ return processedAmount;
1707
+ } catch (e) {
1708
+ improveAndRethrow(e, "crypto", "Passed: " + amount + ", " + ticker + ", " + digits);
1709
+ }
1710
+ };
1711
+ AmountUtils._checkIfAmountInvalid = function _checkIfAmountInvalid(amount, allowNumbers) {
1712
+ if (allowNumbers === void 0) {
1713
+ allowNumbers = false;
1714
+ }
1715
+ return amount == null || amount === "" || !BigNumber.isBigNumber(amount) && typeof amount !== "string" && (!allowNumbers || typeof amount !== "number");
1716
+ }
1717
+
1718
+ /**
1719
+ * Trims all digits after period that exceed the number of digits provided.
1720
+ * Use this everywhere when calculating some amount value to ensure the result is correct in terms
1721
+ * of max digits allowed by specific currency.
1722
+ *
1723
+ * @param amount {BigNumber|number|string|null|undefined} The number value to be trimmed.
1724
+ * HEX strings also allowed "0x..." and JS hex numbers
1725
+ * @param digits {number} allowed digits
1726
+ * @return {string|null} String with trimmed number or null for invalid amount
1727
+ */;
1728
+ AmountUtils.trim = function trim(amount, digits) {
1729
+ try {
1730
+ if (this._checkIfAmountInvalid(amount, true)) return null;
1731
+ return BigNumber(amount).toFixed(digits, BigNumber.ROUND_FLOOR);
1732
+ } catch (e) {
1733
+ improveAndRethrow(e, "trim", "Passed: " + amount + ", " + digits);
1734
+ }
1735
+ }
1736
+
1737
+ /**
1738
+ * @param amount {BigNumber|number|string|null|undefined} The number value to be trimmed.
1739
+ * HEX strings also allowed "0x..." and JS hex numbers
1740
+ * @return {string|null}
1741
+ */;
1742
+ AmountUtils.intStr = function intStr(amount) {
1743
+ return this.trim(amount, 0);
1744
+ }
1745
+
1746
+ /**
1747
+ * Shortens the line length by using a "1.52M" representation of big amounts.
1748
+ *
1749
+ * @param amountBigNumber {BigNumber} The number value to be trimmed
1750
+ * @param decimalCount {number} The number of digits after period to keep in millions representation
1751
+ * @param params {object} params object
1752
+ * @return {string} A shortened string, converted into "millions" format, if the amount exceeds 1 million
1753
+ */;
1754
+ AmountUtils._collapseToMillionsAndFormat = function _collapseToMillionsAndFormat(amountBigNumber, decimalCount, params) {
1755
+ if (params === void 0) {
1756
+ params = {};
1757
+ }
1758
+ try {
1759
+ // TODO: [feature, moderate] use local format here - take from JS locales (comma/dot etc.)
1760
+ var millionBigNumber = BigNumber("1000000");
1761
+ var millions = amountBigNumber.div(millionBigNumber).toFixed(decimalCount, BigNumber.ROUND_FLOOR);
1762
+ var limitedResult = this._limitTotalAmountLengthIfNeeded(millions, params);
1763
+ var formatted = BigNumber(limitedResult.processedAmount).toFormat();
1764
+ return formatted + "M";
1765
+ } catch (e) {
1766
+ improveAndRethrow(e, "_collapseAmountAndFormat", "Passed: " + amountBigNumber.toFixed() + ", " + decimalCount);
1767
+ }
1768
+ }
1769
+
1770
+ /**
1771
+ * @param amountString {string} The amount to be restricted by length
1772
+ * @param params {object} Params object used for formatting
1773
+ * @return {{processedAmount:string, addPeriods: boolean}} A shortened string
1774
+ */;
1775
+ AmountUtils._limitTotalAmountLengthIfNeeded = function _limitTotalAmountLengthIfNeeded(amountString, params) {
1776
+ try {
1777
+ var addPeriods = false;
1778
+ if (params.limitTotalLength || params.extraSmallLength) {
1779
+ var maxLength = params.extraSmallLength ? this.extraSmallMaxTotalLength : this.maxTotalLength;
1780
+ if (amountString.length > maxLength) {
1781
+ var delta = amountString.length - maxLength;
1782
+ var currentDecimalsCount = BigNumber(amountString).decimalPlaces();
1783
+ var newDecimalCount = currentDecimalsCount - delta;
1784
+ amountString = BigNumber(amountString).toFixed(newDecimalCount > 2 ? newDecimalCount : 2, BigNumber.ROUND_FLOOR);
1785
+ addPeriods = currentDecimalsCount > newDecimalCount;
1786
+ }
1787
+ }
1788
+ return {
1789
+ addPeriods: addPeriods,
1790
+ processedAmount: amountString
1791
+ };
1792
+ } catch (e) {
1793
+ improveAndRethrow(e, "_limitTotalAmountLengthIfNeeded", "Passed: " + amountString + ", " + params);
1794
+ }
1795
+ }
1796
+
1797
+ /**
1798
+ * Safely composes rate string (handles small/big rates)
1799
+ *
1800
+ * @param leftTicker {string}
1801
+ * @param rightTicker {string}
1802
+ * @param rate {number|string|BigNumber}
1803
+ * @param [rightCurrencyDigitsAfterDots=8] {number}
1804
+ * @return {string}
1805
+ */;
1806
+ AmountUtils.composeRateText = function composeRateText(leftTicker, rightTicker, rate, rightCurrencyDigitsAfterDots) {
1807
+ if (rightCurrencyDigitsAfterDots === void 0) {
1808
+ rightCurrencyDigitsAfterDots = this.significantDecimalCount;
1809
+ }
1810
+ try {
1811
+ /* Here we try to calculate a clear rate for the user. The difficulty is that the rate value can be pretty
1812
+ * small as some coins have significantly higher price than the other. For such cases we calculate
1813
+ * not the "1 <coin_A> is X <coin B>" but "Y <coin_A> is X <coin B>" where Y is one of the powers of 100.
1814
+ */
1815
+ var leftNumber = BigNumber("1");
1816
+ var multiplier = BigNumber("100");
1817
+ var maxAttemptsToGetRate = 10;
1818
+ var right = null;
1819
+ var rateBigNumber = BigNumber(rate);
1820
+ for (var i = 0; i < maxAttemptsToGetRate; ++i) {
1821
+ var rightNumberAttempt = rateBigNumber.times(leftNumber).toFixed(rightCurrencyDigitsAfterDots, BigNumber.ROUND_FLOOR);
1822
+ if (!BigNumber(rightNumberAttempt).eq(BigNumber("0"))) {
1823
+ right = BigNumber(rightNumberAttempt);
1824
+ break;
1825
+ } else {
1826
+ leftNumber = leftNumber.times(multiplier);
1827
+ }
1828
+ }
1829
+ var leftAmountString = AmountUtils.intStr(leftNumber);
1830
+ var rightAmountString = right != null ? right.toFixed(rightCurrencyDigitsAfterDots, BigNumber.ROUND_FLOOR) : null;
1831
+ return leftAmountString + " " + leftTicker + " ~ " + (rightAmountString != null ? rightAmountString : "?") + " " + rightTicker;
1832
+ } catch (e) {
1833
+ // eslint-disable-next-line no-console
1834
+ console.log("composeRateText", e);
1835
+ }
1836
+ return "-";
1837
+ }
1838
+
1839
+ /**
1840
+ * @param numberAsAString {string}
1841
+ * @return {string}
1842
+ */;
1843
+ AmountUtils.removeRedundantRightZerosFromNumberString = function removeRedundantRightZerosFromNumberString(numberAsAString) {
1844
+ try {
1845
+ var _right2;
1846
+ var parts = ("" + numberAsAString).split(".");
1847
+ var right = parts[1];
1848
+ while ((_right = right) != null && _right.length && right[right.length - 1] === "0") {
1849
+ var _right;
1850
+ right = right.slice(0, right.length - 1);
1851
+ }
1852
+ return "" + parts[0] + ((_right2 = right) != null && _right2.length ? "." + right : "");
1853
+ } catch (e) {
1854
+ improveAndRethrow(e, "removeRedundantRightZerosFromNumberString", "Passed: " + numberAsAString);
1855
+ }
1856
+ };
1857
+ return AmountUtils;
1858
+ }();
1859
+ AmountUtils.significantDecimalCount = 8;
1860
+ AmountUtils.collapsedDecimalCount = 2;
1861
+ AmountUtils.maxTotalLength = 12;
1862
+ AmountUtils.extraSmallMaxTotalLength = 9;
1863
+ // >=10 breaks transactions list (mobile) and it is hard to avoid this
1864
+ AmountUtils.periods = "..";
1865
+ AmountUtils.defaultFiatParams = {
1866
+ ticker: true,
1867
+ // If true, currency code will be shown
1868
+ enableCurrencySymbols: true,
1869
+ // Enables currency symbols where available. Requires "ticker: true"
1870
+ collapsible: true,
1871
+ // Enables minimization of amounts over 1 million (example: 1.52M)
1872
+ limitTotalLength: true,
1873
+ // Limits the total amount length to maxTotalLength
1874
+ extraSmallLength: false // Limits the total amount length to extraSmallMaxTotalLength
1875
+ };
1876
+ AmountUtils.defaultCryptoParams = {
1877
+ ticker: true,
1878
+ // If true, asset ticker will be shown
1879
+ collapsible: true,
1880
+ // Enables minimization of amounts over 1 million (example: 1.52M)
1881
+ trim: true,
1882
+ // Cuts the right part of the amount if necessary, and adds ".." in the end
1883
+ limitTotalLength: true,
1884
+ // Limits the total amount length to maxTotalLength
1885
+ extraSmallLength: false,
1886
+ // Limits the total amount length to extraSmallMaxTotalLength
1887
+ periods: true // Whether we add periods ("..") as suffix for trimmed numbers
1888
+ };
1889
+
1890
+ export { AmountUtils, AssetIcon, Button, FiatCurrenciesService, LoadingDots, SupportChat, improveAndRethrow };
1891
+ //# sourceMappingURL=index.module.js.map