@bigbinary/neetoui 6.5.7 → 6.5.9

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.
Files changed (50) hide show
  1. package/{formik.js → dist/TreeSelect-54c59138.js} +336 -5933
  2. package/dist/TreeSelect-54c59138.js.map +1 -0
  3. package/{layouts.js → dist/Typography-6b2170d4.js} +1883 -730
  4. package/dist/Typography-6b2170d4.js.map +1 -0
  5. package/{formik.cjs.js → dist/cjs/TreeSelect-40898804.js} +555 -6139
  6. package/dist/cjs/TreeSelect-40898804.js.map +1 -0
  7. package/{layouts.cjs.js → dist/cjs/Typography-3f90f925.js} +1905 -727
  8. package/dist/cjs/Typography-3f90f925.js.map +1 -0
  9. package/dist/cjs/createClass-ca103cfb.js +57 -0
  10. package/dist/cjs/createClass-ca103cfb.js.map +1 -0
  11. package/dist/cjs/formik.js +624 -0
  12. package/dist/cjs/formik.js.map +1 -0
  13. package/dist/cjs/index-099304bb.js +104 -0
  14. package/dist/cjs/index-099304bb.js.map +1 -0
  15. package/dist/cjs/index.js +13829 -0
  16. package/dist/cjs/index.js.map +1 -0
  17. package/dist/cjs/layouts.js +375 -0
  18. package/dist/cjs/layouts.js.map +1 -0
  19. package/dist/cjs/managers.js +11 -0
  20. package/dist/cjs/managers.js.map +1 -0
  21. package/{managers.cjs.js → dist/cjs/overlayManager-a0827ae7.js} +4 -54
  22. package/dist/cjs/overlayManager-a0827ae7.js.map +1 -0
  23. package/dist/createClass-27bd48bc.js +52 -0
  24. package/dist/createClass-27bd48bc.js.map +1 -0
  25. package/dist/formik.js +604 -0
  26. package/dist/formik.js.map +1 -0
  27. package/dist/index-ed90c85d.js +98 -0
  28. package/dist/index-ed90c85d.js.map +1 -0
  29. package/dist/index.css +4 -0
  30. package/dist/index.js +13764 -0
  31. package/dist/index.js.map +1 -0
  32. package/dist/layouts.js +367 -0
  33. package/dist/layouts.js.map +1 -0
  34. package/dist/managers.js +3 -0
  35. package/dist/managers.js.map +1 -0
  36. package/{managers.js → dist/overlayManager-4d5be56b.js} +3 -51
  37. package/dist/overlayManager-4d5be56b.js.map +1 -0
  38. package/index.d.ts +2 -0
  39. package/package.json +13 -17
  40. package/formik.cjs.js.map +0 -1
  41. package/formik.js.map +0 -1
  42. package/index.cjs.js +0 -42484
  43. package/index.cjs.js.map +0 -1
  44. package/index.js +0 -42414
  45. package/index.js.map +0 -1
  46. package/layouts.cjs.js.map +0 -1
  47. package/layouts.js.map +0 -1
  48. package/managers.cjs.js.map +0 -1
  49. package/managers.js.map +0 -1
  50. /package/{index.css → dist/cjs/index.css} +0 -0
@@ -1,10 +1,79 @@
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';
1
+ import { a as _toPropertyKey, b as _createClass, c as _classCallCheck } from './createClass-27bd48bc.js';
2
+ import { preprocessForSerialization } from '@bigbinary/neeto-cist';
3
+ import require$$0 from 'util';
4
+ import { equals, complement, toPairs, pipe, omit, isEmpty } from 'ramda';
5
+ import React__default, { forwardRef as forwardRef$1, cloneElement, useState, useLayoutEffect, useEffect, useRef } from 'react';
4
6
  import { createPortal } from 'react-dom';
5
- import { AppSwitcher as AppSwitcher$1, Help, Book, Keyboard, ChatEmpty, Gift } from '@bigbinary/neeto-icons';
6
- import { Neeto } from '@bigbinary/neeto-icons/logos';
7
- import { useLocation, NavLink } from 'react-router-dom';
7
+
8
+ function _defineProperty(obj, key, value) {
9
+ key = _toPropertyKey(key);
10
+ if (key in obj) {
11
+ Object.defineProperty(obj, key, {
12
+ value: value,
13
+ enumerable: true,
14
+ configurable: true,
15
+ writable: true
16
+ });
17
+ } else {
18
+ obj[key] = value;
19
+ }
20
+ return obj;
21
+ }
22
+
23
+ function _arrayWithHoles(arr) {
24
+ if (Array.isArray(arr)) return arr;
25
+ }
26
+
27
+ function _iterableToArrayLimit(arr, i) {
28
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
29
+ if (null != _i) {
30
+ var _s,
31
+ _e,
32
+ _x,
33
+ _r,
34
+ _arr = [],
35
+ _n = !0,
36
+ _d = !1;
37
+ try {
38
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
39
+ if (Object(_i) !== _i) return;
40
+ _n = !1;
41
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
42
+ } catch (err) {
43
+ _d = !0, _e = err;
44
+ } finally {
45
+ try {
46
+ if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
47
+ } finally {
48
+ if (_d) throw _e;
49
+ }
50
+ }
51
+ return _arr;
52
+ }
53
+ }
54
+
55
+ function _arrayLikeToArray(arr, len) {
56
+ if (len == null || len > arr.length) len = arr.length;
57
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
58
+ return arr2;
59
+ }
60
+
61
+ function _unsupportedIterableToArray(o, minLen) {
62
+ if (!o) return;
63
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
64
+ var n = Object.prototype.toString.call(o).slice(8, -1);
65
+ if (n === "Object" && o.constructor) n = o.constructor.name;
66
+ if (n === "Map" || n === "Set") return Array.from(o);
67
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
68
+ }
69
+
70
+ function _nonIterableRest() {
71
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
72
+ }
73
+
74
+ function _slicedToArray(arr, i) {
75
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
76
+ }
8
77
 
9
78
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
10
79
 
@@ -12,6 +81,27 @@ function getDefaultExportFromCjs (x) {
12
81
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
13
82
  }
14
83
 
84
+ function getAugmentedNamespace(n) {
85
+ var f = n.default;
86
+ if (typeof f == "function") {
87
+ var a = function () {
88
+ return f.apply(this, arguments);
89
+ };
90
+ a.prototype = f.prototype;
91
+ } else a = {};
92
+ Object.defineProperty(a, '__esModule', {value: true});
93
+ Object.keys(n).forEach(function (k) {
94
+ var d = Object.getOwnPropertyDescriptor(n, k);
95
+ Object.defineProperty(a, k, d.get ? d : {
96
+ enumerable: true,
97
+ get: function () {
98
+ return n[k];
99
+ }
100
+ });
101
+ });
102
+ return a;
103
+ }
104
+
15
105
  var classnames$1 = {exports: {}};
16
106
 
