@bigbinary/neetoui 5.2.30 → 5.2.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/layouts.js CHANGED
@@ -1,4 +1,6 @@
1
1
  import React, { forwardRef as forwardRef$1, cloneElement, useState, useLayoutEffect, useEffect, useRef } from 'react';
2
+ import '@bigbinary/neeto-cist';
3
+ import { values, isNil } from 'ramda';
2
4
  import { createPortal } from 'react-dom';
3
5
  import { AppSwitcher as AppSwitcher$1, Help, Book, Keyboard, ChatEmpty, Gift } from '@bigbinary/neeto-icons';
4
6
  import { Neeto } from '@bigbinary/neeto-icons/logos';
@@ -64,6 +66,61 @@ var classnames$1 = {exports: {}};
64
66
 
65
67
  var classnames = classnames$1.exports;
66
68
 
69
+ function _arrayWithHoles(arr) {
70
+ if (Array.isArray(arr)) return arr;
71
+ }
72
+
73
+ function _iterableToArrayLimit(arr, i) {
74
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
75
+ if (null != _i) {
76
+ var _s,
77
+ _e,
78
+ _x,
79
+ _r,
80
+ _arr = [],
81
+ _n = !0,
82
+ _d = !1;
83
+ try {
84
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
85
+ if (Object(_i) !== _i) return;
86
+ _n = !1;
87
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
88
+ } catch (err) {
89
+ _d = !0, _e = err;
90
+ } finally {
91
+ try {
92
+ if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
93
+ } finally {
94
+ if (_d) throw _e;
95
+ }
96
+ }
97
+ return _arr;
98
+ }
99
+ }
100
+
101
+ function _arrayLikeToArray(arr, len) {
102
+ if (len == null || len > arr.length) len = arr.length;
103
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
104
+ return arr2;
105
+ }
106
+
107
+ function _unsupportedIterableToArray(o, minLen) {
108
+ if (!o) return;
109
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
110
+ var n = Object.prototype.toString.call(o).slice(8, -1);
111
+ if (n === "Object" && o.constructor) n = o.constructor.name;
112
+ if (n === "Map" || n === "Set") return Array.from(o);
113
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
114
+ }
115
+
116
+ function _nonIterableRest() {
117
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
118
+ }
119
+
120
+ function _slicedToArray(arr, i) {
121
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
122
+ }
123
+
67
124
  function _typeof(obj) {
68
125
  "@babel/helpers - typeof";
69
126
 
@@ -90,6 +147,21 @@ function _toPropertyKey(arg) {
90
147
  return _typeof(key) === "symbol" ? key : String(key);
91
148
  }
92
149
 
150
+ function _defineProperty(obj, key, value) {
151
+ key = _toPropertyKey(key);
152
+ if (key in obj) {
153
+ Object.defineProperty(obj, key, {
154
+ value: value,
155
+ enumerable: true,
156
+ configurable: true,
157
+ writable: true
158
+ });
159
+ } else {
160
+ obj[key] = value;
161
+ }
162
+ return obj;
163
+ }
164
+
93
165
  var dayjs_min = {exports: {}};
94
166
 
95
167
  (function (module, exports) {
@@ -130,249 +202,544 @@ var weekOfYear$1 = {exports: {}};
130
202
 
131
203
  var weekOfYear = weekOfYear$1.exports;
132
204
 
133
- function _isPlaceholder(a) {
134
- return a != null && typeof a === 'object' && a['@@functional/placeholder'] === true;
135
- }
205
+ /* eslint complexity: [2, 18], max-statements: [2, 33] */
206
+ var shams = function hasSymbols() {
207
+ if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
208
+ if (typeof Symbol.iterator === 'symbol') { return true; }
136
209
 
137
- /**
138
- * Optimized internal one-arity curry function.
139
- *
140
- * @private
141
- * @category Function
142
- * @param {Function} fn The function to curry.
143
- * @return {Function} The curried function.
144
- */
210
+ var obj = {};
211
+ var sym = Symbol('test');
212
+ var symObj = Object(sym);
213
+ if (typeof sym === 'string') { return false; }
145
214
 
146
- function _curry1(fn) {
147
- return function f1(a) {
148
- if (arguments.length === 0 || _isPlaceholder(a)) {
149
- return f1;
150
- } else {
151
- return fn.apply(this, arguments);
152
- }
153
- };
154
- }
215
+ if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
216
+ if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
155
217
 
156
- function _has(prop, obj) {
157
- return Object.prototype.hasOwnProperty.call(obj, prop);
158
- }
218
+ // temp disabled per https://github.com/ljharb/object.assign/issues/17
219
+ // if (sym instanceof Symbol) { return false; }
220
+ // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
221
+ // if (!(symObj instanceof Symbol)) { return false; }
159
222
 
160
- var toString = Object.prototype.toString;
223
+ // if (typeof Symbol.prototype.toString !== 'function') { return false; }
224
+ // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
161
225
 
162
- var _isArguments =
163
- /*#__PURE__*/
164
- function () {
165
- return toString.call(arguments) === '[object Arguments]' ? function _isArguments(x) {
166
- return toString.call(x) === '[object Arguments]';
167
- } : function _isArguments(x) {
168
- return _has('callee', x);
169
- };
170
- }();
226
+ var symVal = 42;
227
+ obj[sym] = symVal;
228
+ for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
229
+ if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
171
230
 
172
- var hasEnumBug = !
173
- /*#__PURE__*/
174
- {
175
- toString: null
176
- }.propertyIsEnumerable('toString');
177
- var nonEnumerableProps = ['constructor', 'valueOf', 'isPrototypeOf', 'toString', 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString']; // Safari bug
231
+ if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
178
232
 
179
- var hasArgsEnumBug =
180
- /*#__PURE__*/
181
- function () {
233
+ var syms = Object.getOwnPropertySymbols(obj);
234
+ if (syms.length !== 1 || syms[0] !== sym) { return false; }
182
235
 
183
- return arguments.propertyIsEnumerable('length');
184
- }();
236
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
185
237
 
186
- var contains$1 = function contains(list, item) {
187
- var idx = 0;
238
+ if (typeof Object.getOwnPropertyDescriptor === 'function') {
239
+ var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
240
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
241
+ }
188
242
 
189
- while (idx < list.length) {
190
- if (list[idx] === item) {
191
- return true;
192
- }
243
+ return true;
244
+ };
193
245
 
194
- idx += 1;
195
- }
246
+ var origSymbol = typeof Symbol !== 'undefined' && Symbol;
247
+ var hasSymbolSham = shams;
196
248
 
197
- return false;
249
+ var hasSymbols$1 = function hasNativeSymbols() {
250
+ if (typeof origSymbol !== 'function') { return false; }
251
+ if (typeof Symbol !== 'function') { return false; }
252
+ if (typeof origSymbol('foo') !== 'symbol') { return false; }
253
+ if (typeof Symbol('bar') !== 'symbol') { return false; }
254
+
255
+ return hasSymbolSham();
198
256
  };
199
- /**
200
- * Returns a list containing the names of all the enumerable own properties of
201
- * the supplied object.
202
- * Note that the order of the output array is not guaranteed to be consistent
203
- * across different JS platforms.
204
- *
205
- * @func
206
- * @memberOf R
207
- * @since v0.1.0
208
- * @category Object
209
- * @sig {k: v} -> [k]
210
- * @param {Object} obj The object to extract properties from
211
- * @return {Array} An array of the object's own properties.
212
- * @see R.keysIn, R.values, R.toPairs
213
- * @example
214
- *
215
- * R.keys({a: 1, b: 2, c: 3}); //=> ['a', 'b', 'c']
216
- */
217
257
 
258
+ /* eslint no-invalid-this: 1 */
218
259
 
219
- var keys = typeof Object.keys === 'function' && !hasArgsEnumBug ?
220
- /*#__PURE__*/
221
- _curry1(function keys(obj) {
222
- return Object(obj) !== obj ? [] : Object.keys(obj);
223
- }) :
224
- /*#__PURE__*/
225
- _curry1(function keys(obj) {
226
- if (Object(obj) !== obj) {
227
- return [];
228
- }
260
+ var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
261
+ var slice = Array.prototype.slice;
262
+ var toStr = Object.prototype.toString;
263
+ var funcType = '[object Function]';
264
+
265
+ var implementation$1 = function bind(that) {
266
+ var target = this;
267
+ if (typeof target !== 'function' || toStr.call(target) !== funcType) {
268
+ throw new TypeError(ERROR_MESSAGE + target);
269
+ }
270
+ var args = slice.call(arguments, 1);
271
+
272
+ var bound;
273
+ var binder = function () {
274
+ if (this instanceof bound) {
275
+ var result = target.apply(
276
+ this,
277
+ args.concat(slice.call(arguments))
278
+ );
279
+ if (Object(result) === result) {
280
+ return result;
281
+ }
282
+ return this;
283
+ } else {
284
+ return target.apply(
285
+ that,
286
+ args.concat(slice.call(arguments))
287
+ );
288
+ }
289
+ };
229
290
 
230
- var prop, nIdx;
231
- var ks = [];
291
+ var boundLength = Math.max(0, target.length - args.length);
292
+ var boundArgs = [];
293
+ for (var i = 0; i < boundLength; i++) {
294
+ boundArgs.push('$' + i);
295
+ }
232
296
 
233
- var checkArgsLength = hasArgsEnumBug && _isArguments(obj);
297
+ bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
234
298
 
235
- for (prop in obj) {
236
- if (_has(prop, obj) && (!checkArgsLength || prop !== 'length')) {
237
- ks[ks.length] = prop;
299
+ if (target.prototype) {
300
+ var Empty = function Empty() {};
301
+ Empty.prototype = target.prototype;
302
+ bound.prototype = new Empty();
303
+ Empty.prototype = null;
238
304
  }
239
- }
240
305
 
241
- if (hasEnumBug) {
242
- nIdx = nonEnumerableProps.length - 1;
306
+ return bound;
307
+ };
243
308
 
244
- while (nIdx >= 0) {
245
- prop = nonEnumerableProps[nIdx];
309
+ var implementation = implementation$1;
246
310
 
247
- if (_has(prop, obj) && !contains$1(ks, prop)) {
248
- ks[ks.length] = prop;
249
- }
311
+ var functionBind = Function.prototype.bind || implementation;
250
312
 
251
- nIdx -= 1;
252
- }
253
- }
313
+ var bind$1 = functionBind;
254
314
 
255
- return ks;
256
- });
315
+ var src = bind$1.call(Function.call, Object.prototype.hasOwnProperty);
257
316
 
258
- /**
259
- * Returns a list of all the enumerable own properties of the supplied object.
260
- * Note that the order of the output array is not guaranteed across different
261
- * JS platforms.
262
- *
263
- * @func
264
- * @memberOf R
265
- * @since v0.1.0
266
- * @category Object
267
- * @sig {k: v} -> [v]
268
- * @param {Object} obj The object to extract values from
269
- * @return {Array} An array of the values of the object's own properties.
270
- * @see R.valuesIn, R.keys, R.toPairs
271
- * @example
272
- *
273
- * R.values({a: 1, b: 2, c: 3}); //=> [1, 2, 3]
274
- */
317
+ var undefined$1;
275
318
 
276
- var values =
277
- /*#__PURE__*/
278
- _curry1(function values(obj) {
279
- var props = keys(obj);
280
- var len = props.length;
281
- var vals = [];
282
- var idx = 0;
283
-
284
- while (idx < len) {
285
- vals[idx] = obj[props[idx]];
286
- idx += 1;
287
- }
319
+ var $SyntaxError = SyntaxError;
320
+ var $Function = Function;
321
+ var $TypeError = TypeError;
288
322
 
289
- return vals;
290
- });
323
+ // eslint-disable-next-line consistent-return
324
+ var getEvalledConstructor = function (expressionSyntax) {
325
+ try {
326
+ return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
327
+ } catch (e) {}
328
+ };
291
329
 
292
- /**
293
- * Checks if the input value is `null` or `undefined`.
294
- *
295
- * @func
296
- * @memberOf R
297
- * @since v0.9.0
298
- * @category Type
299
- * @sig * -> Boolean
300
- * @param {*} x The value to test.
301
- * @return {Boolean} `true` if `x` is `undefined` or `null`, otherwise `false`.
302
- * @example
303
- *
304
- * R.isNil(null); //=> true
305
- * R.isNil(undefined); //=> true
306
- * R.isNil(0); //=> false
307
- * R.isNil([]); //=> false
308
- */
330
+ var $gOPD = Object.getOwnPropertyDescriptor;
331
+ if ($gOPD) {
332
+ try {
333
+ $gOPD({}, '');
334
+ } catch (e) {
335
+ $gOPD = null; // this is IE 8, which has a broken gOPD
336
+ }
337
+ }
309
338
 
310
- var isNil =
311
- /*#__PURE__*/
312
- _curry1(function isNil(x) {
313
- return x == null;
314
- });
339
+ var throwTypeError = function () {
340
+ throw new $TypeError();
341
+ };
342
+ var ThrowTypeError = $gOPD
343
+ ? (function () {
344
+ try {
345
+ // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
346
+ arguments.callee; // IE 8 does not throw here
347
+ return throwTypeError;
348
+ } catch (calleeThrows) {
349
+ try {
350
+ // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
351
+ return $gOPD(arguments, 'callee').get;
352
+ } catch (gOPDthrows) {
353
+ return throwTypeError;
354
+ }
355
+ }
356
+ }())
357
+ : throwTypeError;
358
+
359
+ var hasSymbols = hasSymbols$1();
360
+
361
+ var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
362
+
363
+ var needsEval = {};
364
+
365
+ var TypedArray = typeof Uint8Array === 'undefined' ? undefined$1 : getProto(Uint8Array);
366
+
367
+ var INTRINSICS = {
368
+ '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
369
+ '%Array%': Array,
370
+ '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
371
+ '%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined$1,
372
+ '%AsyncFromSyncIteratorPrototype%': undefined$1,
373
+ '%AsyncFunction%': needsEval,
374
+ '%AsyncGenerator%': needsEval,
375
+ '%AsyncGeneratorFunction%': needsEval,
376
+ '%AsyncIteratorPrototype%': needsEval,
377
+ '%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
378
+ '%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
379
+ '%Boolean%': Boolean,
380
+ '%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
381
+ '%Date%': Date,
382
+ '%decodeURI%': decodeURI,
383
+ '%decodeURIComponent%': decodeURIComponent,
384
+ '%encodeURI%': encodeURI,
385
+ '%encodeURIComponent%': encodeURIComponent,
386
+ '%Error%': Error,
387
+ '%eval%': eval, // eslint-disable-line no-eval
388
+ '%EvalError%': EvalError,
389
+ '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
390
+ '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
391
+ '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
392
+ '%Function%': $Function,
393
+ '%GeneratorFunction%': needsEval,
394
+ '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
395
+ '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
396
+ '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
397
+ '%isFinite%': isFinite,
398
+ '%isNaN%': isNaN,
399
+ '%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
400
+ '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
401
+ '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
402
+ '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
403
+ '%Math%': Math,
404
+ '%Number%': Number,
405
+ '%Object%': Object,
406
+ '%parseFloat%': parseFloat,
407
+ '%parseInt%': parseInt,
408
+ '%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
409
+ '%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
410
+ '%RangeError%': RangeError,
411
+ '%ReferenceError%': ReferenceError,
412
+ '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
413
+ '%RegExp%': RegExp,
414
+ '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
415
+ '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
416
+ '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
417
+ '%String%': String,
418
+ '%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined$1,
419
+ '%Symbol%': hasSymbols ? Symbol : undefined$1,
420
+ '%SyntaxError%': $SyntaxError,
421
+ '%ThrowTypeError%': ThrowTypeError,
422
+ '%TypedArray%': TypedArray,
423
+ '%TypeError%': $TypeError,
424
+ '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
425
+ '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
426
+ '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
427
+ '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
428
+ '%URIError%': URIError,
429
+ '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
430
+ '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
431
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
432
+ };
315
433
 
316
- dayjs.extend(weekOfYear);
317
- dayjs.extend(weekday);
318
- dayjs.extend(localeData);
319
- dayjs.extend(utc);
320
- var noop = function noop() {};
434
+ var doEval = function doEval(name) {
435
+ var value;
436
+ if (name === '%AsyncFunction%') {
437
+ value = getEvalledConstructor('async function () {}');
438
+ } else if (name === '%GeneratorFunction%') {
439
+ value = getEvalledConstructor('function* () {}');
440
+ } else if (name === '%AsyncGeneratorFunction%') {
441
+ value = getEvalledConstructor('async function* () {}');
442
+ } else if (name === '%AsyncGenerator%') {
443
+ var fn = doEval('%AsyncGeneratorFunction%');
444
+ if (fn) {
445
+ value = fn.prototype;
446
+ }
447
+ } else if (name === '%AsyncIteratorPrototype%') {
448
+ var gen = doEval('%AsyncGenerator%');
449
+ if (gen) {
450
+ value = getProto(gen.prototype);
451
+ }
452
+ }
321
453
 
322
- function _arrayWithHoles(arr) {
323
- if (Array.isArray(arr)) return arr;
324
- }
454
+ INTRINSICS[name] = value;
325
455
 
326
- function _iterableToArrayLimit(arr, i) {
327
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
328
- if (null != _i) {
329
- var _s,
330
- _e,
331
- _x,
332
- _r,
333
- _arr = [],
334
- _n = !0,
335
- _d = !1;
336
- try {
337
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
338
- if (Object(_i) !== _i) return;
339
- _n = !1;
340
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
341
- } catch (err) {
342
- _d = !0, _e = err;
343
- } finally {
344
- try {
345
- if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
346
- } finally {
347
- if (_d) throw _e;
348
- }
349
- }
350
- return _arr;
351
- }
352
- }
456
+ return value;
457
+ };
353
458
 
354
- function _arrayLikeToArray(arr, len) {
355
- if (len == null || len > arr.length) len = arr.length;
356
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
357
- return arr2;
358
- }
459
+ var LEGACY_ALIASES = {
460
+ '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
461
+ '%ArrayPrototype%': ['Array', 'prototype'],
462
+ '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
463
+ '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
464
+ '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
465
+ '%ArrayProto_values%': ['Array', 'prototype', 'values'],
466
+ '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
467
+ '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
468
+ '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
469
+ '%BooleanPrototype%': ['Boolean', 'prototype'],
470
+ '%DataViewPrototype%': ['DataView', 'prototype'],
471
+ '%DatePrototype%': ['Date', 'prototype'],
472
+ '%ErrorPrototype%': ['Error', 'prototype'],
473
+ '%EvalErrorPrototype%': ['EvalError', 'prototype'],
474
+ '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
475
+ '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
476
+ '%FunctionPrototype%': ['Function', 'prototype'],
477
+ '%Generator%': ['GeneratorFunction', 'prototype'],
478
+ '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
479
+ '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
480
+ '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
481
+ '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
482
+ '%JSONParse%': ['JSON', 'parse'],
483
+ '%JSONStringify%': ['JSON', 'stringify'],
484
+ '%MapPrototype%': ['Map', 'prototype'],
485
+ '%NumberPrototype%': ['Number', 'prototype'],
486
+ '%ObjectPrototype%': ['Object', 'prototype'],
487
+ '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
488
+ '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
489
+ '%PromisePrototype%': ['Promise', 'prototype'],
490
+ '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
491
+ '%Promise_all%': ['Promise', 'all'],
492
+ '%Promise_reject%': ['Promise', 'reject'],
493
+ '%Promise_resolve%': ['Promise', 'resolve'],
494
+ '%RangeErrorPrototype%': ['RangeError', 'prototype'],
495
+ '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
496
+ '%RegExpPrototype%': ['RegExp', 'prototype'],
497
+ '%SetPrototype%': ['Set', 'prototype'],
498
+ '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
499
+ '%StringPrototype%': ['String', 'prototype'],
500
+ '%SymbolPrototype%': ['Symbol', 'prototype'],
501
+ '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
502
+ '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
503
+ '%TypeErrorPrototype%': ['TypeError', 'prototype'],
504
+ '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
505
+ '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
506
+ '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
507
+ '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
508
+ '%URIErrorPrototype%': ['URIError', 'prototype'],
509
+ '%WeakMapPrototype%': ['WeakMap', 'prototype'],
510
+ '%WeakSetPrototype%': ['WeakSet', 'prototype']
511
+ };
359
512
 
360
- function _unsupportedIterableToArray(o, minLen) {
361
- if (!o) return;
362
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
363
- var n = Object.prototype.toString.call(o).slice(8, -1);
364
- if (n === "Object" && o.constructor) n = o.constructor.name;
365
- if (n === "Map" || n === "Set") return Array.from(o);
366
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
367
- }
513
+ var bind = functionBind;
514
+ var hasOwn = src;
515
+ var $concat = bind.call(Function.call, Array.prototype.concat);
516
+ var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
517
+ var $replace = bind.call(Function.call, String.prototype.replace);
518
+ var $strSlice = bind.call(Function.call, String.prototype.slice);
519
+ var $exec = bind.call(Function.call, RegExp.prototype.exec);
520
+
521
+ /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
522
+ var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
523
+ var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
524
+ var stringToPath = function stringToPath(string) {
525
+ var first = $strSlice(string, 0, 1);
526
+ var last = $strSlice(string, -1);
527
+ if (first === '%' && last !== '%') {
528
+ throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
529
+ } else if (last === '%' && first !== '%') {
530
+ throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
531
+ }
532
+ var result = [];
533
+ $replace(string, rePropName, function (match, number, quote, subString) {
534
+ result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
535
+ });
536
+ return result;
537
+ };
538
+ /* end adaptation */
539
+
540
+ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
541
+ var intrinsicName = name;
542
+ var alias;
543
+ if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
544
+ alias = LEGACY_ALIASES[intrinsicName];
545
+ intrinsicName = '%' + alias[0] + '%';
546
+ }
547
+
548
+ if (hasOwn(INTRINSICS, intrinsicName)) {
549
+ var value = INTRINSICS[intrinsicName];
550
+ if (value === needsEval) {
551
+ value = doEval(intrinsicName);
552
+ }
553
+ if (typeof value === 'undefined' && !allowMissing) {
554
+ throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
555
+ }
368
556
 
369
- function _nonIterableRest() {
370
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
371
- }
557
+ return {
558
+ alias: alias,
559
+ name: intrinsicName,
560
+ value: value
561
+ };
562
+ }
372
563
 
373
- function _slicedToArray(arr, i) {
374
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
375
- }
564
+ throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
565
+ };
566
+
567
+ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
568
+ if (typeof name !== 'string' || name.length === 0) {
569
+ throw new $TypeError('intrinsic name must be a non-empty string');
570
+ }
571
+ if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
572
+ throw new $TypeError('"allowMissing" argument must be a boolean');
573
+ }
574
+
575
+ if ($exec(/^%?[^%]*%?$/, name) === null) {
576
+ throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
577
+ }
578
+ var parts = stringToPath(name);
579
+ var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
580
+
581
+ var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
582
+ var intrinsicRealName = intrinsic.name;
583
+ var value = intrinsic.value;
584
+ var skipFurtherCaching = false;
585
+
586
+ var alias = intrinsic.alias;
587
+ if (alias) {
588
+ intrinsicBaseName = alias[0];
589
+ $spliceApply(parts, $concat([0, 1], alias));
590
+ }
591
+
592
+ for (var i = 1, isOwn = true; i < parts.length; i += 1) {
593
+ var part = parts[i];
594
+ var first = $strSlice(part, 0, 1);
595
+ var last = $strSlice(part, -1);
596
+ if (
597
+ (
598
+ (first === '"' || first === "'" || first === '`')
599
+ || (last === '"' || last === "'" || last === '`')
600
+ )
601
+ && first !== last
602
+ ) {
603
+ throw new $SyntaxError('property names with quotes must have matching quotes');
604
+ }
605
+ if (part === 'constructor' || !isOwn) {
606
+ skipFurtherCaching = true;
607
+ }
608
+
609
+ intrinsicBaseName += '.' + part;
610
+ intrinsicRealName = '%' + intrinsicBaseName + '%';
611
+
612
+ if (hasOwn(INTRINSICS, intrinsicRealName)) {
613
+ value = INTRINSICS[intrinsicRealName];
614
+ } else if (value != null) {
615
+ if (!(part in value)) {
616
+ if (!allowMissing) {
617
+ throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
618
+ }
619
+ return void undefined$1;
620
+ }
621
+ if ($gOPD && (i + 1) >= parts.length) {
622
+ var desc = $gOPD(value, part);
623
+ isOwn = !!desc;
624
+
625
+ // By convention, when a data property is converted to an accessor
626
+ // property to emulate a data property that does not suffer from
627
+ // the override mistake, that accessor's getter is marked with
628
+ // an `originalValue` property. Here, when we detect this, we
629
+ // uphold the illusion by pretending to see that original data
630
+ // property, i.e., returning the value rather than the getter
631
+ // itself.
632
+ if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
633
+ value = desc.get;
634
+ } else {
635
+ value = value[part];
636
+ }
637
+ } else {
638
+ isOwn = hasOwn(value, part);
639
+ value = value[part];
640
+ }
641
+
642
+ if (isOwn && !skipFurtherCaching) {
643
+ INTRINSICS[intrinsicRealName] = value;
644
+ }
645
+ }
646
+ }
647
+ return value;
648
+ };
649
+
650
+ var callBind$1 = {exports: {}};
651
+
652
+ (function (module) {
653
+
654
+ var bind = functionBind;
655
+ var GetIntrinsic = getIntrinsic;
656
+
657
+ var $apply = GetIntrinsic('%Function.prototype.apply%');
658
+ var $call = GetIntrinsic('%Function.prototype.call%');
659
+ var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
660
+
661
+ var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
662
+ var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
663
+ var $max = GetIntrinsic('%Math.max%');
664
+
665
+ if ($defineProperty) {
666
+ try {
667
+ $defineProperty({}, 'a', { value: 1 });
668
+ } catch (e) {
669
+ // IE 8 has a broken defineProperty
670
+ $defineProperty = null;
671
+ }
672
+ }
673
+
674
+ module.exports = function callBind(originalFunction) {
675
+ var func = $reflectApply(bind, $call, arguments);
676
+ if ($gOPD && $defineProperty) {
677
+ var desc = $gOPD(func, 'length');
678
+ if (desc.configurable) {
679
+ // original length, plus the receiver, minus any additional arguments (after the receiver)
680
+ $defineProperty(
681
+ func,
682
+ 'length',
683
+ { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
684
+ );
685
+ }
686
+ }
687
+ return func;
688
+ };
689
+
690
+ var applyBind = function applyBind() {
691
+ return $reflectApply(bind, $apply, arguments);
692
+ };
693
+
694
+ if ($defineProperty) {
695
+ $defineProperty(module.exports, 'apply', { value: applyBind });
696
+ } else {
697
+ module.exports.apply = applyBind;
698
+ }
699
+ } (callBind$1));
700
+
701
+ var GetIntrinsic$1 = getIntrinsic;
702
+
703
+ var callBind = callBind$1.exports;
704
+
705
+ var $indexOf = callBind(GetIntrinsic$1('String.prototype.indexOf'));
706
+
707
+ var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
708
+ var intrinsic = GetIntrinsic$1(name, !!allowMissing);
709
+ if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
710
+ return callBind(intrinsic);
711
+ }
712
+ return intrinsic;
713
+ };
714
+
715
+ var GetIntrinsic = getIntrinsic;
716
+ var callBound = callBound$1;
717
+
718
+ GetIntrinsic('%TypeError%');
719
+ GetIntrinsic('%WeakMap%', true);
720
+ GetIntrinsic('%Map%', true);
721
+
722
+ callBound('WeakMap.prototype.get', true);
723
+ callBound('WeakMap.prototype.set', true);
724
+ callBound('WeakMap.prototype.has', true);
725
+ callBound('Map.prototype.get', true);
726
+ callBound('Map.prototype.set', true);
727
+ callBound('Map.prototype.has', true);
728
+
729
+ ((function () {
730
+ var array = [];
731
+ for (var i = 0; i < 256; ++i) {
732
+ array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
733
+ }
734
+
735
+ return array;
736
+ })());
737
+
738
+ dayjs.extend(weekOfYear);
739
+ dayjs.extend(weekday);
740
+ dayjs.extend(localeData);
741
+ dayjs.extend(utc);
742
+ var noop = function noop() {};
376
743
 
377
744
  function _extends() {
378
745
  _extends = Object.assign ? Object.assign.bind() : function (target) {
@@ -4337,21 +4704,6 @@ var Tooltip = function Tooltip(_ref) {
4337
4704
  }, localProps, otherProps), /*#__PURE__*/React.isValidElement(children) ? children : /*#__PURE__*/React.createElement("span", null, children));
4338
4705
  };
4339
4706
 
4340
- function _defineProperty(obj, key, value) {
4341
- key = _toPropertyKey(key);
4342
- if (key in obj) {
4343
- Object.defineProperty(obj, key, {
4344
- value: value,
4345
- enumerable: true,
4346
- configurable: true,
4347
- writable: true
4348
- });
4349
- } else {
4350
- obj[key] = value;
4351
- }
4352
- return obj;
4353
- }
4354
-
4355
4707
  var _excluded$4 = ["style", "weight", "lineHeight", "component", "children", "textTransform", "className"];
4356
4708
  var FONT_WEIGHTS = {
4357
4709
  thin: "thin",