17
107
  /*!
@@ -66,100 +156,48 @@ var classnames$1 = {exports: {}};
66
156
 
67
157
  var classnames = classnames$1.exports;
68
158
 
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;
159
+ function _extends() {
160
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
161
+ for (var i = 1; i < arguments.length; i++) {
162
+ var source = arguments[i];
163
+ for (var key in source) {
164
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
165
+ target[key] = source[key];
166
+ }
95
167
  }
96
168
  }
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
-
124
- function _typeof(obj) {
125
- "@babel/helpers - typeof";
126
-
127
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
128
- return typeof obj;
129
- } : function (obj) {
130
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
131
- }, _typeof(obj);
169
+ return target;
170
+ };
171
+ return _extends.apply(this, arguments);
132
172
  }
133
173
 
134
- function _toPrimitive(input, hint) {
135
- if (_typeof(input) !== "object" || input === null) return input;
136
- var prim = input[Symbol.toPrimitive];
137
- if (prim !== undefined) {
138
- var res = prim.call(input, hint || "default");
139
- if (_typeof(res) !== "object") return res;
140
- throw new TypeError("@@toPrimitive must return a primitive value.");
174
+ function _objectWithoutPropertiesLoose$1(source, excluded) {
175
+ if (source == null) return {};
176
+ var target = {};
177
+ var sourceKeys = Object.keys(source);
178
+ var key, i;
179
+ for (i = 0; i < sourceKeys.length; i++) {
180
+ key = sourceKeys[i];
181
+ if (excluded.indexOf(key) >= 0) continue;
182
+ target[key] = source[key];
141
183
  }
142
- return (hint === "string" ? String : Number)(input);
143
- }
144
-
145
- function _toPropertyKey(arg) {
146
- var key = _toPrimitive(arg, "string");
147
- return _typeof(key) === "symbol" ? key : String(key);
184
+ return target;
148
185
  }
149
186
 
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;
187
+ function _objectWithoutProperties(source, excluded) {
188
+ if (source == null) return {};
189
+ var target = _objectWithoutPropertiesLoose$1(source, excluded);
190
+ var key, i;
191
+ if (Object.getOwnPropertySymbols) {
192
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
193
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
194
+ key = sourceSymbolKeys[i];
195
+ if (excluded.indexOf(key) >= 0) continue;
196
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
197
+ target[key] = source[key];
198
+ }
161
199
  }
162
- return obj;
200
+ return target;
163
201
  }
164
202
 
165
203
  var dayjs_min = {exports: {}};
@@ -259,12 +297,12 @@ var hasSymbols$1 = function hasNativeSymbols() {
259
297
 
260
298
  var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
261
299
  var slice = Array.prototype.slice;
262
- var toStr = Object.prototype.toString;
300
+ var toStr$1 = Object.prototype.toString;
263
301
  var funcType = '[object Function]';
264
302
 
265
303
  var implementation$1 = function bind(that) {
266
304
  var target = this;
267
- if (typeof target !== 'function' || toStr.call(target) !== funcType) {
305
+ if (typeof target !== 'function' || toStr$1.call(target) !== funcType) {
268
306
  throw new TypeError(ERROR_MESSAGE + target);
269
307
  }
270
308
  var args = slice.call(arguments, 1);
@@ -318,7 +356,7 @@ var undefined$1;
318
356
 
319
357
  var $SyntaxError = SyntaxError;
320
358
  var $Function = Function;
321
- var $TypeError = TypeError;
359
+ var $TypeError$1 = TypeError;
322
360
 
323
361
  // eslint-disable-next-line consistent-return
324
362
  var getEvalledConstructor = function (expressionSyntax) {
@@ -337,7 +375,7 @@ if ($gOPD) {
337
375
  }
338
376
 
339
377
  var throwTypeError = function () {
340
- throw new $TypeError();
378
+ throw new $TypeError$1();
341
379
  };
342
380
  var ThrowTypeError = $gOPD
343
381
  ? (function () {
@@ -420,7 +458,7 @@ var INTRINSICS = {
420
458
  '%SyntaxError%': $SyntaxError,
421
459
  '%ThrowTypeError%': ThrowTypeError,
422
460
  '%TypedArray%': TypedArray,
423
- '%TypeError%': $TypeError,
461
+ '%TypeError%': $TypeError$1,
424
462
  '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
425
463
  '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
426
464
  '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
@@ -511,10 +549,10 @@ var LEGACY_ALIASES = {
511
549
  };
512
550
 
513
551
  var bind = functionBind;
514
- var hasOwn = src;
515
- var $concat = bind.call(Function.call, Array.prototype.concat);
552
+ var hasOwn$1 = src;
553
+ var $concat$1 = bind.call(Function.call, Array.prototype.concat);
516
554
  var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
517
- var $replace = bind.call(Function.call, String.prototype.replace);
555
+ var $replace$1 = bind.call(Function.call, String.prototype.replace);
518
556
  var $strSlice = bind.call(Function.call, String.prototype.slice);
519
557
  var $exec = bind.call(Function.call, RegExp.prototype.exec);
520
558
 
@@ -530,8 +568,8 @@ var stringToPath = function stringToPath(string) {
530
568
  throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
531
569
  }
532
570
  var result = [];
533
- $replace(string, rePropName, function (match, number, quote, subString) {
534
- result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
571
+ $replace$1(string, rePropName, function (match, number, quote, subString) {
572
+ result[result.length] = quote ? $replace$1(subString, reEscapeChar, '$1') : number || match;
535
573
  });
536
574
  return result;
537
575
  };
@@ -540,18 +578,18 @@ var stringToPath = function stringToPath(string) {
540
578
  var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
541
579
  var intrinsicName = name;
542
580
  var alias;
543
- if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
581
+ if (hasOwn$1(LEGACY_ALIASES, intrinsicName)) {
544
582
  alias = LEGACY_ALIASES[intrinsicName];
545
583
  intrinsicName = '%' + alias[0] + '%';
546
584
  }
547
585
 
548
- if (hasOwn(INTRINSICS, intrinsicName)) {
586
+ if (hasOwn$1(INTRINSICS, intrinsicName)) {
549
587
  var value = INTRINSICS[intrinsicName];
550
588
  if (value === needsEval) {
551
589
  value = doEval(intrinsicName);
552
590
  }
553
591
  if (typeof value === 'undefined' && !allowMissing) {
554
- throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
592
+ throw new $TypeError$1('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
555
593
  }
556
594
 
557
595
  return {
@@ -566,10 +604,10 @@ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
566
604
 
567
605
  var getIntrinsic = function GetIntrinsic(name, allowMissing) {
568
606
  if (typeof name !== 'string' || name.length === 0) {
569
- throw new $TypeError('intrinsic name must be a non-empty string');
607
+ throw new $TypeError$1('intrinsic name must be a non-empty string');
570
608
  }
571
609
  if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
572
- throw new $TypeError('"allowMissing" argument must be a boolean');
610
+ throw new $TypeError$1('"allowMissing" argument must be a boolean');
573
611
  }
574
612
 
575
613
  if ($exec(/^%?[^%]*%?$/, name) === null) {
@@ -583,207 +621,1767 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
583
621
  var value = intrinsic.value;
584
622
  var skipFurtherCaching = false;
585
623
 
586
- var alias = intrinsic.alias;
587
- if (alias) {
588
- intrinsicBaseName = alias[0];
589
- $spliceApply(parts, $concat([0, 1], alias));
590
- }
624
+ var alias = intrinsic.alias;
625
+ if (alias) {
626
+ intrinsicBaseName = alias[0];
627
+ $spliceApply(parts, $concat$1([0, 1], alias));
628
+ }
629
+
630
+ for (var i = 1, isOwn = true; i < parts.length; i += 1) {
631
+ var part = parts[i];
632
+ var first = $strSlice(part, 0, 1);
633
+ var last = $strSlice(part, -1);
634
+ if (
635
+ (
636
+ (first === '"' || first === "'" || first === '`')
637
+ || (last === '"' || last === "'" || last === '`')
638
+ )
639
+ && first !== last
640
+ ) {
641
+ throw new $SyntaxError('property names with quotes must have matching quotes');
642
+ }
643
+ if (part === 'constructor' || !isOwn) {
644
+ skipFurtherCaching = true;
645
+ }
646
+
647
+ intrinsicBaseName += '.' + part;
648
+ intrinsicRealName = '%' + intrinsicBaseName + '%';
649
+
650
+ if (hasOwn$1(INTRINSICS, intrinsicRealName)) {
651
+ value = INTRINSICS[intrinsicRealName];
652
+ } else if (value != null) {
653
+ if (!(part in value)) {
654
+ if (!allowMissing) {
655
+ throw new $TypeError$1('base intrinsic for ' + name + ' exists, but the property is not available.');
656
+ }
657
+ return void undefined$1;
658
+ }
659
+ if ($gOPD && (i + 1) >= parts.length) {
660
+ var desc = $gOPD(value, part);
661
+ isOwn = !!desc;
662
+
663
+ // By convention, when a data property is converted to an accessor
664
+ // property to emulate a data property that does not suffer from
665
+ // the override mistake, that accessor's getter is marked with
666
+ // an `originalValue` property. Here, when we detect this, we
667
+ // uphold the illusion by pretending to see that original data
668
+ // property, i.e., returning the value rather than the getter
669
+ // itself.
670
+ if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
671
+ value = desc.get;
672
+ } else {
673
+ value = value[part];
674
+ }
675
+ } else {
676
+ isOwn = hasOwn$1(value, part);
677
+ value = value[part];
678
+ }
679
+
680
+ if (isOwn && !skipFurtherCaching) {
681
+ INTRINSICS[intrinsicRealName] = value;
682
+ }
683
+ }
684
+ }
685
+ return value;
686
+ };
687
+
688
+ var callBind$1 = {exports: {}};
689
+
690
+ (function (module) {
691
+
692
+ var bind = functionBind;
693
+ var GetIntrinsic = getIntrinsic;
694
+
695
+ var $apply = GetIntrinsic('%Function.prototype.apply%');
696
+ var $call = GetIntrinsic('%Function.prototype.call%');
697
+ var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
698
+
699
+ var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
700
+ var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
701
+ var $max = GetIntrinsic('%Math.max%');
702
+
703
+ if ($defineProperty) {
704
+ try {
705
+ $defineProperty({}, 'a', { value: 1 });
706
+ } catch (e) {
707
+ // IE 8 has a broken defineProperty
708
+ $defineProperty = null;
709
+ }
710
+ }
711
+
712
+ module.exports = function callBind(originalFunction) {
713
+ var func = $reflectApply(bind, $call, arguments);
714
+ if ($gOPD && $defineProperty) {
715
+ var desc = $gOPD(func, 'length');
716
+ if (desc.configurable) {
717
+ // original length, plus the receiver, minus any additional arguments (after the receiver)
718
+ $defineProperty(
719
+ func,
720
+ 'length',
721
+ { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
722
+ );
723
+ }
724
+ }
725
+ return func;
726
+ };
727
+
728
+ var applyBind = function applyBind() {
729
+ return $reflectApply(bind, $apply, arguments);
730
+ };
731
+
732
+ if ($defineProperty) {
733
+ $defineProperty(module.exports, 'apply', { value: applyBind });
734
+ } else {
735
+ module.exports.apply = applyBind;
736
+ }
737
+ } (callBind$1));
738
+
739
+ var GetIntrinsic$1 = getIntrinsic;
740
+
741
+ var callBind = callBind$1.exports;
742
+
743
+ var $indexOf = callBind(GetIntrinsic$1('String.prototype.indexOf'));
744
+
745
+ var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
746
+ var intrinsic = GetIntrinsic$1(name, !!allowMissing);
747
+ if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
748
+ return callBind(intrinsic);
749
+ }
750
+ return intrinsic;
751
+ };
752
+
753
+ var util_inspect = require$$0.inspect;
754
+
755
+ var hasMap = typeof Map === 'function' && Map.prototype;
756
+ var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
757
+ var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
758
+ var mapForEach = hasMap && Map.prototype.forEach;
759
+ var hasSet = typeof Set === 'function' && Set.prototype;
760
+ var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
761
+ var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
762
+ var setForEach = hasSet && Set.prototype.forEach;
763
+ var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
764
+ var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
765
+ var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
766
+ var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
767
+ var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
768
+ var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
769
+ var booleanValueOf = Boolean.prototype.valueOf;
770
+ var objectToString = Object.prototype.toString;
771
+ var functionToString = Function.prototype.toString;
772
+ var $match = String.prototype.match;
773
+ var $slice = String.prototype.slice;
774
+ var $replace = String.prototype.replace;
775
+ var $toUpperCase = String.prototype.toUpperCase;
776
+ var $toLowerCase = String.prototype.toLowerCase;
777
+ var $test = RegExp.prototype.test;
778
+ var $concat = Array.prototype.concat;
779
+ var $join = Array.prototype.join;
780
+ var $arrSlice = Array.prototype.slice;
781
+ var $floor = Math.floor;
782
+ var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
783
+ var gOPS = Object.getOwnPropertySymbols;
784
+ var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
785
+ var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
786
+ // ie, `has-tostringtag/shams
787
+ var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
788
+ ? Symbol.toStringTag
789
+ : null;
790
+ var isEnumerable = Object.prototype.propertyIsEnumerable;
791
+
792
+ var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
793
+ [].__proto__ === Array.prototype // eslint-disable-line no-proto
794
+ ? function (O) {
795
+ return O.__proto__; // eslint-disable-line no-proto
796
+ }
797
+ : null
798
+ );
799
+
800
+ function addNumericSeparator(num, str) {
801
+ if (
802
+ num === Infinity
803
+ || num === -Infinity
804
+ || num !== num
805
+ || (num && num > -1000 && num < 1000)
806
+ || $test.call(/e/, str)
807
+ ) {
808
+ return str;
809
+ }
810
+ var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
811
+ if (typeof num === 'number') {
812
+ var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
813
+ if (int !== num) {
814
+ var intStr = String(int);
815
+ var dec = $slice.call(str, intStr.length + 1);
816
+ return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
817
+ }
818
+ }
819
+ return $replace.call(str, sepRegex, '$&_');
820
+ }
821
+
822
+ var utilInspect = util_inspect;
823
+ var inspectCustom = utilInspect.custom;
824
+ var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
825
+
826
+ var objectInspect = function inspect_(obj, options, depth, seen) {
827
+ var opts = options || {};
828
+
829
+ if (has$3(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
830
+ throw new TypeError('option "quoteStyle" must be "single" or "double"');
831
+ }
832
+ if (
833
+ has$3(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
834
+ ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
835
+ : opts.maxStringLength !== null
836
+ )
837
+ ) {
838
+ throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
839
+ }
840
+ var customInspect = has$3(opts, 'customInspect') ? opts.customInspect : true;
841
+ if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
842
+ throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
843
+ }
844
+
845
+ if (
846
+ has$3(opts, 'indent')
847
+ && opts.indent !== null
848
+ && opts.indent !== '\t'
849
+ && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
850
+ ) {
851
+ throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
852
+ }
853
+ if (has$3(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
854
+ throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
855
+ }
856
+ var numericSeparator = opts.numericSeparator;
857
+
858
+ if (typeof obj === 'undefined') {
859
+ return 'undefined';
860
+ }
861
+ if (obj === null) {
862
+ return 'null';
863
+ }
864
+ if (typeof obj === 'boolean') {
865
+ return obj ? 'true' : 'false';
866
+ }
867
+
868
+ if (typeof obj === 'string') {
869
+ return inspectString(obj, opts);
870
+ }
871
+ if (typeof obj === 'number') {
872
+ if (obj === 0) {
873
+ return Infinity / obj > 0 ? '0' : '-0';
874
+ }
875
+ var str = String(obj);
876
+ return numericSeparator ? addNumericSeparator(obj, str) : str;
877
+ }
878
+ if (typeof obj === 'bigint') {
879
+ var bigIntStr = String(obj) + 'n';
880
+ return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
881
+ }
882
+
883
+ var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
884
+ if (typeof depth === 'undefined') { depth = 0; }
885
+ if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
886
+ return isArray$3(obj) ? '[Array]' : '[Object]';
887
+ }
888
+
889
+ var indent = getIndent(opts, depth);
890
+
891
+ if (typeof seen === 'undefined') {
892
+ seen = [];
893
+ } else if (indexOf(seen, obj) >= 0) {
894
+ return '[Circular]';
895
+ }
896
+
897
+ function inspect(value, from, noIndent) {
898
+ if (from) {
899
+ seen = $arrSlice.call(seen);
900
+ seen.push(from);
901
+ }
902
+ if (noIndent) {
903
+ var newOpts = {
904
+ depth: opts.depth
905
+ };
906
+ if (has$3(opts, 'quoteStyle')) {
907
+ newOpts.quoteStyle = opts.quoteStyle;
908
+ }
909
+ return inspect_(value, newOpts, depth + 1, seen);
910
+ }
911
+ return inspect_(value, opts, depth + 1, seen);
912
+ }
913
+
914
+ if (typeof obj === 'function' && !isRegExp$1(obj)) { // in older engines, regexes are callable
915
+ var name = nameOf(obj);
916
+ var keys = arrObjKeys(obj, inspect);
917
+ return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
918
+ }
919
+ if (isSymbol(obj)) {
920
+ var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
921
+ return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
922
+ }
923
+ if (isElement$2(obj)) {
924
+ var s = '<' + $toLowerCase.call(String(obj.nodeName));
925
+ var attrs = obj.attributes || [];
926
+ for (var i = 0; i < attrs.length; i++) {
927
+ s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
928
+ }
929
+ s += '>';
930
+ if (obj.childNodes && obj.childNodes.length) { s += '...'; }
931
+ s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
932
+ return s;
933
+ }
934
+ if (isArray$3(obj)) {
935
+ if (obj.length === 0) { return '[]'; }
936
+ var xs = arrObjKeys(obj, inspect);
937
+ if (indent && !singleLineValues(xs)) {
938
+ return '[' + indentedJoin(xs, indent) + ']';
939
+ }
940
+ return '[ ' + $join.call(xs, ', ') + ' ]';
941
+ }
942
+ if (isError(obj)) {
943
+ var parts = arrObjKeys(obj, inspect);
944
+ if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
945
+ return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
946
+ }
947
+ if (parts.length === 0) { return '[' + String(obj) + ']'; }
948
+ return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
949
+ }
950
+ if (typeof obj === 'object' && customInspect) {
951
+ if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
952
+ return utilInspect(obj, { depth: maxDepth - depth });
953
+ } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
954
+ return obj.inspect();
955
+ }
956
+ }
957
+ if (isMap(obj)) {
958
+ var mapParts = [];
959
+ mapForEach.call(obj, function (value, key) {
960
+ mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
961
+ });
962
+ return collectionOf('Map', mapSize.call(obj), mapParts, indent);
963
+ }
964
+ if (isSet(obj)) {
965
+ var setParts = [];
966
+ setForEach.call(obj, function (value) {
967
+ setParts.push(inspect(value, obj));
968
+ });
969
+ return collectionOf('Set', setSize.call(obj), setParts, indent);
970
+ }
971
+ if (isWeakMap(obj)) {
972
+ return weakCollectionOf('WeakMap');
973
+ }
974
+ if (isWeakSet(obj)) {
975
+ return weakCollectionOf('WeakSet');
976
+ }
977
+ if (isWeakRef(obj)) {
978
+ return weakCollectionOf('WeakRef');
979
+ }
980
+ if (isNumber(obj)) {
981
+ return markBoxed(inspect(Number(obj)));
982
+ }
983
+ if (isBigInt(obj)) {
984
+ return markBoxed(inspect(bigIntValueOf.call(obj)));
985
+ }
986
+ if (isBoolean(obj)) {
987
+ return markBoxed(booleanValueOf.call(obj));
988
+ }
989
+ if (isString(obj)) {
990
+ return markBoxed(inspect(String(obj)));
991
+ }
992
+ if (!isDate(obj) && !isRegExp$1(obj)) {
993
+ var ys = arrObjKeys(obj, inspect);
994
+ var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
995
+ var protoTag = obj instanceof Object ? '' : 'null prototype';
996
+ var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
997
+ var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
998
+ var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
999
+ if (ys.length === 0) { return tag + '{}'; }
1000
+ if (indent) {
1001
+ return tag + '{' + indentedJoin(ys, indent) + '}';
1002
+ }
1003
+ return tag + '{ ' + $join.call(ys, ', ') + ' }';
1004
+ }
1005
+ return String(obj);
1006
+ };
1007
+
1008
+ function wrapQuotes(s, defaultStyle, opts) {
1009
+ var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
1010
+ return quoteChar + s + quoteChar;
1011
+ }
1012
+
1013
+ function quote(s) {
1014
+ return $replace.call(String(s), /"/g, '&quot;');
1015
+ }
1016
+
1017
+ function isArray$3(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1018
+ function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1019
+ function isRegExp$1(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1020
+ function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1021
+ function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1022
+ function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1023
+ function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1024
+
1025
+ // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
1026
+ function isSymbol(obj) {
1027
+ if (hasShammedSymbols) {
1028
+ return obj && typeof obj === 'object' && obj instanceof Symbol;
1029
+ }
1030
+ if (typeof obj === 'symbol') {
1031
+ return true;
1032
+ }
1033
+ if (!obj || typeof obj !== 'object' || !symToString) {
1034
+ return false;
1035
+ }
1036
+ try {
1037
+ symToString.call(obj);
1038
+ return true;
1039
+ } catch (e) {}
1040
+ return false;
1041
+ }
1042
+
1043
+ function isBigInt(obj) {
1044
+ if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
1045
+ return false;
1046
+ }
1047
+ try {
1048
+ bigIntValueOf.call(obj);
1049
+ return true;
1050
+ } catch (e) {}
1051
+ return false;
1052
+ }
1053
+
1054
+ var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
1055
+ function has$3(obj, key) {
1056
+ return hasOwn.call(obj, key);
1057
+ }
1058
+
1059
+ function toStr(obj) {
1060
+ return objectToString.call(obj);
1061
+ }
1062
+
1063
+ function nameOf(f) {
1064
+ if (f.name) { return f.name; }
1065
+ var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
1066
+ if (m) { return m[1]; }
1067
+ return null;
1068
+ }
1069
+
1070
+ function indexOf(xs, x) {
1071
+ if (xs.indexOf) { return xs.indexOf(x); }
1072
+ for (var i = 0, l = xs.length; i < l; i++) {
1073
+ if (xs[i] === x) { return i; }
1074
+ }
1075
+ return -1;
1076
+ }
1077
+
1078
+ function isMap(x) {
1079
+ if (!mapSize || !x || typeof x !== 'object') {
1080
+ return false;
1081
+ }
1082
+ try {
1083
+ mapSize.call(x);
1084
+ try {
1085
+ setSize.call(x);
1086
+ } catch (s) {
1087
+ return true;
1088
+ }
1089
+ return x instanceof Map; // core-js workaround, pre-v2.5.0
1090
+ } catch (e) {}
1091
+ return false;
1092
+ }
1093
+
1094
+ function isWeakMap(x) {
1095
+ if (!weakMapHas || !x || typeof x !== 'object') {
1096
+ return false;
1097
+ }
1098
+ try {
1099
+ weakMapHas.call(x, weakMapHas);
1100
+ try {
1101
+ weakSetHas.call(x, weakSetHas);
1102
+ } catch (s) {
1103
+ return true;
1104
+ }
1105
+ return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
1106
+ } catch (e) {}
1107
+ return false;
1108
+ }
1109
+
1110
+ function isWeakRef(x) {
1111
+ if (!weakRefDeref || !x || typeof x !== 'object') {
1112
+ return false;
1113
+ }
1114
+ try {
1115
+ weakRefDeref.call(x);
1116
+ return true;
1117
+ } catch (e) {}
1118
+ return false;
1119
+ }
1120
+
1121
+ function isSet(x) {
1122
+ if (!setSize || !x || typeof x !== 'object') {
1123
+ return false;
1124
+ }
1125
+ try {
1126
+ setSize.call(x);
1127
+ try {
1128
+ mapSize.call(x);
1129
+ } catch (m) {
1130
+ return true;
1131
+ }
1132
+ return x instanceof Set; // core-js workaround, pre-v2.5.0
1133
+ } catch (e) {}
1134
+ return false;
1135
+ }
1136
+
1137
+ function isWeakSet(x) {
1138
+ if (!weakSetHas || !x || typeof x !== 'object') {
1139
+ return false;
1140
+ }
1141
+ try {
1142
+ weakSetHas.call(x, weakSetHas);
1143
+ try {
1144
+ weakMapHas.call(x, weakMapHas);
1145
+ } catch (s) {
1146
+ return true;
1147
+ }
1148
+ return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
1149
+ } catch (e) {}
1150
+ return false;
1151
+ }
1152
+
1153
+ function isElement$2(x) {
1154
+ if (!x || typeof x !== 'object') { return false; }
1155
+ if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
1156
+ return true;
1157
+ }
1158
+ return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
1159
+ }
1160
+
1161
+ function inspectString(str, opts) {
1162
+ if (str.length > opts.maxStringLength) {
1163
+ var remaining = str.length - opts.maxStringLength;
1164
+ var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
1165
+ return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
1166
+ }
1167
+ // eslint-disable-next-line no-control-regex
1168
+ var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
1169
+ return wrapQuotes(s, 'single', opts);
1170
+ }
1171
+
1172
+ function lowbyte(c) {
1173
+ var n = c.charCodeAt(0);
1174
+ var x = {
1175
+ 8: 'b',
1176
+ 9: 't',
1177
+ 10: 'n',
1178
+ 12: 'f',
1179
+ 13: 'r'
1180
+ }[n];
1181
+ if (x) { return '\\' + x; }
1182
+ return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
1183
+ }
1184
+
1185
+ function markBoxed(str) {
1186
+ return 'Object(' + str + ')';
1187
+ }
1188
+
1189
+ function weakCollectionOf(type) {
1190
+ return type + ' { ? }';
1191
+ }
1192
+
1193
+ function collectionOf(type, size, entries, indent) {
1194
+ var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
1195
+ return type + ' (' + size + ') {' + joinedEntries + '}';
1196
+ }
1197
+
1198
+ function singleLineValues(xs) {
1199
+ for (var i = 0; i < xs.length; i++) {
1200
+ if (indexOf(xs[i], '\n') >= 0) {
1201
+ return false;
1202
+ }
1203
+ }
1204
+ return true;
1205
+ }
1206
+
1207
+ function getIndent(opts, depth) {
1208
+ var baseIndent;
1209
+ if (opts.indent === '\t') {
1210
+ baseIndent = '\t';
1211
+ } else if (typeof opts.indent === 'number' && opts.indent > 0) {
1212
+ baseIndent = $join.call(Array(opts.indent + 1), ' ');
1213
+ } else {
1214
+ return null;
1215
+ }
1216
+ return {
1217
+ base: baseIndent,
1218
+ prev: $join.call(Array(depth + 1), baseIndent)
1219
+ };
1220
+ }
1221
+
1222
+ function indentedJoin(xs, indent) {
1223
+ if (xs.length === 0) { return ''; }
1224
+ var lineJoiner = '\n' + indent.prev + indent.base;
1225
+ return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
1226
+ }
1227
+
1228
+ function arrObjKeys(obj, inspect) {
1229
+ var isArr = isArray$3(obj);
1230
+ var xs = [];
1231
+ if (isArr) {
1232
+ xs.length = obj.length;
1233
+ for (var i = 0; i < obj.length; i++) {
1234
+ xs[i] = has$3(obj, i) ? inspect(obj[i], obj) : '';
1235
+ }
1236
+ }
1237
+ var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
1238
+ var symMap;
1239
+ if (hasShammedSymbols) {
1240
+ symMap = {};
1241
+ for (var k = 0; k < syms.length; k++) {
1242
+ symMap['$' + syms[k]] = syms[k];
1243
+ }
1244
+ }
1245
+
1246
+ for (var key in obj) { // eslint-disable-line no-restricted-syntax
1247
+ if (!has$3(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
1248
+ if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
1249
+ if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
1250
+ // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
1251
+ continue; // eslint-disable-line no-restricted-syntax, no-continue
1252
+ } else if ($test.call(/[^\w$]/, key)) {
1253
+ xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
1254
+ } else {
1255
+ xs.push(key + ': ' + inspect(obj[key], obj));
1256
+ }
1257
+ }
1258
+ if (typeof gOPS === 'function') {
1259
+ for (var j = 0; j < syms.length; j++) {
1260
+ if (isEnumerable.call(obj, syms[j])) {
1261
+ xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
1262
+ }
1263
+ }
1264
+ }
1265
+ return xs;
1266
+ }
1267
+
1268
+ var GetIntrinsic = getIntrinsic;
1269
+ var callBound = callBound$1;
1270
+ var inspect = objectInspect;
1271
+
1272
+ var $TypeError = GetIntrinsic('%TypeError%');
1273
+ var $WeakMap = GetIntrinsic('%WeakMap%', true);
1274
+ var $Map = GetIntrinsic('%Map%', true);
1275
+
1276
+ var $weakMapGet = callBound('WeakMap.prototype.get', true);
1277
+ var $weakMapSet = callBound('WeakMap.prototype.set', true);
1278
+ var $weakMapHas = callBound('WeakMap.prototype.has', true);
1279
+ var $mapGet = callBound('Map.prototype.get', true);
1280
+ var $mapSet = callBound('Map.prototype.set', true);
1281
+ var $mapHas = callBound('Map.prototype.has', true);
1282
+
1283
+ /*
1284
+ * This function traverses the list returning the node corresponding to the
1285
+ * given key.
1286
+ *
1287
+ * That node is also moved to the head of the list, so that if it's accessed
1288
+ * again we don't need to traverse the whole list. By doing so, all the recently
1289
+ * used nodes can be accessed relatively quickly.
1290
+ */
1291
+ var listGetNode = function (list, key) { // eslint-disable-line consistent-return
1292
+ for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
1293
+ if (curr.key === key) {
1294
+ prev.next = curr.next;
1295
+ curr.next = list.next;
1296
+ list.next = curr; // eslint-disable-line no-param-reassign
1297
+ return curr;
1298
+ }
1299
+ }
1300
+ };
1301
+
1302
+ var listGet = function (objects, key) {
1303
+ var node = listGetNode(objects, key);
1304
+ return node && node.value;
1305
+ };
1306
+ var listSet = function (objects, key, value) {
1307
+ var node = listGetNode(objects, key);
1308
+ if (node) {
1309
+ node.value = value;
1310
+ } else {
1311
+ // Prepend the new node to the beginning of the list
1312
+ objects.next = { // eslint-disable-line no-param-reassign
1313
+ key: key,
1314
+ next: objects.next,
1315
+ value: value
1316
+ };
1317
+ }
1318
+ };
1319
+ var listHas = function (objects, key) {
1320
+ return !!listGetNode(objects, key);
1321
+ };
1322
+
1323
+ var sideChannel = function getSideChannel() {
1324
+ var $wm;
1325
+ var $m;
1326
+ var $o;
1327
+ var channel = {
1328
+ assert: function (key) {
1329
+ if (!channel.has(key)) {
1330
+ throw new $TypeError('Side channel does not contain ' + inspect(key));
1331
+ }
1332
+ },
1333
+ get: function (key) { // eslint-disable-line consistent-return
1334
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
1335
+ if ($wm) {
1336
+ return $weakMapGet($wm, key);
1337
+ }
1338
+ } else if ($Map) {
1339
+ if ($m) {
1340
+ return $mapGet($m, key);
1341
+ }
1342
+ } else {
1343
+ if ($o) { // eslint-disable-line no-lonely-if
1344
+ return listGet($o, key);
1345
+ }
1346
+ }
1347
+ },
1348
+ has: function (key) {
1349
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
1350
+ if ($wm) {
1351
+ return $weakMapHas($wm, key);
1352
+ }
1353
+ } else if ($Map) {
1354
+ if ($m) {
1355
+ return $mapHas($m, key);
1356
+ }
1357
+ } else {
1358
+ if ($o) { // eslint-disable-line no-lonely-if
1359
+ return listHas($o, key);
1360
+ }
1361
+ }
1362
+ return false;
1363
+ },
1364
+ set: function (key, value) {
1365
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
1366
+ if (!$wm) {
1367
+ $wm = new $WeakMap();
1368
+ }
1369
+ $weakMapSet($wm, key, value);
1370
+ } else if ($Map) {
1371
+ if (!$m) {
1372
+ $m = new $Map();
1373
+ }
1374
+ $mapSet($m, key, value);
1375
+ } else {
1376
+ if (!$o) {
1377
+ /*
1378
+ * Initialize the linked list as an empty node, so that we don't have
1379
+ * to special-case handling of the first node: we can always refer to
1380
+ * it as (previous node).next, instead of something like (list).head
1381
+ */
1382
+ $o = { key: {}, next: null };
1383
+ }
1384
+ listSet($o, key, value);
1385
+ }
1386
+ }
1387
+ };
1388
+ return channel;
1389
+ };
1390
+
1391
+ var replace = String.prototype.replace;
1392
+ var percentTwenties = /%20/g;
1393
+
1394
+ var Format = {
1395
+ RFC1738: 'RFC1738',
1396
+ RFC3986: 'RFC3986'
1397
+ };
1398
+
1399
+ var formats$3 = {
1400
+ 'default': Format.RFC3986,
1401
+ formatters: {
1402
+ RFC1738: function (value) {
1403
+ return replace.call(value, percentTwenties, '+');
1404
+ },
1405
+ RFC3986: function (value) {
1406
+ return String(value);
1407
+ }
1408
+ },
1409
+ RFC1738: Format.RFC1738,
1410
+ RFC3986: Format.RFC3986
1411
+ };
1412
+
1413
+ var formats$2 = formats$3;
1414
+
1415
+ var has$2 = Object.prototype.hasOwnProperty;
1416
+ var isArray$2 = Array.isArray;
1417
+
1418
+ var hexTable = (function () {
1419
+ var array = [];
1420
+ for (var i = 0; i < 256; ++i) {
1421
+ array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
1422
+ }
1423
+
1424
+ return array;
1425
+ }());
1426
+
1427
+ var compactQueue = function compactQueue(queue) {
1428
+ while (queue.length > 1) {
1429
+ var item = queue.pop();
1430
+ var obj = item.obj[item.prop];
1431
+
1432
+ if (isArray$2(obj)) {
1433
+ var compacted = [];
1434
+
1435
+ for (var j = 0; j < obj.length; ++j) {
1436
+ if (typeof obj[j] !== 'undefined') {
1437
+ compacted.push(obj[j]);
1438
+ }
1439
+ }
1440
+
1441
+ item.obj[item.prop] = compacted;
1442
+ }
1443
+ }
1444
+ };
1445
+
1446
+ var arrayToObject = function arrayToObject(source, options) {
1447
+ var obj = options && options.plainObjects ? Object.create(null) : {};
1448
+ for (var i = 0; i < source.length; ++i) {
1449
+ if (typeof source[i] !== 'undefined') {
1450
+ obj[i] = source[i];
1451
+ }
1452
+ }
1453
+
1454
+ return obj;
1455
+ };
1456
+
1457
+ var merge = function merge(target, source, options) {
1458
+ /* eslint no-param-reassign: 0 */
1459
+ if (!source) {
1460
+ return target;
1461
+ }
1462
+
1463
+ if (typeof source !== 'object') {
1464
+ if (isArray$2(target)) {
1465
+ target.push(source);
1466
+ } else if (target && typeof target === 'object') {
1467
+ if ((options && (options.plainObjects || options.allowPrototypes)) || !has$2.call(Object.prototype, source)) {
1468
+ target[source] = true;
1469
+ }
1470
+ } else {
1471
+ return [target, source];
1472
+ }
1473
+
1474
+ return target;
1475
+ }
1476
+
1477
+ if (!target || typeof target !== 'object') {
1478
+ return [target].concat(source);
1479
+ }
1480
+
1481
+ var mergeTarget = target;
1482
+ if (isArray$2(target) && !isArray$2(source)) {
1483
+ mergeTarget = arrayToObject(target, options);
1484
+ }
1485
+
1486
+ if (isArray$2(target) && isArray$2(source)) {
1487
+ source.forEach(function (item, i) {
1488
+ if (has$2.call(target, i)) {
1489
+ var targetItem = target[i];
1490
+ if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
1491
+ target[i] = merge(targetItem, item, options);
1492
+ } else {
1493
+ target.push(item);
1494
+ }
1495
+ } else {
1496
+ target[i] = item;
1497
+ }
1498
+ });
1499
+ return target;
1500
+ }
1501
+
1502
+ return Object.keys(source).reduce(function (acc, key) {
1503
+ var value = source[key];
1504
+
1505
+ if (has$2.call(acc, key)) {
1506
+ acc[key] = merge(acc[key], value, options);
1507
+ } else {
1508
+ acc[key] = value;
1509
+ }
1510
+ return acc;
1511
+ }, mergeTarget);
1512
+ };
1513
+
1514
+ var assign = function assignSingleSource(target, source) {
1515
+ return Object.keys(source).reduce(function (acc, key) {
1516
+ acc[key] = source[key];
1517
+ return acc;
1518
+ }, target);
1519
+ };
1520
+
1521
+ var decode = function (str, decoder, charset) {
1522
+ var strWithoutPlus = str.replace(/\+/g, ' ');
1523
+ if (charset === 'iso-8859-1') {
1524
+ // unescape never throws, no try...catch needed:
1525
+ return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
1526
+ }
1527
+ // utf-8
1528
+ try {
1529
+ return decodeURIComponent(strWithoutPlus);
1530
+ } catch (e) {
1531
+ return strWithoutPlus;
1532
+ }
1533
+ };
1534
+
1535
+ var encode = function encode(str, defaultEncoder, charset, kind, format) {
1536
+ // This code was originally written by Brian White (mscdex) for the io.js core querystring library.
1537
+ // It has been adapted here for stricter adherence to RFC 3986
1538
+ if (str.length === 0) {
1539
+ return str;
1540
+ }
1541
+
1542
+ var string = str;
1543
+ if (typeof str === 'symbol') {
1544
+ string = Symbol.prototype.toString.call(str);
1545
+ } else if (typeof str !== 'string') {
1546
+ string = String(str);
1547
+ }
1548
+
1549
+ if (charset === 'iso-8859-1') {
1550
+ return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
1551
+ return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
1552
+ });
1553
+ }
1554
+
1555
+ var out = '';
1556
+ for (var i = 0; i < string.length; ++i) {
1557
+ var c = string.charCodeAt(i);
1558
+
1559
+ if (
1560
+ c === 0x2D // -
1561
+ || c === 0x2E // .
1562
+ || c === 0x5F // _
1563
+ || c === 0x7E // ~
1564
+ || (c >= 0x30 && c <= 0x39) // 0-9
1565
+ || (c >= 0x41 && c <= 0x5A) // a-z
1566
+ || (c >= 0x61 && c <= 0x7A) // A-Z
1567
+ || (format === formats$2.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
1568
+ ) {
1569
+ out += string.charAt(i);
1570
+ continue;
1571
+ }
1572
+
1573
+ if (c < 0x80) {
1574
+ out = out + hexTable[c];
1575
+ continue;
1576
+ }
1577
+
1578
+ if (c < 0x800) {
1579
+ out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
1580
+ continue;
1581
+ }
1582
+
1583
+ if (c < 0xD800 || c >= 0xE000) {
1584
+ out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
1585
+ continue;
1586
+ }
1587
+
1588
+ i += 1;
1589
+ c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
1590
+ /* eslint operator-linebreak: [2, "before"] */
1591
+ out += hexTable[0xF0 | (c >> 18)]
1592
+ + hexTable[0x80 | ((c >> 12) & 0x3F)]
1593
+ + hexTable[0x80 | ((c >> 6) & 0x3F)]
1594
+ + hexTable[0x80 | (c & 0x3F)];
1595
+ }
1596
+
1597
+ return out;
1598
+ };
1599
+
1600
+ var compact = function compact(value) {
1601
+ var queue = [{ obj: { o: value }, prop: 'o' }];
1602
+ var refs = [];
1603
+
1604
+ for (var i = 0; i < queue.length; ++i) {
1605
+ var item = queue[i];
1606
+ var obj = item.obj[item.prop];
1607
+
1608
+ var keys = Object.keys(obj);
1609
+ for (var j = 0; j < keys.length; ++j) {
1610
+ var key = keys[j];
1611
+ var val = obj[key];
1612
+ if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
1613
+ queue.push({ obj: obj, prop: key });
1614
+ refs.push(val);
1615
+ }
1616
+ }
1617
+ }
1618
+
1619
+ compactQueue(queue);
1620
+
1621
+ return value;
1622
+ };
1623
+
1624
+ var isRegExp = function isRegExp(obj) {
1625
+ return Object.prototype.toString.call(obj) === '[object RegExp]';
1626
+ };
1627
+
1628
+ var isBuffer = function isBuffer(obj) {
1629
+ if (!obj || typeof obj !== 'object') {
1630
+ return false;
1631
+ }
1632
+
1633
+ return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
1634
+ };
1635
+
1636
+ var combine = function combine(a, b) {
1637
+ return [].concat(a, b);
1638
+ };
1639
+
1640
+ var maybeMap = function maybeMap(val, fn) {
1641
+ if (isArray$2(val)) {
1642
+ var mapped = [];
1643
+ for (var i = 0; i < val.length; i += 1) {
1644
+ mapped.push(fn(val[i]));
1645
+ }
1646
+ return mapped;
1647
+ }
1648
+ return fn(val);
1649
+ };
1650
+
1651
+ var utils$2 = {
1652
+ arrayToObject: arrayToObject,
1653
+ assign: assign,
1654
+ combine: combine,
1655
+ compact: compact,
1656
+ decode: decode,
1657
+ encode: encode,
1658
+ isBuffer: isBuffer,
1659
+ isRegExp: isRegExp,
1660
+ maybeMap: maybeMap,
1661
+ merge: merge
1662
+ };
1663
+
1664
+ var getSideChannel = sideChannel;
1665
+ var utils$1 = utils$2;
1666
+ var formats$1 = formats$3;
1667
+ var has$1 = Object.prototype.hasOwnProperty;
1668
+
1669
+ var arrayPrefixGenerators = {
1670
+ brackets: function brackets(prefix) {
1671
+ return prefix + '[]';
1672
+ },
1673
+ comma: 'comma',
1674
+ indices: function indices(prefix, key) {
1675
+ return prefix + '[' + key + ']';
1676
+ },
1677
+ repeat: function repeat(prefix) {
1678
+ return prefix;
1679
+ }
1680
+ };
1681
+
1682
+ var isArray$1 = Array.isArray;
1683
+ var push = Array.prototype.push;
1684
+ var pushToArray = function (arr, valueOrArray) {
1685
+ push.apply(arr, isArray$1(valueOrArray) ? valueOrArray : [valueOrArray]);
1686
+ };
1687
+
1688
+ var toISO = Date.prototype.toISOString;
1689
+
1690
+ var defaultFormat = formats$1['default'];
1691
+ var defaults$1 = {
1692
+ addQueryPrefix: false,
1693
+ allowDots: false,
1694
+ charset: 'utf-8',
1695
+ charsetSentinel: false,
1696
+ delimiter: '&',
1697
+ encode: true,
1698
+ encoder: utils$1.encode,
1699
+ encodeValuesOnly: false,
1700
+ format: defaultFormat,
1701
+ formatter: formats$1.formatters[defaultFormat],
1702
+ // deprecated
1703
+ indices: false,
1704
+ serializeDate: function serializeDate(date) {
1705
+ return toISO.call(date);
1706
+ },
1707
+ skipNulls: false,
1708
+ strictNullHandling: false
1709
+ };
1710
+
1711
+ var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
1712
+ return typeof v === 'string'
1713
+ || typeof v === 'number'
1714
+ || typeof v === 'boolean'
1715
+ || typeof v === 'symbol'
1716
+ || typeof v === 'bigint';
1717
+ };
1718
+
1719
+ var sentinel = {};
1720
+
1721
+ var stringify$1 = function stringify(
1722
+ object,
1723
+ prefix,
1724
+ generateArrayPrefix,
1725
+ commaRoundTrip,
1726
+ strictNullHandling,
1727
+ skipNulls,
1728
+ encoder,
1729
+ filter,
1730
+ sort,
1731
+ allowDots,
1732
+ serializeDate,
1733
+ format,
1734
+ formatter,
1735
+ encodeValuesOnly,
1736
+ charset,
1737
+ sideChannel
1738
+ ) {
1739
+ var obj = object;
1740
+
1741
+ var tmpSc = sideChannel;
1742
+ var step = 0;
1743
+ var findFlag = false;
1744
+ while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
1745
+ // Where object last appeared in the ref tree
1746
+ var pos = tmpSc.get(object);
1747
+ step += 1;
1748
+ if (typeof pos !== 'undefined') {
1749
+ if (pos === step) {
1750
+ throw new RangeError('Cyclic object value');
1751
+ } else {
1752
+ findFlag = true; // Break while
1753
+ }
1754
+ }
1755
+ if (typeof tmpSc.get(sentinel) === 'undefined') {
1756
+ step = 0;
1757
+ }
1758
+ }
1759
+
1760
+ if (typeof filter === 'function') {
1761
+ obj = filter(prefix, obj);
1762
+ } else if (obj instanceof Date) {
1763
+ obj = serializeDate(obj);
1764
+ } else if (generateArrayPrefix === 'comma' && isArray$1(obj)) {
1765
+ obj = utils$1.maybeMap(obj, function (value) {
1766
+ if (value instanceof Date) {
1767
+ return serializeDate(value);
1768
+ }
1769
+ return value;
1770
+ });
1771
+ }
1772
+
1773
+ if (obj === null) {
1774
+ if (strictNullHandling) {
1775
+ return encoder && !encodeValuesOnly ? encoder(prefix, defaults$1.encoder, charset, 'key', format) : prefix;
1776
+ }
1777
+
1778
+ obj = '';
1779
+ }
1780
+
1781
+ if (isNonNullishPrimitive(obj) || utils$1.isBuffer(obj)) {
1782
+ if (encoder) {
1783
+ var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults$1.encoder, charset, 'key', format);
1784
+ return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults$1.encoder, charset, 'value', format))];
1785
+ }
1786
+ return [formatter(prefix) + '=' + formatter(String(obj))];
1787
+ }
1788
+
1789
+ var values = [];
1790
+
1791
+ if (typeof obj === 'undefined') {
1792
+ return values;
1793
+ }
1794
+
1795
+ var objKeys;
1796
+ if (generateArrayPrefix === 'comma' && isArray$1(obj)) {
1797
+ // we need to join elements in
1798
+ if (encodeValuesOnly && encoder) {
1799
+ obj = utils$1.maybeMap(obj, encoder);
1800
+ }
1801
+ objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
1802
+ } else if (isArray$1(filter)) {
1803
+ objKeys = filter;
1804
+ } else {
1805
+ var keys = Object.keys(obj);
1806
+ objKeys = sort ? keys.sort(sort) : keys;
1807
+ }
1808
+
1809
+ var adjustedPrefix = commaRoundTrip && isArray$1(obj) && obj.length === 1 ? prefix + '[]' : prefix;
1810
+
1811
+ for (var j = 0; j < objKeys.length; ++j) {
1812
+ var key = objKeys[j];
1813
+ var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
1814
+
1815
+ if (skipNulls && value === null) {
1816
+ continue;
1817
+ }
1818
+
1819
+ var keyPrefix = isArray$1(obj)
1820
+ ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix
1821
+ : adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');
1822
+
1823
+ sideChannel.set(object, step);
1824
+ var valueSideChannel = getSideChannel();
1825
+ valueSideChannel.set(sentinel, sideChannel);
1826
+ pushToArray(values, stringify(
1827
+ value,
1828
+ keyPrefix,
1829
+ generateArrayPrefix,
1830
+ commaRoundTrip,
1831
+ strictNullHandling,
1832
+ skipNulls,
1833
+ generateArrayPrefix === 'comma' && encodeValuesOnly && isArray$1(obj) ? null : encoder,
1834
+ filter,
1835
+ sort,
1836
+ allowDots,
1837
+ serializeDate,
1838
+ format,
1839
+ formatter,
1840
+ encodeValuesOnly,
1841
+ charset,
1842
+ valueSideChannel
1843
+ ));
1844
+ }
1845
+
1846
+ return values;
1847
+ };
1848
+
1849
+ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
1850
+ if (!opts) {
1851
+ return defaults$1;
1852
+ }
1853
+
1854
+ if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
1855
+ throw new TypeError('Encoder has to be a function.');
1856
+ }
1857
+
1858
+ var charset = opts.charset || defaults$1.charset;
1859
+ if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
1860
+ throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
1861
+ }
1862
+
1863
+ var format = formats$1['default'];
1864
+ if (typeof opts.format !== 'undefined') {
1865
+ if (!has$1.call(formats$1.formatters, opts.format)) {
1866
+ throw new TypeError('Unknown format option provided.');
1867
+ }
1868
+ format = opts.format;
1869
+ }
1870
+ var formatter = formats$1.formatters[format];
1871
+
1872
+ var filter = defaults$1.filter;
1873
+ if (typeof opts.filter === 'function' || isArray$1(opts.filter)) {
1874
+ filter = opts.filter;
1875
+ }
1876
+
1877
+ return {
1878
+ addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults$1.addQueryPrefix,
1879
+ allowDots: typeof opts.allowDots === 'undefined' ? defaults$1.allowDots : !!opts.allowDots,
1880
+ charset: charset,
1881
+ charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults$1.charsetSentinel,
1882
+ delimiter: typeof opts.delimiter === 'undefined' ? defaults$1.delimiter : opts.delimiter,
1883
+ encode: typeof opts.encode === 'boolean' ? opts.encode : defaults$1.encode,
1884
+ encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults$1.encoder,
1885
+ encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults$1.encodeValuesOnly,
1886
+ filter: filter,
1887
+ format: format,
1888
+ formatter: formatter,
1889
+ serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults$1.serializeDate,
1890
+ skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults$1.skipNulls,
1891
+ sort: typeof opts.sort === 'function' ? opts.sort : null,
1892
+ strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults$1.strictNullHandling
1893
+ };
1894
+ };
1895
+
1896
+ var stringify_1 = function (object, opts) {
1897
+ var obj = object;
1898
+ var options = normalizeStringifyOptions(opts);
1899
+
1900
+ var objKeys;
1901
+ var filter;
1902
+
1903
+ if (typeof options.filter === 'function') {
1904
+ filter = options.filter;
1905
+ obj = filter('', obj);
1906
+ } else if (isArray$1(options.filter)) {
1907
+ filter = options.filter;
1908
+ objKeys = filter;
1909
+ }
1910
+
1911
+ var keys = [];
1912
+
1913
+ if (typeof obj !== 'object' || obj === null) {
1914
+ return '';
1915
+ }
1916
+
1917
+ var arrayFormat;
1918
+ if (opts && opts.arrayFormat in arrayPrefixGenerators) {
1919
+ arrayFormat = opts.arrayFormat;
1920
+ } else if (opts && 'indices' in opts) {
1921
+ arrayFormat = opts.indices ? 'indices' : 'repeat';
1922
+ } else {
1923
+ arrayFormat = 'indices';
1924
+ }
1925
+
1926
+ var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
1927
+ if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
1928
+ throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
1929
+ }
1930
+ var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip;
1931
+
1932
+ if (!objKeys) {
1933
+ objKeys = Object.keys(obj);
1934
+ }
1935
+
1936
+ if (options.sort) {
1937
+ objKeys.sort(options.sort);
1938
+ }
1939
+
1940
+ var sideChannel = getSideChannel();
1941
+ for (var i = 0; i < objKeys.length; ++i) {
1942
+ var key = objKeys[i];
1943
+
1944
+ if (options.skipNulls && obj[key] === null) {
1945
+ continue;
1946
+ }
1947
+ pushToArray(keys, stringify$1(
1948
+ obj[key],
1949
+ key,
1950
+ generateArrayPrefix,
1951
+ commaRoundTrip,
1952
+ options.strictNullHandling,
1953
+ options.skipNulls,
1954
+ options.encode ? options.encoder : null,
1955
+ options.filter,
1956
+ options.sort,
1957
+ options.allowDots,
1958
+ options.serializeDate,
1959
+ options.format,
1960
+ options.formatter,
1961
+ options.encodeValuesOnly,
1962
+ options.charset,
1963
+ sideChannel
1964
+ ));
1965
+ }
1966
+
1967
+ var joined = keys.join(options.delimiter);
1968
+ var prefix = options.addQueryPrefix === true ? '?' : '';
1969
+
1970
+ if (options.charsetSentinel) {
1971
+ if (options.charset === 'iso-8859-1') {
1972
+ // encodeURIComponent('&#10003;'), the "numeric entity" representation of a checkmark
1973
+ prefix += 'utf8=%26%2310003%3B&';
1974
+ } else {
1975
+ // encodeURIComponent('✓')
1976
+ prefix += 'utf8=%E2%9C%93&';
1977
+ }
1978
+ }
1979
+
1980
+ return joined.length > 0 ? prefix + joined : '';
1981
+ };
1982
+
1983
+ var utils = utils$2;
1984
+
1985
+ var has = Object.prototype.hasOwnProperty;
1986
+ var isArray = Array.isArray;
1987
+
1988
+ var defaults = {
1989
+ allowDots: false,
1990
+ allowPrototypes: false,
1991
+ allowSparse: false,
1992
+ arrayLimit: 20,
1993
+ charset: 'utf-8',
1994
+ charsetSentinel: false,
1995
+ comma: false,
1996
+ decoder: utils.decode,
1997
+ delimiter: '&',
1998
+ depth: 5,
1999
+ ignoreQueryPrefix: false,
2000
+ interpretNumericEntities: false,
2001
+ parameterLimit: 1000,
2002
+ parseArrays: true,
2003
+ plainObjects: false,
2004
+ strictNullHandling: false
2005
+ };
2006
+
2007
+ var interpretNumericEntities = function (str) {
2008
+ return str.replace(/&#(\d+);/g, function ($0, numberStr) {
2009
+ return String.fromCharCode(parseInt(numberStr, 10));
2010
+ });
2011
+ };
2012
+
2013
+ var parseArrayValue = function (val, options) {
2014
+ if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
2015
+ return val.split(',');
2016
+ }
2017
+
2018
+ return val;
2019
+ };
2020
+
2021
+ // This is what browsers will submit when the ✓ character occurs in an
2022
+ // application/x-www-form-urlencoded body and the encoding of the page containing
2023
+ // the form is iso-8859-1, or when the submitted form has an accept-charset
2024
+ // attribute of iso-8859-1. Presumably also with other charsets that do not contain
2025
+ // the ✓ character, such as us-ascii.
2026
+ var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('&#10003;')
2027
+
2028
+ // These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
2029
+ var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
2030
+
2031
+ var parseValues = function parseQueryStringValues(str, options) {
2032
+ var obj = { __proto__: null };
2033
+
2034
+ var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
2035
+ var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
2036
+ var parts = cleanStr.split(options.delimiter, limit);
2037
+ var skipIndex = -1; // Keep track of where the utf8 sentinel was found
2038
+ var i;
2039
+
2040
+ var charset = options.charset;
2041
+ if (options.charsetSentinel) {
2042
+ for (i = 0; i < parts.length; ++i) {
2043
+ if (parts[i].indexOf('utf8=') === 0) {
2044
+ if (parts[i] === charsetSentinel) {
2045
+ charset = 'utf-8';
2046
+ } else if (parts[i] === isoSentinel) {
2047
+ charset = 'iso-8859-1';
2048
+ }
2049
+ skipIndex = i;
2050
+ i = parts.length; // The eslint settings do not allow break;
2051
+ }
2052
+ }
2053
+ }
2054
+
2055
+ for (i = 0; i < parts.length; ++i) {
2056
+ if (i === skipIndex) {
2057
+ continue;
2058
+ }
2059
+ var part = parts[i];
2060
+
2061
+ var bracketEqualsPos = part.indexOf(']=');
2062
+ var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
2063
+
2064
+ var key, val;
2065
+ if (pos === -1) {
2066
+ key = options.decoder(part, defaults.decoder, charset, 'key');
2067
+ val = options.strictNullHandling ? null : '';
2068
+ } else {
2069
+ key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
2070
+ val = utils.maybeMap(
2071
+ parseArrayValue(part.slice(pos + 1), options),
2072
+ function (encodedVal) {
2073
+ return options.decoder(encodedVal, defaults.decoder, charset, 'value');
2074
+ }
2075
+ );
2076
+ }
2077
+
2078
+ if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
2079
+ val = interpretNumericEntities(val);
2080
+ }
2081
+
2082
+ if (part.indexOf('[]=') > -1) {
2083
+ val = isArray(val) ? [val] : val;
2084
+ }
2085
+
2086
+ if (has.call(obj, key)) {
2087
+ obj[key] = utils.combine(obj[key], val);
2088
+ } else {
2089
+ obj[key] = val;
2090
+ }
2091
+ }
2092
+
2093
+ return obj;
2094
+ };
591
2095
 
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
- }
2096
+ var parseObject = function (chain, val, options, valuesParsed) {
2097
+ var leaf = valuesParsed ? val : parseArrayValue(val, options);
608
2098
 
609
- intrinsicBaseName += '.' + part;
610
- intrinsicRealName = '%' + intrinsicBaseName + '%';
2099
+ for (var i = chain.length - 1; i >= 0; --i) {
2100
+ var obj;
2101
+ var root = chain[i];
611
2102
 
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;
2103
+ if (root === '[]' && options.parseArrays) {
2104
+ obj = [].concat(leaf);
2105
+ } else {
2106
+ obj = options.plainObjects ? Object.create(null) : {};
2107
+ var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
2108
+ var index = parseInt(cleanRoot, 10);
2109
+ if (!options.parseArrays && cleanRoot === '') {
2110
+ obj = { 0: leaf };
2111
+ } else if (
2112
+ !isNaN(index)
2113
+ && root !== cleanRoot
2114
+ && String(index) === cleanRoot
2115
+ && index >= 0
2116
+ && (options.parseArrays && index <= options.arrayLimit)
2117
+ ) {
2118
+ obj = [];
2119
+ obj[index] = leaf;
2120
+ } else if (cleanRoot !== '__proto__') {
2121
+ obj[cleanRoot] = leaf;
2122
+ }
2123
+ }
624
2124
 
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
- }
2125
+ leaf = obj;
2126
+ }
641
2127
 
642
- if (isOwn && !skipFurtherCaching) {
643
- INTRINSICS[intrinsicRealName] = value;
644
- }
645
- }
646
- }
647
- return value;
2128
+ return leaf;
648
2129
  };
649
2130
 
650
- var callBind$1 = {exports: {}};
2131
+ var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
2132
+ if (!givenKey) {
2133
+ return;
2134
+ }
651
2135
 
652
- (function (module) {
2136
+ // Transform dot notation to bracket notation
2137
+ var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
653
2138
 
654
- var bind = functionBind;
655
- var GetIntrinsic = getIntrinsic;
2139
+ // The regex chunks
656
2140
 
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);
2141
+ var brackets = /(\[[^[\]]*])/;
2142
+ var child = /(\[[^[\]]*])/g;
660
2143
 
661
- var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
662
- var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
663
- var $max = GetIntrinsic('%Math.max%');
2144
+ // Get the parent
664
2145
 
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
- }
2146
+ var segment = options.depth > 0 && brackets.exec(key);
2147
+ var parent = segment ? key.slice(0, segment.index) : key;
673
2148
 
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
- };
2149
+ // Stash the parent if it exists
689
2150
 
690
- var applyBind = function applyBind() {
691
- return $reflectApply(bind, $apply, arguments);
692
- };
2151
+ var keys = [];
2152
+ if (parent) {
2153
+ // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
2154
+ if (!options.plainObjects && has.call(Object.prototype, parent)) {
2155
+ if (!options.allowPrototypes) {
2156
+ return;
2157
+ }
2158
+ }
693
2159
 
694
- if ($defineProperty) {
695
- $defineProperty(module.exports, 'apply', { value: applyBind });
696
- } else {
697
- module.exports.apply = applyBind;
698
- }
699
- } (callBind$1));
2160
+ keys.push(parent);
2161
+ }
700
2162
 
701
- var GetIntrinsic$1 = getIntrinsic;
2163
+ // Loop through children appending to the array until we hit depth
702
2164
 
703
- var callBind = callBind$1.exports;
2165
+ var i = 0;
2166
+ while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
2167
+ i += 1;
2168
+ if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
2169
+ if (!options.allowPrototypes) {
2170
+ return;
2171
+ }
2172
+ }
2173
+ keys.push(segment[1]);
2174
+ }
704
2175
 
705
- var $indexOf = callBind(GetIntrinsic$1('String.prototype.indexOf'));
2176
+ // If there's a remainder, just add whatever is left
706
2177
 
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;
2178
+ if (segment) {
2179
+ keys.push('[' + key.slice(segment.index) + ']');
2180
+ }
2181
+
2182
+ return parseObject(keys, val, options, valuesParsed);
713
2183
  };
714
2184
 
715
- var GetIntrinsic = getIntrinsic;
716
- var callBound = callBound$1;
2185
+ var normalizeParseOptions = function normalizeParseOptions(opts) {
2186
+ if (!opts) {
2187
+ return defaults;
2188
+ }
717
2189
 
718
- GetIntrinsic('%TypeError%');
719
- GetIntrinsic('%WeakMap%', true);
720
- GetIntrinsic('%Map%', true);
2190
+ if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
2191
+ throw new TypeError('Decoder has to be a function.');
2192
+ }
721
2193
 
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);
2194
+ if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
2195
+ throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
2196
+ }
2197
+ var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
728
2198
 
729
- ((function () {
730
- var array = [];
731
- for (var i = 0; i < 256; ++i) {
732
- array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
2199
+ return {
2200
+ allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
2201
+ allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
2202
+ allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
2203
+ arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
2204
+ charset: charset,
2205
+ charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
2206
+ comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
2207
+ decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
2208
+ delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
2209
+ // eslint-disable-next-line no-implicit-coercion, no-extra-parens
2210
+ depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
2211
+ ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
2212
+ interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
2213
+ parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
2214
+ parseArrays: opts.parseArrays !== false,
2215
+ plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
2216
+ strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
2217
+ };
2218
+ };
2219
+
2220
+ var parse$1 = function (str, opts) {
2221
+ var options = normalizeParseOptions(opts);
2222
+
2223
+ if (str === '' || str === null || typeof str === 'undefined') {
2224
+ return options.plainObjects ? Object.create(null) : {};
733
2225
  }
734
2226
 
735
- return array;
736
- })());
2227
+ var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
2228
+ var obj = options.plainObjects ? Object.create(null) : {};
2229
+
2230
+ // Iterate over the keys and setup the new object
2231
+
2232
+ var keys = Object.keys(tempObj);
2233
+ for (var i = 0; i < keys.length; ++i) {
2234
+ var key = keys[i];
2235
+ var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
2236
+ obj = utils.merge(obj, newObj, options);
2237
+ }
2238
+
2239
+ if (options.allowSparse === true) {
2240
+ return obj;
2241
+ }
2242
+
2243
+ return utils.compact(obj);
2244
+ };
2245
+
2246
+ var stringify = stringify_1;
2247
+ var parse = parse$1;
2248
+ var formats = formats$3;
2249
+
2250
+ var lib = {
2251
+ formats: formats,
2252
+ parse: parse,
2253
+ stringify: stringify
2254
+ };
737
2255
 
738
2256
  dayjs.extend(weekOfYear);
739
2257
  dayjs.extend(weekday);
740
2258
  dayjs.extend(localeData);
741
2259
  dayjs.extend(utc);
2260
+ var getScrollbarWidth = function getScrollbarWidth() {
2261
+ var _parentDiv$parentNode;
2262
+ var parentDiv = document.createElement("div");
2263
+ parentDiv.style.visibility = "hidden";
2264
+ parentDiv.style.overflow = "scroll";
2265
+ document.body.appendChild(parentDiv);
2266
+ var childDiv = document.createElement("div");
2267
+ parentDiv.appendChild(childDiv);
2268
+ var scrollbarWidth = parentDiv.offsetWidth - childDiv.offsetWidth;
2269
+ parentDiv === null || parentDiv === void 0 || (_parentDiv$parentNode = parentDiv.parentNode) === null || _parentDiv$parentNode === void 0 || _parentDiv$parentNode.removeChild(parentDiv);
2270
+ return scrollbarWidth;
2271
+ };
742
2272
  var noop = function noop() {};
743
-
744
- function _extends() {
745
- _extends = Object.assign ? Object.assign.bind() : function (target) {
746
- for (var i = 1; i < arguments.length; i++) {
747
- var source = arguments[i];
748
- for (var key in source) {
749
- if (Object.prototype.hasOwnProperty.call(source, key)) {
750
- target[key] = source[key];
751
- }
2273
+ var hyphenize = function hyphenize(input) {
2274
+ var fallbackString = "nui";
2275
+ if (typeof input === "number") return String(input);
2276
+ if (input && typeof input === "string" && input.replace) {
2277
+ return input.replace(/[\s_]/g, "-").replace(/([a-z])([A-Z])/g, "$1-$2").replace(/-+/g, "-").toLowerCase();
2278
+ }
2279
+ return fallbackString;
2280
+ };
2281
+ var convertToDayjsObjects = function convertToDayjsObjects(value) {
2282
+ return value instanceof Array ? value.map(function (date) {
2283
+ return date ? dayjs(date) : date;
2284
+ }) : value && dayjs(value);
2285
+ };
2286
+ var UniqueArray = /*#__PURE__*/function () {
2287
+ function UniqueArray() {
2288
+ _classCallCheck(this, UniqueArray);
2289
+ this.array = [];
2290
+ }
2291
+ _createClass(UniqueArray, [{
2292
+ key: "add",
2293
+ value: function add(item) {
2294
+ if (this.array.some(equals(item))) return false;
2295
+ this.array.push(item);
2296
+ return true;
2297
+ }
2298
+ }, {
2299
+ key: "remove",
2300
+ value: function remove(item) {
2301
+ this.array = this.array.filter(complement(equals(item)));
2302
+ }
2303
+ }]);
2304
+ return UniqueArray;
2305
+ }();
2306
+ var trapFocusOnFocusableElements = function trapFocusOnFocusableElements(ref) {
2307
+ var _ref$current, _ref$current2;
2308
+ var focusableElements = 'button,[href], input, select, textarea, [tabindex]:not([tabindex="-1"])';
2309
+ var firstFocusableElement = ref === null || ref === void 0 || (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.querySelectorAll(focusableElements)[0];
2310
+ var focusableContent = ref === null || ref === void 0 || (_ref$current2 = ref.current) === null || _ref$current2 === void 0 ? void 0 : _ref$current2.querySelectorAll(focusableElements);
2311
+ var lastFocusableElement = focusableContent[(focusableContent === null || focusableContent === void 0 ? void 0 : focusableContent.length) - 1];
2312
+ var onKeyDown = function onKeyDown(e) {
2313
+ var isTabPressed = e.key === "Tab" || e.keyCode === 9;
2314
+ if (!isTabPressed) {
2315
+ return;
2316
+ }
2317
+ if (e.shiftKey) {
2318
+ if (document.activeElement === firstFocusableElement) {
2319
+ lastFocusableElement.focus();
2320
+ e.preventDefault();
2321
+ }
2322
+ } else {
2323
+ if (document.activeElement === lastFocusableElement) {
2324
+ firstFocusableElement.focus();
2325
+ e.preventDefault();
752
2326
  }
753
2327
  }
754
- return target;
755
2328
  };
756
- return _extends.apply(this, arguments);
757
- }
758
-
759
- function _objectWithoutPropertiesLoose$1(source, excluded) {
760
- if (source == null) return {};
761
- var target = {};
762
- var sourceKeys = Object.keys(source);
763
- var key, i;
764
- for (i = 0; i < sourceKeys.length; i++) {
765
- key = sourceKeys[i];
766
- if (excluded.indexOf(key) >= 0) continue;
767
- target[key] = source[key];
768
- }
769
- return target;
770
- }
771
-
772
- function _objectWithoutProperties(source, excluded) {
773
- if (source == null) return {};
774
- var target = _objectWithoutPropertiesLoose$1(source, excluded);
775
- var key, i;
776
- if (Object.getOwnPropertySymbols) {
777
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
778
- for (i = 0; i < sourceSymbolKeys.length; i++) {
779
- key = sourceSymbolKeys[i];
780
- if (excluded.indexOf(key) >= 0) continue;
781
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
782
- target[key] = source[key];
783
- }
784
- }
785
- return target;
786
- }
2329
+ document.addEventListener("keydown", onKeyDown);
2330
+ return function () {
2331
+ return document.removeEventListener("keydown", onKeyDown);
2332
+ };
2333
+ };
2334
+ var focusFirstFocusableElement = function focusFirstFocusableElement(ref) {
2335
+ var _ref$current3;
2336
+ var focusableElements = 'button,[href], input, select, textarea, [tabindex]:not([tabindex="-1"])';
2337
+ var firstFocusableElement = ref === null || ref === void 0 || (_ref$current3 = ref.current) === null || _ref$current3 === void 0 ? void 0 : _ref$current3.querySelectorAll(focusableElements)[0];
2338
+ firstFocusableElement === null || firstFocusableElement === void 0 || firstFocusableElement.focus();
2339
+ };
2340
+ var hideScrollAndAddMargin = function hideScrollAndAddMargin() {
2341
+ var scrollbarWidth = getScrollbarWidth();
2342
+ document.body.style.overflow = "hidden";
2343
+ document.body.style.marginRight = "".concat(scrollbarWidth, "px");
2344
+ };
2345
+ var showScrollAndRemoveMargin = function showScrollAndRemoveMargin() {
2346
+ document.body.style.overflow = "auto";
2347
+ document.body.style.marginRight = "0px";
2348
+ };
2349
+ var ANT_DESIGN_GLOBAL_TOKEN_OVERRIDES = {
2350
+ colorBgContainer: "rgb(var(--neeto-ui-white))",
2351
+ colorBorder: "rgb(var(--neeto-ui-gray-300))",
2352
+ colorBorderSecondary: "rgb(var(--neeto-ui-gray-200))",
2353
+ colorFillAlter: "rgb(var(--neeto-ui-gray-100))",
2354
+ colorFillContent: "rgb(var(--neeto-ui-gray-100))",
2355
+ colorFillSecondary: "rgb(var(--neeto-ui-gray-100))",
2356
+ colorIcon: "rgb(var(--neeto-ui-gray-700))",
2357
+ colorIconHover: "rgb(var(--neeto-ui-gray-800))",
2358
+ colorLink: "rgb(var(--neeto-ui-primary-500))",
2359
+ colorLinkActive: "rgb(var(--neeto-ui-primary-800))",
2360
+ colorLinkHover: "rgb(var(--neeto-ui-primary-600))",
2361
+ colorPrimary: "rgb(var(--neeto-ui-primary-500))",
2362
+ colorSplit: "rgb(var(--neeto-ui-gray-100))",
2363
+ colorText: "rgb(var(--neeto-ui-gray-800))",
2364
+ colorTextDescription: "rgb(var(--neeto-ui-gray-700))",
2365
+ colorTextDisabled: "rgb(var(--neeto-ui-gray-600))",
2366
+ colorTextHeading: "rgb(var(--neeto-ui-black))",
2367
+ colorTextPlaceholder: "rgb(var(--neeto-ui-gray-500))",
2368
+ controlItemBgActive: "rgb(var(--neeto-ui-primary-100))",
2369
+ controlItemBgActiveHover: "rgb(var(--neeto-ui-pastel-purple))",
2370
+ controlItemBgHover: "rgb(var(--neeto-ui-gray-100))"
2371
+ };
2372
+ var buildUrl = function buildUrl(route, params) {
2373
+ var placeHolders = [];
2374
+ toPairs(params).forEach(function (_ref) {
2375
+ var _ref2 = _slicedToArray(_ref, 2),
2376
+ key = _ref2[0],
2377
+ value = _ref2[1];
2378
+ if (!route.includes(":".concat(key))) return;
2379
+ placeHolders.push(key);
2380
+ route = route.replace(":".concat(key), encodeURIComponent(value));
2381
+ });
2382
+ var queryParams = pipe(omit(placeHolders), preprocessForSerialization, lib.stringify)(params);
2383
+ return isEmpty(queryParams) ? route : "".concat(route, "?").concat(queryParams);
2384
+ };
787
2385
 
788
2386
  var top = 'top';
789
2387
  var bottom = 'bottom';
@@ -4608,7 +6206,7 @@ function TippyGenerator(tippy) {
4608
6206
  })
4609
6207
  });
4610
6208
  }, [attrs.placement, attrs.referenceHidden, attrs.escaped].concat(deps));
4611
- return /*#__PURE__*/React.createElement(React.Fragment, null, children ? /*#__PURE__*/cloneElement(children, {
6209
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children ? /*#__PURE__*/cloneElement(children, {
4612
6210
  ref: function ref(node) {
4613
6211
  mutableBox.ref = node;
4614
6212
  preserveRef(children.ref, node);
@@ -4628,7 +6226,7 @@ var forwardRef = (function (Tippy, defaultProps) {
4628
6226
  /*#__PURE__*/
4629
6227
  // If I spread them separately here, Babel adds the _extends ponyfill for
4630
6228
  // some reason
4631
- React.createElement(Tippy, Object.assign({}, defaultProps, props), children ? /*#__PURE__*/cloneElement(children, {
6229
+ React__default.createElement(Tippy, Object.assign({}, defaultProps, props), children ? /*#__PURE__*/cloneElement(children, {
4632
6230
  ref: function ref(node) {
4633
6231
  preserveRef(_ref2, node);
4634
6232
  preserveRef(children.ref, node);
@@ -4641,7 +6239,7 @@ var index = /*#__PURE__*/forwardRef( /*#__PURE__*/TippyGenerator(tippy));
4641
6239
 
4642
6240
  var ARROW = "<svg width='12' height='6' viewBox='0 0 10 5' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M10 5H0.926697L3.95208 1.63847C4.74227 0.760478 6.11722 0.754951 6.91445 1.62656L10 5Z' /></svg>";
4643
6241
 
4644
- var _excluded$5 = ["content", "children", "theme", "disabled", "position", "interactive", "hideAfter", "hideOnTargetExit"];
6242
+ var _excluded$1 = ["content", "children", "theme", "disabled", "position", "interactive", "hideAfter", "hideOnTargetExit"];
4645
6243
  var Tooltip = function Tooltip(_ref) {
4646
6244
  var content = _ref.content,
4647
6245
  children = _ref.children,
@@ -4657,7 +6255,7 @@ var Tooltip = function Tooltip(_ref) {
4657
6255
  hideAfter = _ref$hideAfter === void 0 ? -1 : _ref$hideAfter,
4658
6256
  _ref$hideOnTargetExit = _ref.hideOnTargetExit,
4659
6257
  hideOnTargetExit = _ref$hideOnTargetExit === void 0 ? false : _ref$hideOnTargetExit,
4660
- otherProps = _objectWithoutProperties(_ref, _excluded$5);
6258
+ otherProps = _objectWithoutProperties(_ref, _excluded$1);
4661
6259
  var _useState = useState(null),
4662
6260
  _useState2 = _slicedToArray(_useState, 2),
4663
6261
  instance = _useState2[0],
@@ -4684,7 +6282,7 @@ var Tooltip = function Tooltip(_ref) {
4684
6282
  }
4685
6283
  return undefined;
4686
6284
  }, [instance, hideOnTargetExit]);
4687
- return /*#__PURE__*/React.createElement(index, _extends({
6285
+ return /*#__PURE__*/React__default.createElement(index, _extends({
4688
6286
  animation: "scale-subtle",
4689
6287
  arrow: ARROW,
4690
6288
  content: content,
@@ -4701,10 +6299,10 @@ var Tooltip = function Tooltip(_ref) {
4701
6299
  setInstance(instance);
4702
6300
  (_instance$popper$firs = instance.popper.firstElementChild) === null || _instance$popper$firs === void 0 || _instance$popper$firs.setAttribute("data-cy", "tooltip-box");
4703
6301
  }
4704
- }, localProps, otherProps), /*#__PURE__*/React.isValidElement(children) ? children : /*#__PURE__*/React.createElement("span", null, children));
6302
+ }, localProps, otherProps), /*#__PURE__*/React__default.isValidElement(children) ? children : /*#__PURE__*/React__default.createElement("span", null, children));
4705
6303
  };
4706
6304
 
4707
- var _excluded$4 = ["style", "weight", "lineHeight", "component", "children", "textTransform", "className"];
6305
+ var _excluded = ["style", "weight", "lineHeight", "component", "children", "textTransform", "className"];
4708
6306
  var FONT_WEIGHTS = {
4709
6307
  thin: "thin",
4710
6308
  extralight: "extralight",
@@ -4782,7 +6380,7 @@ var COMPONENTS = {
4782
6380
  code: "code",
4783
6381
  blockquote: "blockquote"
4784
6382
  };
4785
- var Typography = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
6383
+ var Typography = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
4786
6384
  var _ref$style = _ref.style,
4787
6385
  style = _ref$style === void 0 ? "body1" : _ref$style,
4788
6386
  weight = _ref.weight,
@@ -4792,9 +6390,9 @@ var Typography = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
4792
6390
  textTransform = _ref.textTransform,
4793
6391
  _ref$className = _ref.className,
4794
6392
  className = _ref$className === void 0 ? "" : _ref$className,
4795
- otherProps = _objectWithoutProperties(_ref, _excluded$4);
6393
+ otherProps = _objectWithoutProperties(_ref, _excluded);
4796
6394
  var Component = component ? COMPONENTS[component] : style ? DEFAULT_COMPONENTS[style] : "p";
4797
- return /*#__PURE__*/React.createElement(Component, _extends({
6395
+ return /*#__PURE__*/React__default.createElement(Component, _extends({
4798
6396
  ref: ref,
4799
6397
  className: classnames(_defineProperty({
4800
6398
  "neeto-ui-typography": true,
@@ -4837,450 +6435,5 @@ var Typography = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
4837
6435
  });
4838
6436
  Typography.displayName = "Typography";
4839
6437
 
4840
- var FeaturedTooltip = function FeaturedTooltip(_ref) {
4841
- var label = _ref.label,
4842
- description = _ref.description;
4843
- return /*#__PURE__*/React.createElement("div", {
4844
- className: "neeto-ui-flex neeto-ui-flex-col sidebar-featured-tooltip"
4845
- }, /*#__PURE__*/React.createElement(Typography, {
4846
- className: "neeto-ui-text-center sidebar-featured-tooltip__title",
4847
- lineHeight: "tight",
4848
- style: "h5",
4849
- weight: "semibold"
4850
- }, label), description && /*#__PURE__*/React.createElement(Typography, {
4851
- className: "neeto-ui-text-center neeto-ui-text-gray-400 sidebar-featured-tooltip__description",
4852
- lineHeight: "normal",
4853
- style: "body3"
4854
- }, description));
4855
- };
4856
-
4857
- var TOOLTIP_STYLES$1 = {
4858
- "default": "default",
4859
- featured: "featured"
4860
- };
4861
- var NavIconWrapper = function NavIconWrapper(_ref) {
4862
- var tooltipStyle = _ref.tooltipStyle,
4863
- description = _ref.description,
4864
- icon = _ref.icon,
4865
- label = _ref.label,
4866
- children = _ref.children;
4867
- var tooltipContent = tooltipStyle === TOOLTIP_STYLES$1.featured ? /*#__PURE__*/React.createElement(FeaturedTooltip, {
4868
- description: description,
4869
- icon: icon,
4870
- label: label
4871
- }) : label;
4872
- var content = /*#__PURE__*/React.createElement(Tooltip, {
4873
- content: tooltipContent,
4874
- delay: [400, 40],
4875
- duration: [200, 200],
4876
- position: "right",
4877
- className: classnames({
4878
- "sidebar-featured-tooltip__content": tooltipStyle === TOOLTIP_STYLES$1.featured
4879
- })
4880
- }, children);
4881
- return content;
4882
- };
4883
-
4884
- var AppSwitcher = function AppSwitcher(_ref) {
4885
- var tooltipStyle = _ref.tooltipStyle,
4886
- onAppSwitcherToggle = _ref.onAppSwitcherToggle;
4887
- return /*#__PURE__*/React.createElement(NavIconWrapper, {
4888
- icon: /*#__PURE__*/React.createElement(AppSwitcher$1, null),
4889
- label: "Product switcher",
4890
- tooltipStyle: tooltipStyle
4891
- }, /*#__PURE__*/React.createElement("button", {
4892
- className: "neeto-ui-flex neeto-ui-items-center neeto-ui-justify-start neeto-ui-w-full neeto-ui-select-none neeto-ui-sidebar__link neeto-ui-sidebar__link--app-switcher neeto-ui-sidebar__link--button shadow-none",
4893
- "data-cy": "app-switcher-button",
4894
- onClick: onAppSwitcherToggle
4895
- }, /*#__PURE__*/React.createElement("span", {
4896
- className: "neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center neeto-ui-sidebar__link-icon"
4897
- }, /*#__PURE__*/React.createElement(AppSwitcher$1, {
4898
- size: 24
4899
- }))));
4900
- };
4901
-
4902
- /* eslint-disable react/display-name */
4903
- var HelpSection = /*#__PURE__*/forwardRef$1(function (_, ref) {
4904
- return /*#__PURE__*/React.createElement("button", {
4905
- className: "neeto-ui-sidebar__link neeto-ui-sidebar__link--button shadow-none",
4906
- "data-cy": "help-button",
4907
- ref: ref
4908
- }, /*#__PURE__*/React.createElement("span", {
4909
- className: "neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center neeto-ui-sidebar__link-icon"
4910
- }, /*#__PURE__*/React.createElement(Help, {
4911
- size: 24
4912
- })));
4913
- });
4914
- HelpSection.displayName = "HelpSection";
4915
-
4916
- var _excluded$3 = ["onClick", "label", "icon"];
4917
- var HelpLinkSection = function HelpLinkSection(_ref) {
4918
- var links = _ref.links;
4919
- return /*#__PURE__*/React.createElement("ul", null, links === null || links === void 0 ? void 0 : links.map(function (_ref2, idx) {
4920
- var _ref2$onClick = _ref2.onClick,
4921
- onClick = _ref2$onClick === void 0 ? noop : _ref2$onClick,
4922
- _ref2$label = _ref2.label,
4923
- label = _ref2$label === void 0 ? "" : _ref2$label,
4924
- _ref2$icon = _ref2.icon,
4925
- icon = _ref2$icon === void 0 ? null : _ref2$icon,
4926
- otherProps = _objectWithoutProperties(_ref2, _excluded$3);
4927
- var IconSVG = icon;
4928
- return /*#__PURE__*/React.createElement("li", {
4929
- className: "neeto-ui-help-sublist__item",
4930
- key: idx
4931
- }, /*#__PURE__*/React.createElement("button", _extends({
4932
- className: "neeto-ui-help-sublist__item-btn",
4933
- onClick: onClick
4934
- }, otherProps), icon && /*#__PURE__*/React.createElement("span", {
4935
- className: "neeto-ui-help-sublist__item-btn-icon"
4936
- }, /*#__PURE__*/React.createElement(IconSVG, null)), /*#__PURE__*/React.createElement(Typography, {
4937
- className: "neeto-ui-help-sublist__item-btn-label",
4938
- component: "span",
4939
- style: "body2",
4940
- weight: "normal"
4941
- }, label)));
4942
- }));
4943
- };
4944
-
4945
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4946
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4947
- var HelpSectionTooltip = function HelpSectionTooltip(_ref) {
4948
- var helpSectionProps = _ref.helpSectionProps;
4949
- var documentationProps = helpSectionProps.documentationProps,
4950
- keyboardShortcutProps = helpSectionProps.keyboardShortcutProps,
4951
- liveChatProps = helpSectionProps.liveChatProps,
4952
- changelogProps = helpSectionProps.changelogProps;
4953
- var helpLinks = [documentationProps && _objectSpread(_objectSpread({}, documentationProps), {}, {
4954
- label: "Documentation",
4955
- icon: Book,
4956
- "data-cy": "help-link-documentation-button"
4957
- }), keyboardShortcutProps && _objectSpread(_objectSpread({}, keyboardShortcutProps), {}, {
4958
- label: "Keyboard shortcuts",
4959
- icon: Keyboard,
4960
- "data-cy": "help-link-keyboard-shortcut-button"
4961
- }), liveChatProps && _objectSpread(_objectSpread({}, liveChatProps), {}, {
4962
- label: "Chat with us",
4963
- icon: ChatEmpty,
4964
- "data-cy": "help-link-live-chat-button"
4965
- }), changelogProps && _objectSpread(_objectSpread({}, changelogProps), {}, {
4966
- label: "What's new?",
4967
- icon: Gift,
4968
- "data-cy": "help-link-changelog-button"
4969
- })].filter(Boolean);
4970
- return /*#__PURE__*/React.createElement(HelpLinkSection, {
4971
- links: values(helpLinks)
4972
- });
4973
- };
4974
-
4975
- var build = {exports: {}};
4976
-
4977
- (function (module, exports) {
4978
- !function(e,t){module.exports=t(React);}(commonjsGlobal,(function(e){return function(e){var t={};function r(l){if(t[l])return t[l].exports;var i=t[l]={i:l,l:!1,exports:{}};return e[l].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,l){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:l});},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0});},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var l=Object.create(null);if(r.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(l,i,function(t){return e[t]}.bind(null,i));return l},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=1)}([function(t,r){t.exports=e;},function(e,t,r){e.exports=r(2);},function(e,t,r){function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,l);}return r}function a(e,t){if(null==e)return {};var r,l,i=function(e,t){if(null==e)return {};var r,l,i={},a=Object.keys(e);for(l=0;l<a.length;l++)r=a[l],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(l=0;l<a.length;l++)r=a[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);}return i}r.r(t);var n=r(0),c=r.n(n),h=function(e){for(var t=0,r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r),t&=t;}return Math.abs(t)},o=function(e,t){return Math.floor(e/Math.pow(10,t)%10)},s=function(e,t){return !(o(e,t)%2)},m=function(e,t,r){var l=e%t;return r&&o(e,r)%2===0?-l:l},f=function(e,t,r){return t[e%r]};var u=function(e){var t=function(e,t){var r=h(e),l=t&&t.length;return Array.from({length:4},(function(e,i){return {color:f(r+i,t,l),translateX:m(r*(i+1),40-(i+17),1),translateY:m(r*(i+1),40-(i+17),2),rotate:m(r*(i+1),360),isSquare:s(r,2)}}))}(e.name,e.colors);return n.createElement("svg",{viewBox:"0 0 80 80",fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:e.size,height:e.size},e.title&&n.createElement("title",null,e.name),n.createElement("mask",{id:"mask__bauhaus",maskUnits:"userSpaceOnUse",x:0,y:0,width:80,height:80},n.createElement("rect",{width:80,height:80,rx:e.square?void 0:160,fill:"#FFFFFF"})),n.createElement("g",{mask:"url(#mask__bauhaus)"},n.createElement("rect",{width:80,height:80,fill:t[0].color}),n.createElement("rect",{x:10,y:30,width:80,height:t[1].isSquare?80:10,fill:t[1].color,transform:"translate("+t[1].translateX+" "+t[1].translateY+") rotate("+t[1].rotate+" 40 40)"}),n.createElement("circle",{cx:40,cy:40,fill:t[2].color,r:16,transform:"translate("+t[2].translateX+" "+t[2].translateY+")"}),n.createElement("line",{x1:0,y1:40,x2:80,y2:40,strokeWidth:2,stroke:t[3].color,transform:"translate("+t[3].translateX+" "+t[3].translateY+") rotate("+t[3].rotate+" 40 40)"})))};var d=function(e){var t=function(e,t){var r=h(t),l=e&&e.length,i=Array.from({length:5},(function(t,i){return f(r+i,e,l)})),a=[];return a[0]=i[0],a[1]=i[1],a[2]=i[1],a[3]=i[2],a[4]=i[2],a[5]=i[3],a[6]=i[3],a[7]=i[0],a[8]=i[4],a}(e.colors,e.name);return c.a.createElement("svg",{viewBox:"0 0 90 90",fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:e.size,height:e.size},e.title&&c.a.createElement("title",null,e.name),c.a.createElement("mask",{id:"mask__ring",maskUnits:"userSpaceOnUse",x:0,y:0,width:90,height:90},c.a.createElement("rect",{width:90,height:90,rx:e.square?void 0:180,fill:"#FFFFFF"})),c.a.createElement("g",{mask:"url(#mask__ring)"},c.a.createElement("path",{d:"M0 0h90v45H0z",fill:t[0]}),c.a.createElement("path",{d:"M0 45h90v45H0z",fill:t[1]}),c.a.createElement("path",{d:"M83 45a38 38 0 00-76 0h76z",fill:t[2]}),c.a.createElement("path",{d:"M83 45a38 38 0 01-76 0h76z",fill:t[3]}),c.a.createElement("path",{d:"M77 45a32 32 0 10-64 0h64z",fill:t[4]}),c.a.createElement("path",{d:"M77 45a32 32 0 11-64 0h64z",fill:t[5]}),c.a.createElement("path",{d:"M71 45a26 26 0 00-52 0h52z",fill:t[6]}),c.a.createElement("path",{d:"M71 45a26 26 0 01-52 0h52z",fill:t[7]}),c.a.createElement("circle",{cx:45,cy:45,r:23,fill:t[8]})))};var g=function(e){var t=function(e,t){var r=h(e),l=t&&t.length;return Array.from({length:64},(function(e,i){return f(r%i,t,l)}))}(e.name,e.colors);return n.createElement("svg",{viewBox:"0 0 80 80",fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:e.size,height:e.size},e.title&&n.createElement("title",null,e.name),n.createElement("mask",{id:"mask__pixel","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:0,y:0,width:80,height:80},n.createElement("rect",{width:80,height:80,rx:e.square?void 0:160,fill:"#FFFFFF"})),n.createElement("g",{mask:"url(#mask__pixel)"},n.createElement("rect",{width:10,height:10,fill:t[0]}),n.createElement("rect",{x:20,width:10,height:10,fill:t[1]}),n.createElement("rect",{x:40,width:10,height:10,fill:t[2]}),n.createElement("rect",{x:60,width:10,height:10,fill:t[3]}),n.createElement("rect",{x:10,width:10,height:10,fill:t[4]}),n.createElement("rect",{x:30,width:10,height:10,fill:t[5]}),n.createElement("rect",{x:50,width:10,height:10,fill:t[6]}),n.createElement("rect",{x:70,width:10,height:10,fill:t[7]}),n.createElement("rect",{y:10,width:10,height:10,fill:t[8]}),n.createElement("rect",{y:20,width:10,height:10,fill:t[9]}),n.createElement("rect",{y:30,width:10,height:10,fill:t[10]}),n.createElement("rect",{y:40,width:10,height:10,fill:t[11]}),n.createElement("rect",{y:50,width:10,height:10,fill:t[12]}),n.createElement("rect",{y:60,width:10,height:10,fill:t[13]}),n.createElement("rect",{y:70,width:10,height:10,fill:t[14]}),n.createElement("rect",{x:20,y:10,width:10,height:10,fill:t[15]}),n.createElement("rect",{x:20,y:20,width:10,height:10,fill:t[16]}),n.createElement("rect",{x:20,y:30,width:10,height:10,fill:t[17]}),n.createElement("rect",{x:20,y:40,width:10,height:10,fill:t[18]}),n.createElement("rect",{x:20,y:50,width:10,height:10,fill:t[19]}),n.createElement("rect",{x:20,y:60,width:10,height:10,fill:t[20]}),n.createElement("rect",{x:20,y:70,width:10,height:10,fill:t[21]}),n.createElement("rect",{x:40,y:10,width:10,height:10,fill:t[22]}),n.createElement("rect",{x:40,y:20,width:10,height:10,fill:t[23]}),n.createElement("rect",{x:40,y:30,width:10,height:10,fill:t[24]}),n.createElement("rect",{x:40,y:40,width:10,height:10,fill:t[25]}),n.createElement("rect",{x:40,y:50,width:10,height:10,fill:t[26]}),n.createElement("rect",{x:40,y:60,width:10,height:10,fill:t[27]}),n.createElement("rect",{x:40,y:70,width:10,height:10,fill:t[28]}),n.createElement("rect",{x:60,y:10,width:10,height:10,fill:t[29]}),n.createElement("rect",{x:60,y:20,width:10,height:10,fill:t[30]}),n.createElement("rect",{x:60,y:30,width:10,height:10,fill:t[31]}),n.createElement("rect",{x:60,y:40,width:10,height:10,fill:t[32]}),n.createElement("rect",{x:60,y:50,width:10,height:10,fill:t[33]}),n.createElement("rect",{x:60,y:60,width:10,height:10,fill:t[34]}),n.createElement("rect",{x:60,y:70,width:10,height:10,fill:t[35]}),n.createElement("rect",{x:10,y:10,width:10,height:10,fill:t[36]}),n.createElement("rect",{x:10,y:20,width:10,height:10,fill:t[37]}),n.createElement("rect",{x:10,y:30,width:10,height:10,fill:t[38]}),n.createElement("rect",{x:10,y:40,width:10,height:10,fill:t[39]}),n.createElement("rect",{x:10,y:50,width:10,height:10,fill:t[40]}),n.createElement("rect",{x:10,y:60,width:10,height:10,fill:t[41]}),n.createElement("rect",{x:10,y:70,width:10,height:10,fill:t[42]}),n.createElement("rect",{x:30,y:10,width:10,height:10,fill:t[43]}),n.createElement("rect",{x:30,y:20,width:10,height:10,fill:t[44]}),n.createElement("rect",{x:30,y:30,width:10,height:10,fill:t[45]}),n.createElement("rect",{x:30,y:40,width:10,height:10,fill:t[46]}),n.createElement("rect",{x:30,y:50,width:10,height:10,fill:t[47]}),n.createElement("rect",{x:30,y:60,width:10,height:10,fill:t[48]}),n.createElement("rect",{x:30,y:70,width:10,height:10,fill:t[49]}),n.createElement("rect",{x:50,y:10,width:10,height:10,fill:t[50]}),n.createElement("rect",{x:50,y:20,width:10,height:10,fill:t[51]}),n.createElement("rect",{x:50,y:30,width:10,height:10,fill:t[52]}),n.createElement("rect",{x:50,y:40,width:10,height:10,fill:t[53]}),n.createElement("rect",{x:50,y:50,width:10,height:10,fill:t[54]}),n.createElement("rect",{x:50,y:60,width:10,height:10,fill:t[55]}),n.createElement("rect",{x:50,y:70,width:10,height:10,fill:t[56]}),n.createElement("rect",{x:70,y:10,width:10,height:10,fill:t[57]}),n.createElement("rect",{x:70,y:20,width:10,height:10,fill:t[58]}),n.createElement("rect",{x:70,y:30,width:10,height:10,fill:t[59]}),n.createElement("rect",{x:70,y:40,width:10,height:10,fill:t[60]}),n.createElement("rect",{x:70,y:50,width:10,height:10,fill:t[61]}),n.createElement("rect",{x:70,y:60,width:10,height:10,fill:t[62]}),n.createElement("rect",{x:70,y:70,width:10,height:10,fill:t[63]})))};var w=function(e){var t=function(e,t){var r,l=h(e),i=t&&t.length,a=f(l,t,i),n=m(l,10,1),c=n<5?n+4:n,o=m(l,10,2),u=o<5?o+4:o;return {wrapperColor:a,faceColor:(r=a,"#"===r.slice(0,1)&&(r=r.slice(1)),(299*parseInt(r.substr(0,2),16)+587*parseInt(r.substr(2,2),16)+114*parseInt(r.substr(4,2),16))/1e3>=128?"#000000":"#FFFFFF"),backgroundColor:f(l+13,t,i),wrapperTranslateX:c,wrapperTranslateY:u,wrapperRotate:m(l,360),wrapperScale:1+m(l,3)/10,isMouthOpen:s(l,2),isCircle:s(l,1),eyeSpread:m(l,5),mouthSpread:m(l,3),faceRotate:m(l,10,3),faceTranslateX:c>6?c/2:m(l,8,1),faceTranslateY:u>6?u/2:m(l,7,2)}}(e.name,e.colors);return n.createElement("svg",{viewBox:"0 0 36 36",fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:e.size,height:e.size},e.title&&n.createElement("title",null,e.name),n.createElement("mask",{id:"mask__beam",maskUnits:"userSpaceOnUse",x:0,y:0,width:36,height:36},n.createElement("rect",{width:36,height:36,rx:e.square?void 0:72,fill:"#FFFFFF"})),n.createElement("g",{mask:"url(#mask__beam)"},n.createElement("rect",{width:36,height:36,fill:t.backgroundColor}),n.createElement("rect",{x:"0",y:"0",width:36,height:36,transform:"translate("+t.wrapperTranslateX+" "+t.wrapperTranslateY+") rotate("+t.wrapperRotate+" 18 18) scale("+t.wrapperScale+")",fill:t.wrapperColor,rx:t.isCircle?36:6}),n.createElement("g",{transform:"translate("+t.faceTranslateX+" "+t.faceTranslateY+") rotate("+t.faceRotate+" 18 18)"},t.isMouthOpen?n.createElement("path",{d:"M15 "+(19+t.mouthSpread)+"c2 1 4 1 6 0",stroke:t.faceColor,fill:"none",strokeLinecap:"round"}):n.createElement("path",{d:"M13,"+(19+t.mouthSpread)+" a1,0.75 0 0,0 10,0",fill:t.faceColor}),n.createElement("rect",{x:14-t.eyeSpread,y:14,width:1.5,height:2,rx:1,stroke:"none",fill:t.faceColor}),n.createElement("rect",{x:20+t.eyeSpread,y:14,width:1.5,height:2,rx:1,stroke:"none",fill:t.faceColor}))))};var E=function(e){var t=function(e,t){var r=h(e),l=t&&t.length;return Array.from({length:4},(function(e,i){return f(r+i,t,l)}))}(e.name,e.colors),r=e.name.replace(/\s/g,"");return n.createElement("svg",{viewBox:"0 0 80 80",fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:e.size,height:e.size},e.title&&n.createElement("title",null,e.name),n.createElement("mask",{id:"mask__sunset",maskUnits:"userSpaceOnUse",x:0,y:0,width:80,height:80},n.createElement("rect",{width:80,height:80,rx:e.square?void 0:160,fill:"#FFFFFF"})),n.createElement("g",{mask:"url(#mask__sunset)"},n.createElement("path",{fill:"url(#gradient_paint0_linear_"+r+")",d:"M0 0h80v40H0z"}),n.createElement("path",{fill:"url(#gradient_paint1_linear_"+r+")",d:"M0 40h80v40H0z"})),n.createElement("defs",null,n.createElement("linearGradient",{id:"gradient_paint0_linear_"+r,x1:40,y1:0,x2:40,y2:40,gradientUnits:"userSpaceOnUse"},n.createElement("stop",{stopColor:t[0]}),n.createElement("stop",{offset:1,stopColor:t[1]})),n.createElement("linearGradient",{id:"gradient_paint1_linear_"+r,x1:40,y1:40,x2:40,y2:80,gradientUnits:"userSpaceOnUse"},n.createElement("stop",{stopColor:t[2]}),n.createElement("stop",{offset:1,stopColor:t[3]}))))};var p=function(e){var t=function(e,t){var r=h(e),l=t&&t.length;return Array.from({length:3},(function(e,i){return {color:f(r+i,t,l),translateX:m(r*(i+1),8,1),translateY:m(r*(i+1),8,2),scale:1.2+m(r*(i+1),4)/10,rotate:m(r*(i+1),360,1)}}))}(e.name,e.colors);return n.createElement("svg",{viewBox:"0 0 80 80",fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:e.size,height:e.size},e.title&&n.createElement("title",null,e.name),n.createElement("mask",{id:"mask__marble",maskUnits:"userSpaceOnUse",x:0,y:0,width:80,height:80},n.createElement("rect",{width:80,height:80,rx:e.square?void 0:160,fill:"#FFFFFF"})),n.createElement("g",{mask:"url(#mask__marble)"},n.createElement("rect",{width:80,height:80,fill:t[0].color}),n.createElement("path",{filter:"url(#prefix__filter0_f)",d:"M32.414 59.35L50.376 70.5H72.5v-71H33.728L26.5 13.381l19.057 27.08L32.414 59.35z",fill:t[1].color,transform:"translate("+t[1].translateX+" "+t[1].translateY+") rotate("+t[1].rotate+" 40 40) scale("+t[2].scale+")"}),n.createElement("path",{filter:"url(#prefix__filter0_f)",style:{mixBlendMode:"overlay"},d:"M22.216 24L0 46.75l14.108 38.129L78 86l-3.081-59.276-22.378 4.005 12.972 20.186-23.35 27.395L22.215 24z",fill:t[2].color,transform:"translate("+t[2].translateX+" "+t[2].translateY+") rotate("+t[2].rotate+" 40 40) scale("+t[2].scale+")"})),n.createElement("defs",null,n.createElement("filter",{id:"prefix__filter0_f",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},n.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),n.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),n.createElement("feGaussianBlur",{stdDeviation:7,result:"effect1_foregroundBlur"}))))},y=["pixel","bauhaus","ring","beam","sunset","marble"],x={geometric:"beam",abstract:"bauhaus"},v=function(e){var t=e.variant,r=void 0===t?"marble":t,n=e.colors,h=void 0===n?["#92A1C6","#146A7C","#F0AB3D","#C271B4","#C20D90"]:n,o=e.name,s=void 0===o?"Clara Barton":o,m=e.square,f=void 0!==m&&m,v=e.title,b=void 0!==v&&v,_=e.size,F=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){l(e,t,r[t]);})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t));}));}return e}({colors:h,name:s,title:b,size:void 0===_?40:_,square:f},a(e,["variant","colors","name","square","title","size"]));return {pixel:c.a.createElement(g,F),bauhaus:c.a.createElement(u,F),ring:c.a.createElement(d,F),beam:c.a.createElement(w,F),sunset:c.a.createElement(E,F),marble:c.a.createElement(p,F)}[Object.keys(x).includes(r)?x[r]:y.includes(r)?r:"marble"]};t.default=v;}])}));
4979
- } (build));
4980
-
4981
- var FallbackAvatar = /*@__PURE__*/getDefaultExportFromCjs(build.exports);
4982
-
4983
- var COLOR_PALLETE = ["#0091B9", "#BAF4F0", "#004F9B", "#FF6500", "#FFD500"];
4984
- var AVATAR_VARIANT = "beam";
4985
-
4986
- var _excluded$2 = ["size", "user", "status", "onClick", "className", "showTooltip", "tooltipProps"];
4987
- var SIZE = {
4988
- small: 24,
4989
- medium: 32,
4990
- large: 40,
4991
- extraLarge: 64
4992
- };
4993
- var Avatar = function Avatar(_ref) {
4994
- var _ref$size = _ref.size,
4995
- size = _ref$size === void 0 ? "medium" : _ref$size,
4996
- _ref$user = _ref.user,
4997
- user = _ref$user === void 0 ? {} : _ref$user,
4998
- _ref$status = _ref.status,
4999
- status = _ref$status === void 0 ? null : _ref$status,
5000
- _ref$onClick = _ref.onClick,
5001
- onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
5002
- _ref$className = _ref.className,
5003
- className = _ref$className === void 0 ? "" : _ref$className,
5004
- _ref$showTooltip = _ref.showTooltip,
5005
- showTooltip = _ref$showTooltip === void 0 ? false : _ref$showTooltip,
5006
- _ref$tooltipProps = _ref.tooltipProps,
5007
- tooltipProps = _ref$tooltipProps === void 0 ? {} : _ref$tooltipProps,
5008
- otherProps = _objectWithoutProperties(_ref, _excluded$2);
5009
- var _useState = useState(false),
5010
- _useState2 = _slicedToArray(_useState, 2),
5011
- isLoadingFailed = _useState2[0],
5012
- setIsLoadingFailed = _useState2[1];
5013
- var _user$name = user.name,
5014
- name = _user$name === void 0 ? "" : _user$name,
5015
- imageUrl = user.imageUrl;
5016
- var isMedium = size === "medium";
5017
- var isLarge = size === "large";
5018
- var isExtraLarge = size === "extraLarge";
5019
- var containerClasses = classnames("neeto-ui-avatar__container neeto-ui-select-none", {
5020
- "neeto-ui-avatar__container--medium": isMedium,
5021
- "neeto-ui-avatar__container--large": isLarge,
5022
- "neeto-ui-avatar__container--xlarge": isExtraLarge
5023
- }, className);
5024
- var imageClasses = classnames("neeto-ui-avatar", {
5025
- "neeto-ui-avatar--medium": isMedium,
5026
- "neeto-ui-avatar--large": isLarge,
5027
- "neeto-ui-avatar--xlarge": isExtraLarge,
5028
- hidden: isLoadingFailed
5029
- });
5030
- var statusClasses = classnames("neeto-ui-avatar__status", status, {
5031
- "neeto-ui-avatar__status-medium": isMedium,
5032
- "neeto-ui-avatar__status-large": isLarge,
5033
- "neeto-ui-avatar__status-xlarge": isExtraLarge
5034
- });
5035
- var Indicator = function Indicator() {
5036
- return isNil(status) ? React.Fragment : /*#__PURE__*/React.createElement("span", {
5037
- className: statusClasses,
5038
- "data-testid": "indicator"
5039
- });
5040
- };
5041
- var avatarString = name.replace("", "-");
5042
- var shouldDisplayFallbackAvatar = !(imageUrl && !isLoadingFailed);
5043
- return /*#__PURE__*/React.createElement(Tooltip, _extends({
5044
- content: name,
5045
- disabled: !showTooltip,
5046
- position: "bottom"
5047
- }, tooltipProps), /*#__PURE__*/React.createElement("span", _extends({
5048
- onClick: onClick,
5049
- className: containerClasses,
5050
- "data-testid": "avatar"
5051
- }, otherProps), /*#__PURE__*/React.createElement(Indicator, null), shouldDisplayFallbackAvatar ? /*#__PURE__*/React.createElement(FallbackAvatar, {
5052
- name: name,
5053
- className: "neeto-ui-avatar__svg",
5054
- colors: COLOR_PALLETE,
5055
- size: SIZE[size],
5056
- variant: AVATAR_VARIANT
5057
- }) : /*#__PURE__*/React.createElement("img", {
5058
- alt: "avatar-".concat(avatarString),
5059
- className: imageClasses,
5060
- src: imageUrl,
5061
- onError: function onError() {
5062
- return setIsLoadingFailed(true);
5063
- }
5064
- })));
5065
- };
5066
-
5067
- /* eslint-disable react/display-name */
5068
- var ProfileSection = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
5069
- var profileInfo = _ref.profileInfo,
5070
- onClick = _ref.onClick;
5071
- var dataCy = profileInfo["data-cy"] || "profile-section";
5072
- return /*#__PURE__*/React.createElement("button", {
5073
- className: "neeto-ui-w-full neeto-ui-text-left neeto-ui-sidebar__profile-wrapper",
5074
- "data-cy": dataCy,
5075
- ref: ref,
5076
- onClick: onClick
5077
- }, /*#__PURE__*/React.createElement("span", {
5078
- className: "neeto-ui-flex neeto-ui-items-center neeto-ui-flex-shrink-0 neeto-ui-w-full neeto-ui-sidebar__profile"
5079
- }, /*#__PURE__*/React.createElement(Avatar, {
5080
- className: "neeto-ui-flex-shrink-0",
5081
- size: "large",
5082
- user: profileInfo
5083
- })));
5084
- });
5085
- ProfileSection.displayName = "ProfileSection";
5086
-
5087
- var _excluded$1 = ["onClick", "label", "icon"];
5088
- var LinkSection = function LinkSection(_ref) {
5089
- var links = _ref.links;
5090
- return /*#__PURE__*/React.createElement("ul", {
5091
- className: "neeto-ui-profile-sublist"
5092
- }, links === null || links === void 0 ? void 0 : links.map(function (_ref2, idx) {
5093
- var onClick = _ref2.onClick,
5094
- label = _ref2.label,
5095
- _ref2$icon = _ref2.icon,
5096
- icon = _ref2$icon === void 0 ? null : _ref2$icon,
5097
- otherProps = _objectWithoutProperties(_ref2, _excluded$1);
5098
- var IconSVG = icon;
5099
- return /*#__PURE__*/React.createElement("li", {
5100
- className: "neeto-ui-profile-sublist__item",
5101
- key: idx
5102
- }, /*#__PURE__*/React.createElement("button", _extends({
5103
- onClick: onClick
5104
- }, otherProps, {
5105
- className: "neeto-ui-profile-sublist__item-btn"
5106
- }), icon && /*#__PURE__*/React.createElement("span", {
5107
- className: "neeto-ui-profile-sublist__item-btn-icon"
5108
- }, /*#__PURE__*/React.createElement(IconSVG, null)), /*#__PURE__*/React.createElement(Typography, {
5109
- className: "neeto-ui-profile-sublist__item-btn-label",
5110
- component: "span",
5111
- style: "body2",
5112
- weight: "normal"
5113
- }, label)));
5114
- }));
5115
- };
5116
-
5117
- var truncate = function truncate(str, length) {
5118
- return str && str.length > length ? "".concat(str.substring(0, length - 3), "...") : str;
5119
- };
5120
-
5121
- var ProfileSectionTooltip = function ProfileSectionTooltip(_ref) {
5122
- var profileInfo = _ref.profileInfo;
5123
- var name = profileInfo.name,
5124
- email = profileInfo.email,
5125
- topLinks = profileInfo.topLinks,
5126
- bottomLinks = profileInfo.bottomLinks,
5127
- customContent = profileInfo.customContent;
5128
- return /*#__PURE__*/React.createElement("div", {
5129
- className: "neeto-ui-flex neeto-ui-flex-col neeto-ui-profile-popup"
5130
- }, /*#__PURE__*/React.createElement("div", {
5131
- className: classnames("neeto-ui-relative neeto-ui-flex neeto-ui-items-center neeto-ui-p-3")
5132
- }, /*#__PURE__*/React.createElement("div", {
5133
- className: "top-0 left-0"
5134
- }, /*#__PURE__*/React.createElement(Avatar, {
5135
- size: "large",
5136
- user: profileInfo
5137
- })), /*#__PURE__*/React.createElement("div", {
5138
- className: "neeto-ui-flex neeto-ui-flex-col neeto-ui-flex-grow neeto-ui-min-w-0 neeto-ui-pl-3"
5139
- }, /*#__PURE__*/React.createElement(Typography, {
5140
- className: "neeto-ui-m-0",
5141
- component: "h2",
5142
- lineHeight: "tight",
5143
- style: "h5",
5144
- title: name,
5145
- weight: "semibold"
5146
- }, truncate(name, 18)), email && /*#__PURE__*/React.createElement(Typography, {
5147
- className: "neeto-ui-w-full neeto-ui-truncate neeto-ui-text-gray-600",
5148
- lineHeight: "tight",
5149
- style: "body3"
5150
- }, email))), /*#__PURE__*/React.createElement("div", {
5151
- className: "neeto-ui-sidebar__profile-wrapper-custom-content"
5152
- }, customContent), topLinks && /*#__PURE__*/React.createElement(LinkSection, {
5153
- links: topLinks
5154
- }), bottomLinks && /*#__PURE__*/React.createElement(LinkSection, {
5155
- links: bottomLinks
5156
- }));
5157
- };
5158
-
5159
- var Footer = function Footer(_ref) {
5160
- var profileInfo = _ref.profileInfo,
5161
- tooltipStyle = _ref.tooltipStyle,
5162
- _ref$showAppSwitcher = _ref.showAppSwitcher,
5163
- showAppSwitcher = _ref$showAppSwitcher === void 0 ? false : _ref$showAppSwitcher,
5164
- onAppSwitcherToggle = _ref.onAppSwitcherToggle,
5165
- helpLinks = _ref.helpLinks;
5166
- var _useState = useState(false),
5167
- _useState2 = _slicedToArray(_useState, 2),
5168
- isProfileDropdownOpen = _useState2[0],
5169
- setIsProfileDropdownOpen = _useState2[1];
5170
- return /*#__PURE__*/React.createElement("div", {
5171
- className: "neeto-ui-sidebar__footer"
5172
- }, helpLinks && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Tooltip, {
5173
- interactive: true,
5174
- className: "neeto-ui-help-popup-wrapper",
5175
- content: /*#__PURE__*/React.createElement(HelpSectionTooltip, {
5176
- helpSectionProps: helpLinks
5177
- }),
5178
- hideOnClick: false,
5179
- position: "right",
5180
- theme: "light"
5181
- }, /*#__PURE__*/React.createElement(HelpSection, null))), showAppSwitcher && /*#__PURE__*/React.createElement(AppSwitcher, {
5182
- tooltipStyle: tooltipStyle,
5183
- onAppSwitcherToggle: onAppSwitcherToggle
5184
- }), profileInfo && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Tooltip, {
5185
- interactive: true,
5186
- className: "neeto-ui-profile-popup-wrapper",
5187
- content: /*#__PURE__*/React.createElement(ProfileSectionTooltip, {
5188
- profileInfo: profileInfo
5189
- }),
5190
- hideOnClick: false,
5191
- position: "right",
5192
- theme: "light"
5193
- }, /*#__PURE__*/React.createElement(ProfileSection, {
5194
- profileInfo: profileInfo,
5195
- onClick: function onClick() {
5196
- setIsProfileDropdownOpen(!isProfileDropdownOpen);
5197
- }
5198
- }))));
5199
- };
5200
-
5201
- var Header = function Header(_ref) {
5202
- var organizationInfo = _ref.organizationInfo;
5203
- var LogoSVG = organizationInfo === null || organizationInfo === void 0 ? void 0 : organizationInfo.logo;
5204
- return /*#__PURE__*/React.createElement("div", {
5205
- className: "neeto-ui-flex neeto-ui-items-center neeto-ui-sidebar__header",
5206
- "data-cy": "sidebar-info"
5207
- }, /*#__PURE__*/React.createElement("div", {
5208
- className: "neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center neeto-ui-flex-shrink-0 neeto-ui-sidebar__logo"
5209
- }, LogoSVG || /*#__PURE__*/React.createElement(Neeto, null)));
5210
- };
5211
-
5212
- var _excluded = ["label", "to", "icon", "description"];
5213
- var Links = function Links(_ref) {
5214
- var _ref$navLinks = _ref.navLinks,
5215
- navLinks = _ref$navLinks === void 0 ? [] : _ref$navLinks,
5216
- tooltipStyle = _ref.tooltipStyle;
5217
- var location = useLocation();
5218
- return /*#__PURE__*/React.createElement("div", {
5219
- className: "neeto-ui-sidebar__links"
5220
- }, navLinks.map(function (_ref2, mainIndex) {
5221
- var label = _ref2.label,
5222
- to = _ref2.to,
5223
- icon = _ref2.icon,
5224
- description = _ref2.description,
5225
- otherProps = _objectWithoutProperties(_ref2, _excluded);
5226
- var IconSVG = icon;
5227
- var url = new URL(to, window.location.href);
5228
- var _isActive = location.pathname.startsWith(url.pathname);
5229
- return /*#__PURE__*/React.createElement(NavIconWrapper, {
5230
- description: description,
5231
- icon: /*#__PURE__*/React.createElement(IconSVG, {
5232
- color: "#68737D"
5233
- }),
5234
- key: mainIndex,
5235
- label: label,
5236
- tooltipStyle: tooltipStyle
5237
- }, /*#__PURE__*/React.createElement(NavLink, _extends({
5238
- activeClassName: "active",
5239
- className: "neeto-ui-flex neeto-ui-items-center neeto-ui-no-underline neeto-ui-select-none neeto-ui-sidebar__link",
5240
- isActive: function isActive() {
5241
- return _isActive;
5242
- },
5243
- to: to
5244
- }, otherProps), icon && /*#__PURE__*/React.createElement("div", {
5245
- className: "neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center neeto-ui-sidebar__link-icon",
5246
- "data-testid": label
5247
- }, /*#__PURE__*/React.createElement(IconSVG, null))));
5248
- }));
5249
- };
5250
-
5251
- var TOOLTIP_STYLES = {
5252
- "default": "default",
5253
- featured: "featured"
5254
- };
5255
- var Sidebar = function Sidebar(_ref) {
5256
- var organizationInfo = _ref.organizationInfo,
5257
- _ref$navLinks = _ref.navLinks,
5258
- navLinks = _ref$navLinks === void 0 ? [] : _ref$navLinks,
5259
- _ref$tooltipStyle = _ref.tooltipStyle,
5260
- tooltipStyle = _ref$tooltipStyle === void 0 ? TOOLTIP_STYLES.featured : _ref$tooltipStyle,
5261
- profileInfo = _ref.profileInfo,
5262
- helpLinks = _ref.helpLinks,
5263
- _ref$showAppSwitcher = _ref.showAppSwitcher,
5264
- showAppSwitcher = _ref$showAppSwitcher === void 0 ? false : _ref$showAppSwitcher,
5265
- _ref$onAppSwitcherTog = _ref.onAppSwitcherToggle,
5266
- onAppSwitcherToggle = _ref$onAppSwitcherTog === void 0 ? noop : _ref$onAppSwitcherTog;
5267
- return /*#__PURE__*/React.createElement("div", {
5268
- "data-cy": "sidebar-wrapper",
5269
- "data-testid": "sidebar",
5270
- className: classnames("neeto-ui-sidebar neeto-ui-flex neeto-ui-flex-col neeto-ui-flex-shrink-0 neeto-ui-overflow-y-auto neeto-ui-overflow-x-hidden", "neeto-ui-sidebar--collapsed")
5271
- }, /*#__PURE__*/React.createElement(Header, {
5272
- organizationInfo: organizationInfo
5273
- }), /*#__PURE__*/React.createElement(Links, {
5274
- navLinks: navLinks,
5275
- tooltipStyle: tooltipStyle
5276
- }), /*#__PURE__*/React.createElement(Footer, {
5277
- helpLinks: helpLinks,
5278
- profileInfo: profileInfo,
5279
- showAppSwitcher: showAppSwitcher,
5280
- tooltipStyle: tooltipStyle,
5281
- onAppSwitcherToggle: onAppSwitcherToggle
5282
- }));
5283
- };
5284
-
5285
- export { Sidebar };
5286
- //# sourceMappingURL=layouts.js.map
6438
+ export { ANT_DESIGN_GLOBAL_TOKEN_OVERRIDES as A, Tooltip as T, UniqueArray as U, _objectWithoutProperties as _, _extends as a, _defineProperty as b, classnames as c, _slicedToArray as d, convertToDayjsObjects as e, commonjsGlobal as f, dayjs as g, hyphenize as h, index as i, Typography as j, buildUrl as k, lib as l, getAugmentedNamespace as m, noop as n, hideScrollAndAddMargin as o, focusFirstFocusableElement as p, _arrayLikeToArray as q, _unsupportedIterableToArray as r, showScrollAndRemoveMargin as s, trapFocusOnFocusableElements as t, _arrayWithHoles as u, _nonIterableRest as v, getDefaultExportFromCjs as w };
6439
+ //# sourceMappingURL=Typography-6b2170d4.js.map